diff --git a/README.md b/README.md
index 74bd748d..9f5ef181 100644
--- a/README.md
+++ b/README.md
@@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file:
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * Job job = Job.newBuilder().build(); @@ -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 * TranscoderServiceSettings transcoderServiceSettings = * TranscoderServiceSettings.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 * TranscoderServiceSettings transcoderServiceSettings = * TranscoderServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); * TranscoderServiceClient transcoderServiceClient = @@ -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 * TranscoderServiceSettings transcoderServiceSettings = * TranscoderServiceSettings.newBuilder() * .setTransportChannelProvider( @@ -179,8 +191,11 @@ public TranscoderServiceStub 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 (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * Job job = Job.newBuilder().build(); @@ -209,8 +224,11 @@ public final Job createJob(LocationName parent, 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 (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * Job job = Job.newBuilder().build(); @@ -235,8 +253,11 @@ public final Job createJob(String parent, 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 (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { * CreateJobRequest request = * CreateJobRequest.newBuilder() @@ -261,8 +282,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 (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { * CreateJobRequest request = * CreateJobRequest.newBuilder() @@ -286,8 +310,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 (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (Job element : transcoderServiceClient.listJobs(parent).iterateAll()) { @@ -312,8 +339,11 @@ public final ListJobsPagedResponse listJobs(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 (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * for (Job element : transcoderServiceClient.listJobs(parent).iterateAll()) { @@ -337,8 +367,11 @@ public final ListJobsPagedResponse listJobs(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 (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { * ListJobsRequest request = * ListJobsRequest.newBuilder() @@ -368,8 +401,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 (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { * ListJobsRequest request = * ListJobsRequest.newBuilder() @@ -398,8 +434,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 (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { * ListJobsRequest request = * ListJobsRequest.newBuilder() @@ -435,8 +474,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 (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { * JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]"); * Job response = transcoderServiceClient.getJob(name); @@ -460,8 +502,11 @@ public final Job getJob(JobName 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 (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { * String name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString(); * Job response = transcoderServiceClient.getJob(name); @@ -484,8 +529,11 @@ public final Job getJob(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 (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { * GetJobRequest request = * GetJobRequest.newBuilder() @@ -509,8 +557,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 (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { * GetJobRequest request = * GetJobRequest.newBuilder() @@ -533,8 +584,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 (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { * JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]"); * transcoderServiceClient.deleteJob(name); @@ -558,8 +612,11 @@ public final void deleteJob(JobName 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 (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { * String name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString(); * transcoderServiceClient.deleteJob(name); @@ -582,8 +639,11 @@ public final void deleteJob(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 (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { * DeleteJobRequest request = * DeleteJobRequest.newBuilder() @@ -608,8 +668,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 (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { * DeleteJobRequest request = * DeleteJobRequest.newBuilder() @@ -633,8 +696,11 @@ public final UnaryCallabledeleteJobCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * JobTemplate jobTemplate = JobTemplate.newBuilder().build(); @@ -671,8 +737,11 @@ public final JobTemplate createJobTemplate( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * JobTemplate jobTemplate = JobTemplate.newBuilder().build(); @@ -709,8 +778,11 @@ public final JobTemplate createJobTemplate( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { * CreateJobTemplateRequest request = * CreateJobTemplateRequest.newBuilder() @@ -736,8 +808,11 @@ public final JobTemplate createJobTemplate(CreateJobTemplateRequest 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 (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { * CreateJobTemplateRequest request = * CreateJobTemplateRequest.newBuilder() @@ -763,8 +838,11 @@ public final UnaryCallablecreateJobTempl * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (JobTemplate element : transcoderServiceClient.listJobTemplates(parent).iterateAll()) { @@ -792,8 +870,11 @@ public final ListJobTemplatesPagedResponse listJobTemplates(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 (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * for (JobTemplate element : transcoderServiceClient.listJobTemplates(parent).iterateAll()) { @@ -819,8 +900,11 @@ public final ListJobTemplatesPagedResponse listJobTemplates(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 (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { * ListJobTemplatesRequest request = * ListJobTemplatesRequest.newBuilder() @@ -850,8 +934,11 @@ public final ListJobTemplatesPagedResponse listJobTemplates(ListJobTemplatesRequ *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { * ListJobTemplatesRequest request = * ListJobTemplatesRequest.newBuilder() @@ -882,8 +969,11 @@ public final ListJobTemplatesPagedResponse listJobTemplates(ListJobTemplatesRequ *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { * ListJobTemplatesRequest request = * ListJobTemplatesRequest.newBuilder() @@ -921,8 +1011,11 @@ public final ListJobTemplatesPagedResponse listJobTemplates(ListJobTemplatesRequ *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { * JobTemplateName name = JobTemplateName.of("[PROJECT]", "[LOCATION]", "[JOB_TEMPLATE]"); * JobTemplate response = transcoderServiceClient.getJobTemplate(name); @@ -946,8 +1039,11 @@ public final JobTemplate getJobTemplate(JobTemplateName 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 (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { * String name = JobTemplateName.of("[PROJECT]", "[LOCATION]", "[JOB_TEMPLATE]").toString(); * JobTemplate response = transcoderServiceClient.getJobTemplate(name); @@ -970,8 +1066,11 @@ public final JobTemplate getJobTemplate(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 (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { * GetJobTemplateRequest request = * GetJobTemplateRequest.newBuilder() @@ -995,8 +1094,11 @@ public final JobTemplate getJobTemplate(GetJobTemplateRequest 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 (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { * GetJobTemplateRequest request = * GetJobTemplateRequest.newBuilder() @@ -1020,8 +1122,11 @@ public final UnaryCallablegetJobTemplateCal * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { * JobTemplateName name = JobTemplateName.of("[PROJECT]", "[LOCATION]", "[JOB_TEMPLATE]"); * transcoderServiceClient.deleteJobTemplate(name); @@ -1047,8 +1152,11 @@ public final void deleteJobTemplate(JobTemplateName 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 (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { * String name = JobTemplateName.of("[PROJECT]", "[LOCATION]", "[JOB_TEMPLATE]").toString(); * transcoderServiceClient.deleteJobTemplate(name); @@ -1071,8 +1179,11 @@ public final void deleteJobTemplate(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 (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { * DeleteJobTemplateRequest request = * DeleteJobTemplateRequest.newBuilder() @@ -1097,8 +1208,11 @@ public final void deleteJobTemplate(DeleteJobTemplateRequest 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 (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { * DeleteJobTemplateRequest request = * DeleteJobTemplateRequest.newBuilder() diff --git a/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/TranscoderServiceSettings.java b/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/TranscoderServiceSettings.java index c8946420..09b2b76f 100644 --- a/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/TranscoderServiceSettings.java +++ b/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/TranscoderServiceSettings.java @@ -55,17 +55,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 * TranscoderServiceSettings.Builder transcoderServiceSettingsBuilder = * TranscoderServiceSettings.newBuilder(); * transcoderServiceSettingsBuilder * .createJobSettings() * .setRetrySettings( - * transcoderServiceSettingsBuilder - * .createJobSettings() - * .getRetrySettings() - * .toBuilder() + * transcoderServiceSettingsBuilder.createJobSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * TranscoderServiceSettings transcoderServiceSettings = transcoderServiceSettingsBuilder.build(); diff --git a/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/package-info.java b/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/package-info.java index 0f527c44..32bd7e7d 100644 --- a/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/package-info.java +++ b/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/package-info.java @@ -28,8 +28,11 @@ *Sample for TranscoderServiceClient: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * Job job = Job.newBuilder().build(); diff --git a/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/stub/HttpJsonTranscoderServiceStub.java b/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/stub/HttpJsonTranscoderServiceStub.java index eaf61a0d..762b95bd 100644 --- a/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/stub/HttpJsonTranscoderServiceStub.java +++ b/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/stub/HttpJsonTranscoderServiceStub.java @@ -88,7 +88,8 @@ public class HttpJsonTranscoderServiceStub extends TranscoderServiceStub { return fields; }) .setRequestBodyExtractor( - request -> ProtoRestSerializer.create().toBody("job", request.getJob())) + request -> + ProtoRestSerializer.create().toBody("job", request.getJob(), false)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -229,7 +230,7 @@ public class HttpJsonTranscoderServiceStub extends TranscoderServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("jobTemplate", request.getJobTemplate())) + .toBody("jobTemplate", request.getJobTemplate(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() diff --git a/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/stub/TranscoderServiceStubSettings.java b/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/stub/TranscoderServiceStubSettings.java index 332d6a15..d91562f7 100644 --- a/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/stub/TranscoderServiceStubSettings.java +++ b/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/stub/TranscoderServiceStubSettings.java @@ -84,17 +84,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 * TranscoderServiceStubSettings.Builder transcoderServiceSettingsBuilder = * TranscoderServiceStubSettings.newBuilder(); * transcoderServiceSettingsBuilder * .createJobSettings() * .setRetrySettings( - * transcoderServiceSettingsBuilder - * .createJobSettings() - * .getRetrySettings() - * .toBuilder() + * transcoderServiceSettingsBuilder.createJobSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * TranscoderServiceStubSettings transcoderServiceSettings = diff --git a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/stub/transcoderservicestubsettings/createjob/SyncCreateJob.java b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/stub/transcoderservicestubsettings/createjob/SyncCreateJob.java index 05a6a7d4..47293007 100644 --- a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/stub/transcoderservicestubsettings/createjob/SyncCreateJob.java +++ b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/stub/transcoderservicestubsettings/createjob/SyncCreateJob.java @@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception { } public static void syncCreateJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library TranscoderServiceStubSettings.Builder transcoderServiceSettingsBuilder = TranscoderServiceStubSettings.newBuilder(); transcoderServiceSettingsBuilder .createJobSettings() .setRetrySettings( - transcoderServiceSettingsBuilder - .createJobSettings() - .getRetrySettings() - .toBuilder() + transcoderServiceSettingsBuilder.createJobSettings().getRetrySettings().toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); TranscoderServiceStubSettings transcoderServiceSettings = diff --git a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/create/SyncCreateSetCredentialsProvider.java index 6c2ccec6..2a836235 100644 --- a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/create/SyncCreateSetCredentialsProvider.java +++ b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/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 TranscoderServiceSettings transcoderServiceSettings = TranscoderServiceSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/create/SyncCreateSetCredentialsProvider1.java index 033d1fd6..7f8e031b 100644 --- a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/create/SyncCreateSetCredentialsProvider1.java +++ b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/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 TranscoderServiceSettings transcoderServiceSettings = TranscoderServiceSettings.newBuilder() .setTransportChannelProvider( diff --git a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/create/SyncCreateSetEndpoint.java index fbc5c410..eb4352f9 100644 --- a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/create/SyncCreateSetEndpoint.java +++ b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/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 TranscoderServiceSettings transcoderServiceSettings = TranscoderServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); TranscoderServiceClient transcoderServiceClient = diff --git a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/createjob/AsyncCreateJob.java b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/createjob/AsyncCreateJob.java index f3cb6f76..a0449e30 100644 --- a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/createjob/AsyncCreateJob.java +++ b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/createjob/AsyncCreateJob.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { CreateJobRequest request = CreateJobRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/createjob/SyncCreateJob.java b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/createjob/SyncCreateJob.java index 2e924224..278bc194 100644 --- a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/createjob/SyncCreateJob.java +++ b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/createjob/SyncCreateJob.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { CreateJobRequest request = CreateJobRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/createjob/SyncCreateJobLocationnameJob.java b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/createjob/SyncCreateJobLocationnameJob.java index 15f52610..9016edae 100644 --- a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/createjob/SyncCreateJobLocationnameJob.java +++ b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/createjob/SyncCreateJobLocationnameJob.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateJobLocationnameJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); Job job = Job.newBuilder().build(); diff --git a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/createjob/SyncCreateJobStringJob.java b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/createjob/SyncCreateJobStringJob.java index 86b469cc..d9d839d5 100644 --- a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/createjob/SyncCreateJobStringJob.java +++ b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/createjob/SyncCreateJobStringJob.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateJobStringJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); Job job = Job.newBuilder().build(); diff --git a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/createjobtemplate/AsyncCreateJobTemplate.java b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/createjobtemplate/AsyncCreateJobTemplate.java index 72184384..d24a859e 100644 --- a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/createjobtemplate/AsyncCreateJobTemplate.java +++ b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/createjobtemplate/AsyncCreateJobTemplate.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateJobTemplate() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { CreateJobTemplateRequest request = CreateJobTemplateRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/createjobtemplate/SyncCreateJobTemplate.java b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/createjobtemplate/SyncCreateJobTemplate.java index 5965c80e..4c9be36a 100644 --- a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/createjobtemplate/SyncCreateJobTemplate.java +++ b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/createjobtemplate/SyncCreateJobTemplate.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateJobTemplate() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { CreateJobTemplateRequest request = CreateJobTemplateRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/createjobtemplate/SyncCreateJobTemplateLocationnameJobtemplateString.java b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/createjobtemplate/SyncCreateJobTemplateLocationnameJobtemplateString.java index 79565800..aff234a1 100644 --- a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/createjobtemplate/SyncCreateJobTemplateLocationnameJobtemplateString.java +++ b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/createjobtemplate/SyncCreateJobTemplateLocationnameJobtemplateString.java @@ -16,8 +16,7 @@ package com.google.cloud.video.transcoder.v1.samples; -// [START -// transcoder_v1_generated_transcoderserviceclient_createjobtemplate_locationnamejobtemplatestring_sync] +// [START transcoder_v1_generated_transcoderserviceclient_createjobtemplate_locationnamejobtemplatestring_sync] import com.google.cloud.video.transcoder.v1.JobTemplate; import com.google.cloud.video.transcoder.v1.LocationName; import com.google.cloud.video.transcoder.v1.TranscoderServiceClient; @@ -29,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateJobTemplateLocationnameJobtemplateString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); JobTemplate jobTemplate = JobTemplate.newBuilder().build(); @@ -40,5 +42,4 @@ public static void syncCreateJobTemplateLocationnameJobtemplateString() throws E } } } -// [END -// transcoder_v1_generated_transcoderserviceclient_createjobtemplate_locationnamejobtemplatestring_sync] +// [END transcoder_v1_generated_transcoderserviceclient_createjobtemplate_locationnamejobtemplatestring_sync] diff --git a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/createjobtemplate/SyncCreateJobTemplateStringJobtemplateString.java b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/createjobtemplate/SyncCreateJobTemplateStringJobtemplateString.java index 490ac42c..534adb84 100644 --- a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/createjobtemplate/SyncCreateJobTemplateStringJobtemplateString.java +++ b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/createjobtemplate/SyncCreateJobTemplateStringJobtemplateString.java @@ -16,8 +16,7 @@ package com.google.cloud.video.transcoder.v1.samples; -// [START -// transcoder_v1_generated_transcoderserviceclient_createjobtemplate_stringjobtemplatestring_sync] +// [START transcoder_v1_generated_transcoderserviceclient_createjobtemplate_stringjobtemplatestring_sync] import com.google.cloud.video.transcoder.v1.JobTemplate; import com.google.cloud.video.transcoder.v1.LocationName; import com.google.cloud.video.transcoder.v1.TranscoderServiceClient; @@ -29,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateJobTemplateStringJobtemplateString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); JobTemplate jobTemplate = JobTemplate.newBuilder().build(); @@ -40,5 +42,4 @@ public static void syncCreateJobTemplateStringJobtemplateString() throws Excepti } } } -// [END -// transcoder_v1_generated_transcoderserviceclient_createjobtemplate_stringjobtemplatestring_sync] +// [END transcoder_v1_generated_transcoderserviceclient_createjobtemplate_stringjobtemplatestring_sync] diff --git a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/deletejob/AsyncDeleteJob.java b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/deletejob/AsyncDeleteJob.java index b8940dd9..478be060 100644 --- a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/deletejob/AsyncDeleteJob.java +++ b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/deletejob/AsyncDeleteJob.java @@ -30,8 +30,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 (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { DeleteJobRequest request = DeleteJobRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/deletejob/SyncDeleteJob.java b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/deletejob/SyncDeleteJob.java index 331c7ff1..32afdf1f 100644 --- a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/deletejob/SyncDeleteJob.java +++ b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/deletejob/SyncDeleteJob.java @@ -20,6 +20,7 @@ import com.google.cloud.video.transcoder.v1.DeleteJobRequest; import com.google.cloud.video.transcoder.v1.JobName; import com.google.cloud.video.transcoder.v1.TranscoderServiceClient; +import com.google.protobuf.Empty; public class SyncDeleteJob { @@ -28,8 +29,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 (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { DeleteJobRequest request = DeleteJobRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/deletejob/SyncDeleteJobJobname.java b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/deletejob/SyncDeleteJobJobname.java index d8e37534..062ae679 100644 --- a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/deletejob/SyncDeleteJobJobname.java +++ b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/deletejob/SyncDeleteJobJobname.java @@ -19,6 +19,7 @@ // [START transcoder_v1_generated_transcoderserviceclient_deletejob_jobname_sync] import com.google.cloud.video.transcoder.v1.JobName; import com.google.cloud.video.transcoder.v1.TranscoderServiceClient; +import com.google.protobuf.Empty; public class SyncDeleteJobJobname { @@ -27,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteJobJobname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]"); transcoderServiceClient.deleteJob(name); diff --git a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/deletejob/SyncDeleteJobString.java b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/deletejob/SyncDeleteJobString.java index fc12ee86..a890a296 100644 --- a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/deletejob/SyncDeleteJobString.java +++ b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/deletejob/SyncDeleteJobString.java @@ -19,6 +19,7 @@ // [START transcoder_v1_generated_transcoderserviceclient_deletejob_string_sync] import com.google.cloud.video.transcoder.v1.JobName; import com.google.cloud.video.transcoder.v1.TranscoderServiceClient; +import com.google.protobuf.Empty; public class SyncDeleteJobString { @@ -27,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteJobString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { String name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString(); transcoderServiceClient.deleteJob(name); diff --git a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/deletejobtemplate/AsyncDeleteJobTemplate.java b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/deletejobtemplate/AsyncDeleteJobTemplate.java index 4a6b7631..f55a632c 100644 --- a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/deletejobtemplate/AsyncDeleteJobTemplate.java +++ b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/deletejobtemplate/AsyncDeleteJobTemplate.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteJobTemplate() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { DeleteJobTemplateRequest request = DeleteJobTemplateRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/deletejobtemplate/SyncDeleteJobTemplate.java b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/deletejobtemplate/SyncDeleteJobTemplate.java index e6fae509..1e270902 100644 --- a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/deletejobtemplate/SyncDeleteJobTemplate.java +++ b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/deletejobtemplate/SyncDeleteJobTemplate.java @@ -20,6 +20,7 @@ import com.google.cloud.video.transcoder.v1.DeleteJobTemplateRequest; import com.google.cloud.video.transcoder.v1.JobTemplateName; import com.google.cloud.video.transcoder.v1.TranscoderServiceClient; +import com.google.protobuf.Empty; public class SyncDeleteJobTemplate { @@ -28,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteJobTemplate() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { DeleteJobTemplateRequest request = DeleteJobTemplateRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/deletejobtemplate/SyncDeleteJobTemplateJobtemplatename.java b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/deletejobtemplate/SyncDeleteJobTemplateJobtemplatename.java index 05312174..a587da94 100644 --- a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/deletejobtemplate/SyncDeleteJobTemplateJobtemplatename.java +++ b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/deletejobtemplate/SyncDeleteJobTemplateJobtemplatename.java @@ -19,6 +19,7 @@ // [START transcoder_v1_generated_transcoderserviceclient_deletejobtemplate_jobtemplatename_sync] import com.google.cloud.video.transcoder.v1.JobTemplateName; import com.google.cloud.video.transcoder.v1.TranscoderServiceClient; +import com.google.protobuf.Empty; public class SyncDeleteJobTemplateJobtemplatename { @@ -27,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteJobTemplateJobtemplatename() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { JobTemplateName name = JobTemplateName.of("[PROJECT]", "[LOCATION]", "[JOB_TEMPLATE]"); transcoderServiceClient.deleteJobTemplate(name); diff --git a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/deletejobtemplate/SyncDeleteJobTemplateString.java b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/deletejobtemplate/SyncDeleteJobTemplateString.java index 24a95b4b..987e3f54 100644 --- a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/deletejobtemplate/SyncDeleteJobTemplateString.java +++ b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/deletejobtemplate/SyncDeleteJobTemplateString.java @@ -19,6 +19,7 @@ // [START transcoder_v1_generated_transcoderserviceclient_deletejobtemplate_string_sync] import com.google.cloud.video.transcoder.v1.JobTemplateName; import com.google.cloud.video.transcoder.v1.TranscoderServiceClient; +import com.google.protobuf.Empty; public class SyncDeleteJobTemplateString { @@ -27,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteJobTemplateString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { String name = JobTemplateName.of("[PROJECT]", "[LOCATION]", "[JOB_TEMPLATE]").toString(); transcoderServiceClient.deleteJobTemplate(name); diff --git a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/getjob/AsyncGetJob.java b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/getjob/AsyncGetJob.java index ffd35f9d..f2b46016 100644 --- a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/getjob/AsyncGetJob.java +++ b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/getjob/AsyncGetJob.java @@ -30,8 +30,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 (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { GetJobRequest request = GetJobRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/getjob/SyncGetJob.java b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/getjob/SyncGetJob.java index ff8b1837..03a73037 100644 --- a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/getjob/SyncGetJob.java +++ b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/getjob/SyncGetJob.java @@ -29,8 +29,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 (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { GetJobRequest request = GetJobRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/getjob/SyncGetJobJobname.java b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/getjob/SyncGetJobJobname.java index ccbaf336..530df7c4 100644 --- a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/getjob/SyncGetJobJobname.java +++ b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/getjob/SyncGetJobJobname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetJobJobname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]"); Job response = transcoderServiceClient.getJob(name); diff --git a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/getjob/SyncGetJobString.java b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/getjob/SyncGetJobString.java index 1cebd9e8..09452867 100644 --- a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/getjob/SyncGetJobString.java +++ b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/getjob/SyncGetJobString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetJobString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { String name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString(); Job response = transcoderServiceClient.getJob(name); diff --git a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/getjobtemplate/AsyncGetJobTemplate.java b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/getjobtemplate/AsyncGetJobTemplate.java index 4ef0af06..8525d608 100644 --- a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/getjobtemplate/AsyncGetJobTemplate.java +++ b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/getjobtemplate/AsyncGetJobTemplate.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetJobTemplate() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { GetJobTemplateRequest request = GetJobTemplateRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/getjobtemplate/SyncGetJobTemplate.java b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/getjobtemplate/SyncGetJobTemplate.java index ebeac0ed..d3c210a9 100644 --- a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/getjobtemplate/SyncGetJobTemplate.java +++ b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/getjobtemplate/SyncGetJobTemplate.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetJobTemplate() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { GetJobTemplateRequest request = GetJobTemplateRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/getjobtemplate/SyncGetJobTemplateJobtemplatename.java b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/getjobtemplate/SyncGetJobTemplateJobtemplatename.java index 230561a3..89475505 100644 --- a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/getjobtemplate/SyncGetJobTemplateJobtemplatename.java +++ b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/getjobtemplate/SyncGetJobTemplateJobtemplatename.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetJobTemplateJobtemplatename() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { JobTemplateName name = JobTemplateName.of("[PROJECT]", "[LOCATION]", "[JOB_TEMPLATE]"); JobTemplate response = transcoderServiceClient.getJobTemplate(name); diff --git a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/getjobtemplate/SyncGetJobTemplateString.java b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/getjobtemplate/SyncGetJobTemplateString.java index 1ee41b86..a623e2e4 100644 --- a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/getjobtemplate/SyncGetJobTemplateString.java +++ b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/getjobtemplate/SyncGetJobTemplateString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetJobTemplateString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { String name = JobTemplateName.of("[PROJECT]", "[LOCATION]", "[JOB_TEMPLATE]").toString(); JobTemplate response = transcoderServiceClient.getJobTemplate(name); diff --git a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/listjobs/AsyncListJobs.java b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/listjobs/AsyncListJobs.java index a345e24f..896b2993 100644 --- a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/listjobs/AsyncListJobs.java +++ b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/listjobs/AsyncListJobs.java @@ -30,8 +30,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 (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { ListJobsRequest request = ListJobsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/listjobs/AsyncListJobsPaged.java b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/listjobs/AsyncListJobsPaged.java index a72a7753..0941391a 100644 --- a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/listjobs/AsyncListJobsPaged.java +++ b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/listjobs/AsyncListJobsPaged.java @@ -31,8 +31,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 (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { ListJobsRequest request = ListJobsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/listjobs/SyncListJobs.java b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/listjobs/SyncListJobs.java index 34c9b0e4..1ab6cf5a 100644 --- a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/listjobs/SyncListJobs.java +++ b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/listjobs/SyncListJobs.java @@ -29,8 +29,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 (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { ListJobsRequest request = ListJobsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/listjobs/SyncListJobsLocationname.java b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/listjobs/SyncListJobsLocationname.java index 0ef55d1a..540f1112 100644 --- a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/listjobs/SyncListJobsLocationname.java +++ b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/listjobs/SyncListJobsLocationname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListJobsLocationname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); for (Job element : transcoderServiceClient.listJobs(parent).iterateAll()) { diff --git a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/listjobs/SyncListJobsString.java b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/listjobs/SyncListJobsString.java index 1efdab49..a9805b94 100644 --- a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/listjobs/SyncListJobsString.java +++ b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/listjobs/SyncListJobsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListJobsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); for (Job element : transcoderServiceClient.listJobs(parent).iterateAll()) { diff --git a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/listjobtemplates/AsyncListJobTemplates.java b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/listjobtemplates/AsyncListJobTemplates.java index c6123a02..5e5d5a22 100644 --- a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/listjobtemplates/AsyncListJobTemplates.java +++ b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/listjobtemplates/AsyncListJobTemplates.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListJobTemplates() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { ListJobTemplatesRequest request = ListJobTemplatesRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/listjobtemplates/AsyncListJobTemplatesPaged.java b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/listjobtemplates/AsyncListJobTemplatesPaged.java index 2dc81b3e..53022655 100644 --- a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/listjobtemplates/AsyncListJobTemplatesPaged.java +++ b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/listjobtemplates/AsyncListJobTemplatesPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListJobTemplatesPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { ListJobTemplatesRequest request = ListJobTemplatesRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/listjobtemplates/SyncListJobTemplates.java b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/listjobtemplates/SyncListJobTemplates.java index ea5f7ff9..e0b23b7c 100644 --- a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/listjobtemplates/SyncListJobTemplates.java +++ b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/listjobtemplates/SyncListJobTemplates.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListJobTemplates() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { ListJobTemplatesRequest request = ListJobTemplatesRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/listjobtemplates/SyncListJobTemplatesLocationname.java b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/listjobtemplates/SyncListJobTemplatesLocationname.java index cb97c589..3c75fb22 100644 --- a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/listjobtemplates/SyncListJobTemplatesLocationname.java +++ b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/listjobtemplates/SyncListJobTemplatesLocationname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListJobTemplatesLocationname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); for (JobTemplate element : transcoderServiceClient.listJobTemplates(parent).iterateAll()) { diff --git a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/listjobtemplates/SyncListJobTemplatesString.java b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/listjobtemplates/SyncListJobTemplatesString.java index 7ddbd437..36c124cd 100644 --- a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/listjobtemplates/SyncListJobTemplatesString.java +++ b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/listjobtemplates/SyncListJobTemplatesString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListJobTemplatesString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); for (JobTemplate element : transcoderServiceClient.listJobTemplates(parent).iterateAll()) { diff --git a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderservicesettings/createjob/SyncCreateJob.java b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderservicesettings/createjob/SyncCreateJob.java index 4b6b332f..57c548b1 100644 --- a/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderservicesettings/createjob/SyncCreateJob.java +++ b/samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderservicesettings/createjob/SyncCreateJob.java @@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception { } public static void syncCreateJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library TranscoderServiceSettings.Builder transcoderServiceSettingsBuilder = TranscoderServiceSettings.newBuilder(); transcoderServiceSettingsBuilder .createJobSettings() .setRetrySettings( - transcoderServiceSettingsBuilder - .createJobSettings() - .getRetrySettings() - .toBuilder() + transcoderServiceSettingsBuilder.createJobSettings().getRetrySettings().toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); TranscoderServiceSettings transcoderServiceSettings = transcoderServiceSettingsBuilder.build();