diff --git a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/FlexTemplatesServiceClient.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/FlexTemplatesServiceClient.java index f72b18f03fdc..3ce5dae05d10 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/FlexTemplatesServiceClient.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/FlexTemplatesServiceClient.java @@ -33,8 +33,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 (FlexTemplatesServiceClient flexTemplatesServiceClient = * FlexTemplatesServiceClient.create()) { * LaunchFlexTemplateRequest request = @@ -78,8 +81,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 * FlexTemplatesServiceSettings flexTemplatesServiceSettings = * FlexTemplatesServiceSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -91,8 +97,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 * FlexTemplatesServiceSettings flexTemplatesServiceSettings = * FlexTemplatesServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); * FlexTemplatesServiceClient flexTemplatesServiceClient = @@ -103,8 +112,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 * FlexTemplatesServiceSettings flexTemplatesServiceSettings = * FlexTemplatesServiceSettings.newBuilder() * .setTransportChannelProvider( @@ -174,8 +186,11 @@ public FlexTemplatesServiceStub 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 (FlexTemplatesServiceClient flexTemplatesServiceClient = * FlexTemplatesServiceClient.create()) { * LaunchFlexTemplateRequest request = @@ -203,8 +218,11 @@ public final LaunchFlexTemplateResponse launchFlexTemplate(LaunchFlexTemplateReq *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FlexTemplatesServiceClient flexTemplatesServiceClient = * FlexTemplatesServiceClient.create()) { * LaunchFlexTemplateRequest request = diff --git a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/FlexTemplatesServiceSettings.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/FlexTemplatesServiceSettings.java index b2ca423f4564..9cef76ee8069 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/FlexTemplatesServiceSettings.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/FlexTemplatesServiceSettings.java @@ -50,8 +50,11 @@ *For example, to set the total timeout of launchFlexTemplate 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 * FlexTemplatesServiceSettings.Builder flexTemplatesServiceSettingsBuilder = * FlexTemplatesServiceSettings.newBuilder(); * flexTemplatesServiceSettingsBuilder diff --git a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/JobsV1Beta3Client.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/JobsV1Beta3Client.java index 9f68f185aa60..d90ee613e839 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/JobsV1Beta3Client.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/JobsV1Beta3Client.java @@ -42,8 +42,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 (JobsV1Beta3Client jobsV1Beta3Client = JobsV1Beta3Client.create()) { * CreateJobRequest request = * CreateJobRequest.newBuilder() @@ -86,8 +89,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 * JobsV1Beta3Settings jobsV1Beta3Settings = * JobsV1Beta3Settings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -98,8 +104,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 * JobsV1Beta3Settings jobsV1Beta3Settings = * JobsV1Beta3Settings.newBuilder().setEndpoint(myEndpoint).build(); * JobsV1Beta3Client jobsV1Beta3Client = JobsV1Beta3Client.create(jobsV1Beta3Settings); @@ -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 * JobsV1Beta3Settings jobsV1Beta3Settings = * JobsV1Beta3Settings.newBuilder() * .setTransportChannelProvider( @@ -182,8 +194,11 @@ public JobsV1Beta3Stub 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 (JobsV1Beta3Client jobsV1Beta3Client = JobsV1Beta3Client.create()) { * CreateJobRequest request = * CreateJobRequest.newBuilder() @@ -215,8 +230,11 @@ public final Job createJob(CreateJobRequest 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 (JobsV1Beta3Client jobsV1Beta3Client = JobsV1Beta3Client.create()) { * CreateJobRequest request = * CreateJobRequest.newBuilder() @@ -248,8 +266,11 @@ public final UnaryCallablecreateJobCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobsV1Beta3Client jobsV1Beta3Client = JobsV1Beta3Client.create()) { * GetJobRequest request = * GetJobRequest.newBuilder() @@ -281,8 +302,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 (JobsV1Beta3Client jobsV1Beta3Client = JobsV1Beta3Client.create()) { * GetJobRequest request = * GetJobRequest.newBuilder() @@ -314,8 +338,11 @@ public final UnaryCallablegetJobCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobsV1Beta3Client jobsV1Beta3Client = JobsV1Beta3Client.create()) { * UpdateJobRequest request = * UpdateJobRequest.newBuilder() @@ -348,8 +375,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 (JobsV1Beta3Client jobsV1Beta3Client = JobsV1Beta3Client.create()) { * UpdateJobRequest request = * UpdateJobRequest.newBuilder() @@ -381,8 +411,11 @@ public final UnaryCallableupdateJobCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobsV1Beta3Client jobsV1Beta3Client = JobsV1Beta3Client.create()) { * ListJobsRequest request = * ListJobsRequest.newBuilder() @@ -418,8 +451,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 (JobsV1Beta3Client jobsV1Beta3Client = JobsV1Beta3Client.create()) { * ListJobsRequest request = * ListJobsRequest.newBuilder() @@ -454,8 +490,11 @@ public final UnaryCallablelistJobsPaged * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobsV1Beta3Client jobsV1Beta3Client = JobsV1Beta3Client.create()) { * ListJobsRequest request = * ListJobsRequest.newBuilder() @@ -491,8 +530,11 @@ public final UnaryCallablelistJobsCallable() * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobsV1Beta3Client jobsV1Beta3Client = JobsV1Beta3Client.create()) { * ListJobsRequest request = * ListJobsRequest.newBuilder() @@ -522,8 +564,11 @@ public final AggregatedListJobsPagedResponse aggregatedListJobs(ListJobsRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobsV1Beta3Client jobsV1Beta3Client = JobsV1Beta3Client.create()) { * ListJobsRequest request = * ListJobsRequest.newBuilder() @@ -554,8 +599,11 @@ public final AggregatedListJobsPagedResponse aggregatedListJobs(ListJobsRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobsV1Beta3Client jobsV1Beta3Client = JobsV1Beta3Client.create()) { * ListJobsRequest request = * ListJobsRequest.newBuilder() @@ -591,8 +639,11 @@ public final UnaryCallableaggregatedListJobs * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobsV1Beta3Client jobsV1Beta3Client = JobsV1Beta3Client.create()) { * CheckActiveJobsRequest request = * CheckActiveJobsRequest.newBuilder().setProjectId("projectId-894832108").build(); @@ -614,8 +665,11 @@ public final CheckActiveJobsResponse checkActiveJobs(CheckActiveJobsRequest requ *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobsV1Beta3Client jobsV1Beta3Client = JobsV1Beta3Client.create()) { * CheckActiveJobsRequest request = * CheckActiveJobsRequest.newBuilder().setProjectId("projectId-894832108").build(); @@ -638,8 +692,11 @@ public final CheckActiveJobsResponse checkActiveJobs(CheckActiveJobsRequest requ *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobsV1Beta3Client jobsV1Beta3Client = JobsV1Beta3Client.create()) { * SnapshotJobRequest request = * SnapshotJobRequest.newBuilder() @@ -668,8 +725,11 @@ public final Snapshot snapshotJob(SnapshotJobRequest 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 (JobsV1Beta3Client jobsV1Beta3Client = JobsV1Beta3Client.create()) { * SnapshotJobRequest request = * SnapshotJobRequest.newBuilder() diff --git a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/JobsV1Beta3Settings.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/JobsV1Beta3Settings.java index 446021d6d028..83889491c9f0 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/JobsV1Beta3Settings.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/JobsV1Beta3Settings.java @@ -54,16 +54,16 @@ *For example, to set the total timeout of createJob 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 * JobsV1Beta3Settings.Builder jobsV1Beta3SettingsBuilder = JobsV1Beta3Settings.newBuilder(); * jobsV1Beta3SettingsBuilder * .createJobSettings() * .setRetrySettings( - * jobsV1Beta3SettingsBuilder - * .createJobSettings() - * .getRetrySettings() - * .toBuilder() + * jobsV1Beta3SettingsBuilder.createJobSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * JobsV1Beta3Settings jobsV1Beta3Settings = jobsV1Beta3SettingsBuilder.build(); diff --git a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/MessagesV1Beta3Client.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/MessagesV1Beta3Client.java index b5731c909a15..5d36aafacc73 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/MessagesV1Beta3Client.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/MessagesV1Beta3Client.java @@ -42,8 +42,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 (MessagesV1Beta3Client messagesV1Beta3Client = MessagesV1Beta3Client.create()) { * ListJobMessagesRequest request = * ListJobMessagesRequest.newBuilder() @@ -92,8 +95,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 * MessagesV1Beta3Settings messagesV1Beta3Settings = * MessagesV1Beta3Settings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -105,8 +111,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 * MessagesV1Beta3Settings messagesV1Beta3Settings = * MessagesV1Beta3Settings.newBuilder().setEndpoint(myEndpoint).build(); * MessagesV1Beta3Client messagesV1Beta3Client = @@ -117,8 +126,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 * MessagesV1Beta3Settings messagesV1Beta3Settings = * MessagesV1Beta3Settings.newBuilder() * .setTransportChannelProvider( @@ -194,8 +206,11 @@ public MessagesV1Beta3Stub 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 (MessagesV1Beta3Client messagesV1Beta3Client = MessagesV1Beta3Client.create()) { * ListJobMessagesRequest request = * ListJobMessagesRequest.newBuilder() @@ -234,8 +249,11 @@ public final ListJobMessagesPagedResponse listJobMessages(ListJobMessagesRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagesV1Beta3Client messagesV1Beta3Client = MessagesV1Beta3Client.create()) { * ListJobMessagesRequest request = * ListJobMessagesRequest.newBuilder() @@ -275,8 +293,11 @@ public final ListJobMessagesPagedResponse listJobMessages(ListJobMessagesRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagesV1Beta3Client messagesV1Beta3Client = MessagesV1Beta3Client.create()) { * ListJobMessagesRequest request = * ListJobMessagesRequest.newBuilder() diff --git a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/MessagesV1Beta3Settings.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/MessagesV1Beta3Settings.java index 12e0c7794a97..039ce8b329ed 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/MessagesV1Beta3Settings.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/MessagesV1Beta3Settings.java @@ -53,17 +53,17 @@ *For example, to set the total timeout of listJobMessages 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 * MessagesV1Beta3Settings.Builder messagesV1Beta3SettingsBuilder = * MessagesV1Beta3Settings.newBuilder(); * messagesV1Beta3SettingsBuilder * .listJobMessagesSettings() * .setRetrySettings( - * messagesV1Beta3SettingsBuilder - * .listJobMessagesSettings() - * .getRetrySettings() - * .toBuilder() + * messagesV1Beta3SettingsBuilder.listJobMessagesSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * MessagesV1Beta3Settings messagesV1Beta3Settings = messagesV1Beta3SettingsBuilder.build(); diff --git a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/MetricsV1Beta3Client.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/MetricsV1Beta3Client.java index dd56120e4d5e..8c0ef99bb29e 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/MetricsV1Beta3Client.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/MetricsV1Beta3Client.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 (MetricsV1Beta3Client metricsV1Beta3Client = MetricsV1Beta3Client.create()) { * GetJobMetricsRequest request = * GetJobMetricsRequest.newBuilder() @@ -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 * MetricsV1Beta3Settings metricsV1Beta3Settings = * MetricsV1Beta3Settings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -96,8 +102,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 * MetricsV1Beta3Settings metricsV1Beta3Settings = * MetricsV1Beta3Settings.newBuilder().setEndpoint(myEndpoint).build(); * MetricsV1Beta3Client metricsV1Beta3Client = MetricsV1Beta3Client.create(metricsV1Beta3Settings); @@ -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 * MetricsV1Beta3Settings metricsV1Beta3Settings = * MetricsV1Beta3Settings.newBuilder() * .setTransportChannelProvider( @@ -182,8 +194,11 @@ public MetricsV1Beta3Stub 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 (MetricsV1Beta3Client metricsV1Beta3Client = MetricsV1Beta3Client.create()) { * GetJobMetricsRequest request = * GetJobMetricsRequest.newBuilder() @@ -215,8 +230,11 @@ public final JobMetrics getJobMetrics(GetJobMetricsRequest 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 (MetricsV1Beta3Client metricsV1Beta3Client = MetricsV1Beta3Client.create()) { * GetJobMetricsRequest request = * GetJobMetricsRequest.newBuilder() @@ -245,8 +263,11 @@ public final UnaryCallablegetJobMetricsCallab * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MetricsV1Beta3Client metricsV1Beta3Client = MetricsV1Beta3Client.create()) { * GetJobExecutionDetailsRequest request = * GetJobExecutionDetailsRequest.newBuilder() @@ -280,8 +301,11 @@ public final GetJobExecutionDetailsPagedResponse getJobExecutionDetails( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MetricsV1Beta3Client metricsV1Beta3Client = MetricsV1Beta3Client.create()) { * GetJobExecutionDetailsRequest request = * GetJobExecutionDetailsRequest.newBuilder() @@ -314,8 +338,11 @@ public final GetJobExecutionDetailsPagedResponse getJobExecutionDetails( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MetricsV1Beta3Client metricsV1Beta3Client = MetricsV1Beta3Client.create()) { * GetJobExecutionDetailsRequest request = * GetJobExecutionDetailsRequest.newBuilder() @@ -355,8 +382,11 @@ public final GetJobExecutionDetailsPagedResponse getJobExecutionDetails( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MetricsV1Beta3Client metricsV1Beta3Client = MetricsV1Beta3Client.create()) { * GetStageExecutionDetailsRequest request = * GetStageExecutionDetailsRequest.newBuilder() @@ -393,8 +423,11 @@ public final GetStageExecutionDetailsPagedResponse getStageExecutionDetails( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MetricsV1Beta3Client metricsV1Beta3Client = MetricsV1Beta3Client.create()) { * GetStageExecutionDetailsRequest request = * GetStageExecutionDetailsRequest.newBuilder() @@ -430,8 +463,11 @@ public final GetStageExecutionDetailsPagedResponse getStageExecutionDetails( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MetricsV1Beta3Client metricsV1Beta3Client = MetricsV1Beta3Client.create()) { * GetStageExecutionDetailsRequest request = * GetStageExecutionDetailsRequest.newBuilder() diff --git a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/MetricsV1Beta3Settings.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/MetricsV1Beta3Settings.java index b77b2e120a55..7c4ab4a00642 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/MetricsV1Beta3Settings.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/MetricsV1Beta3Settings.java @@ -54,17 +54,17 @@ *For example, to set the total timeout of getJobMetrics 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 * MetricsV1Beta3Settings.Builder metricsV1Beta3SettingsBuilder = * MetricsV1Beta3Settings.newBuilder(); * metricsV1Beta3SettingsBuilder * .getJobMetricsSettings() * .setRetrySettings( - * metricsV1Beta3SettingsBuilder - * .getJobMetricsSettings() - * .getRetrySettings() - * .toBuilder() + * metricsV1Beta3SettingsBuilder.getJobMetricsSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * MetricsV1Beta3Settings metricsV1Beta3Settings = metricsV1Beta3SettingsBuilder.build(); diff --git a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/SnapshotsV1Beta3Client.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/SnapshotsV1Beta3Client.java index a53a4375aff4..60abf7fa3c1e 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/SnapshotsV1Beta3Client.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/SnapshotsV1Beta3Client.java @@ -33,8 +33,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 (SnapshotsV1Beta3Client snapshotsV1Beta3Client = SnapshotsV1Beta3Client.create()) { * GetSnapshotRequest request = * GetSnapshotRequest.newBuilder() @@ -76,8 +79,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 * SnapshotsV1Beta3Settings snapshotsV1Beta3Settings = * SnapshotsV1Beta3Settings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -89,8 +95,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 * SnapshotsV1Beta3Settings snapshotsV1Beta3Settings = * SnapshotsV1Beta3Settings.newBuilder().setEndpoint(myEndpoint).build(); * SnapshotsV1Beta3Client snapshotsV1Beta3Client = @@ -101,8 +110,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 * SnapshotsV1Beta3Settings snapshotsV1Beta3Settings = * SnapshotsV1Beta3Settings.newBuilder() * .setTransportChannelProvider( @@ -172,8 +184,11 @@ public SnapshotsV1Beta3Stub 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 (SnapshotsV1Beta3Client snapshotsV1Beta3Client = SnapshotsV1Beta3Client.create()) { * GetSnapshotRequest request = * GetSnapshotRequest.newBuilder() @@ -199,8 +214,11 @@ public final Snapshot getSnapshot(GetSnapshotRequest 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 (SnapshotsV1Beta3Client snapshotsV1Beta3Client = SnapshotsV1Beta3Client.create()) { * GetSnapshotRequest request = * GetSnapshotRequest.newBuilder() @@ -225,8 +243,11 @@ public final UnaryCallablegetSnapshotCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (SnapshotsV1Beta3Client snapshotsV1Beta3Client = SnapshotsV1Beta3Client.create()) { * DeleteSnapshotRequest request = * DeleteSnapshotRequest.newBuilder() @@ -252,8 +273,11 @@ public final DeleteSnapshotResponse deleteSnapshot(DeleteSnapshotRequest 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 (SnapshotsV1Beta3Client snapshotsV1Beta3Client = SnapshotsV1Beta3Client.create()) { * DeleteSnapshotRequest request = * DeleteSnapshotRequest.newBuilder() @@ -280,8 +304,11 @@ public final DeleteSnapshotResponse deleteSnapshot(DeleteSnapshotRequest 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 (SnapshotsV1Beta3Client snapshotsV1Beta3Client = SnapshotsV1Beta3Client.create()) { * ListSnapshotsRequest request = * ListSnapshotsRequest.newBuilder() @@ -307,8 +334,11 @@ public final ListSnapshotsResponse listSnapshots(ListSnapshotsRequest 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 (SnapshotsV1Beta3Client snapshotsV1Beta3Client = SnapshotsV1Beta3Client.create()) { * ListSnapshotsRequest request = * ListSnapshotsRequest.newBuilder() diff --git a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/SnapshotsV1Beta3Settings.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/SnapshotsV1Beta3Settings.java index c9227927f954..0d701aabeb67 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/SnapshotsV1Beta3Settings.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/SnapshotsV1Beta3Settings.java @@ -50,17 +50,17 @@ *For example, to set the total timeout of getSnapshot 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 * SnapshotsV1Beta3Settings.Builder snapshotsV1Beta3SettingsBuilder = * SnapshotsV1Beta3Settings.newBuilder(); * snapshotsV1Beta3SettingsBuilder * .getSnapshotSettings() * .setRetrySettings( - * snapshotsV1Beta3SettingsBuilder - * .getSnapshotSettings() - * .getRetrySettings() - * .toBuilder() + * snapshotsV1Beta3SettingsBuilder.getSnapshotSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * SnapshotsV1Beta3Settings snapshotsV1Beta3Settings = snapshotsV1Beta3SettingsBuilder.build(); diff --git a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/TemplatesServiceClient.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/TemplatesServiceClient.java index f2cc11aeb3a6..28172b532d4c 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/TemplatesServiceClient.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/TemplatesServiceClient.java @@ -33,8 +33,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 (TemplatesServiceClient templatesServiceClient = TemplatesServiceClient.create()) { * CreateJobFromTemplateRequest request = * CreateJobFromTemplateRequest.newBuilder() @@ -78,8 +81,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 * TemplatesServiceSettings templatesServiceSettings = * TemplatesServiceSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -91,8 +97,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 * TemplatesServiceSettings templatesServiceSettings = * TemplatesServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); * TemplatesServiceClient templatesServiceClient = @@ -103,8 +112,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 * TemplatesServiceSettings templatesServiceSettings = * TemplatesServiceSettings.newBuilder() * .setTransportChannelProvider( @@ -174,8 +186,11 @@ public TemplatesServiceStub 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 (TemplatesServiceClient templatesServiceClient = TemplatesServiceClient.create()) { * CreateJobFromTemplateRequest request = * CreateJobFromTemplateRequest.newBuilder() @@ -203,8 +218,11 @@ public final Job createJobFromTemplate(CreateJobFromTemplateRequest 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 (TemplatesServiceClient templatesServiceClient = TemplatesServiceClient.create()) { * CreateJobFromTemplateRequest request = * CreateJobFromTemplateRequest.newBuilder() @@ -232,8 +250,11 @@ public final UnaryCallablecreateJobFromTempl * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (TemplatesServiceClient templatesServiceClient = TemplatesServiceClient.create()) { * LaunchTemplateRequest request = * LaunchTemplateRequest.newBuilder() @@ -260,8 +281,11 @@ public final LaunchTemplateResponse launchTemplate(LaunchTemplateRequest 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 (TemplatesServiceClient templatesServiceClient = TemplatesServiceClient.create()) { * LaunchTemplateRequest request = * LaunchTemplateRequest.newBuilder() @@ -289,8 +313,11 @@ public final LaunchTemplateResponse launchTemplate(LaunchTemplateRequest 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 (TemplatesServiceClient templatesServiceClient = TemplatesServiceClient.create()) { * GetTemplateRequest request = * GetTemplateRequest.newBuilder() @@ -315,8 +342,11 @@ public final GetTemplateResponse getTemplate(GetTemplateRequest 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 (TemplatesServiceClient templatesServiceClient = TemplatesServiceClient.create()) { * GetTemplateRequest request = * GetTemplateRequest.newBuilder() diff --git a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/TemplatesServiceSettings.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/TemplatesServiceSettings.java index 709d3a8a7350..4ee289f1fd9c 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/TemplatesServiceSettings.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/TemplatesServiceSettings.java @@ -50,8 +50,11 @@ *For example, to set the total timeout of createJobFromTemplate 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 * TemplatesServiceSettings.Builder templatesServiceSettingsBuilder = * TemplatesServiceSettings.newBuilder(); * templatesServiceSettingsBuilder diff --git a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/package-info.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/package-info.java index 77d6ff772cdc..ebd16c9f176e 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/package-info.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/package-info.java @@ -27,8 +27,11 @@ *Sample for JobsV1Beta3Client: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobsV1Beta3Client jobsV1Beta3Client = JobsV1Beta3Client.create()) { * CreateJobRequest request = * CreateJobRequest.newBuilder() @@ -50,8 +53,11 @@ *Sample for MessagesV1Beta3Client: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MessagesV1Beta3Client messagesV1Beta3Client = MessagesV1Beta3Client.create()) { * ListJobMessagesRequest request = * ListJobMessagesRequest.newBuilder() @@ -77,8 +83,11 @@ *Sample for MetricsV1Beta3Client: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MetricsV1Beta3Client metricsV1Beta3Client = MetricsV1Beta3Client.create()) { * GetJobMetricsRequest request = * GetJobMetricsRequest.newBuilder() @@ -98,8 +107,11 @@ *Sample for SnapshotsV1Beta3Client: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (SnapshotsV1Beta3Client snapshotsV1Beta3Client = SnapshotsV1Beta3Client.create()) { * GetSnapshotRequest request = * GetSnapshotRequest.newBuilder() @@ -118,8 +130,11 @@ *Sample for TemplatesServiceClient: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (TemplatesServiceClient templatesServiceClient = TemplatesServiceClient.create()) { * CreateJobFromTemplateRequest request = * CreateJobFromTemplateRequest.newBuilder() @@ -140,8 +155,11 @@ *Sample for FlexTemplatesServiceClient: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (FlexTemplatesServiceClient flexTemplatesServiceClient = * FlexTemplatesServiceClient.create()) { * LaunchFlexTemplateRequest request = diff --git a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/FlexTemplatesServiceStubSettings.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/FlexTemplatesServiceStubSettings.java index 97e06d9114f1..8769ed53e914 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/FlexTemplatesServiceStubSettings.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/FlexTemplatesServiceStubSettings.java @@ -62,8 +62,11 @@ *For example, to set the total timeout of launchFlexTemplate 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 * FlexTemplatesServiceStubSettings.Builder flexTemplatesServiceSettingsBuilder = * FlexTemplatesServiceStubSettings.newBuilder(); * flexTemplatesServiceSettingsBuilder diff --git a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/HttpJsonFlexTemplatesServiceStub.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/HttpJsonFlexTemplatesServiceStub.java index 9ee342c5ae10..2f2776bd0f81 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/HttpJsonFlexTemplatesServiceStub.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/HttpJsonFlexTemplatesServiceStub.java @@ -80,7 +80,8 @@ public class HttpJsonFlexTemplatesServiceStub extends FlexTemplatesServiceStub { ProtoRestSerializer.create() .toBody( "*", - request.toBuilder().clearLocation().clearProjectId().build())) + request.toBuilder().clearLocation().clearProjectId().build(), + false)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() diff --git a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/HttpJsonJobsV1Beta3Stub.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/HttpJsonJobsV1Beta3Stub.java index 639622ee621f..8a7098004649 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/HttpJsonJobsV1Beta3Stub.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/HttpJsonJobsV1Beta3Stub.java @@ -87,7 +87,8 @@ public class HttpJsonJobsV1Beta3Stub extends JobsV1Beta3Stub { return fields; }) .setRequestBodyExtractor( - request -> ProtoRestSerializer.create().toBody("job", request.getJob())) + request -> + ProtoRestSerializer.create().toBody("job", request.getJob(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -159,7 +160,8 @@ public class HttpJsonJobsV1Beta3Stub extends JobsV1Beta3Stub { return fields; }) .setRequestBodyExtractor( - request -> ProtoRestSerializer.create().toBody("job", request.getJob())) + request -> + ProtoRestSerializer.create().toBody("job", request.getJob(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -282,7 +284,8 @@ public class HttpJsonJobsV1Beta3Stub extends JobsV1Beta3Stub { .clearJobId() .clearLocation() .clearProjectId() - .build())) + .build(), + false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() diff --git a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/HttpJsonTemplatesServiceStub.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/HttpJsonTemplatesServiceStub.java index c76e921786fb..8fc02fe1d636 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/HttpJsonTemplatesServiceStub.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/HttpJsonTemplatesServiceStub.java @@ -85,7 +85,8 @@ public class HttpJsonTemplatesServiceStub extends TemplatesServiceStub { ProtoRestSerializer.create() .toBody( "*", - request.toBuilder().clearLocation().clearProjectId().build())) + request.toBuilder().clearLocation().clearProjectId().build(), + false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -128,7 +129,7 @@ public class HttpJsonTemplatesServiceStub extends TemplatesServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("launchParameters", request.getLaunchParameters())) + .toBody("launchParameters", request.getLaunchParameters(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() diff --git a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/JobsV1Beta3StubSettings.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/JobsV1Beta3StubSettings.java index 298a2e1abcfc..030d80d75ca9 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/JobsV1Beta3StubSettings.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/JobsV1Beta3StubSettings.java @@ -81,17 +81,17 @@ * For example, to set the total timeout of createJob 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 * JobsV1Beta3StubSettings.Builder jobsV1Beta3SettingsBuilder = * JobsV1Beta3StubSettings.newBuilder(); * jobsV1Beta3SettingsBuilder * .createJobSettings() * .setRetrySettings( - * jobsV1Beta3SettingsBuilder - * .createJobSettings() - * .getRetrySettings() - * .toBuilder() + * jobsV1Beta3SettingsBuilder.createJobSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * JobsV1Beta3StubSettings jobsV1Beta3Settings = jobsV1Beta3SettingsBuilder.build(); diff --git a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/MessagesV1Beta3StubSettings.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/MessagesV1Beta3StubSettings.java index e9b535d91c5f..9d814749435d 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/MessagesV1Beta3StubSettings.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/MessagesV1Beta3StubSettings.java @@ -73,17 +73,17 @@ *For example, to set the total timeout of listJobMessages 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 * MessagesV1Beta3StubSettings.Builder messagesV1Beta3SettingsBuilder = * MessagesV1Beta3StubSettings.newBuilder(); * messagesV1Beta3SettingsBuilder * .listJobMessagesSettings() * .setRetrySettings( - * messagesV1Beta3SettingsBuilder - * .listJobMessagesSettings() - * .getRetrySettings() - * .toBuilder() + * messagesV1Beta3SettingsBuilder.listJobMessagesSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * MessagesV1Beta3StubSettings messagesV1Beta3Settings = messagesV1Beta3SettingsBuilder.build(); diff --git a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/MetricsV1Beta3StubSettings.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/MetricsV1Beta3StubSettings.java index 8692fbb124ee..c827fd34b4de 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/MetricsV1Beta3StubSettings.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/MetricsV1Beta3StubSettings.java @@ -79,17 +79,17 @@ *For example, to set the total timeout of getJobMetrics 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 * MetricsV1Beta3StubSettings.Builder metricsV1Beta3SettingsBuilder = * MetricsV1Beta3StubSettings.newBuilder(); * metricsV1Beta3SettingsBuilder * .getJobMetricsSettings() * .setRetrySettings( - * metricsV1Beta3SettingsBuilder - * .getJobMetricsSettings() - * .getRetrySettings() - * .toBuilder() + * metricsV1Beta3SettingsBuilder.getJobMetricsSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * MetricsV1Beta3StubSettings metricsV1Beta3Settings = metricsV1Beta3SettingsBuilder.build(); diff --git a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/SnapshotsV1Beta3StubSettings.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/SnapshotsV1Beta3StubSettings.java index 17bed099a20e..07be4d2d04ad 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/SnapshotsV1Beta3StubSettings.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/SnapshotsV1Beta3StubSettings.java @@ -67,17 +67,17 @@ *For example, to set the total timeout of getSnapshot 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 * SnapshotsV1Beta3StubSettings.Builder snapshotsV1Beta3SettingsBuilder = * SnapshotsV1Beta3StubSettings.newBuilder(); * snapshotsV1Beta3SettingsBuilder * .getSnapshotSettings() * .setRetrySettings( - * snapshotsV1Beta3SettingsBuilder - * .getSnapshotSettings() - * .getRetrySettings() - * .toBuilder() + * snapshotsV1Beta3SettingsBuilder.getSnapshotSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * SnapshotsV1Beta3StubSettings snapshotsV1Beta3Settings = snapshotsV1Beta3SettingsBuilder.build(); diff --git a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/TemplatesServiceStubSettings.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/TemplatesServiceStubSettings.java index d4fbc4a7da8b..cb8656ce2a44 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/TemplatesServiceStubSettings.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/TemplatesServiceStubSettings.java @@ -67,8 +67,11 @@ *For example, to set the total timeout of createJobFromTemplate 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 * TemplatesServiceStubSettings.Builder templatesServiceSettingsBuilder = * TemplatesServiceStubSettings.newBuilder(); * templatesServiceSettingsBuilder