From 7a98618c6fe47d1d9a354f5252266bec2d32c88c Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 9 Sep 2022 14:46:13 +0000 Subject: [PATCH] chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#263) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 472750037 Source-Link: https://github.com/googleapis/googleapis/commit/88f2ea3f53b9712f2e04f28f06210f6f77fa7e24 Source-Link: https://github.com/googleapis/googleapis-gen/commit/230a5588306aae18fe8f2a57f14d4039ad72c901 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjMwYTU1ODgzMDZhYWUxOGZlOGYyYTU3ZjE0ZDQwMzlhZDcyYzkwMSJ9 --- .../gsuiteaddons/v1/GSuiteAddOnsClient.java | 280 +++++++++++++----- .../gsuiteaddons/v1/GSuiteAddOnsSettings.java | 12 +- .../cloud/gsuiteaddons/v1/package-info.java | 7 +- .../v1/stub/GSuiteAddOnsStubSettings.java | 12 +- .../v1/stub/HttpJsonGSuiteAddOnsStub.java | 8 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../SyncCreateSetCredentialsProvider1.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../AsyncCreateDeployment.java | 7 +- .../SyncCreateDeployment.java | 7 +- ...DeploymentProjectnameDeploymentString.java | 7 +- ...reateDeploymentStringDeploymentString.java | 7 +- .../AsyncDeleteDeployment.java | 7 +- .../SyncDeleteDeployment.java | 7 +- .../SyncDeleteDeploymentDeploymentname.java | 7 +- .../SyncDeleteDeploymentString.java | 7 +- .../AsyncGetAuthorization.java | 7 +- .../SyncGetAuthorization.java | 7 +- ...SyncGetAuthorizationAuthorizationname.java | 7 +- .../SyncGetAuthorizationString.java | 7 +- .../getdeployment/AsyncGetDeployment.java | 7 +- .../getdeployment/SyncGetDeployment.java | 7 +- .../SyncGetDeploymentDeploymentname.java | 7 +- .../SyncGetDeploymentString.java | 7 +- .../AsyncGetInstallStatus.java | 7 +- .../SyncGetInstallStatus.java | 7 +- ...SyncGetInstallStatusInstallstatusname.java | 7 +- .../SyncGetInstallStatusString.java | 7 +- .../AsyncInstallDeployment.java | 7 +- .../SyncInstallDeployment.java | 7 +- .../SyncInstallDeploymentDeploymentname.java | 7 +- .../SyncInstallDeploymentString.java | 7 +- .../listdeployments/AsyncListDeployments.java | 7 +- .../AsyncListDeploymentsPaged.java | 7 +- .../listdeployments/SyncListDeployments.java | 7 +- .../SyncListDeploymentsProjectname.java | 7 +- .../SyncListDeploymentsString.java | 7 +- .../AsyncReplaceDeployment.java | 7 +- .../SyncReplaceDeployment.java | 7 +- .../SyncReplaceDeploymentDeployment.java | 7 +- .../AsyncUninstallDeployment.java | 7 +- .../SyncUninstallDeployment.java | 7 +- ...SyncUninstallDeploymentDeploymentname.java | 7 +- .../SyncUninstallDeploymentString.java | 7 +- .../SyncGetAuthorization.java | 12 +- .../SyncGetAuthorization.java | 12 +- 46 files changed, 428 insertions(+), 188 deletions(-) diff --git a/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsClient.java b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsClient.java index 6871b9074ad4..a7a8d15cc31b 100644 --- a/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsClient.java +++ b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsClient.java @@ -62,8 +62,11 @@ * calls that map to API methods. Sample code to get started: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { * AuthorizationName name = AuthorizationName.of("[PROJECT]"); * Authorization response = gSuiteAddOnsClient.getAuthorization(name); @@ -99,8 +102,11 @@ *To customize credentials: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * GSuiteAddOnsSettings gSuiteAddOnsSettings = * GSuiteAddOnsSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -111,8 +117,11 @@ *To customize the endpoint: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * GSuiteAddOnsSettings gSuiteAddOnsSettings = * GSuiteAddOnsSettings.newBuilder().setEndpoint(myEndpoint).build(); * GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create(gSuiteAddOnsSettings); @@ -122,8 +131,11 @@ * the wire: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * GSuiteAddOnsSettings gSuiteAddOnsSettings = * GSuiteAddOnsSettings.newBuilder() * .setTransportChannelProvider( @@ -190,8 +202,11 @@ public GSuiteAddOnsStub getStub() { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { * AuthorizationName name = AuthorizationName.of("[PROJECT]"); * Authorization response = gSuiteAddOnsClient.getAuthorization(name); @@ -216,8 +231,11 @@ public final Authorization getAuthorization(AuthorizationName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { * String name = AuthorizationName.of("[PROJECT]").toString(); * Authorization response = gSuiteAddOnsClient.getAuthorization(name); @@ -241,8 +259,11 @@ public final Authorization getAuthorization(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { * GetAuthorizationRequest request = * GetAuthorizationRequest.newBuilder() @@ -266,8 +287,11 @@ public final Authorization getAuthorization(GetAuthorizationRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { * GetAuthorizationRequest request = * GetAuthorizationRequest.newBuilder() @@ -291,8 +315,11 @@ public final UnaryCallablegetAuthorizat * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * Deployment deployment = Deployment.newBuilder().build(); @@ -326,8 +353,11 @@ public final Deployment createDeployment( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { * String parent = ProjectName.of("[PROJECT]").toString(); * Deployment deployment = Deployment.newBuilder().build(); @@ -361,8 +391,11 @@ public final Deployment createDeployment( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { * CreateDeploymentRequest request = * CreateDeploymentRequest.newBuilder() @@ -388,8 +421,11 @@ public final Deployment createDeployment(CreateDeploymentRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { * CreateDeploymentRequest request = * CreateDeploymentRequest.newBuilder() @@ -415,8 +451,11 @@ public final UnaryCallablecreateDeployment * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { * Deployment deployment = Deployment.newBuilder().build(); * Deployment response = gSuiteAddOnsClient.replaceDeployment(deployment); @@ -439,8 +478,11 @@ public final Deployment replaceDeployment(Deployment deployment) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { * ReplaceDeploymentRequest request = * ReplaceDeploymentRequest.newBuilder() @@ -464,8 +506,11 @@ public final Deployment replaceDeployment(ReplaceDeploymentRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { * ReplaceDeploymentRequest request = * ReplaceDeploymentRequest.newBuilder() @@ -489,8 +534,11 @@ public final UnaryCallablereplaceDeployme * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { * DeploymentName name = DeploymentName.of("[PROJECT]", "[DEPLOYMENT]"); * Deployment response = gSuiteAddOnsClient.getDeployment(name); @@ -514,8 +562,11 @@ public final Deployment getDeployment(DeploymentName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { * String name = DeploymentName.of("[PROJECT]", "[DEPLOYMENT]").toString(); * Deployment response = gSuiteAddOnsClient.getDeployment(name); @@ -538,8 +589,11 @@ public final Deployment getDeployment(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { * GetDeploymentRequest request = * GetDeploymentRequest.newBuilder() @@ -563,8 +617,11 @@ public final Deployment getDeployment(GetDeploymentRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { * GetDeploymentRequest request = * GetDeploymentRequest.newBuilder() @@ -587,8 +644,11 @@ public final UnaryCallablegetDeploymentCallab * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * for (Deployment element : gSuiteAddOnsClient.listDeployments(parent).iterateAll()) { @@ -616,8 +676,11 @@ public final ListDeploymentsPagedResponse listDeployments(ProjectName parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { * String parent = ProjectName.of("[PROJECT]").toString(); * for (Deployment element : gSuiteAddOnsClient.listDeployments(parent).iterateAll()) { @@ -642,8 +705,11 @@ public final ListDeploymentsPagedResponse listDeployments(String parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { * ListDeploymentsRequest request = * ListDeploymentsRequest.newBuilder() @@ -671,8 +737,11 @@ public final ListDeploymentsPagedResponse listDeployments(ListDeploymentsRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { * ListDeploymentsRequest request = * ListDeploymentsRequest.newBuilder() @@ -701,8 +770,11 @@ public final ListDeploymentsPagedResponse listDeployments(ListDeploymentsRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { * ListDeploymentsRequest request = * ListDeploymentsRequest.newBuilder() @@ -738,8 +810,11 @@ public final ListDeploymentsPagedResponse listDeployments(ListDeploymentsRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { * DeploymentName name = DeploymentName.of("[PROJECT]", "[DEPLOYMENT]"); * gSuiteAddOnsClient.deleteDeployment(name); @@ -763,8 +838,11 @@ public final void deleteDeployment(DeploymentName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { * String name = DeploymentName.of("[PROJECT]", "[DEPLOYMENT]").toString(); * gSuiteAddOnsClient.deleteDeployment(name); @@ -787,8 +865,11 @@ public final void deleteDeployment(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { * DeleteDeploymentRequest request = * DeleteDeploymentRequest.newBuilder() @@ -813,8 +894,11 @@ public final void deleteDeployment(DeleteDeploymentRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { * DeleteDeploymentRequest request = * DeleteDeploymentRequest.newBuilder() @@ -839,8 +923,11 @@ public final UnaryCallabledeleteDeploymentCalla * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { * DeploymentName name = DeploymentName.of("[PROJECT]", "[DEPLOYMENT]"); * gSuiteAddOnsClient.installDeployment(name); @@ -867,8 +954,11 @@ public final void installDeployment(DeploymentName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { * String name = DeploymentName.of("[PROJECT]", "[DEPLOYMENT]").toString(); * gSuiteAddOnsClient.installDeployment(name); @@ -892,8 +982,11 @@ public final void installDeployment(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { * InstallDeploymentRequest request = * InstallDeploymentRequest.newBuilder() @@ -918,8 +1011,11 @@ public final void installDeployment(InstallDeploymentRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { * InstallDeploymentRequest request = * InstallDeploymentRequest.newBuilder() @@ -943,8 +1039,11 @@ public final UnaryCallableinstallDeploymentCal * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { * DeploymentName name = DeploymentName.of("[PROJECT]", "[DEPLOYMENT]"); * gSuiteAddOnsClient.uninstallDeployment(name); @@ -971,8 +1070,11 @@ public final void uninstallDeployment(DeploymentName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { * String name = DeploymentName.of("[PROJECT]", "[DEPLOYMENT]").toString(); * gSuiteAddOnsClient.uninstallDeployment(name); @@ -997,8 +1099,11 @@ public final void uninstallDeployment(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { * UninstallDeploymentRequest request = * UninstallDeploymentRequest.newBuilder() @@ -1023,8 +1128,11 @@ public final void uninstallDeployment(UninstallDeploymentRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { * UninstallDeploymentRequest request = * UninstallDeploymentRequest.newBuilder() @@ -1048,8 +1156,11 @@ public final UnaryCallableuninstallDeploymen * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { * InstallStatusName name = InstallStatusName.of("[PROJECT]", "[DEPLOYMENT]"); * InstallStatus response = gSuiteAddOnsClient.getInstallStatus(name); @@ -1073,8 +1184,11 @@ public final InstallStatus getInstallStatus(InstallStatusName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { * String name = InstallStatusName.of("[PROJECT]", "[DEPLOYMENT]").toString(); * InstallStatus response = gSuiteAddOnsClient.getInstallStatus(name); @@ -1097,8 +1211,11 @@ public final InstallStatus getInstallStatus(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { * GetInstallStatusRequest request = * GetInstallStatusRequest.newBuilder() @@ -1122,8 +1239,11 @@ public final InstallStatus getInstallStatus(GetInstallStatusRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { * GetInstallStatusRequest request = * GetInstallStatusRequest.newBuilder() diff --git a/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsSettings.java b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsSettings.java index f594d82e4952..f56e6ffd5677 100644 --- a/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsSettings.java +++ b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsSettings.java @@ -54,16 +54,16 @@ *For example, to set the total timeout of getAuthorization to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * GSuiteAddOnsSettings.Builder gSuiteAddOnsSettingsBuilder = GSuiteAddOnsSettings.newBuilder(); * gSuiteAddOnsSettingsBuilder * .getAuthorizationSettings() * .setRetrySettings( - * gSuiteAddOnsSettingsBuilder - * .getAuthorizationSettings() - * .getRetrySettings() - * .toBuilder() + * gSuiteAddOnsSettingsBuilder.getAuthorizationSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * GSuiteAddOnsSettings gSuiteAddOnsSettings = gSuiteAddOnsSettingsBuilder.build(); diff --git a/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/package-info.java b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/package-info.java index deb1a74704ba..92fc8d68223d 100644 --- a/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/package-info.java +++ b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/package-info.java @@ -45,8 +45,11 @@ *Sample for GSuiteAddOnsClient: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { * AuthorizationName name = AuthorizationName.of("[PROJECT]"); * Authorization response = gSuiteAddOnsClient.getAuthorization(name); diff --git a/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/stub/GSuiteAddOnsStubSettings.java b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/stub/GSuiteAddOnsStubSettings.java index 923be86f1528..b499307d2e44 100644 --- a/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/stub/GSuiteAddOnsStubSettings.java +++ b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/stub/GSuiteAddOnsStubSettings.java @@ -84,17 +84,17 @@ *For example, to set the total timeout of getAuthorization to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * GSuiteAddOnsStubSettings.Builder gSuiteAddOnsSettingsBuilder = * GSuiteAddOnsStubSettings.newBuilder(); * gSuiteAddOnsSettingsBuilder * .getAuthorizationSettings() * .setRetrySettings( - * gSuiteAddOnsSettingsBuilder - * .getAuthorizationSettings() - * .getRetrySettings() - * .toBuilder() + * gSuiteAddOnsSettingsBuilder.getAuthorizationSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * GSuiteAddOnsStubSettings gSuiteAddOnsSettings = gSuiteAddOnsSettingsBuilder.build(); diff --git a/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/stub/HttpJsonGSuiteAddOnsStub.java b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/stub/HttpJsonGSuiteAddOnsStub.java index d361039e7e1f..d4c59f8e9a78 100644 --- a/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/stub/HttpJsonGSuiteAddOnsStub.java +++ b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/stub/HttpJsonGSuiteAddOnsStub.java @@ -126,7 +126,7 @@ public class HttpJsonGSuiteAddOnsStub extends GSuiteAddOnsStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("deployment", request.getDeployment())) + .toBody("deployment", request.getDeployment(), false)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -163,7 +163,7 @@ public class HttpJsonGSuiteAddOnsStub extends GSuiteAddOnsStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("deployment", request.getDeployment())) + .toBody("deployment", request.getDeployment(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -301,7 +301,7 @@ public class HttpJsonGSuiteAddOnsStub extends GSuiteAddOnsStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -337,7 +337,7 @@ public class HttpJsonGSuiteAddOnsStub extends GSuiteAddOnsStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/create/SyncCreateSetCredentialsProvider.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/create/SyncCreateSetCredentialsProvider.java index 243da0938a84..2677545f2602 100644 --- a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/create/SyncCreateSetCredentialsProvider.java +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/create/SyncCreateSetCredentialsProvider.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library GSuiteAddOnsSettings gSuiteAddOnsSettings = GSuiteAddOnsSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/create/SyncCreateSetCredentialsProvider1.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/create/SyncCreateSetCredentialsProvider1.java index 07d250f84a0d..4c7670f144ba 100644 --- a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/create/SyncCreateSetCredentialsProvider1.java +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/create/SyncCreateSetCredentialsProvider1.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library GSuiteAddOnsSettings gSuiteAddOnsSettings = GSuiteAddOnsSettings.newBuilder() .setTransportChannelProvider( diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/create/SyncCreateSetEndpoint.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/create/SyncCreateSetEndpoint.java index 40033316c8ba..29ea4e56af22 100644 --- a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/create/SyncCreateSetEndpoint.java +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/create/SyncCreateSetEndpoint.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetEndpoint() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library GSuiteAddOnsSettings gSuiteAddOnsSettings = GSuiteAddOnsSettings.newBuilder().setEndpoint(myEndpoint).build(); GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create(gSuiteAddOnsSettings); diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/createdeployment/AsyncCreateDeployment.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/createdeployment/AsyncCreateDeployment.java index 888cb5d46430..097cfb16a8fd 100644 --- a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/createdeployment/AsyncCreateDeployment.java +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/createdeployment/AsyncCreateDeployment.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateDeployment() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { CreateDeploymentRequest request = CreateDeploymentRequest.newBuilder() diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/createdeployment/SyncCreateDeployment.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/createdeployment/SyncCreateDeployment.java index 9fb789926936..7ed8345b3863 100644 --- a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/createdeployment/SyncCreateDeployment.java +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/createdeployment/SyncCreateDeployment.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateDeployment() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { CreateDeploymentRequest request = CreateDeploymentRequest.newBuilder() diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/createdeployment/SyncCreateDeploymentProjectnameDeploymentString.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/createdeployment/SyncCreateDeploymentProjectnameDeploymentString.java index dcc5a37b2a33..0ae6420c848d 100644 --- a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/createdeployment/SyncCreateDeploymentProjectnameDeploymentString.java +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/createdeployment/SyncCreateDeploymentProjectnameDeploymentString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateDeploymentProjectnameDeploymentString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { ProjectName parent = ProjectName.of("[PROJECT]"); Deployment deployment = Deployment.newBuilder().build(); diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/createdeployment/SyncCreateDeploymentStringDeploymentString.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/createdeployment/SyncCreateDeploymentStringDeploymentString.java index 2526906a6b3d..bf296f9b1941 100644 --- a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/createdeployment/SyncCreateDeploymentStringDeploymentString.java +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/createdeployment/SyncCreateDeploymentStringDeploymentString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateDeploymentStringDeploymentString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { String parent = ProjectName.of("[PROJECT]").toString(); Deployment deployment = Deployment.newBuilder().build(); diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/deletedeployment/AsyncDeleteDeployment.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/deletedeployment/AsyncDeleteDeployment.java index fdf318bdc3cb..726bf929f21b 100644 --- a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/deletedeployment/AsyncDeleteDeployment.java +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/deletedeployment/AsyncDeleteDeployment.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteDeployment() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { DeleteDeploymentRequest request = DeleteDeploymentRequest.newBuilder() diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/deletedeployment/SyncDeleteDeployment.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/deletedeployment/SyncDeleteDeployment.java index 595395559bc5..25cd010c3237 100644 --- a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/deletedeployment/SyncDeleteDeployment.java +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/deletedeployment/SyncDeleteDeployment.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteDeployment() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { DeleteDeploymentRequest request = DeleteDeploymentRequest.newBuilder() diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/deletedeployment/SyncDeleteDeploymentDeploymentname.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/deletedeployment/SyncDeleteDeploymentDeploymentname.java index fb509918e4c6..9cba43f73918 100644 --- a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/deletedeployment/SyncDeleteDeploymentDeploymentname.java +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/deletedeployment/SyncDeleteDeploymentDeploymentname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteDeploymentDeploymentname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { DeploymentName name = DeploymentName.of("[PROJECT]", "[DEPLOYMENT]"); gSuiteAddOnsClient.deleteDeployment(name); diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/deletedeployment/SyncDeleteDeploymentString.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/deletedeployment/SyncDeleteDeploymentString.java index 53d920edf5ca..53ee173313e8 100644 --- a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/deletedeployment/SyncDeleteDeploymentString.java +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/deletedeployment/SyncDeleteDeploymentString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteDeploymentString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { String name = DeploymentName.of("[PROJECT]", "[DEPLOYMENT]").toString(); gSuiteAddOnsClient.deleteDeployment(name); diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getauthorization/AsyncGetAuthorization.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getauthorization/AsyncGetAuthorization.java index 68dbea5ab141..109947f05697 100644 --- a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getauthorization/AsyncGetAuthorization.java +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getauthorization/AsyncGetAuthorization.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetAuthorization() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { GetAuthorizationRequest request = GetAuthorizationRequest.newBuilder() diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getauthorization/SyncGetAuthorization.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getauthorization/SyncGetAuthorization.java index 6d6898e71007..1725fcd8f52b 100644 --- a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getauthorization/SyncGetAuthorization.java +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getauthorization/SyncGetAuthorization.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetAuthorization() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { GetAuthorizationRequest request = GetAuthorizationRequest.newBuilder() diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getauthorization/SyncGetAuthorizationAuthorizationname.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getauthorization/SyncGetAuthorizationAuthorizationname.java index c37c4d99ea85..4c94af2c563c 100644 --- a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getauthorization/SyncGetAuthorizationAuthorizationname.java +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getauthorization/SyncGetAuthorizationAuthorizationname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetAuthorizationAuthorizationname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { AuthorizationName name = AuthorizationName.of("[PROJECT]"); Authorization response = gSuiteAddOnsClient.getAuthorization(name); diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getauthorization/SyncGetAuthorizationString.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getauthorization/SyncGetAuthorizationString.java index 55f7c2b465cc..e9bdd8bcc17a 100644 --- a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getauthorization/SyncGetAuthorizationString.java +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getauthorization/SyncGetAuthorizationString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetAuthorizationString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { String name = AuthorizationName.of("[PROJECT]").toString(); Authorization response = gSuiteAddOnsClient.getAuthorization(name); diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getdeployment/AsyncGetDeployment.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getdeployment/AsyncGetDeployment.java index 2bd54de362c4..e61f3afce07b 100644 --- a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getdeployment/AsyncGetDeployment.java +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getdeployment/AsyncGetDeployment.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetDeployment() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { GetDeploymentRequest request = GetDeploymentRequest.newBuilder() diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getdeployment/SyncGetDeployment.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getdeployment/SyncGetDeployment.java index 4c999733e974..1addbefbf144 100644 --- a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getdeployment/SyncGetDeployment.java +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getdeployment/SyncGetDeployment.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetDeployment() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { GetDeploymentRequest request = GetDeploymentRequest.newBuilder() diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getdeployment/SyncGetDeploymentDeploymentname.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getdeployment/SyncGetDeploymentDeploymentname.java index 8c22d3eaadfb..64310550420a 100644 --- a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getdeployment/SyncGetDeploymentDeploymentname.java +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getdeployment/SyncGetDeploymentDeploymentname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetDeploymentDeploymentname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { DeploymentName name = DeploymentName.of("[PROJECT]", "[DEPLOYMENT]"); Deployment response = gSuiteAddOnsClient.getDeployment(name); diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getdeployment/SyncGetDeploymentString.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getdeployment/SyncGetDeploymentString.java index 01ae501ee152..5621992dd9fe 100644 --- a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getdeployment/SyncGetDeploymentString.java +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getdeployment/SyncGetDeploymentString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetDeploymentString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { String name = DeploymentName.of("[PROJECT]", "[DEPLOYMENT]").toString(); Deployment response = gSuiteAddOnsClient.getDeployment(name); diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getinstallstatus/AsyncGetInstallStatus.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getinstallstatus/AsyncGetInstallStatus.java index b547d57bfe4a..ee2f0ceb4577 100644 --- a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getinstallstatus/AsyncGetInstallStatus.java +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getinstallstatus/AsyncGetInstallStatus.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetInstallStatus() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { GetInstallStatusRequest request = GetInstallStatusRequest.newBuilder() diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getinstallstatus/SyncGetInstallStatus.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getinstallstatus/SyncGetInstallStatus.java index 795e04558e00..b525732e8649 100644 --- a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getinstallstatus/SyncGetInstallStatus.java +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getinstallstatus/SyncGetInstallStatus.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetInstallStatus() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { GetInstallStatusRequest request = GetInstallStatusRequest.newBuilder() diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getinstallstatus/SyncGetInstallStatusInstallstatusname.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getinstallstatus/SyncGetInstallStatusInstallstatusname.java index 3607dbe6a238..6c3376842f14 100644 --- a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getinstallstatus/SyncGetInstallStatusInstallstatusname.java +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getinstallstatus/SyncGetInstallStatusInstallstatusname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetInstallStatusInstallstatusname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { InstallStatusName name = InstallStatusName.of("[PROJECT]", "[DEPLOYMENT]"); InstallStatus response = gSuiteAddOnsClient.getInstallStatus(name); diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getinstallstatus/SyncGetInstallStatusString.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getinstallstatus/SyncGetInstallStatusString.java index bf2d086efc64..1762a03a14ca 100644 --- a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getinstallstatus/SyncGetInstallStatusString.java +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/getinstallstatus/SyncGetInstallStatusString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetInstallStatusString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { String name = InstallStatusName.of("[PROJECT]", "[DEPLOYMENT]").toString(); InstallStatus response = gSuiteAddOnsClient.getInstallStatus(name); diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/installdeployment/AsyncInstallDeployment.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/installdeployment/AsyncInstallDeployment.java index 6c4d8d0079dc..414f22833656 100644 --- a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/installdeployment/AsyncInstallDeployment.java +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/installdeployment/AsyncInstallDeployment.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncInstallDeployment() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { InstallDeploymentRequest request = InstallDeploymentRequest.newBuilder() diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/installdeployment/SyncInstallDeployment.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/installdeployment/SyncInstallDeployment.java index 170c8609001e..95fae58d211e 100644 --- a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/installdeployment/SyncInstallDeployment.java +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/installdeployment/SyncInstallDeployment.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncInstallDeployment() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { InstallDeploymentRequest request = InstallDeploymentRequest.newBuilder() diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/installdeployment/SyncInstallDeploymentDeploymentname.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/installdeployment/SyncInstallDeploymentDeploymentname.java index 5348e6171c8e..38405de27759 100644 --- a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/installdeployment/SyncInstallDeploymentDeploymentname.java +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/installdeployment/SyncInstallDeploymentDeploymentname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncInstallDeploymentDeploymentname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { DeploymentName name = DeploymentName.of("[PROJECT]", "[DEPLOYMENT]"); gSuiteAddOnsClient.installDeployment(name); diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/installdeployment/SyncInstallDeploymentString.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/installdeployment/SyncInstallDeploymentString.java index 474c4c1407ab..863c46da2fee 100644 --- a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/installdeployment/SyncInstallDeploymentString.java +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/installdeployment/SyncInstallDeploymentString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncInstallDeploymentString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { String name = DeploymentName.of("[PROJECT]", "[DEPLOYMENT]").toString(); gSuiteAddOnsClient.installDeployment(name); diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/listdeployments/AsyncListDeployments.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/listdeployments/AsyncListDeployments.java index 0424eaebbee4..dffcccc241d7 100644 --- a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/listdeployments/AsyncListDeployments.java +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/listdeployments/AsyncListDeployments.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListDeployments() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { ListDeploymentsRequest request = ListDeploymentsRequest.newBuilder() diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/listdeployments/AsyncListDeploymentsPaged.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/listdeployments/AsyncListDeploymentsPaged.java index 82ebf7eee2b9..7eb82c089263 100644 --- a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/listdeployments/AsyncListDeploymentsPaged.java +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/listdeployments/AsyncListDeploymentsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListDeploymentsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { ListDeploymentsRequest request = ListDeploymentsRequest.newBuilder() diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/listdeployments/SyncListDeployments.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/listdeployments/SyncListDeployments.java index 870da8b20350..a291f84fbb13 100644 --- a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/listdeployments/SyncListDeployments.java +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/listdeployments/SyncListDeployments.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListDeployments() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { ListDeploymentsRequest request = ListDeploymentsRequest.newBuilder() diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/listdeployments/SyncListDeploymentsProjectname.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/listdeployments/SyncListDeploymentsProjectname.java index 9cb6f726e2c3..e42700adb936 100644 --- a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/listdeployments/SyncListDeploymentsProjectname.java +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/listdeployments/SyncListDeploymentsProjectname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListDeploymentsProjectname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { ProjectName parent = ProjectName.of("[PROJECT]"); for (Deployment element : gSuiteAddOnsClient.listDeployments(parent).iterateAll()) { diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/listdeployments/SyncListDeploymentsString.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/listdeployments/SyncListDeploymentsString.java index df8903697d34..388269b8c9d5 100644 --- a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/listdeployments/SyncListDeploymentsString.java +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/listdeployments/SyncListDeploymentsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListDeploymentsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { String parent = ProjectName.of("[PROJECT]").toString(); for (Deployment element : gSuiteAddOnsClient.listDeployments(parent).iterateAll()) { diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/replacedeployment/AsyncReplaceDeployment.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/replacedeployment/AsyncReplaceDeployment.java index b48b948d1807..896d5236306b 100644 --- a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/replacedeployment/AsyncReplaceDeployment.java +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/replacedeployment/AsyncReplaceDeployment.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncReplaceDeployment() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { ReplaceDeploymentRequest request = ReplaceDeploymentRequest.newBuilder() diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/replacedeployment/SyncReplaceDeployment.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/replacedeployment/SyncReplaceDeployment.java index b8e310c915a2..b82c2911afbb 100644 --- a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/replacedeployment/SyncReplaceDeployment.java +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/replacedeployment/SyncReplaceDeployment.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncReplaceDeployment() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { ReplaceDeploymentRequest request = ReplaceDeploymentRequest.newBuilder() diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/replacedeployment/SyncReplaceDeploymentDeployment.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/replacedeployment/SyncReplaceDeploymentDeployment.java index 1afd474e654f..39d7ad1a736d 100644 --- a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/replacedeployment/SyncReplaceDeploymentDeployment.java +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/replacedeployment/SyncReplaceDeploymentDeployment.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncReplaceDeploymentDeployment() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { Deployment deployment = Deployment.newBuilder().build(); Deployment response = gSuiteAddOnsClient.replaceDeployment(deployment); diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/uninstalldeployment/AsyncUninstallDeployment.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/uninstalldeployment/AsyncUninstallDeployment.java index a9f662aceb33..fb3707488992 100644 --- a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/uninstalldeployment/AsyncUninstallDeployment.java +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/uninstalldeployment/AsyncUninstallDeployment.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUninstallDeployment() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { UninstallDeploymentRequest request = UninstallDeploymentRequest.newBuilder() diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/uninstalldeployment/SyncUninstallDeployment.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/uninstalldeployment/SyncUninstallDeployment.java index 309213367440..b4809c7f4faa 100644 --- a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/uninstalldeployment/SyncUninstallDeployment.java +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/uninstalldeployment/SyncUninstallDeployment.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUninstallDeployment() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { UninstallDeploymentRequest request = UninstallDeploymentRequest.newBuilder() diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/uninstalldeployment/SyncUninstallDeploymentDeploymentname.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/uninstalldeployment/SyncUninstallDeploymentDeploymentname.java index ed27582ebd34..8805b988681b 100644 --- a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/uninstalldeployment/SyncUninstallDeploymentDeploymentname.java +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/uninstalldeployment/SyncUninstallDeploymentDeploymentname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUninstallDeploymentDeploymentname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { DeploymentName name = DeploymentName.of("[PROJECT]", "[DEPLOYMENT]"); gSuiteAddOnsClient.uninstallDeployment(name); diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/uninstalldeployment/SyncUninstallDeploymentString.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/uninstalldeployment/SyncUninstallDeploymentString.java index 4b0037840328..0a4ee3a369d0 100644 --- a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/uninstalldeployment/SyncUninstallDeploymentString.java +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonsclient/uninstalldeployment/SyncUninstallDeploymentString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUninstallDeploymentString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.create()) { String name = DeploymentName.of("[PROJECT]", "[DEPLOYMENT]").toString(); gSuiteAddOnsClient.uninstallDeployment(name); diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonssettings/getauthorization/SyncGetAuthorization.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonssettings/getauthorization/SyncGetAuthorization.java index 1a27ab5fd9b8..e29709b6c201 100644 --- a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonssettings/getauthorization/SyncGetAuthorization.java +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/gsuiteaddonssettings/getauthorization/SyncGetAuthorization.java @@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception { } public static void syncGetAuthorization() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library GSuiteAddOnsSettings.Builder gSuiteAddOnsSettingsBuilder = GSuiteAddOnsSettings.newBuilder(); gSuiteAddOnsSettingsBuilder .getAuthorizationSettings() .setRetrySettings( - gSuiteAddOnsSettingsBuilder - .getAuthorizationSettings() - .getRetrySettings() - .toBuilder() + gSuiteAddOnsSettingsBuilder.getAuthorizationSettings().getRetrySettings().toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); GSuiteAddOnsSettings gSuiteAddOnsSettings = gSuiteAddOnsSettingsBuilder.build(); diff --git a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/stub/gsuiteaddonsstubsettings/getauthorization/SyncGetAuthorization.java b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/stub/gsuiteaddonsstubsettings/getauthorization/SyncGetAuthorization.java index 848e0cab5236..7d7c8e6dd267 100644 --- a/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/stub/gsuiteaddonsstubsettings/getauthorization/SyncGetAuthorization.java +++ b/java-gsuite-addons/samples/snippets/generated/com/google/cloud/gsuiteaddons/v1/stub/gsuiteaddonsstubsettings/getauthorization/SyncGetAuthorization.java @@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception { } public static void syncGetAuthorization() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library GSuiteAddOnsStubSettings.Builder gSuiteAddOnsSettingsBuilder = GSuiteAddOnsStubSettings.newBuilder(); gSuiteAddOnsSettingsBuilder .getAuthorizationSettings() .setRetrySettings( - gSuiteAddOnsSettingsBuilder - .getAuthorizationSettings() - .getRetrySettings() - .toBuilder() + gSuiteAddOnsSettingsBuilder.getAuthorizationSettings().getRetrySettings().toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); GSuiteAddOnsStubSettings gSuiteAddOnsSettings = gSuiteAddOnsSettingsBuilder.build();