From 293f962d492b4e683899b94b0075c2f8745a3efe Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 8 Sep 2022 20:40:17 +0000 Subject: [PATCH] chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#214) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 472750037 Source-Link: https://github.com/googleapis/googleapis/commit/88f2ea3f53b9712f2e04f28f06210f6f77fa7e24 Source-Link: https://github.com/googleapis/googleapis-gen/commit/230a5588306aae18fe8f2a57f14d4039ad72c901 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjMwYTU1ODgzMDZhYWUxOGZlOGYyYTU3ZjE0ZDQwMzlhZDcyYzkwMSJ9 --- .../v1beta1/PrivateCatalogClient.java | 91 +++++++++++++------ .../v1beta1/PrivateCatalogSettings.java | 12 +-- .../privatecatalog/v1beta1/package-info.java | 7 +- .../stub/PrivateCatalogStubSettings.java | 12 +-- .../SyncCreateSetCredentialsProvider.java | 7 +- .../SyncCreateSetCredentialsProvider1.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../searchcatalogs/AsyncSearchCatalogs.java | 7 +- .../AsyncSearchCatalogsPaged.java | 7 +- .../searchcatalogs/SyncSearchCatalogs.java | 7 +- .../searchproducts/AsyncSearchProducts.java | 7 +- .../AsyncSearchProductsPaged.java | 7 +- .../searchproducts/SyncSearchProducts.java | 7 +- .../searchversions/AsyncSearchVersions.java | 7 +- .../AsyncSearchVersionsPaged.java | 7 +- .../searchversions/SyncSearchVersions.java | 7 +- .../searchcatalogs/SyncSearchCatalogs.java | 12 +-- .../searchcatalogs/SyncSearchCatalogs.java | 12 +-- 18 files changed, 154 insertions(+), 76 deletions(-) diff --git a/java-private-catalog/google-cloud-private-catalog/src/main/java/com/google/cloud/privatecatalog/v1beta1/PrivateCatalogClient.java b/java-private-catalog/google-cloud-private-catalog/src/main/java/com/google/cloud/privatecatalog/v1beta1/PrivateCatalogClient.java index d3347847649e..dd384128801f 100644 --- a/java-private-catalog/google-cloud-private-catalog/src/main/java/com/google/cloud/privatecatalog/v1beta1/PrivateCatalogClient.java +++ b/java-private-catalog/google-cloud-private-catalog/src/main/java/com/google/cloud/privatecatalog/v1beta1/PrivateCatalogClient.java @@ -56,8 +56,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 (PrivateCatalogClient privateCatalogClient = PrivateCatalogClient.create()) { * SearchCatalogsRequest request = * SearchCatalogsRequest.newBuilder() @@ -101,8 +104,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 * PrivateCatalogSettings privateCatalogSettings = * PrivateCatalogSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -113,8 +119,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 * PrivateCatalogSettings privateCatalogSettings = * PrivateCatalogSettings.newBuilder().setEndpoint(myEndpoint).build(); * PrivateCatalogClient privateCatalogClient = PrivateCatalogClient.create(privateCatalogSettings); @@ -124,8 +133,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 * PrivateCatalogSettings privateCatalogSettings = * PrivateCatalogSettings.newBuilder() * .setTransportChannelProvider( @@ -195,8 +207,11 @@ public PrivateCatalogStub getStub() { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (PrivateCatalogClient privateCatalogClient = PrivateCatalogClient.create()) { * SearchCatalogsRequest request = * SearchCatalogsRequest.newBuilder() @@ -226,8 +241,11 @@ public final SearchCatalogsPagedResponse searchCatalogs(SearchCatalogsRequest re *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (PrivateCatalogClient privateCatalogClient = PrivateCatalogClient.create()) { * SearchCatalogsRequest request = * SearchCatalogsRequest.newBuilder() @@ -258,8 +276,11 @@ public final SearchCatalogsPagedResponse searchCatalogs(SearchCatalogsRequest re *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (PrivateCatalogClient privateCatalogClient = PrivateCatalogClient.create()) { * SearchCatalogsRequest request = * SearchCatalogsRequest.newBuilder() @@ -297,8 +318,11 @@ public final SearchCatalogsPagedResponse searchCatalogs(SearchCatalogsRequest re *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (PrivateCatalogClient privateCatalogClient = PrivateCatalogClient.create()) { * SearchProductsRequest request = * SearchProductsRequest.newBuilder() @@ -328,8 +352,11 @@ public final SearchProductsPagedResponse searchProducts(SearchProductsRequest re *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (PrivateCatalogClient privateCatalogClient = PrivateCatalogClient.create()) { * SearchProductsRequest request = * SearchProductsRequest.newBuilder() @@ -360,8 +387,11 @@ public final SearchProductsPagedResponse searchProducts(SearchProductsRequest re *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (PrivateCatalogClient privateCatalogClient = PrivateCatalogClient.create()) { * SearchProductsRequest request = * SearchProductsRequest.newBuilder() @@ -399,8 +429,11 @@ public final SearchProductsPagedResponse searchProducts(SearchProductsRequest re *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (PrivateCatalogClient privateCatalogClient = PrivateCatalogClient.create()) { * SearchVersionsRequest request = * SearchVersionsRequest.newBuilder() @@ -430,8 +463,11 @@ public final SearchVersionsPagedResponse searchVersions(SearchVersionsRequest re *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (PrivateCatalogClient privateCatalogClient = PrivateCatalogClient.create()) { * SearchVersionsRequest request = * SearchVersionsRequest.newBuilder() @@ -462,8 +498,11 @@ public final SearchVersionsPagedResponse searchVersions(SearchVersionsRequest re *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (PrivateCatalogClient privateCatalogClient = PrivateCatalogClient.create()) { * SearchVersionsRequest request = * SearchVersionsRequest.newBuilder() diff --git a/java-private-catalog/google-cloud-private-catalog/src/main/java/com/google/cloud/privatecatalog/v1beta1/PrivateCatalogSettings.java b/java-private-catalog/google-cloud-private-catalog/src/main/java/com/google/cloud/privatecatalog/v1beta1/PrivateCatalogSettings.java index 09549b53d887..8b6ab5ad3c5d 100644 --- a/java-private-catalog/google-cloud-private-catalog/src/main/java/com/google/cloud/privatecatalog/v1beta1/PrivateCatalogSettings.java +++ b/java-private-catalog/google-cloud-private-catalog/src/main/java/com/google/cloud/privatecatalog/v1beta1/PrivateCatalogSettings.java @@ -56,17 +56,17 @@ *For example, to set the total timeout of searchCatalogs 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 * PrivateCatalogSettings.Builder privateCatalogSettingsBuilder = * PrivateCatalogSettings.newBuilder(); * privateCatalogSettingsBuilder * .searchCatalogsSettings() * .setRetrySettings( - * privateCatalogSettingsBuilder - * .searchCatalogsSettings() - * .getRetrySettings() - * .toBuilder() + * privateCatalogSettingsBuilder.searchCatalogsSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * PrivateCatalogSettings privateCatalogSettings = privateCatalogSettingsBuilder.build(); diff --git a/java-private-catalog/google-cloud-private-catalog/src/main/java/com/google/cloud/privatecatalog/v1beta1/package-info.java b/java-private-catalog/google-cloud-private-catalog/src/main/java/com/google/cloud/privatecatalog/v1beta1/package-info.java index 26dbda7a5fe4..7d0b493a2de3 100644 --- a/java-private-catalog/google-cloud-private-catalog/src/main/java/com/google/cloud/privatecatalog/v1beta1/package-info.java +++ b/java-private-catalog/google-cloud-private-catalog/src/main/java/com/google/cloud/privatecatalog/v1beta1/package-info.java @@ -39,8 +39,11 @@ *Sample for PrivateCatalogClient: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (PrivateCatalogClient privateCatalogClient = PrivateCatalogClient.create()) { * SearchCatalogsRequest request = * SearchCatalogsRequest.newBuilder() diff --git a/java-private-catalog/google-cloud-private-catalog/src/main/java/com/google/cloud/privatecatalog/v1beta1/stub/PrivateCatalogStubSettings.java b/java-private-catalog/google-cloud-private-catalog/src/main/java/com/google/cloud/privatecatalog/v1beta1/stub/PrivateCatalogStubSettings.java index de9586969e51..dafb621d6e01 100644 --- a/java-private-catalog/google-cloud-private-catalog/src/main/java/com/google/cloud/privatecatalog/v1beta1/stub/PrivateCatalogStubSettings.java +++ b/java-private-catalog/google-cloud-private-catalog/src/main/java/com/google/cloud/privatecatalog/v1beta1/stub/PrivateCatalogStubSettings.java @@ -81,17 +81,17 @@ *For example, to set the total timeout of searchCatalogs 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 * PrivateCatalogStubSettings.Builder privateCatalogSettingsBuilder = * PrivateCatalogStubSettings.newBuilder(); * privateCatalogSettingsBuilder * .searchCatalogsSettings() * .setRetrySettings( - * privateCatalogSettingsBuilder - * .searchCatalogsSettings() - * .getRetrySettings() - * .toBuilder() + * privateCatalogSettingsBuilder.searchCatalogsSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * PrivateCatalogStubSettings privateCatalogSettings = privateCatalogSettingsBuilder.build(); diff --git a/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/create/SyncCreateSetCredentialsProvider.java b/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/create/SyncCreateSetCredentialsProvider.java index bae32f187ab4..851e5391f219 100644 --- a/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/create/SyncCreateSetCredentialsProvider.java +++ b/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/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 PrivateCatalogSettings privateCatalogSettings = PrivateCatalogSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/create/SyncCreateSetCredentialsProvider1.java b/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/create/SyncCreateSetCredentialsProvider1.java index eea1dea4c579..793168c5591f 100644 --- a/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/create/SyncCreateSetCredentialsProvider1.java +++ b/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/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 PrivateCatalogSettings privateCatalogSettings = PrivateCatalogSettings.newBuilder() .setTransportChannelProvider( diff --git a/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/create/SyncCreateSetEndpoint.java b/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/create/SyncCreateSetEndpoint.java index 4c3ab29042f4..986a60ec4609 100644 --- a/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/create/SyncCreateSetEndpoint.java +++ b/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/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 PrivateCatalogSettings privateCatalogSettings = PrivateCatalogSettings.newBuilder().setEndpoint(myEndpoint).build(); PrivateCatalogClient privateCatalogClient = PrivateCatalogClient.create(privateCatalogSettings); diff --git a/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/searchcatalogs/AsyncSearchCatalogs.java b/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/searchcatalogs/AsyncSearchCatalogs.java index 2d31d6d4b052..c933f3102bb6 100644 --- a/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/searchcatalogs/AsyncSearchCatalogs.java +++ b/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/searchcatalogs/AsyncSearchCatalogs.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncSearchCatalogs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (PrivateCatalogClient privateCatalogClient = PrivateCatalogClient.create()) { SearchCatalogsRequest request = SearchCatalogsRequest.newBuilder() diff --git a/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/searchcatalogs/AsyncSearchCatalogsPaged.java b/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/searchcatalogs/AsyncSearchCatalogsPaged.java index 83ef240bb1eb..761ad50f75ec 100644 --- a/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/searchcatalogs/AsyncSearchCatalogsPaged.java +++ b/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/searchcatalogs/AsyncSearchCatalogsPaged.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncSearchCatalogsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (PrivateCatalogClient privateCatalogClient = PrivateCatalogClient.create()) { SearchCatalogsRequest request = SearchCatalogsRequest.newBuilder() diff --git a/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/searchcatalogs/SyncSearchCatalogs.java b/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/searchcatalogs/SyncSearchCatalogs.java index 48bb573d25f8..4f23166a9050 100644 --- a/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/searchcatalogs/SyncSearchCatalogs.java +++ b/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/searchcatalogs/SyncSearchCatalogs.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncSearchCatalogs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (PrivateCatalogClient privateCatalogClient = PrivateCatalogClient.create()) { SearchCatalogsRequest request = SearchCatalogsRequest.newBuilder() diff --git a/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/searchproducts/AsyncSearchProducts.java b/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/searchproducts/AsyncSearchProducts.java index 81e38b718f9c..0b9faced4f8e 100644 --- a/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/searchproducts/AsyncSearchProducts.java +++ b/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/searchproducts/AsyncSearchProducts.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncSearchProducts() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (PrivateCatalogClient privateCatalogClient = PrivateCatalogClient.create()) { SearchProductsRequest request = SearchProductsRequest.newBuilder() diff --git a/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/searchproducts/AsyncSearchProductsPaged.java b/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/searchproducts/AsyncSearchProductsPaged.java index 518887e4a401..897d0f07599b 100644 --- a/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/searchproducts/AsyncSearchProductsPaged.java +++ b/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/searchproducts/AsyncSearchProductsPaged.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncSearchProductsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (PrivateCatalogClient privateCatalogClient = PrivateCatalogClient.create()) { SearchProductsRequest request = SearchProductsRequest.newBuilder() diff --git a/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/searchproducts/SyncSearchProducts.java b/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/searchproducts/SyncSearchProducts.java index dd4b2a6d5ea3..5658b0e57d65 100644 --- a/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/searchproducts/SyncSearchProducts.java +++ b/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/searchproducts/SyncSearchProducts.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncSearchProducts() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (PrivateCatalogClient privateCatalogClient = PrivateCatalogClient.create()) { SearchProductsRequest request = SearchProductsRequest.newBuilder() diff --git a/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/searchversions/AsyncSearchVersions.java b/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/searchversions/AsyncSearchVersions.java index 81c7ab1b044e..00051fe09a64 100644 --- a/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/searchversions/AsyncSearchVersions.java +++ b/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/searchversions/AsyncSearchVersions.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncSearchVersions() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (PrivateCatalogClient privateCatalogClient = PrivateCatalogClient.create()) { SearchVersionsRequest request = SearchVersionsRequest.newBuilder() diff --git a/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/searchversions/AsyncSearchVersionsPaged.java b/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/searchversions/AsyncSearchVersionsPaged.java index 8ce7cb4fa92a..3db779f2fe91 100644 --- a/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/searchversions/AsyncSearchVersionsPaged.java +++ b/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/searchversions/AsyncSearchVersionsPaged.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncSearchVersionsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (PrivateCatalogClient privateCatalogClient = PrivateCatalogClient.create()) { SearchVersionsRequest request = SearchVersionsRequest.newBuilder() diff --git a/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/searchversions/SyncSearchVersions.java b/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/searchversions/SyncSearchVersions.java index dd2946223ebe..a4263d5c5ecd 100644 --- a/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/searchversions/SyncSearchVersions.java +++ b/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogclient/searchversions/SyncSearchVersions.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncSearchVersions() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (PrivateCatalogClient privateCatalogClient = PrivateCatalogClient.create()) { SearchVersionsRequest request = SearchVersionsRequest.newBuilder() diff --git a/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogsettings/searchcatalogs/SyncSearchCatalogs.java b/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogsettings/searchcatalogs/SyncSearchCatalogs.java index 56f9b77e0641..38a2b76a3564 100644 --- a/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogsettings/searchcatalogs/SyncSearchCatalogs.java +++ b/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/privatecatalogsettings/searchcatalogs/SyncSearchCatalogs.java @@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception { } public static void syncSearchCatalogs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library PrivateCatalogSettings.Builder privateCatalogSettingsBuilder = PrivateCatalogSettings.newBuilder(); privateCatalogSettingsBuilder .searchCatalogsSettings() .setRetrySettings( - privateCatalogSettingsBuilder - .searchCatalogsSettings() - .getRetrySettings() - .toBuilder() + privateCatalogSettingsBuilder.searchCatalogsSettings().getRetrySettings().toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); PrivateCatalogSettings privateCatalogSettings = privateCatalogSettingsBuilder.build(); diff --git a/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/stub/privatecatalogstubsettings/searchcatalogs/SyncSearchCatalogs.java b/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/stub/privatecatalogstubsettings/searchcatalogs/SyncSearchCatalogs.java index ab4f94c04f30..9ba817d676e0 100644 --- a/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/stub/privatecatalogstubsettings/searchcatalogs/SyncSearchCatalogs.java +++ b/java-private-catalog/samples/snippets/generated/com/google/cloud/privatecatalog/v1beta1/stub/privatecatalogstubsettings/searchcatalogs/SyncSearchCatalogs.java @@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception { } public static void syncSearchCatalogs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library PrivateCatalogStubSettings.Builder privateCatalogSettingsBuilder = PrivateCatalogStubSettings.newBuilder(); privateCatalogSettingsBuilder .searchCatalogsSettings() .setRetrySettings( - privateCatalogSettingsBuilder - .searchCatalogsSettings() - .getRetrySettings() - .toBuilder() + privateCatalogSettingsBuilder.searchCatalogsSettings().getRetrySettings().toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); PrivateCatalogStubSettings privateCatalogSettings = privateCatalogSettingsBuilder.build();