From 710dd866ec7762dcef0c3f382ed0bd67286d6194 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 1/6] 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 --- 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/README.md b/README.md index 94a7056a..6fb63bac 100644 --- a/README.md +++ b/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/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java index 9f4bfa44..3657881d 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java +++ b/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/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java
index 44d8018c..038b6554 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java
+++ b/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/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerClient.java
index c8f26d1d..c389df85 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerClient.java
+++ b/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 OperationFuture createBatchAsync(
* 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 OperationFuture createBatchAsync(
* 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 OperationFuture createBatchAsync(
* 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 OperationFuture createBatchAsync(
* 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 UnaryCallable createBatchCallable()
* 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 UnaryCallable getBatchCallable() {
* 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 UnaryCallable listBatchesC
* 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/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerSettings.java
index a52bdd7d..951ae345 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerSettings.java
+++ b/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/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java
index 5cecf320..12812a0b 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java
+++ b/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 OperationFuture createClusterAsy
* 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 OperationFuture createClusterAsy
* 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 OperationFuture createClusterAsy
* 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 UnaryCallable createClusterCallabl
* 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 OperationFuture updateClusterAsy
* 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 OperationFuture updateClusterAsy
* 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 OperationFuture updateClusterAsy
* 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 UnaryCallable updateClusterCallabl
* 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 OperationFuture stopClusterAsync
* 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 OperationFuture stopClusterAsync
* 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 UnaryCallable stopClusterCallable()
* 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 OperationFuture startClusterAsyn
* 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 OperationFuture startClusterAsyn
* 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 UnaryCallable startClusterCallable(
* 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 OperationFuture deleteClusterAsync
* 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 OperationFuture deleteClusterAsync
* 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 OperationFuture deleteClusterAsync
* 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 UnaryCallable deleteClusterCallabl
* 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 UnaryCallable getClusterCallable() {
* 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 UnaryCallable listCluste
* 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 UnaryCallable listCluste
* 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 UnaryCallable listCluste
* 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 UnaryCallable listCluste
* 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/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java
index 55d39d98..f2fc2a9a 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java
+++ b/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/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java
index 58cfd102..688040ac 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java
+++ b/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 UnaryCallable submitJobCallable() {
* 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 OperationFuture submitJobAsOperationAsync(
* 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 OperationFuture submitJobAsOperationAsync(
* 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 OperationFuture submitJobAsOperationAsync(
* 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 UnaryCallable submitJobAsOperationCall
* 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 UnaryCallable getJobCallable() {
* 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 UnaryCallable listJobsPaged
* 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 UnaryCallable listJobsCallable()
* 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 UnaryCallable updateJobCallable() {
* 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 UnaryCallable cancelJobCallable() {
* 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/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java
index 71bc0b5e..f2e480e9 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java
+++ b/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/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java
index 8d065098..001a4918 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java
+++ b/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 OperationFuture instantiateWorkflowTemplat
* 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 OperationFuture instantiateWorkflowTemplat
* 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 OperationFuture instantiateWorkflowTemplat
* 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 OperationFuture instantiateWorkflowTemplat
* 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 OperationFuture instantiateWorkflowTemplat
* 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 OperationFuture instantiateWorkflowTemplat
* 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 OperationFuture instantiateWorkflowTemplat
* 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 OperationFuture instantiateInlineWorkflowT
* 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 OperationFuture instantiateInlineWorkflowT
* 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 OperationFuture instantiateInlineWorkflowT
* 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 OperationFuture instantiateInlineWorkflowT
* 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 OperationFuture instantiateInlineWorkflowT
* 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 OperationFuture instantiateInlineWorkflowT
* 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/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java
index 88c8dfc2..9224a7d5 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java
+++ b/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/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java
index df1f4105..7f608efc 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java
+++ b/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/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java
index 1a2a5e94..9394126b 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java
+++ b/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/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStubSettings.java
index 832821dc..6dc2d972 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStubSettings.java
+++ b/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/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java
index 766ba611..3c06e344 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java
+++ b/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/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceStub.java
index ee4bb3b9..20d94992 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceStub.java
+++ b/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/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerStub.java
index aa10538c..20b8454e 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerStub.java
+++ b/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/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerStub.java
index e877794f..5b2bb414 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerStub.java
+++ b/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/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerStub.java
index ddd18936..7d26c11b 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerStub.java
+++ b/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/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceStub.java
index 1e980390..4a07f7bd 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceStub.java
+++ b/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/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java
index 3d835842..75758665 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java
+++ b/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/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java
index 06fc7711..a039aab0 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetCredentialsProvider.java
index 62e0ffa8..6dba06e5 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetCredentialsProvider.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetCredentialsProvider1.java
index 29234b18..e9a19dd5 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetCredentialsProvider1.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetEndpoint.java
index 605bda4d..af255984 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetEndpoint.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/AsyncCreateAutoscalingPolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/AsyncCreateAutoscalingPolicy.java
index 0f089a3b..49243ea2 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/AsyncCreateAutoscalingPolicy.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java
index 2b81972c..efb75168 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyLocationnameAutoscalingpolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyLocationnameAutoscalingpolicy.java
index 2d08b959..8892b60e 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyLocationnameAutoscalingpolicy.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyRegionnameAutoscalingpolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyRegionnameAutoscalingpolicy.java
index 8b70651c..c0cddcf7 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyRegionnameAutoscalingpolicy.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyStringAutoscalingpolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyStringAutoscalingpolicy.java
index 05afde5f..6f2f6dcf 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyStringAutoscalingpolicy.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/AsyncDeleteAutoscalingPolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/AsyncDeleteAutoscalingPolicy.java
index bc4ffec2..9dc50aa3 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/AsyncDeleteAutoscalingPolicy.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicy.java
index a5ba2c2c..15c755e5 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicy.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyAutoscalingpolicyname.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyAutoscalingpolicyname.java
index c30f1a49..61c04fad 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyAutoscalingpolicyname.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyString.java
index 6b0c3cd9..de19adf3 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyString.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/AsyncGetAutoscalingPolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/AsyncGetAutoscalingPolicy.java
index 00784823..1787aa6d 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/AsyncGetAutoscalingPolicy.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicy.java
index 3e05d1c4..e303e2be 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicy.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicyAutoscalingpolicyname.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicyAutoscalingpolicyname.java
index e9d14580..594fd119 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicyAutoscalingpolicyname.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicyString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicyString.java
index da79dbb9..39f6afec 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicyString.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/AsyncListAutoscalingPolicies.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/AsyncListAutoscalingPolicies.java
index c0c5dcb8..b455040d 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/AsyncListAutoscalingPolicies.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/AsyncListAutoscalingPoliciesPaged.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/AsyncListAutoscalingPoliciesPaged.java
index 644690ba..9a20618d 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/AsyncListAutoscalingPoliciesPaged.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPolicies.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPolicies.java
index e3c92d37..1db78e7c 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPolicies.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesLocationname.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesLocationname.java
index 7c32f189..38236be6 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesLocationname.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesRegionname.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesRegionname.java
index 577c18c9..0290c1f0 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesRegionname.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesString.java
index ffdcb024..de1088cd 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesString.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/AsyncUpdateAutoscalingPolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/AsyncUpdateAutoscalingPolicy.java
index 960be01b..7a19f36d 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/AsyncUpdateAutoscalingPolicy.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/SyncUpdateAutoscalingPolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/SyncUpdateAutoscalingPolicy.java
index 853d3888..9cb872bc 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/SyncUpdateAutoscalingPolicy.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/SyncUpdateAutoscalingPolicyAutoscalingpolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/SyncUpdateAutoscalingPolicyAutoscalingpolicy.java
index 8688d747..3718e929 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/SyncUpdateAutoscalingPolicyAutoscalingpolicy.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservicesettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservicesettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java
index afc5ad75..c6b3fc92 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservicesettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetCredentialsProvider.java
index 0373f3a6..2b057710 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetCredentialsProvider.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetCredentialsProvider1.java
index 99b4414b..459694d6 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetCredentialsProvider1.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetEndpoint.java
index 0377155d..1059c281 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetEndpoint.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/AsyncCreateBatch.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/AsyncCreateBatch.java
index 839fea7c..38d10f86 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/AsyncCreateBatch.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/AsyncCreateBatchLRO.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/AsyncCreateBatchLRO.java
index 0f98a0ab..5cd5f071 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/AsyncCreateBatchLRO.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatch.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatch.java
index 17e8e588..f46c5943 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatch.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatchLocationnameBatchString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatchLocationnameBatchString.java
index 508180fd..c6e05597 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatchLocationnameBatchString.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatchStringBatchString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatchStringBatchString.java
index 2793e455..e4f4f205 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatchStringBatchString.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/AsyncDeleteBatch.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/AsyncDeleteBatch.java
index cd0e119e..7fbeef35 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/AsyncDeleteBatch.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatch.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatch.java
index 2917b430..ad4f86ab 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatch.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatchBatchname.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatchBatchname.java
index 05bc0eb6..6dac6713 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatchBatchname.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatchString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatchString.java
index 8c02f3cd..894deb0d 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatchString.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/AsyncGetBatch.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/AsyncGetBatch.java
index 5405d3a8..a4590f1e 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/AsyncGetBatch.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatch.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatch.java
index 26e423cb..64269a7a 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatch.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatchBatchname.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatchBatchname.java
index 5fe46c90..beb75c0d 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatchBatchname.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatchString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatchString.java
index a47944e4..2f7cbbf4 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatchString.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/AsyncListBatches.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/AsyncListBatches.java
index ccb2e46e..132b745c 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/AsyncListBatches.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/AsyncListBatchesPaged.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/AsyncListBatchesPaged.java
index 06e83f3b..e57dd257 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/AsyncListBatchesPaged.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatches.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatches.java
index b8f07cbf..ec73dc9d 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatches.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatchesLocationname.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatchesLocationname.java
index b2824ecd..ea5f95c7 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatchesLocationname.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatchesString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatchesString.java
index c7829608..09b7a2ca 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatchesString.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollersettings/getbatch/SyncGetBatch.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollersettings/getbatch/SyncGetBatch.java
index 8dd2ff32..215f14ea 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollersettings/getbatch/SyncGetBatch.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetCredentialsProvider.java
index e0671460..03a9b2c8 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetCredentialsProvider.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetCredentialsProvider1.java
index 5fb0af6a..bce4ec53 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetCredentialsProvider1.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetEndpoint.java
index fdf73a94..a7bb3572 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetEndpoint.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/AsyncCreateCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/AsyncCreateCluster.java
index 03bc07b8..73ef3c06 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/AsyncCreateCluster.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/AsyncCreateClusterLRO.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/AsyncCreateClusterLRO.java
index 9d82a33f..80080978 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/AsyncCreateClusterLRO.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/SyncCreateCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/SyncCreateCluster.java
index 77d68833..f6539d10 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/SyncCreateCluster.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/SyncCreateClusterStringStringCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/SyncCreateClusterStringStringCluster.java
index 57fc3d08..f1f4cbcc 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/SyncCreateClusterStringStringCluster.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/AsyncDeleteCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/AsyncDeleteCluster.java
index 6711e235..3607e858 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/AsyncDeleteCluster.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/AsyncDeleteClusterLRO.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/AsyncDeleteClusterLRO.java
index 02704096..60ad729d 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/AsyncDeleteClusterLRO.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/SyncDeleteCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/SyncDeleteCluster.java
index b56f7168..a36a8e9b 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/SyncDeleteCluster.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/SyncDeleteClusterStringStringString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/SyncDeleteClusterStringStringString.java
index 1e98763d..7627ed7d 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/SyncDeleteClusterStringStringString.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/AsyncDiagnoseCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/AsyncDiagnoseCluster.java
index 1da70de6..61c6d98d 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/AsyncDiagnoseCluster.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/AsyncDiagnoseClusterLRO.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/AsyncDiagnoseClusterLRO.java
index 7d636db1..587ec060 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/AsyncDiagnoseClusterLRO.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/SyncDiagnoseCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/SyncDiagnoseCluster.java
index 20300a90..b4a471eb 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/SyncDiagnoseCluster.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/SyncDiagnoseClusterStringStringString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/SyncDiagnoseClusterStringStringString.java
index faeb2316..ad2cc77b 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/SyncDiagnoseClusterStringStringString.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/AsyncGetCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/AsyncGetCluster.java
index 2d38e4eb..3d22bb33 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/AsyncGetCluster.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/SyncGetCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/SyncGetCluster.java
index 28a3eafc..d8ad3563 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/SyncGetCluster.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/SyncGetClusterStringStringString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/SyncGetClusterStringStringString.java
index bcc209a9..9e32532d 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/SyncGetClusterStringStringString.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/AsyncListClusters.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/AsyncListClusters.java
index ea1429e8..e01a5ea4 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/AsyncListClusters.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/AsyncListClustersPaged.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/AsyncListClustersPaged.java
index ed2f2ee4..4aa54ed4 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/AsyncListClustersPaged.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClusters.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClusters.java
index 169a3997..9d8daac4 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClusters.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClustersStringString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClustersStringString.java
index 0edd1e44..1f4ea8cc 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClustersStringString.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClustersStringStringString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClustersStringStringString.java
index 304cf133..879cbc98 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClustersStringStringString.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/AsyncStartCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/AsyncStartCluster.java
index 1a67986b..cad0e58d 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/AsyncStartCluster.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/AsyncStartClusterLRO.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/AsyncStartClusterLRO.java
index af670b25..d2778710 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/AsyncStartClusterLRO.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/SyncStartCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/SyncStartCluster.java
index 3d52d1c9..6432ccef 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/SyncStartCluster.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/AsyncStopCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/AsyncStopCluster.java
index 126ffe30..8097b461 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/AsyncStopCluster.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/AsyncStopClusterLRO.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/AsyncStopClusterLRO.java
index fdc31376..b612438b 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/AsyncStopClusterLRO.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/SyncStopCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/SyncStopCluster.java
index 108b7265..3d57330b 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/SyncStopCluster.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/AsyncUpdateCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/AsyncUpdateCluster.java
index ed57bc59..9bbb6292 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/AsyncUpdateCluster.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/AsyncUpdateClusterLRO.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/AsyncUpdateClusterLRO.java
index dca39c3f..43a018fc 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/AsyncUpdateClusterLRO.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/SyncUpdateCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/SyncUpdateCluster.java
index 3fa4c064..712a54c2 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/SyncUpdateCluster.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/SyncUpdateClusterStringStringStringClusterFieldmask.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/SyncUpdateClusterStringStringStringClusterFieldmask.java
index cceeaf22..ced977a1 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/SyncUpdateClusterStringStringStringClusterFieldmask.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollersettings/getcluster/SyncGetCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollersettings/getcluster/SyncGetCluster.java
index 796b86ee..f2b10742 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollersettings/getcluster/SyncGetCluster.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/AsyncCancelJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/AsyncCancelJob.java
index e63d9946..fc9cdc57 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/AsyncCancelJob.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/SyncCancelJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/SyncCancelJob.java
index 325abde7..e9830ec1 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/SyncCancelJob.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/SyncCancelJobStringStringString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/SyncCancelJobStringStringString.java
index 25db1d5b..3c91149c 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/SyncCancelJobStringStringString.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetCredentialsProvider.java
index 76b8afcc..22eb7bb1 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetCredentialsProvider.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetCredentialsProvider1.java
index 25e3519a..a6efe8d6 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetCredentialsProvider1.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetEndpoint.java
index e1592969..ae69fd15 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetEndpoint.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/AsyncDeleteJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/AsyncDeleteJob.java
index 5daa0298..e241b6f4 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/AsyncDeleteJob.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/SyncDeleteJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/SyncDeleteJob.java
index 150a024f..0a20d89c 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/SyncDeleteJob.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/SyncDeleteJobStringStringString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/SyncDeleteJobStringStringString.java
index b1492388..fa617990 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/SyncDeleteJobStringStringString.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/AsyncGetJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/AsyncGetJob.java
index 46c3dfb7..356e2fe2 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/AsyncGetJob.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/SyncGetJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/SyncGetJob.java
index 9da587f6..021464e1 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/SyncGetJob.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/SyncGetJobStringStringString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/SyncGetJobStringStringString.java
index d7b2d64f..deee5c1a 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/SyncGetJobStringStringString.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/AsyncListJobs.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/AsyncListJobs.java
index 54911a3e..826dbd55 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/AsyncListJobs.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/AsyncListJobsPaged.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/AsyncListJobsPaged.java
index 30faa053..8429398d 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/AsyncListJobsPaged.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobs.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobs.java
index 91d707ce..7594cb3c 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobs.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobsStringString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobsStringString.java
index f0ecd6c2..8f83eff0 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobsStringString.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobsStringStringString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobsStringStringString.java
index a597c7af..c252d179 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobsStringStringString.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/AsyncSubmitJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/AsyncSubmitJob.java
index 43d0c9f6..56253c50 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/AsyncSubmitJob.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/SyncSubmitJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/SyncSubmitJob.java
index 4af2efbe..173126ea 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/SyncSubmitJob.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/SyncSubmitJobStringStringJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/SyncSubmitJobStringStringJob.java
index c64a0f42..e31a0387 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/SyncSubmitJobStringStringJob.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/AsyncSubmitJobAsOperation.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/AsyncSubmitJobAsOperation.java
index a00a67e4..f3e0b2fb 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/AsyncSubmitJobAsOperation.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/AsyncSubmitJobAsOperationLRO.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/AsyncSubmitJobAsOperationLRO.java
index 18f8f52f..eef0a858 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/AsyncSubmitJobAsOperationLRO.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/SyncSubmitJobAsOperation.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/SyncSubmitJobAsOperation.java
index 8b7bd1a4..9d4f552b 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/SyncSubmitJobAsOperation.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/SyncSubmitJobAsOperationStringStringJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/SyncSubmitJobAsOperationStringStringJob.java
index 8a9a022d..7cb37a53 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/SyncSubmitJobAsOperationStringStringJob.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/updatejob/AsyncUpdateJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/updatejob/AsyncUpdateJob.java
index c19716b0..ea47c817 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/updatejob/AsyncUpdateJob.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/updatejob/SyncUpdateJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/updatejob/SyncUpdateJob.java
index 9822c85e..da44260a 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/updatejob/SyncUpdateJob.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollersettings/submitjob/SyncSubmitJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollersettings/submitjob/SyncSubmitJob.java
index ddeebe21..5e5ccc31 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollersettings/submitjob/SyncSubmitJob.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/autoscalingpolicyservicestubsettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/autoscalingpolicyservicestubsettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java
index 84d38258..bb760089 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/autoscalingpolicyservicestubsettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/batchcontrollerstubsettings/getbatch/SyncGetBatch.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/batchcontrollerstubsettings/getbatch/SyncGetBatch.java
index 1871ca99..53a3558c 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/batchcontrollerstubsettings/getbatch/SyncGetBatch.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/clustercontrollerstubsettings/getcluster/SyncGetCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/clustercontrollerstubsettings/getcluster/SyncGetCluster.java
index 62e2cd8e..c5105059 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/clustercontrollerstubsettings/getcluster/SyncGetCluster.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/jobcontrollerstubsettings/submitjob/SyncSubmitJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/jobcontrollerstubsettings/submitjob/SyncSubmitJob.java
index 72479b32..53fb9930 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/jobcontrollerstubsettings/submitjob/SyncSubmitJob.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/workflowtemplateservicestubsettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/workflowtemplateservicestubsettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java
index ad713e86..3471fd8f 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/workflowtemplateservicestubsettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetCredentialsProvider.java
index 55958c39..754f1f86 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetCredentialsProvider.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetCredentialsProvider1.java
index e0bbbaf0..ae334e36 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetCredentialsProvider1.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetEndpoint.java
index 4367186b..47cd3ba0 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetEndpoint.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/AsyncCreateWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/AsyncCreateWorkflowTemplate.java
index 645e7741..964b8a63 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/AsyncCreateWorkflowTemplate.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplate.java
index 6b266663..b2fe56e3 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplate.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateLocationnameWorkflowtemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateLocationnameWorkflowtemplate.java
index 46316bb8..ea1a78df 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateLocationnameWorkflowtemplate.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateRegionnameWorkflowtemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateRegionnameWorkflowtemplate.java
index d94b034f..b87ea4e5 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateRegionnameWorkflowtemplate.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateStringWorkflowtemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateStringWorkflowtemplate.java
index 9599406f..c0be3faf 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateStringWorkflowtemplate.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/AsyncDeleteWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/AsyncDeleteWorkflowTemplate.java
index 9df64c99..b8321ec4 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/AsyncDeleteWorkflowTemplate.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplate.java
index a43b0f57..c5fc0aa5 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplate.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplateString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplateString.java
index b4829ea6..10084786 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplateString.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplateWorkflowtemplatename.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplateWorkflowtemplatename.java
index 5e859046..b8090102 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplateWorkflowtemplatename.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/AsyncGetWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/AsyncGetWorkflowTemplate.java
index 1f447d47..217de1fc 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/AsyncGetWorkflowTemplate.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplate.java
index b71d233a..e58e1462 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplate.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplateString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplateString.java
index ef6e3294..58057efb 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplateString.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplateWorkflowtemplatename.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplateWorkflowtemplatename.java
index 48256068..72b38ae5 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplateWorkflowtemplatename.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplate.java
index 132e38f7..abf86815 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplate.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplateLRO.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplateLRO.java
index b486fc8f..e03f8b8c 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplateLRO.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplate.java
index a7c1f7a4..b5c22ed1 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplate.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateLocationnameWorkflowtemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateLocationnameWorkflowtemplate.java
index a77df730..e18ff625 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateLocationnameWorkflowtemplate.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateRegionnameWorkflowtemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateRegionnameWorkflowtemplate.java
index 66bc4858..e6213b28 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateRegionnameWorkflowtemplate.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateStringWorkflowtemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateStringWorkflowtemplate.java
index 611bcc2d..e6516ae3 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateStringWorkflowtemplate.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplate.java
index 2a5f4ed1..78e3bb55 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplate.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplateLRO.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplateLRO.java
index a5fd09a5..c06b53df 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplateLRO.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplate.java
index bf702bf2..15ade861 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplate.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateString.java
index 55c193f4..821758e0 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateString.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateStringMapstringstring.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateStringMapstringstring.java
index 9e46f781..88d1052a 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateStringMapstringstring.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatename.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatename.java
index 11d52b7a..1d0b0654 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatename.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatenameMapstringstring.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatenameMapstringstring.java
index a0381f9b..fd8d9b00 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatenameMapstringstring.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/AsyncListWorkflowTemplates.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/AsyncListWorkflowTemplates.java
index 9cbc33d3..41ce3319 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/AsyncListWorkflowTemplates.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/AsyncListWorkflowTemplatesPaged.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/AsyncListWorkflowTemplatesPaged.java
index 601674e8..24a77013 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/AsyncListWorkflowTemplatesPaged.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplates.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplates.java
index 87013245..b848c496 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplates.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesLocationname.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesLocationname.java
index ec3b0181..e66ff851 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesLocationname.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesRegionname.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesRegionname.java
index 1a22892b..87648142 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesRegionname.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesString.java
index 5104956a..e71da5a2 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesString.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/AsyncUpdateWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/AsyncUpdateWorkflowTemplate.java
index 519415e6..2a598bcf 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/AsyncUpdateWorkflowTemplate.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/SyncUpdateWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/SyncUpdateWorkflowTemplate.java
index fbea63d2..5dfbf675 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/SyncUpdateWorkflowTemplate.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/SyncUpdateWorkflowTemplateWorkflowtemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/SyncUpdateWorkflowTemplateWorkflowtemplate.java
index 2a8badde..73ca1be0 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/SyncUpdateWorkflowTemplateWorkflowtemplate.java
+++ b/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/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservicesettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservicesettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java
index cf63ba11..f7f7fec3 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservicesettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java
+++ b/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
From 81cce69ca6fd0c12749c59df0fad74f2a1bee3d1 Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate
Date: Fri, 9 Sep 2022 17:42:16 +0200
Subject: [PATCH 2/6] chore(deps): update dependency
com.google.cloud:google-cloud-dataproc to v4.0.4 (#913)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-dataproc](https://togithub.com/googleapis/java-dataproc) | `4.0.3` -> `4.0.4` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) |
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
â™» **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] If you want to rebase/retry this PR, click this checkbox. âš **Warning**: custom changes will be lost.
---
This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc).
---
README.md | 2 +-
samples/install-without-bom/pom.xml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 6fb63bac..bd4b7ce5 100644
--- a/README.md
+++ b/README.md
@@ -42,7 +42,7 @@ If you are using Maven without BOM, add this to your dependencies:
com.google.cloud
google-cloud-dataproc
- 4.0.3
+ 4.0.4
```
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index f6c61329..4a9ed40a 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -29,7 +29,7 @@
com.google.cloud
google-cloud-dataproc
- 4.0.3
+ 4.0.4
From 8f4b9a08733527549beb338661df698528d7e31d Mon Sep 17 00:00:00 2001
From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com>
Date: Sat, 10 Sep 2022 02:12:30 +0000
Subject: [PATCH 3/6] chore: Generated snippets should not be owned by samples
reviewers (#1575) (#914)
Source-Link: https://github.com/googleapis/synthtool/commit/2e9ac19d5b8181af77cdc5337cf922517813cc49
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:8175681a918181d306d9c370d3262f16b4c724cc73d74111b7d42fc985ca7f93
---
.github/.OwlBot.lock.yaml | 3 +--
.github/CODEOWNERS | 3 +++
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml
index 6610882f..62592923 100644
--- a/.github/.OwlBot.lock.yaml
+++ b/.github/.OwlBot.lock.yaml
@@ -13,5 +13,4 @@
# limitations under the License.
docker:
image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest
- digest: sha256:04f254abfe5f47fe73ae6f91d68d55c3b76e722a4943066c3bb0ce03573b4ad9
-# created: 2022-07-18T21:44:23.94208526Z
+ digest: sha256:8175681a918181d306d9c370d3262f16b4c724cc73d74111b7d42fc985ca7f93
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index 140b3a10..31ab6dd1 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -10,3 +10,6 @@
# The java-samples-reviewers team is the default owner for samples changes
samples/**/*.java @googleapis/java-samples-reviewers
+
+# Generated snippets should not be owned by samples reviewers
+samples/snippets/generated/ @googleapis/yoshi-java
From 60c1eeb4797ec497abade6525074469069700388 Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate
Date: Thu, 15 Sep 2022 14:12:37 +0200
Subject: [PATCH 4/6] deps: update dependency
com.google.cloud:google-cloud-shared-dependencies to v3.0.3 (#915)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `3.0.2` -> `3.0.3` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) |
---
### Release Notes
googleapis/java-shared-dependencies
### [`v3.0.3`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#303-httpsgithubcomgoogleapisjava-shared-dependenciescomparev302v303-2022-09-14)
[Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v3.0.2...v3.0.3)
##### Dependencies
- Google-cloud-core 2.8.12 ([#799](https://togithub.com/googleapis/java-shared-dependencies/issues/799)) ([1b3db8d](https://togithub.com/googleapis/java-shared-dependencies/commit/1b3db8d1e17c49ebae79fc96164fa9058e1df6e3))
- Moving gson to first-party-dependencies ([#800](https://togithub.com/googleapis/java-shared-dependencies/issues/800)) ([a41fcc1](https://togithub.com/googleapis/java-shared-dependencies/commit/a41fcc11d32e02e5af2837561792e3919f6d4b3f))
- Update dependency com.google.protobuf:protobuf-bom to v3.21.6 ([#797](https://togithub.com/googleapis/java-shared-dependencies/issues/797)) ([bc5fdc9](https://togithub.com/googleapis/java-shared-dependencies/commit/bc5fdc9b3af7973c28f063a9ac156fe2af562814))
- Update gax.version to v2.19.1 ([#798](https://togithub.com/googleapis/java-shared-dependencies/issues/798)) ([84e5487](https://togithub.com/googleapis/java-shared-dependencies/commit/84e5487b2e3dce4bb60badecebde788c3cb702b8))
- Update google.core.version to v2.8.11 ([#793](https://togithub.com/googleapis/java-shared-dependencies/issues/793)) ([63c1297](https://togithub.com/googleapis/java-shared-dependencies/commit/63c129722aa0b821031ff5b4c11004adf7b12044))
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
â™» **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] If you want to rebase/retry this PR, click this checkbox.
---
This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc).
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index aa515da7..7fc2ea9d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -77,7 +77,7 @@
com.google.cloud
google-cloud-shared-dependencies
- 3.0.2
+ 3.0.3
pom
import
From 1a8bbc11f53b633bb3f73b2c4c817aecd75abbe4 Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Fri, 16 Sep 2022 14:34:13 +0000
Subject: [PATCH 5/6] chore(main): release 4.0.5-SNAPSHOT (#912)
:robot: I have created a release *beep* *boop*
---
### Updating meta-information for bleeding-edge SNAPSHOT release.
---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
---
google-cloud-dataproc-bom/pom.xml | 8 ++++----
google-cloud-dataproc/pom.xml | 4 ++--
grpc-google-cloud-dataproc-v1/pom.xml | 4 ++--
pom.xml | 8 ++++----
proto-google-cloud-dataproc-v1/pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 6 +++---
7 files changed, 18 insertions(+), 18 deletions(-)
diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml
index 3b6e9574..43f5e6d1 100644
--- a/google-cloud-dataproc-bom/pom.xml
+++ b/google-cloud-dataproc-bom/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
google-cloud-dataproc-bom
- 4.0.4
+ 4.0.5-SNAPSHOT
pom
com.google.cloud
@@ -52,17 +52,17 @@
com.google.cloud
google-cloud-dataproc
- 4.0.4
+ 4.0.5-SNAPSHOT
com.google.api.grpc
grpc-google-cloud-dataproc-v1
- 4.0.4
+ 4.0.5-SNAPSHOT
com.google.api.grpc
proto-google-cloud-dataproc-v1
- 4.0.4
+ 4.0.5-SNAPSHOT
diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml
index 47bdb7a1..6312fbf0 100644
--- a/google-cloud-dataproc/pom.xml
+++ b/google-cloud-dataproc/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
google-cloud-dataproc
- 4.0.4
+ 4.0.5-SNAPSHOT
jar
Google Cloud Dataproc
https://github.com/googleapis/java-dataproc
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-dataproc-parent
- 4.0.4
+ 4.0.5-SNAPSHOT
google-cloud-dataproc
diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml
index f6818549..91c37d29 100644
--- a/grpc-google-cloud-dataproc-v1/pom.xml
+++ b/grpc-google-cloud-dataproc-v1/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
grpc-google-cloud-dataproc-v1
- 4.0.4
+ 4.0.5-SNAPSHOT
grpc-google-cloud-dataproc-v1
GRPC library for grpc-google-cloud-dataproc-v1
com.google.cloud
google-cloud-dataproc-parent
- 4.0.4
+ 4.0.5-SNAPSHOT
diff --git a/pom.xml b/pom.xml
index 7fc2ea9d..e985bfe0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-dataproc-parent
pom
- 4.0.4
+ 4.0.5-SNAPSHOT
Google Cloud Dataproc Parent
https://github.com/googleapis/java-dataproc
@@ -61,17 +61,17 @@
com.google.api.grpc
proto-google-cloud-dataproc-v1
- 4.0.4
+ 4.0.5-SNAPSHOT
com.google.api.grpc
grpc-google-cloud-dataproc-v1
- 4.0.4
+ 4.0.5-SNAPSHOT
com.google.cloud
google-cloud-dataproc
- 4.0.4
+ 4.0.5-SNAPSHOT
diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml
index 4cd33d86..0b362ac4 100644
--- a/proto-google-cloud-dataproc-v1/pom.xml
+++ b/proto-google-cloud-dataproc-v1/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
proto-google-cloud-dataproc-v1
- 4.0.4
+ 4.0.5-SNAPSHOT
proto-google-cloud-dataproc-v1
PROTO library for proto-google-cloud-dataproc-v1
com.google.cloud
google-cloud-dataproc-parent
- 4.0.4
+ 4.0.5-SNAPSHOT
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 4c8b1220..69bd0368 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -28,7 +28,7 @@
com.google.cloud
google-cloud-dataproc
- 4.0.4
+ 4.0.5-SNAPSHOT
diff --git a/versions.txt b/versions.txt
index deaac26a..282e7281 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,6 +1,6 @@
# Format:
# module:released-version:current-version
-google-cloud-dataproc:4.0.4:4.0.4
-grpc-google-cloud-dataproc-v1:4.0.4:4.0.4
-proto-google-cloud-dataproc-v1:4.0.4:4.0.4
+google-cloud-dataproc:4.0.4:4.0.5-SNAPSHOT
+grpc-google-cloud-dataproc-v1:4.0.4:4.0.5-SNAPSHOT
+proto-google-cloud-dataproc-v1:4.0.4:4.0.5-SNAPSHOT
From e31d011a728de60dd4f10729a76b894397faf012 Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Fri, 16 Sep 2022 15:24:17 +0000
Subject: [PATCH 6/6] chore(main): release 4.0.5 (#917)
:robot: I have created a release *beep* *boop*
---
## [4.0.5](https://github.com/googleapis/java-dataproc/compare/v4.0.4...v4.0.5) (2022-09-16)
### Dependencies
* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.3 ([#915](https://github.com/googleapis/java-dataproc/issues/915)) ([60c1eeb](https://github.com/googleapis/java-dataproc/commit/60c1eeb4797ec497abade6525074469069700388))
---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
---
CHANGELOG.md | 7 +++++++
google-cloud-dataproc-bom/pom.xml | 8 ++++----
google-cloud-dataproc/pom.xml | 4 ++--
grpc-google-cloud-dataproc-v1/pom.xml | 4 ++--
pom.xml | 8 ++++----
proto-google-cloud-dataproc-v1/pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 6 +++---
8 files changed, 25 insertions(+), 18 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4ed4d744..a9602bb2 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,12 @@
# Changelog
+## [4.0.5](https://github.com/googleapis/java-dataproc/compare/v4.0.4...v4.0.5) (2022-09-16)
+
+
+### Dependencies
+
+* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.3 ([#915](https://github.com/googleapis/java-dataproc/issues/915)) ([60c1eeb](https://github.com/googleapis/java-dataproc/commit/60c1eeb4797ec497abade6525074469069700388))
+
## [4.0.4](https://github.com/googleapis/java-dataproc/compare/v4.0.3...v4.0.4) (2022-09-09)
diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml
index 43f5e6d1..7d6321e8 100644
--- a/google-cloud-dataproc-bom/pom.xml
+++ b/google-cloud-dataproc-bom/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
google-cloud-dataproc-bom
- 4.0.5-SNAPSHOT
+ 4.0.5
pom
com.google.cloud
@@ -52,17 +52,17 @@
com.google.cloud
google-cloud-dataproc
- 4.0.5-SNAPSHOT
+ 4.0.5
com.google.api.grpc
grpc-google-cloud-dataproc-v1
- 4.0.5-SNAPSHOT
+ 4.0.5
com.google.api.grpc
proto-google-cloud-dataproc-v1
- 4.0.5-SNAPSHOT
+ 4.0.5
diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml
index 6312fbf0..15423c67 100644
--- a/google-cloud-dataproc/pom.xml
+++ b/google-cloud-dataproc/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
google-cloud-dataproc
- 4.0.5-SNAPSHOT
+ 4.0.5
jar
Google Cloud Dataproc
https://github.com/googleapis/java-dataproc
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-dataproc-parent
- 4.0.5-SNAPSHOT
+ 4.0.5
google-cloud-dataproc
diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml
index 91c37d29..0a989f4b 100644
--- a/grpc-google-cloud-dataproc-v1/pom.xml
+++ b/grpc-google-cloud-dataproc-v1/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
grpc-google-cloud-dataproc-v1
- 4.0.5-SNAPSHOT
+ 4.0.5
grpc-google-cloud-dataproc-v1
GRPC library for grpc-google-cloud-dataproc-v1
com.google.cloud
google-cloud-dataproc-parent
- 4.0.5-SNAPSHOT
+ 4.0.5
diff --git a/pom.xml b/pom.xml
index e985bfe0..050c8afe 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-dataproc-parent
pom
- 4.0.5-SNAPSHOT
+ 4.0.5
Google Cloud Dataproc Parent
https://github.com/googleapis/java-dataproc
@@ -61,17 +61,17 @@
com.google.api.grpc
proto-google-cloud-dataproc-v1
- 4.0.5-SNAPSHOT
+ 4.0.5
com.google.api.grpc
grpc-google-cloud-dataproc-v1
- 4.0.5-SNAPSHOT
+ 4.0.5
com.google.cloud
google-cloud-dataproc
- 4.0.5-SNAPSHOT
+ 4.0.5
diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml
index 0b362ac4..787f5e13 100644
--- a/proto-google-cloud-dataproc-v1/pom.xml
+++ b/proto-google-cloud-dataproc-v1/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
proto-google-cloud-dataproc-v1
- 4.0.5-SNAPSHOT
+ 4.0.5
proto-google-cloud-dataproc-v1
PROTO library for proto-google-cloud-dataproc-v1
com.google.cloud
google-cloud-dataproc-parent
- 4.0.5-SNAPSHOT
+ 4.0.5
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 69bd0368..2970a126 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -28,7 +28,7 @@
com.google.cloud
google-cloud-dataproc
- 4.0.5-SNAPSHOT
+ 4.0.5
diff --git a/versions.txt b/versions.txt
index 282e7281..692f6560 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,6 +1,6 @@
# Format:
# module:released-version:current-version
-google-cloud-dataproc:4.0.4:4.0.5-SNAPSHOT
-grpc-google-cloud-dataproc-v1:4.0.4:4.0.5-SNAPSHOT
-proto-google-cloud-dataproc-v1:4.0.4:4.0.5-SNAPSHOT
+google-cloud-dataproc:4.0.5:4.0.5
+grpc-google-cloud-dataproc-v1:4.0.5:4.0.5
+proto-google-cloud-dataproc-v1:4.0.5:4.0.5