{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RevisionsClient revisionsClient = RevisionsClient.create()) { * RevisionName name = RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]"); * Revision response = revisionsClient.getRevision(name); @@ -82,8 +85,11 @@ *To customize credentials: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * RevisionsSettings revisionsSettings = * RevisionsSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -94,8 +100,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 * RevisionsSettings revisionsSettings = * RevisionsSettings.newBuilder().setEndpoint(myEndpoint).build(); * RevisionsClient revisionsClient = RevisionsClient.create(revisionsSettings); @@ -105,8 +114,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 * RevisionsSettings revisionsSettings = * RevisionsSettings.newBuilder() * .setTransportChannelProvider( @@ -197,8 +209,11 @@ public final OperationsClient getHttpJsonOperationsClient() { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RevisionsClient revisionsClient = RevisionsClient.create()) { * RevisionName name = RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]"); * Revision response = revisionsClient.getRevision(name); @@ -222,8 +237,11 @@ public final Revision getRevision(RevisionName 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 (RevisionsClient revisionsClient = RevisionsClient.create()) { * String name = * RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString(); @@ -247,8 +265,11 @@ public final Revision getRevision(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 (RevisionsClient revisionsClient = RevisionsClient.create()) { * GetRevisionRequest request = * GetRevisionRequest.newBuilder() @@ -273,8 +294,11 @@ public final Revision getRevision(GetRevisionRequest 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 (RevisionsClient revisionsClient = RevisionsClient.create()) { * GetRevisionRequest request = * GetRevisionRequest.newBuilder() @@ -298,8 +322,11 @@ public final UnaryCallablegetRevisionCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RevisionsClient revisionsClient = RevisionsClient.create()) { * ServiceName parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]"); * for (Revision element : revisionsClient.listRevisions(parent).iterateAll()) { @@ -328,8 +355,11 @@ public final ListRevisionsPagedResponse listRevisions(ServiceName 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 (RevisionsClient revisionsClient = RevisionsClient.create()) { * String parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString(); * for (Revision element : revisionsClient.listRevisions(parent).iterateAll()) { @@ -355,8 +385,11 @@ public final ListRevisionsPagedResponse listRevisions(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 (RevisionsClient revisionsClient = RevisionsClient.create()) { * ListRevisionsRequest request = * ListRevisionsRequest.newBuilder() @@ -385,8 +418,11 @@ public final ListRevisionsPagedResponse listRevisions(ListRevisionsRequest reque *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RevisionsClient revisionsClient = RevisionsClient.create()) { * ListRevisionsRequest request = * ListRevisionsRequest.newBuilder() @@ -415,8 +451,11 @@ public final ListRevisionsPagedResponse listRevisions(ListRevisionsRequest reque *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RevisionsClient revisionsClient = RevisionsClient.create()) { * ListRevisionsRequest request = * ListRevisionsRequest.newBuilder() @@ -451,8 +490,11 @@ public final UnaryCallablelistRevi * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RevisionsClient revisionsClient = RevisionsClient.create()) { * RevisionName name = RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]"); * Revision response = revisionsClient.deleteRevisionAsync(name).get(); @@ -476,8 +518,11 @@ public final OperationFuturedeleteRevisionAsync(RevisionNam * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RevisionsClient revisionsClient = RevisionsClient.create()) { * String name = * RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString(); @@ -501,8 +546,11 @@ public final OperationFuturedeleteRevisionAsync(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 (RevisionsClient revisionsClient = RevisionsClient.create()) { * DeleteRevisionRequest request = * DeleteRevisionRequest.newBuilder() @@ -530,8 +578,11 @@ public final OperationFuturedeleteRevisionAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RevisionsClient revisionsClient = RevisionsClient.create()) { * DeleteRevisionRequest request = * DeleteRevisionRequest.newBuilder() @@ -559,8 +610,11 @@ public final OperationFuturedeleteRevisionAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RevisionsClient revisionsClient = RevisionsClient.create()) { * DeleteRevisionRequest request = * DeleteRevisionRequest.newBuilder() diff --git a/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsSettings.java b/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsSettings.java index c89ef86..dbd1ffd 100644 --- a/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsSettings.java +++ b/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsSettings.java @@ -55,16 +55,16 @@ *For example, to set the total timeout of getRevision 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 * RevisionsSettings.Builder revisionsSettingsBuilder = RevisionsSettings.newBuilder(); * revisionsSettingsBuilder * .getRevisionSettings() * .setRetrySettings( - * revisionsSettingsBuilder - * .getRevisionSettings() - * .getRetrySettings() - * .toBuilder() + * revisionsSettingsBuilder.getRevisionSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * RevisionsSettings revisionsSettings = revisionsSettingsBuilder.build(); diff --git a/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesClient.java b/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesClient.java index 91032ac..ef59dcd 100644 --- a/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesClient.java +++ b/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesClient.java @@ -50,8 +50,11 @@ * calls that map to API methods. Sample code to get started: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ServicesClient servicesClient = ServicesClient.create()) { * ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]"); * Service response = servicesClient.getService(name); @@ -87,8 +90,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 * ServicesSettings servicesSettings = * ServicesSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -99,8 +105,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 * ServicesSettings servicesSettings = * ServicesSettings.newBuilder().setEndpoint(myEndpoint).build(); * ServicesClient servicesClient = ServicesClient.create(servicesSettings); @@ -110,8 +119,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 * ServicesSettings servicesSettings = * ServicesSettings.newBuilder() * .setTransportChannelProvider( @@ -202,8 +214,11 @@ public final OperationsClient getHttpJsonOperationsClient() { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ServicesClient servicesClient = ServicesClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * Service service = Service.newBuilder().build(); @@ -237,8 +252,11 @@ public final OperationFuturecreateServiceAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ServicesClient servicesClient = ServicesClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * Service service = Service.newBuilder().build(); @@ -272,8 +290,11 @@ public final OperationFuturecreateServiceAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ServicesClient servicesClient = ServicesClient.create()) { * CreateServiceRequest request = * CreateServiceRequest.newBuilder() @@ -300,8 +321,11 @@ public final OperationFuturecreateServiceAsync(CreateServiceR * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ServicesClient servicesClient = ServicesClient.create()) { * CreateServiceRequest request = * CreateServiceRequest.newBuilder() @@ -329,8 +353,11 @@ public final OperationFuturecreateServiceAsync(CreateServiceR * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ServicesClient servicesClient = ServicesClient.create()) { * CreateServiceRequest request = * CreateServiceRequest.newBuilder() @@ -356,8 +383,11 @@ public final UnaryCallablecreateServiceCallabl * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ServicesClient servicesClient = ServicesClient.create()) { * ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]"); * Service response = servicesClient.getService(name); @@ -381,8 +411,11 @@ public final Service getService(ServiceName 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 (ServicesClient servicesClient = ServicesClient.create()) { * String name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString(); * Service response = servicesClient.getService(name); @@ -405,8 +438,11 @@ public final Service getService(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 (ServicesClient servicesClient = ServicesClient.create()) { * GetServiceRequest request = * GetServiceRequest.newBuilder() @@ -430,8 +466,11 @@ public final Service getService(GetServiceRequest 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 (ServicesClient servicesClient = ServicesClient.create()) { * GetServiceRequest request = * GetServiceRequest.newBuilder() @@ -454,8 +493,11 @@ public final UnaryCallablegetServiceCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ServicesClient servicesClient = ServicesClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (Service element : servicesClient.listServices(parent).iterateAll()) { @@ -484,8 +526,11 @@ public final ListServicesPagedResponse listServices(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 (ServicesClient servicesClient = ServicesClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * for (Service element : servicesClient.listServices(parent).iterateAll()) { @@ -511,8 +556,11 @@ public final ListServicesPagedResponse listServices(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 (ServicesClient servicesClient = ServicesClient.create()) { * ListServicesRequest request = * ListServicesRequest.newBuilder() @@ -541,8 +589,11 @@ public final ListServicesPagedResponse listServices(ListServicesRequest 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 (ServicesClient servicesClient = ServicesClient.create()) { * ListServicesRequest request = * ListServicesRequest.newBuilder() @@ -571,8 +622,11 @@ public final ListServicesPagedResponse listServices(ListServicesRequest 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 (ServicesClient servicesClient = ServicesClient.create()) { * ListServicesRequest request = * ListServicesRequest.newBuilder() @@ -607,8 +661,11 @@ public final UnaryCallablelistServic * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ServicesClient servicesClient = ServicesClient.create()) { * Service service = Service.newBuilder().build(); * Service response = servicesClient.updateServiceAsync(service).get(); @@ -630,8 +687,11 @@ public final OperationFutureupdateServiceAsync(Service servic * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ServicesClient servicesClient = ServicesClient.create()) { * UpdateServiceRequest request = * UpdateServiceRequest.newBuilder() @@ -657,8 +717,11 @@ public final OperationFutureupdateServiceAsync(UpdateServiceR * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ServicesClient servicesClient = ServicesClient.create()) { * UpdateServiceRequest request = * UpdateServiceRequest.newBuilder() @@ -685,8 +748,11 @@ public final OperationFutureupdateServiceAsync(UpdateServiceR * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ServicesClient servicesClient = ServicesClient.create()) { * UpdateServiceRequest request = * UpdateServiceRequest.newBuilder() @@ -712,8 +778,11 @@ public final UnaryCallableupdateServiceCallabl * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ServicesClient servicesClient = ServicesClient.create()) { * ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]"); * Service response = servicesClient.deleteServiceAsync(name).get(); @@ -738,8 +807,11 @@ public final OperationFuturedeleteServiceAsync(ServiceName na * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ServicesClient servicesClient = ServicesClient.create()) { * String name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString(); * Service response = servicesClient.deleteServiceAsync(name).get(); @@ -763,8 +835,11 @@ public final OperationFuturedeleteServiceAsync(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 (ServicesClient servicesClient = ServicesClient.create()) { * DeleteServiceRequest request = * DeleteServiceRequest.newBuilder() @@ -791,8 +866,11 @@ public final OperationFuturedeleteServiceAsync(DeleteServiceR * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ServicesClient servicesClient = ServicesClient.create()) { * DeleteServiceRequest request = * DeleteServiceRequest.newBuilder() @@ -820,8 +898,11 @@ public final OperationFuturedeleteServiceAsync(DeleteServiceR * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ServicesClient servicesClient = ServicesClient.create()) { * DeleteServiceRequest request = * DeleteServiceRequest.newBuilder() @@ -847,8 +928,11 @@ public final UnaryCallabledeleteServiceCallabl * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ServicesClient servicesClient = ServicesClient.create()) { * GetIamPolicyRequest request = * GetIamPolicyRequest.newBuilder() @@ -874,8 +958,11 @@ public final Policy getIamPolicy(GetIamPolicyRequest 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 (ServicesClient servicesClient = ServicesClient.create()) { * GetIamPolicyRequest request = * GetIamPolicyRequest.newBuilder() @@ -899,8 +986,11 @@ public final UnaryCallablegetIamPolicyCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ServicesClient servicesClient = ServicesClient.create()) { * SetIamPolicyRequest request = * SetIamPolicyRequest.newBuilder() @@ -926,8 +1016,11 @@ public final Policy setIamPolicy(SetIamPolicyRequest 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 (ServicesClient servicesClient = ServicesClient.create()) { * SetIamPolicyRequest request = * SetIamPolicyRequest.newBuilder() @@ -954,8 +1047,11 @@ public final UnaryCallablesetIamPolicyCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ServicesClient servicesClient = ServicesClient.create()) { * TestIamPermissionsRequest request = * TestIamPermissionsRequest.newBuilder() @@ -982,8 +1078,11 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ServicesClient servicesClient = ServicesClient.create()) { * TestIamPermissionsRequest request = * TestIamPermissionsRequest.newBuilder() diff --git a/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesSettings.java b/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesSettings.java index 9433cf1..b2c503f 100644 --- a/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesSettings.java +++ b/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesSettings.java @@ -60,16 +60,16 @@ *For example, to set the total timeout of getService 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 * ServicesSettings.Builder servicesSettingsBuilder = ServicesSettings.newBuilder(); * servicesSettingsBuilder * .getServiceSettings() * .setRetrySettings( - * servicesSettingsBuilder - * .getServiceSettings() - * .getRetrySettings() - * .toBuilder() + * servicesSettingsBuilder.getServiceSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * ServicesSettings servicesSettings = servicesSettingsBuilder.build(); diff --git a/google-cloud-run/src/main/java/com/google/cloud/run/v2/package-info.java b/google-cloud-run/src/main/java/com/google/cloud/run/v2/package-info.java index 50af629..0e79f86 100644 --- a/google-cloud-run/src/main/java/com/google/cloud/run/v2/package-info.java +++ b/google-cloud-run/src/main/java/com/google/cloud/run/v2/package-info.java @@ -26,8 +26,11 @@ *Sample for RevisionsClient: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RevisionsClient revisionsClient = RevisionsClient.create()) { * RevisionName name = RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]"); * Revision response = revisionsClient.getRevision(name); @@ -41,8 +44,11 @@ *Sample for ServicesClient: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ServicesClient servicesClient = ServicesClient.create()) { * ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]"); * Service response = servicesClient.getService(name); diff --git a/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesStub.java b/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesStub.java index e339e7d..4933b88 100644 --- a/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesStub.java +++ b/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesStub.java @@ -96,7 +96,8 @@ public class HttpJsonServicesStub extends ServicesStub { }) .setRequestBodyExtractor( request -> - ProtoRestSerializer.create().toBody("service", request.getService())) + ProtoRestSerializer.create() + .toBody("service", request.getService(), false)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -208,7 +209,8 @@ public class HttpJsonServicesStub extends ServicesStub { }) .setRequestBodyExtractor( request -> - ProtoRestSerializer.create().toBody("service", request.getService())) + ProtoRestSerializer.create() + .toBody("service", request.getService(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -320,7 +322,7 @@ public class HttpJsonServicesStub extends ServicesStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build())) + .toBody("*", request.toBuilder().clearResource().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -356,7 +358,7 @@ public class HttpJsonServicesStub extends ServicesStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build())) + .toBody("*", request.toBuilder().clearResource().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() diff --git a/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStubSettings.java b/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStubSettings.java index af7f5b1..3841d96 100644 --- a/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStubSettings.java +++ b/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStubSettings.java @@ -80,16 +80,16 @@ * For example, to set the total timeout of getRevision 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 * RevisionsStubSettings.Builder revisionsSettingsBuilder = RevisionsStubSettings.newBuilder(); * revisionsSettingsBuilder * .getRevisionSettings() * .setRetrySettings( - * revisionsSettingsBuilder - * .getRevisionSettings() - * .getRetrySettings() - * .toBuilder() + * revisionsSettingsBuilder.getRevisionSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * RevisionsStubSettings revisionsSettings = revisionsSettingsBuilder.build(); diff --git a/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStubSettings.java b/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStubSettings.java index 2abf68f..fb00e30 100644 --- a/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStubSettings.java +++ b/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStubSettings.java @@ -87,16 +87,16 @@ *For example, to set the total timeout of getService 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 * ServicesStubSettings.Builder servicesSettingsBuilder = ServicesStubSettings.newBuilder(); * servicesSettingsBuilder * .getServiceSettings() * .setRetrySettings( - * servicesSettingsBuilder - * .getServiceSettings() - * .getRetrySettings() - * .toBuilder() + * servicesSettingsBuilder.getServiceSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * ServicesStubSettings servicesSettings = servicesSettingsBuilder.build(); diff --git a/grpc-google-cloud-run-v2/pom.xml b/grpc-google-cloud-run-v2/pom.xml index 393c46a..65b4138 100644 --- a/grpc-google-cloud-run-v2/pom.xml +++ b/grpc-google-cloud-run-v2/pom.xml @@ -4,13 +4,13 @@4.0.0 com.google.api.grpc grpc-google-cloud-run-v2 -0.3.2 +0.3.3 grpc-google-cloud-run-v2 GRPC library for google-cloud-run com.google.cloud google-cloud-run-parent -0.3.2 +0.3.3 diff --git a/pom.xml b/pom.xml index dc05cbb..e354458 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-run-parent pom -0.3.2 +0.3.3 Google Cloud Run Parent https://github.com/googleapis/java-run @@ -69,23 +69,23 @@ com.google.cloud google-cloud-run -0.3.2 +0.3.3 com.google.api.grpc grpc-google-cloud-run-v2 -0.3.2 +0.3.3 com.google.api.grpc proto-google-cloud-run-v2 -0.3.2 +0.3.3 diff --git a/proto-google-cloud-run-v2/pom.xml b/proto-google-cloud-run-v2/pom.xml index 1550cbb..3a28319 100644 --- a/proto-google-cloud-run-v2/pom.xml +++ b/proto-google-cloud-run-v2/pom.xml @@ -4,13 +4,13 @@ com.google.cloud google-cloud-shared-dependencies -3.0.2 +3.0.3 pom import 4.0.0 com.google.api.grpc proto-google-cloud-run-v2 -0.3.2 +0.3.3 proto-google-cloud-run-v2 Proto library for google-cloud-run com.google.cloud google-cloud-run-parent -0.3.2 +0.3.3 diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 3da6a9f..6e39d62 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index bad9fd2..fccd39d 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-run -0.3.1 +0.3.2 diff --git a/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/create/SyncCreateSetCredentialsProvider.java index 54315a1..0139e17 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/create/SyncCreateSetCredentialsProvider.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/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 RevisionsSettings revisionsSettings = RevisionsSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/create/SyncCreateSetCredentialsProvider1.java index 6a6936b..3bfbced 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/create/SyncCreateSetCredentialsProvider1.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/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 RevisionsSettings revisionsSettings = RevisionsSettings.newBuilder() .setTransportChannelProvider( diff --git a/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/create/SyncCreateSetEndpoint.java index 5255169..db0345a 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/create/SyncCreateSetEndpoint.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/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 RevisionsSettings revisionsSettings = RevisionsSettings.newBuilder().setEndpoint(myEndpoint).build(); RevisionsClient revisionsClient = RevisionsClient.create(revisionsSettings); diff --git a/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/AsyncDeleteRevision.java b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/AsyncDeleteRevision.java index 9c007e8..85ec110 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/AsyncDeleteRevision.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/AsyncDeleteRevision.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteRevision() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RevisionsClient revisionsClient = RevisionsClient.create()) { DeleteRevisionRequest request = DeleteRevisionRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/AsyncDeleteRevisionLRO.java b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/AsyncDeleteRevisionLRO.java index f870bc2..27c7ebc 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/AsyncDeleteRevisionLRO.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/AsyncDeleteRevisionLRO.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteRevisionLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RevisionsClient revisionsClient = RevisionsClient.create()) { DeleteRevisionRequest request = DeleteRevisionRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevision.java b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevision.java index cd3fb73..867f209 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevision.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevision.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteRevision() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RevisionsClient revisionsClient = RevisionsClient.create()) { DeleteRevisionRequest request = DeleteRevisionRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevisionRevisionname.java b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevisionRevisionname.java index c2f323f..797cbfc 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevisionRevisionname.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevisionRevisionname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteRevisionRevisionname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RevisionsClient revisionsClient = RevisionsClient.create()) { RevisionName name = RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]"); Revision response = revisionsClient.deleteRevisionAsync(name).get(); diff --git a/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevisionString.java b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevisionString.java index e7ad444..0ed46e6 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevisionString.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevisionString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteRevisionString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RevisionsClient revisionsClient = RevisionsClient.create()) { String name = RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString(); diff --git a/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/AsyncGetRevision.java b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/AsyncGetRevision.java index 7622bf1..cb5f142 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/AsyncGetRevision.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/AsyncGetRevision.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetRevision() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RevisionsClient revisionsClient = RevisionsClient.create()) { GetRevisionRequest request = GetRevisionRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevision.java b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevision.java index f65d388..08d2581 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevision.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevision.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetRevision() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RevisionsClient revisionsClient = RevisionsClient.create()) { GetRevisionRequest request = GetRevisionRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevisionRevisionname.java b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevisionRevisionname.java index 1eb7745..a8c94db 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevisionRevisionname.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevisionRevisionname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetRevisionRevisionname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RevisionsClient revisionsClient = RevisionsClient.create()) { RevisionName name = RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]"); Revision response = revisionsClient.getRevision(name); diff --git a/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevisionString.java b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevisionString.java index 761d750..79bf768 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevisionString.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevisionString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetRevisionString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RevisionsClient revisionsClient = RevisionsClient.create()) { String name = RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString(); diff --git a/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/AsyncListRevisions.java b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/AsyncListRevisions.java index fe797d7..5bfd08c 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/AsyncListRevisions.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/AsyncListRevisions.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListRevisions() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RevisionsClient revisionsClient = RevisionsClient.create()) { ListRevisionsRequest request = ListRevisionsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/AsyncListRevisionsPaged.java b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/AsyncListRevisionsPaged.java index bafc415..b4dcbc6 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/AsyncListRevisionsPaged.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/AsyncListRevisionsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListRevisionsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RevisionsClient revisionsClient = RevisionsClient.create()) { ListRevisionsRequest request = ListRevisionsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisions.java b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisions.java index 227c054..3d7a47b 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisions.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisions.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListRevisions() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RevisionsClient revisionsClient = RevisionsClient.create()) { ListRevisionsRequest request = ListRevisionsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisionsServicename.java b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisionsServicename.java index 1af4902..04a5e11 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisionsServicename.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisionsServicename.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListRevisionsServicename() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RevisionsClient revisionsClient = RevisionsClient.create()) { ServiceName parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]"); for (Revision element : revisionsClient.listRevisions(parent).iterateAll()) { diff --git a/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisionsString.java b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisionsString.java index 7599d48..7d8ceca 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisionsString.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisionsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListRevisionsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RevisionsClient revisionsClient = RevisionsClient.create()) { String parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString(); for (Revision element : revisionsClient.listRevisions(parent).iterateAll()) { diff --git a/samples/snippets/generated/com/google/cloud/run/v2/revisionssettings/getrevision/SyncGetRevision.java b/samples/snippets/generated/com/google/cloud/run/v2/revisionssettings/getrevision/SyncGetRevision.java index 93ca1ed..8195118 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/revisionssettings/getrevision/SyncGetRevision.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/revisionssettings/getrevision/SyncGetRevision.java @@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception { } public static void syncGetRevision() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library RevisionsSettings.Builder revisionsSettingsBuilder = RevisionsSettings.newBuilder(); revisionsSettingsBuilder .getRevisionSettings() .setRetrySettings( - revisionsSettingsBuilder - .getRevisionSettings() - .getRetrySettings() - .toBuilder() + revisionsSettingsBuilder.getRevisionSettings().getRetrySettings().toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); RevisionsSettings revisionsSettings = revisionsSettingsBuilder.build(); diff --git a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/create/SyncCreateSetCredentialsProvider.java index 64a046f..abe4c47 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/create/SyncCreateSetCredentialsProvider.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/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 ServicesSettings servicesSettings = ServicesSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/create/SyncCreateSetCredentialsProvider1.java index 655c0fa..9e48efe 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/create/SyncCreateSetCredentialsProvider1.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/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 ServicesSettings servicesSettings = ServicesSettings.newBuilder() .setTransportChannelProvider( diff --git a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/create/SyncCreateSetEndpoint.java index 68f0b75..b28e06a 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/create/SyncCreateSetEndpoint.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/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 ServicesSettings servicesSettings = ServicesSettings.newBuilder().setEndpoint(myEndpoint).build(); ServicesClient servicesClient = ServicesClient.create(servicesSettings); diff --git a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/AsyncCreateService.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/AsyncCreateService.java index 684ceee..fdcd848 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/AsyncCreateService.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/AsyncCreateService.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateService() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ServicesClient servicesClient = ServicesClient.create()) { CreateServiceRequest request = CreateServiceRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/AsyncCreateServiceLRO.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/AsyncCreateServiceLRO.java index eda3f56..3e6b8cb 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/AsyncCreateServiceLRO.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/AsyncCreateServiceLRO.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateServiceLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ServicesClient servicesClient = ServicesClient.create()) { CreateServiceRequest request = CreateServiceRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateService.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateService.java index 0120811..6d71dbd 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateService.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateService.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateService() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ServicesClient servicesClient = ServicesClient.create()) { CreateServiceRequest request = CreateServiceRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateServiceLocationnameServiceString.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateServiceLocationnameServiceString.java index e7b4335..29952c5 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateServiceLocationnameServiceString.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateServiceLocationnameServiceString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateServiceLocationnameServiceString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ServicesClient servicesClient = ServicesClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); Service service = Service.newBuilder().build(); diff --git a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateServiceStringServiceString.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateServiceStringServiceString.java index 54db6fc..3b5222a 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateServiceStringServiceString.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateServiceStringServiceString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateServiceStringServiceString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ServicesClient servicesClient = ServicesClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); Service service = Service.newBuilder().build(); diff --git a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/AsyncDeleteService.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/AsyncDeleteService.java index cfd782f..31bdf73 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/AsyncDeleteService.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/AsyncDeleteService.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteService() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ServicesClient servicesClient = ServicesClient.create()) { DeleteServiceRequest request = DeleteServiceRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/AsyncDeleteServiceLRO.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/AsyncDeleteServiceLRO.java index 1314ce4..20bbcb7 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/AsyncDeleteServiceLRO.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/AsyncDeleteServiceLRO.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteServiceLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ServicesClient servicesClient = ServicesClient.create()) { DeleteServiceRequest request = DeleteServiceRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteService.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteService.java index 395e53c..c29a2e7 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteService.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteService.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteService() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ServicesClient servicesClient = ServicesClient.create()) { DeleteServiceRequest request = DeleteServiceRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteServiceServicename.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteServiceServicename.java index 1e5ef0e..8ac81af 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteServiceServicename.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteServiceServicename.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteServiceServicename() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ServicesClient servicesClient = ServicesClient.create()) { ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]"); Service response = servicesClient.deleteServiceAsync(name).get(); diff --git a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteServiceString.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteServiceString.java index 9fb75e7..6e9ec47 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteServiceString.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteServiceString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteServiceString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ServicesClient servicesClient = ServicesClient.create()) { String name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString(); Service response = servicesClient.deleteServiceAsync(name).get(); diff --git a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getiampolicy/AsyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getiampolicy/AsyncGetIamPolicy.java index cf87a0a..ad84ec2 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getiampolicy/AsyncGetIamPolicy.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getiampolicy/AsyncGetIamPolicy.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetIamPolicy() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ServicesClient servicesClient = ServicesClient.create()) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getiampolicy/SyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getiampolicy/SyncGetIamPolicy.java index 8a8bfc8..deb4179 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getiampolicy/SyncGetIamPolicy.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getiampolicy/SyncGetIamPolicy.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetIamPolicy() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ServicesClient servicesClient = ServicesClient.create()) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/AsyncGetService.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/AsyncGetService.java index 1587af0..3599096 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/AsyncGetService.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/AsyncGetService.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetService() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ServicesClient servicesClient = ServicesClient.create()) { GetServiceRequest request = GetServiceRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetService.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetService.java index 950891e..99a3c94 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetService.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetService.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetService() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ServicesClient servicesClient = ServicesClient.create()) { GetServiceRequest request = GetServiceRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetServiceServicename.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetServiceServicename.java index 72ddd61..ea46c31 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetServiceServicename.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetServiceServicename.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetServiceServicename() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ServicesClient servicesClient = ServicesClient.create()) { ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]"); Service response = servicesClient.getService(name); diff --git a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetServiceString.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetServiceString.java index 8503f6f..27b5053 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetServiceString.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetServiceString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetServiceString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ServicesClient servicesClient = ServicesClient.create()) { String name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString(); Service response = servicesClient.getService(name); diff --git a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/AsyncListServices.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/AsyncListServices.java index f605a8c..7546481 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/AsyncListServices.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/AsyncListServices.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListServices() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ServicesClient servicesClient = ServicesClient.create()) { ListServicesRequest request = ListServicesRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/AsyncListServicesPaged.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/AsyncListServicesPaged.java index 26da4f1..42cc863 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/AsyncListServicesPaged.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/AsyncListServicesPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListServicesPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ServicesClient servicesClient = ServicesClient.create()) { ListServicesRequest request = ListServicesRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServices.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServices.java index 8316c98..2b5c7be 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServices.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServices.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListServices() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ServicesClient servicesClient = ServicesClient.create()) { ListServicesRequest request = ListServicesRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServicesLocationname.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServicesLocationname.java index b3808ee..b674e6f 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServicesLocationname.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServicesLocationname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListServicesLocationname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ServicesClient servicesClient = ServicesClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); for (Service element : servicesClient.listServices(parent).iterateAll()) { diff --git a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServicesString.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServicesString.java index 855d5ec..b43d9d9 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServicesString.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServicesString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListServicesString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ServicesClient servicesClient = ServicesClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); for (Service element : servicesClient.listServices(parent).iterateAll()) { diff --git a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/setiampolicy/AsyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/setiampolicy/AsyncSetIamPolicy.java index 439cd5e..43e00dc 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/setiampolicy/AsyncSetIamPolicy.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/setiampolicy/AsyncSetIamPolicy.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncSetIamPolicy() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ServicesClient servicesClient = ServicesClient.create()) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/setiampolicy/SyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/setiampolicy/SyncSetIamPolicy.java index e033009..e4ce166 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/setiampolicy/SyncSetIamPolicy.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/setiampolicy/SyncSetIamPolicy.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncSetIamPolicy() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ServicesClient servicesClient = ServicesClient.create()) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/testiampermissions/AsyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/testiampermissions/AsyncTestIamPermissions.java index c143cd9..0311cd5 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/testiampermissions/AsyncTestIamPermissions.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/testiampermissions/AsyncTestIamPermissions.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncTestIamPermissions() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ServicesClient servicesClient = ServicesClient.create()) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/testiampermissions/SyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/testiampermissions/SyncTestIamPermissions.java index c7d2cf6..c14ef88 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/testiampermissions/SyncTestIamPermissions.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/testiampermissions/SyncTestIamPermissions.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncTestIamPermissions() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ServicesClient servicesClient = ServicesClient.create()) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/AsyncUpdateService.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/AsyncUpdateService.java index cca0236..33065d3 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/AsyncUpdateService.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/AsyncUpdateService.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateService() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ServicesClient servicesClient = ServicesClient.create()) { UpdateServiceRequest request = UpdateServiceRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/AsyncUpdateServiceLRO.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/AsyncUpdateServiceLRO.java index 1b1a8ca..e969e5d 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/AsyncUpdateServiceLRO.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/AsyncUpdateServiceLRO.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateServiceLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ServicesClient servicesClient = ServicesClient.create()) { UpdateServiceRequest request = UpdateServiceRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/SyncUpdateService.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/SyncUpdateService.java index 6c15866..2e37583 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/SyncUpdateService.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/SyncUpdateService.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateService() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ServicesClient servicesClient = ServicesClient.create()) { UpdateServiceRequest request = UpdateServiceRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/SyncUpdateServiceService.java b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/SyncUpdateServiceService.java index a44fef7..4aeb05b 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/SyncUpdateServiceService.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/SyncUpdateServiceService.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateServiceService() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ServicesClient servicesClient = ServicesClient.create()) { Service service = Service.newBuilder().build(); Service response = servicesClient.updateServiceAsync(service).get(); diff --git a/samples/snippets/generated/com/google/cloud/run/v2/servicessettings/getservice/SyncGetService.java b/samples/snippets/generated/com/google/cloud/run/v2/servicessettings/getservice/SyncGetService.java index 52c440d..936dc55 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/servicessettings/getservice/SyncGetService.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/servicessettings/getservice/SyncGetService.java @@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception { } public static void syncGetService() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library ServicesSettings.Builder servicesSettingsBuilder = ServicesSettings.newBuilder(); servicesSettingsBuilder .getServiceSettings() .setRetrySettings( - servicesSettingsBuilder - .getServiceSettings() - .getRetrySettings() - .toBuilder() + servicesSettingsBuilder.getServiceSettings().getRetrySettings().toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); ServicesSettings servicesSettings = servicesSettingsBuilder.build(); diff --git a/samples/snippets/generated/com/google/cloud/run/v2/stub/revisionsstubsettings/getrevision/SyncGetRevision.java b/samples/snippets/generated/com/google/cloud/run/v2/stub/revisionsstubsettings/getrevision/SyncGetRevision.java index 55abff2..04a952e 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/stub/revisionsstubsettings/getrevision/SyncGetRevision.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/stub/revisionsstubsettings/getrevision/SyncGetRevision.java @@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception { } public static void syncGetRevision() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library RevisionsStubSettings.Builder revisionsSettingsBuilder = RevisionsStubSettings.newBuilder(); revisionsSettingsBuilder .getRevisionSettings() .setRetrySettings( - revisionsSettingsBuilder - .getRevisionSettings() - .getRetrySettings() - .toBuilder() + revisionsSettingsBuilder.getRevisionSettings().getRetrySettings().toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); RevisionsStubSettings revisionsSettings = revisionsSettingsBuilder.build(); diff --git a/samples/snippets/generated/com/google/cloud/run/v2/stub/servicesstubsettings/getservice/SyncGetService.java b/samples/snippets/generated/com/google/cloud/run/v2/stub/servicesstubsettings/getservice/SyncGetService.java index f6585a6..253b95b 100644 --- a/samples/snippets/generated/com/google/cloud/run/v2/stub/servicesstubsettings/getservice/SyncGetService.java +++ b/samples/snippets/generated/com/google/cloud/run/v2/stub/servicesstubsettings/getservice/SyncGetService.java @@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception { } public static void syncGetService() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library ServicesStubSettings.Builder servicesSettingsBuilder = ServicesStubSettings.newBuilder(); servicesSettingsBuilder .getServiceSettings() .setRetrySettings( - servicesSettingsBuilder - .getServiceSettings() - .getRetrySettings() - .toBuilder() + servicesSettingsBuilder.getServiceSettings().getRetrySettings().toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); ServicesStubSettings servicesSettings = servicesSettingsBuilder.build(); diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 40b08bf..c0f0bbe 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-run -0.3.2 +0.3.3 com.google.cloud google-cloud-run -0.3.1 +0.3.2 diff --git a/versions.txt b/versions.txt index 58eccea..d39b70b 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-run:0.3.2:0.3.2 -proto-google-cloud-run-v2:0.3.2:0.3.2 -grpc-google-cloud-run-v2:0.3.2:0.3.2 +google-cloud-run:0.3.3:0.3.3 +proto-google-cloud-run-v2:0.3.3:0.3.3 +grpc-google-cloud-run-v2:0.3.3:0.3.3