From 6073630cdc3b36275aaaeec0e8317da4de30dbe1 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:48:14 +0000 Subject: [PATCH] chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#909) - [ ] 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 --- java-dataproc/README.md | 4 +- .../v1/AutoscalingPolicyServiceClient.java | 182 ++++++++---- .../v1/AutoscalingPolicyServiceSettings.java | 7 +- .../dataproc/v1/BatchControllerClient.java | 154 +++++++--- .../dataproc/v1/BatchControllerSettings.java | 12 +- .../dataproc/v1/ClusterControllerClient.java | 238 ++++++++++----- .../v1/ClusterControllerSettings.java | 12 +- .../dataproc/v1/JobControllerClient.java | 189 ++++++++---- .../dataproc/v1/JobControllerSettings.java | 12 +- .../v1/WorkflowTemplateServiceClient.java | 273 +++++++++++++----- .../v1/WorkflowTemplateServiceSettings.java | 7 +- .../cloud/dataproc/v1/package-info.java | 35 ++- .../AutoscalingPolicyServiceStubSettings.java | 7 +- .../v1/stub/BatchControllerStubSettings.java | 12 +- .../stub/ClusterControllerStubSettings.java | 12 +- .../HttpJsonAutoscalingPolicyServiceStub.java | 6 +- .../v1/stub/HttpJsonBatchControllerStub.java | 3 +- .../stub/HttpJsonClusterControllerStub.java | 15 +- .../v1/stub/HttpJsonJobControllerStub.java | 13 +- .../HttpJsonWorkflowTemplateServiceStub.java | 8 +- .../v1/stub/JobControllerStubSettings.java | 12 +- .../WorkflowTemplateServiceStubSettings.java | 7 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../SyncCreateSetCredentialsProvider1.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../AsyncCreateAutoscalingPolicy.java | 7 +- .../SyncCreateAutoscalingPolicy.java | 7 +- ...ngPolicyLocationnameAutoscalingpolicy.java | 7 +- ...lingPolicyRegionnameAutoscalingpolicy.java | 7 +- ...oscalingPolicyStringAutoscalingpolicy.java | 7 +- .../AsyncDeleteAutoscalingPolicy.java | 7 +- .../SyncDeleteAutoscalingPolicy.java | 7 +- ...utoscalingPolicyAutoscalingpolicyname.java | 7 +- .../SyncDeleteAutoscalingPolicyString.java | 7 +- .../AsyncGetAutoscalingPolicy.java | 7 +- .../SyncGetAutoscalingPolicy.java | 7 +- ...utoscalingPolicyAutoscalingpolicyname.java | 7 +- .../SyncGetAutoscalingPolicyString.java | 7 +- .../AsyncListAutoscalingPolicies.java | 7 +- .../AsyncListAutoscalingPoliciesPaged.java | 7 +- .../SyncListAutoscalingPolicies.java | 7 +- ...ncListAutoscalingPoliciesLocationname.java | 7 +- ...SyncListAutoscalingPoliciesRegionname.java | 7 +- .../SyncListAutoscalingPoliciesString.java | 7 +- .../AsyncUpdateAutoscalingPolicy.java | 7 +- .../SyncUpdateAutoscalingPolicy.java | 7 +- ...ateAutoscalingPolicyAutoscalingpolicy.java | 7 +- .../SyncCreateAutoscalingPolicy.java | 7 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../SyncCreateSetCredentialsProvider1.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../createbatch/AsyncCreateBatch.java | 7 +- .../createbatch/AsyncCreateBatchLRO.java | 7 +- .../createbatch/SyncCreateBatch.java | 7 +- ...yncCreateBatchLocationnameBatchString.java | 7 +- .../SyncCreateBatchStringBatchString.java | 7 +- .../deletebatch/AsyncDeleteBatch.java | 7 +- .../deletebatch/SyncDeleteBatch.java | 7 +- .../deletebatch/SyncDeleteBatchBatchname.java | 7 +- .../deletebatch/SyncDeleteBatchString.java | 7 +- .../getbatch/AsyncGetBatch.java | 7 +- .../getbatch/SyncGetBatch.java | 7 +- .../getbatch/SyncGetBatchBatchname.java | 7 +- .../getbatch/SyncGetBatchString.java | 7 +- .../listbatches/AsyncListBatches.java | 7 +- .../listbatches/AsyncListBatchesPaged.java | 7 +- .../listbatches/SyncListBatches.java | 7 +- .../SyncListBatchesLocationname.java | 7 +- .../listbatches/SyncListBatchesString.java | 7 +- .../getbatch/SyncGetBatch.java | 12 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../SyncCreateSetCredentialsProvider1.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../createcluster/AsyncCreateCluster.java | 7 +- .../createcluster/AsyncCreateClusterLRO.java | 7 +- .../createcluster/SyncCreateCluster.java | 7 +- .../SyncCreateClusterStringStringCluster.java | 7 +- .../deletecluster/AsyncDeleteCluster.java | 7 +- .../deletecluster/AsyncDeleteClusterLRO.java | 7 +- .../deletecluster/SyncDeleteCluster.java | 7 +- .../SyncDeleteClusterStringStringString.java | 7 +- .../diagnosecluster/AsyncDiagnoseCluster.java | 7 +- .../AsyncDiagnoseClusterLRO.java | 7 +- .../diagnosecluster/SyncDiagnoseCluster.java | 7 +- ...SyncDiagnoseClusterStringStringString.java | 7 +- .../getcluster/AsyncGetCluster.java | 7 +- .../getcluster/SyncGetCluster.java | 7 +- .../SyncGetClusterStringStringString.java | 7 +- .../listclusters/AsyncListClusters.java | 7 +- .../listclusters/AsyncListClustersPaged.java | 7 +- .../listclusters/SyncListClusters.java | 7 +- .../SyncListClustersStringString.java | 7 +- .../SyncListClustersStringStringString.java | 7 +- .../startcluster/AsyncStartCluster.java | 7 +- .../startcluster/AsyncStartClusterLRO.java | 7 +- .../startcluster/SyncStartCluster.java | 7 +- .../stopcluster/AsyncStopCluster.java | 7 +- .../stopcluster/AsyncStopClusterLRO.java | 7 +- .../stopcluster/SyncStopCluster.java | 7 +- .../updatecluster/AsyncUpdateCluster.java | 7 +- .../updatecluster/AsyncUpdateClusterLRO.java | 7 +- .../updatecluster/SyncUpdateCluster.java | 7 +- ...terStringStringStringClusterFieldmask.java | 7 +- .../getcluster/SyncGetCluster.java | 12 +- .../canceljob/AsyncCancelJob.java | 7 +- .../canceljob/SyncCancelJob.java | 7 +- .../SyncCancelJobStringStringString.java | 7 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../SyncCreateSetCredentialsProvider1.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../deletejob/AsyncDeleteJob.java | 7 +- .../deletejob/SyncDeleteJob.java | 7 +- .../SyncDeleteJobStringStringString.java | 7 +- .../getjob/AsyncGetJob.java | 7 +- .../getjob/SyncGetJob.java | 7 +- .../getjob/SyncGetJobStringStringString.java | 7 +- .../listjobs/AsyncListJobs.java | 7 +- .../listjobs/AsyncListJobsPaged.java | 7 +- .../listjobs/SyncListJobs.java | 7 +- .../listjobs/SyncListJobsStringString.java | 7 +- .../SyncListJobsStringStringString.java | 7 +- .../submitjob/AsyncSubmitJob.java | 7 +- .../submitjob/SyncSubmitJob.java | 7 +- .../SyncSubmitJobStringStringJob.java | 7 +- .../AsyncSubmitJobAsOperation.java | 7 +- .../AsyncSubmitJobAsOperationLRO.java | 7 +- .../SyncSubmitJobAsOperation.java | 7 +- ...ncSubmitJobAsOperationStringStringJob.java | 7 +- .../updatejob/AsyncUpdateJob.java | 7 +- .../updatejob/SyncUpdateJob.java | 7 +- .../submitjob/SyncSubmitJob.java | 12 +- .../SyncCreateAutoscalingPolicy.java | 7 +- .../getbatch/SyncGetBatch.java | 12 +- .../getcluster/SyncGetCluster.java | 12 +- .../submitjob/SyncSubmitJob.java | 12 +- .../SyncCreateWorkflowTemplate.java | 7 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../SyncCreateSetCredentialsProvider1.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../AsyncCreateWorkflowTemplate.java | 7 +- .../SyncCreateWorkflowTemplate.java | 7 +- ...wTemplateLocationnameWorkflowtemplate.java | 7 +- ...lowTemplateRegionnameWorkflowtemplate.java | 7 +- ...orkflowTemplateStringWorkflowtemplate.java | 7 +- .../AsyncDeleteWorkflowTemplate.java | 7 +- .../SyncDeleteWorkflowTemplate.java | 7 +- .../SyncDeleteWorkflowTemplateString.java | 7 +- ...eWorkflowTemplateWorkflowtemplatename.java | 7 +- .../AsyncGetWorkflowTemplate.java | 7 +- .../SyncGetWorkflowTemplate.java | 7 +- .../SyncGetWorkflowTemplateString.java | 7 +- ...tWorkflowTemplateWorkflowtemplatename.java | 7 +- ...syncInstantiateInlineWorkflowTemplate.java | 7 +- ...cInstantiateInlineWorkflowTemplateLRO.java | 7 +- ...SyncInstantiateInlineWorkflowTemplate.java | 7 +- ...wTemplateLocationnameWorkflowtemplate.java | 7 +- ...lowTemplateRegionnameWorkflowtemplate.java | 7 +- ...orkflowTemplateStringWorkflowtemplate.java | 7 +- .../AsyncInstantiateWorkflowTemplate.java | 7 +- .../AsyncInstantiateWorkflowTemplateLRO.java | 7 +- .../SyncInstantiateWorkflowTemplate.java | 7 +- ...SyncInstantiateWorkflowTemplateString.java | 7 +- ...WorkflowTemplateStringMapstringstring.java | 7 +- ...eWorkflowTemplateWorkflowtemplatename.java | 7 +- ...teWorkflowtemplatenameMapstringstring.java | 7 +- .../AsyncListWorkflowTemplates.java | 7 +- .../AsyncListWorkflowTemplatesPaged.java | 7 +- .../SyncListWorkflowTemplates.java | 7 +- ...SyncListWorkflowTemplatesLocationname.java | 7 +- .../SyncListWorkflowTemplatesRegionname.java | 7 +- .../SyncListWorkflowTemplatesString.java | 7 +- .../AsyncUpdateWorkflowTemplate.java | 7 +- .../SyncUpdateWorkflowTemplate.java | 7 +- ...pdateWorkflowTemplateWorkflowtemplate.java | 7 +- .../SyncCreateWorkflowTemplate.java | 7 +- 175 files changed, 1623 insertions(+), 698 deletions(-) diff --git a/java-dataproc/README.md b/java-dataproc/README.md index 94a7056a89ac..6fb63bac91d6 100644 --- a/java-dataproc/README.md +++ b/java-dataproc/README.md @@ -57,13 +57,13 @@ implementation 'com.google.cloud:google-cloud-dataproc' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc:4.0.3' +implementation 'com.google.cloud:google-cloud-dataproc:4.0.4' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.0.3" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.0.4" ``` ## Authentication diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java index 9f4bfa44f0f6..3657881ddc2f 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java @@ -41,8 +41,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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = * AutoscalingPolicyServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); @@ -82,8 +85,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 * AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings = * AutoscalingPolicyServiceSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -95,8 +101,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 * AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings = * AutoscalingPolicyServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); * AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = @@ -107,8 +116,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 * AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings = * AutoscalingPolicyServiceSettings.newBuilder() * .setTransportChannelProvider( @@ -179,8 +191,11 @@ public AutoscalingPolicyServiceStub 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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = * AutoscalingPolicyServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); @@ -221,8 +236,11 @@ public final AutoscalingPolicy createAutoscalingPolicy( *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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = * AutoscalingPolicyServiceClient.create()) { * RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); @@ -263,8 +281,11 @@ public final AutoscalingPolicy createAutoscalingPolicy( *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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = * AutoscalingPolicyServiceClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); @@ -301,8 +322,11 @@ public final AutoscalingPolicy createAutoscalingPolicy(String parent, Autoscalin *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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = * AutoscalingPolicyServiceClient.create()) { * CreateAutoscalingPolicyRequest request = @@ -328,8 +352,11 @@ public final AutoscalingPolicy createAutoscalingPolicy(CreateAutoscalingPolicyRe *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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = * AutoscalingPolicyServiceClient.create()) { * CreateAutoscalingPolicyRequest request = @@ -358,8 +385,11 @@ public final AutoscalingPolicy createAutoscalingPolicy(CreateAutoscalingPolicyRe *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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = * AutoscalingPolicyServiceClient.create()) { * AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); @@ -385,8 +415,11 @@ public final AutoscalingPolicy updateAutoscalingPolicy(AutoscalingPolicy policy) *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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = * AutoscalingPolicyServiceClient.create()) { * UpdateAutoscalingPolicyRequest request = @@ -413,8 +446,11 @@ public final AutoscalingPolicy updateAutoscalingPolicy(UpdateAutoscalingPolicyRe *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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = * AutoscalingPolicyServiceClient.create()) { * UpdateAutoscalingPolicyRequest request = @@ -440,8 +476,11 @@ public final AutoscalingPolicy updateAutoscalingPolicy(UpdateAutoscalingPolicyRe *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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = * AutoscalingPolicyServiceClient.create()) { * AutoscalingPolicyName name = @@ -481,8 +520,11 @@ public final AutoscalingPolicy getAutoscalingPolicy(AutoscalingPolicyName 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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = * AutoscalingPolicyServiceClient.create()) { * String name = @@ -521,8 +563,11 @@ public final AutoscalingPolicy getAutoscalingPolicy(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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = * AutoscalingPolicyServiceClient.create()) { * GetAutoscalingPolicyRequest request = @@ -550,8 +595,11 @@ public final AutoscalingPolicy getAutoscalingPolicy(GetAutoscalingPolicyRequest *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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = * AutoscalingPolicyServiceClient.create()) { * GetAutoscalingPolicyRequest request = @@ -580,8 +628,11 @@ public final AutoscalingPolicy getAutoscalingPolicy(GetAutoscalingPolicyRequest *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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = * AutoscalingPolicyServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); @@ -620,8 +671,11 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(Locati *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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = * AutoscalingPolicyServiceClient.create()) { * RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); @@ -660,8 +714,11 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(Region *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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = * AutoscalingPolicyServiceClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); @@ -698,8 +755,11 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(String *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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = * AutoscalingPolicyServiceClient.create()) { * ListAutoscalingPoliciesRequest request = @@ -730,8 +790,11 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies( *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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = * AutoscalingPolicyServiceClient.create()) { * ListAutoscalingPoliciesRequest request = @@ -761,8 +824,11 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies( *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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = * AutoscalingPolicyServiceClient.create()) { * ListAutoscalingPoliciesRequest request = @@ -800,8 +866,11 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies( *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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = * AutoscalingPolicyServiceClient.create()) { * AutoscalingPolicyName name = @@ -842,8 +911,11 @@ public final void deleteAutoscalingPolicy(AutoscalingPolicyName 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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = * AutoscalingPolicyServiceClient.create()) { * String name = @@ -883,8 +955,11 @@ public final void deleteAutoscalingPolicy(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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = * AutoscalingPolicyServiceClient.create()) { * DeleteAutoscalingPolicyRequest request = @@ -913,8 +988,11 @@ public final void deleteAutoscalingPolicy(DeleteAutoscalingPolicyRequest 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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = * AutoscalingPolicyServiceClient.create()) { * DeleteAutoscalingPolicyRequest request = diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java index 44d8018c90ad..038b6554a55b 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java @@ -54,8 +54,11 @@ *For example, to set the total timeout of createAutoscalingPolicy 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 * AutoscalingPolicyServiceSettings.Builder autoscalingPolicyServiceSettingsBuilder = * AutoscalingPolicyServiceSettings.newBuilder(); * autoscalingPolicyServiceSettingsBuilder diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerClient.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerClient.java index c8f26d1d7616..c389df85862c 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerClient.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerClient.java @@ -46,8 +46,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 (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { * BatchName name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]"); * Batch response = batchControllerClient.getBatch(name); @@ -84,8 +87,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 * BatchControllerSettings batchControllerSettings = * BatchControllerSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -97,8 +103,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 * BatchControllerSettings batchControllerSettings = * BatchControllerSettings.newBuilder().setEndpoint(myEndpoint).build(); * BatchControllerClient batchControllerClient = @@ -109,8 +118,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 * BatchControllerSettings batchControllerSettings = * BatchControllerSettings.newBuilder() * .setTransportChannelProvider( @@ -204,8 +216,11 @@ public final OperationsClient getHttpJsonOperationsClient() { *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 (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * Batch batch = Batch.newBuilder().build(); @@ -239,8 +254,11 @@ public final OperationFuturecreateBatchAsync( * 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 (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * Batch batch = Batch.newBuilder().build(); @@ -274,8 +292,11 @@ public final OperationFuturecreateBatchAsync( * 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 (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { * CreateBatchRequest request = * CreateBatchRequest.newBuilder() @@ -303,8 +324,11 @@ public final OperationFuturecreateBatchAsync( * 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 (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { * CreateBatchRequest request = * CreateBatchRequest.newBuilder() @@ -332,8 +356,11 @@ public final OperationFuturecreateBatchAsync( * 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 (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { * CreateBatchRequest request = * CreateBatchRequest.newBuilder() @@ -359,8 +386,11 @@ public final UnaryCallablecreateBatchCallable() * 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 (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { * BatchName name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]"); * Batch response = batchControllerClient.getBatch(name); @@ -383,8 +413,11 @@ public final Batch getBatch(BatchName 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 (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { * String name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString(); * Batch response = batchControllerClient.getBatch(name); @@ -406,8 +439,11 @@ public final Batch getBatch(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 (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { * GetBatchRequest request = * GetBatchRequest.newBuilder() @@ -431,8 +467,11 @@ public final Batch getBatch(GetBatchRequest 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 (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { * GetBatchRequest request = * GetBatchRequest.newBuilder() @@ -455,8 +494,11 @@ public final UnaryCallablegetBatchCallable() { * 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 (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (Batch element : batchControllerClient.listBatches(parent).iterateAll()) { @@ -483,8 +525,11 @@ public final ListBatchesPagedResponse listBatches(LocationName 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 (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * for (Batch element : batchControllerClient.listBatches(parent).iterateAll()) { @@ -508,8 +553,11 @@ public final ListBatchesPagedResponse listBatches(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 (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { * ListBatchesRequest request = * ListBatchesRequest.newBuilder() @@ -537,8 +585,11 @@ public final ListBatchesPagedResponse listBatches(ListBatchesRequest 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 (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { * ListBatchesRequest request = * ListBatchesRequest.newBuilder() @@ -567,8 +618,11 @@ public final ListBatchesPagedResponse listBatches(ListBatchesRequest 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 (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { * ListBatchesRequest request = * ListBatchesRequest.newBuilder() @@ -603,8 +657,11 @@ public final UnaryCallablelistBatchesC * 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 (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { * BatchName name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]"); * batchControllerClient.deleteBatch(name); @@ -628,8 +685,11 @@ public final void deleteBatch(BatchName 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 (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { * String name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString(); * batchControllerClient.deleteBatch(name); @@ -652,8 +712,11 @@ public final void deleteBatch(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 (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { * DeleteBatchRequest request = * DeleteBatchRequest.newBuilder() @@ -678,8 +741,11 @@ public final void deleteBatch(DeleteBatchRequest 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 (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { * DeleteBatchRequest request = * DeleteBatchRequest.newBuilder() diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerSettings.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerSettings.java index a52bdd7df200..951ae345a791 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerSettings.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerSettings.java @@ -56,17 +56,17 @@ *For example, to set the total timeout of getBatch 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 * BatchControllerSettings.Builder batchControllerSettingsBuilder = * BatchControllerSettings.newBuilder(); * batchControllerSettingsBuilder * .getBatchSettings() * .setRetrySettings( - * batchControllerSettingsBuilder - * .getBatchSettings() - * .getRetrySettings() - * .toBuilder() + * batchControllerSettingsBuilder.getBatchSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * BatchControllerSettings batchControllerSettings = batchControllerSettingsBuilder.build(); diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java index 5cecf3207d4e..12812a0b181f 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java @@ -48,8 +48,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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { * String projectId = "projectId-894832108"; * String region = "region-934795532"; @@ -88,8 +91,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 * ClusterControllerSettings clusterControllerSettings = * ClusterControllerSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -101,8 +107,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 * ClusterControllerSettings clusterControllerSettings = * ClusterControllerSettings.newBuilder().setEndpoint(myEndpoint).build(); * ClusterControllerClient clusterControllerClient = @@ -113,8 +122,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 * ClusterControllerSettings clusterControllerSettings = * ClusterControllerSettings.newBuilder() * .setTransportChannelProvider( @@ -210,8 +222,11 @@ public final OperationsClient getHttpJsonOperationsClient() { *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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { * String projectId = "projectId-894832108"; * String region = "region-934795532"; @@ -247,8 +262,11 @@ public final OperationFuturecreateClusterAsy * 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { * CreateClusterRequest request = * CreateClusterRequest.newBuilder() @@ -279,8 +297,11 @@ public final OperationFuturecreateClusterAsy * 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { * CreateClusterRequest request = * CreateClusterRequest.newBuilder() @@ -311,8 +332,11 @@ public final OperationFuturecreateClusterAsy * 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { * CreateClusterRequest request = * CreateClusterRequest.newBuilder() @@ -344,8 +368,11 @@ public final UnaryCallablecreateClusterCallabl * 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { * String projectId = "projectId-894832108"; * String region = "region-934795532"; @@ -410,8 +437,11 @@ public final OperationFutureupdateClusterAsy * 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { * UpdateClusterRequest request = * UpdateClusterRequest.newBuilder() @@ -446,8 +476,11 @@ public final OperationFutureupdateClusterAsy * 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { * UpdateClusterRequest request = * UpdateClusterRequest.newBuilder() @@ -482,8 +515,11 @@ public final OperationFutureupdateClusterAsy * 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { * UpdateClusterRequest request = * UpdateClusterRequest.newBuilder() @@ -513,8 +549,11 @@ public final UnaryCallableupdateClusterCallabl * 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { * StopClusterRequest request = * StopClusterRequest.newBuilder() @@ -543,8 +582,11 @@ public final OperationFuturestopClusterAsync * 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { * StopClusterRequest request = * StopClusterRequest.newBuilder() @@ -573,8 +615,11 @@ public final OperationFuturestopClusterAsync * 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { * StopClusterRequest request = * StopClusterRequest.newBuilder() @@ -602,8 +647,11 @@ public final UnaryCallablestopClusterCallable() * 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { * StartClusterRequest request = * StartClusterRequest.newBuilder() @@ -632,8 +680,11 @@ public final OperationFuturestartClusterAsyn * 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { * StartClusterRequest request = * StartClusterRequest.newBuilder() @@ -662,8 +713,11 @@ public final OperationFuturestartClusterAsyn * 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { * StartClusterRequest request = * StartClusterRequest.newBuilder() @@ -693,8 +747,11 @@ public final UnaryCallablestartClusterCallable( * 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { * String projectId = "projectId-894832108"; * String region = "region-934795532"; @@ -729,8 +786,11 @@ public final OperationFuturedeleteClusterAsync * 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { * DeleteClusterRequest request = * DeleteClusterRequest.newBuilder() @@ -761,8 +821,11 @@ public final OperationFuturedeleteClusterAsync * 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { * DeleteClusterRequest request = * DeleteClusterRequest.newBuilder() @@ -793,8 +856,11 @@ public final OperationFuturedeleteClusterAsync * 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { * DeleteClusterRequest request = * DeleteClusterRequest.newBuilder() @@ -822,8 +888,11 @@ public final UnaryCallabledeleteClusterCallabl * 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { * String projectId = "projectId-894832108"; * String region = "region-934795532"; @@ -855,8 +924,11 @@ public final Cluster getCluster(String projectId, String region, String clusterN *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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { * GetClusterRequest request = * GetClusterRequest.newBuilder() @@ -882,8 +954,11 @@ public final Cluster getCluster(GetClusterRequest 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { * GetClusterRequest request = * GetClusterRequest.newBuilder() @@ -908,8 +983,11 @@ public final UnaryCallablegetClusterCallable() { * 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { * String projectId = "projectId-894832108"; * String region = "region-934795532"; @@ -937,8 +1015,11 @@ public final ListClustersPagedResponse listClusters(String projectId, String reg *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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { * String projectId = "projectId-894832108"; * String region = "region-934795532"; @@ -987,8 +1068,11 @@ public final ListClustersPagedResponse listClusters( *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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { * ListClustersRequest request = * ListClustersRequest.newBuilder() @@ -1018,8 +1102,11 @@ public final ListClustersPagedResponse listClusters(ListClustersRequest 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { * ListClustersRequest request = * ListClustersRequest.newBuilder() @@ -1050,8 +1137,11 @@ public final ListClustersPagedResponse listClusters(ListClustersRequest 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { * ListClustersRequest request = * ListClustersRequest.newBuilder() @@ -1093,8 +1183,11 @@ public final UnaryCallablelistCluste * 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { * String projectId = "projectId-894832108"; * String region = "region-934795532"; @@ -1133,8 +1226,11 @@ public final UnaryCallablelistCluste * 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { * DiagnoseClusterRequest request = * DiagnoseClusterRequest.newBuilder() @@ -1166,8 +1262,11 @@ public final UnaryCallablelistCluste * 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { * DiagnoseClusterRequest request = * DiagnoseClusterRequest.newBuilder() @@ -1200,8 +1299,11 @@ public final UnaryCallablelistCluste * 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { * DiagnoseClusterRequest request = * DiagnoseClusterRequest.newBuilder() diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java index 55d39d98e9f1..f2fc2a9a1631 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java @@ -56,17 +56,17 @@ *For example, to set the total timeout of getCluster 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 * ClusterControllerSettings.Builder clusterControllerSettingsBuilder = * ClusterControllerSettings.newBuilder(); * clusterControllerSettingsBuilder * .getClusterSettings() * .setRetrySettings( - * clusterControllerSettingsBuilder - * .getClusterSettings() - * .getRetrySettings() - * .toBuilder() + * clusterControllerSettingsBuilder.getClusterSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * ClusterControllerSettings clusterControllerSettings = clusterControllerSettingsBuilder.build(); diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java index 58cfd102b15c..688040acda0e 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java @@ -46,8 +46,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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { * String projectId = "projectId-894832108"; * String region = "region-934795532"; @@ -85,8 +88,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 * JobControllerSettings jobControllerSettings = * JobControllerSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -97,8 +103,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 * JobControllerSettings jobControllerSettings = * JobControllerSettings.newBuilder().setEndpoint(myEndpoint).build(); * JobControllerClient jobControllerClient = JobControllerClient.create(jobControllerSettings); @@ -108,8 +117,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 * JobControllerSettings jobControllerSettings = * JobControllerSettings.newBuilder() * .setTransportChannelProvider( @@ -202,8 +214,11 @@ public final OperationsClient getHttpJsonOperationsClient() { *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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { * String projectId = "projectId-894832108"; * String region = "region-934795532"; @@ -230,8 +245,11 @@ public final Job submitJob(String projectId, String region, Job job) { *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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { * SubmitJobRequest request = * SubmitJobRequest.newBuilder() @@ -258,8 +276,11 @@ public final Job submitJob(SubmitJobRequest 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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { * SubmitJobRequest request = * SubmitJobRequest.newBuilder() @@ -285,8 +306,11 @@ public final UnaryCallablesubmitJobCallable() { * 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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { * String projectId = "projectId-894832108"; * String region = "region-934795532"; @@ -314,8 +338,11 @@ public final OperationFuturesubmitJobAsOperationAsync( * 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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { * SubmitJobRequest request = * SubmitJobRequest.newBuilder() @@ -343,8 +370,11 @@ public final OperationFuturesubmitJobAsOperationAsync( * 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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { * SubmitJobRequest request = * SubmitJobRequest.newBuilder() @@ -372,8 +402,11 @@ public final OperationFuturesubmitJobAsOperationAsync( * 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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { * SubmitJobRequest request = * SubmitJobRequest.newBuilder() @@ -400,8 +433,11 @@ public final UnaryCallablesubmitJobAsOperationCall * 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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { * String projectId = "projectId-894832108"; * String region = "region-934795532"; @@ -432,8 +468,11 @@ public final Job getJob(String projectId, String region, String jobId) { *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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { * GetJobRequest request = * GetJobRequest.newBuilder() @@ -459,8 +498,11 @@ public final Job getJob(GetJobRequest 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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { * GetJobRequest request = * GetJobRequest.newBuilder() @@ -485,8 +527,11 @@ public final UnaryCallablegetJobCallable() { * 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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { * String projectId = "projectId-894832108"; * String region = "region-934795532"; @@ -513,8 +558,11 @@ public final ListJobsPagedResponse listJobs(String projectId, String region) { *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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { * String projectId = "projectId-894832108"; * String region = "region-934795532"; @@ -555,8 +603,11 @@ public final ListJobsPagedResponse listJobs(String projectId, String region, Str *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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { * ListJobsRequest request = * ListJobsRequest.newBuilder() @@ -587,8 +638,11 @@ public final ListJobsPagedResponse listJobs(ListJobsRequest 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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { * ListJobsRequest request = * ListJobsRequest.newBuilder() @@ -618,8 +672,11 @@ public final UnaryCallablelistJobsPaged * 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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { * ListJobsRequest request = * ListJobsRequest.newBuilder() @@ -656,8 +713,11 @@ public final UnaryCallablelistJobsCallable() * 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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { * UpdateJobRequest request = * UpdateJobRequest.newBuilder() @@ -685,8 +745,11 @@ public final Job updateJob(UpdateJobRequest 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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { * UpdateJobRequest request = * UpdateJobRequest.newBuilder() @@ -716,8 +779,11 @@ public final UnaryCallableupdateJobCallable() { * 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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { * String projectId = "projectId-894832108"; * String region = "region-934795532"; @@ -751,8 +817,11 @@ public final Job cancelJob(String projectId, String region, String jobId) { *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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { * CancelJobRequest request = * CancelJobRequest.newBuilder() @@ -781,8 +850,11 @@ public final Job cancelJob(CancelJobRequest 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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { * CancelJobRequest request = * CancelJobRequest.newBuilder() @@ -808,8 +880,11 @@ public final UnaryCallablecancelJobCallable() { * 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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { * String projectId = "projectId-894832108"; * String region = "region-934795532"; @@ -841,8 +916,11 @@ public final void deleteJob(String projectId, String region, String jobId) { *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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { * DeleteJobRequest request = * DeleteJobRequest.newBuilder() @@ -869,8 +947,11 @@ public final void deleteJob(DeleteJobRequest 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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { * DeleteJobRequest request = * DeleteJobRequest.newBuilder() diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java index 71bc0b5e3666..f2e480e92407 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java @@ -56,16 +56,16 @@ *For example, to set the total timeout of submitJob 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 * JobControllerSettings.Builder jobControllerSettingsBuilder = JobControllerSettings.newBuilder(); * jobControllerSettingsBuilder * .submitJobSettings() * .setRetrySettings( - * jobControllerSettingsBuilder - * .submitJobSettings() - * .getRetrySettings() - * .toBuilder() + * jobControllerSettingsBuilder.submitJobSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * JobControllerSettings jobControllerSettings = jobControllerSettingsBuilder.build(); diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java index 8d0650988a62..001a4918ebb9 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java @@ -47,8 +47,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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = * WorkflowTemplateServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); @@ -88,8 +91,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 * WorkflowTemplateServiceSettings workflowTemplateServiceSettings = * WorkflowTemplateServiceSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -101,8 +107,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 * WorkflowTemplateServiceSettings workflowTemplateServiceSettings = * WorkflowTemplateServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); * WorkflowTemplateServiceClient workflowTemplateServiceClient = @@ -113,8 +122,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 * WorkflowTemplateServiceSettings workflowTemplateServiceSettings = * WorkflowTemplateServiceSettings.newBuilder() * .setTransportChannelProvider( @@ -209,8 +221,11 @@ public final OperationsClient getHttpJsonOperationsClient() { *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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = * WorkflowTemplateServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); @@ -251,8 +266,11 @@ public final WorkflowTemplate createWorkflowTemplate( *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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = * WorkflowTemplateServiceClient.create()) { * RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); @@ -293,8 +311,11 @@ public final WorkflowTemplate createWorkflowTemplate( *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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = * WorkflowTemplateServiceClient.create()) { * String parent = RegionName.of("[PROJECT]", "[REGION]").toString(); @@ -331,8 +352,11 @@ public final WorkflowTemplate createWorkflowTemplate(String parent, WorkflowTemp *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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = * WorkflowTemplateServiceClient.create()) { * CreateWorkflowTemplateRequest request = @@ -358,8 +382,11 @@ public final WorkflowTemplate createWorkflowTemplate(CreateWorkflowTemplateReque *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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = * WorkflowTemplateServiceClient.create()) { * CreateWorkflowTemplateRequest request = @@ -388,8 +415,11 @@ public final WorkflowTemplate createWorkflowTemplate(CreateWorkflowTemplateReque *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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = * WorkflowTemplateServiceClient.create()) { * WorkflowTemplateName name = @@ -431,8 +461,11 @@ public final WorkflowTemplate getWorkflowTemplate(WorkflowTemplateName 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = * WorkflowTemplateServiceClient.create()) { * String name = @@ -473,8 +506,11 @@ public final WorkflowTemplate getWorkflowTemplate(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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = * WorkflowTemplateServiceClient.create()) { * GetWorkflowTemplateRequest request = @@ -505,8 +541,11 @@ public final WorkflowTemplate getWorkflowTemplate(GetWorkflowTemplateRequest req *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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = * WorkflowTemplateServiceClient.create()) { * GetWorkflowTemplateRequest request = @@ -552,8 +591,11 @@ public final WorkflowTemplate getWorkflowTemplate(GetWorkflowTemplateRequest req *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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = * WorkflowTemplateServiceClient.create()) { * WorkflowTemplateName name = @@ -610,8 +652,11 @@ public final OperationFutureinstantiateWorkflowTemplat * 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = * WorkflowTemplateServiceClient.create()) { * String name = @@ -667,8 +712,11 @@ public final OperationFutureinstantiateWorkflowTemplat * 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = * WorkflowTemplateServiceClient.create()) { * WorkflowTemplateName name = @@ -729,8 +777,11 @@ public final OperationFutureinstantiateWorkflowTemplat * 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = * WorkflowTemplateServiceClient.create()) { * String name = @@ -792,8 +843,11 @@ public final OperationFutureinstantiateWorkflowTemplat * 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = * WorkflowTemplateServiceClient.create()) { * InstantiateWorkflowTemplateRequest request = @@ -841,8 +895,11 @@ public final OperationFutureinstantiateWorkflowTemplat * 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = * WorkflowTemplateServiceClient.create()) { * InstantiateWorkflowTemplateRequest request = @@ -892,8 +949,11 @@ public final OperationFutureinstantiateWorkflowTemplat * 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = * WorkflowTemplateServiceClient.create()) { * InstantiateWorkflowTemplateRequest request = @@ -946,8 +1006,11 @@ public final OperationFutureinstantiateWorkflowTemplat * 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = * WorkflowTemplateServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); @@ -1008,8 +1071,11 @@ public final OperationFutureinstantiateInlineWorkflowT * 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = * WorkflowTemplateServiceClient.create()) { * RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); @@ -1070,8 +1136,11 @@ public final OperationFutureinstantiateInlineWorkflowT * 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = * WorkflowTemplateServiceClient.create()) { * String parent = RegionName.of("[PROJECT]", "[REGION]").toString(); @@ -1132,8 +1201,11 @@ public final OperationFutureinstantiateInlineWorkflowT * 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = * WorkflowTemplateServiceClient.create()) { * InstantiateInlineWorkflowTemplateRequest request = @@ -1182,8 +1254,11 @@ public final OperationFutureinstantiateInlineWorkflowT * 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = * WorkflowTemplateServiceClient.create()) { * InstantiateInlineWorkflowTemplateRequest request = @@ -1234,8 +1309,11 @@ public final OperationFutureinstantiateInlineWorkflowT * 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = * WorkflowTemplateServiceClient.create()) { * InstantiateInlineWorkflowTemplateRequest request = @@ -1266,8 +1344,11 @@ public final OperationFutureinstantiateInlineWorkflowT * 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = * WorkflowTemplateServiceClient.create()) { * WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); @@ -1293,8 +1374,11 @@ public final WorkflowTemplate updateWorkflowTemplate(WorkflowTemplate template) *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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = * WorkflowTemplateServiceClient.create()) { * UpdateWorkflowTemplateRequest request = @@ -1320,8 +1404,11 @@ public final WorkflowTemplate updateWorkflowTemplate(UpdateWorkflowTemplateReque *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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = * WorkflowTemplateServiceClient.create()) { * UpdateWorkflowTemplateRequest request = @@ -1347,8 +1434,11 @@ public final WorkflowTemplate updateWorkflowTemplate(UpdateWorkflowTemplateReque *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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = * WorkflowTemplateServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); @@ -1387,8 +1477,11 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(LocationNa *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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = * WorkflowTemplateServiceClient.create()) { * RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); @@ -1427,8 +1520,11 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(RegionName *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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = * WorkflowTemplateServiceClient.create()) { * String parent = RegionName.of("[PROJECT]", "[REGION]").toString(); @@ -1465,8 +1561,11 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(String par *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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = * WorkflowTemplateServiceClient.create()) { * ListWorkflowTemplatesRequest request = @@ -1497,8 +1596,11 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates( *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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = * WorkflowTemplateServiceClient.create()) { * ListWorkflowTemplatesRequest request = @@ -1528,8 +1630,11 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates( *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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = * WorkflowTemplateServiceClient.create()) { * ListWorkflowTemplatesRequest request = @@ -1566,8 +1671,11 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates( *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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = * WorkflowTemplateServiceClient.create()) { * WorkflowTemplateName name = @@ -1607,8 +1715,11 @@ public final void deleteWorkflowTemplate(WorkflowTemplateName 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = * WorkflowTemplateServiceClient.create()) { * String name = @@ -1647,8 +1758,11 @@ public final void deleteWorkflowTemplate(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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = * WorkflowTemplateServiceClient.create()) { * DeleteWorkflowTemplateRequest request = @@ -1677,8 +1791,11 @@ public final void deleteWorkflowTemplate(DeleteWorkflowTemplateRequest 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = * WorkflowTemplateServiceClient.create()) { * DeleteWorkflowTemplateRequest request = diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java index 88c8dfc287e6..9224a7d5e0e9 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java @@ -56,8 +56,11 @@ *For example, to set the total timeout of createWorkflowTemplate 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 * WorkflowTemplateServiceSettings.Builder workflowTemplateServiceSettingsBuilder = * WorkflowTemplateServiceSettings.newBuilder(); * workflowTemplateServiceSettingsBuilder diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java index df1f4105bf6a..7f608efc866d 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java @@ -24,8 +24,11 @@ *Sample for AutoscalingPolicyServiceClient: * *
{@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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = * AutoscalingPolicyServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); @@ -42,8 +45,11 @@ *Sample for BatchControllerClient: * *
{@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 (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { * BatchName name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]"); * Batch response = batchControllerClient.getBatch(name); @@ -58,8 +64,11 @@ *Sample for ClusterControllerClient: * *
{@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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { * String projectId = "projectId-894832108"; * String region = "region-934795532"; @@ -75,8 +84,11 @@ *Sample for JobControllerClient: * *
{@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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { * String projectId = "projectId-894832108"; * String region = "region-934795532"; @@ -92,8 +104,11 @@ *Sample for WorkflowTemplateServiceClient: * *
{@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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = * WorkflowTemplateServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java index 1a2a5e94b665..9394126b7725 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java @@ -78,8 +78,11 @@ *For example, to set the total timeout of createAutoscalingPolicy 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 * AutoscalingPolicyServiceStubSettings.Builder autoscalingPolicyServiceSettingsBuilder = * AutoscalingPolicyServiceStubSettings.newBuilder(); * autoscalingPolicyServiceSettingsBuilder diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStubSettings.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStubSettings.java index 832821dc9090..6dc2d972764a 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStubSettings.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStubSettings.java @@ -83,17 +83,17 @@ *For example, to set the total timeout of getBatch 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 * BatchControllerStubSettings.Builder batchControllerSettingsBuilder = * BatchControllerStubSettings.newBuilder(); * batchControllerSettingsBuilder * .getBatchSettings() * .setRetrySettings( - * batchControllerSettingsBuilder - * .getBatchSettings() - * .getRetrySettings() - * .toBuilder() + * batchControllerSettingsBuilder.getBatchSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * BatchControllerStubSettings batchControllerSettings = batchControllerSettingsBuilder.build(); diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java index 766ba6112ca6..3c06e344e8cc 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java @@ -88,17 +88,17 @@ *For example, to set the total timeout of getCluster 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 * ClusterControllerStubSettings.Builder clusterControllerSettingsBuilder = * ClusterControllerStubSettings.newBuilder(); * clusterControllerSettingsBuilder * .getClusterSettings() * .setRetrySettings( - * clusterControllerSettingsBuilder - * .getClusterSettings() - * .getRetrySettings() - * .toBuilder() + * clusterControllerSettingsBuilder.getClusterSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * ClusterControllerStubSettings clusterControllerSettings = diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceStub.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceStub.java index ee4bb3b9b304..20d94992afa4 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceStub.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceStub.java @@ -86,7 +86,8 @@ public class HttpJsonAutoscalingPolicyServiceStub extends AutoscalingPolicyServi }) .setRequestBodyExtractor( request -> - ProtoRestSerializer.create().toBody("policy", request.getPolicy())) + ProtoRestSerializer.create() + .toBody("policy", request.getPolicy(), false)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -125,7 +126,8 @@ public class HttpJsonAutoscalingPolicyServiceStub extends AutoscalingPolicyServi }) .setRequestBodyExtractor( request -> - ProtoRestSerializer.create().toBody("policy", request.getPolicy())) + ProtoRestSerializer.create() + .toBody("policy", request.getPolicy(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerStub.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerStub.java index aa10538ccf49..20b8454e5b94 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerStub.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerStub.java @@ -94,7 +94,8 @@ public class HttpJsonBatchControllerStub extends BatchControllerStub { }) .setRequestBodyExtractor( request -> - ProtoRestSerializer.create().toBody("batch", request.getBatch())) + ProtoRestSerializer.create() + .toBody("batch", request.getBatch(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerStub.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerStub.java index e877794f983d..5b2bb4141657 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerStub.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerStub.java @@ -105,7 +105,8 @@ public class HttpJsonClusterControllerStub extends ClusterControllerStub { }) .setRequestBodyExtractor( request -> - ProtoRestSerializer.create().toBody("cluster", request.getCluster())) + ProtoRestSerializer.create() + .toBody("cluster", request.getCluster(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -152,7 +153,8 @@ public class HttpJsonClusterControllerStub extends ClusterControllerStub { }) .setRequestBodyExtractor( request -> - ProtoRestSerializer.create().toBody("cluster", request.getCluster())) + ProtoRestSerializer.create() + .toBody("cluster", request.getCluster(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -201,7 +203,8 @@ public class HttpJsonClusterControllerStub extends ClusterControllerStub { .clearClusterName() .clearProjectId() .clearRegion() - .build())) + .build(), + false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -250,7 +253,8 @@ public class HttpJsonClusterControllerStub extends ClusterControllerStub { .clearClusterName() .clearProjectId() .clearRegion() - .build())) + .build(), + false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -412,7 +416,8 @@ public class HttpJsonClusterControllerStub extends ClusterControllerStub { .clearClusterName() .clearProjectId() .clearRegion() - .build())) + .build(), + false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerStub.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerStub.java index ddd1893669e1..7d26c11b8b3d 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerStub.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerStub.java @@ -93,7 +93,9 @@ public class HttpJsonJobControllerStub extends JobControllerStub { request -> ProtoRestSerializer.create() .toBody( - "*", request.toBuilder().clearProjectId().clearRegion().build())) + "*", + request.toBuilder().clearProjectId().clearRegion().build(), + false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -132,7 +134,8 @@ public class HttpJsonJobControllerStub extends JobControllerStub { ProtoRestSerializer.create() .toBody( "*", - request.toBuilder().clearProjectId().clearRegion().build())) + request.toBuilder().clearProjectId().clearRegion().build(), + false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -246,7 +249,8 @@ public class HttpJsonJobControllerStub extends JobControllerStub { return fields; }) .setRequestBodyExtractor( - request -> ProtoRestSerializer.create().toBody("job", request.getJob())) + request -> + ProtoRestSerializer.create().toBody("job", request.getJob(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -290,7 +294,8 @@ public class HttpJsonJobControllerStub extends JobControllerStub { .clearJobId() .clearProjectId() .clearRegion() - .build())) + .build(), + false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceStub.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceStub.java index 1e980390ea3f..4a07f7bdcd19 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceStub.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceStub.java @@ -98,7 +98,7 @@ public class HttpJsonWorkflowTemplateServiceStub extends WorkflowTemplateService .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("template", request.getTemplate())) + .toBody("template", request.getTemplate(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -173,7 +173,7 @@ public class HttpJsonWorkflowTemplateServiceStub extends WorkflowTemplateService .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -217,7 +217,7 @@ public class HttpJsonWorkflowTemplateServiceStub extends WorkflowTemplateService .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("template", request.getTemplate())) + .toBody("template", request.getTemplate(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -260,7 +260,7 @@ public class HttpJsonWorkflowTemplateServiceStub extends WorkflowTemplateService .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("template", request.getTemplate())) + .toBody("template", request.getTemplate(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java index 3d8358420e8c..757586659243 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java @@ -85,17 +85,17 @@ * For example, to set the total timeout of submitJob 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 * JobControllerStubSettings.Builder jobControllerSettingsBuilder = * JobControllerStubSettings.newBuilder(); * jobControllerSettingsBuilder * .submitJobSettings() * .setRetrySettings( - * jobControllerSettingsBuilder - * .submitJobSettings() - * .getRetrySettings() - * .toBuilder() + * jobControllerSettingsBuilder.submitJobSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * JobControllerStubSettings jobControllerSettings = jobControllerSettingsBuilder.build(); diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java index 06fc771117b0..a039aab06b02 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java @@ -86,8 +86,11 @@ *For example, to set the total timeout of createWorkflowTemplate 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 * WorkflowTemplateServiceStubSettings.Builder workflowTemplateServiceSettingsBuilder = * WorkflowTemplateServiceStubSettings.newBuilder(); * workflowTemplateServiceSettingsBuilder diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetCredentialsProvider.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetCredentialsProvider.java index 62e0ffa8ac61..6dba06e507ed 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetCredentialsProvider.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/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 AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings = AutoscalingPolicyServiceSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetCredentialsProvider1.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetCredentialsProvider1.java index 29234b180d53..e9a19dd577c5 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetCredentialsProvider1.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/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 AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings = AutoscalingPolicyServiceSettings.newBuilder() .setTransportChannelProvider( diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetEndpoint.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetEndpoint.java index 605bda4dbe44..af2559849911 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetEndpoint.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/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 AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings = AutoscalingPolicyServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/AsyncCreateAutoscalingPolicy.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/AsyncCreateAutoscalingPolicy.java index 0f089a3b6c4a..49243ea29bc4 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/AsyncCreateAutoscalingPolicy.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/AsyncCreateAutoscalingPolicy.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateAutoscalingPolicy() 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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) { CreateAutoscalingPolicyRequest request = diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java index 2b81972cd2cf..efb7516893cd 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateAutoscalingPolicy() 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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) { CreateAutoscalingPolicyRequest request = diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyLocationnameAutoscalingpolicy.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyLocationnameAutoscalingpolicy.java index 2d08b9591161..8892b60ed7cb 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyLocationnameAutoscalingpolicy.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyLocationnameAutoscalingpolicy.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateAutoscalingPolicyLocationnameAutoscalingpolicy() 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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyRegionnameAutoscalingpolicy.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyRegionnameAutoscalingpolicy.java index 8b70651cc089..c0cddcf77507 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyRegionnameAutoscalingpolicy.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyRegionnameAutoscalingpolicy.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateAutoscalingPolicyRegionnameAutoscalingpolicy() 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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) { RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyStringAutoscalingpolicy.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyStringAutoscalingpolicy.java index 05afde5f7383..6f2f6dcffb8d 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyStringAutoscalingpolicy.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyStringAutoscalingpolicy.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateAutoscalingPolicyStringAutoscalingpolicy() 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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/AsyncDeleteAutoscalingPolicy.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/AsyncDeleteAutoscalingPolicy.java index bc4ffec24845..9dc50aa3402d 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/AsyncDeleteAutoscalingPolicy.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/AsyncDeleteAutoscalingPolicy.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteAutoscalingPolicy() 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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) { DeleteAutoscalingPolicyRequest request = diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicy.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicy.java index a5ba2c2c42ee..15c755e51062 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicy.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicy.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteAutoscalingPolicy() 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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) { DeleteAutoscalingPolicyRequest request = diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyAutoscalingpolicyname.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyAutoscalingpolicyname.java index c30f1a49c8e4..61c04fad8c3b 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyAutoscalingpolicyname.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyAutoscalingpolicyname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteAutoscalingPolicyAutoscalingpolicyname() 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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) { AutoscalingPolicyName name = diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyString.java index 6b0c3cd9abf5..de19adf388da 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyString.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteAutoscalingPolicyString() 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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) { String name = diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/AsyncGetAutoscalingPolicy.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/AsyncGetAutoscalingPolicy.java index 007848230844..1787aa6d9971 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/AsyncGetAutoscalingPolicy.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/AsyncGetAutoscalingPolicy.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetAutoscalingPolicy() 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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) { GetAutoscalingPolicyRequest request = diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicy.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicy.java index 3e05d1c4c612..e303e2be42ec 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicy.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicy.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetAutoscalingPolicy() 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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) { GetAutoscalingPolicyRequest request = diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicyAutoscalingpolicyname.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicyAutoscalingpolicyname.java index e9d14580d9a0..594fd1192b5a 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicyAutoscalingpolicyname.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicyAutoscalingpolicyname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetAutoscalingPolicyAutoscalingpolicyname() 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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) { AutoscalingPolicyName name = diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicyString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicyString.java index da79dbb9ef82..39f6afec152e 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicyString.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicyString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetAutoscalingPolicyString() 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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) { String name = diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/AsyncListAutoscalingPolicies.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/AsyncListAutoscalingPolicies.java index c0c5dcb898e7..b455040dd2dd 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/AsyncListAutoscalingPolicies.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/AsyncListAutoscalingPolicies.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListAutoscalingPolicies() 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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) { ListAutoscalingPoliciesRequest request = diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/AsyncListAutoscalingPoliciesPaged.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/AsyncListAutoscalingPoliciesPaged.java index 644690ba9eba..9a20618dbbda 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/AsyncListAutoscalingPoliciesPaged.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/AsyncListAutoscalingPoliciesPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListAutoscalingPoliciesPaged() 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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) { ListAutoscalingPoliciesRequest request = diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPolicies.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPolicies.java index e3c92d37fadb..1db78e7c5b9f 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPolicies.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPolicies.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListAutoscalingPolicies() 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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) { ListAutoscalingPoliciesRequest request = diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesLocationname.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesLocationname.java index 7c32f189c17f..38236be69054 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesLocationname.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesLocationname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListAutoscalingPoliciesLocationname() 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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesRegionname.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesRegionname.java index 577c18c9ddeb..0290c1f0a1b6 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesRegionname.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesRegionname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListAutoscalingPoliciesRegionname() 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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) { RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesString.java index ffdcb024e459..de1088cdc11d 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesString.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListAutoscalingPoliciesString() 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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/AsyncUpdateAutoscalingPolicy.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/AsyncUpdateAutoscalingPolicy.java index 960be01b6835..7a19f36d75db 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/AsyncUpdateAutoscalingPolicy.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/AsyncUpdateAutoscalingPolicy.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateAutoscalingPolicy() 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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) { UpdateAutoscalingPolicyRequest request = diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/SyncUpdateAutoscalingPolicy.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/SyncUpdateAutoscalingPolicy.java index 853d38886dd0..9cb872bcd9de 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/SyncUpdateAutoscalingPolicy.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/SyncUpdateAutoscalingPolicy.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateAutoscalingPolicy() 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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) { UpdateAutoscalingPolicyRequest request = diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/SyncUpdateAutoscalingPolicyAutoscalingpolicy.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/SyncUpdateAutoscalingPolicyAutoscalingpolicy.java index 8688d7474c9f..3718e929b5e0 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/SyncUpdateAutoscalingPolicyAutoscalingpolicy.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/SyncUpdateAutoscalingPolicyAutoscalingpolicy.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateAutoscalingPolicyAutoscalingpolicy() 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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) { AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservicesettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservicesettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java index afc5ad757f04..c6b3fc92359f 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservicesettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservicesettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateAutoscalingPolicy() 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 AutoscalingPolicyServiceSettings.Builder autoscalingPolicyServiceSettingsBuilder = AutoscalingPolicyServiceSettings.newBuilder(); autoscalingPolicyServiceSettingsBuilder diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetCredentialsProvider.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetCredentialsProvider.java index 0373f3a6293c..2b057710afd0 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetCredentialsProvider.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/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 BatchControllerSettings batchControllerSettings = BatchControllerSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetCredentialsProvider1.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetCredentialsProvider1.java index 99b4414b88f2..459694d6a42e 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetCredentialsProvider1.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/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 BatchControllerSettings batchControllerSettings = BatchControllerSettings.newBuilder() .setTransportChannelProvider( diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetEndpoint.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetEndpoint.java index 0377155de181..1059c28186c4 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetEndpoint.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/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 BatchControllerSettings batchControllerSettings = BatchControllerSettings.newBuilder().setEndpoint(myEndpoint).build(); BatchControllerClient batchControllerClient = diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/AsyncCreateBatch.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/AsyncCreateBatch.java index 839fea7cdf71..38d10f86934e 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/AsyncCreateBatch.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/AsyncCreateBatch.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateBatch() 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 (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { CreateBatchRequest request = CreateBatchRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/AsyncCreateBatchLRO.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/AsyncCreateBatchLRO.java index 0f98a0aba7c6..5cd5f071d76a 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/AsyncCreateBatchLRO.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/AsyncCreateBatchLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateBatchLRO() 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 (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { CreateBatchRequest request = CreateBatchRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatch.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatch.java index 17e8e588734b..f46c59433ce5 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatch.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatch.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateBatch() 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 (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { CreateBatchRequest request = CreateBatchRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatchLocationnameBatchString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatchLocationnameBatchString.java index 508180fdfc18..c6e05597baf9 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatchLocationnameBatchString.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatchLocationnameBatchString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateBatchLocationnameBatchString() 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 (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); Batch batch = Batch.newBuilder().build(); diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatchStringBatchString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatchStringBatchString.java index 2793e455db84..e4f4f2051883 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatchStringBatchString.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatchStringBatchString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateBatchStringBatchString() 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 (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); Batch batch = Batch.newBuilder().build(); diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/AsyncDeleteBatch.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/AsyncDeleteBatch.java index cd0e119e5ef6..7fbeef350696 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/AsyncDeleteBatch.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/AsyncDeleteBatch.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteBatch() 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 (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { DeleteBatchRequest request = DeleteBatchRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatch.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatch.java index 2917b430f781..ad4f86ab6187 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatch.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatch.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteBatch() 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 (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { DeleteBatchRequest request = DeleteBatchRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatchBatchname.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatchBatchname.java index 05bc0eb6621e..6dac67136fdc 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatchBatchname.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatchBatchname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteBatchBatchname() 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 (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { BatchName name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]"); batchControllerClient.deleteBatch(name); diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatchString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatchString.java index 8c02f3cd7381..894deb0dcc6c 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatchString.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatchString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteBatchString() 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 (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { String name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString(); batchControllerClient.deleteBatch(name); diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/AsyncGetBatch.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/AsyncGetBatch.java index 5405d3a8534f..a4590f1ee0d2 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/AsyncGetBatch.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/AsyncGetBatch.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetBatch() 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 (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { GetBatchRequest request = GetBatchRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatch.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatch.java index 26e423cb1979..64269a7a25e1 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatch.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatch.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetBatch() 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 (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { GetBatchRequest request = GetBatchRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatchBatchname.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatchBatchname.java index 5fe46c90b34a..beb75c0d4000 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatchBatchname.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatchBatchname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetBatchBatchname() 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 (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { BatchName name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]"); Batch response = batchControllerClient.getBatch(name); diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatchString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatchString.java index a47944e4d199..2f7cbbf44cb6 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatchString.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatchString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetBatchString() 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 (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { String name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString(); Batch response = batchControllerClient.getBatch(name); diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/AsyncListBatches.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/AsyncListBatches.java index ccb2e46eb6a2..132b745c3c25 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/AsyncListBatches.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/AsyncListBatches.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListBatches() 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 (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { ListBatchesRequest request = ListBatchesRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/AsyncListBatchesPaged.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/AsyncListBatchesPaged.java index 06e83f3b6482..e57dd257663f 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/AsyncListBatchesPaged.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/AsyncListBatchesPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListBatchesPaged() 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 (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { ListBatchesRequest request = ListBatchesRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatches.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatches.java index b8f07cbf975a..ec73dc9dc406 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatches.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatches.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListBatches() 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 (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { ListBatchesRequest request = ListBatchesRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatchesLocationname.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatchesLocationname.java index b2824ecd987b..ea5f95c79c05 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatchesLocationname.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatchesLocationname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListBatchesLocationname() 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 (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); for (Batch element : batchControllerClient.listBatches(parent).iterateAll()) { diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatchesString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatchesString.java index c782960840ca..09b7a2cae383 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatchesString.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatchesString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListBatchesString() 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 (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); for (Batch element : batchControllerClient.listBatches(parent).iterateAll()) { diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollersettings/getbatch/SyncGetBatch.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollersettings/getbatch/SyncGetBatch.java index 8dd2ff327f3a..215f14ea3388 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollersettings/getbatch/SyncGetBatch.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollersettings/getbatch/SyncGetBatch.java @@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception { } public static void syncGetBatch() 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 BatchControllerSettings.Builder batchControllerSettingsBuilder = BatchControllerSettings.newBuilder(); batchControllerSettingsBuilder .getBatchSettings() .setRetrySettings( - batchControllerSettingsBuilder - .getBatchSettings() - .getRetrySettings() - .toBuilder() + batchControllerSettingsBuilder.getBatchSettings().getRetrySettings().toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); BatchControllerSettings batchControllerSettings = batchControllerSettingsBuilder.build(); diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetCredentialsProvider.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetCredentialsProvider.java index e06714602a82..03a9b2c864d5 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetCredentialsProvider.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/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 ClusterControllerSettings clusterControllerSettings = ClusterControllerSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetCredentialsProvider1.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetCredentialsProvider1.java index 5fb0af6ae23a..bce4ec538f2c 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetCredentialsProvider1.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/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 ClusterControllerSettings clusterControllerSettings = ClusterControllerSettings.newBuilder() .setTransportChannelProvider( diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetEndpoint.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetEndpoint.java index fdf73a948e23..a7bb3572ce48 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetEndpoint.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/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 ClusterControllerSettings clusterControllerSettings = ClusterControllerSettings.newBuilder().setEndpoint(myEndpoint).build(); ClusterControllerClient clusterControllerClient = diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/AsyncCreateCluster.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/AsyncCreateCluster.java index 03bc07b84321..73ef3c067230 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/AsyncCreateCluster.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/AsyncCreateCluster.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateCluster() 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { CreateClusterRequest request = CreateClusterRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/AsyncCreateClusterLRO.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/AsyncCreateClusterLRO.java index 9d82a33f3981..80080978c3d1 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/AsyncCreateClusterLRO.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/AsyncCreateClusterLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateClusterLRO() 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { CreateClusterRequest request = CreateClusterRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/SyncCreateCluster.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/SyncCreateCluster.java index 77d68833e5e0..f6539d10bd4b 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/SyncCreateCluster.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/SyncCreateCluster.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateCluster() 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { CreateClusterRequest request = CreateClusterRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/SyncCreateClusterStringStringCluster.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/SyncCreateClusterStringStringCluster.java index 57fc3d084bd9..f1f4cbcc997d 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/SyncCreateClusterStringStringCluster.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/SyncCreateClusterStringStringCluster.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateClusterStringStringCluster() 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { String projectId = "projectId-894832108"; String region = "region-934795532"; diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/AsyncDeleteCluster.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/AsyncDeleteCluster.java index 6711e2356c76..3607e858d9d4 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/AsyncDeleteCluster.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/AsyncDeleteCluster.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteCluster() 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { DeleteClusterRequest request = DeleteClusterRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/AsyncDeleteClusterLRO.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/AsyncDeleteClusterLRO.java index 02704096590d..60ad729d2434 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/AsyncDeleteClusterLRO.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/AsyncDeleteClusterLRO.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteClusterLRO() 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { DeleteClusterRequest request = DeleteClusterRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/SyncDeleteCluster.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/SyncDeleteCluster.java index b56f7168cf8a..a36a8e9b47f2 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/SyncDeleteCluster.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/SyncDeleteCluster.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteCluster() 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { DeleteClusterRequest request = DeleteClusterRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/SyncDeleteClusterStringStringString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/SyncDeleteClusterStringStringString.java index 1e98763da14f..7627ed7d7c17 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/SyncDeleteClusterStringStringString.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/SyncDeleteClusterStringStringString.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteClusterStringStringString() 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { String projectId = "projectId-894832108"; String region = "region-934795532"; diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/AsyncDiagnoseCluster.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/AsyncDiagnoseCluster.java index 1da70de62ca0..61c6d98d50a4 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/AsyncDiagnoseCluster.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/AsyncDiagnoseCluster.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDiagnoseCluster() 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { DiagnoseClusterRequest request = DiagnoseClusterRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/AsyncDiagnoseClusterLRO.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/AsyncDiagnoseClusterLRO.java index 7d636db1588c..587ec060dc9e 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/AsyncDiagnoseClusterLRO.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/AsyncDiagnoseClusterLRO.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDiagnoseClusterLRO() 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { DiagnoseClusterRequest request = DiagnoseClusterRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/SyncDiagnoseCluster.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/SyncDiagnoseCluster.java index 20300a903bec..b4a471eb404e 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/SyncDiagnoseCluster.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/SyncDiagnoseCluster.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDiagnoseCluster() 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { DiagnoseClusterRequest request = DiagnoseClusterRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/SyncDiagnoseClusterStringStringString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/SyncDiagnoseClusterStringStringString.java index faeb2316cddc..ad2cc77b1def 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/SyncDiagnoseClusterStringStringString.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/SyncDiagnoseClusterStringStringString.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncDiagnoseClusterStringStringString() 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { String projectId = "projectId-894832108"; String region = "region-934795532"; diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/AsyncGetCluster.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/AsyncGetCluster.java index 2d38e4eb5a4f..3d22bb33d2c8 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/AsyncGetCluster.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/AsyncGetCluster.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetCluster() 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { GetClusterRequest request = GetClusterRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/SyncGetCluster.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/SyncGetCluster.java index 28a3eafce36f..d8ad3563ac8f 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/SyncGetCluster.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/SyncGetCluster.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetCluster() 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { GetClusterRequest request = GetClusterRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/SyncGetClusterStringStringString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/SyncGetClusterStringStringString.java index bcc209a9891d..9e32532d574a 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/SyncGetClusterStringStringString.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/SyncGetClusterStringStringString.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetClusterStringStringString() 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { String projectId = "projectId-894832108"; String region = "region-934795532"; diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/AsyncListClusters.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/AsyncListClusters.java index ea1429e8b6e1..e01a5ea46c67 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/AsyncListClusters.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/AsyncListClusters.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListClusters() 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { ListClustersRequest request = ListClustersRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/AsyncListClustersPaged.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/AsyncListClustersPaged.java index ed2f2ee4df35..4aa54ed41034 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/AsyncListClustersPaged.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/AsyncListClustersPaged.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListClustersPaged() 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { ListClustersRequest request = ListClustersRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClusters.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClusters.java index 169a399792c3..9d8daac48c87 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClusters.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClusters.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListClusters() 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { ListClustersRequest request = ListClustersRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClustersStringString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClustersStringString.java index 0edd1e44fcb0..1f4ea8cc9598 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClustersStringString.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClustersStringString.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncListClustersStringString() 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { String projectId = "projectId-894832108"; String region = "region-934795532"; diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClustersStringStringString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClustersStringStringString.java index 304cf1337985..879cbc98114f 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClustersStringStringString.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClustersStringStringString.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncListClustersStringStringString() 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { String projectId = "projectId-894832108"; String region = "region-934795532"; diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/AsyncStartCluster.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/AsyncStartCluster.java index 1a67986bd22e..cad0e58da0da 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/AsyncStartCluster.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/AsyncStartCluster.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncStartCluster() 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { StartClusterRequest request = StartClusterRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/AsyncStartClusterLRO.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/AsyncStartClusterLRO.java index af670b251cf2..d277871003cc 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/AsyncStartClusterLRO.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/AsyncStartClusterLRO.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncStartClusterLRO() 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { StartClusterRequest request = StartClusterRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/SyncStartCluster.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/SyncStartCluster.java index 3d52d1c99632..6432ccefec22 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/SyncStartCluster.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/SyncStartCluster.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncStartCluster() 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { StartClusterRequest request = StartClusterRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/AsyncStopCluster.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/AsyncStopCluster.java index 126ffe30f3fb..8097b461ad60 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/AsyncStopCluster.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/AsyncStopCluster.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncStopCluster() 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { StopClusterRequest request = StopClusterRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/AsyncStopClusterLRO.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/AsyncStopClusterLRO.java index fdc31376b190..b612438b5d75 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/AsyncStopClusterLRO.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/AsyncStopClusterLRO.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncStopClusterLRO() 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { StopClusterRequest request = StopClusterRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/SyncStopCluster.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/SyncStopCluster.java index 108b7265bd4c..3d57330ba360 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/SyncStopCluster.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/SyncStopCluster.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncStopCluster() 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { StopClusterRequest request = StopClusterRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/AsyncUpdateCluster.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/AsyncUpdateCluster.java index ed57bc594151..9bbb6292b7fc 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/AsyncUpdateCluster.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/AsyncUpdateCluster.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateCluster() 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { UpdateClusterRequest request = UpdateClusterRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/AsyncUpdateClusterLRO.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/AsyncUpdateClusterLRO.java index dca39c3f547a..43a018fc7fbb 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/AsyncUpdateClusterLRO.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/AsyncUpdateClusterLRO.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateClusterLRO() 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { UpdateClusterRequest request = UpdateClusterRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/SyncUpdateCluster.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/SyncUpdateCluster.java index 3fa4c0644663..712a54c27604 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/SyncUpdateCluster.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/SyncUpdateCluster.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateCluster() 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { UpdateClusterRequest request = UpdateClusterRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/SyncUpdateClusterStringStringStringClusterFieldmask.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/SyncUpdateClusterStringStringStringClusterFieldmask.java index cceeaf22ad0f..ced977a17c46 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/SyncUpdateClusterStringStringStringClusterFieldmask.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/SyncUpdateClusterStringStringStringClusterFieldmask.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateClusterStringStringStringClusterFieldmask() 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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { String projectId = "projectId-894832108"; String region = "region-934795532"; diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollersettings/getcluster/SyncGetCluster.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollersettings/getcluster/SyncGetCluster.java index 796b86ee1955..f2b10742b770 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollersettings/getcluster/SyncGetCluster.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollersettings/getcluster/SyncGetCluster.java @@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception { } public static void syncGetCluster() 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 ClusterControllerSettings.Builder clusterControllerSettingsBuilder = ClusterControllerSettings.newBuilder(); clusterControllerSettingsBuilder .getClusterSettings() .setRetrySettings( - clusterControllerSettingsBuilder - .getClusterSettings() - .getRetrySettings() - .toBuilder() + clusterControllerSettingsBuilder.getClusterSettings().getRetrySettings().toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); ClusterControllerSettings clusterControllerSettings = clusterControllerSettingsBuilder.build(); diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/AsyncCancelJob.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/AsyncCancelJob.java index e63d9946e28c..fc9cdc57bb77 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/AsyncCancelJob.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/AsyncCancelJob.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCancelJob() 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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { CancelJobRequest request = CancelJobRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/SyncCancelJob.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/SyncCancelJob.java index 325abde7a160..e9830ec13f49 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/SyncCancelJob.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/SyncCancelJob.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCancelJob() 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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { CancelJobRequest request = CancelJobRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/SyncCancelJobStringStringString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/SyncCancelJobStringStringString.java index 25db1d5b179e..3c91149c7186 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/SyncCancelJobStringStringString.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/SyncCancelJobStringStringString.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCancelJobStringStringString() 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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { String projectId = "projectId-894832108"; String region = "region-934795532"; diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetCredentialsProvider.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetCredentialsProvider.java index 76b8afcc8755..22eb7bb11342 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetCredentialsProvider.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/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 JobControllerSettings jobControllerSettings = JobControllerSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetCredentialsProvider1.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetCredentialsProvider1.java index 25e3519aab30..a6efe8d6177a 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetCredentialsProvider1.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/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 JobControllerSettings jobControllerSettings = JobControllerSettings.newBuilder() .setTransportChannelProvider( diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetEndpoint.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetEndpoint.java index e1592969cca5..ae69fd15261d 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetEndpoint.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/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 JobControllerSettings jobControllerSettings = JobControllerSettings.newBuilder().setEndpoint(myEndpoint).build(); JobControllerClient jobControllerClient = JobControllerClient.create(jobControllerSettings); diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/AsyncDeleteJob.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/AsyncDeleteJob.java index 5daa0298b5b4..e241b6f42b5f 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/AsyncDeleteJob.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/AsyncDeleteJob.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteJob() 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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { DeleteJobRequest request = DeleteJobRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/SyncDeleteJob.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/SyncDeleteJob.java index 150a024f98b2..0a20d89c9ff8 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/SyncDeleteJob.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/SyncDeleteJob.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteJob() 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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { DeleteJobRequest request = DeleteJobRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/SyncDeleteJobStringStringString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/SyncDeleteJobStringStringString.java index b149238868ab..fa617990cb7f 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/SyncDeleteJobStringStringString.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/SyncDeleteJobStringStringString.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteJobStringStringString() 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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { String projectId = "projectId-894832108"; String region = "region-934795532"; diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/AsyncGetJob.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/AsyncGetJob.java index 46c3dfb79f95..356e2fe24eda 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/AsyncGetJob.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/AsyncGetJob.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetJob() 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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { GetJobRequest request = GetJobRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/SyncGetJob.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/SyncGetJob.java index 9da587f6d07d..021464e17eb2 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/SyncGetJob.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/SyncGetJob.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetJob() 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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { GetJobRequest request = GetJobRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/SyncGetJobStringStringString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/SyncGetJobStringStringString.java index d7b2d64feb8b..deee5c1a0242 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/SyncGetJobStringStringString.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/SyncGetJobStringStringString.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetJobStringStringString() 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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { String projectId = "projectId-894832108"; String region = "region-934795532"; diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/AsyncListJobs.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/AsyncListJobs.java index 54911a3e0d34..826dbd55c473 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/AsyncListJobs.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/AsyncListJobs.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListJobs() 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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { ListJobsRequest request = ListJobsRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/AsyncListJobsPaged.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/AsyncListJobsPaged.java index 30faa05353de..8429398d510b 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/AsyncListJobsPaged.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/AsyncListJobsPaged.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListJobsPaged() 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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { ListJobsRequest request = ListJobsRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobs.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobs.java index 91d707ceb435..7594cb3cfaa1 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobs.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobs.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListJobs() 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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { ListJobsRequest request = ListJobsRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobsStringString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobsStringString.java index f0ecd6c2dff5..8f83eff09519 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobsStringString.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobsStringString.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncListJobsStringString() 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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { String projectId = "projectId-894832108"; String region = "region-934795532"; diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobsStringStringString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobsStringStringString.java index a597c7afc93c..c252d1796001 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobsStringStringString.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobsStringStringString.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncListJobsStringStringString() 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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { String projectId = "projectId-894832108"; String region = "region-934795532"; diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/AsyncSubmitJob.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/AsyncSubmitJob.java index 43d0c9f67f37..56253c50d938 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/AsyncSubmitJob.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/AsyncSubmitJob.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncSubmitJob() 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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { SubmitJobRequest request = SubmitJobRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/SyncSubmitJob.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/SyncSubmitJob.java index 4af2efbe769d..173126ea3f1f 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/SyncSubmitJob.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/SyncSubmitJob.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncSubmitJob() 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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { SubmitJobRequest request = SubmitJobRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/SyncSubmitJobStringStringJob.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/SyncSubmitJobStringStringJob.java index c64a0f4232f6..e31a038754c9 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/SyncSubmitJobStringStringJob.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/SyncSubmitJobStringStringJob.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncSubmitJobStringStringJob() 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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { String projectId = "projectId-894832108"; String region = "region-934795532"; diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/AsyncSubmitJobAsOperation.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/AsyncSubmitJobAsOperation.java index a00a67e42656..f3e0b2fb580a 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/AsyncSubmitJobAsOperation.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/AsyncSubmitJobAsOperation.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncSubmitJobAsOperation() 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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { SubmitJobRequest request = SubmitJobRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/AsyncSubmitJobAsOperationLRO.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/AsyncSubmitJobAsOperationLRO.java index 18f8f52f75f6..eef0a8581e2b 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/AsyncSubmitJobAsOperationLRO.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/AsyncSubmitJobAsOperationLRO.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncSubmitJobAsOperationLRO() 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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { SubmitJobRequest request = SubmitJobRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/SyncSubmitJobAsOperation.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/SyncSubmitJobAsOperation.java index 8b7bd1a4c451..9d4f552b8f29 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/SyncSubmitJobAsOperation.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/SyncSubmitJobAsOperation.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncSubmitJobAsOperation() 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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { SubmitJobRequest request = SubmitJobRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/SyncSubmitJobAsOperationStringStringJob.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/SyncSubmitJobAsOperationStringStringJob.java index 8a9a022d08d8..7cb37a53707c 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/SyncSubmitJobAsOperationStringStringJob.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/SyncSubmitJobAsOperationStringStringJob.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncSubmitJobAsOperationStringStringJob() 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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { String projectId = "projectId-894832108"; String region = "region-934795532"; diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/updatejob/AsyncUpdateJob.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/updatejob/AsyncUpdateJob.java index c19716b008cd..ea47c817f24b 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/updatejob/AsyncUpdateJob.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/updatejob/AsyncUpdateJob.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateJob() 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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { UpdateJobRequest request = UpdateJobRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/updatejob/SyncUpdateJob.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/updatejob/SyncUpdateJob.java index 9822c85ede31..da44260a5936 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/updatejob/SyncUpdateJob.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/updatejob/SyncUpdateJob.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateJob() 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 (JobControllerClient jobControllerClient = JobControllerClient.create()) { UpdateJobRequest request = UpdateJobRequest.newBuilder() diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollersettings/submitjob/SyncSubmitJob.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollersettings/submitjob/SyncSubmitJob.java index ddeebe212fd3..5e5ccc316bce 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollersettings/submitjob/SyncSubmitJob.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollersettings/submitjob/SyncSubmitJob.java @@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception { } public static void syncSubmitJob() 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 JobControllerSettings.Builder jobControllerSettingsBuilder = JobControllerSettings.newBuilder(); jobControllerSettingsBuilder .submitJobSettings() .setRetrySettings( - jobControllerSettingsBuilder - .submitJobSettings() - .getRetrySettings() - .toBuilder() + jobControllerSettingsBuilder.submitJobSettings().getRetrySettings().toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); JobControllerSettings jobControllerSettings = jobControllerSettingsBuilder.build(); diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/autoscalingpolicyservicestubsettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/autoscalingpolicyservicestubsettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java index 84d382588f20..bb760089c957 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/autoscalingpolicyservicestubsettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/autoscalingpolicyservicestubsettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateAutoscalingPolicy() 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 AutoscalingPolicyServiceStubSettings.Builder autoscalingPolicyServiceSettingsBuilder = AutoscalingPolicyServiceStubSettings.newBuilder(); autoscalingPolicyServiceSettingsBuilder diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/batchcontrollerstubsettings/getbatch/SyncGetBatch.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/batchcontrollerstubsettings/getbatch/SyncGetBatch.java index 1871ca997b35..53a3558c3f02 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/batchcontrollerstubsettings/getbatch/SyncGetBatch.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/batchcontrollerstubsettings/getbatch/SyncGetBatch.java @@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception { } public static void syncGetBatch() 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 BatchControllerStubSettings.Builder batchControllerSettingsBuilder = BatchControllerStubSettings.newBuilder(); batchControllerSettingsBuilder .getBatchSettings() .setRetrySettings( - batchControllerSettingsBuilder - .getBatchSettings() - .getRetrySettings() - .toBuilder() + batchControllerSettingsBuilder.getBatchSettings().getRetrySettings().toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); BatchControllerStubSettings batchControllerSettings = batchControllerSettingsBuilder.build(); diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/clustercontrollerstubsettings/getcluster/SyncGetCluster.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/clustercontrollerstubsettings/getcluster/SyncGetCluster.java index 62e2cd8eb133..c5105059ae97 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/clustercontrollerstubsettings/getcluster/SyncGetCluster.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/clustercontrollerstubsettings/getcluster/SyncGetCluster.java @@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception { } public static void syncGetCluster() 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 ClusterControllerStubSettings.Builder clusterControllerSettingsBuilder = ClusterControllerStubSettings.newBuilder(); clusterControllerSettingsBuilder .getClusterSettings() .setRetrySettings( - clusterControllerSettingsBuilder - .getClusterSettings() - .getRetrySettings() - .toBuilder() + clusterControllerSettingsBuilder.getClusterSettings().getRetrySettings().toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); ClusterControllerStubSettings clusterControllerSettings = diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/jobcontrollerstubsettings/submitjob/SyncSubmitJob.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/jobcontrollerstubsettings/submitjob/SyncSubmitJob.java index 72479b320907..53fb99306c46 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/jobcontrollerstubsettings/submitjob/SyncSubmitJob.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/jobcontrollerstubsettings/submitjob/SyncSubmitJob.java @@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception { } public static void syncSubmitJob() 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 JobControllerStubSettings.Builder jobControllerSettingsBuilder = JobControllerStubSettings.newBuilder(); jobControllerSettingsBuilder .submitJobSettings() .setRetrySettings( - jobControllerSettingsBuilder - .submitJobSettings() - .getRetrySettings() - .toBuilder() + jobControllerSettingsBuilder.submitJobSettings().getRetrySettings().toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); JobControllerStubSettings jobControllerSettings = jobControllerSettingsBuilder.build(); diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/workflowtemplateservicestubsettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/workflowtemplateservicestubsettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java index ad713e860290..3471fd8f7686 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/workflowtemplateservicestubsettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/workflowtemplateservicestubsettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateWorkflowTemplate() 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 WorkflowTemplateServiceStubSettings.Builder workflowTemplateServiceSettingsBuilder = WorkflowTemplateServiceStubSettings.newBuilder(); workflowTemplateServiceSettingsBuilder diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetCredentialsProvider.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetCredentialsProvider.java index 55958c39c593..754f1f863d9f 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetCredentialsProvider.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/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 WorkflowTemplateServiceSettings workflowTemplateServiceSettings = WorkflowTemplateServiceSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetCredentialsProvider1.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetCredentialsProvider1.java index e0bbbaf0f49d..ae334e36561f 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetCredentialsProvider1.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/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 WorkflowTemplateServiceSettings workflowTemplateServiceSettings = WorkflowTemplateServiceSettings.newBuilder() .setTransportChannelProvider( diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetEndpoint.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetEndpoint.java index 4367186b904b..47cd3ba09a36 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetEndpoint.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/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 WorkflowTemplateServiceSettings workflowTemplateServiceSettings = WorkflowTemplateServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); WorkflowTemplateServiceClient workflowTemplateServiceClient = diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/AsyncCreateWorkflowTemplate.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/AsyncCreateWorkflowTemplate.java index 645e77411b86..964b8a637310 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/AsyncCreateWorkflowTemplate.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/AsyncCreateWorkflowTemplate.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateWorkflowTemplate() 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) { CreateWorkflowTemplateRequest request = diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplate.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplate.java index 6b26666366ac..b2fe56e3c254 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplate.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplate.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateWorkflowTemplate() 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) { CreateWorkflowTemplateRequest request = diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateLocationnameWorkflowtemplate.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateLocationnameWorkflowtemplate.java index 46316bb83b54..ea1a78df6b3d 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateLocationnameWorkflowtemplate.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateLocationnameWorkflowtemplate.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateWorkflowTemplateLocationnameWorkflowtemplate() 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateRegionnameWorkflowtemplate.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateRegionnameWorkflowtemplate.java index d94b034f204a..b87ea4e5b872 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateRegionnameWorkflowtemplate.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateRegionnameWorkflowtemplate.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateWorkflowTemplateRegionnameWorkflowtemplate() 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) { RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateStringWorkflowtemplate.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateStringWorkflowtemplate.java index 9599406f99ed..c0be3faf39f4 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateStringWorkflowtemplate.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateStringWorkflowtemplate.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateWorkflowTemplateStringWorkflowtemplate() 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) { String parent = RegionName.of("[PROJECT]", "[REGION]").toString(); diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/AsyncDeleteWorkflowTemplate.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/AsyncDeleteWorkflowTemplate.java index 9df64c995f40..b8321ec49f96 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/AsyncDeleteWorkflowTemplate.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/AsyncDeleteWorkflowTemplate.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteWorkflowTemplate() 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) { DeleteWorkflowTemplateRequest request = diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplate.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplate.java index a43b0f574003..c5fc0aa5a08f 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplate.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplate.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteWorkflowTemplate() 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) { DeleteWorkflowTemplateRequest request = diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplateString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplateString.java index b4829ea67d13..10084786d611 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplateString.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplateString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteWorkflowTemplateString() 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) { String name = diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplateWorkflowtemplatename.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplateWorkflowtemplatename.java index 5e859046b606..b809010245f9 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplateWorkflowtemplatename.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplateWorkflowtemplatename.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteWorkflowTemplateWorkflowtemplatename() 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) { WorkflowTemplateName name = diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/AsyncGetWorkflowTemplate.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/AsyncGetWorkflowTemplate.java index 1f447d47c487..217de1fc51e9 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/AsyncGetWorkflowTemplate.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/AsyncGetWorkflowTemplate.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetWorkflowTemplate() 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) { GetWorkflowTemplateRequest request = diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplate.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplate.java index b71d233a7d96..e58e1462f4a9 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplate.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplate.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetWorkflowTemplate() 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) { GetWorkflowTemplateRequest request = diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplateString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplateString.java index ef6e3294ec95..58057efbd67e 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplateString.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplateString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetWorkflowTemplateString() 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) { String name = diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplateWorkflowtemplatename.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplateWorkflowtemplatename.java index 48256068d3e5..72b38ae579ef 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplateWorkflowtemplatename.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplateWorkflowtemplatename.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetWorkflowTemplateWorkflowtemplatename() 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) { WorkflowTemplateName name = diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplate.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplate.java index 132e38f7a46a..abf86815aa20 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplate.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplate.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncInstantiateInlineWorkflowTemplate() 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) { InstantiateInlineWorkflowTemplateRequest request = diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplateLRO.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplateLRO.java index b486fc8ff61e..e03f8b8c4128 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplateLRO.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplateLRO.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void asyncInstantiateInlineWorkflowTemplateLRO() 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) { InstantiateInlineWorkflowTemplateRequest request = diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplate.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplate.java index a7c1f7a43280..b5c22ed1c164 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplate.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplate.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncInstantiateInlineWorkflowTemplate() 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) { InstantiateInlineWorkflowTemplateRequest request = diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateLocationnameWorkflowtemplate.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateLocationnameWorkflowtemplate.java index a77df730592a..e18ff625be87 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateLocationnameWorkflowtemplate.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateLocationnameWorkflowtemplate.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { public static void syncInstantiateInlineWorkflowTemplateLocationnameWorkflowtemplate() 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateRegionnameWorkflowtemplate.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateRegionnameWorkflowtemplate.java index 66bc4858ba5b..e6213b2872a9 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateRegionnameWorkflowtemplate.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateRegionnameWorkflowtemplate.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { public static void syncInstantiateInlineWorkflowTemplateRegionnameWorkflowtemplate() 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) { RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateStringWorkflowtemplate.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateStringWorkflowtemplate.java index 611bcc2d1ae0..e6516ae349f0 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateStringWorkflowtemplate.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateStringWorkflowtemplate.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { public static void syncInstantiateInlineWorkflowTemplateStringWorkflowtemplate() 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) { String parent = RegionName.of("[PROJECT]", "[REGION]").toString(); diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplate.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplate.java index 2a5f4ed15981..78e3bb552c0b 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplate.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplate.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncInstantiateWorkflowTemplate() 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) { InstantiateWorkflowTemplateRequest request = diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplateLRO.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplateLRO.java index a5fd09a5d8ea..c06b53df1c0c 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplateLRO.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplateLRO.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void asyncInstantiateWorkflowTemplateLRO() 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) { InstantiateWorkflowTemplateRequest request = diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplate.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplate.java index bf702bf2c1fa..15ade86188e7 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplate.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplate.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncInstantiateWorkflowTemplate() 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) { InstantiateWorkflowTemplateRequest request = diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateString.java index 55c193f4a2ff..821758e0f791 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateString.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncInstantiateWorkflowTemplateString() 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) { String name = diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateStringMapstringstring.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateStringMapstringstring.java index 9e46f781c19c..88d1052a792c 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateStringMapstringstring.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateStringMapstringstring.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncInstantiateWorkflowTemplateStringMapstringstring() 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) { String name = diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatename.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatename.java index 11d52b7a9d77..1d0b0654cab3 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatename.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatename.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncInstantiateWorkflowTemplateWorkflowtemplatename() 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) { WorkflowTemplateName name = diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatenameMapstringstring.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatenameMapstringstring.java index a0381f9b320d..fd8d9b0037ee 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatenameMapstringstring.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatenameMapstringstring.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { public static void syncInstantiateWorkflowTemplateWorkflowtemplatenameMapstringstring() 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) { WorkflowTemplateName name = diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/AsyncListWorkflowTemplates.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/AsyncListWorkflowTemplates.java index 9cbc33d37bc5..41ce3319894c 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/AsyncListWorkflowTemplates.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/AsyncListWorkflowTemplates.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListWorkflowTemplates() 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) { ListWorkflowTemplatesRequest request = diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/AsyncListWorkflowTemplatesPaged.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/AsyncListWorkflowTemplatesPaged.java index 601674e8f653..24a7701303b9 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/AsyncListWorkflowTemplatesPaged.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/AsyncListWorkflowTemplatesPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListWorkflowTemplatesPaged() 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) { ListWorkflowTemplatesRequest request = diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplates.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplates.java index 870132454d4f..b848c49612c3 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplates.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplates.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListWorkflowTemplates() 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) { ListWorkflowTemplatesRequest request = diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesLocationname.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesLocationname.java index ec3b01811f54..e66ff8514d8e 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesLocationname.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesLocationname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListWorkflowTemplatesLocationname() 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesRegionname.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesRegionname.java index 1a22892b4d66..876481424fca 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesRegionname.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesRegionname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListWorkflowTemplatesRegionname() 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) { RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesString.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesString.java index 5104956a51bb..e71da5a202a5 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesString.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListWorkflowTemplatesString() 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) { String parent = RegionName.of("[PROJECT]", "[REGION]").toString(); diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/AsyncUpdateWorkflowTemplate.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/AsyncUpdateWorkflowTemplate.java index 519415e64418..2a598bcfdc8d 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/AsyncUpdateWorkflowTemplate.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/AsyncUpdateWorkflowTemplate.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateWorkflowTemplate() 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) { UpdateWorkflowTemplateRequest request = diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/SyncUpdateWorkflowTemplate.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/SyncUpdateWorkflowTemplate.java index fbea63d2e3fd..5dfbf6759df8 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/SyncUpdateWorkflowTemplate.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/SyncUpdateWorkflowTemplate.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateWorkflowTemplate() 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) { UpdateWorkflowTemplateRequest request = diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/SyncUpdateWorkflowTemplateWorkflowtemplate.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/SyncUpdateWorkflowTemplateWorkflowtemplate.java index 2a8badde3a4d..73ca1be0a56d 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/SyncUpdateWorkflowTemplateWorkflowtemplate.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/SyncUpdateWorkflowTemplateWorkflowtemplate.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateWorkflowTemplateWorkflowtemplate() 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 (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) { WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); diff --git a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservicesettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservicesettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java index cf63ba119b9f..f7f7fec3cfff 100644 --- a/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservicesettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java +++ b/java-dataproc/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservicesettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateWorkflowTemplate() 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 WorkflowTemplateServiceSettings.Builder workflowTemplateServiceSettingsBuilder = WorkflowTemplateServiceSettings.newBuilder(); workflowTemplateServiceSettingsBuilder