From 80924d0c0daae6f0a87850b0c546bdca39e58936 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Fri, 5 Apr 2019 04:48:55 -0700 Subject: [PATCH] Regenerate compute client (#4909) --- .../compute/v1/AcceleratorTypeClient.java | 32 +- .../cloud/compute/v1/AddressClient.java | 48 +- ...dListNetworkEndpointGroupsHttpRequest.java | 684 +++++++ ...pointsNetworkEndpointGroupHttpRequest.java | 559 ++++++ .../cloud/compute/v1/AutoscalerClient.java | 64 +- .../com/google/cloud/compute/v1/Backend.java | 109 ++ .../cloud/compute/v1/BackendBucketClient.java | 68 +- .../compute/v1/BackendServiceClient.java | 96 +- .../compute/v1/BackendServiceReference.java | 148 ++ .../com/google/cloud/compute/v1/Binding.java | 18 +- ...DeleteNetworkEndpointGroupHttpRequest.java | 509 +++++ .../cloud/compute/v1/DeprecationStatus.java | 6 +- ...pointsNetworkEndpointGroupHttpRequest.java | 559 ++++++ .../google/cloud/compute/v1/DiskClient.java | 96 +- .../cloud/compute/v1/DiskTypeClient.java | 32 +- .../cloud/compute/v1/FirewallClient.java | 52 +- .../compute/v1/ForwardingRuleClient.java | 56 +- .../compute/v1/ForwardingRuleReference.java | 148 ++ .../GetNetworkEndpointGroupHttpRequest.java | 429 +++++ ...edInstanceIdentityInstanceHttpRequest.java | 423 +++++ .../cloud/compute/v1/GlobalAddressClient.java | 36 +- .../v1/GlobalForwardingRuleClient.java | 44 +- .../compute/v1/GlobalOperationClient.java | 40 +- .../cloud/compute/v1/HealthCheckClient.java | 52 +- .../v1/HealthStatusForNetworkEndpoint.java | 256 +++ .../cloud/compute/v1/Http2HealthCheck.java | 65 +- .../cloud/compute/v1/HttpHealthCheck.java | 65 +- .../compute/v1/HttpHealthCheckClient.java | 52 +- .../cloud/compute/v1/HttpSHealthCheck.java | 65 +- .../compute/v1/HttpsHealthCheckClient.java | 52 +- .../google/cloud/compute/v1/ImageClient.java | 84 +- ...InsertNetworkEndpointGroupHttpRequest.java | 543 ++++++ .../v1/InsertNodeGroupHttpRequest.java | 12 +- .../cloud/compute/v1/InstanceClient.java | 645 +++++-- .../cloud/compute/v1/InstanceGroupClient.java | 84 +- .../v1/InstanceGroupManagerClient.java | 112 +- .../cloud/compute/v1/InstanceProperties.java | 32 + .../cloud/compute/v1/InstanceSettings.java | 52 + .../compute/v1/InstanceTemplateClient.java | 60 +- .../v1/InterconnectAttachmentClient.java | 56 +- .../cloud/compute/v1/InterconnectClient.java | 52 +- .../v1/InterconnectLocationClient.java | 20 +- .../cloud/compute/v1/LicenseClient.java | 60 +- .../cloud/compute/v1/LicenseCodeClient.java | 16 +- .../ListNetworkEndpointGroupsHttpRequest.java | 685 +++++++ ...ointsNetworkEndpointGroupsHttpRequest.java | 736 ++++++++ .../cloud/compute/v1/MachineTypeClient.java | 32 +- .../cloud/compute/v1/NetworkClient.java | 68 +- .../cloud/compute/v1/NetworkEndpoint.java | 265 +++ .../compute/v1/NetworkEndpointGroup.java | 603 ++++++ .../NetworkEndpointGroupAggregatedList.java | 356 ++++ .../v1/NetworkEndpointGroupClient.java | 1663 +++++++++++++++++ .../compute/v1/NetworkEndpointGroupList.java | 358 ++++ .../v1/NetworkEndpointGroupSettings.java | 339 ++++ ...kEndpointGroupsAttachEndpointsRequest.java | 168 ++ ...kEndpointGroupsDetachEndpointsRequest.java | 168 ++ ...orkEndpointGroupsListEndpointsRequest.java | 164 ++ ...orkEndpointGroupsListNetworkEndpoints.java | 329 ++++ .../v1/NetworkEndpointGroupsScopedList.java | 210 +++ .../v1/NetworkEndpointWithHealthStatus.java | 201 ++ .../google/cloud/compute/v1/NodeGroup.java | 2 +- .../cloud/compute/v1/NodeGroupClient.java | 114 +- .../cloud/compute/v1/NodeTemplateClient.java | 72 +- .../cloud/compute/v1/NodeTypeClient.java | 32 +- .../cloud/compute/v1/ProjectClient.java | 112 +- .../ProjectZoneNetworkEndpointGroupName.java | 201 ++ ...tZoneNetworkEndpointGroupResourceName.java | 199 ++ .../compute/v1/RegionAutoscalerClient.java | 52 +- .../v1/RegionBackendServiceClient.java | 60 +- .../google/cloud/compute/v1/RegionClient.java | 20 +- .../compute/v1/RegionCommitmentClient.java | 40 +- .../cloud/compute/v1/RegionDiskClient.java | 68 +- .../compute/v1/RegionDiskTypeClient.java | 20 +- .../compute/v1/RegionInstanceGroupClient.java | 40 +- .../v1/RegionInstanceGroupManagerClient.java | 100 +- .../compute/v1/RegionOperationClient.java | 28 +- .../google/cloud/compute/v1/RouteClient.java | 36 +- .../google/cloud/compute/v1/RouterClient.java | 92 +- .../cloud/compute/v1/SSLHealthCheck.java | 67 +- .../compute/v1/SecurityPolicyClient.java | 76 +- ...nceIntegrityPolicyInstanceHttpRequest.java | 611 ++++++ .../com/google/cloud/compute/v1/Snapshot.java | 55 +- .../cloud/compute/v1/SnapshotClient.java | 60 +- .../compute/v1/SslCertificateClient.java | 36 +- .../cloud/compute/v1/SslPolicyClient.java | 52 +- .../cloud/compute/v1/SubnetworkClient.java | 108 +- .../cloud/compute/v1/TCPHealthCheck.java | 67 +- .../compute/v1/TargetHttpProxyClient.java | 44 +- .../compute/v1/TargetHttpsProxyClient.java | 68 +- .../compute/v1/TargetInstanceClient.java | 48 +- .../cloud/compute/v1/TargetPoolClient.java | 96 +- .../compute/v1/TargetSslProxyClient.java | 68 +- .../compute/v1/TargetTcpProxyClient.java | 52 +- .../compute/v1/TargetVpnGatewayClient.java | 48 +- ...ssionsNetworkEndpointGroupHttpRequest.java | 472 +++++ ...ldedInstanceConfigInstanceHttpRequest.java | 607 ++++++ .../google/cloud/compute/v1/UrlMapClient.java | 68 +- .../cloud/compute/v1/VpnTunnelClient.java | 48 +- .../google/cloud/compute/v1/ZoneClient.java | 20 +- .../cloud/compute/v1/ZoneOperationClient.java | 28 +- .../google/cloud/compute/v1/package-info.java | 16 + .../compute/v1/stub/HttpJsonInstanceStub.java | 136 ++ ...onNetworkEndpointGroupCallableFactory.java | 84 + .../HttpJsonNetworkEndpointGroupStub.java | 592 ++++++ .../cloud/compute/v1/stub/InstanceStub.java | 25 + .../compute/v1/stub/InstanceStubSettings.java | 115 +- .../v1/stub/NetworkEndpointGroupStub.java | 143 ++ .../NetworkEndpointGroupStubSettings.java | 860 +++++++++ .../cloud/compute/v1/InstanceClientTest.java | 254 ++- .../v1/NetworkEndpointGroupClientTest.java | 797 ++++++++ .../google-cloud-compute/synth.metadata | 8 +- 111 files changed, 18350 insertions(+), 1803 deletions(-) create mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListNetworkEndpointGroupsHttpRequest.java create mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AttachNetworkEndpointsNetworkEndpointGroupHttpRequest.java create mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceReference.java create mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteNetworkEndpointGroupHttpRequest.java create mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DetachNetworkEndpointsNetworkEndpointGroupHttpRequest.java create mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleReference.java create mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetNetworkEndpointGroupHttpRequest.java create mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetShieldedInstanceIdentityInstanceHttpRequest.java create mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthStatusForNetworkEndpoint.java create mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertNetworkEndpointGroupHttpRequest.java create mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListNetworkEndpointGroupsHttpRequest.java create mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListNetworkEndpointsNetworkEndpointGroupsHttpRequest.java create mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkEndpoint.java create mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkEndpointGroup.java create mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkEndpointGroupAggregatedList.java create mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkEndpointGroupClient.java create mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkEndpointGroupList.java create mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkEndpointGroupSettings.java create mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkEndpointGroupsAttachEndpointsRequest.java create mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkEndpointGroupsDetachEndpointsRequest.java create mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkEndpointGroupsListEndpointsRequest.java create mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkEndpointGroupsListNetworkEndpoints.java create mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkEndpointGroupsScopedList.java create mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkEndpointWithHealthStatus.java create mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneNetworkEndpointGroupName.java create mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneNetworkEndpointGroupResourceName.java create mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetShieldedInstanceIntegrityPolicyInstanceHttpRequest.java create mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsNetworkEndpointGroupHttpRequest.java create mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateShieldedInstanceConfigInstanceHttpRequest.java create mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNetworkEndpointGroupCallableFactory.java create mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNetworkEndpointGroupStub.java create mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkEndpointGroupStub.java create mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkEndpointGroupStubSettings.java create mode 100644 google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NetworkEndpointGroupClientTest.java diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypeClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypeClient.java index 58dc4d542ccf..ed3172caa2db 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypeClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypeClient.java @@ -216,9 +216,9 @@ public final AggregatedListAcceleratorTypesPagedResponse aggregatedListAccelerat * *
* try (AcceleratorTypeClient acceleratorTypeClient = AcceleratorTypeClient.create()) {
- * ProjectName project = ProjectName.of("[PROJECT]");
+ * String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListAcceleratorTypesHttpRequest request = AggregatedListAcceleratorTypesHttpRequest.newBuilder()
- * .setProject(project.toString())
+ * .setProject(formattedProject)
* .build();
* for (AcceleratorTypesScopedList element : acceleratorTypeClient.aggregatedListAcceleratorTypes(request).iterateAll()) {
* // doThingsWith(element);
@@ -243,9 +243,9 @@ public final AggregatedListAcceleratorTypesPagedResponse aggregatedListAccelerat
*
*
* try (AcceleratorTypeClient acceleratorTypeClient = AcceleratorTypeClient.create()) {
- * ProjectName project = ProjectName.of("[PROJECT]");
+ * String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListAcceleratorTypesHttpRequest request = AggregatedListAcceleratorTypesHttpRequest.newBuilder()
- * .setProject(project.toString())
+ * .setProject(formattedProject)
* .build();
* ApiFuture<AggregatedListAcceleratorTypesPagedResponse> future = acceleratorTypeClient.aggregatedListAcceleratorTypesPagedCallable().futureCall(request);
* // Do something
@@ -270,9 +270,9 @@ public final AggregatedListAcceleratorTypesPagedResponse aggregatedListAccelerat
*
*
* try (AcceleratorTypeClient acceleratorTypeClient = AcceleratorTypeClient.create()) {
- * ProjectName project = ProjectName.of("[PROJECT]");
+ * String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListAcceleratorTypesHttpRequest request = AggregatedListAcceleratorTypesHttpRequest.newBuilder()
- * .setProject(project.toString())
+ * .setProject(formattedProject)
* .build();
* while (true) {
* AcceleratorTypeAggregatedList response = acceleratorTypeClient.aggregatedListAcceleratorTypesCallable().call(request);
@@ -354,9 +354,9 @@ public final AcceleratorType getAcceleratorType(String acceleratorType) {
*
*
* try (AcceleratorTypeClient acceleratorTypeClient = AcceleratorTypeClient.create()) {
- * ProjectZoneAcceleratorTypeName acceleratorType = ProjectZoneAcceleratorTypeName.of("[PROJECT]", "[ZONE]", "[ACCELERATOR_TYPE]");
+ * String formattedAcceleratorType = ProjectZoneAcceleratorTypeName.format("[PROJECT]", "[ZONE]", "[ACCELERATOR_TYPE]");
* GetAcceleratorTypeHttpRequest request = GetAcceleratorTypeHttpRequest.newBuilder()
- * .setAcceleratorType(acceleratorType.toString())
+ * .setAcceleratorType(formattedAcceleratorType)
* .build();
* AcceleratorType response = acceleratorTypeClient.getAcceleratorType(request);
* }
@@ -378,9 +378,9 @@ public final AcceleratorType getAcceleratorType(GetAcceleratorTypeHttpRequest re
*
*
* try (AcceleratorTypeClient acceleratorTypeClient = AcceleratorTypeClient.create()) {
- * ProjectZoneAcceleratorTypeName acceleratorType = ProjectZoneAcceleratorTypeName.of("[PROJECT]", "[ZONE]", "[ACCELERATOR_TYPE]");
+ * String formattedAcceleratorType = ProjectZoneAcceleratorTypeName.format("[PROJECT]", "[ZONE]", "[ACCELERATOR_TYPE]");
* GetAcceleratorTypeHttpRequest request = GetAcceleratorTypeHttpRequest.newBuilder()
- * .setAcceleratorType(acceleratorType.toString())
+ * .setAcceleratorType(formattedAcceleratorType)
* .build();
* ApiFuture<AcceleratorType> future = acceleratorTypeClient.getAcceleratorTypeCallable().futureCall(request);
* // Do something
@@ -454,9 +454,9 @@ public final ListAcceleratorTypesPagedResponse listAcceleratorTypes(String zone)
*
*
* try (AcceleratorTypeClient acceleratorTypeClient = AcceleratorTypeClient.create()) {
- * ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]");
+ * String formattedZone = ProjectZoneName.format("[PROJECT]", "[ZONE]");
* ListAcceleratorTypesHttpRequest request = ListAcceleratorTypesHttpRequest.newBuilder()
- * .setZone(zone.toString())
+ * .setZone(formattedZone)
* .build();
* for (AcceleratorType element : acceleratorTypeClient.listAcceleratorTypes(request).iterateAll()) {
* // doThingsWith(element);
@@ -481,9 +481,9 @@ public final ListAcceleratorTypesPagedResponse listAcceleratorTypes(
*
*
* try (AcceleratorTypeClient acceleratorTypeClient = AcceleratorTypeClient.create()) {
- * ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]");
+ * String formattedZone = ProjectZoneName.format("[PROJECT]", "[ZONE]");
* ListAcceleratorTypesHttpRequest request = ListAcceleratorTypesHttpRequest.newBuilder()
- * .setZone(zone.toString())
+ * .setZone(formattedZone)
* .build();
* ApiFuture<ListAcceleratorTypesPagedResponse> future = acceleratorTypeClient.listAcceleratorTypesPagedCallable().futureCall(request);
* // Do something
@@ -507,9 +507,9 @@ public final ListAcceleratorTypesPagedResponse listAcceleratorTypes(
*
*
* try (AcceleratorTypeClient acceleratorTypeClient = AcceleratorTypeClient.create()) {
- * ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]");
+ * String formattedZone = ProjectZoneName.format("[PROJECT]", "[ZONE]");
* ListAcceleratorTypesHttpRequest request = ListAcceleratorTypesHttpRequest.newBuilder()
- * .setZone(zone.toString())
+ * .setZone(formattedZone)
* .build();
* while (true) {
* AcceleratorTypeList response = acceleratorTypeClient.listAcceleratorTypesCallable().call(request);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressClient.java
index 08d31b3cd55b..bc68eea23212 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressClient.java
@@ -211,9 +211,9 @@ public final AggregatedListAddressesPagedResponse aggregatedListAddresses(String
*
*
* try (AddressClient addressClient = AddressClient.create()) {
- * ProjectName project = ProjectName.of("[PROJECT]");
+ * String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListAddressesHttpRequest request = AggregatedListAddressesHttpRequest.newBuilder()
- * .setProject(project.toString())
+ * .setProject(formattedProject)
* .build();
* for (AddressesScopedList element : addressClient.aggregatedListAddresses(request).iterateAll()) {
* // doThingsWith(element);
@@ -238,9 +238,9 @@ public final AggregatedListAddressesPagedResponse aggregatedListAddresses(
*
*
* try (AddressClient addressClient = AddressClient.create()) {
- * ProjectName project = ProjectName.of("[PROJECT]");
+ * String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListAddressesHttpRequest request = AggregatedListAddressesHttpRequest.newBuilder()
- * .setProject(project.toString())
+ * .setProject(formattedProject)
* .build();
* ApiFuture<AggregatedListAddressesPagedResponse> future = addressClient.aggregatedListAddressesPagedCallable().futureCall(request);
* // Do something
@@ -265,9 +265,9 @@ public final AggregatedListAddressesPagedResponse aggregatedListAddresses(
*
*
* try (AddressClient addressClient = AddressClient.create()) {
- * ProjectName project = ProjectName.of("[PROJECT]");
+ * String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListAddressesHttpRequest request = AggregatedListAddressesHttpRequest.newBuilder()
- * .setProject(project.toString())
+ * .setProject(formattedProject)
* .build();
* while (true) {
* AddressAggregatedList response = addressClient.aggregatedListAddressesCallable().call(request);
@@ -348,9 +348,9 @@ public final Operation deleteAddress(String address) {
*
*
* try (AddressClient addressClient = AddressClient.create()) {
- * ProjectRegionAddressName address = ProjectRegionAddressName.of("[PROJECT]", "[REGION]", "[ADDRESS]");
+ * String formattedAddress = ProjectRegionAddressName.format("[PROJECT]", "[REGION]", "[ADDRESS]");
* DeleteAddressHttpRequest request = DeleteAddressHttpRequest.newBuilder()
- * .setAddress(address.toString())
+ * .setAddress(formattedAddress)
* .build();
* Operation response = addressClient.deleteAddress(request);
* }
@@ -372,9 +372,9 @@ public final Operation deleteAddress(DeleteAddressHttpRequest request) {
*
*
* try (AddressClient addressClient = AddressClient.create()) {
- * ProjectRegionAddressName address = ProjectRegionAddressName.of("[PROJECT]", "[REGION]", "[ADDRESS]");
+ * String formattedAddress = ProjectRegionAddressName.format("[PROJECT]", "[REGION]", "[ADDRESS]");
* DeleteAddressHttpRequest request = DeleteAddressHttpRequest.newBuilder()
- * .setAddress(address.toString())
+ * .setAddress(formattedAddress)
* .build();
* ApiFuture<Operation> future = addressClient.deleteAddressCallable().futureCall(request);
* // Do something
@@ -444,9 +444,9 @@ public final Address getAddress(String address) {
*
*
* try (AddressClient addressClient = AddressClient.create()) {
- * ProjectRegionAddressName address = ProjectRegionAddressName.of("[PROJECT]", "[REGION]", "[ADDRESS]");
+ * String formattedAddress = ProjectRegionAddressName.format("[PROJECT]", "[REGION]", "[ADDRESS]");
* GetAddressHttpRequest request = GetAddressHttpRequest.newBuilder()
- * .setAddress(address.toString())
+ * .setAddress(formattedAddress)
* .build();
* Address response = addressClient.getAddress(request);
* }
@@ -468,9 +468,9 @@ public final Address getAddress(GetAddressHttpRequest request) {
*
*
* try (AddressClient addressClient = AddressClient.create()) {
- * ProjectRegionAddressName address = ProjectRegionAddressName.of("[PROJECT]", "[REGION]", "[ADDRESS]");
+ * String formattedAddress = ProjectRegionAddressName.format("[PROJECT]", "[REGION]", "[ADDRESS]");
* GetAddressHttpRequest request = GetAddressHttpRequest.newBuilder()
- * .setAddress(address.toString())
+ * .setAddress(formattedAddress)
* .build();
* ApiFuture<Address> future = addressClient.getAddressCallable().futureCall(request);
* // Do something
@@ -553,10 +553,10 @@ public final Operation insertAddress(String region, Address addressResource) {
*
*
* try (AddressClient addressClient = AddressClient.create()) {
- * ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]");
+ * String formattedRegion = ProjectRegionName.format("[PROJECT]", "[REGION]");
* Address addressResource = Address.newBuilder().build();
* InsertAddressHttpRequest request = InsertAddressHttpRequest.newBuilder()
- * .setRegion(region.toString())
+ * .setRegion(formattedRegion)
* .setAddressResource(addressResource)
* .build();
* Operation response = addressClient.insertAddress(request);
@@ -579,10 +579,10 @@ public final Operation insertAddress(InsertAddressHttpRequest request) {
*
*
* try (AddressClient addressClient = AddressClient.create()) {
- * ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]");
+ * String formattedRegion = ProjectRegionName.format("[PROJECT]", "[REGION]");
* Address addressResource = Address.newBuilder().build();
* InsertAddressHttpRequest request = InsertAddressHttpRequest.newBuilder()
- * .setRegion(region.toString())
+ * .setRegion(formattedRegion)
* .setAddressResource(addressResource)
* .build();
* ApiFuture<Operation> future = addressClient.insertAddressCallable().futureCall(request);
@@ -656,9 +656,9 @@ public final ListAddressesPagedResponse listAddresses(String region) {
*
*
* try (AddressClient addressClient = AddressClient.create()) {
- * ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]");
+ * String formattedRegion = ProjectRegionName.format("[PROJECT]", "[REGION]");
* ListAddressesHttpRequest request = ListAddressesHttpRequest.newBuilder()
- * .setRegion(region.toString())
+ * .setRegion(formattedRegion)
* .build();
* for (Address element : addressClient.listAddresses(request).iterateAll()) {
* // doThingsWith(element);
@@ -682,9 +682,9 @@ public final ListAddressesPagedResponse listAddresses(ListAddressesHttpRequest r
*
*
* try (AddressClient addressClient = AddressClient.create()) {
- * ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]");
+ * String formattedRegion = ProjectRegionName.format("[PROJECT]", "[REGION]");
* ListAddressesHttpRequest request = ListAddressesHttpRequest.newBuilder()
- * .setRegion(region.toString())
+ * .setRegion(formattedRegion)
* .build();
* ApiFuture<ListAddressesPagedResponse> future = addressClient.listAddressesPagedCallable().futureCall(request);
* // Do something
@@ -708,9 +708,9 @@ public final ListAddressesPagedResponse listAddresses(ListAddressesHttpRequest r
*
*
* try (AddressClient addressClient = AddressClient.create()) {
- * ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]");
+ * String formattedRegion = ProjectRegionName.format("[PROJECT]", "[REGION]");
* ListAddressesHttpRequest request = ListAddressesHttpRequest.newBuilder()
- * .setRegion(region.toString())
+ * .setRegion(formattedRegion)
* .build();
* while (true) {
* AddressList response = addressClient.listAddressesCallable().call(request);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListNetworkEndpointGroupsHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListNetworkEndpointGroupsHttpRequest.java
new file mode 100644
index 000000000000..ad0e5c045c7c
--- /dev/null
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListNetworkEndpointGroupsHttpRequest.java
@@ -0,0 +1,684 @@
+/*
+ * Copyright 2019 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.google.cloud.compute.v1;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.httpjson.ApiMessage;
+import java.util.List;
+import java.util.Objects;
+import javax.annotation.Generated;
+import javax.annotation.Nullable;
+
+@Generated("by GAPIC")
+@BetaApi
+/**
+ * Request object for method compute.networkEndpointGroups.aggregatedList. Retrieves the list of
+ * network endpoint groups and sorts them by zone.
+ */
+public final class AggregatedListNetworkEndpointGroupsHttpRequest implements ApiMessage {
+ private final String access_token;
+ private final String callback;
+ private final String fields;
+ private final String filter;
+ private final String key;
+ private final Integer maxResults;
+ private final String orderBy;
+ private final String pageToken;
+ private final String prettyPrint;
+ private final String project;
+ private final String quotaUser;
+ private final String userIp;
+
+ private AggregatedListNetworkEndpointGroupsHttpRequest() {
+ this.access_token = null;
+ this.callback = null;
+ this.fields = null;
+ this.filter = null;
+ this.key = null;
+ this.maxResults = null;
+ this.orderBy = null;
+ this.pageToken = null;
+ this.prettyPrint = null;
+ this.project = null;
+ this.quotaUser = null;
+ this.userIp = null;
+ }
+
+ private AggregatedListNetworkEndpointGroupsHttpRequest(
+ String access_token,
+ String callback,
+ String fields,
+ String filter,
+ String key,
+ Integer maxResults,
+ String orderBy,
+ String pageToken,
+ String prettyPrint,
+ String project,
+ String quotaUser,
+ String userIp) {
+ this.access_token = access_token;
+ this.callback = callback;
+ this.fields = fields;
+ this.filter = filter;
+ this.key = key;
+ this.maxResults = maxResults;
+ this.orderBy = orderBy;
+ this.pageToken = pageToken;
+ this.prettyPrint = prettyPrint;
+ this.project = project;
+ this.quotaUser = quotaUser;
+ this.userIp = userIp;
+ }
+
+ @Override
+ public Object getFieldValue(String fieldName) {
+ if ("access_token".equals(fieldName)) {
+ return access_token;
+ }
+ if ("callback".equals(fieldName)) {
+ return callback;
+ }
+ if ("fields".equals(fieldName)) {
+ return fields;
+ }
+ if ("filter".equals(fieldName)) {
+ return filter;
+ }
+ if ("key".equals(fieldName)) {
+ return key;
+ }
+ if ("maxResults".equals(fieldName)) {
+ return maxResults;
+ }
+ if ("orderBy".equals(fieldName)) {
+ return orderBy;
+ }
+ if ("pageToken".equals(fieldName)) {
+ return pageToken;
+ }
+ if ("prettyPrint".equals(fieldName)) {
+ return prettyPrint;
+ }
+ if ("project".equals(fieldName)) {
+ return project;
+ }
+ if ("quotaUser".equals(fieldName)) {
+ return quotaUser;
+ }
+ if ("userIp".equals(fieldName)) {
+ return userIp;
+ }
+ return null;
+ }
+
+ @Nullable
+ @Override
+ public ApiMessage getApiMessageRequestBody() {
+ return null;
+ }
+
+ @Nullable
+ @Override
+ /**
+ * The fields that should be serialized (even if they have empty values). If the containing
+ * message object has a non-null fieldmask, then all the fields in the field mask (and only those
+ * fields in the field mask) will be serialized. If the containing object does not have a
+ * fieldmask, then only non-empty fields will be serialized.
+ */
+ public List getFieldMask() {
+ return null;
+ }
+
+ /** OAuth 2.0 token for the current user. */
+ public String getAccessToken() {
+ return access_token;
+ }
+
+ /** Name of the JavaScript callback function that handles the response. */
+ public String getCallback() {
+ return callback;
+ }
+
+ /** Selector specifying a subset of fields to include in the response. */
+ public String getFields() {
+ return fields;
+ }
+
+ /**
+ * A filter expression that filters resources listed in the response. The expression must specify
+ * the field name, a comparison operator, and the value that you want to use for filtering. The
+ * value must be a string, a number, or a boolean. The comparison operator must be either =, !=,
+ * >, or <.
+ *
+ * For example, if you are filtering Compute Engine instances, you can exclude instances named
+ * example-instance by specifying name != example-instance.
+ *
+ *
You can also filter nested fields. For example, you could specify
+ * scheduling.automaticRestart = false to include instances only if they are not scheduled for
+ * automatic restarts. You can use filtering on nested fields to filter based on resource labels.
+ *
+ *
To filter on multiple expressions, provide each separate expression within parentheses. For
+ * example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each
+ * expression is an AND expression. However, you can include AND and OR expressions explicitly.
+ * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND
+ * (scheduling.automaticRestart = true).
+ */
+ public String getFilter() {
+ return filter;
+ }
+
+ /** API key. Required unless you provide an OAuth 2.0 token. */
+ public String getKey() {
+ return key;
+ }
+
+ /**
+ * The maximum number of results per page that should be returned. If the number of available
+ * results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to
+ * get the next page of results in subsequent list requests. Acceptable values are 0 to 500,
+ * inclusive. (Default: 500)
+ */
+ public Integer getMaxResults() {
+ return maxResults;
+ }
+
+ /**
+ * Sorts list results by a certain order. By default, results are returned in alphanumerical order
+ * based on the resource name.
+ *
+ *
You can also sort results in descending order based on the creation timestamp using
+ * orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in
+ * reverse chronological order (newest result first). Use this to sort resources like operations
+ * so that the newest operation is returned first.
+ *
+ *
Currently, only sorting by name or creationTimestamp desc is supported.
+ */
+ public String getOrderBy() {
+ return orderBy;
+ }
+
+ /**
+ * Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list
+ * request to get the next page of results.
+ */
+ public String getPageToken() {
+ return pageToken;
+ }
+
+ /** Returns response with indentations and line breaks. */
+ public String getPrettyPrint() {
+ return prettyPrint;
+ }
+
+ /**
+ * Project ID for this request. It must have the format
+ * `{project}/aggregated/networkEndpointGroups`. \`{project}\` must start with a letter, and
+ * contain only letters (\`[A-Za-z]\`), numbers (\`[0-9]\`), dashes (\`-\`), * underscores
+ * (\`_\`), periods (\`.\`), tildes (\`~\`), plus (\`+\`) or percent * signs (\`%\`). It must
+ * be between 3 and 255 characters in length, and it * must not start with \`"goog"\`.
+ */
+ public String getProject() {
+ return project;
+ }
+
+ /** Alternative to userIp. */
+ public String getQuotaUser() {
+ return quotaUser;
+ }
+
+ /** IP address of the end user for whom the API call is being made. */
+ public String getUserIp() {
+ return userIp;
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(AggregatedListNetworkEndpointGroupsHttpRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ public static AggregatedListNetworkEndpointGroupsHttpRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final AggregatedListNetworkEndpointGroupsHttpRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new AggregatedListNetworkEndpointGroupsHttpRequest();
+ }
+
+ public static class Builder {
+ private String access_token;
+ private String callback;
+ private String fields;
+ private String filter;
+ private String key;
+ private Integer maxResults;
+ private String orderBy;
+ private String pageToken;
+ private String prettyPrint;
+ private String project;
+ private String quotaUser;
+ private String userIp;
+
+ Builder() {}
+
+ public Builder mergeFrom(AggregatedListNetworkEndpointGroupsHttpRequest other) {
+ if (other == AggregatedListNetworkEndpointGroupsHttpRequest.getDefaultInstance()) return this;
+ if (other.getAccessToken() != null) {
+ this.access_token = other.access_token;
+ }
+ if (other.getCallback() != null) {
+ this.callback = other.callback;
+ }
+ if (other.getFields() != null) {
+ this.fields = other.fields;
+ }
+ if (other.getFilter() != null) {
+ this.filter = other.filter;
+ }
+ if (other.getKey() != null) {
+ this.key = other.key;
+ }
+ if (other.getMaxResults() != null) {
+ this.maxResults = other.maxResults;
+ }
+ if (other.getOrderBy() != null) {
+ this.orderBy = other.orderBy;
+ }
+ if (other.getPageToken() != null) {
+ this.pageToken = other.pageToken;
+ }
+ if (other.getPrettyPrint() != null) {
+ this.prettyPrint = other.prettyPrint;
+ }
+ if (other.getProject() != null) {
+ this.project = other.project;
+ }
+ if (other.getQuotaUser() != null) {
+ this.quotaUser = other.quotaUser;
+ }
+ if (other.getUserIp() != null) {
+ this.userIp = other.userIp;
+ }
+ return this;
+ }
+
+ Builder(AggregatedListNetworkEndpointGroupsHttpRequest source) {
+ this.access_token = source.access_token;
+ this.callback = source.callback;
+ this.fields = source.fields;
+ this.filter = source.filter;
+ this.key = source.key;
+ this.maxResults = source.maxResults;
+ this.orderBy = source.orderBy;
+ this.pageToken = source.pageToken;
+ this.prettyPrint = source.prettyPrint;
+ this.project = source.project;
+ this.quotaUser = source.quotaUser;
+ this.userIp = source.userIp;
+ }
+
+ /** OAuth 2.0 token for the current user. */
+ public String getAccessToken() {
+ return access_token;
+ }
+
+ /** OAuth 2.0 token for the current user. */
+ public Builder setAccessToken(String access_token) {
+ this.access_token = access_token;
+ return this;
+ }
+
+ /** Name of the JavaScript callback function that handles the response. */
+ public String getCallback() {
+ return callback;
+ }
+
+ /** Name of the JavaScript callback function that handles the response. */
+ public Builder setCallback(String callback) {
+ this.callback = callback;
+ return this;
+ }
+
+ /** Selector specifying a subset of fields to include in the response. */
+ public String getFields() {
+ return fields;
+ }
+
+ /** Selector specifying a subset of fields to include in the response. */
+ public Builder setFields(String fields) {
+ this.fields = fields;
+ return this;
+ }
+
+ /**
+ * A filter expression that filters resources listed in the response. The expression must
+ * specify the field name, a comparison operator, and the value that you want to use for
+ * filtering. The value must be a string, a number, or a boolean. The comparison operator must
+ * be either =, !=, >, or <.
+ *
+ *
For example, if you are filtering Compute Engine instances, you can exclude instances
+ * named example-instance by specifying name != example-instance.
+ *
+ *
You can also filter nested fields. For example, you could specify
+ * scheduling.automaticRestart = false to include instances only if they are not scheduled for
+ * automatic restarts. You can use filtering on nested fields to filter based on resource
+ * labels.
+ *
+ *
To filter on multiple expressions, provide each separate expression within parentheses.
+ * For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By
+ * default, each expression is an AND expression. However, you can include AND and OR
+ * expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
+ * Broadwell") AND (scheduling.automaticRestart = true).
+ */
+ public String getFilter() {
+ return filter;
+ }
+
+ /**
+ * A filter expression that filters resources listed in the response. The expression must
+ * specify the field name, a comparison operator, and the value that you want to use for
+ * filtering. The value must be a string, a number, or a boolean. The comparison operator must
+ * be either =, !=, >, or <.
+ *
+ *
For example, if you are filtering Compute Engine instances, you can exclude instances
+ * named example-instance by specifying name != example-instance.
+ *
+ *
You can also filter nested fields. For example, you could specify
+ * scheduling.automaticRestart = false to include instances only if they are not scheduled for
+ * automatic restarts. You can use filtering on nested fields to filter based on resource
+ * labels.
+ *
+ *
To filter on multiple expressions, provide each separate expression within parentheses.
+ * For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By
+ * default, each expression is an AND expression. However, you can include AND and OR
+ * expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
+ * Broadwell") AND (scheduling.automaticRestart = true).
+ */
+ public Builder setFilter(String filter) {
+ this.filter = filter;
+ return this;
+ }
+
+ /** API key. Required unless you provide an OAuth 2.0 token. */
+ public String getKey() {
+ return key;
+ }
+
+ /** API key. Required unless you provide an OAuth 2.0 token. */
+ public Builder setKey(String key) {
+ this.key = key;
+ return this;
+ }
+
+ /**
+ * The maximum number of results per page that should be returned. If the number of available
+ * results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to
+ * get the next page of results in subsequent list requests. Acceptable values are 0 to 500,
+ * inclusive. (Default: 500)
+ */
+ public Integer getMaxResults() {
+ return maxResults;
+ }
+
+ /**
+ * The maximum number of results per page that should be returned. If the number of available
+ * results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to
+ * get the next page of results in subsequent list requests. Acceptable values are 0 to 500,
+ * inclusive. (Default: 500)
+ */
+ public Builder setMaxResults(Integer maxResults) {
+ this.maxResults = maxResults;
+ return this;
+ }
+
+ /**
+ * Sorts list results by a certain order. By default, results are returned in alphanumerical
+ * order based on the resource name.
+ *
+ *
You can also sort results in descending order based on the creation timestamp using
+ * orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in
+ * reverse chronological order (newest result first). Use this to sort resources like operations
+ * so that the newest operation is returned first.
+ *
+ *
Currently, only sorting by name or creationTimestamp desc is supported.
+ */
+ public String getOrderBy() {
+ return orderBy;
+ }
+
+ /**
+ * Sorts list results by a certain order. By default, results are returned in alphanumerical
+ * order based on the resource name.
+ *
+ *
You can also sort results in descending order based on the creation timestamp using
+ * orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in
+ * reverse chronological order (newest result first). Use this to sort resources like operations
+ * so that the newest operation is returned first.
+ *
+ *
Currently, only sorting by name or creationTimestamp desc is supported.
+ */
+ public Builder setOrderBy(String orderBy) {
+ this.orderBy = orderBy;
+ return this;
+ }
+
+ /**
+ * Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list
+ * request to get the next page of results.
+ */
+ public String getPageToken() {
+ return pageToken;
+ }
+
+ /**
+ * Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list
+ * request to get the next page of results.
+ */
+ public Builder setPageToken(String pageToken) {
+ this.pageToken = pageToken;
+ return this;
+ }
+
+ /** Returns response with indentations and line breaks. */
+ public String getPrettyPrint() {
+ return prettyPrint;
+ }
+
+ /** Returns response with indentations and line breaks. */
+ public Builder setPrettyPrint(String prettyPrint) {
+ this.prettyPrint = prettyPrint;
+ return this;
+ }
+
+ /**
+ * Project ID for this request. It must have the format
+ * `{project}/aggregated/networkEndpointGroups`. \`{project}\` must start with a letter, and
+ * contain only letters (\`[A-Za-z]\`), numbers (\`[0-9]\`), dashes (\`-\`), * underscores
+ * (\`_\`), periods (\`.\`), tildes (\`~\`), plus (\`+\`) or percent * signs (\`%\`). It
+ * must be between 3 and 255 characters in length, and it * must not start with \`"goog"\`.
+ */
+ public String getProject() {
+ return project;
+ }
+
+ /**
+ * Project ID for this request. It must have the format
+ * `{project}/aggregated/networkEndpointGroups`. \`{project}\` must start with a letter, and
+ * contain only letters (\`[A-Za-z]\`), numbers (\`[0-9]\`), dashes (\`-\`), * underscores
+ * (\`_\`), periods (\`.\`), tildes (\`~\`), plus (\`+\`) or percent * signs (\`%\`). It
+ * must be between 3 and 255 characters in length, and it * must not start with \`"goog"\`.
+ */
+ public Builder setProject(String project) {
+ this.project = project;
+ return this;
+ }
+
+ /** Alternative to userIp. */
+ public String getQuotaUser() {
+ return quotaUser;
+ }
+
+ /** Alternative to userIp. */
+ public Builder setQuotaUser(String quotaUser) {
+ this.quotaUser = quotaUser;
+ return this;
+ }
+
+ /** IP address of the end user for whom the API call is being made. */
+ public String getUserIp() {
+ return userIp;
+ }
+
+ /** IP address of the end user for whom the API call is being made. */
+ public Builder setUserIp(String userIp) {
+ this.userIp = userIp;
+ return this;
+ }
+
+ public AggregatedListNetworkEndpointGroupsHttpRequest build() {
+ String missing = "";
+
+ if (project == null) {
+ missing += " project";
+ }
+
+ if (!missing.isEmpty()) {
+ throw new IllegalStateException("Missing required properties:" + missing);
+ }
+ return new AggregatedListNetworkEndpointGroupsHttpRequest(
+ access_token,
+ callback,
+ fields,
+ filter,
+ key,
+ maxResults,
+ orderBy,
+ pageToken,
+ prettyPrint,
+ project,
+ quotaUser,
+ userIp);
+ }
+
+ public Builder clone() {
+ Builder newBuilder = new Builder();
+ newBuilder.setAccessToken(this.access_token);
+ newBuilder.setCallback(this.callback);
+ newBuilder.setFields(this.fields);
+ newBuilder.setFilter(this.filter);
+ newBuilder.setKey(this.key);
+ newBuilder.setMaxResults(this.maxResults);
+ newBuilder.setOrderBy(this.orderBy);
+ newBuilder.setPageToken(this.pageToken);
+ newBuilder.setPrettyPrint(this.prettyPrint);
+ newBuilder.setProject(this.project);
+ newBuilder.setQuotaUser(this.quotaUser);
+ newBuilder.setUserIp(this.userIp);
+ return newBuilder;
+ }
+ }
+
+ @Override
+ public String toString() {
+ return "AggregatedListNetworkEndpointGroupsHttpRequest{"
+ + "access_token="
+ + access_token
+ + ", "
+ + "callback="
+ + callback
+ + ", "
+ + "fields="
+ + fields
+ + ", "
+ + "filter="
+ + filter
+ + ", "
+ + "key="
+ + key
+ + ", "
+ + "maxResults="
+ + maxResults
+ + ", "
+ + "orderBy="
+ + orderBy
+ + ", "
+ + "pageToken="
+ + pageToken
+ + ", "
+ + "prettyPrint="
+ + prettyPrint
+ + ", "
+ + "project="
+ + project
+ + ", "
+ + "quotaUser="
+ + quotaUser
+ + ", "
+ + "userIp="
+ + userIp
+ + "}";
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (o instanceof AggregatedListNetworkEndpointGroupsHttpRequest) {
+ AggregatedListNetworkEndpointGroupsHttpRequest that =
+ (AggregatedListNetworkEndpointGroupsHttpRequest) o;
+ return Objects.equals(this.access_token, that.getAccessToken())
+ && Objects.equals(this.callback, that.getCallback())
+ && Objects.equals(this.fields, that.getFields())
+ && Objects.equals(this.filter, that.getFilter())
+ && Objects.equals(this.key, that.getKey())
+ && Objects.equals(this.maxResults, that.getMaxResults())
+ && Objects.equals(this.orderBy, that.getOrderBy())
+ && Objects.equals(this.pageToken, that.getPageToken())
+ && Objects.equals(this.prettyPrint, that.getPrettyPrint())
+ && Objects.equals(this.project, that.getProject())
+ && Objects.equals(this.quotaUser, that.getQuotaUser())
+ && Objects.equals(this.userIp, that.getUserIp());
+ }
+ return false;
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(
+ access_token,
+ callback,
+ fields,
+ filter,
+ key,
+ maxResults,
+ orderBy,
+ pageToken,
+ prettyPrint,
+ project,
+ quotaUser,
+ userIp);
+ }
+}
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AttachNetworkEndpointsNetworkEndpointGroupHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AttachNetworkEndpointsNetworkEndpointGroupHttpRequest.java
new file mode 100644
index 000000000000..fbc90928f5a1
--- /dev/null
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AttachNetworkEndpointsNetworkEndpointGroupHttpRequest.java
@@ -0,0 +1,559 @@
+/*
+ * Copyright 2019 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.google.cloud.compute.v1;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.httpjson.ApiMessage;
+import java.util.List;
+import java.util.Objects;
+import javax.annotation.Generated;
+import javax.annotation.Nullable;
+
+@Generated("by GAPIC")
+@BetaApi
+/**
+ * Request object for method compute.networkEndpointGroups.attachNetworkEndpoints. Attach a list of
+ * network endpoints to the specified network endpoint group.
+ */
+public final class AttachNetworkEndpointsNetworkEndpointGroupHttpRequest implements ApiMessage {
+ private final String access_token;
+ private final String callback;
+ private final String fields;
+ private final String key;
+ private final String networkEndpointGroup;
+ private final NetworkEndpointGroupsAttachEndpointsRequest
+ networkEndpointGroupsAttachEndpointsRequestResource;
+ private final String prettyPrint;
+ private final String quotaUser;
+ private final String requestId;
+ private final String userIp;
+
+ private AttachNetworkEndpointsNetworkEndpointGroupHttpRequest() {
+ this.access_token = null;
+ this.callback = null;
+ this.fields = null;
+ this.key = null;
+ this.networkEndpointGroup = null;
+ this.networkEndpointGroupsAttachEndpointsRequestResource = null;
+ this.prettyPrint = null;
+ this.quotaUser = null;
+ this.requestId = null;
+ this.userIp = null;
+ }
+
+ private AttachNetworkEndpointsNetworkEndpointGroupHttpRequest(
+ String access_token,
+ String callback,
+ String fields,
+ String key,
+ String networkEndpointGroup,
+ NetworkEndpointGroupsAttachEndpointsRequest
+ networkEndpointGroupsAttachEndpointsRequestResource,
+ String prettyPrint,
+ String quotaUser,
+ String requestId,
+ String userIp) {
+ this.access_token = access_token;
+ this.callback = callback;
+ this.fields = fields;
+ this.key = key;
+ this.networkEndpointGroup = networkEndpointGroup;
+ this.networkEndpointGroupsAttachEndpointsRequestResource =
+ networkEndpointGroupsAttachEndpointsRequestResource;
+ this.prettyPrint = prettyPrint;
+ this.quotaUser = quotaUser;
+ this.requestId = requestId;
+ this.userIp = userIp;
+ }
+
+ @Override
+ public Object getFieldValue(String fieldName) {
+ if ("access_token".equals(fieldName)) {
+ return access_token;
+ }
+ if ("callback".equals(fieldName)) {
+ return callback;
+ }
+ if ("fields".equals(fieldName)) {
+ return fields;
+ }
+ if ("key".equals(fieldName)) {
+ return key;
+ }
+ if ("networkEndpointGroup".equals(fieldName)) {
+ return networkEndpointGroup;
+ }
+ if ("networkEndpointGroupsAttachEndpointsRequestResource".equals(fieldName)) {
+ return networkEndpointGroupsAttachEndpointsRequestResource;
+ }
+ if ("prettyPrint".equals(fieldName)) {
+ return prettyPrint;
+ }
+ if ("quotaUser".equals(fieldName)) {
+ return quotaUser;
+ }
+ if ("requestId".equals(fieldName)) {
+ return requestId;
+ }
+ if ("userIp".equals(fieldName)) {
+ return userIp;
+ }
+ return null;
+ }
+
+ @Nullable
+ @Override
+ public NetworkEndpointGroupsAttachEndpointsRequest getApiMessageRequestBody() {
+ return networkEndpointGroupsAttachEndpointsRequestResource;
+ }
+
+ @Nullable
+ @Override
+ /**
+ * The fields that should be serialized (even if they have empty values). If the containing
+ * message object has a non-null fieldmask, then all the fields in the field mask (and only those
+ * fields in the field mask) will be serialized. If the containing object does not have a
+ * fieldmask, then only non-empty fields will be serialized.
+ */
+ public List getFieldMask() {
+ return null;
+ }
+
+ /** OAuth 2.0 token for the current user. */
+ public String getAccessToken() {
+ return access_token;
+ }
+
+ /** Name of the JavaScript callback function that handles the response. */
+ public String getCallback() {
+ return callback;
+ }
+
+ /** Selector specifying a subset of fields to include in the response. */
+ public String getFields() {
+ return fields;
+ }
+
+ /** API key. Required unless you provide an OAuth 2.0 token. */
+ public String getKey() {
+ return key;
+ }
+
+ /**
+ * The name of the network endpoint group where you are attaching network endpoints to. It should
+ * comply with RFC1035. It must have the format
+ * `{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints`.
+ * \`{networkEndpointGroup}\` must start with a letter, and contain only letters (\`[A-Za-z]\`),
+ * numbers (\`[0-9]\`), dashes (\`-\`), * underscores (\`_\`), periods (\`.\`), tildes
+ * (\`~\`), plus (\`+\`) or percent * signs (\`%\`). It must be between 3 and 255 characters
+ * in length, and it * must not start with \`"goog"\`.
+ */
+ public String getNetworkEndpointGroup() {
+ return networkEndpointGroup;
+ }
+
+ public NetworkEndpointGroupsAttachEndpointsRequest
+ getNetworkEndpointGroupsAttachEndpointsRequestResource() {
+ return networkEndpointGroupsAttachEndpointsRequestResource;
+ }
+
+ /** Returns response with indentations and line breaks. */
+ public String getPrettyPrint() {
+ return prettyPrint;
+ }
+
+ /** Alternative to userIp. */
+ public String getQuotaUser() {
+ return quotaUser;
+ }
+
+ /**
+ * An optional request ID to identify requests. Specify a unique request ID so that if you must
+ * retry your request, the server will know to ignore the request if it has already been
+ * completed.
+ *
+ * For example, consider a situation where you make an initial request and the request times
+ * out. If you make the request again with the same request ID, the server can check if original
+ * operation with the same request ID was received, and if so, will ignore the second request.
+ * This prevents clients from accidentally creating duplicate commitments.
+ *
+ *
The request ID must be a valid UUID with the exception that zero UUID is not supported
+ * (00000000-0000-0000-0000-000000000000).
+ */
+ public String getRequestId() {
+ return requestId;
+ }
+
+ /** IP address of the end user for whom the API call is being made. */
+ public String getUserIp() {
+ return userIp;
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ AttachNetworkEndpointsNetworkEndpointGroupHttpRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ public static AttachNetworkEndpointsNetworkEndpointGroupHttpRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final AttachNetworkEndpointsNetworkEndpointGroupHttpRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new AttachNetworkEndpointsNetworkEndpointGroupHttpRequest();
+ }
+
+ public static class Builder {
+ private String access_token;
+ private String callback;
+ private String fields;
+ private String key;
+ private String networkEndpointGroup;
+ private NetworkEndpointGroupsAttachEndpointsRequest
+ networkEndpointGroupsAttachEndpointsRequestResource;
+ private String prettyPrint;
+ private String quotaUser;
+ private String requestId;
+ private String userIp;
+
+ Builder() {}
+
+ public Builder mergeFrom(AttachNetworkEndpointsNetworkEndpointGroupHttpRequest other) {
+ if (other == AttachNetworkEndpointsNetworkEndpointGroupHttpRequest.getDefaultInstance())
+ return this;
+ if (other.getAccessToken() != null) {
+ this.access_token = other.access_token;
+ }
+ if (other.getCallback() != null) {
+ this.callback = other.callback;
+ }
+ if (other.getFields() != null) {
+ this.fields = other.fields;
+ }
+ if (other.getKey() != null) {
+ this.key = other.key;
+ }
+ if (other.getNetworkEndpointGroup() != null) {
+ this.networkEndpointGroup = other.networkEndpointGroup;
+ }
+ if (other.getNetworkEndpointGroupsAttachEndpointsRequestResource() != null) {
+ this.networkEndpointGroupsAttachEndpointsRequestResource =
+ other.networkEndpointGroupsAttachEndpointsRequestResource;
+ }
+ if (other.getPrettyPrint() != null) {
+ this.prettyPrint = other.prettyPrint;
+ }
+ if (other.getQuotaUser() != null) {
+ this.quotaUser = other.quotaUser;
+ }
+ if (other.getRequestId() != null) {
+ this.requestId = other.requestId;
+ }
+ if (other.getUserIp() != null) {
+ this.userIp = other.userIp;
+ }
+ return this;
+ }
+
+ Builder(AttachNetworkEndpointsNetworkEndpointGroupHttpRequest source) {
+ this.access_token = source.access_token;
+ this.callback = source.callback;
+ this.fields = source.fields;
+ this.key = source.key;
+ this.networkEndpointGroup = source.networkEndpointGroup;
+ this.networkEndpointGroupsAttachEndpointsRequestResource =
+ source.networkEndpointGroupsAttachEndpointsRequestResource;
+ this.prettyPrint = source.prettyPrint;
+ this.quotaUser = source.quotaUser;
+ this.requestId = source.requestId;
+ this.userIp = source.userIp;
+ }
+
+ /** OAuth 2.0 token for the current user. */
+ public String getAccessToken() {
+ return access_token;
+ }
+
+ /** OAuth 2.0 token for the current user. */
+ public Builder setAccessToken(String access_token) {
+ this.access_token = access_token;
+ return this;
+ }
+
+ /** Name of the JavaScript callback function that handles the response. */
+ public String getCallback() {
+ return callback;
+ }
+
+ /** Name of the JavaScript callback function that handles the response. */
+ public Builder setCallback(String callback) {
+ this.callback = callback;
+ return this;
+ }
+
+ /** Selector specifying a subset of fields to include in the response. */
+ public String getFields() {
+ return fields;
+ }
+
+ /** Selector specifying a subset of fields to include in the response. */
+ public Builder setFields(String fields) {
+ this.fields = fields;
+ return this;
+ }
+
+ /** API key. Required unless you provide an OAuth 2.0 token. */
+ public String getKey() {
+ return key;
+ }
+
+ /** API key. Required unless you provide an OAuth 2.0 token. */
+ public Builder setKey(String key) {
+ this.key = key;
+ return this;
+ }
+
+ /**
+ * The name of the network endpoint group where you are attaching network endpoints to. It
+ * should comply with RFC1035. It must have the format
+ * `{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints`.
+ * \`{networkEndpointGroup}\` must start with a letter, and contain only letters (\`[A-Za-z]\`),
+ * numbers (\`[0-9]\`), dashes (\`-\`), * underscores (\`_\`), periods (\`.\`), tildes
+ * (\`~\`), plus (\`+\`) or percent * signs (\`%\`). It must be between 3 and 255 characters
+ * in length, and it * must not start with \`"goog"\`.
+ */
+ public String getNetworkEndpointGroup() {
+ return networkEndpointGroup;
+ }
+
+ /**
+ * The name of the network endpoint group where you are attaching network endpoints to. It
+ * should comply with RFC1035. It must have the format
+ * `{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints`.
+ * \`{networkEndpointGroup}\` must start with a letter, and contain only letters (\`[A-Za-z]\`),
+ * numbers (\`[0-9]\`), dashes (\`-\`), * underscores (\`_\`), periods (\`.\`), tildes
+ * (\`~\`), plus (\`+\`) or percent * signs (\`%\`). It must be between 3 and 255 characters
+ * in length, and it * must not start with \`"goog"\`.
+ */
+ public Builder setNetworkEndpointGroup(String networkEndpointGroup) {
+ this.networkEndpointGroup = networkEndpointGroup;
+ return this;
+ }
+
+ public NetworkEndpointGroupsAttachEndpointsRequest
+ getNetworkEndpointGroupsAttachEndpointsRequestResource() {
+ return networkEndpointGroupsAttachEndpointsRequestResource;
+ }
+
+ public Builder setNetworkEndpointGroupsAttachEndpointsRequestResource(
+ NetworkEndpointGroupsAttachEndpointsRequest
+ networkEndpointGroupsAttachEndpointsRequestResource) {
+ this.networkEndpointGroupsAttachEndpointsRequestResource =
+ networkEndpointGroupsAttachEndpointsRequestResource;
+ return this;
+ }
+
+ /** Returns response with indentations and line breaks. */
+ public String getPrettyPrint() {
+ return prettyPrint;
+ }
+
+ /** Returns response with indentations and line breaks. */
+ public Builder setPrettyPrint(String prettyPrint) {
+ this.prettyPrint = prettyPrint;
+ return this;
+ }
+
+ /** Alternative to userIp. */
+ public String getQuotaUser() {
+ return quotaUser;
+ }
+
+ /** Alternative to userIp. */
+ public Builder setQuotaUser(String quotaUser) {
+ this.quotaUser = quotaUser;
+ return this;
+ }
+
+ /**
+ * An optional request ID to identify requests. Specify a unique request ID so that if you must
+ * retry your request, the server will know to ignore the request if it has already been
+ * completed.
+ *
+ *
For example, consider a situation where you make an initial request and the request times
+ * out. If you make the request again with the same request ID, the server can check if original
+ * operation with the same request ID was received, and if so, will ignore the second request.
+ * This prevents clients from accidentally creating duplicate commitments.
+ *
+ *
The request ID must be a valid UUID with the exception that zero UUID is not supported
+ * (00000000-0000-0000-0000-000000000000).
+ */
+ public String getRequestId() {
+ return requestId;
+ }
+
+ /**
+ * An optional request ID to identify requests. Specify a unique request ID so that if you must
+ * retry your request, the server will know to ignore the request if it has already been
+ * completed.
+ *
+ *
For example, consider a situation where you make an initial request and the request times
+ * out. If you make the request again with the same request ID, the server can check if original
+ * operation with the same request ID was received, and if so, will ignore the second request.
+ * This prevents clients from accidentally creating duplicate commitments.
+ *
+ *
The request ID must be a valid UUID with the exception that zero UUID is not supported
+ * (00000000-0000-0000-0000-000000000000).
+ */
+ public Builder setRequestId(String requestId) {
+ this.requestId = requestId;
+ return this;
+ }
+
+ /** IP address of the end user for whom the API call is being made. */
+ public String getUserIp() {
+ return userIp;
+ }
+
+ /** IP address of the end user for whom the API call is being made. */
+ public Builder setUserIp(String userIp) {
+ this.userIp = userIp;
+ return this;
+ }
+
+ public AttachNetworkEndpointsNetworkEndpointGroupHttpRequest build() {
+ String missing = "";
+
+ if (networkEndpointGroup == null) {
+ missing += " networkEndpointGroup";
+ }
+
+ if (!missing.isEmpty()) {
+ throw new IllegalStateException("Missing required properties:" + missing);
+ }
+ return new AttachNetworkEndpointsNetworkEndpointGroupHttpRequest(
+ access_token,
+ callback,
+ fields,
+ key,
+ networkEndpointGroup,
+ networkEndpointGroupsAttachEndpointsRequestResource,
+ prettyPrint,
+ quotaUser,
+ requestId,
+ userIp);
+ }
+
+ public Builder clone() {
+ Builder newBuilder = new Builder();
+ newBuilder.setAccessToken(this.access_token);
+ newBuilder.setCallback(this.callback);
+ newBuilder.setFields(this.fields);
+ newBuilder.setKey(this.key);
+ newBuilder.setNetworkEndpointGroup(this.networkEndpointGroup);
+ newBuilder.setNetworkEndpointGroupsAttachEndpointsRequestResource(
+ this.networkEndpointGroupsAttachEndpointsRequestResource);
+ newBuilder.setPrettyPrint(this.prettyPrint);
+ newBuilder.setQuotaUser(this.quotaUser);
+ newBuilder.setRequestId(this.requestId);
+ newBuilder.setUserIp(this.userIp);
+ return newBuilder;
+ }
+ }
+
+ @Override
+ public String toString() {
+ return "AttachNetworkEndpointsNetworkEndpointGroupHttpRequest{"
+ + "access_token="
+ + access_token
+ + ", "
+ + "callback="
+ + callback
+ + ", "
+ + "fields="
+ + fields
+ + ", "
+ + "key="
+ + key
+ + ", "
+ + "networkEndpointGroup="
+ + networkEndpointGroup
+ + ", "
+ + "networkEndpointGroupsAttachEndpointsRequestResource="
+ + networkEndpointGroupsAttachEndpointsRequestResource
+ + ", "
+ + "prettyPrint="
+ + prettyPrint
+ + ", "
+ + "quotaUser="
+ + quotaUser
+ + ", "
+ + "requestId="
+ + requestId
+ + ", "
+ + "userIp="
+ + userIp
+ + "}";
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (o instanceof AttachNetworkEndpointsNetworkEndpointGroupHttpRequest) {
+ AttachNetworkEndpointsNetworkEndpointGroupHttpRequest that =
+ (AttachNetworkEndpointsNetworkEndpointGroupHttpRequest) o;
+ return Objects.equals(this.access_token, that.getAccessToken())
+ && Objects.equals(this.callback, that.getCallback())
+ && Objects.equals(this.fields, that.getFields())
+ && Objects.equals(this.key, that.getKey())
+ && Objects.equals(this.networkEndpointGroup, that.getNetworkEndpointGroup())
+ && Objects.equals(
+ this.networkEndpointGroupsAttachEndpointsRequestResource,
+ that.getNetworkEndpointGroupsAttachEndpointsRequestResource())
+ && Objects.equals(this.prettyPrint, that.getPrettyPrint())
+ && Objects.equals(this.quotaUser, that.getQuotaUser())
+ && Objects.equals(this.requestId, that.getRequestId())
+ && Objects.equals(this.userIp, that.getUserIp());
+ }
+ return false;
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(
+ access_token,
+ callback,
+ fields,
+ key,
+ networkEndpointGroup,
+ networkEndpointGroupsAttachEndpointsRequestResource,
+ prettyPrint,
+ quotaUser,
+ requestId,
+ userIp);
+ }
+}
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerClient.java
index 1118fc2870d6..ed2d476777a7 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerClient.java
@@ -212,9 +212,9 @@ public final AggregatedListAutoscalersPagedResponse aggregatedListAutoscalers(St
*
*
* try (AutoscalerClient autoscalerClient = AutoscalerClient.create()) {
- * ProjectName project = ProjectName.of("[PROJECT]");
+ * String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListAutoscalersHttpRequest request = AggregatedListAutoscalersHttpRequest.newBuilder()
- * .setProject(project.toString())
+ * .setProject(formattedProject)
* .build();
* for (AutoscalersScopedList element : autoscalerClient.aggregatedListAutoscalers(request).iterateAll()) {
* // doThingsWith(element);
@@ -239,9 +239,9 @@ public final AggregatedListAutoscalersPagedResponse aggregatedListAutoscalers(
*
*
* try (AutoscalerClient autoscalerClient = AutoscalerClient.create()) {
- * ProjectName project = ProjectName.of("[PROJECT]");
+ * String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListAutoscalersHttpRequest request = AggregatedListAutoscalersHttpRequest.newBuilder()
- * .setProject(project.toString())
+ * .setProject(formattedProject)
* .build();
* ApiFuture<AggregatedListAutoscalersPagedResponse> future = autoscalerClient.aggregatedListAutoscalersPagedCallable().futureCall(request);
* // Do something
@@ -266,9 +266,9 @@ public final AggregatedListAutoscalersPagedResponse aggregatedListAutoscalers(
*
*
* try (AutoscalerClient autoscalerClient = AutoscalerClient.create()) {
- * ProjectName project = ProjectName.of("[PROJECT]");
+ * String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListAutoscalersHttpRequest request = AggregatedListAutoscalersHttpRequest.newBuilder()
- * .setProject(project.toString())
+ * .setProject(formattedProject)
* .build();
* while (true) {
* AutoscalerAggregatedList response = autoscalerClient.aggregatedListAutoscalersCallable().call(request);
@@ -349,9 +349,9 @@ public final Operation deleteAutoscaler(String autoscaler) {
*
*
* try (AutoscalerClient autoscalerClient = AutoscalerClient.create()) {
- * ProjectZoneAutoscalerName autoscaler = ProjectZoneAutoscalerName.of("[PROJECT]", "[ZONE]", "[AUTOSCALER]");
+ * String formattedAutoscaler = ProjectZoneAutoscalerName.format("[PROJECT]", "[ZONE]", "[AUTOSCALER]");
* DeleteAutoscalerHttpRequest request = DeleteAutoscalerHttpRequest.newBuilder()
- * .setAutoscaler(autoscaler.toString())
+ * .setAutoscaler(formattedAutoscaler)
* .build();
* Operation response = autoscalerClient.deleteAutoscaler(request);
* }
@@ -373,9 +373,9 @@ public final Operation deleteAutoscaler(DeleteAutoscalerHttpRequest request) {
*
*
* try (AutoscalerClient autoscalerClient = AutoscalerClient.create()) {
- * ProjectZoneAutoscalerName autoscaler = ProjectZoneAutoscalerName.of("[PROJECT]", "[ZONE]", "[AUTOSCALER]");
+ * String formattedAutoscaler = ProjectZoneAutoscalerName.format("[PROJECT]", "[ZONE]", "[AUTOSCALER]");
* DeleteAutoscalerHttpRequest request = DeleteAutoscalerHttpRequest.newBuilder()
- * .setAutoscaler(autoscaler.toString())
+ * .setAutoscaler(formattedAutoscaler)
* .build();
* ApiFuture<Operation> future = autoscalerClient.deleteAutoscalerCallable().futureCall(request);
* // Do something
@@ -449,9 +449,9 @@ public final Autoscaler getAutoscaler(String autoscaler) {
*
*
* try (AutoscalerClient autoscalerClient = AutoscalerClient.create()) {
- * ProjectZoneAutoscalerName autoscaler = ProjectZoneAutoscalerName.of("[PROJECT]", "[ZONE]", "[AUTOSCALER]");
+ * String formattedAutoscaler = ProjectZoneAutoscalerName.format("[PROJECT]", "[ZONE]", "[AUTOSCALER]");
* GetAutoscalerHttpRequest request = GetAutoscalerHttpRequest.newBuilder()
- * .setAutoscaler(autoscaler.toString())
+ * .setAutoscaler(formattedAutoscaler)
* .build();
* Autoscaler response = autoscalerClient.getAutoscaler(request);
* }
@@ -474,9 +474,9 @@ public final Autoscaler getAutoscaler(GetAutoscalerHttpRequest request) {
*
*
* try (AutoscalerClient autoscalerClient = AutoscalerClient.create()) {
- * ProjectZoneAutoscalerName autoscaler = ProjectZoneAutoscalerName.of("[PROJECT]", "[ZONE]", "[AUTOSCALER]");
+ * String formattedAutoscaler = ProjectZoneAutoscalerName.format("[PROJECT]", "[ZONE]", "[AUTOSCALER]");
* GetAutoscalerHttpRequest request = GetAutoscalerHttpRequest.newBuilder()
- * .setAutoscaler(autoscaler.toString())
+ * .setAutoscaler(formattedAutoscaler)
* .build();
* ApiFuture<Autoscaler> future = autoscalerClient.getAutoscalerCallable().futureCall(request);
* // Do something
@@ -563,10 +563,10 @@ public final Operation insertAutoscaler(String zone, Autoscaler autoscalerResour
*
*
* try (AutoscalerClient autoscalerClient = AutoscalerClient.create()) {
- * ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]");
+ * String formattedZone = ProjectZoneName.format("[PROJECT]", "[ZONE]");
* Autoscaler autoscalerResource = Autoscaler.newBuilder().build();
* InsertAutoscalerHttpRequest request = InsertAutoscalerHttpRequest.newBuilder()
- * .setZone(zone.toString())
+ * .setZone(formattedZone)
* .setAutoscalerResource(autoscalerResource)
* .build();
* Operation response = autoscalerClient.insertAutoscaler(request);
@@ -589,10 +589,10 @@ public final Operation insertAutoscaler(InsertAutoscalerHttpRequest request) {
*
*
* try (AutoscalerClient autoscalerClient = AutoscalerClient.create()) {
- * ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]");
+ * String formattedZone = ProjectZoneName.format("[PROJECT]", "[ZONE]");
* Autoscaler autoscalerResource = Autoscaler.newBuilder().build();
* InsertAutoscalerHttpRequest request = InsertAutoscalerHttpRequest.newBuilder()
- * .setZone(zone.toString())
+ * .setZone(formattedZone)
* .setAutoscalerResource(autoscalerResource)
* .build();
* ApiFuture<Operation> future = autoscalerClient.insertAutoscalerCallable().futureCall(request);
@@ -666,9 +666,9 @@ public final ListAutoscalersPagedResponse listAutoscalers(String zone) {
*
*
* try (AutoscalerClient autoscalerClient = AutoscalerClient.create()) {
- * ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]");
+ * String formattedZone = ProjectZoneName.format("[PROJECT]", "[ZONE]");
* ListAutoscalersHttpRequest request = ListAutoscalersHttpRequest.newBuilder()
- * .setZone(zone.toString())
+ * .setZone(formattedZone)
* .build();
* for (Autoscaler element : autoscalerClient.listAutoscalers(request).iterateAll()) {
* // doThingsWith(element);
@@ -692,9 +692,9 @@ public final ListAutoscalersPagedResponse listAutoscalers(ListAutoscalersHttpReq
*
*
* try (AutoscalerClient autoscalerClient = AutoscalerClient.create()) {
- * ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]");
+ * String formattedZone = ProjectZoneName.format("[PROJECT]", "[ZONE]");
* ListAutoscalersHttpRequest request = ListAutoscalersHttpRequest.newBuilder()
- * .setZone(zone.toString())
+ * .setZone(formattedZone)
* .build();
* ApiFuture<ListAutoscalersPagedResponse> future = autoscalerClient.listAutoscalersPagedCallable().futureCall(request);
* // Do something
@@ -718,9 +718,9 @@ public final ListAutoscalersPagedResponse listAutoscalers(ListAutoscalersHttpReq
*
*
* try (AutoscalerClient autoscalerClient = AutoscalerClient.create()) {
- * ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]");
+ * String formattedZone = ProjectZoneName.format("[PROJECT]", "[ZONE]");
* ListAutoscalersHttpRequest request = ListAutoscalersHttpRequest.newBuilder()
- * .setZone(zone.toString())
+ * .setZone(formattedZone)
* .build();
* while (true) {
* AutoscalerList response = autoscalerClient.listAutoscalersCallable().call(request);
@@ -843,12 +843,12 @@ public final Operation patchAutoscaler(
*
* try (AutoscalerClient autoscalerClient = AutoscalerClient.create()) {
* String autoscaler = "";
- * ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]");
+ * String formattedZone = ProjectZoneName.format("[PROJECT]", "[ZONE]");
* Autoscaler autoscalerResource = Autoscaler.newBuilder().build();
* List<String> fieldMask = new ArrayList<>();
* PatchAutoscalerHttpRequest request = PatchAutoscalerHttpRequest.newBuilder()
* .setAutoscaler(autoscaler)
- * .setZone(zone.toString())
+ * .setZone(formattedZone)
* .setAutoscalerResource(autoscalerResource)
* .addAllFieldMask(fieldMask)
* .build();
@@ -874,12 +874,12 @@ public final Operation patchAutoscaler(PatchAutoscalerHttpRequest request) {
*
* try (AutoscalerClient autoscalerClient = AutoscalerClient.create()) {
* String autoscaler = "";
- * ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]");
+ * String formattedZone = ProjectZoneName.format("[PROJECT]", "[ZONE]");
* Autoscaler autoscalerResource = Autoscaler.newBuilder().build();
* List<String> fieldMask = new ArrayList<>();
* PatchAutoscalerHttpRequest request = PatchAutoscalerHttpRequest.newBuilder()
* .setAutoscaler(autoscaler)
- * .setZone(zone.toString())
+ * .setZone(formattedZone)
* .setAutoscalerResource(autoscalerResource)
* .addAllFieldMask(fieldMask)
* .build();
@@ -992,12 +992,12 @@ public final Operation updateAutoscaler(
*
* try (AutoscalerClient autoscalerClient = AutoscalerClient.create()) {
* String autoscaler = "";
- * ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]");
+ * String formattedZone = ProjectZoneName.format("[PROJECT]", "[ZONE]");
* Autoscaler autoscalerResource = Autoscaler.newBuilder().build();
* List<String> fieldMask = new ArrayList<>();
* UpdateAutoscalerHttpRequest request = UpdateAutoscalerHttpRequest.newBuilder()
* .setAutoscaler(autoscaler)
- * .setZone(zone.toString())
+ * .setZone(formattedZone)
* .setAutoscalerResource(autoscalerResource)
* .addAllFieldMask(fieldMask)
* .build();
@@ -1022,12 +1022,12 @@ public final Operation updateAutoscaler(UpdateAutoscalerHttpRequest request) {
*
* try (AutoscalerClient autoscalerClient = AutoscalerClient.create()) {
* String autoscaler = "";
- * ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]");
+ * String formattedZone = ProjectZoneName.format("[PROJECT]", "[ZONE]");
* Autoscaler autoscalerResource = Autoscaler.newBuilder().build();
* List<String> fieldMask = new ArrayList<>();
* UpdateAutoscalerHttpRequest request = UpdateAutoscalerHttpRequest.newBuilder()
* .setAutoscaler(autoscaler)
- * .setZone(zone.toString())
+ * .setZone(formattedZone)
* .setAutoscalerResource(autoscalerResource)
* .addAllFieldMask(fieldMask)
* .build();
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Backend.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Backend.java
index 89ee3ad78fba..bfd656afaaea 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Backend.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Backend.java
@@ -31,8 +31,10 @@ public final class Backend implements ApiMessage {
private final String description;
private final String group;
private final Integer maxConnections;
+ private final Integer maxConnectionsPerEndpoint;
private final Integer maxConnectionsPerInstance;
private final Integer maxRate;
+ private final Float maxRatePerEndpoint;
private final Float maxRatePerInstance;
private final Float maxUtilization;
@@ -42,8 +44,10 @@ private Backend() {
this.description = null;
this.group = null;
this.maxConnections = null;
+ this.maxConnectionsPerEndpoint = null;
this.maxConnectionsPerInstance = null;
this.maxRate = null;
+ this.maxRatePerEndpoint = null;
this.maxRatePerInstance = null;
this.maxUtilization = null;
}
@@ -54,8 +58,10 @@ private Backend(
String description,
String group,
Integer maxConnections,
+ Integer maxConnectionsPerEndpoint,
Integer maxConnectionsPerInstance,
Integer maxRate,
+ Float maxRatePerEndpoint,
Float maxRatePerInstance,
Float maxUtilization) {
this.balancingMode = balancingMode;
@@ -63,8 +69,10 @@ private Backend(
this.description = description;
this.group = group;
this.maxConnections = maxConnections;
+ this.maxConnectionsPerEndpoint = maxConnectionsPerEndpoint;
this.maxConnectionsPerInstance = maxConnectionsPerInstance;
this.maxRate = maxRate;
+ this.maxRatePerEndpoint = maxRatePerEndpoint;
this.maxRatePerInstance = maxRatePerInstance;
this.maxUtilization = maxUtilization;
}
@@ -86,12 +94,18 @@ public Object getFieldValue(String fieldName) {
if ("maxConnections".equals(fieldName)) {
return maxConnections;
}
+ if ("maxConnectionsPerEndpoint".equals(fieldName)) {
+ return maxConnectionsPerEndpoint;
+ }
if ("maxConnectionsPerInstance".equals(fieldName)) {
return maxConnectionsPerInstance;
}
if ("maxRate".equals(fieldName)) {
return maxRate;
}
+ if ("maxRatePerEndpoint".equals(fieldName)) {
+ return maxRatePerEndpoint;
+ }
if ("maxRatePerInstance".equals(fieldName)) {
return maxRatePerInstance;
}
@@ -183,6 +197,18 @@ public Integer getMaxConnections() {
return maxConnections;
}
+ /**
+ * The max number of simultaneous connections that a single backend network endpoint can handle.
+ * This is used to calculate the capacity of the group. Can be used in either CONNECTION or
+ * UTILIZATION balancing modes. For CONNECTION mode, either maxConnections or
+ * maxConnectionsPerEndpoint must be set.
+ *
+ * This cannot be used for internal load balancing.
+ */
+ public Integer getMaxConnectionsPerEndpoint() {
+ return maxConnectionsPerEndpoint;
+ }
+
/**
* The max number of simultaneous connections that a single backend instance can handle. This is
* used to calculate the capacity of the group. Can be used in either CONNECTION or UTILIZATION
@@ -206,6 +232,17 @@ public Integer getMaxRate() {
return maxRate;
}
+ /**
+ * The max requests per second (RPS) that a single backend network endpoint can handle. This is
+ * used to calculate the capacity of the group. Can be used in either balancing mode. For RATE
+ * mode, either maxRate or maxRatePerEndpoint must be set.
+ *
+ *
This cannot be used for internal load balancing.
+ */
+ public Float getMaxRatePerEndpoint() {
+ return maxRatePerEndpoint;
+ }
+
/**
* The max requests per second (RPS) that a single backend instance can handle. This is used to
* calculate the capacity of the group. Can be used in either balancing mode. For RATE mode,
@@ -255,8 +292,10 @@ public static class Builder {
private String description;
private String group;
private Integer maxConnections;
+ private Integer maxConnectionsPerEndpoint;
private Integer maxConnectionsPerInstance;
private Integer maxRate;
+ private Float maxRatePerEndpoint;
private Float maxRatePerInstance;
private Float maxUtilization;
@@ -279,12 +318,18 @@ public Builder mergeFrom(Backend other) {
if (other.getMaxConnections() != null) {
this.maxConnections = other.maxConnections;
}
+ if (other.getMaxConnectionsPerEndpoint() != null) {
+ this.maxConnectionsPerEndpoint = other.maxConnectionsPerEndpoint;
+ }
if (other.getMaxConnectionsPerInstance() != null) {
this.maxConnectionsPerInstance = other.maxConnectionsPerInstance;
}
if (other.getMaxRate() != null) {
this.maxRate = other.maxRate;
}
+ if (other.getMaxRatePerEndpoint() != null) {
+ this.maxRatePerEndpoint = other.maxRatePerEndpoint;
+ }
if (other.getMaxRatePerInstance() != null) {
this.maxRatePerInstance = other.maxRatePerInstance;
}
@@ -300,8 +345,10 @@ public Builder mergeFrom(Backend other) {
this.description = source.description;
this.group = source.group;
this.maxConnections = source.maxConnections;
+ this.maxConnectionsPerEndpoint = source.maxConnectionsPerEndpoint;
this.maxConnectionsPerInstance = source.maxConnectionsPerInstance;
this.maxRate = source.maxRate;
+ this.maxRatePerEndpoint = source.maxRatePerEndpoint;
this.maxRatePerInstance = source.maxRatePerInstance;
this.maxUtilization = source.maxUtilization;
}
@@ -439,6 +486,31 @@ public Builder setMaxConnections(Integer maxConnections) {
return this;
}
+ /**
+ * The max number of simultaneous connections that a single backend network endpoint can handle.
+ * This is used to calculate the capacity of the group. Can be used in either CONNECTION or
+ * UTILIZATION balancing modes. For CONNECTION mode, either maxConnections or
+ * maxConnectionsPerEndpoint must be set.
+ *
+ *
This cannot be used for internal load balancing.
+ */
+ public Integer getMaxConnectionsPerEndpoint() {
+ return maxConnectionsPerEndpoint;
+ }
+
+ /**
+ * The max number of simultaneous connections that a single backend network endpoint can handle.
+ * This is used to calculate the capacity of the group. Can be used in either CONNECTION or
+ * UTILIZATION balancing modes. For CONNECTION mode, either maxConnections or
+ * maxConnectionsPerEndpoint must be set.
+ *
+ *
This cannot be used for internal load balancing.
+ */
+ public Builder setMaxConnectionsPerEndpoint(Integer maxConnectionsPerEndpoint) {
+ this.maxConnectionsPerEndpoint = maxConnectionsPerEndpoint;
+ return this;
+ }
+
/**
* The max number of simultaneous connections that a single backend instance can handle. This is
* used to calculate the capacity of the group. Can be used in either CONNECTION or UTILIZATION
@@ -487,6 +559,29 @@ public Builder setMaxRate(Integer maxRate) {
return this;
}
+ /**
+ * The max requests per second (RPS) that a single backend network endpoint can handle. This is
+ * used to calculate the capacity of the group. Can be used in either balancing mode. For RATE
+ * mode, either maxRate or maxRatePerEndpoint must be set.
+ *
+ *
This cannot be used for internal load balancing.
+ */
+ public Float getMaxRatePerEndpoint() {
+ return maxRatePerEndpoint;
+ }
+
+ /**
+ * The max requests per second (RPS) that a single backend network endpoint can handle. This is
+ * used to calculate the capacity of the group. Can be used in either balancing mode. For RATE
+ * mode, either maxRate or maxRatePerEndpoint must be set.
+ *
+ *
This cannot be used for internal load balancing.
+ */
+ public Builder setMaxRatePerEndpoint(Float maxRatePerEndpoint) {
+ this.maxRatePerEndpoint = maxRatePerEndpoint;
+ return this;
+ }
+
/**
* The max requests per second (RPS) that a single backend instance can handle. This is used to
* calculate the capacity of the group. Can be used in either balancing mode. For RATE mode,
@@ -539,8 +634,10 @@ public Backend build() {
description,
group,
maxConnections,
+ maxConnectionsPerEndpoint,
maxConnectionsPerInstance,
maxRate,
+ maxRatePerEndpoint,
maxRatePerInstance,
maxUtilization);
}
@@ -552,8 +649,10 @@ public Builder clone() {
newBuilder.setDescription(this.description);
newBuilder.setGroup(this.group);
newBuilder.setMaxConnections(this.maxConnections);
+ newBuilder.setMaxConnectionsPerEndpoint(this.maxConnectionsPerEndpoint);
newBuilder.setMaxConnectionsPerInstance(this.maxConnectionsPerInstance);
newBuilder.setMaxRate(this.maxRate);
+ newBuilder.setMaxRatePerEndpoint(this.maxRatePerEndpoint);
newBuilder.setMaxRatePerInstance(this.maxRatePerInstance);
newBuilder.setMaxUtilization(this.maxUtilization);
return newBuilder;
@@ -578,12 +677,18 @@ public String toString() {
+ "maxConnections="
+ maxConnections
+ ", "
+ + "maxConnectionsPerEndpoint="
+ + maxConnectionsPerEndpoint
+ + ", "
+ "maxConnectionsPerInstance="
+ maxConnectionsPerInstance
+ ", "
+ "maxRate="
+ maxRate
+ ", "
+ + "maxRatePerEndpoint="
+ + maxRatePerEndpoint
+ + ", "
+ "maxRatePerInstance="
+ maxRatePerInstance
+ ", "
@@ -604,8 +709,10 @@ public boolean equals(Object o) {
&& Objects.equals(this.description, that.getDescription())
&& Objects.equals(this.group, that.getGroup())
&& Objects.equals(this.maxConnections, that.getMaxConnections())
+ && Objects.equals(this.maxConnectionsPerEndpoint, that.getMaxConnectionsPerEndpoint())
&& Objects.equals(this.maxConnectionsPerInstance, that.getMaxConnectionsPerInstance())
&& Objects.equals(this.maxRate, that.getMaxRate())
+ && Objects.equals(this.maxRatePerEndpoint, that.getMaxRatePerEndpoint())
&& Objects.equals(this.maxRatePerInstance, that.getMaxRatePerInstance())
&& Objects.equals(this.maxUtilization, that.getMaxUtilization());
}
@@ -620,8 +727,10 @@ public int hashCode() {
description,
group,
maxConnections,
+ maxConnectionsPerEndpoint,
maxConnectionsPerInstance,
maxRate,
+ maxRatePerEndpoint,
maxRatePerInstance,
maxUtilization);
}
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketClient.java
index 6b4bf3afcda0..9e64cd621a8b 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketClient.java
@@ -226,10 +226,10 @@ public final Operation addSignedUrlKeyBackendBucket(
*
*
* try (BackendBucketClient backendBucketClient = BackendBucketClient.create()) {
- * ProjectGlobalBackendBucketName backendBucket = ProjectGlobalBackendBucketName.of("[PROJECT]", "[BACKEND_BUCKET]");
+ * String formattedBackendBucket = ProjectGlobalBackendBucketName.format("[PROJECT]", "[BACKEND_BUCKET]");
* SignedUrlKey signedUrlKeyResource = SignedUrlKey.newBuilder().build();
* AddSignedUrlKeyBackendBucketHttpRequest request = AddSignedUrlKeyBackendBucketHttpRequest.newBuilder()
- * .setBackendBucket(backendBucket.toString())
+ * .setBackendBucket(formattedBackendBucket)
* .setSignedUrlKeyResource(signedUrlKeyResource)
* .build();
* Operation response = backendBucketClient.addSignedUrlKeyBackendBucket(request);
@@ -253,10 +253,10 @@ public final Operation addSignedUrlKeyBackendBucket(
*
*
* try (BackendBucketClient backendBucketClient = BackendBucketClient.create()) {
- * ProjectGlobalBackendBucketName backendBucket = ProjectGlobalBackendBucketName.of("[PROJECT]", "[BACKEND_BUCKET]");
+ * String formattedBackendBucket = ProjectGlobalBackendBucketName.format("[PROJECT]", "[BACKEND_BUCKET]");
* SignedUrlKey signedUrlKeyResource = SignedUrlKey.newBuilder().build();
* AddSignedUrlKeyBackendBucketHttpRequest request = AddSignedUrlKeyBackendBucketHttpRequest.newBuilder()
- * .setBackendBucket(backendBucket.toString())
+ * .setBackendBucket(formattedBackendBucket)
* .setSignedUrlKeyResource(signedUrlKeyResource)
* .build();
* ApiFuture<Operation> future = backendBucketClient.addSignedUrlKeyBackendBucketCallable().futureCall(request);
@@ -329,9 +329,9 @@ public final Operation deleteBackendBucket(String backendBucket) {
*
*
* try (BackendBucketClient backendBucketClient = BackendBucketClient.create()) {
- * ProjectGlobalBackendBucketName backendBucket = ProjectGlobalBackendBucketName.of("[PROJECT]", "[BACKEND_BUCKET]");
+ * String formattedBackendBucket = ProjectGlobalBackendBucketName.format("[PROJECT]", "[BACKEND_BUCKET]");
* DeleteBackendBucketHttpRequest request = DeleteBackendBucketHttpRequest.newBuilder()
- * .setBackendBucket(backendBucket.toString())
+ * .setBackendBucket(formattedBackendBucket)
* .build();
* Operation response = backendBucketClient.deleteBackendBucket(request);
* }
@@ -353,9 +353,9 @@ public final Operation deleteBackendBucket(DeleteBackendBucketHttpRequest reques
*
*
* try (BackendBucketClient backendBucketClient = BackendBucketClient.create()) {
- * ProjectGlobalBackendBucketName backendBucket = ProjectGlobalBackendBucketName.of("[PROJECT]", "[BACKEND_BUCKET]");
+ * String formattedBackendBucket = ProjectGlobalBackendBucketName.format("[PROJECT]", "[BACKEND_BUCKET]");
* DeleteBackendBucketHttpRequest request = DeleteBackendBucketHttpRequest.newBuilder()
- * .setBackendBucket(backendBucket.toString())
+ * .setBackendBucket(formattedBackendBucket)
* .build();
* ApiFuture<Operation> future = backendBucketClient.deleteBackendBucketCallable().futureCall(request);
* // Do something
@@ -438,10 +438,10 @@ public final Operation deleteSignedUrlKeyBackendBucket(String backendBucket, Str
*
*
* try (BackendBucketClient backendBucketClient = BackendBucketClient.create()) {
- * ProjectGlobalBackendBucketName backendBucket = ProjectGlobalBackendBucketName.of("[PROJECT]", "[BACKEND_BUCKET]");
+ * String formattedBackendBucket = ProjectGlobalBackendBucketName.format("[PROJECT]", "[BACKEND_BUCKET]");
* String keyName = "";
* DeleteSignedUrlKeyBackendBucketHttpRequest request = DeleteSignedUrlKeyBackendBucketHttpRequest.newBuilder()
- * .setBackendBucket(backendBucket.toString())
+ * .setBackendBucket(formattedBackendBucket)
* .setKeyName(keyName)
* .build();
* Operation response = backendBucketClient.deleteSignedUrlKeyBackendBucket(request);
@@ -465,10 +465,10 @@ public final Operation deleteSignedUrlKeyBackendBucket(
*
*
* try (BackendBucketClient backendBucketClient = BackendBucketClient.create()) {
- * ProjectGlobalBackendBucketName backendBucket = ProjectGlobalBackendBucketName.of("[PROJECT]", "[BACKEND_BUCKET]");
+ * String formattedBackendBucket = ProjectGlobalBackendBucketName.format("[PROJECT]", "[BACKEND_BUCKET]");
* String keyName = "";
* DeleteSignedUrlKeyBackendBucketHttpRequest request = DeleteSignedUrlKeyBackendBucketHttpRequest.newBuilder()
- * .setBackendBucket(backendBucket.toString())
+ * .setBackendBucket(formattedBackendBucket)
* .setKeyName(keyName)
* .build();
* ApiFuture<Operation> future = backendBucketClient.deleteSignedUrlKeyBackendBucketCallable().futureCall(request);
@@ -544,9 +544,9 @@ public final BackendBucket getBackendBucket(String backendBucket) {
*
*
* try (BackendBucketClient backendBucketClient = BackendBucketClient.create()) {
- * ProjectGlobalBackendBucketName backendBucket = ProjectGlobalBackendBucketName.of("[PROJECT]", "[BACKEND_BUCKET]");
+ * String formattedBackendBucket = ProjectGlobalBackendBucketName.format("[PROJECT]", "[BACKEND_BUCKET]");
* GetBackendBucketHttpRequest request = GetBackendBucketHttpRequest.newBuilder()
- * .setBackendBucket(backendBucket.toString())
+ * .setBackendBucket(formattedBackendBucket)
* .build();
* BackendBucket response = backendBucketClient.getBackendBucket(request);
* }
@@ -569,9 +569,9 @@ public final BackendBucket getBackendBucket(GetBackendBucketHttpRequest request)
*
*
* try (BackendBucketClient backendBucketClient = BackendBucketClient.create()) {
- * ProjectGlobalBackendBucketName backendBucket = ProjectGlobalBackendBucketName.of("[PROJECT]", "[BACKEND_BUCKET]");
+ * String formattedBackendBucket = ProjectGlobalBackendBucketName.format("[PROJECT]", "[BACKEND_BUCKET]");
* GetBackendBucketHttpRequest request = GetBackendBucketHttpRequest.newBuilder()
- * .setBackendBucket(backendBucket.toString())
+ * .setBackendBucket(formattedBackendBucket)
* .build();
* ApiFuture<BackendBucket> future = backendBucketClient.getBackendBucketCallable().futureCall(request);
* // Do something
@@ -657,10 +657,10 @@ public final Operation insertBackendBucket(String project, BackendBucket backend
*
*
* try (BackendBucketClient backendBucketClient = BackendBucketClient.create()) {
- * ProjectName project = ProjectName.of("[PROJECT]");
+ * String formattedProject = ProjectName.format("[PROJECT]");
* BackendBucket backendBucketResource = BackendBucket.newBuilder().build();
* InsertBackendBucketHttpRequest request = InsertBackendBucketHttpRequest.newBuilder()
- * .setProject(project.toString())
+ * .setProject(formattedProject)
* .setBackendBucketResource(backendBucketResource)
* .build();
* Operation response = backendBucketClient.insertBackendBucket(request);
@@ -684,10 +684,10 @@ public final Operation insertBackendBucket(InsertBackendBucketHttpRequest reques
*
*
* try (BackendBucketClient backendBucketClient = BackendBucketClient.create()) {
- * ProjectName project = ProjectName.of("[PROJECT]");
+ * String formattedProject = ProjectName.format("[PROJECT]");
* BackendBucket backendBucketResource = BackendBucket.newBuilder().build();
* InsertBackendBucketHttpRequest request = InsertBackendBucketHttpRequest.newBuilder()
- * .setProject(project.toString())
+ * .setProject(formattedProject)
* .setBackendBucketResource(backendBucketResource)
* .build();
* ApiFuture<Operation> future = backendBucketClient.insertBackendBucketCallable().futureCall(request);
@@ -762,9 +762,9 @@ public final ListBackendBucketsPagedResponse listBackendBuckets(String project)
*
*
* try (BackendBucketClient backendBucketClient = BackendBucketClient.create()) {
- * ProjectName project = ProjectName.of("[PROJECT]");
+ * String formattedProject = ProjectName.format("[PROJECT]");
* ListBackendBucketsHttpRequest request = ListBackendBucketsHttpRequest.newBuilder()
- * .setProject(project.toString())
+ * .setProject(formattedProject)
* .build();
* for (BackendBucket element : backendBucketClient.listBackendBuckets(request).iterateAll()) {
* // doThingsWith(element);
@@ -789,9 +789,9 @@ public final ListBackendBucketsPagedResponse listBackendBuckets(
*
*
* try (BackendBucketClient backendBucketClient = BackendBucketClient.create()) {
- * ProjectName project = ProjectName.of("[PROJECT]");
+ * String formattedProject = ProjectName.format("[PROJECT]");
* ListBackendBucketsHttpRequest request = ListBackendBucketsHttpRequest.newBuilder()
- * .setProject(project.toString())
+ * .setProject(formattedProject)
* .build();
* ApiFuture<ListBackendBucketsPagedResponse> future = backendBucketClient.listBackendBucketsPagedCallable().futureCall(request);
* // Do something
@@ -815,9 +815,9 @@ public final ListBackendBucketsPagedResponse listBackendBuckets(
*
*
* try (BackendBucketClient backendBucketClient = BackendBucketClient.create()) {
- * ProjectName project = ProjectName.of("[PROJECT]");
+ * String formattedProject = ProjectName.format("[PROJECT]");
* ListBackendBucketsHttpRequest request = ListBackendBucketsHttpRequest.newBuilder()
- * .setProject(project.toString())
+ * .setProject(formattedProject)
* .build();
* while (true) {
* BackendBucketList response = backendBucketClient.listBackendBucketsCallable().call(request);
@@ -927,11 +927,11 @@ public final Operation patchBackendBucket(
*
*
* try (BackendBucketClient backendBucketClient = BackendBucketClient.create()) {
- * ProjectGlobalBackendBucketName backendBucket = ProjectGlobalBackendBucketName.of("[PROJECT]", "[BACKEND_BUCKET]");
+ * String formattedBackendBucket = ProjectGlobalBackendBucketName.format("[PROJECT]", "[BACKEND_BUCKET]");
* BackendBucket backendBucketResource = BackendBucket.newBuilder().build();
* List<String> fieldMask = new ArrayList<>();
* PatchBackendBucketHttpRequest request = PatchBackendBucketHttpRequest.newBuilder()
- * .setBackendBucket(backendBucket.toString())
+ * .setBackendBucket(formattedBackendBucket)
* .setBackendBucketResource(backendBucketResource)
* .addAllFieldMask(fieldMask)
* .build();
@@ -956,11 +956,11 @@ public final Operation patchBackendBucket(PatchBackendBucketHttpRequest request)
*
*
* try (BackendBucketClient backendBucketClient = BackendBucketClient.create()) {
- * ProjectGlobalBackendBucketName backendBucket = ProjectGlobalBackendBucketName.of("[PROJECT]", "[BACKEND_BUCKET]");
+ * String formattedBackendBucket = ProjectGlobalBackendBucketName.format("[PROJECT]", "[BACKEND_BUCKET]");
* BackendBucket backendBucketResource = BackendBucket.newBuilder().build();
* List<String> fieldMask = new ArrayList<>();
* PatchBackendBucketHttpRequest request = PatchBackendBucketHttpRequest.newBuilder()
- * .setBackendBucket(backendBucket.toString())
+ * .setBackendBucket(formattedBackendBucket)
* .setBackendBucketResource(backendBucketResource)
* .addAllFieldMask(fieldMask)
* .build();
@@ -1060,11 +1060,11 @@ public final Operation updateBackendBucket(
*
*
* try (BackendBucketClient backendBucketClient = BackendBucketClient.create()) {
- * ProjectGlobalBackendBucketName backendBucket = ProjectGlobalBackendBucketName.of("[PROJECT]", "[BACKEND_BUCKET]");
+ * String formattedBackendBucket = ProjectGlobalBackendBucketName.format("[PROJECT]", "[BACKEND_BUCKET]");
* BackendBucket backendBucketResource = BackendBucket.newBuilder().build();
* List<String> fieldMask = new ArrayList<>();
* UpdateBackendBucketHttpRequest request = UpdateBackendBucketHttpRequest.newBuilder()
- * .setBackendBucket(backendBucket.toString())
+ * .setBackendBucket(formattedBackendBucket)
* .setBackendBucketResource(backendBucketResource)
* .addAllFieldMask(fieldMask)
* .build();
@@ -1088,11 +1088,11 @@ public final Operation updateBackendBucket(UpdateBackendBucketHttpRequest reques
*
*
* try (BackendBucketClient backendBucketClient = BackendBucketClient.create()) {
- * ProjectGlobalBackendBucketName backendBucket = ProjectGlobalBackendBucketName.of("[PROJECT]", "[BACKEND_BUCKET]");
+ * String formattedBackendBucket = ProjectGlobalBackendBucketName.format("[PROJECT]", "[BACKEND_BUCKET]");
* BackendBucket backendBucketResource = BackendBucket.newBuilder().build();
* List<String> fieldMask = new ArrayList<>();
* UpdateBackendBucketHttpRequest request = UpdateBackendBucketHttpRequest.newBuilder()
- * .setBackendBucket(backendBucket.toString())
+ * .setBackendBucket(formattedBackendBucket)
* .setBackendBucketResource(backendBucketResource)
* .addAllFieldMask(fieldMask)
* .build();
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceClient.java
index 0142ca5636a0..3e0cfe69e732 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceClient.java
@@ -226,10 +226,10 @@ public final Operation addSignedUrlKeyBackendService(
*
*
* try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) {
- * ProjectGlobalBackendServiceName backendService = ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]");
+ * String formattedBackendService = ProjectGlobalBackendServiceName.format("[PROJECT]", "[BACKEND_SERVICE]");
* SignedUrlKey signedUrlKeyResource = SignedUrlKey.newBuilder().build();
* AddSignedUrlKeyBackendServiceHttpRequest request = AddSignedUrlKeyBackendServiceHttpRequest.newBuilder()
- * .setBackendService(backendService.toString())
+ * .setBackendService(formattedBackendService)
* .setSignedUrlKeyResource(signedUrlKeyResource)
* .build();
* Operation response = backendServiceClient.addSignedUrlKeyBackendService(request);
@@ -253,10 +253,10 @@ public final Operation addSignedUrlKeyBackendService(
*
*
* try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) {
- * ProjectGlobalBackendServiceName backendService = ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]");
+ * String formattedBackendService = ProjectGlobalBackendServiceName.format("[PROJECT]", "[BACKEND_SERVICE]");
* SignedUrlKey signedUrlKeyResource = SignedUrlKey.newBuilder().build();
* AddSignedUrlKeyBackendServiceHttpRequest request = AddSignedUrlKeyBackendServiceHttpRequest.newBuilder()
- * .setBackendService(backendService.toString())
+ * .setBackendService(formattedBackendService)
* .setSignedUrlKeyResource(signedUrlKeyResource)
* .build();
* ApiFuture<Operation> future = backendServiceClient.addSignedUrlKeyBackendServiceCallable().futureCall(request);
@@ -336,9 +336,9 @@ public final AggregatedListBackendServicesPagedResponse aggregatedListBackendSer
*
*
* try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) {
- * ProjectName project = ProjectName.of("[PROJECT]");
+ * String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListBackendServicesHttpRequest request = AggregatedListBackendServicesHttpRequest.newBuilder()
- * .setProject(project.toString())
+ * .setProject(formattedProject)
* .build();
* for (BackendServicesScopedList element : backendServiceClient.aggregatedListBackendServices(request).iterateAll()) {
* // doThingsWith(element);
@@ -364,9 +364,9 @@ public final AggregatedListBackendServicesPagedResponse aggregatedListBackendSer
*
*
* try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) {
- * ProjectName project = ProjectName.of("[PROJECT]");
+ * String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListBackendServicesHttpRequest request = AggregatedListBackendServicesHttpRequest.newBuilder()
- * .setProject(project.toString())
+ * .setProject(formattedProject)
* .build();
* ApiFuture<AggregatedListBackendServicesPagedResponse> future = backendServiceClient.aggregatedListBackendServicesPagedCallable().futureCall(request);
* // Do something
@@ -392,9 +392,9 @@ public final AggregatedListBackendServicesPagedResponse aggregatedListBackendSer
*
*
* try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) {
- * ProjectName project = ProjectName.of("[PROJECT]");
+ * String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListBackendServicesHttpRequest request = AggregatedListBackendServicesHttpRequest.newBuilder()
- * .setProject(project.toString())
+ * .setProject(formattedProject)
* .build();
* while (true) {
* BackendServiceAggregatedList response = backendServiceClient.aggregatedListBackendServicesCallable().call(request);
@@ -475,9 +475,9 @@ public final Operation deleteBackendService(String backendService) {
*
*
* try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) {
- * ProjectGlobalBackendServiceName backendService = ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]");
+ * String formattedBackendService = ProjectGlobalBackendServiceName.format("[PROJECT]", "[BACKEND_SERVICE]");
* DeleteBackendServiceHttpRequest request = DeleteBackendServiceHttpRequest.newBuilder()
- * .setBackendService(backendService.toString())
+ * .setBackendService(formattedBackendService)
* .build();
* Operation response = backendServiceClient.deleteBackendService(request);
* }
@@ -499,9 +499,9 @@ public final Operation deleteBackendService(DeleteBackendServiceHttpRequest requ
*
*
* try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) {
- * ProjectGlobalBackendServiceName backendService = ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]");
+ * String formattedBackendService = ProjectGlobalBackendServiceName.format("[PROJECT]", "[BACKEND_SERVICE]");
* DeleteBackendServiceHttpRequest request = DeleteBackendServiceHttpRequest.newBuilder()
- * .setBackendService(backendService.toString())
+ * .setBackendService(formattedBackendService)
* .build();
* ApiFuture<Operation> future = backendServiceClient.deleteBackendServiceCallable().futureCall(request);
* // Do something
@@ -584,10 +584,10 @@ public final Operation deleteSignedUrlKeyBackendService(String backendService, S
*
*
* try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) {
- * ProjectGlobalBackendServiceName backendService = ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]");
+ * String formattedBackendService = ProjectGlobalBackendServiceName.format("[PROJECT]", "[BACKEND_SERVICE]");
* String keyName = "";
* DeleteSignedUrlKeyBackendServiceHttpRequest request = DeleteSignedUrlKeyBackendServiceHttpRequest.newBuilder()
- * .setBackendService(backendService.toString())
+ * .setBackendService(formattedBackendService)
* .setKeyName(keyName)
* .build();
* Operation response = backendServiceClient.deleteSignedUrlKeyBackendService(request);
@@ -611,10 +611,10 @@ public final Operation deleteSignedUrlKeyBackendService(
*
*
* try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) {
- * ProjectGlobalBackendServiceName backendService = ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]");
+ * String formattedBackendService = ProjectGlobalBackendServiceName.format("[PROJECT]", "[BACKEND_SERVICE]");
* String keyName = "";
* DeleteSignedUrlKeyBackendServiceHttpRequest request = DeleteSignedUrlKeyBackendServiceHttpRequest.newBuilder()
- * .setBackendService(backendService.toString())
+ * .setBackendService(formattedBackendService)
* .setKeyName(keyName)
* .build();
* ApiFuture<Operation> future = backendServiceClient.deleteSignedUrlKeyBackendServiceCallable().futureCall(request);
@@ -687,9 +687,9 @@ public final BackendService getBackendService(String backendService) {
*
*
* try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) {
- * ProjectGlobalBackendServiceName backendService = ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]");
+ * String formattedBackendService = ProjectGlobalBackendServiceName.format("[PROJECT]", "[BACKEND_SERVICE]");
* GetBackendServiceHttpRequest request = GetBackendServiceHttpRequest.newBuilder()
- * .setBackendService(backendService.toString())
+ * .setBackendService(formattedBackendService)
* .build();
* BackendService response = backendServiceClient.getBackendService(request);
* }
@@ -711,9 +711,9 @@ public final BackendService getBackendService(GetBackendServiceHttpRequest reque
*
*
* try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) {
- * ProjectGlobalBackendServiceName backendService = ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]");
+ * String formattedBackendService = ProjectGlobalBackendServiceName.format("[PROJECT]", "[BACKEND_SERVICE]");
* GetBackendServiceHttpRequest request = GetBackendServiceHttpRequest.newBuilder()
- * .setBackendService(backendService.toString())
+ * .setBackendService(formattedBackendService)
* .build();
* ApiFuture<BackendService> future = backendServiceClient.getBackendServiceCallable().futureCall(request);
* // Do something
@@ -798,10 +798,10 @@ public final BackendServiceGroupHealth getHealthBackendService(
*
*
* try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) {
- * ProjectGlobalBackendServiceName backendService = ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]");
+ * String formattedBackendService = ProjectGlobalBackendServiceName.format("[PROJECT]", "[BACKEND_SERVICE]");
* ResourceGroupReference resourceGroupReferenceResource = ResourceGroupReference.newBuilder().build();
* GetHealthBackendServiceHttpRequest request = GetHealthBackendServiceHttpRequest.newBuilder()
- * .setBackendService(backendService.toString())
+ * .setBackendService(formattedBackendService)
* .setResourceGroupReferenceResource(resourceGroupReferenceResource)
* .build();
* BackendServiceGroupHealth response = backendServiceClient.getHealthBackendService(request);
@@ -825,10 +825,10 @@ public final BackendServiceGroupHealth getHealthBackendService(
*
*
* try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) {
- * ProjectGlobalBackendServiceName backendService = ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]");
+ * String formattedBackendService = ProjectGlobalBackendServiceName.format("[PROJECT]", "[BACKEND_SERVICE]");
* ResourceGroupReference resourceGroupReferenceResource = ResourceGroupReference.newBuilder().build();
* GetHealthBackendServiceHttpRequest request = GetHealthBackendServiceHttpRequest.newBuilder()
- * .setBackendService(backendService.toString())
+ * .setBackendService(formattedBackendService)
* .setResourceGroupReferenceResource(resourceGroupReferenceResource)
* .build();
* ApiFuture<BackendServiceGroupHealth> future = backendServiceClient.getHealthBackendServiceCallable().futureCall(request);
@@ -921,10 +921,10 @@ public final Operation insertBackendService(
*
*
* try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) {
- * ProjectName project = ProjectName.of("[PROJECT]");
+ * String formattedProject = ProjectName.format("[PROJECT]");
* BackendService backendServiceResource = BackendService.newBuilder().build();
* InsertBackendServiceHttpRequest request = InsertBackendServiceHttpRequest.newBuilder()
- * .setProject(project.toString())
+ * .setProject(formattedProject)
* .setBackendServiceResource(backendServiceResource)
* .build();
* Operation response = backendServiceClient.insertBackendService(request);
@@ -949,10 +949,10 @@ public final Operation insertBackendService(InsertBackendServiceHttpRequest requ
*
*
* try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) {
- * ProjectName project = ProjectName.of("[PROJECT]");
+ * String formattedProject = ProjectName.format("[PROJECT]");
* BackendService backendServiceResource = BackendService.newBuilder().build();
* InsertBackendServiceHttpRequest request = InsertBackendServiceHttpRequest.newBuilder()
- * .setProject(project.toString())
+ * .setProject(formattedProject)
* .setBackendServiceResource(backendServiceResource)
* .build();
* ApiFuture<Operation> future = backendServiceClient.insertBackendServiceCallable().futureCall(request);
@@ -1027,9 +1027,9 @@ public final ListBackendServicesPagedResponse listBackendServices(String project
*
*
* try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) {
- * ProjectName project = ProjectName.of("[PROJECT]");
+ * String formattedProject = ProjectName.format("[PROJECT]");
* ListBackendServicesHttpRequest request = ListBackendServicesHttpRequest.newBuilder()
- * .setProject(project.toString())
+ * .setProject(formattedProject)
* .build();
* for (BackendService element : backendServiceClient.listBackendServices(request).iterateAll()) {
* // doThingsWith(element);
@@ -1054,9 +1054,9 @@ public final ListBackendServicesPagedResponse listBackendServices(
*
*
* try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) {
- * ProjectName project = ProjectName.of("[PROJECT]");
+ * String formattedProject = ProjectName.format("[PROJECT]");
* ListBackendServicesHttpRequest request = ListBackendServicesHttpRequest.newBuilder()
- * .setProject(project.toString())
+ * .setProject(formattedProject)
* .build();
* ApiFuture<ListBackendServicesPagedResponse> future = backendServiceClient.listBackendServicesPagedCallable().futureCall(request);
* // Do something
@@ -1080,9 +1080,9 @@ public final ListBackendServicesPagedResponse listBackendServices(
*
*
* try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) {
- * ProjectName project = ProjectName.of("[PROJECT]");
+ * String formattedProject = ProjectName.format("[PROJECT]");
* ListBackendServicesHttpRequest request = ListBackendServicesHttpRequest.newBuilder()
- * .setProject(project.toString())
+ * .setProject(formattedProject)
* .build();
* while (true) {
* BackendServiceList response = backendServiceClient.listBackendServicesCallable().call(request);
@@ -1200,11 +1200,11 @@ public final Operation patchBackendService(
*
*
* try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) {
- * ProjectGlobalBackendServiceName backendService = ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]");
+ * String formattedBackendService = ProjectGlobalBackendServiceName.format("[PROJECT]", "[BACKEND_SERVICE]");
* BackendService backendServiceResource = BackendService.newBuilder().build();
* List<String> fieldMask = new ArrayList<>();
* PatchBackendServiceHttpRequest request = PatchBackendServiceHttpRequest.newBuilder()
- * .setBackendService(backendService.toString())
+ * .setBackendService(formattedBackendService)
* .setBackendServiceResource(backendServiceResource)
* .addAllFieldMask(fieldMask)
* .build();
@@ -1231,11 +1231,11 @@ public final Operation patchBackendService(PatchBackendServiceHttpRequest reques
*
*
* try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) {
- * ProjectGlobalBackendServiceName backendService = ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]");
+ * String formattedBackendService = ProjectGlobalBackendServiceName.format("[PROJECT]", "[BACKEND_SERVICE]");
* BackendService backendServiceResource = BackendService.newBuilder().build();
* List<String> fieldMask = new ArrayList<>();
* PatchBackendServiceHttpRequest request = PatchBackendServiceHttpRequest.newBuilder()
- * .setBackendService(backendService.toString())
+ * .setBackendService(formattedBackendService)
* .setBackendServiceResource(backendServiceResource)
* .addAllFieldMask(fieldMask)
* .build();
@@ -1322,10 +1322,10 @@ public final Operation setSecurityPolicyBackendService(
*
*
* try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) {
- * ProjectGlobalBackendServiceName backendService = ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]");
+ * String formattedBackendService = ProjectGlobalBackendServiceName.format("[PROJECT]", "[BACKEND_SERVICE]");
* SecurityPolicyReference securityPolicyReferenceResource = SecurityPolicyReference.newBuilder().build();
* SetSecurityPolicyBackendServiceHttpRequest request = SetSecurityPolicyBackendServiceHttpRequest.newBuilder()
- * .setBackendService(backendService.toString())
+ * .setBackendService(formattedBackendService)
* .setSecurityPolicyReferenceResource(securityPolicyReferenceResource)
* .build();
* Operation response = backendServiceClient.setSecurityPolicyBackendService(request);
@@ -1349,10 +1349,10 @@ public final Operation setSecurityPolicyBackendService(
*
*
* try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) {
- * ProjectGlobalBackendServiceName backendService = ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]");
+ * String formattedBackendService = ProjectGlobalBackendServiceName.format("[PROJECT]", "[BACKEND_SERVICE]");
* SecurityPolicyReference securityPolicyReferenceResource = SecurityPolicyReference.newBuilder().build();
* SetSecurityPolicyBackendServiceHttpRequest request = SetSecurityPolicyBackendServiceHttpRequest.newBuilder()
- * .setBackendService(backendService.toString())
+ * .setBackendService(formattedBackendService)
* .setSecurityPolicyReferenceResource(securityPolicyReferenceResource)
* .build();
* ApiFuture<Operation> future = backendServiceClient.setSecurityPolicyBackendServiceCallable().futureCall(request);
@@ -1459,11 +1459,11 @@ public final Operation updateBackendService(
*
*
* try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) {
- * ProjectGlobalBackendServiceName backendService = ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]");
+ * String formattedBackendService = ProjectGlobalBackendServiceName.format("[PROJECT]", "[BACKEND_SERVICE]");
* BackendService backendServiceResource = BackendService.newBuilder().build();
* List<String> fieldMask = new ArrayList<>();
* UpdateBackendServiceHttpRequest request = UpdateBackendServiceHttpRequest.newBuilder()
- * .setBackendService(backendService.toString())
+ * .setBackendService(formattedBackendService)
* .setBackendServiceResource(backendServiceResource)
* .addAllFieldMask(fieldMask)
* .build();
@@ -1489,11 +1489,11 @@ public final Operation updateBackendService(UpdateBackendServiceHttpRequest requ
*
*
* try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) {
- * ProjectGlobalBackendServiceName backendService = ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]");
+ * String formattedBackendService = ProjectGlobalBackendServiceName.format("[PROJECT]", "[BACKEND_SERVICE]");
* BackendService backendServiceResource = BackendService.newBuilder().build();
* List<String> fieldMask = new ArrayList<>();
* UpdateBackendServiceHttpRequest request = UpdateBackendServiceHttpRequest.newBuilder()
- * .setBackendService(backendService.toString())
+ * .setBackendService(formattedBackendService)
* .setBackendServiceResource(backendServiceResource)
* .addAllFieldMask(fieldMask)
* .build();
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceReference.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceReference.java
new file mode 100644
index 000000000000..ef765ef572e9
--- /dev/null
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceReference.java
@@ -0,0 +1,148 @@
+/*
+ * Copyright 2019 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.google.cloud.compute.v1;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.httpjson.ApiMessage;
+import java.util.List;
+import java.util.Objects;
+import javax.annotation.Generated;
+import javax.annotation.Nullable;
+
+@Generated("by GAPIC")
+@BetaApi
+public final class BackendServiceReference implements ApiMessage {
+ private final String backendService;
+
+ private BackendServiceReference() {
+ this.backendService = null;
+ }
+
+ private BackendServiceReference(String backendService) {
+ this.backendService = backendService;
+ }
+
+ @Override
+ public Object getFieldValue(String fieldName) {
+ if ("backendService".equals(fieldName)) {
+ return backendService;
+ }
+ return null;
+ }
+
+ @Nullable
+ @Override
+ public ApiMessage getApiMessageRequestBody() {
+ return null;
+ }
+
+ @Nullable
+ @Override
+ /**
+ * The fields that should be serialized (even if they have empty values). If the containing
+ * message object has a non-null fieldmask, then all the fields in the field mask (and only those
+ * fields in the field mask) will be serialized. If the containing object does not have a
+ * fieldmask, then only non-empty fields will be serialized.
+ */
+ public List getFieldMask() {
+ return null;
+ }
+
+ public String getBackendService() {
+ return backendService;
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(BackendServiceReference prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ public static BackendServiceReference getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final BackendServiceReference DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new BackendServiceReference();
+ }
+
+ public static class Builder {
+ private String backendService;
+
+ Builder() {}
+
+ public Builder mergeFrom(BackendServiceReference other) {
+ if (other == BackendServiceReference.getDefaultInstance()) return this;
+ if (other.getBackendService() != null) {
+ this.backendService = other.backendService;
+ }
+ return this;
+ }
+
+ Builder(BackendServiceReference source) {
+ this.backendService = source.backendService;
+ }
+
+ public String getBackendService() {
+ return backendService;
+ }
+
+ public Builder setBackendService(String backendService) {
+ this.backendService = backendService;
+ return this;
+ }
+
+ public BackendServiceReference build() {
+ return new BackendServiceReference(backendService);
+ }
+
+ public Builder clone() {
+ Builder newBuilder = new Builder();
+ newBuilder.setBackendService(this.backendService);
+ return newBuilder;
+ }
+ }
+
+ @Override
+ public String toString() {
+ return "BackendServiceReference{" + "backendService=" + backendService + "}";
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (o instanceof BackendServiceReference) {
+ BackendServiceReference that = (BackendServiceReference) o;
+ return Objects.equals(this.backendService, that.getBackendService());
+ }
+ return false;
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(backendService);
+ }
+}
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Binding.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Binding.java
index 312c0f43108d..5550f2fce281 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Binding.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Binding.java
@@ -76,9 +76,9 @@ public List getFieldMask() {
}
/**
- * Unimplemented. The condition that is associated with this binding. NOTE: an unsatisfied
- * condition will not allow user access via current binding. Different bindings, including their
- * conditions, are examined independently.
+ * The condition that is associated with this binding. NOTE: an unsatisfied condition will not
+ * allow user access via current binding. Different bindings, including their conditions, are
+ * examined independently.
*/
public Expr getCondition() {
return condition;
@@ -168,18 +168,18 @@ public Builder mergeFrom(Binding other) {
}
/**
- * Unimplemented. The condition that is associated with this binding. NOTE: an unsatisfied
- * condition will not allow user access via current binding. Different bindings, including their
- * conditions, are examined independently.
+ * The condition that is associated with this binding. NOTE: an unsatisfied condition will not
+ * allow user access via current binding. Different bindings, including their conditions, are
+ * examined independently.
*/
public Expr getCondition() {
return condition;
}
/**
- * Unimplemented. The condition that is associated with this binding. NOTE: an unsatisfied
- * condition will not allow user access via current binding. Different bindings, including their
- * conditions, are examined independently.
+ * The condition that is associated with this binding. NOTE: an unsatisfied condition will not
+ * allow user access via current binding. Different bindings, including their conditions, are
+ * examined independently.
*/
public Builder setCondition(Expr condition) {
this.condition = condition;
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteNetworkEndpointGroupHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteNetworkEndpointGroupHttpRequest.java
new file mode 100644
index 000000000000..864d5d69e7ad
--- /dev/null
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteNetworkEndpointGroupHttpRequest.java
@@ -0,0 +1,509 @@
+/*
+ * Copyright 2019 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.google.cloud.compute.v1;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.httpjson.ApiMessage;
+import java.util.List;
+import java.util.Objects;
+import javax.annotation.Generated;
+import javax.annotation.Nullable;
+
+@Generated("by GAPIC")
+@BetaApi
+/**
+ * Request object for method compute.networkEndpointGroups.delete. Deletes the specified network
+ * endpoint group. The network endpoints in the NEG and the VM instances they belong to are not
+ * terminated when the NEG is deleted. Note that the NEG cannot be deleted if there are backend
+ * services referencing it.
+ */
+public final class DeleteNetworkEndpointGroupHttpRequest implements ApiMessage {
+ private final String access_token;
+ private final String callback;
+ private final String fields;
+ private final String key;
+ private final String networkEndpointGroup;
+ private final String prettyPrint;
+ private final String quotaUser;
+ private final String requestId;
+ private final String userIp;
+
+ private DeleteNetworkEndpointGroupHttpRequest() {
+ this.access_token = null;
+ this.callback = null;
+ this.fields = null;
+ this.key = null;
+ this.networkEndpointGroup = null;
+ this.prettyPrint = null;
+ this.quotaUser = null;
+ this.requestId = null;
+ this.userIp = null;
+ }
+
+ private DeleteNetworkEndpointGroupHttpRequest(
+ String access_token,
+ String callback,
+ String fields,
+ String key,
+ String networkEndpointGroup,
+ String prettyPrint,
+ String quotaUser,
+ String requestId,
+ String userIp) {
+ this.access_token = access_token;
+ this.callback = callback;
+ this.fields = fields;
+ this.key = key;
+ this.networkEndpointGroup = networkEndpointGroup;
+ this.prettyPrint = prettyPrint;
+ this.quotaUser = quotaUser;
+ this.requestId = requestId;
+ this.userIp = userIp;
+ }
+
+ @Override
+ public Object getFieldValue(String fieldName) {
+ if ("access_token".equals(fieldName)) {
+ return access_token;
+ }
+ if ("callback".equals(fieldName)) {
+ return callback;
+ }
+ if ("fields".equals(fieldName)) {
+ return fields;
+ }
+ if ("key".equals(fieldName)) {
+ return key;
+ }
+ if ("networkEndpointGroup".equals(fieldName)) {
+ return networkEndpointGroup;
+ }
+ if ("prettyPrint".equals(fieldName)) {
+ return prettyPrint;
+ }
+ if ("quotaUser".equals(fieldName)) {
+ return quotaUser;
+ }
+ if ("requestId".equals(fieldName)) {
+ return requestId;
+ }
+ if ("userIp".equals(fieldName)) {
+ return userIp;
+ }
+ return null;
+ }
+
+ @Nullable
+ @Override
+ public ApiMessage getApiMessageRequestBody() {
+ return null;
+ }
+
+ @Nullable
+ @Override
+ /**
+ * The fields that should be serialized (even if they have empty values). If the containing
+ * message object has a non-null fieldmask, then all the fields in the field mask (and only those
+ * fields in the field mask) will be serialized. If the containing object does not have a
+ * fieldmask, then only non-empty fields will be serialized.
+ */
+ public List getFieldMask() {
+ return null;
+ }
+
+ /** OAuth 2.0 token for the current user. */
+ public String getAccessToken() {
+ return access_token;
+ }
+
+ /** Name of the JavaScript callback function that handles the response. */
+ public String getCallback() {
+ return callback;
+ }
+
+ /** Selector specifying a subset of fields to include in the response. */
+ public String getFields() {
+ return fields;
+ }
+
+ /** API key. Required unless you provide an OAuth 2.0 token. */
+ public String getKey() {
+ return key;
+ }
+
+ /**
+ * The name of the network endpoint group to delete. It should comply with RFC1035. It must have
+ * the format `{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}`.
+ * \`{networkEndpointGroup}\` must start with a letter, and contain only letters (\`[A-Za-z]\`),
+ * numbers (\`[0-9]\`), dashes (\`-\`), * underscores (\`_\`), periods (\`.\`), tildes
+ * (\`~\`), plus (\`+\`) or percent * signs (\`%\`). It must be between 3 and 255 characters
+ * in length, and it * must not start with \`"goog"\`.
+ */
+ public String getNetworkEndpointGroup() {
+ return networkEndpointGroup;
+ }
+
+ /** Returns response with indentations and line breaks. */
+ public String getPrettyPrint() {
+ return prettyPrint;
+ }
+
+ /** Alternative to userIp. */
+ public String getQuotaUser() {
+ return quotaUser;
+ }
+
+ /**
+ * An optional request ID to identify requests. Specify a unique request ID so that if you must
+ * retry your request, the server will know to ignore the request if it has already been
+ * completed.
+ *
+ * For example, consider a situation where you make an initial request and the request times
+ * out. If you make the request again with the same request ID, the server can check if original
+ * operation with the same request ID was received, and if so, will ignore the second request.
+ * This prevents clients from accidentally creating duplicate commitments.
+ *
+ *
The request ID must be a valid UUID with the exception that zero UUID is not supported
+ * (00000000-0000-0000-0000-000000000000).
+ */
+ public String getRequestId() {
+ return requestId;
+ }
+
+ /** IP address of the end user for whom the API call is being made. */
+ public String getUserIp() {
+ return userIp;
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(DeleteNetworkEndpointGroupHttpRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ public static DeleteNetworkEndpointGroupHttpRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final DeleteNetworkEndpointGroupHttpRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new DeleteNetworkEndpointGroupHttpRequest();
+ }
+
+ public static class Builder {
+ private String access_token;
+ private String callback;
+ private String fields;
+ private String key;
+ private String networkEndpointGroup;
+ private String prettyPrint;
+ private String quotaUser;
+ private String requestId;
+ private String userIp;
+
+ Builder() {}
+
+ public Builder mergeFrom(DeleteNetworkEndpointGroupHttpRequest other) {
+ if (other == DeleteNetworkEndpointGroupHttpRequest.getDefaultInstance()) return this;
+ if (other.getAccessToken() != null) {
+ this.access_token = other.access_token;
+ }
+ if (other.getCallback() != null) {
+ this.callback = other.callback;
+ }
+ if (other.getFields() != null) {
+ this.fields = other.fields;
+ }
+ if (other.getKey() != null) {
+ this.key = other.key;
+ }
+ if (other.getNetworkEndpointGroup() != null) {
+ this.networkEndpointGroup = other.networkEndpointGroup;
+ }
+ if (other.getPrettyPrint() != null) {
+ this.prettyPrint = other.prettyPrint;
+ }
+ if (other.getQuotaUser() != null) {
+ this.quotaUser = other.quotaUser;
+ }
+ if (other.getRequestId() != null) {
+ this.requestId = other.requestId;
+ }
+ if (other.getUserIp() != null) {
+ this.userIp = other.userIp;
+ }
+ return this;
+ }
+
+ Builder(DeleteNetworkEndpointGroupHttpRequest source) {
+ this.access_token = source.access_token;
+ this.callback = source.callback;
+ this.fields = source.fields;
+ this.key = source.key;
+ this.networkEndpointGroup = source.networkEndpointGroup;
+ this.prettyPrint = source.prettyPrint;
+ this.quotaUser = source.quotaUser;
+ this.requestId = source.requestId;
+ this.userIp = source.userIp;
+ }
+
+ /** OAuth 2.0 token for the current user. */
+ public String getAccessToken() {
+ return access_token;
+ }
+
+ /** OAuth 2.0 token for the current user. */
+ public Builder setAccessToken(String access_token) {
+ this.access_token = access_token;
+ return this;
+ }
+
+ /** Name of the JavaScript callback function that handles the response. */
+ public String getCallback() {
+ return callback;
+ }
+
+ /** Name of the JavaScript callback function that handles the response. */
+ public Builder setCallback(String callback) {
+ this.callback = callback;
+ return this;
+ }
+
+ /** Selector specifying a subset of fields to include in the response. */
+ public String getFields() {
+ return fields;
+ }
+
+ /** Selector specifying a subset of fields to include in the response. */
+ public Builder setFields(String fields) {
+ this.fields = fields;
+ return this;
+ }
+
+ /** API key. Required unless you provide an OAuth 2.0 token. */
+ public String getKey() {
+ return key;
+ }
+
+ /** API key. Required unless you provide an OAuth 2.0 token. */
+ public Builder setKey(String key) {
+ this.key = key;
+ return this;
+ }
+
+ /**
+ * The name of the network endpoint group to delete. It should comply with RFC1035. It must have
+ * the format `{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}`.
+ * \`{networkEndpointGroup}\` must start with a letter, and contain only letters (\`[A-Za-z]\`),
+ * numbers (\`[0-9]\`), dashes (\`-\`), * underscores (\`_\`), periods (\`.\`), tildes
+ * (\`~\`), plus (\`+\`) or percent * signs (\`%\`). It must be between 3 and 255 characters
+ * in length, and it * must not start with \`"goog"\`.
+ */
+ public String getNetworkEndpointGroup() {
+ return networkEndpointGroup;
+ }
+
+ /**
+ * The name of the network endpoint group to delete. It should comply with RFC1035. It must have
+ * the format `{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}`.
+ * \`{networkEndpointGroup}\` must start with a letter, and contain only letters (\`[A-Za-z]\`),
+ * numbers (\`[0-9]\`), dashes (\`-\`), * underscores (\`_\`), periods (\`.\`), tildes
+ * (\`~\`), plus (\`+\`) or percent * signs (\`%\`). It must be between 3 and 255 characters
+ * in length, and it * must not start with \`"goog"\`.
+ */
+ public Builder setNetworkEndpointGroup(String networkEndpointGroup) {
+ this.networkEndpointGroup = networkEndpointGroup;
+ return this;
+ }
+
+ /** Returns response with indentations and line breaks. */
+ public String getPrettyPrint() {
+ return prettyPrint;
+ }
+
+ /** Returns response with indentations and line breaks. */
+ public Builder setPrettyPrint(String prettyPrint) {
+ this.prettyPrint = prettyPrint;
+ return this;
+ }
+
+ /** Alternative to userIp. */
+ public String getQuotaUser() {
+ return quotaUser;
+ }
+
+ /** Alternative to userIp. */
+ public Builder setQuotaUser(String quotaUser) {
+ this.quotaUser = quotaUser;
+ return this;
+ }
+
+ /**
+ * An optional request ID to identify requests. Specify a unique request ID so that if you must
+ * retry your request, the server will know to ignore the request if it has already been
+ * completed.
+ *
+ *
For example, consider a situation where you make an initial request and the request times
+ * out. If you make the request again with the same request ID, the server can check if original
+ * operation with the same request ID was received, and if so, will ignore the second request.
+ * This prevents clients from accidentally creating duplicate commitments.
+ *
+ *
The request ID must be a valid UUID with the exception that zero UUID is not supported
+ * (00000000-0000-0000-0000-000000000000).
+ */
+ public String getRequestId() {
+ return requestId;
+ }
+
+ /**
+ * An optional request ID to identify requests. Specify a unique request ID so that if you must
+ * retry your request, the server will know to ignore the request if it has already been
+ * completed.
+ *
+ *
For example, consider a situation where you make an initial request and the request times
+ * out. If you make the request again with the same request ID, the server can check if original
+ * operation with the same request ID was received, and if so, will ignore the second request.
+ * This prevents clients from accidentally creating duplicate commitments.
+ *
+ *
The request ID must be a valid UUID with the exception that zero UUID is not supported
+ * (00000000-0000-0000-0000-000000000000).
+ */
+ public Builder setRequestId(String requestId) {
+ this.requestId = requestId;
+ return this;
+ }
+
+ /** IP address of the end user for whom the API call is being made. */
+ public String getUserIp() {
+ return userIp;
+ }
+
+ /** IP address of the end user for whom the API call is being made. */
+ public Builder setUserIp(String userIp) {
+ this.userIp = userIp;
+ return this;
+ }
+
+ public DeleteNetworkEndpointGroupHttpRequest build() {
+ String missing = "";
+
+ if (networkEndpointGroup == null) {
+ missing += " networkEndpointGroup";
+ }
+
+ if (!missing.isEmpty()) {
+ throw new IllegalStateException("Missing required properties:" + missing);
+ }
+ return new DeleteNetworkEndpointGroupHttpRequest(
+ access_token,
+ callback,
+ fields,
+ key,
+ networkEndpointGroup,
+ prettyPrint,
+ quotaUser,
+ requestId,
+ userIp);
+ }
+
+ public Builder clone() {
+ Builder newBuilder = new Builder();
+ newBuilder.setAccessToken(this.access_token);
+ newBuilder.setCallback(this.callback);
+ newBuilder.setFields(this.fields);
+ newBuilder.setKey(this.key);
+ newBuilder.setNetworkEndpointGroup(this.networkEndpointGroup);
+ newBuilder.setPrettyPrint(this.prettyPrint);
+ newBuilder.setQuotaUser(this.quotaUser);
+ newBuilder.setRequestId(this.requestId);
+ newBuilder.setUserIp(this.userIp);
+ return newBuilder;
+ }
+ }
+
+ @Override
+ public String toString() {
+ return "DeleteNetworkEndpointGroupHttpRequest{"
+ + "access_token="
+ + access_token
+ + ", "
+ + "callback="
+ + callback
+ + ", "
+ + "fields="
+ + fields
+ + ", "
+ + "key="
+ + key
+ + ", "
+ + "networkEndpointGroup="
+ + networkEndpointGroup
+ + ", "
+ + "prettyPrint="
+ + prettyPrint
+ + ", "
+ + "quotaUser="
+ + quotaUser
+ + ", "
+ + "requestId="
+ + requestId
+ + ", "
+ + "userIp="
+ + userIp
+ + "}";
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (o instanceof DeleteNetworkEndpointGroupHttpRequest) {
+ DeleteNetworkEndpointGroupHttpRequest that = (DeleteNetworkEndpointGroupHttpRequest) o;
+ return Objects.equals(this.access_token, that.getAccessToken())
+ && Objects.equals(this.callback, that.getCallback())
+ && Objects.equals(this.fields, that.getFields())
+ && Objects.equals(this.key, that.getKey())
+ && Objects.equals(this.networkEndpointGroup, that.getNetworkEndpointGroup())
+ && Objects.equals(this.prettyPrint, that.getPrettyPrint())
+ && Objects.equals(this.quotaUser, that.getQuotaUser())
+ && Objects.equals(this.requestId, that.getRequestId())
+ && Objects.equals(this.userIp, that.getUserIp());
+ }
+ return false;
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(
+ access_token,
+ callback,
+ fields,
+ key,
+ networkEndpointGroup,
+ prettyPrint,
+ quotaUser,
+ requestId,
+ userIp);
+ }
+}
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeprecationStatus.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeprecationStatus.java
index d9320e00d7c6..87865ddc170e 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeprecationStatus.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeprecationStatus.java
@@ -123,7 +123,7 @@ public String getReplacement() {
}
/**
- * The deprecation state of this resource. This can be ACTIVE DEPRECATED, OBSOLETE, or DELETED.
+ * The deprecation state of this resource. This can be ACTIVE, DEPRECATED, OBSOLETE, or DELETED.
* Operations which communicate the end of life date for an image, can use ACTIVE. Operations
* which create a new resource using a DEPRECATED resource will return successfully, but with a
* warning indicating the deprecated resource and recommending its replacement. Operations which
@@ -267,7 +267,7 @@ public Builder setReplacement(String replacement) {
}
/**
- * The deprecation state of this resource. This can be ACTIVE DEPRECATED, OBSOLETE, or DELETED.
+ * The deprecation state of this resource. This can be ACTIVE, DEPRECATED, OBSOLETE, or DELETED.
* Operations which communicate the end of life date for an image, can use ACTIVE. Operations
* which create a new resource using a DEPRECATED resource will return successfully, but with a
* warning indicating the deprecated resource and recommending its replacement. Operations which
@@ -278,7 +278,7 @@ public String getState() {
}
/**
- * The deprecation state of this resource. This can be ACTIVE DEPRECATED, OBSOLETE, or DELETED.
+ * The deprecation state of this resource. This can be ACTIVE, DEPRECATED, OBSOLETE, or DELETED.
* Operations which communicate the end of life date for an image, can use ACTIVE. Operations
* which create a new resource using a DEPRECATED resource will return successfully, but with a
* warning indicating the deprecated resource and recommending its replacement. Operations which
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DetachNetworkEndpointsNetworkEndpointGroupHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DetachNetworkEndpointsNetworkEndpointGroupHttpRequest.java
new file mode 100644
index 000000000000..93184e401ed8
--- /dev/null
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DetachNetworkEndpointsNetworkEndpointGroupHttpRequest.java
@@ -0,0 +1,559 @@
+/*
+ * Copyright 2019 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.google.cloud.compute.v1;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.httpjson.ApiMessage;
+import java.util.List;
+import java.util.Objects;
+import javax.annotation.Generated;
+import javax.annotation.Nullable;
+
+@Generated("by GAPIC")
+@BetaApi
+/**
+ * Request object for method compute.networkEndpointGroups.detachNetworkEndpoints. Detach a list of
+ * network endpoints from the specified network endpoint group.
+ */
+public final class DetachNetworkEndpointsNetworkEndpointGroupHttpRequest implements ApiMessage {
+ private final String access_token;
+ private final String callback;
+ private final String fields;
+ private final String key;
+ private final String networkEndpointGroup;
+ private final NetworkEndpointGroupsDetachEndpointsRequest
+ networkEndpointGroupsDetachEndpointsRequestResource;
+ private final String prettyPrint;
+ private final String quotaUser;
+ private final String requestId;
+ private final String userIp;
+
+ private DetachNetworkEndpointsNetworkEndpointGroupHttpRequest() {
+ this.access_token = null;
+ this.callback = null;
+ this.fields = null;
+ this.key = null;
+ this.networkEndpointGroup = null;
+ this.networkEndpointGroupsDetachEndpointsRequestResource = null;
+ this.prettyPrint = null;
+ this.quotaUser = null;
+ this.requestId = null;
+ this.userIp = null;
+ }
+
+ private DetachNetworkEndpointsNetworkEndpointGroupHttpRequest(
+ String access_token,
+ String callback,
+ String fields,
+ String key,
+ String networkEndpointGroup,
+ NetworkEndpointGroupsDetachEndpointsRequest
+ networkEndpointGroupsDetachEndpointsRequestResource,
+ String prettyPrint,
+ String quotaUser,
+ String requestId,
+ String userIp) {
+ this.access_token = access_token;
+ this.callback = callback;
+ this.fields = fields;
+ this.key = key;
+ this.networkEndpointGroup = networkEndpointGroup;
+ this.networkEndpointGroupsDetachEndpointsRequestResource =
+ networkEndpointGroupsDetachEndpointsRequestResource;
+ this.prettyPrint = prettyPrint;
+ this.quotaUser = quotaUser;
+ this.requestId = requestId;
+ this.userIp = userIp;
+ }
+
+ @Override
+ public Object getFieldValue(String fieldName) {
+ if ("access_token".equals(fieldName)) {
+ return access_token;
+ }
+ if ("callback".equals(fieldName)) {
+ return callback;
+ }
+ if ("fields".equals(fieldName)) {
+ return fields;
+ }
+ if ("key".equals(fieldName)) {
+ return key;
+ }
+ if ("networkEndpointGroup".equals(fieldName)) {
+ return networkEndpointGroup;
+ }
+ if ("networkEndpointGroupsDetachEndpointsRequestResource".equals(fieldName)) {
+ return networkEndpointGroupsDetachEndpointsRequestResource;
+ }
+ if ("prettyPrint".equals(fieldName)) {
+ return prettyPrint;
+ }
+ if ("quotaUser".equals(fieldName)) {
+ return quotaUser;
+ }
+ if ("requestId".equals(fieldName)) {
+ return requestId;
+ }
+ if ("userIp".equals(fieldName)) {
+ return userIp;
+ }
+ return null;
+ }
+
+ @Nullable
+ @Override
+ public NetworkEndpointGroupsDetachEndpointsRequest getApiMessageRequestBody() {
+ return networkEndpointGroupsDetachEndpointsRequestResource;
+ }
+
+ @Nullable
+ @Override
+ /**
+ * The fields that should be serialized (even if they have empty values). If the containing
+ * message object has a non-null fieldmask, then all the fields in the field mask (and only those
+ * fields in the field mask) will be serialized. If the containing object does not have a
+ * fieldmask, then only non-empty fields will be serialized.
+ */
+ public List getFieldMask() {
+ return null;
+ }
+
+ /** OAuth 2.0 token for the current user. */
+ public String getAccessToken() {
+ return access_token;
+ }
+
+ /** Name of the JavaScript callback function that handles the response. */
+ public String getCallback() {
+ return callback;
+ }
+
+ /** Selector specifying a subset of fields to include in the response. */
+ public String getFields() {
+ return fields;
+ }
+
+ /** API key. Required unless you provide an OAuth 2.0 token. */
+ public String getKey() {
+ return key;
+ }
+
+ /**
+ * The name of the network endpoint group where you are removing network endpoints. It should
+ * comply with RFC1035. It must have the format
+ * `{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints`.
+ * \`{networkEndpointGroup}\` must start with a letter, and contain only letters (\`[A-Za-z]\`),
+ * numbers (\`[0-9]\`), dashes (\`-\`), * underscores (\`_\`), periods (\`.\`), tildes
+ * (\`~\`), plus (\`+\`) or percent * signs (\`%\`). It must be between 3 and 255 characters
+ * in length, and it * must not start with \`"goog"\`.
+ */
+ public String getNetworkEndpointGroup() {
+ return networkEndpointGroup;
+ }
+
+ public NetworkEndpointGroupsDetachEndpointsRequest
+ getNetworkEndpointGroupsDetachEndpointsRequestResource() {
+ return networkEndpointGroupsDetachEndpointsRequestResource;
+ }
+
+ /** Returns response with indentations and line breaks. */
+ public String getPrettyPrint() {
+ return prettyPrint;
+ }
+
+ /** Alternative to userIp. */
+ public String getQuotaUser() {
+ return quotaUser;
+ }
+
+ /**
+ * An optional request ID to identify requests. Specify a unique request ID so that if you must
+ * retry your request, the server will know to ignore the request if it has already been
+ * completed.
+ *
+ * For example, consider a situation where you make an initial request and the request times
+ * out. If you make the request again with the same request ID, the server can check if original
+ * operation with the same request ID was received, and if so, will ignore the second request.
+ * This prevents clients from accidentally creating duplicate commitments.
+ *
+ *
The request ID must be a valid UUID with the exception that zero UUID is not supported
+ * (00000000-0000-0000-0000-000000000000).
+ */
+ public String getRequestId() {
+ return requestId;
+ }
+
+ /** IP address of the end user for whom the API call is being made. */
+ public String getUserIp() {
+ return userIp;
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ DetachNetworkEndpointsNetworkEndpointGroupHttpRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ public static DetachNetworkEndpointsNetworkEndpointGroupHttpRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final DetachNetworkEndpointsNetworkEndpointGroupHttpRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new DetachNetworkEndpointsNetworkEndpointGroupHttpRequest();
+ }
+
+ public static class Builder {
+ private String access_token;
+ private String callback;
+ private String fields;
+ private String key;
+ private String networkEndpointGroup;
+ private NetworkEndpointGroupsDetachEndpointsRequest
+ networkEndpointGroupsDetachEndpointsRequestResource;
+ private String prettyPrint;
+ private String quotaUser;
+ private String requestId;
+ private String userIp;
+
+ Builder() {}
+
+ public Builder mergeFrom(DetachNetworkEndpointsNetworkEndpointGroupHttpRequest other) {
+ if (other == DetachNetworkEndpointsNetworkEndpointGroupHttpRequest.getDefaultInstance())
+ return this;
+ if (other.getAccessToken() != null) {
+ this.access_token = other.access_token;
+ }
+ if (other.getCallback() != null) {
+ this.callback = other.callback;
+ }
+ if (other.getFields() != null) {
+ this.fields = other.fields;
+ }
+ if (other.getKey() != null) {
+ this.key = other.key;
+ }
+ if (other.getNetworkEndpointGroup() != null) {
+ this.networkEndpointGroup = other.networkEndpointGroup;
+ }
+ if (other.getNetworkEndpointGroupsDetachEndpointsRequestResource() != null) {
+ this.networkEndpointGroupsDetachEndpointsRequestResource =
+ other.networkEndpointGroupsDetachEndpointsRequestResource;
+ }
+ if (other.getPrettyPrint() != null) {
+ this.prettyPrint = other.prettyPrint;
+ }
+ if (other.getQuotaUser() != null) {
+ this.quotaUser = other.quotaUser;
+ }
+ if (other.getRequestId() != null) {
+ this.requestId = other.requestId;
+ }
+ if (other.getUserIp() != null) {
+ this.userIp = other.userIp;
+ }
+ return this;
+ }
+
+ Builder(DetachNetworkEndpointsNetworkEndpointGroupHttpRequest source) {
+ this.access_token = source.access_token;
+ this.callback = source.callback;
+ this.fields = source.fields;
+ this.key = source.key;
+ this.networkEndpointGroup = source.networkEndpointGroup;
+ this.networkEndpointGroupsDetachEndpointsRequestResource =
+ source.networkEndpointGroupsDetachEndpointsRequestResource;
+ this.prettyPrint = source.prettyPrint;
+ this.quotaUser = source.quotaUser;
+ this.requestId = source.requestId;
+ this.userIp = source.userIp;
+ }
+
+ /** OAuth 2.0 token for the current user. */
+ public String getAccessToken() {
+ return access_token;
+ }
+
+ /** OAuth 2.0 token for the current user. */
+ public Builder setAccessToken(String access_token) {
+ this.access_token = access_token;
+ return this;
+ }
+
+ /** Name of the JavaScript callback function that handles the response. */
+ public String getCallback() {
+ return callback;
+ }
+
+ /** Name of the JavaScript callback function that handles the response. */
+ public Builder setCallback(String callback) {
+ this.callback = callback;
+ return this;
+ }
+
+ /** Selector specifying a subset of fields to include in the response. */
+ public String getFields() {
+ return fields;
+ }
+
+ /** Selector specifying a subset of fields to include in the response. */
+ public Builder setFields(String fields) {
+ this.fields = fields;
+ return this;
+ }
+
+ /** API key. Required unless you provide an OAuth 2.0 token. */
+ public String getKey() {
+ return key;
+ }
+
+ /** API key. Required unless you provide an OAuth 2.0 token. */
+ public Builder setKey(String key) {
+ this.key = key;
+ return this;
+ }
+
+ /**
+ * The name of the network endpoint group where you are removing network endpoints. It should
+ * comply with RFC1035. It must have the format
+ * `{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints`.
+ * \`{networkEndpointGroup}\` must start with a letter, and contain only letters (\`[A-Za-z]\`),
+ * numbers (\`[0-9]\`), dashes (\`-\`), * underscores (\`_\`), periods (\`.\`), tildes
+ * (\`~\`), plus (\`+\`) or percent * signs (\`%\`). It must be between 3 and 255 characters
+ * in length, and it * must not start with \`"goog"\`.
+ */
+ public String getNetworkEndpointGroup() {
+ return networkEndpointGroup;
+ }
+
+ /**
+ * The name of the network endpoint group where you are removing network endpoints. It should
+ * comply with RFC1035. It must have the format
+ * `{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints`.
+ * \`{networkEndpointGroup}\` must start with a letter, and contain only letters (\`[A-Za-z]\`),
+ * numbers (\`[0-9]\`), dashes (\`-\`), * underscores (\`_\`), periods (\`.\`), tildes
+ * (\`~\`), plus (\`+\`) or percent * signs (\`%\`). It must be between 3 and 255 characters
+ * in length, and it * must not start with \`"goog"\`.
+ */
+ public Builder setNetworkEndpointGroup(String networkEndpointGroup) {
+ this.networkEndpointGroup = networkEndpointGroup;
+ return this;
+ }
+
+ public NetworkEndpointGroupsDetachEndpointsRequest
+ getNetworkEndpointGroupsDetachEndpointsRequestResource() {
+ return networkEndpointGroupsDetachEndpointsRequestResource;
+ }
+
+ public Builder setNetworkEndpointGroupsDetachEndpointsRequestResource(
+ NetworkEndpointGroupsDetachEndpointsRequest
+ networkEndpointGroupsDetachEndpointsRequestResource) {
+ this.networkEndpointGroupsDetachEndpointsRequestResource =
+ networkEndpointGroupsDetachEndpointsRequestResource;
+ return this;
+ }
+
+ /** Returns response with indentations and line breaks. */
+ public String getPrettyPrint() {
+ return prettyPrint;
+ }
+
+ /** Returns response with indentations and line breaks. */
+ public Builder setPrettyPrint(String prettyPrint) {
+ this.prettyPrint = prettyPrint;
+ return this;
+ }
+
+ /** Alternative to userIp. */
+ public String getQuotaUser() {
+ return quotaUser;
+ }
+
+ /** Alternative to userIp. */
+ public Builder setQuotaUser(String quotaUser) {
+ this.quotaUser = quotaUser;
+ return this;
+ }
+
+ /**
+ * An optional request ID to identify requests. Specify a unique request ID so that if you must
+ * retry your request, the server will know to ignore the request if it has already been
+ * completed.
+ *
+ *
For example, consider a situation where you make an initial request and the request times
+ * out. If you make the request again with the same request ID, the server can check if original
+ * operation with the same request ID was received, and if so, will ignore the second request.
+ * This prevents clients from accidentally creating duplicate commitments.
+ *
+ *
The request ID must be a valid UUID with the exception that zero UUID is not supported
+ * (00000000-0000-0000-0000-000000000000).
+ */
+ public String getRequestId() {
+ return requestId;
+ }
+
+ /**
+ * An optional request ID to identify requests. Specify a unique request ID so that if you must
+ * retry your request, the server will know to ignore the request if it has already been
+ * completed.
+ *
+ *
For example, consider a situation where you make an initial request and the request times
+ * out. If you make the request again with the same request ID, the server can check if original
+ * operation with the same request ID was received, and if so, will ignore the second request.
+ * This prevents clients from accidentally creating duplicate commitments.
+ *
+ *
The request ID must be a valid UUID with the exception that zero UUID is not supported
+ * (00000000-0000-0000-0000-000000000000).
+ */
+ public Builder setRequestId(String requestId) {
+ this.requestId = requestId;
+ return this;
+ }
+
+ /** IP address of the end user for whom the API call is being made. */
+ public String getUserIp() {
+ return userIp;
+ }
+
+ /** IP address of the end user for whom the API call is being made. */
+ public Builder setUserIp(String userIp) {
+ this.userIp = userIp;
+ return this;
+ }
+
+ public DetachNetworkEndpointsNetworkEndpointGroupHttpRequest build() {
+ String missing = "";
+
+ if (networkEndpointGroup == null) {
+ missing += " networkEndpointGroup";
+ }
+
+ if (!missing.isEmpty()) {
+ throw new IllegalStateException("Missing required properties:" + missing);
+ }
+ return new DetachNetworkEndpointsNetworkEndpointGroupHttpRequest(
+ access_token,
+ callback,
+ fields,
+ key,
+ networkEndpointGroup,
+ networkEndpointGroupsDetachEndpointsRequestResource,
+ prettyPrint,
+ quotaUser,
+ requestId,
+ userIp);
+ }
+
+ public Builder clone() {
+ Builder newBuilder = new Builder();
+ newBuilder.setAccessToken(this.access_token);
+ newBuilder.setCallback(this.callback);
+ newBuilder.setFields(this.fields);
+ newBuilder.setKey(this.key);
+ newBuilder.setNetworkEndpointGroup(this.networkEndpointGroup);
+ newBuilder.setNetworkEndpointGroupsDetachEndpointsRequestResource(
+ this.networkEndpointGroupsDetachEndpointsRequestResource);
+ newBuilder.setPrettyPrint(this.prettyPrint);
+ newBuilder.setQuotaUser(this.quotaUser);
+ newBuilder.setRequestId(this.requestId);
+ newBuilder.setUserIp(this.userIp);
+ return newBuilder;
+ }
+ }
+
+ @Override
+ public String toString() {
+ return "DetachNetworkEndpointsNetworkEndpointGroupHttpRequest{"
+ + "access_token="
+ + access_token
+ + ", "
+ + "callback="
+ + callback
+ + ", "
+ + "fields="
+ + fields
+ + ", "
+ + "key="
+ + key
+ + ", "
+ + "networkEndpointGroup="
+ + networkEndpointGroup
+ + ", "
+ + "networkEndpointGroupsDetachEndpointsRequestResource="
+ + networkEndpointGroupsDetachEndpointsRequestResource
+ + ", "
+ + "prettyPrint="
+ + prettyPrint
+ + ", "
+ + "quotaUser="
+ + quotaUser
+ + ", "
+ + "requestId="
+ + requestId
+ + ", "
+ + "userIp="
+ + userIp
+ + "}";
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (o instanceof DetachNetworkEndpointsNetworkEndpointGroupHttpRequest) {
+ DetachNetworkEndpointsNetworkEndpointGroupHttpRequest that =
+ (DetachNetworkEndpointsNetworkEndpointGroupHttpRequest) o;
+ return Objects.equals(this.access_token, that.getAccessToken())
+ && Objects.equals(this.callback, that.getCallback())
+ && Objects.equals(this.fields, that.getFields())
+ && Objects.equals(this.key, that.getKey())
+ && Objects.equals(this.networkEndpointGroup, that.getNetworkEndpointGroup())
+ && Objects.equals(
+ this.networkEndpointGroupsDetachEndpointsRequestResource,
+ that.getNetworkEndpointGroupsDetachEndpointsRequestResource())
+ && Objects.equals(this.prettyPrint, that.getPrettyPrint())
+ && Objects.equals(this.quotaUser, that.getQuotaUser())
+ && Objects.equals(this.requestId, that.getRequestId())
+ && Objects.equals(this.userIp, that.getUserIp());
+ }
+ return false;
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(
+ access_token,
+ callback,
+ fields,
+ key,
+ networkEndpointGroup,
+ networkEndpointGroupsDetachEndpointsRequestResource,
+ prettyPrint,
+ quotaUser,
+ requestId,
+ userIp);
+ }
+}
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskClient.java
index ab2fb75dc6fc..d8c97baf64d3 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskClient.java
@@ -213,9 +213,9 @@ public final AggregatedListDisksPagedResponse aggregatedListDisks(String project
*
*
* try (DiskClient diskClient = DiskClient.create()) {
- * ProjectName project = ProjectName.of("[PROJECT]");
+ * String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListDisksHttpRequest request = AggregatedListDisksHttpRequest.newBuilder()
- * .setProject(project.toString())
+ * .setProject(formattedProject)
* .build();
* for (DisksScopedList element : diskClient.aggregatedListDisks(request).iterateAll()) {
* // doThingsWith(element);
@@ -240,9 +240,9 @@ public final AggregatedListDisksPagedResponse aggregatedListDisks(
*
*
* try (DiskClient diskClient = DiskClient.create()) {
- * ProjectName project = ProjectName.of("[PROJECT]");
+ * String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListDisksHttpRequest request = AggregatedListDisksHttpRequest.newBuilder()
- * .setProject(project.toString())
+ * .setProject(formattedProject)
* .build();
* ApiFuture<AggregatedListDisksPagedResponse> future = diskClient.aggregatedListDisksPagedCallable().futureCall(request);
* // Do something
@@ -266,9 +266,9 @@ public final AggregatedListDisksPagedResponse aggregatedListDisks(
*
*
* try (DiskClient diskClient = DiskClient.create()) {
- * ProjectName project = ProjectName.of("[PROJECT]");
+ * String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListDisksHttpRequest request = AggregatedListDisksHttpRequest.newBuilder()
- * .setProject(project.toString())
+ * .setProject(formattedProject)
* .build();
* while (true) {
* DiskAggregatedList response = diskClient.aggregatedListDisksCallable().call(request);
@@ -367,11 +367,11 @@ public final Operation createSnapshotDisk(
*
*
* try (DiskClient diskClient = DiskClient.create()) {
- * ProjectZoneDiskName disk = ProjectZoneDiskName.of("[PROJECT]", "[ZONE]", "[DISK]");
+ * String formattedDisk = ProjectZoneDiskName.format("[PROJECT]", "[ZONE]", "[DISK]");
* Boolean guestFlush = false;
* Snapshot snapshotResource = Snapshot.newBuilder().build();
* CreateSnapshotDiskHttpRequest request = CreateSnapshotDiskHttpRequest.newBuilder()
- * .setDisk(disk.toString())
+ * .setDisk(formattedDisk)
* .setGuestFlush(guestFlush)
* .setSnapshotResource(snapshotResource)
* .build();
@@ -395,11 +395,11 @@ public final Operation createSnapshotDisk(CreateSnapshotDiskHttpRequest request)
*
*
* try (DiskClient diskClient = DiskClient.create()) {
- * ProjectZoneDiskName disk = ProjectZoneDiskName.of("[PROJECT]", "[ZONE]", "[DISK]");
+ * String formattedDisk = ProjectZoneDiskName.format("[PROJECT]", "[ZONE]", "[DISK]");
* Boolean guestFlush = false;
* Snapshot snapshotResource = Snapshot.newBuilder().build();
* CreateSnapshotDiskHttpRequest request = CreateSnapshotDiskHttpRequest.newBuilder()
- * .setDisk(disk.toString())
+ * .setDisk(formattedDisk)
* .setGuestFlush(guestFlush)
* .setSnapshotResource(snapshotResource)
* .build();
@@ -476,9 +476,9 @@ public final Operation deleteDisk(String disk) {
*
*
* try (DiskClient diskClient = DiskClient.create()) {
- * ProjectZoneDiskName disk = ProjectZoneDiskName.of("[PROJECT]", "[ZONE]", "[DISK]");
+ * String formattedDisk = ProjectZoneDiskName.format("[PROJECT]", "[ZONE]", "[DISK]");
* DeleteDiskHttpRequest request = DeleteDiskHttpRequest.newBuilder()
- * .setDisk(disk.toString())
+ * .setDisk(formattedDisk)
* .build();
* Operation response = diskClient.deleteDisk(request);
* }
@@ -502,9 +502,9 @@ public final Operation deleteDisk(DeleteDiskHttpRequest request) {
*
*
* try (DiskClient diskClient = DiskClient.create()) {
- * ProjectZoneDiskName disk = ProjectZoneDiskName.of("[PROJECT]", "[ZONE]", "[DISK]");
+ * String formattedDisk = ProjectZoneDiskName.format("[PROJECT]", "[ZONE]", "[DISK]");
* DeleteDiskHttpRequest request = DeleteDiskHttpRequest.newBuilder()
- * .setDisk(disk.toString())
+ * .setDisk(formattedDisk)
* .build();
* ApiFuture<Operation> future = diskClient.deleteDiskCallable().futureCall(request);
* // Do something
@@ -575,9 +575,9 @@ public final Disk getDisk(String disk) {
*
*
* try (DiskClient diskClient = DiskClient.create()) {
- * ProjectZoneDiskName disk = ProjectZoneDiskName.of("[PROJECT]", "[ZONE]", "[DISK]");
+ * String formattedDisk = ProjectZoneDiskName.format("[PROJECT]", "[ZONE]", "[DISK]");
* GetDiskHttpRequest request = GetDiskHttpRequest.newBuilder()
- * .setDisk(disk.toString())
+ * .setDisk(formattedDisk)
* .build();
* Disk response = diskClient.getDisk(request);
* }
@@ -600,9 +600,9 @@ public final Disk getDisk(GetDiskHttpRequest request) {
*
*
* try (DiskClient diskClient = DiskClient.create()) {
- * ProjectZoneDiskName disk = ProjectZoneDiskName.of("[PROJECT]", "[ZONE]", "[DISK]");
+ * String formattedDisk = ProjectZoneDiskName.format("[PROJECT]", "[ZONE]", "[DISK]");
* GetDiskHttpRequest request = GetDiskHttpRequest.newBuilder()
- * .setDisk(disk.toString())
+ * .setDisk(formattedDisk)
* .build();
* ApiFuture<Disk> future = diskClient.getDiskCallable().futureCall(request);
* // Do something
@@ -676,9 +676,9 @@ public final Policy getIamPolicyDisk(String resource) {
*
*
* try (DiskClient diskClient = DiskClient.create()) {
- * ProjectZoneDiskResourceName resource = ProjectZoneDiskResourceName.of("[PROJECT]", "[ZONE]", "[RESOURCE]");
+ * String formattedResource = ProjectZoneDiskResourceName.format("[PROJECT]", "[ZONE]", "[RESOURCE]");
* GetIamPolicyDiskHttpRequest request = GetIamPolicyDiskHttpRequest.newBuilder()
- * .setResource(resource.toString())
+ * .setResource(formattedResource)
* .build();
* Policy response = diskClient.getIamPolicyDisk(request);
* }
@@ -701,9 +701,9 @@ public final Policy getIamPolicyDisk(GetIamPolicyDiskHttpRequest request) {
*
*
* try (DiskClient diskClient = DiskClient.create()) {
- * ProjectZoneDiskResourceName resource = ProjectZoneDiskResourceName.of("[PROJECT]", "[ZONE]", "[RESOURCE]");
+ * String formattedResource = ProjectZoneDiskResourceName.format("[PROJECT]", "[ZONE]", "[RESOURCE]");
* GetIamPolicyDiskHttpRequest request = GetIamPolicyDiskHttpRequest.newBuilder()
- * .setResource(resource.toString())
+ * .setResource(formattedResource)
* .build();
* ApiFuture<Policy> future = diskClient.getIamPolicyDiskCallable().futureCall(request);
* // Do something
@@ -790,10 +790,10 @@ public final Operation insertDisk(String zone, Disk diskResource) {
*
*
* try (DiskClient diskClient = DiskClient.create()) {
- * ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]");
+ * String formattedZone = ProjectZoneName.format("[PROJECT]", "[ZONE]");
* Disk diskResource = Disk.newBuilder().build();
* InsertDiskHttpRequest request = InsertDiskHttpRequest.newBuilder()
- * .setZone(zone.toString())
+ * .setZone(formattedZone)
* .setDiskResource(diskResource)
* .build();
* Operation response = diskClient.insertDisk(request);
@@ -819,10 +819,10 @@ public final Operation insertDisk(InsertDiskHttpRequest request) {
*
*
* try (DiskClient diskClient = DiskClient.create()) {
- * ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]");
+ * String formattedZone = ProjectZoneName.format("[PROJECT]", "[ZONE]");
* Disk diskResource = Disk.newBuilder().build();
* InsertDiskHttpRequest request = InsertDiskHttpRequest.newBuilder()
- * .setZone(zone.toString())
+ * .setZone(formattedZone)
* .setDiskResource(diskResource)
* .build();
* ApiFuture<Operation> future = diskClient.insertDiskCallable().futureCall(request);
@@ -893,9 +893,9 @@ public final ListDisksPagedResponse listDisks(String zone) {
*
*
* try (DiskClient diskClient = DiskClient.create()) {
- * ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]");
+ * String formattedZone = ProjectZoneName.format("[PROJECT]", "[ZONE]");
* ListDisksHttpRequest request = ListDisksHttpRequest.newBuilder()
- * .setZone(zone.toString())
+ * .setZone(formattedZone)
* .build();
* for (Disk element : diskClient.listDisks(request).iterateAll()) {
* // doThingsWith(element);
@@ -919,9 +919,9 @@ public final ListDisksPagedResponse listDisks(ListDisksHttpRequest request) {
*
*
* try (DiskClient diskClient = DiskClient.create()) {
- * ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]");
+ * String formattedZone = ProjectZoneName.format("[PROJECT]", "[ZONE]");
* ListDisksHttpRequest request = ListDisksHttpRequest.newBuilder()
- * .setZone(zone.toString())
+ * .setZone(formattedZone)
* .build();
* ApiFuture<ListDisksPagedResponse> future = diskClient.listDisksPagedCallable().futureCall(request);
* // Do something
@@ -945,9 +945,9 @@ public final ListDisksPagedResponse listDisks(ListDisksHttpRequest request) {
*
*
* try (DiskClient diskClient = DiskClient.create()) {
- * ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]");
+ * String formattedZone = ProjectZoneName.format("[PROJECT]", "[ZONE]");
* ListDisksHttpRequest request = ListDisksHttpRequest.newBuilder()
- * .setZone(zone.toString())
+ * .setZone(formattedZone)
* .build();
* while (true) {
* DiskList response = diskClient.listDisksCallable().call(request);
@@ -1036,10 +1036,10 @@ public final Operation resizeDisk(String disk, DisksResizeRequest disksResizeReq
*
*
* try (DiskClient diskClient = DiskClient.create()) {
- * ProjectZoneDiskName disk = ProjectZoneDiskName.of("[PROJECT]", "[ZONE]", "[DISK]");
+ * String formattedDisk = ProjectZoneDiskName.format("[PROJECT]", "[ZONE]", "[DISK]");
* DisksResizeRequest disksResizeRequestResource = DisksResizeRequest.newBuilder().build();
* ResizeDiskHttpRequest request = ResizeDiskHttpRequest.newBuilder()
- * .setDisk(disk.toString())
+ * .setDisk(formattedDisk)
* .setDisksResizeRequestResource(disksResizeRequestResource)
* .build();
* Operation response = diskClient.resizeDisk(request);
@@ -1062,10 +1062,10 @@ public final Operation resizeDisk(ResizeDiskHttpRequest request) {
*
*
* try (DiskClient diskClient = DiskClient.create()) {
- * ProjectZoneDiskName disk = ProjectZoneDiskName.of("[PROJECT]", "[ZONE]", "[DISK]");
+ * String formattedDisk = ProjectZoneDiskName.format("[PROJECT]", "[ZONE]", "[DISK]");
* DisksResizeRequest disksResizeRequestResource = DisksResizeRequest.newBuilder().build();
* ResizeDiskHttpRequest request = ResizeDiskHttpRequest.newBuilder()
- * .setDisk(disk.toString())
+ * .setDisk(formattedDisk)
* .setDisksResizeRequestResource(disksResizeRequestResource)
* .build();
* ApiFuture<Operation> future = diskClient.resizeDiskCallable().futureCall(request);
@@ -1147,10 +1147,10 @@ public final Policy setIamPolicyDisk(
*
*
* try (DiskClient diskClient = DiskClient.create()) {
- * ProjectZoneDiskResourceName resource = ProjectZoneDiskResourceName.of("[PROJECT]", "[ZONE]", "[RESOURCE]");
+ * String formattedResource = ProjectZoneDiskResourceName.format("[PROJECT]", "[ZONE]", "[RESOURCE]");
* ZoneSetPolicyRequest zoneSetPolicyRequestResource = ZoneSetPolicyRequest.newBuilder().build();
* SetIamPolicyDiskHttpRequest request = SetIamPolicyDiskHttpRequest.newBuilder()
- * .setResource(resource.toString())
+ * .setResource(formattedResource)
* .setZoneSetPolicyRequestResource(zoneSetPolicyRequestResource)
* .build();
* Policy response = diskClient.setIamPolicyDisk(request);
@@ -1173,10 +1173,10 @@ public final Policy setIamPolicyDisk(SetIamPolicyDiskHttpRequest request) {
*
*
* try (DiskClient diskClient = DiskClient.create()) {
- * ProjectZoneDiskResourceName resource = ProjectZoneDiskResourceName.of("[PROJECT]", "[ZONE]", "[RESOURCE]");
+ * String formattedResource = ProjectZoneDiskResourceName.format("[PROJECT]", "[ZONE]", "[RESOURCE]");
* ZoneSetPolicyRequest zoneSetPolicyRequestResource = ZoneSetPolicyRequest.newBuilder().build();
* SetIamPolicyDiskHttpRequest request = SetIamPolicyDiskHttpRequest.newBuilder()
- * .setResource(resource.toString())
+ * .setResource(formattedResource)
* .setZoneSetPolicyRequestResource(zoneSetPolicyRequestResource)
* .build();
* ApiFuture<Policy> future = diskClient.setIamPolicyDiskCallable().futureCall(request);
@@ -1261,10 +1261,10 @@ public final Operation setLabelsDisk(
*
*
* try (DiskClient diskClient = DiskClient.create()) {
- * ProjectZoneDiskResourceName resource = ProjectZoneDiskResourceName.of("[PROJECT]", "[ZONE]", "[RESOURCE]");
+ * String formattedResource = ProjectZoneDiskResourceName.format("[PROJECT]", "[ZONE]", "[RESOURCE]");
* ZoneSetLabelsRequest zoneSetLabelsRequestResource = ZoneSetLabelsRequest.newBuilder().build();
* SetLabelsDiskHttpRequest request = SetLabelsDiskHttpRequest.newBuilder()
- * .setResource(resource.toString())
+ * .setResource(formattedResource)
* .setZoneSetLabelsRequestResource(zoneSetLabelsRequestResource)
* .build();
* Operation response = diskClient.setLabelsDisk(request);
@@ -1288,10 +1288,10 @@ public final Operation setLabelsDisk(SetLabelsDiskHttpRequest request) {
*
*
* try (DiskClient diskClient = DiskClient.create()) {
- * ProjectZoneDiskResourceName resource = ProjectZoneDiskResourceName.of("[PROJECT]", "[ZONE]", "[RESOURCE]");
+ * String formattedResource = ProjectZoneDiskResourceName.format("[PROJECT]", "[ZONE]", "[RESOURCE]");
* ZoneSetLabelsRequest zoneSetLabelsRequestResource = ZoneSetLabelsRequest.newBuilder().build();
* SetLabelsDiskHttpRequest request = SetLabelsDiskHttpRequest.newBuilder()
- * .setResource(resource.toString())
+ * .setResource(formattedResource)
* .setZoneSetLabelsRequestResource(zoneSetLabelsRequestResource)
* .build();
* ApiFuture<Operation> future = diskClient.setLabelsDiskCallable().futureCall(request);
@@ -1373,10 +1373,10 @@ public final TestPermissionsResponse testIamPermissionsDisk(
*
*
* try (DiskClient diskClient = DiskClient.create()) {
- * ProjectZoneDiskResourceName resource = ProjectZoneDiskResourceName.of("[PROJECT]", "[ZONE]", "[RESOURCE]");
+ * String formattedResource = ProjectZoneDiskResourceName.format("[PROJECT]", "[ZONE]", "[RESOURCE]");
* TestPermissionsRequest testPermissionsRequestResource = TestPermissionsRequest.newBuilder().build();
* TestIamPermissionsDiskHttpRequest request = TestIamPermissionsDiskHttpRequest.newBuilder()
- * .setResource(resource.toString())
+ * .setResource(formattedResource)
* .setTestPermissionsRequestResource(testPermissionsRequestResource)
* .build();
* TestPermissionsResponse response = diskClient.testIamPermissionsDisk(request);
@@ -1400,10 +1400,10 @@ public final TestPermissionsResponse testIamPermissionsDisk(
*
*
* try (DiskClient diskClient = DiskClient.create()) {
- * ProjectZoneDiskResourceName resource = ProjectZoneDiskResourceName.of("[PROJECT]", "[ZONE]", "[RESOURCE]");
+ * String formattedResource = ProjectZoneDiskResourceName.format("[PROJECT]", "[ZONE]", "[RESOURCE]");
* TestPermissionsRequest testPermissionsRequestResource = TestPermissionsRequest.newBuilder().build();
* TestIamPermissionsDiskHttpRequest request = TestIamPermissionsDiskHttpRequest.newBuilder()
- * .setResource(resource.toString())
+ * .setResource(formattedResource)
* .setTestPermissionsRequestResource(testPermissionsRequestResource)
* .build();
* ApiFuture<TestPermissionsResponse> future = diskClient.testIamPermissionsDiskCallable().futureCall(request);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypeClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypeClient.java
index 18e200e04447..f6c83ff5c4f0 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypeClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypeClient.java
@@ -211,9 +211,9 @@ public final AggregatedListDiskTypesPagedResponse aggregatedListDiskTypes(String
*
*
* try (DiskTypeClient diskTypeClient = DiskTypeClient.create()) {
- * ProjectName project = ProjectName.of("[PROJECT]");
+ * String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListDiskTypesHttpRequest request = AggregatedListDiskTypesHttpRequest.newBuilder()
- * .setProject(project.toString())
+ * .setProject(formattedProject)
* .build();
* for (DiskTypesScopedList element : diskTypeClient.aggregatedListDiskTypes(request).iterateAll()) {
* // doThingsWith(element);
@@ -238,9 +238,9 @@ public final AggregatedListDiskTypesPagedResponse aggregatedListDiskTypes(
*
*
* try (DiskTypeClient diskTypeClient = DiskTypeClient.create()) {
- * ProjectName project = ProjectName.of("[PROJECT]");
+ * String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListDiskTypesHttpRequest request = AggregatedListDiskTypesHttpRequest.newBuilder()
- * .setProject(project.toString())
+ * .setProject(formattedProject)
* .build();
* ApiFuture<AggregatedListDiskTypesPagedResponse> future = diskTypeClient.aggregatedListDiskTypesPagedCallable().futureCall(request);
* // Do something
@@ -265,9 +265,9 @@ public final AggregatedListDiskTypesPagedResponse aggregatedListDiskTypes(
*
*
* try (DiskTypeClient diskTypeClient = DiskTypeClient.create()) {
- * ProjectName project = ProjectName.of("[PROJECT]");
+ * String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListDiskTypesHttpRequest request = AggregatedListDiskTypesHttpRequest.newBuilder()
- * .setProject(project.toString())
+ * .setProject(formattedProject)
* .build();
* while (true) {
* DiskTypeAggregatedList response = diskTypeClient.aggregatedListDiskTypesCallable().call(request);
@@ -351,9 +351,9 @@ public final DiskType getDiskType(String diskType) {
*
*
* try (DiskTypeClient diskTypeClient = DiskTypeClient.create()) {
- * ProjectZoneDiskTypeName diskType = ProjectZoneDiskTypeName.of("[PROJECT]", "[ZONE]", "[DISK_TYPE]");
+ * String formattedDiskType = ProjectZoneDiskTypeName.format("[PROJECT]", "[ZONE]", "[DISK_TYPE]");
* GetDiskTypeHttpRequest request = GetDiskTypeHttpRequest.newBuilder()
- * .setDiskType(diskType.toString())
+ * .setDiskType(formattedDiskType)
* .build();
* DiskType response = diskTypeClient.getDiskType(request);
* }
@@ -376,9 +376,9 @@ public final DiskType getDiskType(GetDiskTypeHttpRequest request) {
*
*
* try (DiskTypeClient diskTypeClient = DiskTypeClient.create()) {
- * ProjectZoneDiskTypeName diskType = ProjectZoneDiskTypeName.of("[PROJECT]", "[ZONE]", "[DISK_TYPE]");
+ * String formattedDiskType = ProjectZoneDiskTypeName.format("[PROJECT]", "[ZONE]", "[DISK_TYPE]");
* GetDiskTypeHttpRequest request = GetDiskTypeHttpRequest.newBuilder()
- * .setDiskType(diskType.toString())
+ * .setDiskType(formattedDiskType)
* .build();
* ApiFuture<DiskType> future = diskTypeClient.getDiskTypeCallable().futureCall(request);
* // Do something
@@ -450,9 +450,9 @@ public final ListDiskTypesPagedResponse listDiskTypes(String zone) {
*
*
* try (DiskTypeClient diskTypeClient = DiskTypeClient.create()) {
- * ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]");
+ * String formattedZone = ProjectZoneName.format("[PROJECT]", "[ZONE]");
* ListDiskTypesHttpRequest request = ListDiskTypesHttpRequest.newBuilder()
- * .setZone(zone.toString())
+ * .setZone(formattedZone)
* .build();
* for (DiskType element : diskTypeClient.listDiskTypes(request).iterateAll()) {
* // doThingsWith(element);
@@ -476,9 +476,9 @@ public final ListDiskTypesPagedResponse listDiskTypes(ListDiskTypesHttpRequest r
*
*
* try (DiskTypeClient diskTypeClient = DiskTypeClient.create()) {
- * ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]");
+ * String formattedZone = ProjectZoneName.format("[PROJECT]", "[ZONE]");
* ListDiskTypesHttpRequest request = ListDiskTypesHttpRequest.newBuilder()
- * .setZone(zone.toString())
+ * .setZone(formattedZone)
* .build();
* ApiFuture<ListDiskTypesPagedResponse> future = diskTypeClient.listDiskTypesPagedCallable().futureCall(request);
* // Do something
@@ -502,9 +502,9 @@ public final ListDiskTypesPagedResponse listDiskTypes(ListDiskTypesHttpRequest r
*
*
* try (DiskTypeClient diskTypeClient = DiskTypeClient.create()) {
- * ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]");
+ * String formattedZone = ProjectZoneName.format("[PROJECT]", "[ZONE]");
* ListDiskTypesHttpRequest request = ListDiskTypesHttpRequest.newBuilder()
- * .setZone(zone.toString())
+ * .setZone(formattedZone)
* .build();
* while (true) {
* DiskTypeList response = diskTypeClient.listDiskTypesCallable().call(request);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallClient.java
index c820b36db818..4b6afe0e8ca4 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallClient.java
@@ -209,9 +209,9 @@ public final Operation deleteFirewall(String firewall) {
*
*
* try (FirewallClient firewallClient = FirewallClient.create()) {
- * ProjectGlobalFirewallName firewall = ProjectGlobalFirewallName.of("[PROJECT]", "[FIREWALL]");
+ * String formattedFirewall = ProjectGlobalFirewallName.format("[PROJECT]", "[FIREWALL]");
* DeleteFirewallHttpRequest request = DeleteFirewallHttpRequest.newBuilder()
- * .setFirewall(firewall.toString())
+ * .setFirewall(formattedFirewall)
* .build();
* Operation response = firewallClient.deleteFirewall(request);
* }
@@ -233,9 +233,9 @@ public final Operation deleteFirewall(DeleteFirewallHttpRequest request) {
*
*
* try (FirewallClient firewallClient = FirewallClient.create()) {
- * ProjectGlobalFirewallName firewall = ProjectGlobalFirewallName.of("[PROJECT]", "[FIREWALL]");
+ * String formattedFirewall = ProjectGlobalFirewallName.format("[PROJECT]", "[FIREWALL]");
* DeleteFirewallHttpRequest request = DeleteFirewallHttpRequest.newBuilder()
- * .setFirewall(firewall.toString())
+ * .setFirewall(formattedFirewall)
* .build();
* ApiFuture<Operation> future = firewallClient.deleteFirewallCallable().futureCall(request);
* // Do something
@@ -306,9 +306,9 @@ public final Firewall getFirewall(String firewall) {
*
*
* try (FirewallClient firewallClient = FirewallClient.create()) {
- * ProjectGlobalFirewallName firewall = ProjectGlobalFirewallName.of("[PROJECT]", "[FIREWALL]");
+ * String formattedFirewall = ProjectGlobalFirewallName.format("[PROJECT]", "[FIREWALL]");
* GetFirewallHttpRequest request = GetFirewallHttpRequest.newBuilder()
- * .setFirewall(firewall.toString())
+ * .setFirewall(formattedFirewall)
* .build();
* Firewall response = firewallClient.getFirewall(request);
* }
@@ -330,9 +330,9 @@ public final Firewall getFirewall(GetFirewallHttpRequest request) {
*
*
* try (FirewallClient firewallClient = FirewallClient.create()) {
- * ProjectGlobalFirewallName firewall = ProjectGlobalFirewallName.of("[PROJECT]", "[FIREWALL]");
+ * String formattedFirewall = ProjectGlobalFirewallName.format("[PROJECT]", "[FIREWALL]");
* GetFirewallHttpRequest request = GetFirewallHttpRequest.newBuilder()
- * .setFirewall(firewall.toString())
+ * .setFirewall(formattedFirewall)
* .build();
* ApiFuture<Firewall> future = firewallClient.getFirewallCallable().futureCall(request);
* // Do something
@@ -411,10 +411,10 @@ public final Operation insertFirewall(String project, Firewall firewallResource)
*
*
* try (FirewallClient firewallClient = FirewallClient.create()) {
- * ProjectName project = ProjectName.of("[PROJECT]");
+ * String formattedProject = ProjectName.format("[PROJECT]");
* Firewall firewallResource = Firewall.newBuilder().build();
* InsertFirewallHttpRequest request = InsertFirewallHttpRequest.newBuilder()
- * .setProject(project.toString())
+ * .setProject(formattedProject)
* .setFirewallResource(firewallResource)
* .build();
* Operation response = firewallClient.insertFirewall(request);
@@ -437,10 +437,10 @@ public final Operation insertFirewall(InsertFirewallHttpRequest request) {
*
*
* try (FirewallClient firewallClient = FirewallClient.create()) {
- * ProjectName project = ProjectName.of("[PROJECT]");
+ * String formattedProject = ProjectName.format("[PROJECT]");
* Firewall firewallResource = Firewall.newBuilder().build();
* InsertFirewallHttpRequest request = InsertFirewallHttpRequest.newBuilder()
- * .setProject(project.toString())
+ * .setProject(formattedProject)
* .setFirewallResource(firewallResource)
* .build();
* ApiFuture<Operation> future = firewallClient.insertFirewallCallable().futureCall(request);
@@ -514,9 +514,9 @@ public final ListFirewallsPagedResponse listFirewalls(String project) {
*
*
* try (FirewallClient firewallClient = FirewallClient.create()) {
- * ProjectName project = ProjectName.of("[PROJECT]");
+ * String formattedProject = ProjectName.format("[PROJECT]");
* ListFirewallsHttpRequest request = ListFirewallsHttpRequest.newBuilder()
- * .setProject(project.toString())
+ * .setProject(formattedProject)
* .build();
* for (Firewall element : firewallClient.listFirewalls(request).iterateAll()) {
* // doThingsWith(element);
@@ -540,9 +540,9 @@ public final ListFirewallsPagedResponse listFirewalls(ListFirewallsHttpRequest r
*
*
* try (FirewallClient firewallClient = FirewallClient.create()) {
- * ProjectName project = ProjectName.of("[PROJECT]");
+ * String formattedProject = ProjectName.format("[PROJECT]");
* ListFirewallsHttpRequest request = ListFirewallsHttpRequest.newBuilder()
- * .setProject(project.toString())
+ * .setProject(formattedProject)
* .build();
* ApiFuture<ListFirewallsPagedResponse> future = firewallClient.listFirewallsPagedCallable().futureCall(request);
* // Do something
@@ -566,9 +566,9 @@ public final ListFirewallsPagedResponse listFirewalls(ListFirewallsHttpRequest r
*
*
* try (FirewallClient firewallClient = FirewallClient.create()) {
- * ProjectName project = ProjectName.of("[PROJECT]");
+ * String formattedProject = ProjectName.format("[PROJECT]");
* ListFirewallsHttpRequest request = ListFirewallsHttpRequest.newBuilder()
- * .setProject(project.toString())
+ * .setProject(formattedProject)
* .build();
* while (true) {
* FirewallList response = firewallClient.listFirewallsCallable().call(request);
@@ -673,11 +673,11 @@ public final Operation patchFirewall(
*
*
* try (FirewallClient firewallClient = FirewallClient.create()) {
- * ProjectGlobalFirewallName firewall = ProjectGlobalFirewallName.of("[PROJECT]", "[FIREWALL]");
+ * String formattedFirewall = ProjectGlobalFirewallName.format("[PROJECT]", "[FIREWALL]");
* Firewall firewallResource = Firewall.newBuilder().build();
* List<String> fieldMask = new ArrayList<>();
* PatchFirewallHttpRequest request = PatchFirewallHttpRequest.newBuilder()
- * .setFirewall(firewall.toString())
+ * .setFirewall(formattedFirewall)
* .setFirewallResource(firewallResource)
* .addAllFieldMask(fieldMask)
* .build();
@@ -702,11 +702,11 @@ public final Operation patchFirewall(PatchFirewallHttpRequest request) {
*
*
* try (FirewallClient firewallClient = FirewallClient.create()) {
- * ProjectGlobalFirewallName firewall = ProjectGlobalFirewallName.of("[PROJECT]", "[FIREWALL]");
+ * String formattedFirewall = ProjectGlobalFirewallName.format("[PROJECT]", "[FIREWALL]");
* Firewall firewallResource = Firewall.newBuilder().build();
* List<String> fieldMask = new ArrayList<>();
* PatchFirewallHttpRequest request = PatchFirewallHttpRequest.newBuilder()
- * .setFirewall(firewall.toString())
+ * .setFirewall(formattedFirewall)
* .setFirewallResource(firewallResource)
* .addAllFieldMask(fieldMask)
* .build();
@@ -807,11 +807,11 @@ public final Operation updateFirewall(
*
*
* try (FirewallClient firewallClient = FirewallClient.create()) {
- * ProjectGlobalFirewallName firewall = ProjectGlobalFirewallName.of("[PROJECT]", "[FIREWALL]");
+ * String formattedFirewall = ProjectGlobalFirewallName.format("[PROJECT]", "[FIREWALL]");
* Firewall firewallResource = Firewall.newBuilder().build();
* List<String> fieldMask = new ArrayList<>();
* UpdateFirewallHttpRequest request = UpdateFirewallHttpRequest.newBuilder()
- * .setFirewall(firewall.toString())
+ * .setFirewall(formattedFirewall)
* .setFirewallResource(firewallResource)
* .addAllFieldMask(fieldMask)
* .build();
@@ -837,11 +837,11 @@ public final Operation updateFirewall(UpdateFirewallHttpRequest request) {
*
*
* try (FirewallClient firewallClient = FirewallClient.create()) {
- * ProjectGlobalFirewallName firewall = ProjectGlobalFirewallName.of("[PROJECT]", "[FIREWALL]");
+ * String formattedFirewall = ProjectGlobalFirewallName.format("[PROJECT]", "[FIREWALL]");
* Firewall firewallResource = Firewall.newBuilder().build();
* List<String> fieldMask = new ArrayList<>();
* UpdateFirewallHttpRequest request = UpdateFirewallHttpRequest.newBuilder()
- * .setFirewall(firewall.toString())
+ * .setFirewall(formattedFirewall)
* .setFirewallResource(firewallResource)
* .addAllFieldMask(fieldMask)
* .build();
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleClient.java
index 05cf9a616d1c..c7ab57d39fe9 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleClient.java
@@ -215,9 +215,9 @@ public final AggregatedListForwardingRulesPagedResponse aggregatedListForwarding
*
*
* try (ForwardingRuleClient forwardingRuleClient = ForwardingRuleClient.create()) {
- * ProjectName project = ProjectName.of("[PROJECT]");
+ * String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListForwardingRulesHttpRequest request = AggregatedListForwardingRulesHttpRequest.newBuilder()
- * .setProject(project.toString())
+ * .setProject(formattedProject)
* .build();
* for (ForwardingRulesScopedList element : forwardingRuleClient.aggregatedListForwardingRules(request).iterateAll()) {
* // doThingsWith(element);
@@ -242,9 +242,9 @@ public final AggregatedListForwardingRulesPagedResponse aggregatedListForwarding
*
*