diff --git a/java-vision/README.md b/java-vision/README.md index a18aa250db9f..979513680ec9 100644 --- a/java-vision/README.md +++ b/java-vision/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.0.0 + 26.1.1 pom import @@ -50,7 +50,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.1.0') +implementation platform('com.google.cloud:libraries-bom:26.1.1') implementation 'com.google.cloud:google-cloud-vision' ``` diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorClient.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorClient.java index d3cf2a5f5e69..e4052e59e0cc 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorClient.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorClient.java @@ -40,8 +40,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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
  *   List requests = new ArrayList<>();
  *   BatchAnnotateImagesResponse response = imageAnnotatorClient.batchAnnotateImages(requests);
@@ -77,8 +80,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
  * ImageAnnotatorSettings imageAnnotatorSettings =
  *     ImageAnnotatorSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -89,8 +95,11 @@
  * 

To customize the endpoint: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * ImageAnnotatorSettings imageAnnotatorSettings =
  *     ImageAnnotatorSettings.newBuilder().setEndpoint(myEndpoint).build();
  * ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create(imageAnnotatorSettings);
@@ -100,8 +109,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
  * ImageAnnotatorSettings imageAnnotatorSettings =
  *     ImageAnnotatorSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -194,8 +206,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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
    *   List requests = new ArrayList<>();
    *   BatchAnnotateImagesResponse response = imageAnnotatorClient.batchAnnotateImages(requests);
@@ -219,8 +234,11 @@ public final BatchAnnotateImagesResponse batchAnnotateImages(
    * 

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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
    *   BatchAnnotateImagesRequest request =
    *       BatchAnnotateImagesRequest.newBuilder()
@@ -245,8 +263,11 @@ public final BatchAnnotateImagesResponse batchAnnotateImages(BatchAnnotateImages
    * 

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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
    *   BatchAnnotateImagesRequest request =
    *       BatchAnnotateImagesRequest.newBuilder()
@@ -277,8 +298,11 @@ public final BatchAnnotateImagesResponse batchAnnotateImages(BatchAnnotateImages
    * 

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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
    *   List requests = new ArrayList<>();
    *   BatchAnnotateFilesResponse response = imageAnnotatorClient.batchAnnotateFiles(requests);
@@ -307,8 +331,11 @@ public final BatchAnnotateFilesResponse batchAnnotateFiles(ListSample 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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
    *   BatchAnnotateFilesRequest request =
    *       BatchAnnotateFilesRequest.newBuilder()
@@ -338,8 +365,11 @@ public final BatchAnnotateFilesResponse batchAnnotateFiles(BatchAnnotateFilesReq
    * 

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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
    *   BatchAnnotateFilesRequest request =
    *       BatchAnnotateFilesRequest.newBuilder()
@@ -372,8 +402,11 @@ public final BatchAnnotateFilesResponse batchAnnotateFiles(BatchAnnotateFilesReq
    * 

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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
    *   List requests = new ArrayList<>();
    *   OutputConfig outputConfig = OutputConfig.newBuilder().build();
@@ -411,8 +444,11 @@ public final BatchAnnotateFilesResponse batchAnnotateFiles(BatchAnnotateFilesReq
    * 

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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
    *   AsyncBatchAnnotateImagesRequest request =
    *       AsyncBatchAnnotateImagesRequest.newBuilder()
@@ -447,8 +483,11 @@ public final BatchAnnotateFilesResponse batchAnnotateFiles(BatchAnnotateFilesReq
    * 

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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
    *   AsyncBatchAnnotateImagesRequest request =
    *       AsyncBatchAnnotateImagesRequest.newBuilder()
@@ -483,8 +522,11 @@ public final BatchAnnotateFilesResponse batchAnnotateFiles(BatchAnnotateFilesReq
    * 

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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
    *   AsyncBatchAnnotateImagesRequest request =
    *       AsyncBatchAnnotateImagesRequest.newBuilder()
@@ -515,8 +557,11 @@ public final BatchAnnotateFilesResponse batchAnnotateFiles(BatchAnnotateFilesReq
    * 

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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
    *   List requests = new ArrayList<>();
    *   AsyncBatchAnnotateFilesResponse response =
@@ -545,8 +590,11 @@ public final BatchAnnotateFilesResponse batchAnnotateFiles(BatchAnnotateFilesReq
    * 

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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
    *   AsyncBatchAnnotateFilesRequest request =
    *       AsyncBatchAnnotateFilesRequest.newBuilder()
@@ -577,8 +625,11 @@ public final BatchAnnotateFilesResponse batchAnnotateFiles(BatchAnnotateFilesReq
    * 

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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
    *   AsyncBatchAnnotateFilesRequest request =
    *       AsyncBatchAnnotateFilesRequest.newBuilder()
@@ -609,8 +660,11 @@ public final BatchAnnotateFilesResponse batchAnnotateFiles(BatchAnnotateFilesReq
    * 

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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
    *   AsyncBatchAnnotateFilesRequest request =
    *       AsyncBatchAnnotateFilesRequest.newBuilder()
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorSettings.java
index e70991ac91c5..e2e2d3208012 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorSettings.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorSettings.java
@@ -52,8 +52,11 @@
  * 

For example, to set the total timeout of batchAnnotateImages 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
  * ImageAnnotatorSettings.Builder imageAnnotatorSettingsBuilder =
  *     ImageAnnotatorSettings.newBuilder();
  * imageAnnotatorSettingsBuilder
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchClient.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchClient.java
index 2eb7f81a87a9..07e14db991a5 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchClient.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchClient.java
@@ -61,8 +61,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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
  *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
  *   ProductSet productSet = ProductSet.newBuilder().build();
@@ -100,8 +103,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
  * ProductSearchSettings productSearchSettings =
  *     ProductSearchSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -112,8 +118,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
  * ProductSearchSettings productSearchSettings =
  *     ProductSearchSettings.newBuilder().setEndpoint(myEndpoint).build();
  * ProductSearchClient productSearchClient = ProductSearchClient.create(productSearchSettings);
@@ -123,8 +132,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
  * ProductSearchSettings productSearchSettings =
  *     ProductSearchSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -223,8 +235,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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   ProductSet productSet = ProductSet.newBuilder().build();
@@ -266,8 +281,11 @@ public final ProductSet createProductSet(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   ProductSet productSet = ProductSet.newBuilder().build();
@@ -309,8 +327,11 @@ public final ProductSet createProductSet(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   CreateProductSetRequest request =
    *       CreateProductSetRequest.newBuilder()
@@ -342,8 +363,11 @@ public final ProductSet createProductSet(CreateProductSetRequest 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   CreateProductSetRequest request =
    *       CreateProductSetRequest.newBuilder()
@@ -375,8 +399,11 @@ public final UnaryCallable createProductSet
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (ProductSet element : productSearchClient.listProductSets(parent).iterateAll()) {
@@ -410,8 +437,11 @@ public final ListProductSetsPagedResponse listProductSets(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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (ProductSet element : productSearchClient.listProductSets(parent).iterateAll()) {
@@ -442,8 +472,11 @@ public final ListProductSetsPagedResponse listProductSets(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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ListProductSetsRequest request =
    *       ListProductSetsRequest.newBuilder()
@@ -477,8 +510,11 @@ public final ListProductSetsPagedResponse listProductSets(ListProductSetsRequest
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ListProductSetsRequest request =
    *       ListProductSetsRequest.newBuilder()
@@ -513,8 +549,11 @@ public final ListProductSetsPagedResponse listProductSets(ListProductSetsRequest
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ListProductSetsRequest request =
    *       ListProductSetsRequest.newBuilder()
@@ -556,8 +595,11 @@ public final ListProductSetsPagedResponse listProductSets(ListProductSetsRequest
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]");
    *   ProductSet response = productSearchClient.getProductSet(name);
@@ -587,8 +629,11 @@ public final ProductSet getProductSet(ProductSetName 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString();
    *   ProductSet response = productSearchClient.getProductSet(name);
@@ -617,8 +662,11 @@ public final ProductSet getProductSet(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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   GetProductSetRequest request =
    *       GetProductSetRequest.newBuilder()
@@ -648,8 +696,11 @@ public final ProductSet getProductSet(GetProductSetRequest 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   GetProductSetRequest request =
    *       GetProductSetRequest.newBuilder()
@@ -681,8 +732,11 @@ public final UnaryCallable getProductSetCallab
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ProductSet productSet = ProductSet.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -720,8 +774,11 @@ public final ProductSet updateProductSet(ProductSet productSet, FieldMask update
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   UpdateProductSetRequest request =
    *       UpdateProductSetRequest.newBuilder()
@@ -754,8 +811,11 @@ public final ProductSet updateProductSet(UpdateProductSetRequest 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   UpdateProductSetRequest request =
    *       UpdateProductSetRequest.newBuilder()
@@ -783,8 +843,11 @@ public final UnaryCallable updateProductSet
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]");
    *   productSearchClient.deleteProductSet(name);
@@ -811,8 +874,11 @@ public final void deleteProductSet(ProductSetName 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString();
    *   productSearchClient.deleteProductSet(name);
@@ -838,8 +904,11 @@ public final void deleteProductSet(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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   DeleteProductSetRequest request =
    *       DeleteProductSetRequest.newBuilder()
@@ -866,8 +935,11 @@ public final void deleteProductSet(DeleteProductSetRequest 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   DeleteProductSetRequest request =
    *       DeleteProductSetRequest.newBuilder()
@@ -898,8 +970,11 @@ public final UnaryCallable deleteProductSetCalla
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   Product product = Product.newBuilder().build();
@@ -942,8 +1017,11 @@ public final Product createProduct(LocationName parent, Product product, String
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   Product product = Product.newBuilder().build();
@@ -986,8 +1064,11 @@ public final Product createProduct(String parent, Product product, String produc
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   CreateProductRequest request =
    *       CreateProductRequest.newBuilder()
@@ -1021,8 +1102,11 @@ public final Product createProduct(CreateProductRequest 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   CreateProductRequest request =
    *       CreateProductRequest.newBuilder()
@@ -1053,8 +1137,11 @@ public final UnaryCallable createProductCallable(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (Product element : productSearchClient.listProducts(parent).iterateAll()) {
@@ -1088,8 +1175,11 @@ public final ListProductsPagedResponse listProducts(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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Product element : productSearchClient.listProducts(parent).iterateAll()) {
@@ -1120,8 +1210,11 @@ public final ListProductsPagedResponse listProducts(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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ListProductsRequest request =
    *       ListProductsRequest.newBuilder()
@@ -1155,8 +1248,11 @@ public final ListProductsPagedResponse listProducts(ListProductsRequest 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ListProductsRequest request =
    *       ListProductsRequest.newBuilder()
@@ -1191,8 +1287,11 @@ public final ListProductsPagedResponse listProducts(ListProductsRequest 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ListProductsRequest request =
    *       ListProductsRequest.newBuilder()
@@ -1232,8 +1331,11 @@ public final UnaryCallable listProduc
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ProductName name = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]");
    *   Product response = productSearchClient.getProduct(name);
@@ -1263,8 +1365,11 @@ public final Product getProduct(ProductName 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String name = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString();
    *   Product response = productSearchClient.getProduct(name);
@@ -1293,8 +1398,11 @@ public final Product getProduct(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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   GetProductRequest request =
    *       GetProductRequest.newBuilder()
@@ -1324,8 +1432,11 @@ public final Product getProduct(GetProductRequest 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   GetProductRequest request =
    *       GetProductRequest.newBuilder()
@@ -1363,8 +1474,11 @@ public final UnaryCallable getProductCallable() {
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   Product product = Product.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -1407,8 +1521,11 @@ public final Product updateProduct(Product product, FieldMask updateMask) {
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   UpdateProductRequest request =
    *       UpdateProductRequest.newBuilder()
@@ -1448,8 +1565,11 @@ public final Product updateProduct(UpdateProductRequest 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   UpdateProductRequest request =
    *       UpdateProductRequest.newBuilder()
@@ -1477,8 +1597,11 @@ public final UnaryCallable updateProductCallable(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ProductName name = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]");
    *   productSearchClient.deleteProduct(name);
@@ -1506,8 +1629,11 @@ public final void deleteProduct(ProductName 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String name = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString();
    *   productSearchClient.deleteProduct(name);
@@ -1534,8 +1660,11 @@ public final void deleteProduct(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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   DeleteProductRequest request =
    *       DeleteProductRequest.newBuilder()
@@ -1563,8 +1692,11 @@ public final void deleteProduct(DeleteProductRequest 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   DeleteProductRequest request =
    *       DeleteProductRequest.newBuilder()
@@ -1605,8 +1737,11 @@ public final UnaryCallable deleteProductCallable()
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ProductName parent = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]");
    *   ReferenceImage referenceImage = ReferenceImage.newBuilder().build();
@@ -1662,8 +1797,11 @@ public final ReferenceImage createReferenceImage(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String parent = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString();
    *   ReferenceImage referenceImage = ReferenceImage.newBuilder().build();
@@ -1719,8 +1857,11 @@ public final ReferenceImage createReferenceImage(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   CreateReferenceImageRequest request =
    *       CreateReferenceImageRequest.newBuilder()
@@ -1764,8 +1905,11 @@ public final ReferenceImage createReferenceImage(CreateReferenceImageRequest req
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   CreateReferenceImageRequest request =
    *       CreateReferenceImageRequest.newBuilder()
@@ -1797,8 +1941,11 @@ public final ReferenceImage createReferenceImage(CreateReferenceImageRequest req
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ReferenceImageName name =
    *       ReferenceImageName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]");
@@ -1831,8 +1978,11 @@ public final void deleteReferenceImage(ReferenceImageName 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String name =
    *       ReferenceImageName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]")
@@ -1864,8 +2014,11 @@ public final void deleteReferenceImage(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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   DeleteReferenceImageRequest request =
    *       DeleteReferenceImageRequest.newBuilder()
@@ -1896,8 +2049,11 @@ public final void deleteReferenceImage(DeleteReferenceImageRequest 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   DeleteReferenceImageRequest request =
    *       DeleteReferenceImageRequest.newBuilder()
@@ -1930,8 +2086,11 @@ public final UnaryCallable deleteReferenceIm
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ProductName parent = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]");
    *   for (ReferenceImage element : productSearchClient.listReferenceImages(parent).iterateAll()) {
@@ -1966,8 +2125,11 @@ public final ListReferenceImagesPagedResponse listReferenceImages(ProductName pa
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String parent = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString();
    *   for (ReferenceImage element : productSearchClient.listReferenceImages(parent).iterateAll()) {
@@ -2000,8 +2162,11 @@ public final ListReferenceImagesPagedResponse listReferenceImages(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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ListReferenceImagesRequest request =
    *       ListReferenceImagesRequest.newBuilder()
@@ -2037,8 +2202,11 @@ public final ListReferenceImagesPagedResponse listReferenceImages(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ListReferenceImagesRequest request =
    *       ListReferenceImagesRequest.newBuilder()
@@ -2074,8 +2242,11 @@ public final ListReferenceImagesPagedResponse listReferenceImages(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ListReferenceImagesRequest request =
    *       ListReferenceImagesRequest.newBuilder()
@@ -2117,8 +2288,11 @@ public final ListReferenceImagesPagedResponse listReferenceImages(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ReferenceImageName name =
    *       ReferenceImageName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]");
@@ -2152,8 +2326,11 @@ public final ReferenceImage getReferenceImage(ReferenceImageName 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String name =
    *       ReferenceImageName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]")
@@ -2185,8 +2362,11 @@ public final ReferenceImage getReferenceImage(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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   GetReferenceImageRequest request =
    *       GetReferenceImageRequest.newBuilder()
@@ -2218,8 +2398,11 @@ public final ReferenceImage getReferenceImage(GetReferenceImageRequest 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   GetReferenceImageRequest request =
    *       GetReferenceImageRequest.newBuilder()
@@ -2254,8 +2437,11 @@ public final UnaryCallable getReferenc
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]");
    *   ProductName product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]");
@@ -2294,8 +2480,11 @@ public final void addProductToProductSet(ProductSetName name, ProductName produc
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]");
    *   String product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString();
@@ -2334,8 +2523,11 @@ public final void addProductToProductSet(ProductSetName name, String product) {
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString();
    *   ProductName product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]");
@@ -2374,8 +2566,11 @@ public final void addProductToProductSet(String name, ProductName product) {
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString();
    *   String product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString();
@@ -2411,8 +2606,11 @@ public final void addProductToProductSet(String name, String product) {
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   AddProductToProductSetRequest request =
    *       AddProductToProductSetRequest.newBuilder()
@@ -2446,8 +2644,11 @@ public final void addProductToProductSet(AddProductToProductSetRequest 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   AddProductToProductSetRequest request =
    *       AddProductToProductSetRequest.newBuilder()
@@ -2473,8 +2674,11 @@ public final void addProductToProductSet(AddProductToProductSetRequest 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]");
    *   ProductName product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]");
@@ -2504,8 +2708,11 @@ public final void removeProductFromProductSet(ProductSetName name, ProductName p
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]");
    *   String product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString();
@@ -2535,8 +2742,11 @@ public final void removeProductFromProductSet(ProductSetName name, String produc
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString();
    *   ProductName product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]");
@@ -2566,8 +2776,11 @@ public final void removeProductFromProductSet(String name, ProductName product)
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString();
    *   String product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString();
@@ -2594,8 +2807,11 @@ public final void removeProductFromProductSet(String name, String product) {
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   RemoveProductFromProductSetRequest request =
    *       RemoveProductFromProductSetRequest.newBuilder()
@@ -2620,8 +2836,11 @@ public final void removeProductFromProductSet(RemoveProductFromProductSetRequest
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   RemoveProductFromProductSetRequest request =
    *       RemoveProductFromProductSetRequest.newBuilder()
@@ -2654,8 +2873,11 @@ public final void removeProductFromProductSet(RemoveProductFromProductSetRequest
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]");
    *   for (Product element : productSearchClient.listProductsInProductSet(name).iterateAll()) {
@@ -2690,8 +2912,11 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet(Prod
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString();
    *   for (Product element : productSearchClient.listProductsInProductSet(name).iterateAll()) {
@@ -2724,8 +2949,11 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet(Stri
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ListProductsInProductSetRequest request =
    *       ListProductsInProductSetRequest.newBuilder()
@@ -2761,8 +2989,11 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ListProductsInProductSetRequest request =
    *       ListProductsInProductSetRequest.newBuilder()
@@ -2798,8 +3029,11 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ListProductsInProductSetRequest request =
    *       ListProductsInProductSetRequest.newBuilder()
@@ -2845,8 +3079,11 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   ImportProductSetsInputConfig inputConfig = ImportProductSetsInputConfig.newBuilder().build();
@@ -2887,8 +3124,11 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   ImportProductSetsInputConfig inputConfig = ImportProductSetsInputConfig.newBuilder().build();
@@ -2926,8 +3166,11 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ImportProductSetsRequest request =
    *       ImportProductSetsRequest.newBuilder()
@@ -2964,8 +3207,11 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ImportProductSetsRequest request =
    *       ImportProductSetsRequest.newBuilder()
@@ -3002,8 +3248,11 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ImportProductSetsRequest request =
    *       ImportProductSetsRequest.newBuilder()
@@ -3049,8 +3298,11 @@ public final UnaryCallable importProductSet
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   productSearchClient.purgeProductsAsync(parent).get();
@@ -3098,8 +3350,11 @@ public final OperationFuture purgeProductsAsync(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   productSearchClient.purgeProductsAsync(parent).get();
@@ -3143,8 +3398,11 @@ public final OperationFuture purgeProductsAsync(S
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   PurgeProductsRequest request =
    *       PurgeProductsRequest.newBuilder()
@@ -3191,8 +3449,11 @@ public final OperationFuture purgeProductsAsync(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   PurgeProductsRequest request =
    *       PurgeProductsRequest.newBuilder()
@@ -3239,8 +3500,11 @@ public final OperationFuture purgeProductsAsync(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   PurgeProductsRequest request =
    *       PurgeProductsRequest.newBuilder()
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchSettings.java
index 948e34eb5ef7..d1d12f60c96c 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchSettings.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchSettings.java
@@ -59,16 +59,16 @@
  * 

For example, to set the total timeout of createProductSet 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
  * ProductSearchSettings.Builder productSearchSettingsBuilder = ProductSearchSettings.newBuilder();
  * productSearchSettingsBuilder
  *     .createProductSetSettings()
  *     .setRetrySettings(
- *         productSearchSettingsBuilder
- *             .createProductSetSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         productSearchSettingsBuilder.createProductSetSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * ProductSearchSettings productSearchSettings = productSearchSettingsBuilder.build();
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/package-info.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/package-info.java
index 01b562ec0919..4604adec721f 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/package-info.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/package-info.java
@@ -28,8 +28,11 @@
  * 

Sample for ImageAnnotatorClient: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
  *   List requests = new ArrayList<>();
  *   BatchAnnotateImagesResponse response = imageAnnotatorClient.batchAnnotateImages(requests);
@@ -57,8 +60,11 @@
  * 

Sample for ProductSearchClient: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
  *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
  *   ProductSet productSet = ProductSet.newBuilder().build();
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonImageAnnotatorStub.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonImageAnnotatorStub.java
index c07ae59b7f2d..bf2bf264d926 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonImageAnnotatorStub.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonImageAnnotatorStub.java
@@ -96,7 +96,7 @@ public class HttpJsonImageAnnotatorStub extends ImageAnnotatorStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearParent().build()))
+                                  .toBody("*", request.toBuilder().clearParent().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -135,7 +135,7 @@ public class HttpJsonImageAnnotatorStub extends ImageAnnotatorStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearParent().build()))
+                                  .toBody("*", request.toBuilder().clearParent().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -174,7 +174,7 @@ public class HttpJsonImageAnnotatorStub extends ImageAnnotatorStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearParent().build()))
+                                  .toBody("*", request.toBuilder().clearParent().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -216,7 +216,7 @@ public class HttpJsonImageAnnotatorStub extends ImageAnnotatorStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearParent().build()))
+                                  .toBody("*", request.toBuilder().clearParent().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonProductSearchStub.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonProductSearchStub.java
index b5b127dfe814..a5ad37392daf 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonProductSearchStub.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/HttpJsonProductSearchStub.java
@@ -120,7 +120,7 @@ public class HttpJsonProductSearchStub extends ProductSearchStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("productSet", request.getProductSet()))
+                                  .toBody("productSet", request.getProductSet(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -226,7 +226,7 @@ public class HttpJsonProductSearchStub extends ProductSearchStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("productSet", request.getProductSet()))
+                                  .toBody("productSet", request.getProductSet(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -295,7 +295,8 @@ public class HttpJsonProductSearchStub extends ProductSearchStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("product", request.getProduct()))
+                              ProtoRestSerializer.create()
+                                  .toBody("product", request.getProduct(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -399,7 +400,8 @@ public class HttpJsonProductSearchStub extends ProductSearchStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("product", request.getProduct()))
+                              ProtoRestSerializer.create()
+                                  .toBody("product", request.getProduct(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -470,7 +472,7 @@ public class HttpJsonProductSearchStub extends ProductSearchStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("referenceImage", request.getReferenceImage()))
+                                  .toBody("referenceImage", request.getReferenceImage(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -607,7 +609,7 @@ public class HttpJsonProductSearchStub extends ProductSearchStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearName().build()))
+                                  .toBody("*", request.toBuilder().clearName().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -643,7 +645,7 @@ public class HttpJsonProductSearchStub extends ProductSearchStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearName().build()))
+                                  .toBody("*", request.toBuilder().clearName().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -716,7 +718,7 @@ public class HttpJsonProductSearchStub extends ProductSearchStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearParent().build()))
+                                  .toBody("*", request.toBuilder().clearParent().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -755,7 +757,7 @@ public class HttpJsonProductSearchStub extends ProductSearchStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearParent().build()))
+                                  .toBody("*", request.toBuilder().clearParent().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStubSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStubSettings.java
index 8daa7c798054..86400478a0a2 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStubSettings.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStubSettings.java
@@ -75,8 +75,11 @@
  * 

For example, to set the total timeout of batchAnnotateImages 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
  * ImageAnnotatorStubSettings.Builder imageAnnotatorSettingsBuilder =
  *     ImageAnnotatorStubSettings.newBuilder();
  * imageAnnotatorSettingsBuilder
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStubSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStubSettings.java
index 7c1b0a74254e..c5399f28adf5 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStubSettings.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStubSettings.java
@@ -107,17 +107,17 @@
  * 

For example, to set the total timeout of createProductSet 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
  * ProductSearchStubSettings.Builder productSearchSettingsBuilder =
  *     ProductSearchStubSettings.newBuilder();
  * productSearchSettingsBuilder
  *     .createProductSetSettings()
  *     .setRetrySettings(
- *         productSearchSettingsBuilder
- *             .createProductSetSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         productSearchSettingsBuilder.createProductSetSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * ProductSearchStubSettings productSearchSettings = productSearchSettingsBuilder.build();
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorClient.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorClient.java
index 8d16fb8402d5..9b220983e950 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorClient.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorClient.java
@@ -36,8 +36,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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
  *   List requests = new ArrayList<>();
  *   BatchAnnotateImagesResponse response = imageAnnotatorClient.batchAnnotateImages(requests);
@@ -73,8 +76,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
  * ImageAnnotatorSettings imageAnnotatorSettings =
  *     ImageAnnotatorSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -85,8 +91,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
  * ImageAnnotatorSettings imageAnnotatorSettings =
  *     ImageAnnotatorSettings.newBuilder().setEndpoint(myEndpoint).build();
  * ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create(imageAnnotatorSettings);
@@ -96,8 +105,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
  * ImageAnnotatorSettings imageAnnotatorSettings =
  *     ImageAnnotatorSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -166,8 +178,11 @@ public ImageAnnotatorStub 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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
    *   List requests = new ArrayList<>();
    *   BatchAnnotateImagesResponse response = imageAnnotatorClient.batchAnnotateImages(requests);
@@ -191,8 +206,11 @@ public final BatchAnnotateImagesResponse batchAnnotateImages(
    * 

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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
    *   BatchAnnotateImagesRequest request =
    *       BatchAnnotateImagesRequest.newBuilder()
@@ -216,8 +234,11 @@ public final BatchAnnotateImagesResponse batchAnnotateImages(BatchAnnotateImages
    * 

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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
    *   BatchAnnotateImagesRequest request =
    *       BatchAnnotateImagesRequest.newBuilder()
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorSettings.java
index 058193a73ad5..5da85f32af54 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorSettings.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorSettings.java
@@ -50,8 +50,11 @@
  * 

For example, to set the total timeout of batchAnnotateImages 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
  * ImageAnnotatorSettings.Builder imageAnnotatorSettingsBuilder =
  *     ImageAnnotatorSettings.newBuilder();
  * imageAnnotatorSettingsBuilder
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/package-info.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/package-info.java
index b77de0aa9e65..9220329c88a8 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/package-info.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/package-info.java
@@ -26,8 +26,11 @@
  * 

Sample for ImageAnnotatorClient: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
  *   List requests = new ArrayList<>();
  *   BatchAnnotateImagesResponse response = imageAnnotatorClient.batchAnnotateImages(requests);
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/HttpJsonImageAnnotatorStub.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/HttpJsonImageAnnotatorStub.java
index 3b2a35511bfd..52cdf9382108 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/HttpJsonImageAnnotatorStub.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/HttpJsonImageAnnotatorStub.java
@@ -75,7 +75,8 @@ public class HttpJsonImageAnnotatorStub extends ImageAnnotatorStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("*", request.toBuilder().build()))
+                              ProtoRestSerializer.create()
+                                  .toBody("*", request.toBuilder().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStubSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStubSettings.java
index 424d51e6948a..8e99499dccad 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStubSettings.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStubSettings.java
@@ -63,8 +63,11 @@
  * 

For example, to set the total timeout of batchAnnotateImages 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
  * ImageAnnotatorStubSettings.Builder imageAnnotatorSettingsBuilder =
  *     ImageAnnotatorStubSettings.newBuilder();
  * imageAnnotatorSettingsBuilder
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClient.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClient.java
index 10430a6c4dfa..f1e9ad6c2093 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClient.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClient.java
@@ -40,8 +40,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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
  *   List requests = new ArrayList<>();
  *   BatchAnnotateImagesResponse response = imageAnnotatorClient.batchAnnotateImages(requests);
@@ -77,8 +80,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
  * ImageAnnotatorSettings imageAnnotatorSettings =
  *     ImageAnnotatorSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -89,8 +95,11 @@
  * 

To customize the endpoint: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * ImageAnnotatorSettings imageAnnotatorSettings =
  *     ImageAnnotatorSettings.newBuilder().setEndpoint(myEndpoint).build();
  * ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create(imageAnnotatorSettings);
@@ -100,8 +109,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
  * ImageAnnotatorSettings imageAnnotatorSettings =
  *     ImageAnnotatorSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -195,8 +207,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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
    *   List requests = new ArrayList<>();
    *   BatchAnnotateImagesResponse response = imageAnnotatorClient.batchAnnotateImages(requests);
@@ -220,8 +235,11 @@ public final BatchAnnotateImagesResponse batchAnnotateImages(
    * 

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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
    *   BatchAnnotateImagesRequest request =
    *       BatchAnnotateImagesRequest.newBuilder()
@@ -245,8 +263,11 @@ public final BatchAnnotateImagesResponse batchAnnotateImages(BatchAnnotateImages
    * 

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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
    *   BatchAnnotateImagesRequest request =
    *       BatchAnnotateImagesRequest.newBuilder()
@@ -275,8 +296,11 @@ public final BatchAnnotateImagesResponse batchAnnotateImages(BatchAnnotateImages
    * 

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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
    *   List requests = new ArrayList<>();
    *   AsyncBatchAnnotateFilesResponse response =
@@ -305,8 +329,11 @@ public final BatchAnnotateImagesResponse batchAnnotateImages(BatchAnnotateImages
    * 

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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
    *   AsyncBatchAnnotateFilesRequest request =
    *       AsyncBatchAnnotateFilesRequest.newBuilder()
@@ -336,8 +363,11 @@ public final BatchAnnotateImagesResponse batchAnnotateImages(BatchAnnotateImages
    * 

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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
    *   AsyncBatchAnnotateFilesRequest request =
    *       AsyncBatchAnnotateFilesRequest.newBuilder()
@@ -367,8 +397,11 @@ public final BatchAnnotateImagesResponse batchAnnotateImages(BatchAnnotateImages
    * 

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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
    *   AsyncBatchAnnotateFilesRequest request =
    *       AsyncBatchAnnotateFilesRequest.newBuilder()
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorSettings.java
index 238b1be077a8..553849807e0a 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorSettings.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorSettings.java
@@ -52,8 +52,11 @@
  * 

For example, to set the total timeout of batchAnnotateImages 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
  * ImageAnnotatorSettings.Builder imageAnnotatorSettingsBuilder =
  *     ImageAnnotatorSettings.newBuilder();
  * imageAnnotatorSettingsBuilder
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/package-info.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/package-info.java
index fdf5c84c7720..f1254f6cdf57 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/package-info.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/package-info.java
@@ -26,8 +26,11 @@
  * 

Sample for ImageAnnotatorClient: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
  *   List requests = new ArrayList<>();
  *   BatchAnnotateImagesResponse response = imageAnnotatorClient.batchAnnotateImages(requests);
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/HttpJsonImageAnnotatorStub.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/HttpJsonImageAnnotatorStub.java
index 3d5e84f5bd3b..7668adce3e86 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/HttpJsonImageAnnotatorStub.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/HttpJsonImageAnnotatorStub.java
@@ -86,7 +86,8 @@ public class HttpJsonImageAnnotatorStub extends ImageAnnotatorStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("*", request.toBuilder().build()))
+                              ProtoRestSerializer.create()
+                                  .toBody("*", request.toBuilder().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -121,7 +122,8 @@ public class HttpJsonImageAnnotatorStub extends ImageAnnotatorStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("*", request.toBuilder().build()))
+                              ProtoRestSerializer.create()
+                                  .toBody("*", request.toBuilder().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStubSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStubSettings.java
index 485b965c83e2..eab5af0ff930 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStubSettings.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStubSettings.java
@@ -71,8 +71,11 @@
  * 

For example, to set the total timeout of batchAnnotateImages 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
  * ImageAnnotatorStubSettings.Builder imageAnnotatorSettingsBuilder =
  *     ImageAnnotatorStubSettings.newBuilder();
  * imageAnnotatorSettingsBuilder
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClient.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClient.java
index 44a6355ac218..fb9e74cb83a6 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClient.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClient.java
@@ -40,8 +40,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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
  *   List requests = new ArrayList<>();
  *   BatchAnnotateImagesResponse response = imageAnnotatorClient.batchAnnotateImages(requests);
@@ -77,8 +80,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
  * ImageAnnotatorSettings imageAnnotatorSettings =
  *     ImageAnnotatorSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -89,8 +95,11 @@
  * 

To customize the endpoint: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * ImageAnnotatorSettings imageAnnotatorSettings =
  *     ImageAnnotatorSettings.newBuilder().setEndpoint(myEndpoint).build();
  * ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create(imageAnnotatorSettings);
@@ -100,8 +109,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
  * ImageAnnotatorSettings imageAnnotatorSettings =
  *     ImageAnnotatorSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -195,8 +207,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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
    *   List requests = new ArrayList<>();
    *   BatchAnnotateImagesResponse response = imageAnnotatorClient.batchAnnotateImages(requests);
@@ -220,8 +235,11 @@ public final BatchAnnotateImagesResponse batchAnnotateImages(
    * 

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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
    *   BatchAnnotateImagesRequest request =
    *       BatchAnnotateImagesRequest.newBuilder()
@@ -245,8 +263,11 @@ public final BatchAnnotateImagesResponse batchAnnotateImages(BatchAnnotateImages
    * 

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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
    *   BatchAnnotateImagesRequest request =
    *       BatchAnnotateImagesRequest.newBuilder()
@@ -275,8 +296,11 @@ public final BatchAnnotateImagesResponse batchAnnotateImages(BatchAnnotateImages
    * 

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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
    *   List requests = new ArrayList<>();
    *   AsyncBatchAnnotateFilesResponse response =
@@ -305,8 +329,11 @@ public final BatchAnnotateImagesResponse batchAnnotateImages(BatchAnnotateImages
    * 

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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
    *   AsyncBatchAnnotateFilesRequest request =
    *       AsyncBatchAnnotateFilesRequest.newBuilder()
@@ -336,8 +363,11 @@ public final BatchAnnotateImagesResponse batchAnnotateImages(BatchAnnotateImages
    * 

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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
    *   AsyncBatchAnnotateFilesRequest request =
    *       AsyncBatchAnnotateFilesRequest.newBuilder()
@@ -367,8 +397,11 @@ public final BatchAnnotateImagesResponse batchAnnotateImages(BatchAnnotateImages
    * 

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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
    *   AsyncBatchAnnotateFilesRequest request =
    *       AsyncBatchAnnotateFilesRequest.newBuilder()
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorSettings.java
index fc248ff6a044..95accabd60a5 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorSettings.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorSettings.java
@@ -52,8 +52,11 @@
  * 

For example, to set the total timeout of batchAnnotateImages 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
  * ImageAnnotatorSettings.Builder imageAnnotatorSettingsBuilder =
  *     ImageAnnotatorSettings.newBuilder();
  * imageAnnotatorSettingsBuilder
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchClient.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchClient.java
index 62156f45db84..c12c902cc268 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchClient.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchClient.java
@@ -61,8 +61,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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
  *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
  *   ProductSet productSet = ProductSet.newBuilder().build();
@@ -100,8 +103,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
  * ProductSearchSettings productSearchSettings =
  *     ProductSearchSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -112,8 +118,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
  * ProductSearchSettings productSearchSettings =
  *     ProductSearchSettings.newBuilder().setEndpoint(myEndpoint).build();
  * ProductSearchClient productSearchClient = ProductSearchClient.create(productSearchSettings);
@@ -123,8 +132,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
  * ProductSearchSettings productSearchSettings =
  *     ProductSearchSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -224,8 +236,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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   ProductSet productSet = ProductSet.newBuilder().build();
@@ -267,8 +282,11 @@ public final ProductSet createProductSet(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   ProductSet productSet = ProductSet.newBuilder().build();
@@ -310,8 +328,11 @@ public final ProductSet createProductSet(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   CreateProductSetRequest request =
    *       CreateProductSetRequest.newBuilder()
@@ -343,8 +364,11 @@ public final ProductSet createProductSet(CreateProductSetRequest 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   CreateProductSetRequest request =
    *       CreateProductSetRequest.newBuilder()
@@ -376,8 +400,11 @@ public final UnaryCallable createProductSet
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (ProductSet element : productSearchClient.listProductSets(parent).iterateAll()) {
@@ -411,8 +438,11 @@ public final ListProductSetsPagedResponse listProductSets(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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (ProductSet element : productSearchClient.listProductSets(parent).iterateAll()) {
@@ -443,8 +473,11 @@ public final ListProductSetsPagedResponse listProductSets(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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ListProductSetsRequest request =
    *       ListProductSetsRequest.newBuilder()
@@ -478,8 +511,11 @@ public final ListProductSetsPagedResponse listProductSets(ListProductSetsRequest
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ListProductSetsRequest request =
    *       ListProductSetsRequest.newBuilder()
@@ -514,8 +550,11 @@ public final ListProductSetsPagedResponse listProductSets(ListProductSetsRequest
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ListProductSetsRequest request =
    *       ListProductSetsRequest.newBuilder()
@@ -557,8 +596,11 @@ public final ListProductSetsPagedResponse listProductSets(ListProductSetsRequest
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]");
    *   ProductSet response = productSearchClient.getProductSet(name);
@@ -588,8 +630,11 @@ public final ProductSet getProductSet(ProductSetName 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString();
    *   ProductSet response = productSearchClient.getProductSet(name);
@@ -618,8 +663,11 @@ public final ProductSet getProductSet(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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   GetProductSetRequest request =
    *       GetProductSetRequest.newBuilder()
@@ -649,8 +697,11 @@ public final ProductSet getProductSet(GetProductSetRequest 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   GetProductSetRequest request =
    *       GetProductSetRequest.newBuilder()
@@ -682,8 +733,11 @@ public final UnaryCallable getProductSetCallab
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ProductSet productSet = ProductSet.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -721,8 +775,11 @@ public final ProductSet updateProductSet(ProductSet productSet, FieldMask update
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   UpdateProductSetRequest request =
    *       UpdateProductSetRequest.newBuilder()
@@ -755,8 +812,11 @@ public final ProductSet updateProductSet(UpdateProductSetRequest 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   UpdateProductSetRequest request =
    *       UpdateProductSetRequest.newBuilder()
@@ -790,8 +850,11 @@ public final UnaryCallable updateProductSet
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]");
    *   productSearchClient.deleteProductSet(name);
@@ -824,8 +887,11 @@ public final void deleteProductSet(ProductSetName 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString();
    *   productSearchClient.deleteProductSet(name);
@@ -857,8 +923,11 @@ public final void deleteProductSet(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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   DeleteProductSetRequest request =
    *       DeleteProductSetRequest.newBuilder()
@@ -891,8 +960,11 @@ public final void deleteProductSet(DeleteProductSetRequest 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   DeleteProductSetRequest request =
    *       DeleteProductSetRequest.newBuilder()
@@ -923,8 +995,11 @@ public final UnaryCallable deleteProductSetCalla
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   Product product = Product.newBuilder().build();
@@ -967,8 +1042,11 @@ public final Product createProduct(LocationName parent, Product product, String
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   Product product = Product.newBuilder().build();
@@ -1011,8 +1089,11 @@ public final Product createProduct(String parent, Product product, String produc
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   CreateProductRequest request =
    *       CreateProductRequest.newBuilder()
@@ -1046,8 +1127,11 @@ public final Product createProduct(CreateProductRequest 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   CreateProductRequest request =
    *       CreateProductRequest.newBuilder()
@@ -1078,8 +1162,11 @@ public final UnaryCallable createProductCallable(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (Product element : productSearchClient.listProducts(parent).iterateAll()) {
@@ -1113,8 +1200,11 @@ public final ListProductsPagedResponse listProducts(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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Product element : productSearchClient.listProducts(parent).iterateAll()) {
@@ -1145,8 +1235,11 @@ public final ListProductsPagedResponse listProducts(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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ListProductsRequest request =
    *       ListProductsRequest.newBuilder()
@@ -1180,8 +1273,11 @@ public final ListProductsPagedResponse listProducts(ListProductsRequest 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ListProductsRequest request =
    *       ListProductsRequest.newBuilder()
@@ -1216,8 +1312,11 @@ public final ListProductsPagedResponse listProducts(ListProductsRequest 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ListProductsRequest request =
    *       ListProductsRequest.newBuilder()
@@ -1257,8 +1356,11 @@ public final UnaryCallable listProduc
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ProductName name = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]");
    *   Product response = productSearchClient.getProduct(name);
@@ -1288,8 +1390,11 @@ public final Product getProduct(ProductName 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String name = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString();
    *   Product response = productSearchClient.getProduct(name);
@@ -1318,8 +1423,11 @@ public final Product getProduct(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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   GetProductRequest request =
    *       GetProductRequest.newBuilder()
@@ -1349,8 +1457,11 @@ public final Product getProduct(GetProductRequest 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   GetProductRequest request =
    *       GetProductRequest.newBuilder()
@@ -1388,8 +1499,11 @@ public final UnaryCallable getProductCallable() {
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   Product product = Product.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -1432,8 +1546,11 @@ public final Product updateProduct(Product product, FieldMask updateMask) {
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   UpdateProductRequest request =
    *       UpdateProductRequest.newBuilder()
@@ -1473,8 +1590,11 @@ public final Product updateProduct(UpdateProductRequest 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   UpdateProductRequest request =
    *       UpdateProductRequest.newBuilder()
@@ -1508,8 +1628,11 @@ public final UnaryCallable updateProductCallable(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ProductName name = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]");
    *   productSearchClient.deleteProduct(name);
@@ -1543,8 +1666,11 @@ public final void deleteProduct(ProductName 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String name = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString();
    *   productSearchClient.deleteProduct(name);
@@ -1577,8 +1703,11 @@ public final void deleteProduct(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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   DeleteProductRequest request =
    *       DeleteProductRequest.newBuilder()
@@ -1612,8 +1741,11 @@ public final void deleteProduct(DeleteProductRequest 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   DeleteProductRequest request =
    *       DeleteProductRequest.newBuilder()
@@ -1654,8 +1786,11 @@ public final UnaryCallable deleteProductCallable()
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ProductName parent = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]");
    *   ReferenceImage referenceImage = ReferenceImage.newBuilder().build();
@@ -1711,8 +1846,11 @@ public final ReferenceImage createReferenceImage(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String parent = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString();
    *   ReferenceImage referenceImage = ReferenceImage.newBuilder().build();
@@ -1768,8 +1906,11 @@ public final ReferenceImage createReferenceImage(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   CreateReferenceImageRequest request =
    *       CreateReferenceImageRequest.newBuilder()
@@ -1813,8 +1954,11 @@ public final ReferenceImage createReferenceImage(CreateReferenceImageRequest req
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   CreateReferenceImageRequest request =
    *       CreateReferenceImageRequest.newBuilder()
@@ -1852,8 +1996,11 @@ public final ReferenceImage createReferenceImage(CreateReferenceImageRequest req
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ReferenceImageName name =
    *       ReferenceImageName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]");
@@ -1892,8 +2039,11 @@ public final void deleteReferenceImage(ReferenceImageName 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String name =
    *       ReferenceImageName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]")
@@ -1931,8 +2081,11 @@ public final void deleteReferenceImage(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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   DeleteReferenceImageRequest request =
    *       DeleteReferenceImageRequest.newBuilder()
@@ -1969,8 +2122,11 @@ public final void deleteReferenceImage(DeleteReferenceImageRequest 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   DeleteReferenceImageRequest request =
    *       DeleteReferenceImageRequest.newBuilder()
@@ -2003,8 +2159,11 @@ public final UnaryCallable deleteReferenceIm
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ProductName parent = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]");
    *   for (ReferenceImage element : productSearchClient.listReferenceImages(parent).iterateAll()) {
@@ -2039,8 +2198,11 @@ public final ListReferenceImagesPagedResponse listReferenceImages(ProductName pa
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String parent = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString();
    *   for (ReferenceImage element : productSearchClient.listReferenceImages(parent).iterateAll()) {
@@ -2073,8 +2235,11 @@ public final ListReferenceImagesPagedResponse listReferenceImages(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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ListReferenceImagesRequest request =
    *       ListReferenceImagesRequest.newBuilder()
@@ -2110,8 +2275,11 @@ public final ListReferenceImagesPagedResponse listReferenceImages(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ListReferenceImagesRequest request =
    *       ListReferenceImagesRequest.newBuilder()
@@ -2147,8 +2315,11 @@ public final ListReferenceImagesPagedResponse listReferenceImages(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ListReferenceImagesRequest request =
    *       ListReferenceImagesRequest.newBuilder()
@@ -2190,8 +2361,11 @@ public final ListReferenceImagesPagedResponse listReferenceImages(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ReferenceImageName name =
    *       ReferenceImageName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]");
@@ -2225,8 +2399,11 @@ public final ReferenceImage getReferenceImage(ReferenceImageName 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String name =
    *       ReferenceImageName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]")
@@ -2258,8 +2435,11 @@ public final ReferenceImage getReferenceImage(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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   GetReferenceImageRequest request =
    *       GetReferenceImageRequest.newBuilder()
@@ -2291,8 +2471,11 @@ public final ReferenceImage getReferenceImage(GetReferenceImageRequest 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   GetReferenceImageRequest request =
    *       GetReferenceImageRequest.newBuilder()
@@ -2327,8 +2510,11 @@ public final UnaryCallable getReferenc
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]");
    *   ProductName product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]");
@@ -2367,8 +2553,11 @@ public final void addProductToProductSet(ProductSetName name, ProductName produc
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]");
    *   String product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString();
@@ -2407,8 +2596,11 @@ public final void addProductToProductSet(ProductSetName name, String product) {
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString();
    *   ProductName product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]");
@@ -2447,8 +2639,11 @@ public final void addProductToProductSet(String name, ProductName product) {
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString();
    *   String product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString();
@@ -2484,8 +2679,11 @@ public final void addProductToProductSet(String name, String product) {
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   AddProductToProductSetRequest request =
    *       AddProductToProductSetRequest.newBuilder()
@@ -2519,8 +2717,11 @@ public final void addProductToProductSet(AddProductToProductSetRequest 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   AddProductToProductSetRequest request =
    *       AddProductToProductSetRequest.newBuilder()
@@ -2552,8 +2753,11 @@ public final void addProductToProductSet(AddProductToProductSetRequest 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]");
    *   ProductName product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]");
@@ -2589,8 +2793,11 @@ public final void removeProductFromProductSet(ProductSetName name, ProductName p
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]");
    *   String product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString();
@@ -2626,8 +2833,11 @@ public final void removeProductFromProductSet(ProductSetName name, String produc
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString();
    *   ProductName product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]");
@@ -2663,8 +2873,11 @@ public final void removeProductFromProductSet(String name, ProductName product)
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString();
    *   String product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString();
@@ -2697,8 +2910,11 @@ public final void removeProductFromProductSet(String name, String product) {
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   RemoveProductFromProductSetRequest request =
    *       RemoveProductFromProductSetRequest.newBuilder()
@@ -2729,8 +2945,11 @@ public final void removeProductFromProductSet(RemoveProductFromProductSetRequest
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   RemoveProductFromProductSetRequest request =
    *       RemoveProductFromProductSetRequest.newBuilder()
@@ -2763,8 +2982,11 @@ public final void removeProductFromProductSet(RemoveProductFromProductSetRequest
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]");
    *   for (Product element : productSearchClient.listProductsInProductSet(name).iterateAll()) {
@@ -2799,8 +3021,11 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet(Prod
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString();
    *   for (Product element : productSearchClient.listProductsInProductSet(name).iterateAll()) {
@@ -2833,8 +3058,11 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet(Stri
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ListProductsInProductSetRequest request =
    *       ListProductsInProductSetRequest.newBuilder()
@@ -2870,8 +3098,11 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ListProductsInProductSetRequest request =
    *       ListProductsInProductSetRequest.newBuilder()
@@ -2907,8 +3138,11 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ListProductsInProductSetRequest request =
    *       ListProductsInProductSetRequest.newBuilder()
@@ -2954,8 +3188,11 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   ImportProductSetsInputConfig inputConfig = ImportProductSetsInputConfig.newBuilder().build();
@@ -2996,8 +3233,11 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   ImportProductSetsInputConfig inputConfig = ImportProductSetsInputConfig.newBuilder().build();
@@ -3035,8 +3275,11 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ImportProductSetsRequest request =
    *       ImportProductSetsRequest.newBuilder()
@@ -3073,8 +3316,11 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ImportProductSetsRequest request =
    *       ImportProductSetsRequest.newBuilder()
@@ -3111,8 +3357,11 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ImportProductSetsRequest request =
    *       ImportProductSetsRequest.newBuilder()
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchSettings.java
index 46e8ae4f7c58..becac393a64b 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchSettings.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchSettings.java
@@ -59,16 +59,16 @@
  * 

For example, to set the total timeout of createProductSet 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
  * ProductSearchSettings.Builder productSearchSettingsBuilder = ProductSearchSettings.newBuilder();
  * productSearchSettingsBuilder
  *     .createProductSetSettings()
  *     .setRetrySettings(
- *         productSearchSettingsBuilder
- *             .createProductSetSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         productSearchSettingsBuilder.createProductSetSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * ProductSearchSettings productSearchSettings = productSearchSettingsBuilder.build();
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/package-info.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/package-info.java
index 6d7851c9caba..705b0cc2846c 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/package-info.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/package-info.java
@@ -26,8 +26,11 @@
  * 

Sample for ImageAnnotatorClient: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
  *   List requests = new ArrayList<>();
  *   BatchAnnotateImagesResponse response = imageAnnotatorClient.batchAnnotateImages(requests);
@@ -55,8 +58,11 @@
  * 

Sample for ProductSearchClient: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
  *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
  *   ProductSet productSet = ProductSet.newBuilder().build();
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonImageAnnotatorStub.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonImageAnnotatorStub.java
index e75814f71c86..bc731e1f87d7 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonImageAnnotatorStub.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonImageAnnotatorStub.java
@@ -86,7 +86,8 @@ public class HttpJsonImageAnnotatorStub extends ImageAnnotatorStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("*", request.toBuilder().build()))
+                              ProtoRestSerializer.create()
+                                  .toBody("*", request.toBuilder().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -121,7 +122,8 @@ public class HttpJsonImageAnnotatorStub extends ImageAnnotatorStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("*", request.toBuilder().build()))
+                              ProtoRestSerializer.create()
+                                  .toBody("*", request.toBuilder().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonProductSearchStub.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonProductSearchStub.java
index 2156152ce91a..adf0d2335b2e 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonProductSearchStub.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/HttpJsonProductSearchStub.java
@@ -118,7 +118,7 @@ public class HttpJsonProductSearchStub extends ProductSearchStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("productSet", request.getProductSet()))
+                                  .toBody("productSet", request.getProductSet(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -224,7 +224,7 @@ public class HttpJsonProductSearchStub extends ProductSearchStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("productSet", request.getProductSet()))
+                                  .toBody("productSet", request.getProductSet(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -293,7 +293,8 @@ public class HttpJsonProductSearchStub extends ProductSearchStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("product", request.getProduct()))
+                              ProtoRestSerializer.create()
+                                  .toBody("product", request.getProduct(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -397,7 +398,8 @@ public class HttpJsonProductSearchStub extends ProductSearchStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("product", request.getProduct()))
+                              ProtoRestSerializer.create()
+                                  .toBody("product", request.getProduct(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -468,7 +470,7 @@ public class HttpJsonProductSearchStub extends ProductSearchStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("referenceImage", request.getReferenceImage()))
+                                  .toBody("referenceImage", request.getReferenceImage(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -606,7 +608,7 @@ public class HttpJsonProductSearchStub extends ProductSearchStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearName().build()))
+                                  .toBody("*", request.toBuilder().clearName().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -643,7 +645,7 @@ public class HttpJsonProductSearchStub extends ProductSearchStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearName().build()))
+                                  .toBody("*", request.toBuilder().clearName().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -717,7 +719,7 @@ public class HttpJsonProductSearchStub extends ProductSearchStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearParent().build()))
+                                  .toBody("*", request.toBuilder().clearParent().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ImageAnnotatorStubSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ImageAnnotatorStubSettings.java
index 409fa48040c8..27d08b00d327 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ImageAnnotatorStubSettings.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ImageAnnotatorStubSettings.java
@@ -71,8 +71,11 @@
  * 

For example, to set the total timeout of batchAnnotateImages 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
  * ImageAnnotatorStubSettings.Builder imageAnnotatorSettingsBuilder =
  *     ImageAnnotatorStubSettings.newBuilder();
  * imageAnnotatorSettingsBuilder
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ProductSearchStubSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ProductSearchStubSettings.java
index e5ba04f4bfac..485c0939f8e3 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ProductSearchStubSettings.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ProductSearchStubSettings.java
@@ -106,17 +106,17 @@
  * 

For example, to set the total timeout of createProductSet 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
  * ProductSearchStubSettings.Builder productSearchSettingsBuilder =
  *     ProductSearchStubSettings.newBuilder();
  * productSearchSettingsBuilder
  *     .createProductSetSettings()
  *     .setRetrySettings(
- *         productSearchSettingsBuilder
- *             .createProductSetSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         productSearchSettingsBuilder.createProductSetSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * ProductSearchStubSettings productSearchSettings = productSearchSettingsBuilder.build();
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClient.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClient.java
index 2f1cabcf5c89..6d53017e3be1 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClient.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClient.java
@@ -40,8 +40,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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
  *   List requests = new ArrayList<>();
  *   BatchAnnotateImagesResponse response = imageAnnotatorClient.batchAnnotateImages(requests);
@@ -77,8 +80,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
  * ImageAnnotatorSettings imageAnnotatorSettings =
  *     ImageAnnotatorSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -89,8 +95,11 @@
  * 

To customize the endpoint: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * ImageAnnotatorSettings imageAnnotatorSettings =
  *     ImageAnnotatorSettings.newBuilder().setEndpoint(myEndpoint).build();
  * ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create(imageAnnotatorSettings);
@@ -100,8 +109,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
  * ImageAnnotatorSettings imageAnnotatorSettings =
  *     ImageAnnotatorSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -195,8 +207,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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
    *   List requests = new ArrayList<>();
    *   BatchAnnotateImagesResponse response = imageAnnotatorClient.batchAnnotateImages(requests);
@@ -220,8 +235,11 @@ public final BatchAnnotateImagesResponse batchAnnotateImages(
    * 

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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
    *   BatchAnnotateImagesRequest request =
    *       BatchAnnotateImagesRequest.newBuilder()
@@ -245,8 +263,11 @@ public final BatchAnnotateImagesResponse batchAnnotateImages(BatchAnnotateImages
    * 

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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
    *   BatchAnnotateImagesRequest request =
    *       BatchAnnotateImagesRequest.newBuilder()
@@ -276,8 +297,11 @@ public final BatchAnnotateImagesResponse batchAnnotateImages(BatchAnnotateImages
    * 

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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
    *   List requests = new ArrayList<>();
    *   BatchAnnotateFilesResponse response = imageAnnotatorClient.batchAnnotateFiles(requests);
@@ -306,8 +330,11 @@ public final BatchAnnotateFilesResponse batchAnnotateFiles(ListSample 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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
    *   BatchAnnotateFilesRequest request =
    *       BatchAnnotateFilesRequest.newBuilder()
@@ -336,8 +363,11 @@ public final BatchAnnotateFilesResponse batchAnnotateFiles(BatchAnnotateFilesReq
    * 

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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
    *   BatchAnnotateFilesRequest request =
    *       BatchAnnotateFilesRequest.newBuilder()
@@ -369,8 +399,11 @@ public final BatchAnnotateFilesResponse batchAnnotateFiles(BatchAnnotateFilesReq
    * 

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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
    *   List requests = new ArrayList<>();
    *   OutputConfig outputConfig = OutputConfig.newBuilder().build();
@@ -408,8 +441,11 @@ public final BatchAnnotateFilesResponse batchAnnotateFiles(BatchAnnotateFilesReq
    * 

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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
    *   AsyncBatchAnnotateImagesRequest request =
    *       AsyncBatchAnnotateImagesRequest.newBuilder()
@@ -443,8 +479,11 @@ public final BatchAnnotateFilesResponse batchAnnotateFiles(BatchAnnotateFilesReq
    * 

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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
    *   AsyncBatchAnnotateImagesRequest request =
    *       AsyncBatchAnnotateImagesRequest.newBuilder()
@@ -478,8 +517,11 @@ public final BatchAnnotateFilesResponse batchAnnotateFiles(BatchAnnotateFilesReq
    * 

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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
    *   AsyncBatchAnnotateImagesRequest request =
    *       AsyncBatchAnnotateImagesRequest.newBuilder()
@@ -509,8 +551,11 @@ public final BatchAnnotateFilesResponse batchAnnotateFiles(BatchAnnotateFilesReq
    * 

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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
    *   List requests = new ArrayList<>();
    *   AsyncBatchAnnotateFilesResponse response =
@@ -539,8 +584,11 @@ public final BatchAnnotateFilesResponse batchAnnotateFiles(BatchAnnotateFilesReq
    * 

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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
    *   AsyncBatchAnnotateFilesRequest request =
    *       AsyncBatchAnnotateFilesRequest.newBuilder()
@@ -570,8 +618,11 @@ public final BatchAnnotateFilesResponse batchAnnotateFiles(BatchAnnotateFilesReq
    * 

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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
    *   AsyncBatchAnnotateFilesRequest request =
    *       AsyncBatchAnnotateFilesRequest.newBuilder()
@@ -601,8 +652,11 @@ public final BatchAnnotateFilesResponse batchAnnotateFiles(BatchAnnotateFilesReq
    * 

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 (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
    *   AsyncBatchAnnotateFilesRequest request =
    *       AsyncBatchAnnotateFilesRequest.newBuilder()
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorSettings.java
index 02757a739afb..acaf411358b1 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorSettings.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorSettings.java
@@ -52,8 +52,11 @@
  * 

For example, to set the total timeout of batchAnnotateImages 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
  * ImageAnnotatorSettings.Builder imageAnnotatorSettingsBuilder =
  *     ImageAnnotatorSettings.newBuilder();
  * imageAnnotatorSettingsBuilder
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchClient.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchClient.java
index f4ee7d0caefe..9cca0b4648b3 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchClient.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchClient.java
@@ -61,8 +61,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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
  *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
  *   ProductSet productSet = ProductSet.newBuilder().build();
@@ -100,8 +103,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
  * ProductSearchSettings productSearchSettings =
  *     ProductSearchSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -112,8 +118,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
  * ProductSearchSettings productSearchSettings =
  *     ProductSearchSettings.newBuilder().setEndpoint(myEndpoint).build();
  * ProductSearchClient productSearchClient = ProductSearchClient.create(productSearchSettings);
@@ -123,8 +132,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
  * ProductSearchSettings productSearchSettings =
  *     ProductSearchSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -224,8 +236,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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   ProductSet productSet = ProductSet.newBuilder().build();
@@ -267,8 +282,11 @@ public final ProductSet createProductSet(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   ProductSet productSet = ProductSet.newBuilder().build();
@@ -310,8 +328,11 @@ public final ProductSet createProductSet(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   CreateProductSetRequest request =
    *       CreateProductSetRequest.newBuilder()
@@ -343,8 +364,11 @@ public final ProductSet createProductSet(CreateProductSetRequest 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   CreateProductSetRequest request =
    *       CreateProductSetRequest.newBuilder()
@@ -376,8 +400,11 @@ public final UnaryCallable createProductSet
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (ProductSet element : productSearchClient.listProductSets(parent).iterateAll()) {
@@ -411,8 +438,11 @@ public final ListProductSetsPagedResponse listProductSets(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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (ProductSet element : productSearchClient.listProductSets(parent).iterateAll()) {
@@ -443,8 +473,11 @@ public final ListProductSetsPagedResponse listProductSets(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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ListProductSetsRequest request =
    *       ListProductSetsRequest.newBuilder()
@@ -478,8 +511,11 @@ public final ListProductSetsPagedResponse listProductSets(ListProductSetsRequest
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ListProductSetsRequest request =
    *       ListProductSetsRequest.newBuilder()
@@ -514,8 +550,11 @@ public final ListProductSetsPagedResponse listProductSets(ListProductSetsRequest
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ListProductSetsRequest request =
    *       ListProductSetsRequest.newBuilder()
@@ -557,8 +596,11 @@ public final ListProductSetsPagedResponse listProductSets(ListProductSetsRequest
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]");
    *   ProductSet response = productSearchClient.getProductSet(name);
@@ -588,8 +630,11 @@ public final ProductSet getProductSet(ProductSetName 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString();
    *   ProductSet response = productSearchClient.getProductSet(name);
@@ -618,8 +663,11 @@ public final ProductSet getProductSet(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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   GetProductSetRequest request =
    *       GetProductSetRequest.newBuilder()
@@ -649,8 +697,11 @@ public final ProductSet getProductSet(GetProductSetRequest 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   GetProductSetRequest request =
    *       GetProductSetRequest.newBuilder()
@@ -682,8 +733,11 @@ public final UnaryCallable getProductSetCallab
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ProductSet productSet = ProductSet.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -721,8 +775,11 @@ public final ProductSet updateProductSet(ProductSet productSet, FieldMask update
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   UpdateProductSetRequest request =
    *       UpdateProductSetRequest.newBuilder()
@@ -755,8 +812,11 @@ public final ProductSet updateProductSet(UpdateProductSetRequest 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   UpdateProductSetRequest request =
    *       UpdateProductSetRequest.newBuilder()
@@ -784,8 +844,11 @@ public final UnaryCallable updateProductSet
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]");
    *   productSearchClient.deleteProductSet(name);
@@ -812,8 +875,11 @@ public final void deleteProductSet(ProductSetName 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString();
    *   productSearchClient.deleteProductSet(name);
@@ -839,8 +905,11 @@ public final void deleteProductSet(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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   DeleteProductSetRequest request =
    *       DeleteProductSetRequest.newBuilder()
@@ -867,8 +936,11 @@ public final void deleteProductSet(DeleteProductSetRequest 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   DeleteProductSetRequest request =
    *       DeleteProductSetRequest.newBuilder()
@@ -899,8 +971,11 @@ public final UnaryCallable deleteProductSetCalla
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   Product product = Product.newBuilder().build();
@@ -943,8 +1018,11 @@ public final Product createProduct(LocationName parent, Product product, String
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   Product product = Product.newBuilder().build();
@@ -987,8 +1065,11 @@ public final Product createProduct(String parent, Product product, String produc
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   CreateProductRequest request =
    *       CreateProductRequest.newBuilder()
@@ -1022,8 +1103,11 @@ public final Product createProduct(CreateProductRequest 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   CreateProductRequest request =
    *       CreateProductRequest.newBuilder()
@@ -1054,8 +1138,11 @@ public final UnaryCallable createProductCallable(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (Product element : productSearchClient.listProducts(parent).iterateAll()) {
@@ -1089,8 +1176,11 @@ public final ListProductsPagedResponse listProducts(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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Product element : productSearchClient.listProducts(parent).iterateAll()) {
@@ -1121,8 +1211,11 @@ public final ListProductsPagedResponse listProducts(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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ListProductsRequest request =
    *       ListProductsRequest.newBuilder()
@@ -1156,8 +1249,11 @@ public final ListProductsPagedResponse listProducts(ListProductsRequest 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ListProductsRequest request =
    *       ListProductsRequest.newBuilder()
@@ -1192,8 +1288,11 @@ public final ListProductsPagedResponse listProducts(ListProductsRequest 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ListProductsRequest request =
    *       ListProductsRequest.newBuilder()
@@ -1233,8 +1332,11 @@ public final UnaryCallable listProduc
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ProductName name = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]");
    *   Product response = productSearchClient.getProduct(name);
@@ -1264,8 +1366,11 @@ public final Product getProduct(ProductName 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String name = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString();
    *   Product response = productSearchClient.getProduct(name);
@@ -1294,8 +1399,11 @@ public final Product getProduct(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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   GetProductRequest request =
    *       GetProductRequest.newBuilder()
@@ -1325,8 +1433,11 @@ public final Product getProduct(GetProductRequest 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   GetProductRequest request =
    *       GetProductRequest.newBuilder()
@@ -1364,8 +1475,11 @@ public final UnaryCallable getProductCallable() {
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   Product product = Product.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -1408,8 +1522,11 @@ public final Product updateProduct(Product product, FieldMask updateMask) {
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   UpdateProductRequest request =
    *       UpdateProductRequest.newBuilder()
@@ -1449,8 +1566,11 @@ public final Product updateProduct(UpdateProductRequest 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   UpdateProductRequest request =
    *       UpdateProductRequest.newBuilder()
@@ -1478,8 +1598,11 @@ public final UnaryCallable updateProductCallable(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ProductName name = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]");
    *   productSearchClient.deleteProduct(name);
@@ -1507,8 +1630,11 @@ public final void deleteProduct(ProductName 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String name = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString();
    *   productSearchClient.deleteProduct(name);
@@ -1535,8 +1661,11 @@ public final void deleteProduct(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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   DeleteProductRequest request =
    *       DeleteProductRequest.newBuilder()
@@ -1564,8 +1693,11 @@ public final void deleteProduct(DeleteProductRequest 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   DeleteProductRequest request =
    *       DeleteProductRequest.newBuilder()
@@ -1606,8 +1738,11 @@ public final UnaryCallable deleteProductCallable()
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ProductName parent = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]");
    *   ReferenceImage referenceImage = ReferenceImage.newBuilder().build();
@@ -1663,8 +1798,11 @@ public final ReferenceImage createReferenceImage(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String parent = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString();
    *   ReferenceImage referenceImage = ReferenceImage.newBuilder().build();
@@ -1720,8 +1858,11 @@ public final ReferenceImage createReferenceImage(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   CreateReferenceImageRequest request =
    *       CreateReferenceImageRequest.newBuilder()
@@ -1765,8 +1906,11 @@ public final ReferenceImage createReferenceImage(CreateReferenceImageRequest req
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   CreateReferenceImageRequest request =
    *       CreateReferenceImageRequest.newBuilder()
@@ -1798,8 +1942,11 @@ public final ReferenceImage createReferenceImage(CreateReferenceImageRequest req
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ReferenceImageName name =
    *       ReferenceImageName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]");
@@ -1832,8 +1979,11 @@ public final void deleteReferenceImage(ReferenceImageName 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String name =
    *       ReferenceImageName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]")
@@ -1865,8 +2015,11 @@ public final void deleteReferenceImage(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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   DeleteReferenceImageRequest request =
    *       DeleteReferenceImageRequest.newBuilder()
@@ -1897,8 +2050,11 @@ public final void deleteReferenceImage(DeleteReferenceImageRequest 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   DeleteReferenceImageRequest request =
    *       DeleteReferenceImageRequest.newBuilder()
@@ -1931,8 +2087,11 @@ public final UnaryCallable deleteReferenceIm
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ProductName parent = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]");
    *   for (ReferenceImage element : productSearchClient.listReferenceImages(parent).iterateAll()) {
@@ -1967,8 +2126,11 @@ public final ListReferenceImagesPagedResponse listReferenceImages(ProductName pa
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String parent = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString();
    *   for (ReferenceImage element : productSearchClient.listReferenceImages(parent).iterateAll()) {
@@ -2001,8 +2163,11 @@ public final ListReferenceImagesPagedResponse listReferenceImages(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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ListReferenceImagesRequest request =
    *       ListReferenceImagesRequest.newBuilder()
@@ -2038,8 +2203,11 @@ public final ListReferenceImagesPagedResponse listReferenceImages(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ListReferenceImagesRequest request =
    *       ListReferenceImagesRequest.newBuilder()
@@ -2075,8 +2243,11 @@ public final ListReferenceImagesPagedResponse listReferenceImages(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ListReferenceImagesRequest request =
    *       ListReferenceImagesRequest.newBuilder()
@@ -2118,8 +2289,11 @@ public final ListReferenceImagesPagedResponse listReferenceImages(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ReferenceImageName name =
    *       ReferenceImageName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]");
@@ -2153,8 +2327,11 @@ public final ReferenceImage getReferenceImage(ReferenceImageName 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String name =
    *       ReferenceImageName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]")
@@ -2186,8 +2363,11 @@ public final ReferenceImage getReferenceImage(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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   GetReferenceImageRequest request =
    *       GetReferenceImageRequest.newBuilder()
@@ -2219,8 +2399,11 @@ public final ReferenceImage getReferenceImage(GetReferenceImageRequest 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   GetReferenceImageRequest request =
    *       GetReferenceImageRequest.newBuilder()
@@ -2255,8 +2438,11 @@ public final UnaryCallable getReferenc
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]");
    *   ProductName product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]");
@@ -2295,8 +2481,11 @@ public final void addProductToProductSet(ProductSetName name, ProductName produc
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]");
    *   String product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString();
@@ -2335,8 +2524,11 @@ public final void addProductToProductSet(ProductSetName name, String product) {
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString();
    *   ProductName product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]");
@@ -2375,8 +2567,11 @@ public final void addProductToProductSet(String name, ProductName product) {
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString();
    *   String product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString();
@@ -2412,8 +2607,11 @@ public final void addProductToProductSet(String name, String product) {
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   AddProductToProductSetRequest request =
    *       AddProductToProductSetRequest.newBuilder()
@@ -2447,8 +2645,11 @@ public final void addProductToProductSet(AddProductToProductSetRequest 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   AddProductToProductSetRequest request =
    *       AddProductToProductSetRequest.newBuilder()
@@ -2474,8 +2675,11 @@ public final void addProductToProductSet(AddProductToProductSetRequest 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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]");
    *   ProductName product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]");
@@ -2505,8 +2709,11 @@ public final void removeProductFromProductSet(ProductSetName name, ProductName p
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]");
    *   String product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString();
@@ -2536,8 +2743,11 @@ public final void removeProductFromProductSet(ProductSetName name, String produc
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString();
    *   ProductName product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]");
@@ -2567,8 +2777,11 @@ public final void removeProductFromProductSet(String name, ProductName product)
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString();
    *   String product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString();
@@ -2595,8 +2808,11 @@ public final void removeProductFromProductSet(String name, String product) {
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   RemoveProductFromProductSetRequest request =
    *       RemoveProductFromProductSetRequest.newBuilder()
@@ -2621,8 +2837,11 @@ public final void removeProductFromProductSet(RemoveProductFromProductSetRequest
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   RemoveProductFromProductSetRequest request =
    *       RemoveProductFromProductSetRequest.newBuilder()
@@ -2655,8 +2874,11 @@ public final void removeProductFromProductSet(RemoveProductFromProductSetRequest
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]");
    *   for (Product element : productSearchClient.listProductsInProductSet(name).iterateAll()) {
@@ -2691,8 +2913,11 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet(Prod
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString();
    *   for (Product element : productSearchClient.listProductsInProductSet(name).iterateAll()) {
@@ -2725,8 +2950,11 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet(Stri
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ListProductsInProductSetRequest request =
    *       ListProductsInProductSetRequest.newBuilder()
@@ -2762,8 +2990,11 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ListProductsInProductSetRequest request =
    *       ListProductsInProductSetRequest.newBuilder()
@@ -2799,8 +3030,11 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ListProductsInProductSetRequest request =
    *       ListProductsInProductSetRequest.newBuilder()
@@ -2846,8 +3080,11 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   ImportProductSetsInputConfig inputConfig = ImportProductSetsInputConfig.newBuilder().build();
@@ -2888,8 +3125,11 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   ImportProductSetsInputConfig inputConfig = ImportProductSetsInputConfig.newBuilder().build();
@@ -2927,8 +3167,11 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ImportProductSetsRequest request =
    *       ImportProductSetsRequest.newBuilder()
@@ -2965,8 +3208,11 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ImportProductSetsRequest request =
    *       ImportProductSetsRequest.newBuilder()
@@ -3003,8 +3249,11 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   ImportProductSetsRequest request =
    *       ImportProductSetsRequest.newBuilder()
@@ -3050,8 +3299,11 @@ public final UnaryCallable importProductSet
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   productSearchClient.purgeProductsAsync(parent).get();
@@ -3099,8 +3351,11 @@ public final OperationFuture purgeProductsAsync(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   productSearchClient.purgeProductsAsync(parent).get();
@@ -3144,8 +3399,11 @@ public final OperationFuture purgeProductsAsync(S
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   PurgeProductsRequest request =
    *       PurgeProductsRequest.newBuilder()
@@ -3192,8 +3450,11 @@ public final OperationFuture purgeProductsAsync(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   PurgeProductsRequest request =
    *       PurgeProductsRequest.newBuilder()
@@ -3240,8 +3501,11 @@ public final OperationFuture purgeProductsAsync(
    * 

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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
    *   PurgeProductsRequest request =
    *       PurgeProductsRequest.newBuilder()
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchSettings.java
index 24833d6b69b6..1f1009f01994 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchSettings.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchSettings.java
@@ -59,16 +59,16 @@
  * 

For example, to set the total timeout of createProductSet 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
  * ProductSearchSettings.Builder productSearchSettingsBuilder = ProductSearchSettings.newBuilder();
  * productSearchSettingsBuilder
  *     .createProductSetSettings()
  *     .setRetrySettings(
- *         productSearchSettingsBuilder
- *             .createProductSetSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         productSearchSettingsBuilder.createProductSetSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * ProductSearchSettings productSearchSettings = productSearchSettingsBuilder.build();
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/package-info.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/package-info.java
index a9710a4978cc..9f00d3089dce 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/package-info.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/package-info.java
@@ -26,8 +26,11 @@
  * 

Sample for ImageAnnotatorClient: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
  *   List requests = new ArrayList<>();
  *   BatchAnnotateImagesResponse response = imageAnnotatorClient.batchAnnotateImages(requests);
@@ -55,8 +58,11 @@
  * 

Sample for ProductSearchClient: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
  *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
  *   ProductSet productSet = ProductSet.newBuilder().build();
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonImageAnnotatorStub.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonImageAnnotatorStub.java
index 2338450666d4..c5fb8b77362f 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonImageAnnotatorStub.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonImageAnnotatorStub.java
@@ -91,7 +91,8 @@ public class HttpJsonImageAnnotatorStub extends ImageAnnotatorStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("*", request.toBuilder().build()))
+                              ProtoRestSerializer.create()
+                                  .toBody("*", request.toBuilder().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -125,7 +126,8 @@ public class HttpJsonImageAnnotatorStub extends ImageAnnotatorStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("*", request.toBuilder().build()))
+                              ProtoRestSerializer.create()
+                                  .toBody("*", request.toBuilder().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -160,7 +162,8 @@ public class HttpJsonImageAnnotatorStub extends ImageAnnotatorStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("*", request.toBuilder().build()))
+                              ProtoRestSerializer.create()
+                                  .toBody("*", request.toBuilder().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -198,7 +201,8 @@ public class HttpJsonImageAnnotatorStub extends ImageAnnotatorStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("*", request.toBuilder().build()))
+                              ProtoRestSerializer.create()
+                                  .toBody("*", request.toBuilder().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonProductSearchStub.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonProductSearchStub.java
index 91d9edfc0e34..14419fea91fd 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonProductSearchStub.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/HttpJsonProductSearchStub.java
@@ -120,7 +120,7 @@ public class HttpJsonProductSearchStub extends ProductSearchStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("productSet", request.getProductSet()))
+                                  .toBody("productSet", request.getProductSet(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -226,7 +226,7 @@ public class HttpJsonProductSearchStub extends ProductSearchStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("productSet", request.getProductSet()))
+                                  .toBody("productSet", request.getProductSet(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -295,7 +295,8 @@ public class HttpJsonProductSearchStub extends ProductSearchStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("product", request.getProduct()))
+                              ProtoRestSerializer.create()
+                                  .toBody("product", request.getProduct(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -399,7 +400,8 @@ public class HttpJsonProductSearchStub extends ProductSearchStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("product", request.getProduct()))
+                              ProtoRestSerializer.create()
+                                  .toBody("product", request.getProduct(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -470,7 +472,7 @@ public class HttpJsonProductSearchStub extends ProductSearchStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("referenceImage", request.getReferenceImage()))
+                                  .toBody("referenceImage", request.getReferenceImage(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -608,7 +610,7 @@ public class HttpJsonProductSearchStub extends ProductSearchStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearName().build()))
+                                  .toBody("*", request.toBuilder().clearName().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -645,7 +647,7 @@ public class HttpJsonProductSearchStub extends ProductSearchStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearName().build()))
+                                  .toBody("*", request.toBuilder().clearName().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -719,7 +721,7 @@ public class HttpJsonProductSearchStub extends ProductSearchStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearParent().build()))
+                                  .toBody("*", request.toBuilder().clearParent().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -758,7 +760,7 @@ public class HttpJsonProductSearchStub extends ProductSearchStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearParent().build()))
+                                  .toBody("*", request.toBuilder().clearParent().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ImageAnnotatorStubSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ImageAnnotatorStubSettings.java
index d604bd13b1ac..c8094c685383 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ImageAnnotatorStubSettings.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ImageAnnotatorStubSettings.java
@@ -75,8 +75,11 @@
  * 

For example, to set the total timeout of batchAnnotateImages 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
  * ImageAnnotatorStubSettings.Builder imageAnnotatorSettingsBuilder =
  *     ImageAnnotatorStubSettings.newBuilder();
  * imageAnnotatorSettingsBuilder
diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStubSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStubSettings.java
index ecb4054b1030..b890b18e0009 100644
--- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStubSettings.java
+++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStubSettings.java
@@ -107,17 +107,17 @@
  * 

For example, to set the total timeout of createProductSet 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
  * ProductSearchStubSettings.Builder productSearchSettingsBuilder =
  *     ProductSearchStubSettings.newBuilder();
  * productSearchSettingsBuilder
  *     .createProductSetSettings()
  *     .setRetrySettings(
- *         productSearchSettingsBuilder
- *             .createProductSetSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         productSearchSettingsBuilder.createProductSetSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * ProductSearchStubSettings productSearchSettings = productSearchSettingsBuilder.build();
diff --git a/java-vision/google-cloud-vision/src/test/java/com/google/cloud/vision/it/ITSystemTest.java b/java-vision/google-cloud-vision/src/test/java/com/google/cloud/vision/it/ITSystemTest.java
index 0cc086d8fa8e..35837ecf52a6 100644
--- a/java-vision/google-cloud-vision/src/test/java/com/google/cloud/vision/it/ITSystemTest.java
+++ b/java-vision/google-cloud-vision/src/test/java/com/google/cloud/vision/it/ITSystemTest.java
@@ -99,7 +99,7 @@ public class ITSystemTest {
   private static final String ID = UUID.randomUUID().toString().substring(0, 8);
   // GraalVM native-image test uses the project root as working directory, not google-cloud-vision
   private static final String RESOURCES =
-      Files.exists(Paths.get("java-vision","google-cloud-vision", "src", "test", "resources"))
+      Files.exists(Paths.get("java-vision", "google-cloud-vision", "src", "test", "resources"))
           ? "java-vision/google-cloud-vision/src/test/resources/"
           : "src/test/resources/";
 
diff --git a/java-vision/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/EntityAnnotation.java b/java-vision/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/EntityAnnotation.java
index d699fcc13405..720445e62f21 100644
--- a/java-vision/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/EntityAnnotation.java
+++ b/java-vision/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/EntityAnnotation.java
@@ -378,7 +378,7 @@ public float getScore() {
    * float confidence = 5 [deprecated = true];
    *
    * @deprecated google.cloud.vision.v1.EntityAnnotation.confidence is deprecated. See
-   *     google/cloud/vision/v1/image_annotator.proto;l=505
+   *     google/cloud/vision/v1/image_annotator.proto;l=506
    * @return The confidence.
    */
   @java.lang.Override
@@ -1559,7 +1559,7 @@ public Builder clearScore() {
      * float confidence = 5 [deprecated = true];
      *
      * @deprecated google.cloud.vision.v1.EntityAnnotation.confidence is deprecated. See
-     *     google/cloud/vision/v1/image_annotator.proto;l=505
+     *     google/cloud/vision/v1/image_annotator.proto;l=506
      * @return The confidence.
      */
     @java.lang.Override
@@ -1581,7 +1581,7 @@ public float getConfidence() {
      * float confidence = 5 [deprecated = true];
      *
      * @deprecated google.cloud.vision.v1.EntityAnnotation.confidence is deprecated. See
-     *     google/cloud/vision/v1/image_annotator.proto;l=505
+     *     google/cloud/vision/v1/image_annotator.proto;l=506
      * @param value The confidence to set.
      * @return This builder for chaining.
      */
@@ -1606,7 +1606,7 @@ public Builder setConfidence(float value) {
      * float confidence = 5 [deprecated = true];
      *
      * @deprecated google.cloud.vision.v1.EntityAnnotation.confidence is deprecated. See
-     *     google/cloud/vision/v1/image_annotator.proto;l=505
+     *     google/cloud/vision/v1/image_annotator.proto;l=506
      * @return This builder for chaining.
      */
     @java.lang.Deprecated
diff --git a/java-vision/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/EntityAnnotationOrBuilder.java b/java-vision/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/EntityAnnotationOrBuilder.java
index 979005b274dd..4031257d8888 100644
--- a/java-vision/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/EntityAnnotationOrBuilder.java
+++ b/java-vision/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/EntityAnnotationOrBuilder.java
@@ -131,7 +131,7 @@ public interface EntityAnnotationOrBuilder
    * float confidence = 5 [deprecated = true];
    *
    * @deprecated google.cloud.vision.v1.EntityAnnotation.confidence is deprecated. See
-   *     google/cloud/vision/v1/image_annotator.proto;l=505
+   *     google/cloud/vision/v1/image_annotator.proto;l=506
    * @return The confidence.
    */
   @java.lang.Deprecated
diff --git a/java-vision/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Feature.java b/java-vision/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Feature.java
index 18d6f3fc7ed1..8a4058fa9b3b 100644
--- a/java-vision/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Feature.java
+++ b/java-vision/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Feature.java
@@ -578,7 +578,8 @@ public int getMaxResults() {
    * 
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
-   * "builtin/latest".
+   * "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also
+   * support "builtin/weekly" for the bleeding edge release updated weekly.
    * 
* * string model = 3; @@ -603,7 +604,8 @@ public java.lang.String getModel() { *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
-   * "builtin/latest".
+   * "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also
+   * support "builtin/weekly" for the bleeding edge release updated weekly.
    * 
* * string model = 3; @@ -1121,7 +1123,8 @@ public Builder clearMaxResults() { *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
-     * "builtin/latest".
+     * "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also
+     * support "builtin/weekly" for the bleeding edge release updated weekly.
      * 
* * string model = 3; @@ -1145,7 +1148,8 @@ public java.lang.String getModel() { *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
-     * "builtin/latest".
+     * "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also
+     * support "builtin/weekly" for the bleeding edge release updated weekly.
      * 
* * string model = 3; @@ -1169,7 +1173,8 @@ public com.google.protobuf.ByteString getModelBytes() { *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
-     * "builtin/latest".
+     * "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also
+     * support "builtin/weekly" for the bleeding edge release updated weekly.
      * 
* * string model = 3; @@ -1192,7 +1197,8 @@ public Builder setModel(java.lang.String value) { *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
-     * "builtin/latest".
+     * "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also
+     * support "builtin/weekly" for the bleeding edge release updated weekly.
      * 
* * string model = 3; @@ -1211,7 +1217,8 @@ public Builder clearModel() { *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
-     * "builtin/latest".
+     * "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also
+     * support "builtin/weekly" for the bleeding edge release updated weekly.
      * 
* * string model = 3; diff --git a/java-vision/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/FeatureOrBuilder.java b/java-vision/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/FeatureOrBuilder.java index 3bea82449184..ee1b7f90f06a 100644 --- a/java-vision/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/FeatureOrBuilder.java +++ b/java-vision/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/FeatureOrBuilder.java @@ -68,7 +68,8 @@ public interface FeatureOrBuilder *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
-   * "builtin/latest".
+   * "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also
+   * support "builtin/weekly" for the bleeding edge release updated weekly.
    * 
* * string model = 3; @@ -82,7 +83,8 @@ public interface FeatureOrBuilder *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
-   * "builtin/latest".
+   * "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also
+   * support "builtin/weekly" for the bleeding edge release updated weekly.
    * 
* * string model = 3; diff --git a/java-vision/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/image_annotator.proto b/java-vision/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/image_annotator.proto index 10464b0e0d83..6fed6112bec7 100644 --- a/java-vision/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/image_annotator.proto +++ b/java-vision/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/image_annotator.proto @@ -223,7 +223,8 @@ message Feature { // Model to use for the feature. // Supported values: "builtin/stable" (the default if unset) and - // "builtin/latest". + // "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also + // support "builtin/weekly" for the bleeding edge release updated weekly. string model = 3; } diff --git a/java-vision/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Feature.java b/java-vision/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Feature.java index 85d7d9ec4c82..94c38c3f73f8 100644 --- a/java-vision/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Feature.java +++ b/java-vision/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Feature.java @@ -526,7 +526,8 @@ public int getMaxResults() { *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
-   * "builtin/latest".
+   * "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also
+   * support "builtin/weekly" for the bleeding edge release updated weekly.
    * 
* * string model = 3; @@ -551,7 +552,8 @@ public java.lang.String getModel() { *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
-   * "builtin/latest".
+   * "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also
+   * support "builtin/weekly" for the bleeding edge release updated weekly.
    * 
* * string model = 3; @@ -1070,7 +1072,8 @@ public Builder clearMaxResults() { *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
-     * "builtin/latest".
+     * "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also
+     * support "builtin/weekly" for the bleeding edge release updated weekly.
      * 
* * string model = 3; @@ -1094,7 +1097,8 @@ public java.lang.String getModel() { *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
-     * "builtin/latest".
+     * "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also
+     * support "builtin/weekly" for the bleeding edge release updated weekly.
      * 
* * string model = 3; @@ -1118,7 +1122,8 @@ public com.google.protobuf.ByteString getModelBytes() { *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
-     * "builtin/latest".
+     * "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also
+     * support "builtin/weekly" for the bleeding edge release updated weekly.
      * 
* * string model = 3; @@ -1141,7 +1146,8 @@ public Builder setModel(java.lang.String value) { *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
-     * "builtin/latest".
+     * "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also
+     * support "builtin/weekly" for the bleeding edge release updated weekly.
      * 
* * string model = 3; @@ -1160,7 +1166,8 @@ public Builder clearModel() { *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
-     * "builtin/latest".
+     * "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also
+     * support "builtin/weekly" for the bleeding edge release updated weekly.
      * 
* * string model = 3; diff --git a/java-vision/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/FeatureOrBuilder.java b/java-vision/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/FeatureOrBuilder.java index 27b501642b70..f708c53ea227 100644 --- a/java-vision/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/FeatureOrBuilder.java +++ b/java-vision/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/FeatureOrBuilder.java @@ -67,7 +67,8 @@ public interface FeatureOrBuilder *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
-   * "builtin/latest".
+   * "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also
+   * support "builtin/weekly" for the bleeding edge release updated weekly.
    * 
* * string model = 3; @@ -81,7 +82,8 @@ public interface FeatureOrBuilder *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
-   * "builtin/latest".
+   * "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also
+   * support "builtin/weekly" for the bleeding edge release updated weekly.
    * 
* * string model = 3; diff --git a/java-vision/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotationProto.java b/java-vision/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotationProto.java index 7e36fe84ee15..cace968cd62b 100644 --- a/java-vision/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotationProto.java +++ b/java-vision/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/TextAnnotationProto.java @@ -74,63 +74,61 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n3google/cloud/vision/v1p1beta1/text_ann" + "otation.proto\022\035google.cloud.vision.v1p1b" - + "eta1\032\034google/api/annotations.proto\032,goog" - + "le/cloud/vision/v1p1beta1/geometry.proto" - + "\"\262\004\n\016TextAnnotation\0222\n\005pages\030\001 \003(\0132#.goo" - + "gle.cloud.vision.v1p1beta1.Page\022\014\n\004text\030" - + "\002 \001(\t\032=\n\020DetectedLanguage\022\025\n\rlanguage_co" - + "de\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\032\334\001\n\rDetecte" - + "dBreak\022S\n\004type\030\001 \001(\0162E.google.cloud.visi" - + "on.v1p1beta1.TextAnnotation.DetectedBrea" - + "k.BreakType\022\021\n\tis_prefix\030\002 \001(\010\"c\n\tBreakT" - + "ype\022\013\n\007UNKNOWN\020\000\022\t\n\005SPACE\020\001\022\016\n\nSURE_SPAC" - + "E\020\002\022\022\n\016EOL_SURE_SPACE\020\003\022\n\n\006HYPHEN\020\004\022\016\n\nL" - + "INE_BREAK\020\005\032\277\001\n\014TextProperty\022Z\n\022detected" - + "_languages\030\001 \003(\0132>.google.cloud.vision.v" - + "1p1beta1.TextAnnotation.DetectedLanguage" - + "\022S\n\016detected_break\030\002 \001(\0132;.google.cloud." - + "vision.v1p1beta1.TextAnnotation.Detected" - + "Break\"\275\001\n\004Page\022L\n\010property\030\001 \001(\0132:.googl" - + "e.cloud.vision.v1p1beta1.TextAnnotation." - + "TextProperty\022\r\n\005width\030\002 \001(\005\022\016\n\006height\030\003 " - + "\001(\005\0224\n\006blocks\030\004 \003(\0132$.google.cloud.visio" - + "n.v1p1beta1.Block\022\022\n\nconfidence\030\005 \001(\002\"\202\003" - + "\n\005Block\022L\n\010property\030\001 \001(\0132:.google.cloud" - + ".vision.v1p1beta1.TextAnnotation.TextPro" - + "perty\022A\n\014bounding_box\030\002 \001(\0132+.google.clo" - + "ud.vision.v1p1beta1.BoundingPoly\022<\n\npara" - + "graphs\030\003 \003(\0132(.google.cloud.vision.v1p1b" - + "eta1.Paragraph\022B\n\nblock_type\030\004 \001(\0162..goo" - + "gle.cloud.vision.v1p1beta1.Block.BlockTy" - + "pe\022\022\n\nconfidence\030\005 \001(\002\"R\n\tBlockType\022\013\n\007U" - + "NKNOWN\020\000\022\010\n\004TEXT\020\001\022\t\n\005TABLE\020\002\022\013\n\007PICTURE" - + "\020\003\022\t\n\005RULER\020\004\022\013\n\007BARCODE\020\005\"\344\001\n\tParagraph" - + "\022L\n\010property\030\001 \001(\0132:.google.cloud.vision" - + ".v1p1beta1.TextAnnotation.TextProperty\022A" - + "\n\014bounding_box\030\002 \001(\0132+.google.cloud.visi" - + "on.v1p1beta1.BoundingPoly\0222\n\005words\030\003 \003(\013" - + "2#.google.cloud.vision.v1p1beta1.Word\022\022\n" - + "\nconfidence\030\004 \001(\002\"\343\001\n\004Word\022L\n\010property\030\001" - + " \001(\0132:.google.cloud.vision.v1p1beta1.Tex" - + "tAnnotation.TextProperty\022A\n\014bounding_box" - + "\030\002 \001(\0132+.google.cloud.vision.v1p1beta1.B" - + "oundingPoly\0226\n\007symbols\030\003 \003(\0132%.google.cl" - + "oud.vision.v1p1beta1.Symbol\022\022\n\nconfidenc" - + "e\030\004 \001(\002\"\273\001\n\006Symbol\022L\n\010property\030\001 \001(\0132:.g" - + "oogle.cloud.vision.v1p1beta1.TextAnnotat" - + "ion.TextProperty\022A\n\014bounding_box\030\002 \001(\0132+" - + ".google.cloud.vision.v1p1beta1.BoundingP" - + "oly\022\014\n\004text\030\003 \001(\t\022\022\n\nconfidence\030\004 \001(\002B\202\001" - + "\n!com.google.cloud.vision.v1p1beta1B\023Tex" - + "tAnnotationProtoP\001ZCgoogle.golang.org/ge" - + "nproto/googleapis/cloud/vision/v1p1beta1" - + ";vision\370\001\001b\006proto3" + + "eta1\032,google/cloud/vision/v1p1beta1/geom" + + "etry.proto\"\262\004\n\016TextAnnotation\0222\n\005pages\030\001" + + " \003(\0132#.google.cloud.vision.v1p1beta1.Pag" + + "e\022\014\n\004text\030\002 \001(\t\032=\n\020DetectedLanguage\022\025\n\rl" + + "anguage_code\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\032\334" + + "\001\n\rDetectedBreak\022S\n\004type\030\001 \001(\0162E.google." + + "cloud.vision.v1p1beta1.TextAnnotation.De" + + "tectedBreak.BreakType\022\021\n\tis_prefix\030\002 \001(\010" + + "\"c\n\tBreakType\022\013\n\007UNKNOWN\020\000\022\t\n\005SPACE\020\001\022\016\n" + + "\nSURE_SPACE\020\002\022\022\n\016EOL_SURE_SPACE\020\003\022\n\n\006HYP" + + "HEN\020\004\022\016\n\nLINE_BREAK\020\005\032\277\001\n\014TextProperty\022Z" + + "\n\022detected_languages\030\001 \003(\0132>.google.clou" + + "d.vision.v1p1beta1.TextAnnotation.Detect" + + "edLanguage\022S\n\016detected_break\030\002 \001(\0132;.goo" + + "gle.cloud.vision.v1p1beta1.TextAnnotatio" + + "n.DetectedBreak\"\275\001\n\004Page\022L\n\010property\030\001 \001" + + "(\0132:.google.cloud.vision.v1p1beta1.TextA" + + "nnotation.TextProperty\022\r\n\005width\030\002 \001(\005\022\016\n" + + "\006height\030\003 \001(\005\0224\n\006blocks\030\004 \003(\0132$.google.c" + + "loud.vision.v1p1beta1.Block\022\022\n\nconfidenc" + + "e\030\005 \001(\002\"\202\003\n\005Block\022L\n\010property\030\001 \001(\0132:.go" + + "ogle.cloud.vision.v1p1beta1.TextAnnotati" + + "on.TextProperty\022A\n\014bounding_box\030\002 \001(\0132+." + + "google.cloud.vision.v1p1beta1.BoundingPo" + + "ly\022<\n\nparagraphs\030\003 \003(\0132(.google.cloud.vi" + + "sion.v1p1beta1.Paragraph\022B\n\nblock_type\030\004" + + " \001(\0162..google.cloud.vision.v1p1beta1.Blo" + + "ck.BlockType\022\022\n\nconfidence\030\005 \001(\002\"R\n\tBloc" + + "kType\022\013\n\007UNKNOWN\020\000\022\010\n\004TEXT\020\001\022\t\n\005TABLE\020\002\022" + + "\013\n\007PICTURE\020\003\022\t\n\005RULER\020\004\022\013\n\007BARCODE\020\005\"\344\001\n" + + "\tParagraph\022L\n\010property\030\001 \001(\0132:.google.cl" + + "oud.vision.v1p1beta1.TextAnnotation.Text" + + "Property\022A\n\014bounding_box\030\002 \001(\0132+.google." + + "cloud.vision.v1p1beta1.BoundingPoly\0222\n\005w" + + "ords\030\003 \003(\0132#.google.cloud.vision.v1p1bet" + + "a1.Word\022\022\n\nconfidence\030\004 \001(\002\"\343\001\n\004Word\022L\n\010" + + "property\030\001 \001(\0132:.google.cloud.vision.v1p" + + "1beta1.TextAnnotation.TextProperty\022A\n\014bo" + + "unding_box\030\002 \001(\0132+.google.cloud.vision.v" + + "1p1beta1.BoundingPoly\0226\n\007symbols\030\003 \003(\0132%" + + ".google.cloud.vision.v1p1beta1.Symbol\022\022\n" + + "\nconfidence\030\004 \001(\002\"\273\001\n\006Symbol\022L\n\010property" + + "\030\001 \001(\0132:.google.cloud.vision.v1p1beta1.T" + + "extAnnotation.TextProperty\022A\n\014bounding_b" + + "ox\030\002 \001(\0132+.google.cloud.vision.v1p1beta1" + + ".BoundingPoly\022\014\n\004text\030\003 \001(\t\022\022\n\nconfidenc" + + "e\030\004 \001(\002B\202\001\n!com.google.cloud.vision.v1p1" + + "beta1B\023TextAnnotationProtoP\001ZCgoogle.gol" + + "ang.org/genproto/googleapis/cloud/vision" + + "/v1p1beta1;vision\370\001\001b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.cloud.vision.v1p1beta1.GeometryProto.getDescriptor(), }); internal_static_google_cloud_vision_v1p1beta1_TextAnnotation_descriptor = @@ -211,7 +209,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Property", "BoundingBox", "Text", "Confidence", }); - com.google.api.AnnotationsProto.getDescriptor(); com.google.cloud.vision.v1p1beta1.GeometryProto.getDescriptor(); } diff --git a/java-vision/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionProto.java b/java-vision/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionProto.java index 359b058c0deb..54784683e98f 100644 --- a/java-vision/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionProto.java +++ b/java-vision/proto-google-cloud-vision-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/WebDetectionProto.java @@ -58,41 +58,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n1google/cloud/vision/v1p1beta1/web_dete" + "ction.proto\022\035google.cloud.vision.v1p1bet" - + "a1\032\034google/api/annotations.proto\"\214\007\n\014Web" - + "Detection\022K\n\014web_entities\030\001 \003(\01325.google" - + ".cloud.vision.v1p1beta1.WebDetection.Web" - + "Entity\022R\n\024full_matching_images\030\002 \003(\01324.g" - + "oogle.cloud.vision.v1p1beta1.WebDetectio" - + "n.WebImage\022U\n\027partial_matching_images\030\003 " - + "\003(\01324.google.cloud.vision.v1p1beta1.WebD" - + "etection.WebImage\022W\n\032pages_with_matching" - + "_images\030\004 \003(\01323.google.cloud.vision.v1p1" - + "beta1.WebDetection.WebPage\022U\n\027visually_s" - + "imilar_images\030\006 \003(\01324.google.cloud.visio" - + "n.v1p1beta1.WebDetection.WebImage\022O\n\021bes" - + "t_guess_labels\030\010 \003(\01324.google.cloud.visi" - + "on.v1p1beta1.WebDetection.WebLabel\032B\n\tWe" - + "bEntity\022\021\n\tentity_id\030\001 \001(\t\022\r\n\005score\030\002 \001(" - + "\002\022\023\n\013description\030\003 \001(\t\032&\n\010WebImage\022\013\n\003ur" - + "l\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\032\344\001\n\007WebPage\022\013\n\003ur" - + "l\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\022\022\n\npage_title\030\003 \001" - + "(\t\022R\n\024full_matching_images\030\004 \003(\01324.googl" - + "e.cloud.vision.v1p1beta1.WebDetection.We" - + "bImage\022U\n\027partial_matching_images\030\005 \003(\0132" - + "4.google.cloud.vision.v1p1beta1.WebDetec" - + "tion.WebImage\0320\n\010WebLabel\022\r\n\005label\030\001 \001(\t" - + "\022\025\n\rlanguage_code\030\002 \001(\tB\200\001\n!com.google.c" - + "loud.vision.v1p1beta1B\021WebDetectionProto" - + "P\001ZCgoogle.golang.org/genproto/googleapi" - + "s/cloud/vision/v1p1beta1;vision\370\001\001b\006prot" - + "o3" + + "a1\"\214\007\n\014WebDetection\022K\n\014web_entities\030\001 \003(" + + "\01325.google.cloud.vision.v1p1beta1.WebDet" + + "ection.WebEntity\022R\n\024full_matching_images" + + "\030\002 \003(\01324.google.cloud.vision.v1p1beta1.W" + + "ebDetection.WebImage\022U\n\027partial_matching" + + "_images\030\003 \003(\01324.google.cloud.vision.v1p1" + + "beta1.WebDetection.WebImage\022W\n\032pages_wit" + + "h_matching_images\030\004 \003(\01323.google.cloud.v" + + "ision.v1p1beta1.WebDetection.WebPage\022U\n\027" + + "visually_similar_images\030\006 \003(\01324.google.c" + + "loud.vision.v1p1beta1.WebDetection.WebIm" + + "age\022O\n\021best_guess_labels\030\010 \003(\01324.google." + + "cloud.vision.v1p1beta1.WebDetection.WebL" + + "abel\032B\n\tWebEntity\022\021\n\tentity_id\030\001 \001(\t\022\r\n\005" + + "score\030\002 \001(\002\022\023\n\013description\030\003 \001(\t\032&\n\010WebI" + + "mage\022\013\n\003url\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\032\344\001\n\007Web" + + "Page\022\013\n\003url\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\022\022\n\npage" + + "_title\030\003 \001(\t\022R\n\024full_matching_images\030\004 \003" + + "(\01324.google.cloud.vision.v1p1beta1.WebDe" + + "tection.WebImage\022U\n\027partial_matching_ima" + + "ges\030\005 \003(\01324.google.cloud.vision.v1p1beta" + + "1.WebDetection.WebImage\0320\n\010WebLabel\022\r\n\005l" + + "abel\030\001 \001(\t\022\025\n\rlanguage_code\030\002 \001(\tB\200\001\n!co" + + "m.google.cloud.vision.v1p1beta1B\021WebDete" + + "ctionProtoP\001ZCgoogle.golang.org/genproto" + + "/googleapis/cloud/vision/v1p1beta1;visio" + + "n\370\001\001b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); internal_static_google_cloud_vision_v1p1beta1_WebDetection_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_vision_v1p1beta1_WebDetection_fieldAccessorTable = @@ -146,7 +142,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Label", "LanguageCode", }); - com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-vision/proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/image_annotator.proto b/java-vision/proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/image_annotator.proto index 729a0fa08e6b..f66ad504fca9 100644 --- a/java-vision/proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/image_annotator.proto +++ b/java-vision/proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/image_annotator.proto @@ -103,7 +103,8 @@ message Feature { // Model to use for the feature. // Supported values: "builtin/stable" (the default if unset) and - // "builtin/latest". + // "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also + // support "builtin/weekly" for the bleeding edge release updated weekly. string model = 3; } diff --git a/java-vision/proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/text_annotation.proto b/java-vision/proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/text_annotation.proto index 928e6e88bb07..f85cc44dfd59 100644 --- a/java-vision/proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/text_annotation.proto +++ b/java-vision/proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/text_annotation.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.vision.v1p1beta1; -import "google/api/annotations.proto"; import "google/cloud/vision/v1p1beta1/geometry.proto"; option cc_enable_arenas = true; diff --git a/java-vision/proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/web_detection.proto b/java-vision/proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/web_detection.proto index 28249cbdec22..c50e1ad62cc8 100644 --- a/java-vision/proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/web_detection.proto +++ b/java-vision/proto-google-cloud-vision-v1p1beta1/src/main/proto/google/cloud/vision/v1p1beta1/web_detection.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.vision.v1p1beta1; -import "google/api/annotations.proto"; option cc_enable_arenas = true; option go_package = "google.golang.org/genproto/googleapis/cloud/vision/v1p1beta1;vision"; diff --git a/java-vision/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Feature.java b/java-vision/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Feature.java index 9b70f5a74983..c5b17829be55 100644 --- a/java-vision/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Feature.java +++ b/java-vision/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Feature.java @@ -534,7 +534,8 @@ public int getMaxResults() { *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
-   * "builtin/latest".
+   * "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also
+   * support "builtin/weekly" for the bleeding edge release updated weekly.
    * 
* * string model = 3; @@ -559,7 +560,8 @@ public java.lang.String getModel() { *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
-   * "builtin/latest".
+   * "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also
+   * support "builtin/weekly" for the bleeding edge release updated weekly.
    * 
* * string model = 3; @@ -1080,7 +1082,8 @@ public Builder clearMaxResults() { *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
-     * "builtin/latest".
+     * "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also
+     * support "builtin/weekly" for the bleeding edge release updated weekly.
      * 
* * string model = 3; @@ -1104,7 +1107,8 @@ public java.lang.String getModel() { *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
-     * "builtin/latest".
+     * "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also
+     * support "builtin/weekly" for the bleeding edge release updated weekly.
      * 
* * string model = 3; @@ -1128,7 +1132,8 @@ public com.google.protobuf.ByteString getModelBytes() { *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
-     * "builtin/latest".
+     * "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also
+     * support "builtin/weekly" for the bleeding edge release updated weekly.
      * 
* * string model = 3; @@ -1151,7 +1156,8 @@ public Builder setModel(java.lang.String value) { *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
-     * "builtin/latest".
+     * "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also
+     * support "builtin/weekly" for the bleeding edge release updated weekly.
      * 
* * string model = 3; @@ -1170,7 +1176,8 @@ public Builder clearModel() { *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
-     * "builtin/latest".
+     * "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also
+     * support "builtin/weekly" for the bleeding edge release updated weekly.
      * 
* * string model = 3; diff --git a/java-vision/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/FeatureOrBuilder.java b/java-vision/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/FeatureOrBuilder.java index 0eed6b0ec5ac..71748e0b915b 100644 --- a/java-vision/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/FeatureOrBuilder.java +++ b/java-vision/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/FeatureOrBuilder.java @@ -68,7 +68,8 @@ public interface FeatureOrBuilder *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
-   * "builtin/latest".
+   * "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also
+   * support "builtin/weekly" for the bleeding edge release updated weekly.
    * 
* * string model = 3; @@ -82,7 +83,8 @@ public interface FeatureOrBuilder *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
-   * "builtin/latest".
+   * "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also
+   * support "builtin/weekly" for the bleeding edge release updated weekly.
    * 
* * string model = 3; diff --git a/java-vision/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotationProto.java b/java-vision/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotationProto.java index 8358e73f7497..4b441b8828f1 100644 --- a/java-vision/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotationProto.java +++ b/java-vision/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/TextAnnotationProto.java @@ -74,63 +74,61 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n3google/cloud/vision/v1p2beta1/text_ann" + "otation.proto\022\035google.cloud.vision.v1p2b" - + "eta1\032\034google/api/annotations.proto\032,goog" - + "le/cloud/vision/v1p2beta1/geometry.proto" - + "\"\262\004\n\016TextAnnotation\0222\n\005pages\030\001 \003(\0132#.goo" - + "gle.cloud.vision.v1p2beta1.Page\022\014\n\004text\030" - + "\002 \001(\t\032=\n\020DetectedLanguage\022\025\n\rlanguage_co" - + "de\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\032\334\001\n\rDetecte" - + "dBreak\022S\n\004type\030\001 \001(\0162E.google.cloud.visi" - + "on.v1p2beta1.TextAnnotation.DetectedBrea" - + "k.BreakType\022\021\n\tis_prefix\030\002 \001(\010\"c\n\tBreakT" - + "ype\022\013\n\007UNKNOWN\020\000\022\t\n\005SPACE\020\001\022\016\n\nSURE_SPAC" - + "E\020\002\022\022\n\016EOL_SURE_SPACE\020\003\022\n\n\006HYPHEN\020\004\022\016\n\nL" - + "INE_BREAK\020\005\032\277\001\n\014TextProperty\022Z\n\022detected" - + "_languages\030\001 \003(\0132>.google.cloud.vision.v" - + "1p2beta1.TextAnnotation.DetectedLanguage" - + "\022S\n\016detected_break\030\002 \001(\0132;.google.cloud." - + "vision.v1p2beta1.TextAnnotation.Detected" - + "Break\"\275\001\n\004Page\022L\n\010property\030\001 \001(\0132:.googl" - + "e.cloud.vision.v1p2beta1.TextAnnotation." - + "TextProperty\022\r\n\005width\030\002 \001(\005\022\016\n\006height\030\003 " - + "\001(\005\0224\n\006blocks\030\004 \003(\0132$.google.cloud.visio" - + "n.v1p2beta1.Block\022\022\n\nconfidence\030\005 \001(\002\"\202\003" - + "\n\005Block\022L\n\010property\030\001 \001(\0132:.google.cloud" - + ".vision.v1p2beta1.TextAnnotation.TextPro" - + "perty\022A\n\014bounding_box\030\002 \001(\0132+.google.clo" - + "ud.vision.v1p2beta1.BoundingPoly\022<\n\npara" - + "graphs\030\003 \003(\0132(.google.cloud.vision.v1p2b" - + "eta1.Paragraph\022B\n\nblock_type\030\004 \001(\0162..goo" - + "gle.cloud.vision.v1p2beta1.Block.BlockTy" - + "pe\022\022\n\nconfidence\030\005 \001(\002\"R\n\tBlockType\022\013\n\007U" - + "NKNOWN\020\000\022\010\n\004TEXT\020\001\022\t\n\005TABLE\020\002\022\013\n\007PICTURE" - + "\020\003\022\t\n\005RULER\020\004\022\013\n\007BARCODE\020\005\"\344\001\n\tParagraph" - + "\022L\n\010property\030\001 \001(\0132:.google.cloud.vision" - + ".v1p2beta1.TextAnnotation.TextProperty\022A" - + "\n\014bounding_box\030\002 \001(\0132+.google.cloud.visi" - + "on.v1p2beta1.BoundingPoly\0222\n\005words\030\003 \003(\013" - + "2#.google.cloud.vision.v1p2beta1.Word\022\022\n" - + "\nconfidence\030\004 \001(\002\"\343\001\n\004Word\022L\n\010property\030\001" - + " \001(\0132:.google.cloud.vision.v1p2beta1.Tex" - + "tAnnotation.TextProperty\022A\n\014bounding_box" - + "\030\002 \001(\0132+.google.cloud.vision.v1p2beta1.B" - + "oundingPoly\0226\n\007symbols\030\003 \003(\0132%.google.cl" - + "oud.vision.v1p2beta1.Symbol\022\022\n\nconfidenc" - + "e\030\004 \001(\002\"\273\001\n\006Symbol\022L\n\010property\030\001 \001(\0132:.g" - + "oogle.cloud.vision.v1p2beta1.TextAnnotat" - + "ion.TextProperty\022A\n\014bounding_box\030\002 \001(\0132+" - + ".google.cloud.vision.v1p2beta1.BoundingP" - + "oly\022\014\n\004text\030\003 \001(\t\022\022\n\nconfidence\030\004 \001(\002B\202\001" - + "\n!com.google.cloud.vision.v1p2beta1B\023Tex" - + "tAnnotationProtoP\001ZCgoogle.golang.org/ge" - + "nproto/googleapis/cloud/vision/v1p2beta1" - + ";vision\370\001\001b\006proto3" + + "eta1\032,google/cloud/vision/v1p2beta1/geom" + + "etry.proto\"\262\004\n\016TextAnnotation\0222\n\005pages\030\001" + + " \003(\0132#.google.cloud.vision.v1p2beta1.Pag" + + "e\022\014\n\004text\030\002 \001(\t\032=\n\020DetectedLanguage\022\025\n\rl" + + "anguage_code\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\032\334" + + "\001\n\rDetectedBreak\022S\n\004type\030\001 \001(\0162E.google." + + "cloud.vision.v1p2beta1.TextAnnotation.De" + + "tectedBreak.BreakType\022\021\n\tis_prefix\030\002 \001(\010" + + "\"c\n\tBreakType\022\013\n\007UNKNOWN\020\000\022\t\n\005SPACE\020\001\022\016\n" + + "\nSURE_SPACE\020\002\022\022\n\016EOL_SURE_SPACE\020\003\022\n\n\006HYP" + + "HEN\020\004\022\016\n\nLINE_BREAK\020\005\032\277\001\n\014TextProperty\022Z" + + "\n\022detected_languages\030\001 \003(\0132>.google.clou" + + "d.vision.v1p2beta1.TextAnnotation.Detect" + + "edLanguage\022S\n\016detected_break\030\002 \001(\0132;.goo" + + "gle.cloud.vision.v1p2beta1.TextAnnotatio" + + "n.DetectedBreak\"\275\001\n\004Page\022L\n\010property\030\001 \001" + + "(\0132:.google.cloud.vision.v1p2beta1.TextA" + + "nnotation.TextProperty\022\r\n\005width\030\002 \001(\005\022\016\n" + + "\006height\030\003 \001(\005\0224\n\006blocks\030\004 \003(\0132$.google.c" + + "loud.vision.v1p2beta1.Block\022\022\n\nconfidenc" + + "e\030\005 \001(\002\"\202\003\n\005Block\022L\n\010property\030\001 \001(\0132:.go" + + "ogle.cloud.vision.v1p2beta1.TextAnnotati" + + "on.TextProperty\022A\n\014bounding_box\030\002 \001(\0132+." + + "google.cloud.vision.v1p2beta1.BoundingPo" + + "ly\022<\n\nparagraphs\030\003 \003(\0132(.google.cloud.vi" + + "sion.v1p2beta1.Paragraph\022B\n\nblock_type\030\004" + + " \001(\0162..google.cloud.vision.v1p2beta1.Blo" + + "ck.BlockType\022\022\n\nconfidence\030\005 \001(\002\"R\n\tBloc" + + "kType\022\013\n\007UNKNOWN\020\000\022\010\n\004TEXT\020\001\022\t\n\005TABLE\020\002\022" + + "\013\n\007PICTURE\020\003\022\t\n\005RULER\020\004\022\013\n\007BARCODE\020\005\"\344\001\n" + + "\tParagraph\022L\n\010property\030\001 \001(\0132:.google.cl" + + "oud.vision.v1p2beta1.TextAnnotation.Text" + + "Property\022A\n\014bounding_box\030\002 \001(\0132+.google." + + "cloud.vision.v1p2beta1.BoundingPoly\0222\n\005w" + + "ords\030\003 \003(\0132#.google.cloud.vision.v1p2bet" + + "a1.Word\022\022\n\nconfidence\030\004 \001(\002\"\343\001\n\004Word\022L\n\010" + + "property\030\001 \001(\0132:.google.cloud.vision.v1p" + + "2beta1.TextAnnotation.TextProperty\022A\n\014bo" + + "unding_box\030\002 \001(\0132+.google.cloud.vision.v" + + "1p2beta1.BoundingPoly\0226\n\007symbols\030\003 \003(\0132%" + + ".google.cloud.vision.v1p2beta1.Symbol\022\022\n" + + "\nconfidence\030\004 \001(\002\"\273\001\n\006Symbol\022L\n\010property" + + "\030\001 \001(\0132:.google.cloud.vision.v1p2beta1.T" + + "extAnnotation.TextProperty\022A\n\014bounding_b" + + "ox\030\002 \001(\0132+.google.cloud.vision.v1p2beta1" + + ".BoundingPoly\022\014\n\004text\030\003 \001(\t\022\022\n\nconfidenc" + + "e\030\004 \001(\002B\202\001\n!com.google.cloud.vision.v1p2" + + "beta1B\023TextAnnotationProtoP\001ZCgoogle.gol" + + "ang.org/genproto/googleapis/cloud/vision" + + "/v1p2beta1;vision\370\001\001b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.cloud.vision.v1p2beta1.GeometryProto.getDescriptor(), }); internal_static_google_cloud_vision_v1p2beta1_TextAnnotation_descriptor = @@ -211,7 +209,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Property", "BoundingBox", "Text", "Confidence", }); - com.google.api.AnnotationsProto.getDescriptor(); com.google.cloud.vision.v1p2beta1.GeometryProto.getDescriptor(); } diff --git a/java-vision/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionProto.java b/java-vision/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionProto.java index e45a62d88e0a..1c939d37fd39 100644 --- a/java-vision/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionProto.java +++ b/java-vision/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/WebDetectionProto.java @@ -58,41 +58,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n1google/cloud/vision/v1p2beta1/web_dete" + "ction.proto\022\035google.cloud.vision.v1p2bet" - + "a1\032\034google/api/annotations.proto\"\214\007\n\014Web" - + "Detection\022K\n\014web_entities\030\001 \003(\01325.google" - + ".cloud.vision.v1p2beta1.WebDetection.Web" - + "Entity\022R\n\024full_matching_images\030\002 \003(\01324.g" - + "oogle.cloud.vision.v1p2beta1.WebDetectio" - + "n.WebImage\022U\n\027partial_matching_images\030\003 " - + "\003(\01324.google.cloud.vision.v1p2beta1.WebD" - + "etection.WebImage\022W\n\032pages_with_matching" - + "_images\030\004 \003(\01323.google.cloud.vision.v1p2" - + "beta1.WebDetection.WebPage\022U\n\027visually_s" - + "imilar_images\030\006 \003(\01324.google.cloud.visio" - + "n.v1p2beta1.WebDetection.WebImage\022O\n\021bes" - + "t_guess_labels\030\010 \003(\01324.google.cloud.visi" - + "on.v1p2beta1.WebDetection.WebLabel\032B\n\tWe" - + "bEntity\022\021\n\tentity_id\030\001 \001(\t\022\r\n\005score\030\002 \001(" - + "\002\022\023\n\013description\030\003 \001(\t\032&\n\010WebImage\022\013\n\003ur" - + "l\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\032\344\001\n\007WebPage\022\013\n\003ur" - + "l\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\022\022\n\npage_title\030\003 \001" - + "(\t\022R\n\024full_matching_images\030\004 \003(\01324.googl" - + "e.cloud.vision.v1p2beta1.WebDetection.We" - + "bImage\022U\n\027partial_matching_images\030\005 \003(\0132" - + "4.google.cloud.vision.v1p2beta1.WebDetec" - + "tion.WebImage\0320\n\010WebLabel\022\r\n\005label\030\001 \001(\t" - + "\022\025\n\rlanguage_code\030\002 \001(\tB\200\001\n!com.google.c" - + "loud.vision.v1p2beta1B\021WebDetectionProto" - + "P\001ZCgoogle.golang.org/genproto/googleapi" - + "s/cloud/vision/v1p2beta1;vision\370\001\001b\006prot" - + "o3" + + "a1\"\214\007\n\014WebDetection\022K\n\014web_entities\030\001 \003(" + + "\01325.google.cloud.vision.v1p2beta1.WebDet" + + "ection.WebEntity\022R\n\024full_matching_images" + + "\030\002 \003(\01324.google.cloud.vision.v1p2beta1.W" + + "ebDetection.WebImage\022U\n\027partial_matching" + + "_images\030\003 \003(\01324.google.cloud.vision.v1p2" + + "beta1.WebDetection.WebImage\022W\n\032pages_wit" + + "h_matching_images\030\004 \003(\01323.google.cloud.v" + + "ision.v1p2beta1.WebDetection.WebPage\022U\n\027" + + "visually_similar_images\030\006 \003(\01324.google.c" + + "loud.vision.v1p2beta1.WebDetection.WebIm" + + "age\022O\n\021best_guess_labels\030\010 \003(\01324.google." + + "cloud.vision.v1p2beta1.WebDetection.WebL" + + "abel\032B\n\tWebEntity\022\021\n\tentity_id\030\001 \001(\t\022\r\n\005" + + "score\030\002 \001(\002\022\023\n\013description\030\003 \001(\t\032&\n\010WebI" + + "mage\022\013\n\003url\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\032\344\001\n\007Web" + + "Page\022\013\n\003url\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\022\022\n\npage" + + "_title\030\003 \001(\t\022R\n\024full_matching_images\030\004 \003" + + "(\01324.google.cloud.vision.v1p2beta1.WebDe" + + "tection.WebImage\022U\n\027partial_matching_ima" + + "ges\030\005 \003(\01324.google.cloud.vision.v1p2beta" + + "1.WebDetection.WebImage\0320\n\010WebLabel\022\r\n\005l" + + "abel\030\001 \001(\t\022\025\n\rlanguage_code\030\002 \001(\tB\200\001\n!co" + + "m.google.cloud.vision.v1p2beta1B\021WebDete" + + "ctionProtoP\001ZCgoogle.golang.org/genproto" + + "/googleapis/cloud/vision/v1p2beta1;visio" + + "n\370\001\001b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); internal_static_google_cloud_vision_v1p2beta1_WebDetection_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_vision_v1p2beta1_WebDetection_fieldAccessorTable = @@ -146,7 +142,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Label", "LanguageCode", }); - com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-vision/proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/image_annotator.proto b/java-vision/proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/image_annotator.proto index 5fc3163c75d6..264462d48438 100644 --- a/java-vision/proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/image_annotator.proto +++ b/java-vision/proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/image_annotator.proto @@ -126,7 +126,8 @@ message Feature { // Model to use for the feature. // Supported values: "builtin/stable" (the default if unset) and - // "builtin/latest". + // "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also + // support "builtin/weekly" for the bleeding edge release updated weekly. string model = 3; } diff --git a/java-vision/proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/text_annotation.proto b/java-vision/proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/text_annotation.proto index b35eb47e8e45..af568194aa8d 100644 --- a/java-vision/proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/text_annotation.proto +++ b/java-vision/proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/text_annotation.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.vision.v1p2beta1; -import "google/api/annotations.proto"; import "google/cloud/vision/v1p2beta1/geometry.proto"; option cc_enable_arenas = true; diff --git a/java-vision/proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/web_detection.proto b/java-vision/proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/web_detection.proto index f2b9dfef00dc..2decb8596ef2 100644 --- a/java-vision/proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/web_detection.proto +++ b/java-vision/proto-google-cloud-vision-v1p2beta1/src/main/proto/google/cloud/vision/v1p2beta1/web_detection.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.vision.v1p2beta1; -import "google/api/annotations.proto"; option cc_enable_arenas = true; option go_package = "google.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision"; diff --git a/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Feature.java b/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Feature.java index bdd7408b0beb..919d397b89f7 100644 --- a/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Feature.java +++ b/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Feature.java @@ -578,7 +578,8 @@ public int getMaxResults() { *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
-   * "builtin/latest".
+   * "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also
+   * support "builtin/weekly" for the bleeding edge release updated weekly.
    * 
* * string model = 3; @@ -603,7 +604,8 @@ public java.lang.String getModel() { *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
-   * "builtin/latest".
+   * "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also
+   * support "builtin/weekly" for the bleeding edge release updated weekly.
    * 
* * string model = 3; @@ -1124,7 +1126,8 @@ public Builder clearMaxResults() { *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
-     * "builtin/latest".
+     * "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also
+     * support "builtin/weekly" for the bleeding edge release updated weekly.
      * 
* * string model = 3; @@ -1148,7 +1151,8 @@ public java.lang.String getModel() { *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
-     * "builtin/latest".
+     * "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also
+     * support "builtin/weekly" for the bleeding edge release updated weekly.
      * 
* * string model = 3; @@ -1172,7 +1176,8 @@ public com.google.protobuf.ByteString getModelBytes() { *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
-     * "builtin/latest".
+     * "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also
+     * support "builtin/weekly" for the bleeding edge release updated weekly.
      * 
* * string model = 3; @@ -1195,7 +1200,8 @@ public Builder setModel(java.lang.String value) { *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
-     * "builtin/latest".
+     * "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also
+     * support "builtin/weekly" for the bleeding edge release updated weekly.
      * 
* * string model = 3; @@ -1214,7 +1220,8 @@ public Builder clearModel() { *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
-     * "builtin/latest".
+     * "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also
+     * support "builtin/weekly" for the bleeding edge release updated weekly.
      * 
* * string model = 3; diff --git a/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/FeatureOrBuilder.java b/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/FeatureOrBuilder.java index 47fdca977086..42976996936a 100644 --- a/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/FeatureOrBuilder.java +++ b/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/FeatureOrBuilder.java @@ -68,7 +68,8 @@ public interface FeatureOrBuilder *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
-   * "builtin/latest".
+   * "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also
+   * support "builtin/weekly" for the bleeding edge release updated weekly.
    * 
* * string model = 3; @@ -82,7 +83,8 @@ public interface FeatureOrBuilder *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
-   * "builtin/latest".
+   * "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also
+   * support "builtin/weekly" for the bleeding edge release updated weekly.
    * 
* * string model = 3; diff --git a/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotationProto.java b/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotationProto.java index 91d00243af18..878ecb4e4152 100644 --- a/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotationProto.java +++ b/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/TextAnnotationProto.java @@ -74,63 +74,61 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n3google/cloud/vision/v1p3beta1/text_ann" + "otation.proto\022\035google.cloud.vision.v1p3b" - + "eta1\032\034google/api/annotations.proto\032,goog" - + "le/cloud/vision/v1p3beta1/geometry.proto" - + "\"\262\004\n\016TextAnnotation\0222\n\005pages\030\001 \003(\0132#.goo" - + "gle.cloud.vision.v1p3beta1.Page\022\014\n\004text\030" - + "\002 \001(\t\032=\n\020DetectedLanguage\022\025\n\rlanguage_co" - + "de\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\032\334\001\n\rDetecte" - + "dBreak\022S\n\004type\030\001 \001(\0162E.google.cloud.visi" - + "on.v1p3beta1.TextAnnotation.DetectedBrea" - + "k.BreakType\022\021\n\tis_prefix\030\002 \001(\010\"c\n\tBreakT" - + "ype\022\013\n\007UNKNOWN\020\000\022\t\n\005SPACE\020\001\022\016\n\nSURE_SPAC" - + "E\020\002\022\022\n\016EOL_SURE_SPACE\020\003\022\n\n\006HYPHEN\020\004\022\016\n\nL" - + "INE_BREAK\020\005\032\277\001\n\014TextProperty\022Z\n\022detected" - + "_languages\030\001 \003(\0132>.google.cloud.vision.v" - + "1p3beta1.TextAnnotation.DetectedLanguage" - + "\022S\n\016detected_break\030\002 \001(\0132;.google.cloud." - + "vision.v1p3beta1.TextAnnotation.Detected" - + "Break\"\275\001\n\004Page\022L\n\010property\030\001 \001(\0132:.googl" - + "e.cloud.vision.v1p3beta1.TextAnnotation." - + "TextProperty\022\r\n\005width\030\002 \001(\005\022\016\n\006height\030\003 " - + "\001(\005\0224\n\006blocks\030\004 \003(\0132$.google.cloud.visio" - + "n.v1p3beta1.Block\022\022\n\nconfidence\030\005 \001(\002\"\202\003" - + "\n\005Block\022L\n\010property\030\001 \001(\0132:.google.cloud" - + ".vision.v1p3beta1.TextAnnotation.TextPro" - + "perty\022A\n\014bounding_box\030\002 \001(\0132+.google.clo" - + "ud.vision.v1p3beta1.BoundingPoly\022<\n\npara" - + "graphs\030\003 \003(\0132(.google.cloud.vision.v1p3b" - + "eta1.Paragraph\022B\n\nblock_type\030\004 \001(\0162..goo" - + "gle.cloud.vision.v1p3beta1.Block.BlockTy" - + "pe\022\022\n\nconfidence\030\005 \001(\002\"R\n\tBlockType\022\013\n\007U" - + "NKNOWN\020\000\022\010\n\004TEXT\020\001\022\t\n\005TABLE\020\002\022\013\n\007PICTURE" - + "\020\003\022\t\n\005RULER\020\004\022\013\n\007BARCODE\020\005\"\344\001\n\tParagraph" - + "\022L\n\010property\030\001 \001(\0132:.google.cloud.vision" - + ".v1p3beta1.TextAnnotation.TextProperty\022A" - + "\n\014bounding_box\030\002 \001(\0132+.google.cloud.visi" - + "on.v1p3beta1.BoundingPoly\0222\n\005words\030\003 \003(\013" - + "2#.google.cloud.vision.v1p3beta1.Word\022\022\n" - + "\nconfidence\030\004 \001(\002\"\343\001\n\004Word\022L\n\010property\030\001" - + " \001(\0132:.google.cloud.vision.v1p3beta1.Tex" - + "tAnnotation.TextProperty\022A\n\014bounding_box" - + "\030\002 \001(\0132+.google.cloud.vision.v1p3beta1.B" - + "oundingPoly\0226\n\007symbols\030\003 \003(\0132%.google.cl" - + "oud.vision.v1p3beta1.Symbol\022\022\n\nconfidenc" - + "e\030\004 \001(\002\"\273\001\n\006Symbol\022L\n\010property\030\001 \001(\0132:.g" - + "oogle.cloud.vision.v1p3beta1.TextAnnotat" - + "ion.TextProperty\022A\n\014bounding_box\030\002 \001(\0132+" - + ".google.cloud.vision.v1p3beta1.BoundingP" - + "oly\022\014\n\004text\030\003 \001(\t\022\022\n\nconfidence\030\004 \001(\002B\202\001" - + "\n!com.google.cloud.vision.v1p3beta1B\023Tex" - + "tAnnotationProtoP\001ZCgoogle.golang.org/ge" - + "nproto/googleapis/cloud/vision/v1p3beta1" - + ";vision\370\001\001b\006proto3" + + "eta1\032,google/cloud/vision/v1p3beta1/geom" + + "etry.proto\"\262\004\n\016TextAnnotation\0222\n\005pages\030\001" + + " \003(\0132#.google.cloud.vision.v1p3beta1.Pag" + + "e\022\014\n\004text\030\002 \001(\t\032=\n\020DetectedLanguage\022\025\n\rl" + + "anguage_code\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\032\334" + + "\001\n\rDetectedBreak\022S\n\004type\030\001 \001(\0162E.google." + + "cloud.vision.v1p3beta1.TextAnnotation.De" + + "tectedBreak.BreakType\022\021\n\tis_prefix\030\002 \001(\010" + + "\"c\n\tBreakType\022\013\n\007UNKNOWN\020\000\022\t\n\005SPACE\020\001\022\016\n" + + "\nSURE_SPACE\020\002\022\022\n\016EOL_SURE_SPACE\020\003\022\n\n\006HYP" + + "HEN\020\004\022\016\n\nLINE_BREAK\020\005\032\277\001\n\014TextProperty\022Z" + + "\n\022detected_languages\030\001 \003(\0132>.google.clou" + + "d.vision.v1p3beta1.TextAnnotation.Detect" + + "edLanguage\022S\n\016detected_break\030\002 \001(\0132;.goo" + + "gle.cloud.vision.v1p3beta1.TextAnnotatio" + + "n.DetectedBreak\"\275\001\n\004Page\022L\n\010property\030\001 \001" + + "(\0132:.google.cloud.vision.v1p3beta1.TextA" + + "nnotation.TextProperty\022\r\n\005width\030\002 \001(\005\022\016\n" + + "\006height\030\003 \001(\005\0224\n\006blocks\030\004 \003(\0132$.google.c" + + "loud.vision.v1p3beta1.Block\022\022\n\nconfidenc" + + "e\030\005 \001(\002\"\202\003\n\005Block\022L\n\010property\030\001 \001(\0132:.go" + + "ogle.cloud.vision.v1p3beta1.TextAnnotati" + + "on.TextProperty\022A\n\014bounding_box\030\002 \001(\0132+." + + "google.cloud.vision.v1p3beta1.BoundingPo" + + "ly\022<\n\nparagraphs\030\003 \003(\0132(.google.cloud.vi" + + "sion.v1p3beta1.Paragraph\022B\n\nblock_type\030\004" + + " \001(\0162..google.cloud.vision.v1p3beta1.Blo" + + "ck.BlockType\022\022\n\nconfidence\030\005 \001(\002\"R\n\tBloc" + + "kType\022\013\n\007UNKNOWN\020\000\022\010\n\004TEXT\020\001\022\t\n\005TABLE\020\002\022" + + "\013\n\007PICTURE\020\003\022\t\n\005RULER\020\004\022\013\n\007BARCODE\020\005\"\344\001\n" + + "\tParagraph\022L\n\010property\030\001 \001(\0132:.google.cl" + + "oud.vision.v1p3beta1.TextAnnotation.Text" + + "Property\022A\n\014bounding_box\030\002 \001(\0132+.google." + + "cloud.vision.v1p3beta1.BoundingPoly\0222\n\005w" + + "ords\030\003 \003(\0132#.google.cloud.vision.v1p3bet" + + "a1.Word\022\022\n\nconfidence\030\004 \001(\002\"\343\001\n\004Word\022L\n\010" + + "property\030\001 \001(\0132:.google.cloud.vision.v1p" + + "3beta1.TextAnnotation.TextProperty\022A\n\014bo" + + "unding_box\030\002 \001(\0132+.google.cloud.vision.v" + + "1p3beta1.BoundingPoly\0226\n\007symbols\030\003 \003(\0132%" + + ".google.cloud.vision.v1p3beta1.Symbol\022\022\n" + + "\nconfidence\030\004 \001(\002\"\273\001\n\006Symbol\022L\n\010property" + + "\030\001 \001(\0132:.google.cloud.vision.v1p3beta1.T" + + "extAnnotation.TextProperty\022A\n\014bounding_b" + + "ox\030\002 \001(\0132+.google.cloud.vision.v1p3beta1" + + ".BoundingPoly\022\014\n\004text\030\003 \001(\t\022\022\n\nconfidenc" + + "e\030\004 \001(\002B\202\001\n!com.google.cloud.vision.v1p3" + + "beta1B\023TextAnnotationProtoP\001ZCgoogle.gol" + + "ang.org/genproto/googleapis/cloud/vision" + + "/v1p3beta1;vision\370\001\001b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.cloud.vision.v1p3beta1.GeometryProto.getDescriptor(), }); internal_static_google_cloud_vision_v1p3beta1_TextAnnotation_descriptor = @@ -211,7 +209,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Property", "BoundingBox", "Text", "Confidence", }); - com.google.api.AnnotationsProto.getDescriptor(); com.google.cloud.vision.v1p3beta1.GeometryProto.getDescriptor(); } diff --git a/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionProto.java b/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionProto.java index 9c6f536250e8..d2ab1d7c80ba 100644 --- a/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionProto.java +++ b/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/WebDetectionProto.java @@ -58,41 +58,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n1google/cloud/vision/v1p3beta1/web_dete" + "ction.proto\022\035google.cloud.vision.v1p3bet" - + "a1\032\034google/api/annotations.proto\"\214\007\n\014Web" - + "Detection\022K\n\014web_entities\030\001 \003(\01325.google" - + ".cloud.vision.v1p3beta1.WebDetection.Web" - + "Entity\022R\n\024full_matching_images\030\002 \003(\01324.g" - + "oogle.cloud.vision.v1p3beta1.WebDetectio" - + "n.WebImage\022U\n\027partial_matching_images\030\003 " - + "\003(\01324.google.cloud.vision.v1p3beta1.WebD" - + "etection.WebImage\022W\n\032pages_with_matching" - + "_images\030\004 \003(\01323.google.cloud.vision.v1p3" - + "beta1.WebDetection.WebPage\022U\n\027visually_s" - + "imilar_images\030\006 \003(\01324.google.cloud.visio" - + "n.v1p3beta1.WebDetection.WebImage\022O\n\021bes" - + "t_guess_labels\030\010 \003(\01324.google.cloud.visi" - + "on.v1p3beta1.WebDetection.WebLabel\032B\n\tWe" - + "bEntity\022\021\n\tentity_id\030\001 \001(\t\022\r\n\005score\030\002 \001(" - + "\002\022\023\n\013description\030\003 \001(\t\032&\n\010WebImage\022\013\n\003ur" - + "l\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\032\344\001\n\007WebPage\022\013\n\003ur" - + "l\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\022\022\n\npage_title\030\003 \001" - + "(\t\022R\n\024full_matching_images\030\004 \003(\01324.googl" - + "e.cloud.vision.v1p3beta1.WebDetection.We" - + "bImage\022U\n\027partial_matching_images\030\005 \003(\0132" - + "4.google.cloud.vision.v1p3beta1.WebDetec" - + "tion.WebImage\0320\n\010WebLabel\022\r\n\005label\030\001 \001(\t" - + "\022\025\n\rlanguage_code\030\002 \001(\tB\200\001\n!com.google.c" - + "loud.vision.v1p3beta1B\021WebDetectionProto" - + "P\001ZCgoogle.golang.org/genproto/googleapi" - + "s/cloud/vision/v1p3beta1;vision\370\001\001b\006prot" - + "o3" + + "a1\"\214\007\n\014WebDetection\022K\n\014web_entities\030\001 \003(" + + "\01325.google.cloud.vision.v1p3beta1.WebDet" + + "ection.WebEntity\022R\n\024full_matching_images" + + "\030\002 \003(\01324.google.cloud.vision.v1p3beta1.W" + + "ebDetection.WebImage\022U\n\027partial_matching" + + "_images\030\003 \003(\01324.google.cloud.vision.v1p3" + + "beta1.WebDetection.WebImage\022W\n\032pages_wit" + + "h_matching_images\030\004 \003(\01323.google.cloud.v" + + "ision.v1p3beta1.WebDetection.WebPage\022U\n\027" + + "visually_similar_images\030\006 \003(\01324.google.c" + + "loud.vision.v1p3beta1.WebDetection.WebIm" + + "age\022O\n\021best_guess_labels\030\010 \003(\01324.google." + + "cloud.vision.v1p3beta1.WebDetection.WebL" + + "abel\032B\n\tWebEntity\022\021\n\tentity_id\030\001 \001(\t\022\r\n\005" + + "score\030\002 \001(\002\022\023\n\013description\030\003 \001(\t\032&\n\010WebI" + + "mage\022\013\n\003url\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\032\344\001\n\007Web" + + "Page\022\013\n\003url\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\022\022\n\npage" + + "_title\030\003 \001(\t\022R\n\024full_matching_images\030\004 \003" + + "(\01324.google.cloud.vision.v1p3beta1.WebDe" + + "tection.WebImage\022U\n\027partial_matching_ima" + + "ges\030\005 \003(\01324.google.cloud.vision.v1p3beta" + + "1.WebDetection.WebImage\0320\n\010WebLabel\022\r\n\005l" + + "abel\030\001 \001(\t\022\025\n\rlanguage_code\030\002 \001(\tB\200\001\n!co" + + "m.google.cloud.vision.v1p3beta1B\021WebDete" + + "ctionProtoP\001ZCgoogle.golang.org/genproto" + + "/googleapis/cloud/vision/v1p3beta1;visio" + + "n\370\001\001b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); internal_static_google_cloud_vision_v1p3beta1_WebDetection_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_vision_v1p3beta1_WebDetection_fieldAccessorTable = @@ -146,7 +142,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Label", "LanguageCode", }); - com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/image_annotator.proto b/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/image_annotator.proto index ca0b4e86d5b9..ebab14a6b115 100644 --- a/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/image_annotator.proto +++ b/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/image_annotator.proto @@ -134,7 +134,8 @@ message Feature { // Model to use for the feature. // Supported values: "builtin/stable" (the default if unset) and - // "builtin/latest". + // "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also + // support "builtin/weekly" for the bleeding edge release updated weekly. string model = 3; } diff --git a/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/text_annotation.proto b/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/text_annotation.proto index 3c256c5773c9..633e404ed097 100644 --- a/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/text_annotation.proto +++ b/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/text_annotation.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.vision.v1p3beta1; -import "google/api/annotations.proto"; import "google/cloud/vision/v1p3beta1/geometry.proto"; option cc_enable_arenas = true; diff --git a/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/web_detection.proto b/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/web_detection.proto index cf9a22612a74..205dfe656d1f 100644 --- a/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/web_detection.proto +++ b/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/proto/google/cloud/vision/v1p3beta1/web_detection.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.vision.v1p3beta1; -import "google/api/annotations.proto"; option cc_enable_arenas = true; option go_package = "google.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision"; diff --git a/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CelebrityProto.java b/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CelebrityProto.java index e391d726a739..d7626dd3b673 100644 --- a/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CelebrityProto.java +++ b/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CelebrityProto.java @@ -49,24 +49,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n(google/cloud/vision/v1p4beta1/face.pro" - + "to\022\035google.cloud.vision.v1p4beta1\032\034googl" - + "e/api/annotations.proto\032,google/cloud/vi" - + "sion/v1p4beta1/geometry.proto\".\n\025FaceRec" - + "ognitionParams\022\025\n\rcelebrity_set\030\001 \003(\t\"D\n" - + "\tCelebrity\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name" - + "\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\"h\n\025FaceRecog" - + "nitionResult\022;\n\tcelebrity\030\001 \001(\0132(.google" - + ".cloud.vision.v1p4beta1.Celebrity\022\022\n\ncon" - + "fidence\030\002 \001(\002B\204\001\n!com.google.cloud.visio" - + "n.v1p4beta1B\016CelebrityProtoP\001ZCgoogle.go" - + "lang.org/genproto/googleapis/cloud/visio" - + "n/v1p4beta1;vision\370\001\001\242\002\004GCVNb\006proto3" + + "to\022\035google.cloud.vision.v1p4beta1\032,googl" + + "e/cloud/vision/v1p4beta1/geometry.proto\"" + + ".\n\025FaceRecognitionParams\022\025\n\rcelebrity_se" + + "t\030\001 \003(\t\"D\n\tCelebrity\022\014\n\004name\030\001 \001(\t\022\024\n\014di" + + "splay_name\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\"h\n" + + "\025FaceRecognitionResult\022;\n\tcelebrity\030\001 \001(" + + "\0132(.google.cloud.vision.v1p4beta1.Celebr" + + "ity\022\022\n\nconfidence\030\002 \001(\002B\204\001\n!com.google.c" + + "loud.vision.v1p4beta1B\016CelebrityProtoP\001Z" + + "Cgoogle.golang.org/genproto/googleapis/c" + + "loud/vision/v1p4beta1;vision\370\001\001\242\002\004GCVNb\006" + + "proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(), }); internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_descriptor = @@ -93,7 +92,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Celebrity", "Confidence", }); - com.google.api.AnnotationsProto.getDescriptor(); com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(); } diff --git a/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Feature.java b/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Feature.java index da9ca19fc76b..7856600c65cc 100644 --- a/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Feature.java +++ b/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Feature.java @@ -578,7 +578,8 @@ public int getMaxResults() { *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
-   * "builtin/latest".
+   * "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also
+   * support "builtin/weekly" for the bleeding edge release updated weekly.
    * 
* * string model = 3; @@ -603,7 +604,8 @@ public java.lang.String getModel() { *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
-   * "builtin/latest".
+   * "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also
+   * support "builtin/weekly" for the bleeding edge release updated weekly.
    * 
* * string model = 3; @@ -1124,7 +1126,8 @@ public Builder clearMaxResults() { *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
-     * "builtin/latest".
+     * "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also
+     * support "builtin/weekly" for the bleeding edge release updated weekly.
      * 
* * string model = 3; @@ -1148,7 +1151,8 @@ public java.lang.String getModel() { *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
-     * "builtin/latest".
+     * "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also
+     * support "builtin/weekly" for the bleeding edge release updated weekly.
      * 
* * string model = 3; @@ -1172,7 +1176,8 @@ public com.google.protobuf.ByteString getModelBytes() { *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
-     * "builtin/latest".
+     * "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also
+     * support "builtin/weekly" for the bleeding edge release updated weekly.
      * 
* * string model = 3; @@ -1195,7 +1200,8 @@ public Builder setModel(java.lang.String value) { *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
-     * "builtin/latest".
+     * "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also
+     * support "builtin/weekly" for the bleeding edge release updated weekly.
      * 
* * string model = 3; @@ -1214,7 +1220,8 @@ public Builder clearModel() { *
      * Model to use for the feature.
      * Supported values: "builtin/stable" (the default if unset) and
-     * "builtin/latest".
+     * "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also
+     * support "builtin/weekly" for the bleeding edge release updated weekly.
      * 
* * string model = 3; diff --git a/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FeatureOrBuilder.java b/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FeatureOrBuilder.java index 34a23fcc17f4..c70ce4c52dee 100644 --- a/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FeatureOrBuilder.java +++ b/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FeatureOrBuilder.java @@ -68,7 +68,8 @@ public interface FeatureOrBuilder *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
-   * "builtin/latest".
+   * "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also
+   * support "builtin/weekly" for the bleeding edge release updated weekly.
    * 
* * string model = 3; @@ -82,7 +83,8 @@ public interface FeatureOrBuilder *
    * Model to use for the feature.
    * Supported values: "builtin/stable" (the default if unset) and
-   * "builtin/latest".
+   * "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also
+   * support "builtin/weekly" for the bleeding edge release updated weekly.
    * 
* * string model = 3; diff --git a/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GeometryProto.java b/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GeometryProto.java index 59f72a416091..9beb15f16182 100644 --- a/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GeometryProto.java +++ b/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GeometryProto.java @@ -53,25 +53,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n,google/cloud/vision/v1p4beta1/geometry" - + ".proto\022\035google.cloud.vision.v1p4beta1\032\034g" - + "oogle/api/annotations.proto\"\036\n\006Vertex\022\t\n" - + "\001x\030\001 \001(\005\022\t\n\001y\030\002 \001(\005\"(\n\020NormalizedVertex\022" - + "\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\"\225\001\n\014BoundingPoly\0227" - + "\n\010vertices\030\001 \003(\0132%.google.cloud.vision.v" - + "1p4beta1.Vertex\022L\n\023normalized_vertices\030\002" - + " \003(\0132/.google.cloud.vision.v1p4beta1.Nor" - + "malizedVertex\"+\n\010Position\022\t\n\001x\030\001 \001(\002\022\t\n\001" - + "y\030\002 \001(\002\022\t\n\001z\030\003 \001(\002B\203\001\n!com.google.cloud." - + "vision.v1p4beta1B\rGeometryProtoP\001ZCgoogl" - + "e.golang.org/genproto/googleapis/cloud/v" - + "ision/v1p4beta1;vision\370\001\001\242\002\004GCVNb\006proto3" + + ".proto\022\035google.cloud.vision.v1p4beta1\"\036\n" + + "\006Vertex\022\t\n\001x\030\001 \001(\005\022\t\n\001y\030\002 \001(\005\"(\n\020Normali" + + "zedVertex\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\"\225\001\n\014Boun" + + "dingPoly\0227\n\010vertices\030\001 \003(\0132%.google.clou" + + "d.vision.v1p4beta1.Vertex\022L\n\023normalized_" + + "vertices\030\002 \003(\0132/.google.cloud.vision.v1p" + + "4beta1.NormalizedVertex\"+\n\010Position\022\t\n\001x" + + "\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\022\t\n\001z\030\003 \001(\002B\203\001\n!com.goo" + + "gle.cloud.vision.v1p4beta1B\rGeometryProt" + + "oP\001ZCgoogle.golang.org/genproto/googleap" + + "is/cloud/vision/v1p4beta1;vision\370\001\001\242\002\004GC" + + "VNb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); internal_static_google_cloud_vision_v1p4beta1_Vertex_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_vision_v1p4beta1_Vertex_fieldAccessorTable = @@ -104,7 +101,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "X", "Y", "Z", }); - com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorProto.java b/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorProto.java index 5ca697736e98..ff78024be0a7 100644 --- a/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorProto.java +++ b/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorProto.java @@ -207,250 +207,250 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/cloud/vision/v1p4beta1/text_annotation." + "proto\0321google/cloud/vision/v1p4beta1/web" + "_detection.proto\032#google/longrunning/ope" - + "rations.proto\032 google/protobuf/field_mas" - + "k.proto\032\037google/protobuf/timestamp.proto" - + "\032\027google/rpc/status.proto\032\027google/type/c" - + "olor.proto\032\030google/type/latlng.proto\"\216\003\n" - + "\007Feature\0229\n\004type\030\001 \001(\0162+.google.cloud.vi" - + "sion.v1p4beta1.Feature.Type\022\023\n\013max_resul" - + "ts\030\002 \001(\005\022\r\n\005model\030\003 \001(\t\"\243\002\n\004Type\022\024\n\020TYPE" - + "_UNSPECIFIED\020\000\022\022\n\016FACE_DETECTION\020\001\022\026\n\022LA" - + "NDMARK_DETECTION\020\002\022\022\n\016LOGO_DETECTION\020\003\022\023" - + "\n\017LABEL_DETECTION\020\004\022\022\n\016TEXT_DETECTION\020\005\022" - + "\033\n\027DOCUMENT_TEXT_DETECTION\020\013\022\031\n\025SAFE_SEA" - + "RCH_DETECTION\020\006\022\024\n\020IMAGE_PROPERTIES\020\007\022\016\n" - + "\nCROP_HINTS\020\t\022\021\n\rWEB_DETECTION\020\n\022\022\n\016PROD" - + "UCT_SEARCH\020\014\022\027\n\023OBJECT_LOCALIZATION\020\023\"7\n" - + "\013ImageSource\022\025\n\rgcs_image_uri\030\001 \001(\t\022\021\n\ti" - + "mage_uri\030\002 \001(\t\"T\n\005Image\022\017\n\007content\030\001 \001(\014" - + "\022:\n\006source\030\002 \001(\0132*.google.cloud.vision.v" - + "1p4beta1.ImageSource\"\355\016\n\016FaceAnnotation\022" - + "B\n\rbounding_poly\030\001 \001(\0132+.google.cloud.vi" - + "sion.v1p4beta1.BoundingPoly\022E\n\020fd_boundi" - + "ng_poly\030\002 \001(\0132+.google.cloud.vision.v1p4" - + "beta1.BoundingPoly\022I\n\tlandmarks\030\003 \003(\01326." - + "google.cloud.vision.v1p4beta1.FaceAnnota" - + "tion.Landmark\022\022\n\nroll_angle\030\004 \001(\002\022\021\n\tpan" - + "_angle\030\005 \001(\002\022\022\n\ntilt_angle\030\006 \001(\002\022\034\n\024dete" - + "ction_confidence\030\007 \001(\002\022\036\n\026landmarking_co" - + "nfidence\030\010 \001(\002\022A\n\016joy_likelihood\030\t \001(\0162)" - + ".google.cloud.vision.v1p4beta1.Likelihoo" - + "d\022D\n\021sorrow_likelihood\030\n \001(\0162).google.cl" - + "oud.vision.v1p4beta1.Likelihood\022C\n\020anger" - + "_likelihood\030\013 \001(\0162).google.cloud.vision." - + "v1p4beta1.Likelihood\022F\n\023surprise_likelih" - + "ood\030\014 \001(\0162).google.cloud.vision.v1p4beta" - + "1.Likelihood\022K\n\030under_exposed_likelihood" - + "\030\r \001(\0162).google.cloud.vision.v1p4beta1.L" - + "ikelihood\022E\n\022blurred_likelihood\030\016 \001(\0162)." - + "google.cloud.vision.v1p4beta1.Likelihood" - + "\022F\n\023headwear_likelihood\030\017 \001(\0162).google.c" - + "loud.vision.v1p4beta1.Likelihood\022P\n\022reco" - + "gnition_result\030\020 \003(\01324.google.cloud.visi" - + "on.v1p4beta1.FaceRecognitionResult\032\307\007\n\010L" - + "andmark\022I\n\004type\030\003 \001(\0162;.google.cloud.vis" - + "ion.v1p4beta1.FaceAnnotation.Landmark.Ty" - + "pe\0229\n\010position\030\004 \001(\0132\'.google.cloud.visi" - + "on.v1p4beta1.Position\"\264\006\n\004Type\022\024\n\020UNKNOW" - + "N_LANDMARK\020\000\022\014\n\010LEFT_EYE\020\001\022\r\n\tRIGHT_EYE\020" - + "\002\022\030\n\024LEFT_OF_LEFT_EYEBROW\020\003\022\031\n\025RIGHT_OF_" - + "LEFT_EYEBROW\020\004\022\031\n\025LEFT_OF_RIGHT_EYEBROW\020" - + "\005\022\032\n\026RIGHT_OF_RIGHT_EYEBROW\020\006\022\031\n\025MIDPOIN" - + "T_BETWEEN_EYES\020\007\022\014\n\010NOSE_TIP\020\010\022\r\n\tUPPER_" - + "LIP\020\t\022\r\n\tLOWER_LIP\020\n\022\016\n\nMOUTH_LEFT\020\013\022\017\n\013" - + "MOUTH_RIGHT\020\014\022\020\n\014MOUTH_CENTER\020\r\022\025\n\021NOSE_" - + "BOTTOM_RIGHT\020\016\022\024\n\020NOSE_BOTTOM_LEFT\020\017\022\026\n\022" - + "NOSE_BOTTOM_CENTER\020\020\022\031\n\025LEFT_EYE_TOP_BOU" - + "NDARY\020\021\022\031\n\025LEFT_EYE_RIGHT_CORNER\020\022\022\034\n\030LE" - + "FT_EYE_BOTTOM_BOUNDARY\020\023\022\030\n\024LEFT_EYE_LEF" - + "T_CORNER\020\024\022\032\n\026RIGHT_EYE_TOP_BOUNDARY\020\025\022\032" - + "\n\026RIGHT_EYE_RIGHT_CORNER\020\026\022\035\n\031RIGHT_EYE_" - + "BOTTOM_BOUNDARY\020\027\022\031\n\025RIGHT_EYE_LEFT_CORN" - + "ER\020\030\022\037\n\033LEFT_EYEBROW_UPPER_MIDPOINT\020\031\022 \n" - + "\034RIGHT_EYEBROW_UPPER_MIDPOINT\020\032\022\024\n\020LEFT_" - + "EAR_TRAGION\020\033\022\025\n\021RIGHT_EAR_TRAGION\020\034\022\022\n\016" - + "LEFT_EYE_PUPIL\020\035\022\023\n\017RIGHT_EYE_PUPIL\020\036\022\025\n" - + "\021FOREHEAD_GLABELLA\020\037\022\021\n\rCHIN_GNATHION\020 \022" - + "\024\n\020CHIN_LEFT_GONION\020!\022\025\n\021CHIN_RIGHT_GONI" - + "ON\020\"\"4\n\014LocationInfo\022$\n\007lat_lng\030\001 \001(\0132\023." - + "google.type.LatLng\"=\n\010Property\022\014\n\004name\030\001" - + " \001(\t\022\r\n\005value\030\002 \001(\t\022\024\n\014uint64_value\030\003 \001(" - + "\004\"\300\002\n\020EntityAnnotation\022\013\n\003mid\030\001 \001(\t\022\016\n\006l" - + "ocale\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022\r\n\005scor" - + "e\030\004 \001(\002\022\026\n\nconfidence\030\005 \001(\002B\002\030\001\022\022\n\ntopic" - + "ality\030\006 \001(\002\022B\n\rbounding_poly\030\007 \001(\0132+.goo" - + "gle.cloud.vision.v1p4beta1.BoundingPoly\022" - + ">\n\tlocations\030\010 \003(\0132+.google.cloud.vision" - + ".v1p4beta1.LocationInfo\022;\n\nproperties\030\t " - + "\003(\0132\'.google.cloud.vision.v1p4beta1.Prop" - + "erty\"\240\001\n\031LocalizedObjectAnnotation\022\013\n\003mi" - + "d\030\001 \001(\t\022\025\n\rlanguage_code\030\002 \001(\t\022\014\n\004name\030\003" - + " \001(\t\022\r\n\005score\030\004 \001(\002\022B\n\rbounding_poly\030\005 \001" - + "(\0132+.google.cloud.vision.v1p4beta1.Bound" - + "ingPoly\"\274\002\n\024SafeSearchAnnotation\0228\n\005adul" - + "t\030\001 \001(\0162).google.cloud.vision.v1p4beta1." - + "Likelihood\0228\n\005spoof\030\002 \001(\0162).google.cloud" - + ".vision.v1p4beta1.Likelihood\022:\n\007medical\030" - + "\003 \001(\0162).google.cloud.vision.v1p4beta1.Li" - + "kelihood\022;\n\010violence\030\004 \001(\0162).google.clou" - + "d.vision.v1p4beta1.Likelihood\0227\n\004racy\030\t " + + "rations.proto\032\037google/protobuf/timestamp" + + ".proto\032\027google/rpc/status.proto\032\027google/" + + "type/color.proto\032\030google/type/latlng.pro" + + "to\"\216\003\n\007Feature\0229\n\004type\030\001 \001(\0162+.google.cl" + + "oud.vision.v1p4beta1.Feature.Type\022\023\n\013max" + + "_results\030\002 \001(\005\022\r\n\005model\030\003 \001(\t\"\243\002\n\004Type\022\024" + + "\n\020TYPE_UNSPECIFIED\020\000\022\022\n\016FACE_DETECTION\020\001" + + "\022\026\n\022LANDMARK_DETECTION\020\002\022\022\n\016LOGO_DETECTI" + + "ON\020\003\022\023\n\017LABEL_DETECTION\020\004\022\022\n\016TEXT_DETECT" + + "ION\020\005\022\033\n\027DOCUMENT_TEXT_DETECTION\020\013\022\031\n\025SA" + + "FE_SEARCH_DETECTION\020\006\022\024\n\020IMAGE_PROPERTIE" + + "S\020\007\022\016\n\nCROP_HINTS\020\t\022\021\n\rWEB_DETECTION\020\n\022\022" + + "\n\016PRODUCT_SEARCH\020\014\022\027\n\023OBJECT_LOCALIZATIO" + + "N\020\023\"7\n\013ImageSource\022\025\n\rgcs_image_uri\030\001 \001(" + + "\t\022\021\n\timage_uri\030\002 \001(\t\"T\n\005Image\022\017\n\007content" + + "\030\001 \001(\014\022:\n\006source\030\002 \001(\0132*.google.cloud.vi" + + "sion.v1p4beta1.ImageSource\"\355\016\n\016FaceAnnot" + + "ation\022B\n\rbounding_poly\030\001 \001(\0132+.google.cl" + + "oud.vision.v1p4beta1.BoundingPoly\022E\n\020fd_" + + "bounding_poly\030\002 \001(\0132+.google.cloud.visio" + + "n.v1p4beta1.BoundingPoly\022I\n\tlandmarks\030\003 " + + "\003(\01326.google.cloud.vision.v1p4beta1.Face" + + "Annotation.Landmark\022\022\n\nroll_angle\030\004 \001(\002\022" + + "\021\n\tpan_angle\030\005 \001(\002\022\022\n\ntilt_angle\030\006 \001(\002\022\034" + + "\n\024detection_confidence\030\007 \001(\002\022\036\n\026landmark" + + "ing_confidence\030\010 \001(\002\022A\n\016joy_likelihood\030\t" + + " \001(\0162).google.cloud.vision.v1p4beta1.Lik" + + "elihood\022D\n\021sorrow_likelihood\030\n \001(\0162).goo" + + "gle.cloud.vision.v1p4beta1.Likelihood\022C\n" + + "\020anger_likelihood\030\013 \001(\0162).google.cloud.v" + + "ision.v1p4beta1.Likelihood\022F\n\023surprise_l" + + "ikelihood\030\014 \001(\0162).google.cloud.vision.v1" + + "p4beta1.Likelihood\022K\n\030under_exposed_like" + + "lihood\030\r \001(\0162).google.cloud.vision.v1p4b" + + "eta1.Likelihood\022E\n\022blurred_likelihood\030\016 " + "\001(\0162).google.cloud.vision.v1p4beta1.Like" - + "lihood\"a\n\013LatLongRect\022(\n\013min_lat_lng\030\001 \001" - + "(\0132\023.google.type.LatLng\022(\n\013max_lat_lng\030\002" - + " \001(\0132\023.google.type.LatLng\"U\n\tColorInfo\022!" - + "\n\005color\030\001 \001(\0132\022.google.type.Color\022\r\n\005sco" - + "re\030\002 \001(\002\022\026\n\016pixel_fraction\030\003 \001(\002\"T\n\030Domi" - + "nantColorsAnnotation\0228\n\006colors\030\001 \003(\0132(.g" - + "oogle.cloud.vision.v1p4beta1.ColorInfo\"c" - + "\n\017ImageProperties\022P\n\017dominant_colors\030\001 \001" - + "(\01327.google.cloud.vision.v1p4beta1.Domin" - + "antColorsAnnotation\"\177\n\010CropHint\022B\n\rbound" - + "ing_poly\030\001 \001(\0132+.google.cloud.vision.v1p" - + "4beta1.BoundingPoly\022\022\n\nconfidence\030\002 \001(\002\022" - + "\033\n\023importance_fraction\030\003 \001(\002\"R\n\023CropHint" - + "sAnnotation\022;\n\ncrop_hints\030\001 \003(\0132\'.google" - + ".cloud.vision.v1p4beta1.CropHint\"(\n\017Crop" - + "HintsParams\022\025\n\raspect_ratios\030\001 \003(\002\"1\n\022We" - + "bDetectionParams\022\033\n\023include_geo_results\030" - + "\002 \001(\010\"c\n\023TextDetectionParams\022.\n&enable_t" - + "ext_detection_confidence_score\030\t \001(\010\022\034\n\024" - + "advanced_ocr_options\030\013 \003(\t\"\202\004\n\014ImageCont" - + "ext\022A\n\rlat_long_rect\030\001 \001(\0132*.google.clou" - + "d.vision.v1p4beta1.LatLongRect\022\026\n\016langua" - + "ge_hints\030\002 \003(\t\022I\n\021crop_hints_params\030\004 \001(" - + "\0132..google.cloud.vision.v1p4beta1.CropHi" - + "ntsParams\022U\n\027face_recognition_params\030\n \001" - + "(\01324.google.cloud.vision.v1p4beta1.FaceR" - + "ecognitionParams\022Q\n\025product_search_param" - + "s\030\005 \001(\01322.google.cloud.vision.v1p4beta1." - + "ProductSearchParams\022O\n\024web_detection_par" - + "ams\030\006 \001(\01321.google.cloud.vision.v1p4beta" - + "1.WebDetectionParams\022Q\n\025text_detection_p" - + "arams\030\014 \001(\01322.google.cloud.vision.v1p4be" - + "ta1.TextDetectionParams\"\311\001\n\024AnnotateImag" - + "eRequest\0223\n\005image\030\001 \001(\0132$.google.cloud.v" - + "ision.v1p4beta1.Image\0228\n\010features\030\002 \003(\0132" - + "&.google.cloud.vision.v1p4beta1.Feature\022" - + "B\n\rimage_context\030\003 \001(\0132+.google.cloud.vi" - + "sion.v1p4beta1.ImageContext\":\n\026ImageAnno" - + "tationContext\022\013\n\003uri\030\001 \001(\t\022\023\n\013page_numbe" - + "r\030\002 \001(\005\"\277\010\n\025AnnotateImageResponse\022G\n\020fac" - + "e_annotations\030\001 \003(\0132-.google.cloud.visio" - + "n.v1p4beta1.FaceAnnotation\022M\n\024landmark_a" - + "nnotations\030\002 \003(\0132/.google.cloud.vision.v" - + "1p4beta1.EntityAnnotation\022I\n\020logo_annota" - + "tions\030\003 \003(\0132/.google.cloud.vision.v1p4be" - + "ta1.EntityAnnotation\022J\n\021label_annotation" - + "s\030\004 \003(\0132/.google.cloud.vision.v1p4beta1." - + "EntityAnnotation\022^\n\034localized_object_ann" - + "otations\030\026 \003(\01328.google.cloud.vision.v1p" - + "4beta1.LocalizedObjectAnnotation\022I\n\020text" - + "_annotations\030\005 \003(\0132/.google.cloud.vision" - + ".v1p4beta1.EntityAnnotation\022K\n\024full_text" - + "_annotation\030\014 \001(\0132-.google.cloud.vision." - + "v1p4beta1.TextAnnotation\022S\n\026safe_search_" - + "annotation\030\006 \001(\01323.google.cloud.vision.v" - + "1p4beta1.SafeSearchAnnotation\022S\n\033image_p" - + "roperties_annotation\030\010 \001(\0132..google.clou" - + "d.vision.v1p4beta1.ImageProperties\022Q\n\025cr" - + "op_hints_annotation\030\013 \001(\01322.google.cloud" - + ".vision.v1p4beta1.CropHintsAnnotation\022B\n" - + "\rweb_detection\030\r \001(\0132+.google.cloud.visi" - + "on.v1p4beta1.WebDetection\022S\n\026product_sea" - + "rch_results\030\016 \001(\01323.google.cloud.vision." - + "v1p4beta1.ProductSearchResults\022!\n\005error\030" - + "\t \001(\0132\022.google.rpc.Status\022F\n\007context\030\025 \001" - + "(\01325.google.cloud.vision.v1p4beta1.Image" - + "AnnotationContext\"h\n\032BatchAnnotateImages" - + "Request\022J\n\010requests\030\001 \003(\01323.google.cloud" - + ".vision.v1p4beta1.AnnotateImageRequestB\003" - + "\340A\002\"f\n\033BatchAnnotateImagesResponse\022G\n\tre" - + "sponses\030\001 \003(\01324.google.cloud.vision.v1p4" - + "beta1.AnnotateImageResponse\"\344\001\n\023Annotate" - + "FileRequest\022@\n\014input_config\030\001 \001(\0132*.goog" - + "le.cloud.vision.v1p4beta1.InputConfig\0228\n" - + "\010features\030\002 \003(\0132&.google.cloud.vision.v1" - + "p4beta1.Feature\022B\n\rimage_context\030\003 \001(\0132+" - + ".google.cloud.vision.v1p4beta1.ImageCont" - + "ext\022\r\n\005pages\030\004 \003(\005\"\331\001\n\024AnnotateFileRespo" - + "nse\022@\n\014input_config\030\001 \001(\0132*.google.cloud" - + ".vision.v1p4beta1.InputConfig\022G\n\trespons" - + "es\030\002 \003(\01324.google.cloud.vision.v1p4beta1" - + ".AnnotateImageResponse\022\023\n\013total_pages\030\003 " - + "\001(\005\022!\n\005error\030\004 \001(\0132\022.google.rpc.Status\"f" - + "\n\031BatchAnnotateFilesRequest\022I\n\010requests\030" - + "\001 \003(\01322.google.cloud.vision.v1p4beta1.An" - + "notateFileRequestB\003\340A\002\"d\n\032BatchAnnotateF" - + "ilesResponse\022F\n\tresponses\030\001 \003(\01323.google" - + ".cloud.vision.v1p4beta1.AnnotateFileResp" - + "onse\"\236\002\n\030AsyncAnnotateFileRequest\022@\n\014inp" - + "ut_config\030\001 \001(\0132*.google.cloud.vision.v1" - + "p4beta1.InputConfig\0228\n\010features\030\002 \003(\0132&." - + "google.cloud.vision.v1p4beta1.Feature\022B\n" - + "\rimage_context\030\003 \001(\0132+.google.cloud.visi" - + "on.v1p4beta1.ImageContext\022B\n\routput_conf" - + "ig\030\004 \001(\0132+.google.cloud.vision.v1p4beta1" - + ".OutputConfig\"_\n\031AsyncAnnotateFileRespon" - + "se\022B\n\routput_config\030\001 \001(\0132+.google.cloud" - + ".vision.v1p4beta1.OutputConfig\"\266\001\n\037Async" - + "BatchAnnotateImagesRequest\022J\n\010requests\030\001" - + " \003(\01323.google.cloud.vision.v1p4beta1.Ann" - + "otateImageRequestB\003\340A\002\022G\n\routput_config\030" - + "\002 \001(\0132+.google.cloud.vision.v1p4beta1.Ou" - + "tputConfigB\003\340A\002\"f\n AsyncBatchAnnotateIma" - + "gesResponse\022B\n\routput_config\030\001 \001(\0132+.goo" - + "gle.cloud.vision.v1p4beta1.OutputConfig\"" - + "p\n\036AsyncBatchAnnotateFilesRequest\022N\n\010req" - + "uests\030\001 \003(\01327.google.cloud.vision.v1p4be" - + "ta1.AsyncAnnotateFileRequestB\003\340A\002\"n\n\037Asy" - + "ncBatchAnnotateFilesResponse\022K\n\tresponse" - + "s\030\001 \003(\01328.google.cloud.vision.v1p4beta1." - + "AsyncAnnotateFileResponse\"o\n\013InputConfig" - + "\022<\n\ngcs_source\030\001 \001(\0132(.google.cloud.visi" - + "on.v1p4beta1.GcsSource\022\017\n\007content\030\003 \001(\014\022" - + "\021\n\tmime_type\030\002 \001(\t\"j\n\014OutputConfig\022F\n\017gc" - + "s_destination\030\001 \001(\0132-.google.cloud.visio" - + "n.v1p4beta1.GcsDestination\022\022\n\nbatch_size" - + "\030\002 \001(\005\"\030\n\tGcsSource\022\013\n\003uri\030\001 \001(\t\"\035\n\016GcsD" - + "estination\022\013\n\003uri\030\001 \001(\t\"\217\002\n\021OperationMet" - + "adata\022E\n\005state\030\001 \001(\01626.google.cloud.visi" - + "on.v1p4beta1.OperationMetadata.State\022/\n\013" - + "create_time\030\005 \001(\0132\032.google.protobuf.Time" - + "stamp\022/\n\013update_time\030\006 \001(\0132\032.google.prot" - + "obuf.Timestamp\"Q\n\005State\022\025\n\021STATE_UNSPECI" - + "FIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DONE" - + "\020\003\022\r\n\tCANCELLED\020\004*e\n\nLikelihood\022\013\n\007UNKNO" - + "WN\020\000\022\021\n\rVERY_UNLIKELY\020\001\022\014\n\010UNLIKELY\020\002\022\014\n" - + "\010POSSIBLE\020\003\022\n\n\006LIKELY\020\004\022\017\n\013VERY_LIKELY\020\005" - + "2\361\007\n\016ImageAnnotator\022\276\001\n\023BatchAnnotateIma" - + "ges\0229.google.cloud.vision.v1p4beta1.Batc" - + "hAnnotateImagesRequest\032:.google.cloud.vi" - + "sion.v1p4beta1.BatchAnnotateImagesRespon" - + "se\"0\202\323\344\223\002\037\"\032/v1p4beta1/images:annotate:\001" - + "*\332A\010requests\022\272\001\n\022BatchAnnotateFiles\0228.go" - + "ogle.cloud.vision.v1p4beta1.BatchAnnotat" - + "eFilesRequest\0329.google.cloud.vision.v1p4" - + "beta1.BatchAnnotateFilesResponse\"/\202\323\344\223\002\036" - + "\"\031/v1p4beta1/files:annotate:\001*\332A\010request" - + "s\022\374\001\n\030AsyncBatchAnnotateImages\022>.google." - + "cloud.vision.v1p4beta1.AsyncBatchAnnotat" - + "eImagesRequest\032\035.google.longrunning.Oper" - + "ation\"\200\001\202\323\344\223\002)\"$/v1p4beta1/images:asyncB" - + "atchAnnotate:\001*\332A\026requests,output_config" - + "\312A5\n AsyncBatchAnnotateImagesResponse\022\021O" - + "perationMetadata\022\351\001\n\027AsyncBatchAnnotateF" - + "iles\022=.google.cloud.vision.v1p4beta1.Asy" - + "ncBatchAnnotateFilesRequest\032\035.google.lon" - + "grunning.Operation\"p\202\323\344\223\002(\"#/v1p4beta1/f" - + "iles:asyncBatchAnnotate:\001*\332A\010requests\312A4" - + "\n\037AsyncBatchAnnotateFilesResponse\022\021Opera" - + "tionMetadata\032v\312A\025vision.googleapis.com\322A" - + "[https://www.googleapis.com/auth/cloud-p" - + "latform,https://www.googleapis.com/auth/" - + "cloud-visionB\211\001\n!com.google.cloud.vision" - + ".v1p4beta1B\023ImageAnnotatorProtoP\001ZCgoogl" - + "e.golang.org/genproto/googleapis/cloud/v" - + "ision/v1p4beta1;vision\370\001\001\242\002\004GCVNb\006proto3" + + "lihood\022F\n\023headwear_likelihood\030\017 \001(\0162).go" + + "ogle.cloud.vision.v1p4beta1.Likelihood\022P" + + "\n\022recognition_result\030\020 \003(\01324.google.clou" + + "d.vision.v1p4beta1.FaceRecognitionResult" + + "\032\307\007\n\010Landmark\022I\n\004type\030\003 \001(\0162;.google.clo" + + "ud.vision.v1p4beta1.FaceAnnotation.Landm" + + "ark.Type\0229\n\010position\030\004 \001(\0132\'.google.clou" + + "d.vision.v1p4beta1.Position\"\264\006\n\004Type\022\024\n\020" + + "UNKNOWN_LANDMARK\020\000\022\014\n\010LEFT_EYE\020\001\022\r\n\tRIGH" + + "T_EYE\020\002\022\030\n\024LEFT_OF_LEFT_EYEBROW\020\003\022\031\n\025RIG" + + "HT_OF_LEFT_EYEBROW\020\004\022\031\n\025LEFT_OF_RIGHT_EY" + + "EBROW\020\005\022\032\n\026RIGHT_OF_RIGHT_EYEBROW\020\006\022\031\n\025M" + + "IDPOINT_BETWEEN_EYES\020\007\022\014\n\010NOSE_TIP\020\010\022\r\n\t" + + "UPPER_LIP\020\t\022\r\n\tLOWER_LIP\020\n\022\016\n\nMOUTH_LEFT" + + "\020\013\022\017\n\013MOUTH_RIGHT\020\014\022\020\n\014MOUTH_CENTER\020\r\022\025\n" + + "\021NOSE_BOTTOM_RIGHT\020\016\022\024\n\020NOSE_BOTTOM_LEFT" + + "\020\017\022\026\n\022NOSE_BOTTOM_CENTER\020\020\022\031\n\025LEFT_EYE_T" + + "OP_BOUNDARY\020\021\022\031\n\025LEFT_EYE_RIGHT_CORNER\020\022" + + "\022\034\n\030LEFT_EYE_BOTTOM_BOUNDARY\020\023\022\030\n\024LEFT_E" + + "YE_LEFT_CORNER\020\024\022\032\n\026RIGHT_EYE_TOP_BOUNDA" + + "RY\020\025\022\032\n\026RIGHT_EYE_RIGHT_CORNER\020\026\022\035\n\031RIGH" + + "T_EYE_BOTTOM_BOUNDARY\020\027\022\031\n\025RIGHT_EYE_LEF" + + "T_CORNER\020\030\022\037\n\033LEFT_EYEBROW_UPPER_MIDPOIN" + + "T\020\031\022 \n\034RIGHT_EYEBROW_UPPER_MIDPOINT\020\032\022\024\n" + + "\020LEFT_EAR_TRAGION\020\033\022\025\n\021RIGHT_EAR_TRAGION" + + "\020\034\022\022\n\016LEFT_EYE_PUPIL\020\035\022\023\n\017RIGHT_EYE_PUPI" + + "L\020\036\022\025\n\021FOREHEAD_GLABELLA\020\037\022\021\n\rCHIN_GNATH" + + "ION\020 \022\024\n\020CHIN_LEFT_GONION\020!\022\025\n\021CHIN_RIGH" + + "T_GONION\020\"\"4\n\014LocationInfo\022$\n\007lat_lng\030\001 " + + "\001(\0132\023.google.type.LatLng\"=\n\010Property\022\014\n\004" + + "name\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\022\024\n\014uint64_valu" + + "e\030\003 \001(\004\"\300\002\n\020EntityAnnotation\022\013\n\003mid\030\001 \001(" + + "\t\022\016\n\006locale\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022\r" + + "\n\005score\030\004 \001(\002\022\026\n\nconfidence\030\005 \001(\002B\002\030\001\022\022\n" + + "\ntopicality\030\006 \001(\002\022B\n\rbounding_poly\030\007 \001(\013" + + "2+.google.cloud.vision.v1p4beta1.Boundin" + + "gPoly\022>\n\tlocations\030\010 \003(\0132+.google.cloud." + + "vision.v1p4beta1.LocationInfo\022;\n\npropert" + + "ies\030\t \003(\0132\'.google.cloud.vision.v1p4beta" + + "1.Property\"\240\001\n\031LocalizedObjectAnnotation" + + "\022\013\n\003mid\030\001 \001(\t\022\025\n\rlanguage_code\030\002 \001(\t\022\014\n\004" + + "name\030\003 \001(\t\022\r\n\005score\030\004 \001(\002\022B\n\rbounding_po" + + "ly\030\005 \001(\0132+.google.cloud.vision.v1p4beta1" + + ".BoundingPoly\"\274\002\n\024SafeSearchAnnotation\0228" + + "\n\005adult\030\001 \001(\0162).google.cloud.vision.v1p4" + + "beta1.Likelihood\0228\n\005spoof\030\002 \001(\0162).google" + + ".cloud.vision.v1p4beta1.Likelihood\022:\n\007me" + + "dical\030\003 \001(\0162).google.cloud.vision.v1p4be" + + "ta1.Likelihood\022;\n\010violence\030\004 \001(\0162).googl" + + "e.cloud.vision.v1p4beta1.Likelihood\0227\n\004r" + + "acy\030\t \001(\0162).google.cloud.vision.v1p4beta" + + "1.Likelihood\"a\n\013LatLongRect\022(\n\013min_lat_l" + + "ng\030\001 \001(\0132\023.google.type.LatLng\022(\n\013max_lat" + + "_lng\030\002 \001(\0132\023.google.type.LatLng\"U\n\tColor" + + "Info\022!\n\005color\030\001 \001(\0132\022.google.type.Color\022" + + "\r\n\005score\030\002 \001(\002\022\026\n\016pixel_fraction\030\003 \001(\002\"T" + + "\n\030DominantColorsAnnotation\0228\n\006colors\030\001 \003" + + "(\0132(.google.cloud.vision.v1p4beta1.Color" + + "Info\"c\n\017ImageProperties\022P\n\017dominant_colo" + + "rs\030\001 \001(\01327.google.cloud.vision.v1p4beta1" + + ".DominantColorsAnnotation\"\177\n\010CropHint\022B\n" + + "\rbounding_poly\030\001 \001(\0132+.google.cloud.visi" + + "on.v1p4beta1.BoundingPoly\022\022\n\nconfidence\030" + + "\002 \001(\002\022\033\n\023importance_fraction\030\003 \001(\002\"R\n\023Cr" + + "opHintsAnnotation\022;\n\ncrop_hints\030\001 \003(\0132\'." + + "google.cloud.vision.v1p4beta1.CropHint\"(" + + "\n\017CropHintsParams\022\025\n\raspect_ratios\030\001 \003(\002" + + "\"1\n\022WebDetectionParams\022\033\n\023include_geo_re" + + "sults\030\002 \001(\010\"c\n\023TextDetectionParams\022.\n&en" + + "able_text_detection_confidence_score\030\t \001" + + "(\010\022\034\n\024advanced_ocr_options\030\013 \003(\t\"\202\004\n\014Ima" + + "geContext\022A\n\rlat_long_rect\030\001 \001(\0132*.googl" + + "e.cloud.vision.v1p4beta1.LatLongRect\022\026\n\016" + + "language_hints\030\002 \003(\t\022I\n\021crop_hints_param" + + "s\030\004 \001(\0132..google.cloud.vision.v1p4beta1." + + "CropHintsParams\022U\n\027face_recognition_para" + + "ms\030\n \001(\01324.google.cloud.vision.v1p4beta1" + + ".FaceRecognitionParams\022Q\n\025product_search" + + "_params\030\005 \001(\01322.google.cloud.vision.v1p4" + + "beta1.ProductSearchParams\022O\n\024web_detecti" + + "on_params\030\006 \001(\01321.google.cloud.vision.v1" + + "p4beta1.WebDetectionParams\022Q\n\025text_detec" + + "tion_params\030\014 \001(\01322.google.cloud.vision." + + "v1p4beta1.TextDetectionParams\"\311\001\n\024Annota" + + "teImageRequest\0223\n\005image\030\001 \001(\0132$.google.c" + + "loud.vision.v1p4beta1.Image\0228\n\010features\030" + + "\002 \003(\0132&.google.cloud.vision.v1p4beta1.Fe" + + "ature\022B\n\rimage_context\030\003 \001(\0132+.google.cl" + + "oud.vision.v1p4beta1.ImageContext\":\n\026Ima" + + "geAnnotationContext\022\013\n\003uri\030\001 \001(\t\022\023\n\013page" + + "_number\030\002 \001(\005\"\277\010\n\025AnnotateImageResponse\022" + + "G\n\020face_annotations\030\001 \003(\0132-.google.cloud" + + ".vision.v1p4beta1.FaceAnnotation\022M\n\024land" + + "mark_annotations\030\002 \003(\0132/.google.cloud.vi" + + "sion.v1p4beta1.EntityAnnotation\022I\n\020logo_" + + "annotations\030\003 \003(\0132/.google.cloud.vision." + + "v1p4beta1.EntityAnnotation\022J\n\021label_anno" + + "tations\030\004 \003(\0132/.google.cloud.vision.v1p4" + + "beta1.EntityAnnotation\022^\n\034localized_obje" + + "ct_annotations\030\026 \003(\01328.google.cloud.visi" + + "on.v1p4beta1.LocalizedObjectAnnotation\022I" + + "\n\020text_annotations\030\005 \003(\0132/.google.cloud." + + "vision.v1p4beta1.EntityAnnotation\022K\n\024ful" + + "l_text_annotation\030\014 \001(\0132-.google.cloud.v" + + "ision.v1p4beta1.TextAnnotation\022S\n\026safe_s" + + "earch_annotation\030\006 \001(\01323.google.cloud.vi" + + "sion.v1p4beta1.SafeSearchAnnotation\022S\n\033i" + + "mage_properties_annotation\030\010 \001(\0132..googl" + + "e.cloud.vision.v1p4beta1.ImageProperties" + + "\022Q\n\025crop_hints_annotation\030\013 \001(\01322.google" + + ".cloud.vision.v1p4beta1.CropHintsAnnotat" + + "ion\022B\n\rweb_detection\030\r \001(\0132+.google.clou" + + "d.vision.v1p4beta1.WebDetection\022S\n\026produ" + + "ct_search_results\030\016 \001(\01323.google.cloud.v" + + "ision.v1p4beta1.ProductSearchResults\022!\n\005" + + "error\030\t \001(\0132\022.google.rpc.Status\022F\n\007conte" + + "xt\030\025 \001(\01325.google.cloud.vision.v1p4beta1" + + ".ImageAnnotationContext\"h\n\032BatchAnnotate" + + "ImagesRequest\022J\n\010requests\030\001 \003(\01323.google" + + ".cloud.vision.v1p4beta1.AnnotateImageReq" + + "uestB\003\340A\002\"f\n\033BatchAnnotateImagesResponse" + + "\022G\n\tresponses\030\001 \003(\01324.google.cloud.visio" + + "n.v1p4beta1.AnnotateImageResponse\"\344\001\n\023An" + + "notateFileRequest\022@\n\014input_config\030\001 \001(\0132" + + "*.google.cloud.vision.v1p4beta1.InputCon" + + "fig\0228\n\010features\030\002 \003(\0132&.google.cloud.vis" + + "ion.v1p4beta1.Feature\022B\n\rimage_context\030\003" + + " \001(\0132+.google.cloud.vision.v1p4beta1.Ima" + + "geContext\022\r\n\005pages\030\004 \003(\005\"\331\001\n\024AnnotateFil" + + "eResponse\022@\n\014input_config\030\001 \001(\0132*.google" + + ".cloud.vision.v1p4beta1.InputConfig\022G\n\tr" + + "esponses\030\002 \003(\01324.google.cloud.vision.v1p" + + "4beta1.AnnotateImageResponse\022\023\n\013total_pa" + + "ges\030\003 \001(\005\022!\n\005error\030\004 \001(\0132\022.google.rpc.St" + + "atus\"f\n\031BatchAnnotateFilesRequest\022I\n\010req" + + "uests\030\001 \003(\01322.google.cloud.vision.v1p4be" + + "ta1.AnnotateFileRequestB\003\340A\002\"d\n\032BatchAnn" + + "otateFilesResponse\022F\n\tresponses\030\001 \003(\01323." + + "google.cloud.vision.v1p4beta1.AnnotateFi" + + "leResponse\"\236\002\n\030AsyncAnnotateFileRequest\022" + + "@\n\014input_config\030\001 \001(\0132*.google.cloud.vis" + + "ion.v1p4beta1.InputConfig\0228\n\010features\030\002 " + + "\003(\0132&.google.cloud.vision.v1p4beta1.Feat" + + "ure\022B\n\rimage_context\030\003 \001(\0132+.google.clou" + + "d.vision.v1p4beta1.ImageContext\022B\n\routpu" + + "t_config\030\004 \001(\0132+.google.cloud.vision.v1p" + + "4beta1.OutputConfig\"_\n\031AsyncAnnotateFile" + + "Response\022B\n\routput_config\030\001 \001(\0132+.google" + + ".cloud.vision.v1p4beta1.OutputConfig\"\266\001\n" + + "\037AsyncBatchAnnotateImagesRequest\022J\n\010requ" + + "ests\030\001 \003(\01323.google.cloud.vision.v1p4bet" + + "a1.AnnotateImageRequestB\003\340A\002\022G\n\routput_c" + + "onfig\030\002 \001(\0132+.google.cloud.vision.v1p4be" + + "ta1.OutputConfigB\003\340A\002\"f\n AsyncBatchAnnot" + + "ateImagesResponse\022B\n\routput_config\030\001 \001(\013" + + "2+.google.cloud.vision.v1p4beta1.OutputC" + + "onfig\"p\n\036AsyncBatchAnnotateFilesRequest\022" + + "N\n\010requests\030\001 \003(\01327.google.cloud.vision." + + "v1p4beta1.AsyncAnnotateFileRequestB\003\340A\002\"" + + "n\n\037AsyncBatchAnnotateFilesResponse\022K\n\tre" + + "sponses\030\001 \003(\01328.google.cloud.vision.v1p4" + + "beta1.AsyncAnnotateFileResponse\"o\n\013Input" + + "Config\022<\n\ngcs_source\030\001 \001(\0132(.google.clou" + + "d.vision.v1p4beta1.GcsSource\022\017\n\007content\030" + + "\003 \001(\014\022\021\n\tmime_type\030\002 \001(\t\"j\n\014OutputConfig" + + "\022F\n\017gcs_destination\030\001 \001(\0132-.google.cloud" + + ".vision.v1p4beta1.GcsDestination\022\022\n\nbatc" + + "h_size\030\002 \001(\005\"\030\n\tGcsSource\022\013\n\003uri\030\001 \001(\t\"\035" + + "\n\016GcsDestination\022\013\n\003uri\030\001 \001(\t\"\217\002\n\021Operat" + + "ionMetadata\022E\n\005state\030\001 \001(\01626.google.clou" + + "d.vision.v1p4beta1.OperationMetadata.Sta" + + "te\022/\n\013create_time\030\005 \001(\0132\032.google.protobu" + + "f.Timestamp\022/\n\013update_time\030\006 \001(\0132\032.googl" + + "e.protobuf.Timestamp\"Q\n\005State\022\025\n\021STATE_U" + + "NSPECIFIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007RUNNING\020\002\022\010" + + "\n\004DONE\020\003\022\r\n\tCANCELLED\020\004*e\n\nLikelihood\022\013\n" + + "\007UNKNOWN\020\000\022\021\n\rVERY_UNLIKELY\020\001\022\014\n\010UNLIKEL" + + "Y\020\002\022\014\n\010POSSIBLE\020\003\022\n\n\006LIKELY\020\004\022\017\n\013VERY_LI" + + "KELY\020\0052\361\007\n\016ImageAnnotator\022\276\001\n\023BatchAnnot" + + "ateImages\0229.google.cloud.vision.v1p4beta" + + "1.BatchAnnotateImagesRequest\032:.google.cl" + + "oud.vision.v1p4beta1.BatchAnnotateImages" + + "Response\"0\202\323\344\223\002\037\"\032/v1p4beta1/images:anno" + + "tate:\001*\332A\010requests\022\272\001\n\022BatchAnnotateFile" + + "s\0228.google.cloud.vision.v1p4beta1.BatchA" + + "nnotateFilesRequest\0329.google.cloud.visio" + + "n.v1p4beta1.BatchAnnotateFilesResponse\"/" + + "\202\323\344\223\002\036\"\031/v1p4beta1/files:annotate:\001*\332A\010r" + + "equests\022\374\001\n\030AsyncBatchAnnotateImages\022>.g" + + "oogle.cloud.vision.v1p4beta1.AsyncBatchA" + + "nnotateImagesRequest\032\035.google.longrunnin" + + "g.Operation\"\200\001\202\323\344\223\002)\"$/v1p4beta1/images:" + + "asyncBatchAnnotate:\001*\332A\026requests,output_" + + "config\312A5\n AsyncBatchAnnotateImagesRespo" + + "nse\022\021OperationMetadata\022\351\001\n\027AsyncBatchAnn" + + "otateFiles\022=.google.cloud.vision.v1p4bet" + + "a1.AsyncBatchAnnotateFilesRequest\032\035.goog" + + "le.longrunning.Operation\"p\202\323\344\223\002(\"#/v1p4b" + + "eta1/files:asyncBatchAnnotate:\001*\332A\010reque" + + "sts\312A4\n\037AsyncBatchAnnotateFilesResponse\022" + + "\021OperationMetadata\032v\312A\025vision.googleapis" + + ".com\322A[https://www.googleapis.com/auth/c" + + "loud-platform,https://www.googleapis.com" + + "/auth/cloud-visionB\211\001\n!com.google.cloud." + + "vision.v1p4beta1B\023ImageAnnotatorProtoP\001Z" + + "Cgoogle.golang.org/genproto/googleapis/c" + + "loud/vision/v1p4beta1;vision\370\001\001\242\002\004GCVNb\006" + + "proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -465,7 +465,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.vision.v1p4beta1.TextAnnotationProto.getDescriptor(), com.google.cloud.vision.v1p4beta1.WebDetectionProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), com.google.rpc.StatusProto.getDescriptor(), com.google.type.ColorProto.getDescriptor(), @@ -854,7 +853,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.vision.v1p4beta1.TextAnnotationProto.getDescriptor(); com.google.cloud.vision.v1p4beta1.WebDetectionProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.rpc.StatusProto.getDescriptor(); com.google.type.ColorProto.getDescriptor(); diff --git a/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchProto.java b/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchProto.java index d3f4b5c7cf4b..37a8754cb83a 100644 --- a/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchProto.java +++ b/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchProto.java @@ -58,43 +58,42 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n2google/cloud/vision/v1p4beta1/product_" + "search.proto\022\035google.cloud.vision.v1p4be" - + "ta1\032\034google/api/annotations.proto\032\031googl" - + "e/api/resource.proto\032,google/cloud/visio" - + "n/v1p4beta1/geometry.proto\032:google/cloud" - + "/vision/v1p4beta1/product_search_service" - + ".proto\032\037google/protobuf/timestamp.proto\"" - + "\301\001\n\023ProductSearchParams\022B\n\rbounding_poly" - + "\030\t \001(\0132+.google.cloud.vision.v1p4beta1.B" - + "oundingPoly\022:\n\013product_set\030\006 \001(\tB%\372A\"\n v" - + "ision.googleapis.com/ProductSet\022\032\n\022produ" - + "ct_categories\030\007 \003(\t\022\016\n\006filter\030\010 \001(\t\"\262\005\n\024" - + "ProductSearchResults\022.\n\nindex_time\030\002 \001(\013" - + "2\032.google.protobuf.Timestamp\022K\n\007results\030" - + "\005 \003(\0132:.google.cloud.vision.v1p4beta1.Pr" - + "oductSearchResults.Result\022b\n\027product_gro" - + "uped_results\030\006 \003(\0132A.google.cloud.vision" - + ".v1p4beta1.ProductSearchResults.GroupedR" - + "esult\032_\n\006Result\0227\n\007product\030\001 \001(\0132&.googl" - + "e.cloud.vision.v1p4beta1.Product\022\r\n\005scor" - + "e\030\002 \001(\002\022\r\n\005image\030\003 \001(\t\032S\n\020ObjectAnnotati" - + "on\022\013\n\003mid\030\001 \001(\t\022\025\n\rlanguage_code\030\002 \001(\t\022\014" - + "\n\004name\030\003 \001(\t\022\r\n\005score\030\004 \001(\002\032\202\002\n\rGroupedR" - + "esult\022B\n\rbounding_poly\030\001 \001(\0132+.google.cl" - + "oud.vision.v1p4beta1.BoundingPoly\022K\n\007res" - + "ults\030\002 \003(\0132:.google.cloud.vision.v1p4bet" - + "a1.ProductSearchResults.Result\022`\n\022object" - + "_annotations\030\003 \003(\0132D.google.cloud.vision" - + ".v1p4beta1.ProductSearchResults.ObjectAn" - + "notationB\210\001\n!com.google.cloud.vision.v1p" - + "4beta1B\022ProductSearchProtoP\001ZCgoogle.gol" - + "ang.org/genproto/googleapis/cloud/vision" - + "/v1p4beta1;vision\370\001\001\242\002\004GCVNb\006proto3" + + "ta1\032\031google/api/resource.proto\032,google/c" + + "loud/vision/v1p4beta1/geometry.proto\032:go" + + "ogle/cloud/vision/v1p4beta1/product_sear" + + "ch_service.proto\032\037google/protobuf/timest" + + "amp.proto\"\301\001\n\023ProductSearchParams\022B\n\rbou" + + "nding_poly\030\t \001(\0132+.google.cloud.vision.v" + + "1p4beta1.BoundingPoly\022:\n\013product_set\030\006 \001" + + "(\tB%\372A\"\n vision.googleapis.com/ProductSe" + + "t\022\032\n\022product_categories\030\007 \003(\t\022\016\n\006filter\030" + + "\010 \001(\t\"\262\005\n\024ProductSearchResults\022.\n\nindex_" + + "time\030\002 \001(\0132\032.google.protobuf.Timestamp\022K" + + "\n\007results\030\005 \003(\0132:.google.cloud.vision.v1" + + "p4beta1.ProductSearchResults.Result\022b\n\027p" + + "roduct_grouped_results\030\006 \003(\0132A.google.cl" + + "oud.vision.v1p4beta1.ProductSearchResult" + + "s.GroupedResult\032_\n\006Result\0227\n\007product\030\001 \001" + + "(\0132&.google.cloud.vision.v1p4beta1.Produ" + + "ct\022\r\n\005score\030\002 \001(\002\022\r\n\005image\030\003 \001(\t\032S\n\020Obje" + + "ctAnnotation\022\013\n\003mid\030\001 \001(\t\022\025\n\rlanguage_co" + + "de\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\022\r\n\005score\030\004 \001(\002\032\202\002" + + "\n\rGroupedResult\022B\n\rbounding_poly\030\001 \001(\0132+" + + ".google.cloud.vision.v1p4beta1.BoundingP" + + "oly\022K\n\007results\030\002 \003(\0132:.google.cloud.visi" + + "on.v1p4beta1.ProductSearchResults.Result" + + "\022`\n\022object_annotations\030\003 \003(\0132D.google.cl" + + "oud.vision.v1p4beta1.ProductSearchResult" + + "s.ObjectAnnotationB\210\001\n!com.google.cloud." + + "vision.v1p4beta1B\022ProductSearchProtoP\001ZC" + + "google.golang.org/genproto/googleapis/cl" + + "oud/vision/v1p4beta1;vision\370\001\001\242\002\004GCVNb\006p" + + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(), com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.getDescriptor(), @@ -151,7 +150,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(); com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.getDescriptor(); diff --git a/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotationProto.java b/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotationProto.java index d163ca670c64..580b7dde94b3 100644 --- a/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotationProto.java +++ b/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotationProto.java @@ -74,63 +74,61 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n3google/cloud/vision/v1p4beta1/text_ann" + "otation.proto\022\035google.cloud.vision.v1p4b" - + "eta1\032\034google/api/annotations.proto\032,goog" - + "le/cloud/vision/v1p4beta1/geometry.proto" - + "\"\262\004\n\016TextAnnotation\0222\n\005pages\030\001 \003(\0132#.goo" - + "gle.cloud.vision.v1p4beta1.Page\022\014\n\004text\030" - + "\002 \001(\t\032=\n\020DetectedLanguage\022\025\n\rlanguage_co" - + "de\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\032\334\001\n\rDetecte" - + "dBreak\022S\n\004type\030\001 \001(\0162E.google.cloud.visi" - + "on.v1p4beta1.TextAnnotation.DetectedBrea" - + "k.BreakType\022\021\n\tis_prefix\030\002 \001(\010\"c\n\tBreakT" - + "ype\022\013\n\007UNKNOWN\020\000\022\t\n\005SPACE\020\001\022\016\n\nSURE_SPAC" - + "E\020\002\022\022\n\016EOL_SURE_SPACE\020\003\022\n\n\006HYPHEN\020\004\022\016\n\nL" - + "INE_BREAK\020\005\032\277\001\n\014TextProperty\022Z\n\022detected" - + "_languages\030\001 \003(\0132>.google.cloud.vision.v" - + "1p4beta1.TextAnnotation.DetectedLanguage" - + "\022S\n\016detected_break\030\002 \001(\0132;.google.cloud." - + "vision.v1p4beta1.TextAnnotation.Detected" - + "Break\"\275\001\n\004Page\022L\n\010property\030\001 \001(\0132:.googl" - + "e.cloud.vision.v1p4beta1.TextAnnotation." - + "TextProperty\022\r\n\005width\030\002 \001(\005\022\016\n\006height\030\003 " - + "\001(\005\0224\n\006blocks\030\004 \003(\0132$.google.cloud.visio" - + "n.v1p4beta1.Block\022\022\n\nconfidence\030\005 \001(\002\"\202\003" - + "\n\005Block\022L\n\010property\030\001 \001(\0132:.google.cloud" - + ".vision.v1p4beta1.TextAnnotation.TextPro" - + "perty\022A\n\014bounding_box\030\002 \001(\0132+.google.clo" - + "ud.vision.v1p4beta1.BoundingPoly\022<\n\npara" - + "graphs\030\003 \003(\0132(.google.cloud.vision.v1p4b" - + "eta1.Paragraph\022B\n\nblock_type\030\004 \001(\0162..goo" - + "gle.cloud.vision.v1p4beta1.Block.BlockTy" - + "pe\022\022\n\nconfidence\030\005 \001(\002\"R\n\tBlockType\022\013\n\007U" - + "NKNOWN\020\000\022\010\n\004TEXT\020\001\022\t\n\005TABLE\020\002\022\013\n\007PICTURE" - + "\020\003\022\t\n\005RULER\020\004\022\013\n\007BARCODE\020\005\"\344\001\n\tParagraph" - + "\022L\n\010property\030\001 \001(\0132:.google.cloud.vision" - + ".v1p4beta1.TextAnnotation.TextProperty\022A" - + "\n\014bounding_box\030\002 \001(\0132+.google.cloud.visi" - + "on.v1p4beta1.BoundingPoly\0222\n\005words\030\003 \003(\013" - + "2#.google.cloud.vision.v1p4beta1.Word\022\022\n" - + "\nconfidence\030\004 \001(\002\"\343\001\n\004Word\022L\n\010property\030\001" - + " \001(\0132:.google.cloud.vision.v1p4beta1.Tex" - + "tAnnotation.TextProperty\022A\n\014bounding_box" - + "\030\002 \001(\0132+.google.cloud.vision.v1p4beta1.B" - + "oundingPoly\0226\n\007symbols\030\003 \003(\0132%.google.cl" - + "oud.vision.v1p4beta1.Symbol\022\022\n\nconfidenc" - + "e\030\004 \001(\002\"\273\001\n\006Symbol\022L\n\010property\030\001 \001(\0132:.g" - + "oogle.cloud.vision.v1p4beta1.TextAnnotat" - + "ion.TextProperty\022A\n\014bounding_box\030\002 \001(\0132+" - + ".google.cloud.vision.v1p4beta1.BoundingP" - + "oly\022\014\n\004text\030\003 \001(\t\022\022\n\nconfidence\030\004 \001(\002B\211\001" - + "\n!com.google.cloud.vision.v1p4beta1B\023Tex" - + "tAnnotationProtoP\001ZCgoogle.golang.org/ge" - + "nproto/googleapis/cloud/vision/v1p4beta1" - + ";vision\370\001\001\242\002\004GCVNb\006proto3" + + "eta1\032,google/cloud/vision/v1p4beta1/geom" + + "etry.proto\"\262\004\n\016TextAnnotation\0222\n\005pages\030\001" + + " \003(\0132#.google.cloud.vision.v1p4beta1.Pag" + + "e\022\014\n\004text\030\002 \001(\t\032=\n\020DetectedLanguage\022\025\n\rl" + + "anguage_code\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\032\334" + + "\001\n\rDetectedBreak\022S\n\004type\030\001 \001(\0162E.google." + + "cloud.vision.v1p4beta1.TextAnnotation.De" + + "tectedBreak.BreakType\022\021\n\tis_prefix\030\002 \001(\010" + + "\"c\n\tBreakType\022\013\n\007UNKNOWN\020\000\022\t\n\005SPACE\020\001\022\016\n" + + "\nSURE_SPACE\020\002\022\022\n\016EOL_SURE_SPACE\020\003\022\n\n\006HYP" + + "HEN\020\004\022\016\n\nLINE_BREAK\020\005\032\277\001\n\014TextProperty\022Z" + + "\n\022detected_languages\030\001 \003(\0132>.google.clou" + + "d.vision.v1p4beta1.TextAnnotation.Detect" + + "edLanguage\022S\n\016detected_break\030\002 \001(\0132;.goo" + + "gle.cloud.vision.v1p4beta1.TextAnnotatio" + + "n.DetectedBreak\"\275\001\n\004Page\022L\n\010property\030\001 \001" + + "(\0132:.google.cloud.vision.v1p4beta1.TextA" + + "nnotation.TextProperty\022\r\n\005width\030\002 \001(\005\022\016\n" + + "\006height\030\003 \001(\005\0224\n\006blocks\030\004 \003(\0132$.google.c" + + "loud.vision.v1p4beta1.Block\022\022\n\nconfidenc" + + "e\030\005 \001(\002\"\202\003\n\005Block\022L\n\010property\030\001 \001(\0132:.go" + + "ogle.cloud.vision.v1p4beta1.TextAnnotati" + + "on.TextProperty\022A\n\014bounding_box\030\002 \001(\0132+." + + "google.cloud.vision.v1p4beta1.BoundingPo" + + "ly\022<\n\nparagraphs\030\003 \003(\0132(.google.cloud.vi" + + "sion.v1p4beta1.Paragraph\022B\n\nblock_type\030\004" + + " \001(\0162..google.cloud.vision.v1p4beta1.Blo" + + "ck.BlockType\022\022\n\nconfidence\030\005 \001(\002\"R\n\tBloc" + + "kType\022\013\n\007UNKNOWN\020\000\022\010\n\004TEXT\020\001\022\t\n\005TABLE\020\002\022" + + "\013\n\007PICTURE\020\003\022\t\n\005RULER\020\004\022\013\n\007BARCODE\020\005\"\344\001\n" + + "\tParagraph\022L\n\010property\030\001 \001(\0132:.google.cl" + + "oud.vision.v1p4beta1.TextAnnotation.Text" + + "Property\022A\n\014bounding_box\030\002 \001(\0132+.google." + + "cloud.vision.v1p4beta1.BoundingPoly\0222\n\005w" + + "ords\030\003 \003(\0132#.google.cloud.vision.v1p4bet" + + "a1.Word\022\022\n\nconfidence\030\004 \001(\002\"\343\001\n\004Word\022L\n\010" + + "property\030\001 \001(\0132:.google.cloud.vision.v1p" + + "4beta1.TextAnnotation.TextProperty\022A\n\014bo" + + "unding_box\030\002 \001(\0132+.google.cloud.vision.v" + + "1p4beta1.BoundingPoly\0226\n\007symbols\030\003 \003(\0132%" + + ".google.cloud.vision.v1p4beta1.Symbol\022\022\n" + + "\nconfidence\030\004 \001(\002\"\273\001\n\006Symbol\022L\n\010property" + + "\030\001 \001(\0132:.google.cloud.vision.v1p4beta1.T" + + "extAnnotation.TextProperty\022A\n\014bounding_b" + + "ox\030\002 \001(\0132+.google.cloud.vision.v1p4beta1" + + ".BoundingPoly\022\014\n\004text\030\003 \001(\t\022\022\n\nconfidenc" + + "e\030\004 \001(\002B\211\001\n!com.google.cloud.vision.v1p4" + + "beta1B\023TextAnnotationProtoP\001ZCgoogle.gol" + + "ang.org/genproto/googleapis/cloud/vision" + + "/v1p4beta1;vision\370\001\001\242\002\004GCVNb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(), }); internal_static_google_cloud_vision_v1p4beta1_TextAnnotation_descriptor = @@ -211,7 +209,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Property", "BoundingBox", "Text", "Confidence", }); - com.google.api.AnnotationsProto.getDescriptor(); com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(); } diff --git a/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionProto.java b/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionProto.java index 04f25e33d1d1..0e0dd53408cb 100644 --- a/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionProto.java +++ b/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionProto.java @@ -58,41 +58,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n1google/cloud/vision/v1p4beta1/web_dete" + "ction.proto\022\035google.cloud.vision.v1p4bet" - + "a1\032\034google/api/annotations.proto\"\214\007\n\014Web" - + "Detection\022K\n\014web_entities\030\001 \003(\01325.google" - + ".cloud.vision.v1p4beta1.WebDetection.Web" - + "Entity\022R\n\024full_matching_images\030\002 \003(\01324.g" - + "oogle.cloud.vision.v1p4beta1.WebDetectio" - + "n.WebImage\022U\n\027partial_matching_images\030\003 " - + "\003(\01324.google.cloud.vision.v1p4beta1.WebD" - + "etection.WebImage\022W\n\032pages_with_matching" - + "_images\030\004 \003(\01323.google.cloud.vision.v1p4" - + "beta1.WebDetection.WebPage\022U\n\027visually_s" - + "imilar_images\030\006 \003(\01324.google.cloud.visio" - + "n.v1p4beta1.WebDetection.WebImage\022O\n\021bes" - + "t_guess_labels\030\010 \003(\01324.google.cloud.visi" - + "on.v1p4beta1.WebDetection.WebLabel\032B\n\tWe" - + "bEntity\022\021\n\tentity_id\030\001 \001(\t\022\r\n\005score\030\002 \001(" - + "\002\022\023\n\013description\030\003 \001(\t\032&\n\010WebImage\022\013\n\003ur" - + "l\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\032\344\001\n\007WebPage\022\013\n\003ur" - + "l\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\022\022\n\npage_title\030\003 \001" - + "(\t\022R\n\024full_matching_images\030\004 \003(\01324.googl" - + "e.cloud.vision.v1p4beta1.WebDetection.We" - + "bImage\022U\n\027partial_matching_images\030\005 \003(\0132" - + "4.google.cloud.vision.v1p4beta1.WebDetec" - + "tion.WebImage\0320\n\010WebLabel\022\r\n\005label\030\001 \001(\t" - + "\022\025\n\rlanguage_code\030\002 \001(\tB\207\001\n!com.google.c" - + "loud.vision.v1p4beta1B\021WebDetectionProto" - + "P\001ZCgoogle.golang.org/genproto/googleapi" - + "s/cloud/vision/v1p4beta1;vision\370\001\001\242\002\004GCV" - + "Nb\006proto3" + + "a1\"\214\007\n\014WebDetection\022K\n\014web_entities\030\001 \003(" + + "\01325.google.cloud.vision.v1p4beta1.WebDet" + + "ection.WebEntity\022R\n\024full_matching_images" + + "\030\002 \003(\01324.google.cloud.vision.v1p4beta1.W" + + "ebDetection.WebImage\022U\n\027partial_matching" + + "_images\030\003 \003(\01324.google.cloud.vision.v1p4" + + "beta1.WebDetection.WebImage\022W\n\032pages_wit" + + "h_matching_images\030\004 \003(\01323.google.cloud.v" + + "ision.v1p4beta1.WebDetection.WebPage\022U\n\027" + + "visually_similar_images\030\006 \003(\01324.google.c" + + "loud.vision.v1p4beta1.WebDetection.WebIm" + + "age\022O\n\021best_guess_labels\030\010 \003(\01324.google." + + "cloud.vision.v1p4beta1.WebDetection.WebL" + + "abel\032B\n\tWebEntity\022\021\n\tentity_id\030\001 \001(\t\022\r\n\005" + + "score\030\002 \001(\002\022\023\n\013description\030\003 \001(\t\032&\n\010WebI" + + "mage\022\013\n\003url\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\032\344\001\n\007Web" + + "Page\022\013\n\003url\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\022\022\n\npage" + + "_title\030\003 \001(\t\022R\n\024full_matching_images\030\004 \003" + + "(\01324.google.cloud.vision.v1p4beta1.WebDe" + + "tection.WebImage\022U\n\027partial_matching_ima" + + "ges\030\005 \003(\01324.google.cloud.vision.v1p4beta" + + "1.WebDetection.WebImage\0320\n\010WebLabel\022\r\n\005l" + + "abel\030\001 \001(\t\022\025\n\rlanguage_code\030\002 \001(\tB\207\001\n!co" + + "m.google.cloud.vision.v1p4beta1B\021WebDete" + + "ctionProtoP\001ZCgoogle.golang.org/genproto" + + "/googleapis/cloud/vision/v1p4beta1;visio" + + "n\370\001\001\242\002\004GCVNb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); internal_static_google_cloud_vision_v1p4beta1_WebDetection_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_vision_v1p4beta1_WebDetection_fieldAccessorTable = @@ -146,7 +142,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Label", "LanguageCode", }); - com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/face.proto b/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/face.proto index 1786f26f0655..d2ab72f0cded 100644 --- a/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/face.proto +++ b/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/face.proto @@ -17,7 +17,6 @@ syntax = "proto3"; package google.cloud.vision.v1p4beta1; -import "google/api/annotations.proto"; import "google/cloud/vision/v1p4beta1/geometry.proto"; option cc_enable_arenas = true; diff --git a/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/geometry.proto b/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/geometry.proto index 18877188faea..877fd8972dfe 100644 --- a/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/geometry.proto +++ b/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/geometry.proto @@ -17,7 +17,6 @@ syntax = "proto3"; package google.cloud.vision.v1p4beta1; -import "google/api/annotations.proto"; option cc_enable_arenas = true; option go_package = "google.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision"; diff --git a/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/image_annotator.proto b/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/image_annotator.proto index 6d7f3dd1f621..cc7836974588 100644 --- a/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/image_annotator.proto +++ b/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/image_annotator.proto @@ -26,7 +26,6 @@ import "google/cloud/vision/v1p4beta1/product_search.proto"; import "google/cloud/vision/v1p4beta1/text_annotation.proto"; import "google/cloud/vision/v1p4beta1/web_detection.proto"; import "google/longrunning/operations.proto"; -import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; import "google/type/color.proto"; @@ -176,7 +175,8 @@ message Feature { // Model to use for the feature. // Supported values: "builtin/stable" (the default if unset) and - // "builtin/latest". + // "builtin/latest". `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` also + // support "builtin/weekly" for the bleeding edge release updated weekly. string model = 3; } diff --git a/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/product_search.proto b/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/product_search.proto index 15baed1fd27c..ebb428acc800 100644 --- a/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/product_search.proto +++ b/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/product_search.proto @@ -17,7 +17,6 @@ syntax = "proto3"; package google.cloud.vision.v1p4beta1; -import "google/api/annotations.proto"; import "google/api/resource.proto"; import "google/cloud/vision/v1p4beta1/geometry.proto"; import "google/cloud/vision/v1p4beta1/product_search_service.proto"; diff --git a/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/text_annotation.proto b/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/text_annotation.proto index fbc35bb5458f..233c4c689e4f 100644 --- a/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/text_annotation.proto +++ b/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/text_annotation.proto @@ -17,7 +17,6 @@ syntax = "proto3"; package google.cloud.vision.v1p4beta1; -import "google/api/annotations.proto"; import "google/cloud/vision/v1p4beta1/geometry.proto"; option cc_enable_arenas = true; diff --git a/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/web_detection.proto b/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/web_detection.proto index 446a937f1c8e..7d716570f45d 100644 --- a/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/web_detection.proto +++ b/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/web_detection.proto @@ -17,7 +17,6 @@ syntax = "proto3"; package google.cloud.vision.v1p4beta1; -import "google/api/annotations.proto"; option cc_enable_arenas = true; option go_package = "google.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision"; diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java index a4aef8ae74a8..407a0e08113b 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncAsyncBatchAnnotateFiles() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { AsyncBatchAnnotateFilesRequest request = AsyncBatchAnnotateFilesRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java index 52d1aacd6ccb..81966ec0a228 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void asyncAsyncBatchAnnotateFilesLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { AsyncBatchAnnotateFilesRequest request = AsyncBatchAnnotateFilesRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java index de69fa9ebfef..bab83fd45aa6 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncAsyncBatchAnnotateFiles() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { AsyncBatchAnnotateFilesRequest request = AsyncBatchAnnotateFilesRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java index c565722ffce2..dd2f19273455 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncAsyncBatchAnnotateFilesListasyncannotatefilerequest() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { List requests = new ArrayList<>(); AsyncBatchAnnotateFilesResponse response = diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImages.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImages.java index a45c8455c96d..fd4daac8174c 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImages.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImages.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void asyncAsyncBatchAnnotateImages() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { AsyncBatchAnnotateImagesRequest request = AsyncBatchAnnotateImagesRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImagesLRO.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImagesLRO.java index 9511ad288bc2..d70f74735aad 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImagesLRO.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImagesLRO.java @@ -33,8 +33,11 @@ public static void main(String[] args) throws Exception { } public static void asyncAsyncBatchAnnotateImagesLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { AsyncBatchAnnotateImagesRequest request = AsyncBatchAnnotateImagesRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImages.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImages.java index 7c049a7654a7..3549656d6e8c 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImages.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImages.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void syncAsyncBatchAnnotateImages() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { AsyncBatchAnnotateImagesRequest request = AsyncBatchAnnotateImagesRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig.java index 849827c96aec..9c176e661922 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { public static void syncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { List requests = new ArrayList<>(); OutputConfig outputConfig = OutputConfig.newBuilder().build(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotatefiles/AsyncBatchAnnotateFiles.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotatefiles/AsyncBatchAnnotateFiles.java index df52d7f45429..6c883b8837bf 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotatefiles/AsyncBatchAnnotateFiles.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotatefiles/AsyncBatchAnnotateFiles.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncBatchAnnotateFiles() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { BatchAnnotateFilesRequest request = BatchAnnotateFilesRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFiles.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFiles.java index 9a0e8719f937..844e709a2891 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFiles.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFiles.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchAnnotateFiles() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { BatchAnnotateFilesRequest request = BatchAnnotateFilesRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFilesListannotatefilerequest.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFilesListannotatefilerequest.java index 9348eb2d01be..f924b8679def 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFilesListannotatefilerequest.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFilesListannotatefilerequest.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchAnnotateFilesListannotatefilerequest() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { List requests = new ArrayList<>(); BatchAnnotateFilesResponse response = imageAnnotatorClient.batchAnnotateFiles(requests); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java index 8978b510db69..21abc33d3bec 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncBatchAnnotateImages() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { BatchAnnotateImagesRequest request = BatchAnnotateImagesRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java index 293db9dd5d24..2b85b47fdf9e 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchAnnotateImages() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { BatchAnnotateImagesRequest request = BatchAnnotateImagesRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java index 47a349f16db5..bce8ba646b2d 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchAnnotateImagesListannotateimagerequest() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { List requests = new ArrayList<>(); BatchAnnotateImagesResponse response = imageAnnotatorClient.batchAnnotateImages(requests); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java index a31661de4f6c..c42fa0d1f913 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/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 ImageAnnotatorSettings imageAnnotatorSettings = ImageAnnotatorSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java index 5a455ad1f4a6..ee7d1e93e5c4 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/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 ImageAnnotatorSettings imageAnnotatorSettings = ImageAnnotatorSettings.newBuilder() .setTransportChannelProvider( diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/create/SyncCreateSetEndpoint.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/create/SyncCreateSetEndpoint.java index e62f89156b14..a797d91056cb 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/create/SyncCreateSetEndpoint.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorclient/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 ImageAnnotatorSettings imageAnnotatorSettings = ImageAnnotatorSettings.newBuilder().setEndpoint(myEndpoint).build(); ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create(imageAnnotatorSettings); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java index 21c2183f429e..fae2c28c273c 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchAnnotateImages() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library ImageAnnotatorSettings.Builder imageAnnotatorSettingsBuilder = ImageAnnotatorSettings.newBuilder(); imageAnnotatorSettingsBuilder diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/AsyncAddProductToProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/AsyncAddProductToProductSet.java index 512c59685d3c..bb216d3cbbc2 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/AsyncAddProductToProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/AsyncAddProductToProductSet.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncAddProductToProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { AddProductToProductSetRequest request = AddProductToProductSetRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java index d044d5d658e1..b7854e68ba8a 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncAddProductToProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { AddProductToProductSetRequest request = AddProductToProductSetRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java index f8b06b4b3a96..7fcf26218819 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncAddProductToProductSetProductsetnameProductname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]"); ProductName product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]"); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java index 0a9b8168a472..15b3dec173a0 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncAddProductToProductSetProductsetnameString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]"); String product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java index ba221201103e..c828036193da 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncAddProductToProductSetStringProductname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString(); ProductName product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]"); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java index be1bb73c28b8..19acbd7d333e 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncAddProductToProductSetStringString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString(); String product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/create/SyncCreateSetCredentialsProvider.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/create/SyncCreateSetCredentialsProvider.java index 8c58a07b85ef..58ee9ce5ba26 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/create/SyncCreateSetCredentialsProvider.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/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 ProductSearchSettings productSearchSettings = ProductSearchSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/create/SyncCreateSetCredentialsProvider1.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/create/SyncCreateSetCredentialsProvider1.java index dfc5e5475cfd..6909f84839a1 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/create/SyncCreateSetCredentialsProvider1.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/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 ProductSearchSettings productSearchSettings = ProductSearchSettings.newBuilder() .setTransportChannelProvider( diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/create/SyncCreateSetEndpoint.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/create/SyncCreateSetEndpoint.java index b92eefe90fe8..a21ddb568b2a 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/create/SyncCreateSetEndpoint.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/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 ProductSearchSettings productSearchSettings = ProductSearchSettings.newBuilder().setEndpoint(myEndpoint).build(); ProductSearchClient productSearchClient = ProductSearchClient.create(productSearchSettings); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/AsyncCreateProduct.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/AsyncCreateProduct.java index 67d691713858..965d12a07bf5 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/AsyncCreateProduct.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/AsyncCreateProduct.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateProduct() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { CreateProductRequest request = CreateProductRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/SyncCreateProduct.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/SyncCreateProduct.java index 5687fb2e5cce..657f205da15e 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/SyncCreateProduct.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/SyncCreateProduct.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateProduct() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { CreateProductRequest request = CreateProductRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java index d94cf72831a1..9940be3768fd 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateProductLocationnameProductString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); Product product = Product.newBuilder().build(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/SyncCreateProductStringProductString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/SyncCreateProductStringProductString.java index e7ea74db27e0..5c761a24ad63 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/SyncCreateProductStringProductString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproduct/SyncCreateProductStringProductString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateProductStringProductString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); Product product = Product.newBuilder().build(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/AsyncCreateProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/AsyncCreateProductSet.java index cf7cb3657186..78c5c6f68fd1 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/AsyncCreateProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/AsyncCreateProductSet.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { CreateProductSetRequest request = CreateProductSetRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSet.java index 3820e6eb0eea..1c21416a188e 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSet.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { CreateProductSetRequest request = CreateProductSetRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java index a276381ff4ea..9af78ce034a6 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateProductSetLocationnameProductsetString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); ProductSet productSet = ProductSet.newBuilder().build(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java index 8562337d64cd..eb4eb7041b95 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateProductSetStringProductsetString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); ProductSet productSet = ProductSet.newBuilder().build(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/AsyncCreateReferenceImage.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/AsyncCreateReferenceImage.java index a46507f3836a..009d254512ed 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/AsyncCreateReferenceImage.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/AsyncCreateReferenceImage.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateReferenceImage() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { CreateReferenceImageRequest request = CreateReferenceImageRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImage.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImage.java index e00d8582d32a..252d3d8efab9 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImage.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImage.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateReferenceImage() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { CreateReferenceImageRequest request = CreateReferenceImageRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java index 37a524e0282b..0353a7bacb91 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateReferenceImageProductnameReferenceimageString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ProductName parent = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]"); ReferenceImage referenceImage = ReferenceImage.newBuilder().build(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java index f939351db8e9..8d0cf94e9c67 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateReferenceImageStringReferenceimageString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String parent = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString(); ReferenceImage referenceImage = ReferenceImage.newBuilder().build(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/AsyncDeleteProduct.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/AsyncDeleteProduct.java index 2d34960e9be5..835c1a5467db 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/AsyncDeleteProduct.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/AsyncDeleteProduct.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteProduct() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { DeleteProductRequest request = DeleteProductRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProduct.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProduct.java index 5bedcf38ff6f..99b9976cad81 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProduct.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProduct.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteProduct() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { DeleteProductRequest request = DeleteProductRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java index 6b83ae61fd4f..2b61e965260e 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteProductProductname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ProductName name = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]"); productSearchClient.deleteProduct(name); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProductString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProductString.java index 079adb14826c..5d894b0247e8 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProductString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproduct/SyncDeleteProductString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteProductString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String name = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString(); productSearchClient.deleteProduct(name); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/AsyncDeleteProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/AsyncDeleteProductSet.java index 6e8c0d0a562e..d9200e0d95b9 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/AsyncDeleteProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/AsyncDeleteProductSet.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { DeleteProductSetRequest request = DeleteProductSetRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSet.java index 583a7278a274..efa36c27487b 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSet.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { DeleteProductSetRequest request = DeleteProductSetRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java index 9af4eeb6a956..df03f2d90350 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteProductSetProductsetname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]"); productSearchClient.deleteProductSet(name); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java index 2256acace3d7..2ea900242ca9 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteProductSetString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString(); productSearchClient.deleteProductSet(name); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/AsyncDeleteReferenceImage.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/AsyncDeleteReferenceImage.java index 4fee52749968..19bfa911bfea 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/AsyncDeleteReferenceImage.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/AsyncDeleteReferenceImage.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteReferenceImage() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { DeleteReferenceImageRequest request = DeleteReferenceImageRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java index 9d8b7ea02940..a77173f14d50 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteReferenceImage() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { DeleteReferenceImageRequest request = DeleteReferenceImageRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java index 1bc875eb98fc..b6350460a8e0 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteReferenceImageReferenceimagename() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ReferenceImageName name = ReferenceImageName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]"); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java index d077d2c7f8ff..1e1afa25b8de 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteReferenceImageString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String name = ReferenceImageName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]") diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/AsyncGetProduct.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/AsyncGetProduct.java index ee1a6875aee2..c1887ad1f2b0 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/AsyncGetProduct.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/AsyncGetProduct.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetProduct() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { GetProductRequest request = GetProductRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/SyncGetProduct.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/SyncGetProduct.java index 7233cf1000e0..a7c67d8cdddd 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/SyncGetProduct.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/SyncGetProduct.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetProduct() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { GetProductRequest request = GetProductRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/SyncGetProductProductname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/SyncGetProductProductname.java index 0c5fad9de310..0cd545c6d15f 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/SyncGetProductProductname.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/SyncGetProductProductname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetProductProductname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ProductName name = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]"); Product response = productSearchClient.getProduct(name); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/SyncGetProductString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/SyncGetProductString.java index 129cabcdc6dc..a5fff300c5ae 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/SyncGetProductString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproduct/SyncGetProductString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetProductString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String name = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString(); Product response = productSearchClient.getProduct(name); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/AsyncGetProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/AsyncGetProductSet.java index ef7ecb8db404..fedd368f0b9a 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/AsyncGetProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/AsyncGetProductSet.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { GetProductSetRequest request = GetProductSetRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/SyncGetProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/SyncGetProductSet.java index 05794be71066..62662fae065c 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/SyncGetProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/SyncGetProductSet.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { GetProductSetRequest request = GetProductSetRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/SyncGetProductSetProductsetname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/SyncGetProductSetProductsetname.java index f2454728e0da..dc83c167595f 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/SyncGetProductSetProductsetname.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/SyncGetProductSetProductsetname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetProductSetProductsetname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]"); ProductSet response = productSearchClient.getProductSet(name); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/SyncGetProductSetString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/SyncGetProductSetString.java index 908b3d5eb404..bef47bc37bd0 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/SyncGetProductSetString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getproductset/SyncGetProductSetString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetProductSetString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString(); ProductSet response = productSearchClient.getProductSet(name); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/AsyncGetReferenceImage.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/AsyncGetReferenceImage.java index 2b8e4d952d0c..5dcfbd9e934c 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/AsyncGetReferenceImage.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/AsyncGetReferenceImage.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetReferenceImage() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { GetReferenceImageRequest request = GetReferenceImageRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/SyncGetReferenceImage.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/SyncGetReferenceImage.java index 27ff47128f9f..d11afa0d584f 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/SyncGetReferenceImage.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/SyncGetReferenceImage.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetReferenceImage() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { GetReferenceImageRequest request = GetReferenceImageRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/SyncGetReferenceImageReferenceimagename.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/SyncGetReferenceImageReferenceimagename.java index 90845e0ad481..5173516b1e3a 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/SyncGetReferenceImageReferenceimagename.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/SyncGetReferenceImageReferenceimagename.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetReferenceImageReferenceimagename() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ReferenceImageName name = ReferenceImageName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]"); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/SyncGetReferenceImageString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/SyncGetReferenceImageString.java index 0d25acb0bd7d..fdf311488bd2 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/SyncGetReferenceImageString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/getreferenceimage/SyncGetReferenceImageString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetReferenceImageString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String name = ReferenceImageName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]") diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/AsyncImportProductSets.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/AsyncImportProductSets.java index d3deb4993272..18e9ff5c2827 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/AsyncImportProductSets.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/AsyncImportProductSets.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncImportProductSets() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ImportProductSetsRequest request = ImportProductSetsRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/AsyncImportProductSetsLRO.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/AsyncImportProductSetsLRO.java index 8c831ec57fb8..4de907415c16 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/AsyncImportProductSetsLRO.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/AsyncImportProductSetsLRO.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void asyncImportProductSetsLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ImportProductSetsRequest request = ImportProductSetsRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSets.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSets.java index eb9fcafef0f0..71f4fe016382 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSets.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSets.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncImportProductSets() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ImportProductSetsRequest request = ImportProductSetsRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java index 6972901a8801..28713098bc0d 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { public static void syncImportProductSetsLocationnameImportproductsetsinputconfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); ImportProductSetsInputConfig inputConfig = ImportProductSetsInputConfig.newBuilder().build(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java index 9d55154a48b6..de3a679ccb18 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncImportProductSetsStringImportproductsetsinputconfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); ImportProductSetsInputConfig inputConfig = ImportProductSetsInputConfig.newBuilder().build(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/AsyncListProducts.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/AsyncListProducts.java index a4427b4f2059..602d49902116 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/AsyncListProducts.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/AsyncListProducts.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListProducts() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ListProductsRequest request = ListProductsRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/AsyncListProductsPaged.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/AsyncListProductsPaged.java index 6eb2e35c8a32..b3da88b93663 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/AsyncListProductsPaged.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/AsyncListProductsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListProductsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ListProductsRequest request = ListProductsRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/SyncListProducts.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/SyncListProducts.java index 45f89f53e5a7..1eb469ac4749 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/SyncListProducts.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/SyncListProducts.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListProducts() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ListProductsRequest request = ListProductsRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/SyncListProductsLocationname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/SyncListProductsLocationname.java index b0392dc72fea..eb2a071ffda7 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/SyncListProductsLocationname.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/SyncListProductsLocationname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListProductsLocationname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); for (Product element : productSearchClient.listProducts(parent).iterateAll()) { diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/SyncListProductsString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/SyncListProductsString.java index 0b8b39de1e50..93e2384a4624 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/SyncListProductsString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproducts/SyncListProductsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListProductsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); for (Product element : productSearchClient.listProducts(parent).iterateAll()) { diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/AsyncListProductSets.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/AsyncListProductSets.java index 70d845ba4693..0e2297fea556 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/AsyncListProductSets.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/AsyncListProductSets.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListProductSets() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ListProductSetsRequest request = ListProductSetsRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/AsyncListProductSetsPaged.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/AsyncListProductSetsPaged.java index 6dd46a906a68..15dad8ec89e0 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/AsyncListProductSetsPaged.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/AsyncListProductSetsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListProductSetsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ListProductSetsRequest request = ListProductSetsRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/SyncListProductSets.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/SyncListProductSets.java index 088a0417cbb8..3c85346fad3a 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/SyncListProductSets.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/SyncListProductSets.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListProductSets() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ListProductSetsRequest request = ListProductSetsRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/SyncListProductSetsLocationname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/SyncListProductSetsLocationname.java index c0157b379cb1..13340af5f61e 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/SyncListProductSetsLocationname.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/SyncListProductSetsLocationname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListProductSetsLocationname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); for (ProductSet element : productSearchClient.listProductSets(parent).iterateAll()) { diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/SyncListProductSetsString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/SyncListProductSetsString.java index 829544fbf92d..5462cffe9676 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/SyncListProductSetsString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsets/SyncListProductSetsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListProductSetsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); for (ProductSet element : productSearchClient.listProductSets(parent).iterateAll()) { diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSet.java index efddae86add7..bca01700804f 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSet.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListProductsInProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ListProductsInProductSetRequest request = ListProductsInProductSetRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSetPaged.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSetPaged.java index dffd39c0bfa4..42b373fcbcc1 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSetPaged.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSetPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListProductsInProductSetPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ListProductsInProductSetRequest request = ListProductsInProductSetRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/SyncListProductsInProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/SyncListProductsInProductSet.java index 8e16c45bc556..fbed3686e817 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/SyncListProductsInProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/SyncListProductsInProductSet.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListProductsInProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ListProductsInProductSetRequest request = ListProductsInProductSetRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java index 1a612f1d7699..aacfe68e0c15 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListProductsInProductSetProductsetname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]"); for (Product element : productSearchClient.listProductsInProductSet(name).iterateAll()) { diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetString.java index 2976a0d190c0..465ef4f4b156 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListProductsInProductSetString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString(); for (Product element : productSearchClient.listProductsInProductSet(name).iterateAll()) { diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/AsyncListReferenceImages.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/AsyncListReferenceImages.java index 38a18d0987c7..bb444a7a3477 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/AsyncListReferenceImages.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/AsyncListReferenceImages.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListReferenceImages() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ListReferenceImagesRequest request = ListReferenceImagesRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/AsyncListReferenceImagesPaged.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/AsyncListReferenceImagesPaged.java index 47ae86633aa5..5b5fbeac144f 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/AsyncListReferenceImagesPaged.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/AsyncListReferenceImagesPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListReferenceImagesPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ListReferenceImagesRequest request = ListReferenceImagesRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/SyncListReferenceImages.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/SyncListReferenceImages.java index 3ce717e67ce8..3ad85e5d4226 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/SyncListReferenceImages.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/SyncListReferenceImages.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListReferenceImages() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ListReferenceImagesRequest request = ListReferenceImagesRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/SyncListReferenceImagesProductname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/SyncListReferenceImagesProductname.java index e16bc90d07ce..af20db290a29 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/SyncListReferenceImagesProductname.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/SyncListReferenceImagesProductname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListReferenceImagesProductname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ProductName parent = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]"); for (ReferenceImage element : productSearchClient.listReferenceImages(parent).iterateAll()) { diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/SyncListReferenceImagesString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/SyncListReferenceImagesString.java index 81d179eb99f2..0200dfb0e566 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/SyncListReferenceImagesString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/listreferenceimages/SyncListReferenceImagesString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListReferenceImagesString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String parent = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString(); for (ReferenceImage element : productSearchClient.listReferenceImages(parent).iterateAll()) { diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/AsyncPurgeProducts.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/AsyncPurgeProducts.java index 7b37a7cd204f..d358df187e6f 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/AsyncPurgeProducts.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/AsyncPurgeProducts.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncPurgeProducts() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { PurgeProductsRequest request = PurgeProductsRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/AsyncPurgeProductsLRO.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/AsyncPurgeProductsLRO.java index 169569b37983..fa20abafc66c 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/AsyncPurgeProductsLRO.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/AsyncPurgeProductsLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncPurgeProductsLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { PurgeProductsRequest request = PurgeProductsRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProducts.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProducts.java index 3cf5383d2921..ce75436790d3 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProducts.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProducts.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncPurgeProducts() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { PurgeProductsRequest request = PurgeProductsRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProductsLocationname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProductsLocationname.java index e49b08797fe9..e4dd9b43b2df 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProductsLocationname.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProductsLocationname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncPurgeProductsLocationname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); productSearchClient.purgeProductsAsync(parent).get(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProductsString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProductsString.java index a7d58c00700f..5a7bd9a54047 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProductsString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/purgeproducts/SyncPurgeProductsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncPurgeProductsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); productSearchClient.purgeProductsAsync(parent).get(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/AsyncRemoveProductFromProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/AsyncRemoveProductFromProductSet.java index c4ea922f62db..12bb178479bd 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/AsyncRemoveProductFromProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/AsyncRemoveProductFromProductSet.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncRemoveProductFromProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { RemoveProductFromProductSetRequest request = RemoveProductFromProductSetRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java index 170dfa48467d..2c1d2565a2b1 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncRemoveProductFromProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { RemoveProductFromProductSetRequest request = RemoveProductFromProductSetRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java index 32ba1933971f..a85d93527f17 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncRemoveProductFromProductSetProductsetnameProductname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]"); ProductName product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]"); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java index 4a02869c37bb..d14baff1cf16 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncRemoveProductFromProductSetProductsetnameString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]"); String product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java index e8133031c73e..0295bd233b64 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncRemoveProductFromProductSetStringProductname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString(); ProductName product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]"); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java index 76eead3e51eb..ce1888b572bf 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncRemoveProductFromProductSetStringString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString(); String product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproduct/AsyncUpdateProduct.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproduct/AsyncUpdateProduct.java index d15be7863729..1704b63bc084 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproduct/AsyncUpdateProduct.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproduct/AsyncUpdateProduct.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateProduct() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { UpdateProductRequest request = UpdateProductRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproduct/SyncUpdateProduct.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproduct/SyncUpdateProduct.java index 560011b9f31b..ad06e2b0b6a8 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproduct/SyncUpdateProduct.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproduct/SyncUpdateProduct.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateProduct() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { UpdateProductRequest request = UpdateProductRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproduct/SyncUpdateProductProductFieldmask.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproduct/SyncUpdateProductProductFieldmask.java index d3837c0ed7d5..220acd7f3289 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproduct/SyncUpdateProductProductFieldmask.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproduct/SyncUpdateProductProductFieldmask.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateProductProductFieldmask() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { Product product = Product.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproductset/AsyncUpdateProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproductset/AsyncUpdateProductSet.java index 2188ed961752..c40d55a7ea7e 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproductset/AsyncUpdateProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproductset/AsyncUpdateProductSet.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { UpdateProductSetRequest request = UpdateProductSetRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproductset/SyncUpdateProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproductset/SyncUpdateProductSet.java index 880b87773308..100bcf3c7d2a 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproductset/SyncUpdateProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproductset/SyncUpdateProductSet.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { UpdateProductSetRequest request = UpdateProductSetRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproductset/SyncUpdateProductSetProductsetFieldmask.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproductset/SyncUpdateProductSetProductsetFieldmask.java index 9b037115d67f..9727c5ca520f 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproductset/SyncUpdateProductSetProductsetFieldmask.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchclient/updateproductset/SyncUpdateProductSetProductsetFieldmask.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateProductSetProductsetFieldmask() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ProductSet productSet = ProductSet.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchsettings/createproductset/SyncCreateProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchsettings/createproductset/SyncCreateProductSet.java index 2646a317605a..7a737a0d8f59 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchsettings/createproductset/SyncCreateProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/productsearchsettings/createproductset/SyncCreateProductSet.java @@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception { } public static void syncCreateProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library ProductSearchSettings.Builder productSearchSettingsBuilder = ProductSearchSettings.newBuilder(); productSearchSettingsBuilder .createProductSetSettings() .setRetrySettings( - productSearchSettingsBuilder - .createProductSetSettings() - .getRetrySettings() - .toBuilder() + productSearchSettingsBuilder.createProductSetSettings().getRetrySettings().toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); ProductSearchSettings productSearchSettings = productSearchSettingsBuilder.build(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java index 11b42f80e157..76e7ff91795d 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchAnnotateImages() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library ImageAnnotatorStubSettings.Builder imageAnnotatorSettingsBuilder = ImageAnnotatorStubSettings.newBuilder(); imageAnnotatorSettingsBuilder diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/stub/productsearchstubsettings/createproductset/SyncCreateProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/stub/productsearchstubsettings/createproductset/SyncCreateProductSet.java index 962dd0776c1e..5396f00848cf 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/stub/productsearchstubsettings/createproductset/SyncCreateProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1/stub/productsearchstubsettings/createproductset/SyncCreateProductSet.java @@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception { } public static void syncCreateProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library ProductSearchStubSettings.Builder productSearchSettingsBuilder = ProductSearchStubSettings.newBuilder(); productSearchSettingsBuilder .createProductSetSettings() .setRetrySettings( - productSearchSettingsBuilder - .createProductSetSettings() - .getRetrySettings() - .toBuilder() + productSearchSettingsBuilder.createProductSetSettings().getRetrySettings().toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); ProductSearchStubSettings productSearchSettings = productSearchSettingsBuilder.build(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java index 0b2d54aabf39..1d51e8ec2f76 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncBatchAnnotateImages() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { BatchAnnotateImagesRequest request = BatchAnnotateImagesRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java index c6d0162458dc..7135c01739b3 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchAnnotateImages() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { BatchAnnotateImagesRequest request = BatchAnnotateImagesRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java index b9d1538f7e49..fd295212a666 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchAnnotateImagesListannotateimagerequest() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { List requests = new ArrayList<>(); BatchAnnotateImagesResponse response = imageAnnotatorClient.batchAnnotateImages(requests); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java index dac7410b7a61..fd559b5be3db 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/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 ImageAnnotatorSettings imageAnnotatorSettings = ImageAnnotatorSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java index ca296f724da5..d4a8a48d420b 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/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 ImageAnnotatorSettings imageAnnotatorSettings = ImageAnnotatorSettings.newBuilder() .setTransportChannelProvider( diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java index a69bba54e138..4506072cbb00 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorclient/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 ImageAnnotatorSettings imageAnnotatorSettings = ImageAnnotatorSettings.newBuilder().setEndpoint(myEndpoint).build(); ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create(imageAnnotatorSettings); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java index 4ebc3aad2176..1221c05f23a4 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchAnnotateImages() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library ImageAnnotatorSettings.Builder imageAnnotatorSettingsBuilder = ImageAnnotatorSettings.newBuilder(); imageAnnotatorSettingsBuilder diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java index 6b518f507071..963d6f74191a 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p1beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchAnnotateImages() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library ImageAnnotatorStubSettings.Builder imageAnnotatorSettingsBuilder = ImageAnnotatorStubSettings.newBuilder(); imageAnnotatorSettingsBuilder diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java index 990994c7faf0..05d786512262 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncAsyncBatchAnnotateFiles() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { AsyncBatchAnnotateFilesRequest request = AsyncBatchAnnotateFilesRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java index 9368a01543bd..bb6cf7b6b4e9 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void asyncAsyncBatchAnnotateFilesLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { AsyncBatchAnnotateFilesRequest request = AsyncBatchAnnotateFilesRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java index f3b39a9cc9d4..2c2a830b9139 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncAsyncBatchAnnotateFiles() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { AsyncBatchAnnotateFilesRequest request = AsyncBatchAnnotateFilesRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java index c2608974e214..4dcfe27f26d2 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncAsyncBatchAnnotateFilesListasyncannotatefilerequest() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { List requests = new ArrayList<>(); AsyncBatchAnnotateFilesResponse response = diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java index 7742309180b5..645d8703aa05 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncBatchAnnotateImages() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { BatchAnnotateImagesRequest request = BatchAnnotateImagesRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java index 1429e9739ea7..d5a912c6e10c 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchAnnotateImages() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { BatchAnnotateImagesRequest request = BatchAnnotateImagesRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java index 26672a50b15a..d0c92735b810 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchAnnotateImagesListannotateimagerequest() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { List requests = new ArrayList<>(); BatchAnnotateImagesResponse response = imageAnnotatorClient.batchAnnotateImages(requests); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java index 18fcda6f513e..c9da22a74b4f 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/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 ImageAnnotatorSettings imageAnnotatorSettings = ImageAnnotatorSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java index 1c9fc45c5464..f53a19c572ce 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/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 ImageAnnotatorSettings imageAnnotatorSettings = ImageAnnotatorSettings.newBuilder() .setTransportChannelProvider( diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java index b138695882eb..7cca27fe6e9d 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorclient/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 ImageAnnotatorSettings imageAnnotatorSettings = ImageAnnotatorSettings.newBuilder().setEndpoint(myEndpoint).build(); ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create(imageAnnotatorSettings); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java index 53c4164dc59a..3d4ab2bbf979 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchAnnotateImages() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library ImageAnnotatorSettings.Builder imageAnnotatorSettingsBuilder = ImageAnnotatorSettings.newBuilder(); imageAnnotatorSettingsBuilder diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java index 964c75726931..e5e0fd50fdb9 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p2beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchAnnotateImages() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library ImageAnnotatorStubSettings.Builder imageAnnotatorSettingsBuilder = ImageAnnotatorStubSettings.newBuilder(); imageAnnotatorSettingsBuilder diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java index 27e557a9c5db..09cb3693af8c 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncAsyncBatchAnnotateFiles() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { AsyncBatchAnnotateFilesRequest request = AsyncBatchAnnotateFilesRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java index e8d9caf7b879..6d588b9982e2 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void asyncAsyncBatchAnnotateFilesLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { AsyncBatchAnnotateFilesRequest request = AsyncBatchAnnotateFilesRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java index ba04c42a0088..e2b0d8974492 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncAsyncBatchAnnotateFiles() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { AsyncBatchAnnotateFilesRequest request = AsyncBatchAnnotateFilesRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java index 782ce13559ec..77154aa7d802 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncAsyncBatchAnnotateFilesListasyncannotatefilerequest() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { List requests = new ArrayList<>(); AsyncBatchAnnotateFilesResponse response = diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java index ea639bc9c34c..282718c23f81 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncBatchAnnotateImages() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { BatchAnnotateImagesRequest request = BatchAnnotateImagesRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java index c923a152b4b6..e24118ffc722 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchAnnotateImages() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { BatchAnnotateImagesRequest request = BatchAnnotateImagesRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java index 1dc8a01baeaf..e17a7845dde6 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchAnnotateImagesListannotateimagerequest() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { List requests = new ArrayList<>(); BatchAnnotateImagesResponse response = imageAnnotatorClient.batchAnnotateImages(requests); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java index 6bda10d01a5c..81d36792636e 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/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 ImageAnnotatorSettings imageAnnotatorSettings = ImageAnnotatorSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java index 22dfe1eaa55c..e61ffe63b65a 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/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 ImageAnnotatorSettings imageAnnotatorSettings = ImageAnnotatorSettings.newBuilder() .setTransportChannelProvider( diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java index dbed04152b14..5c81a10f70ca 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorclient/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 ImageAnnotatorSettings imageAnnotatorSettings = ImageAnnotatorSettings.newBuilder().setEndpoint(myEndpoint).build(); ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create(imageAnnotatorSettings); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java index fc827245d405..e9e89467203a 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchAnnotateImages() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library ImageAnnotatorSettings.Builder imageAnnotatorSettingsBuilder = ImageAnnotatorSettings.newBuilder(); imageAnnotatorSettingsBuilder diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/AsyncAddProductToProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/AsyncAddProductToProductSet.java index 533054cc52a4..cefc670f91d5 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/AsyncAddProductToProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/AsyncAddProductToProductSet.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncAddProductToProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { AddProductToProductSetRequest request = AddProductToProductSetRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java index 46d06174e548..81188b7017b1 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncAddProductToProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { AddProductToProductSetRequest request = AddProductToProductSetRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java index 3972539cffe4..3b650f90729e 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncAddProductToProductSetProductsetnameProductname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]"); ProductName product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]"); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java index 0069a8cd7dbf..e5315729bef2 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncAddProductToProductSetProductsetnameString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]"); String product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java index b4433e81d9ca..e807d05b1d15 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncAddProductToProductSetStringProductname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString(); ProductName product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]"); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java index 04c8e04f35ba..141cdd0fc76e 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncAddProductToProductSetStringString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString(); String product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/create/SyncCreateSetCredentialsProvider.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/create/SyncCreateSetCredentialsProvider.java index 5d7bf9758537..a67860361f29 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/create/SyncCreateSetCredentialsProvider.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/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 ProductSearchSettings productSearchSettings = ProductSearchSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/create/SyncCreateSetCredentialsProvider1.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/create/SyncCreateSetCredentialsProvider1.java index fb4fcbe6354d..93e867cda918 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/create/SyncCreateSetCredentialsProvider1.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/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 ProductSearchSettings productSearchSettings = ProductSearchSettings.newBuilder() .setTransportChannelProvider( diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/create/SyncCreateSetEndpoint.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/create/SyncCreateSetEndpoint.java index edc3f344cc04..f69dafc186e0 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/create/SyncCreateSetEndpoint.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/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 ProductSearchSettings productSearchSettings = ProductSearchSettings.newBuilder().setEndpoint(myEndpoint).build(); ProductSearchClient productSearchClient = ProductSearchClient.create(productSearchSettings); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/AsyncCreateProduct.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/AsyncCreateProduct.java index 9af3a914aeb7..08c25eb500a1 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/AsyncCreateProduct.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/AsyncCreateProduct.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateProduct() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { CreateProductRequest request = CreateProductRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProduct.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProduct.java index 195336f2abe1..06f1144b6239 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProduct.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProduct.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateProduct() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { CreateProductRequest request = CreateProductRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java index ef1be004338d..30a8e2fbaecf 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateProductLocationnameProductString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); Product product = Product.newBuilder().build(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProductStringProductString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProductStringProductString.java index 12602bc3b6b4..d5da324cd1e8 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProductStringProductString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproduct/SyncCreateProductStringProductString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateProductStringProductString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); Product product = Product.newBuilder().build(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/AsyncCreateProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/AsyncCreateProductSet.java index 9697cc6e3883..7282006d3dc0 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/AsyncCreateProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/AsyncCreateProductSet.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { CreateProductSetRequest request = CreateProductSetRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSet.java index b47e1f9a6cce..e6a9cebd0d30 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSet.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { CreateProductSetRequest request = CreateProductSetRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java index bb8181b352d3..5b3719f16d89 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateProductSetLocationnameProductsetString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); ProductSet productSet = ProductSet.newBuilder().build(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java index 72cc3acec7b5..3dafc768a4ef 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateProductSetStringProductsetString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); ProductSet productSet = ProductSet.newBuilder().build(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/AsyncCreateReferenceImage.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/AsyncCreateReferenceImage.java index bf5e24b8e73d..a1099b9c970e 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/AsyncCreateReferenceImage.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/AsyncCreateReferenceImage.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateReferenceImage() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { CreateReferenceImageRequest request = CreateReferenceImageRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImage.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImage.java index ce024e0e2986..8de6d52d7b31 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImage.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImage.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateReferenceImage() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { CreateReferenceImageRequest request = CreateReferenceImageRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java index 15c9e6114dae..ab15f1cc3d59 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateReferenceImageProductnameReferenceimageString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ProductName parent = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]"); ReferenceImage referenceImage = ReferenceImage.newBuilder().build(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java index 5e27f661815c..d96b857d1538 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateReferenceImageStringReferenceimageString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String parent = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString(); ReferenceImage referenceImage = ReferenceImage.newBuilder().build(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/AsyncDeleteProduct.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/AsyncDeleteProduct.java index ed6b85b19096..e7bc0611ca0b 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/AsyncDeleteProduct.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/AsyncDeleteProduct.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteProduct() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { DeleteProductRequest request = DeleteProductRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProduct.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProduct.java index 9229c99f6ea0..58fc0f3064c4 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProduct.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProduct.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteProduct() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { DeleteProductRequest request = DeleteProductRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java index 652a91f438b4..00b977f57be4 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteProductProductname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ProductName name = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]"); productSearchClient.deleteProduct(name); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProductString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProductString.java index fccc0253d36b..f9e364931413 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProductString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproduct/SyncDeleteProductString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteProductString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String name = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString(); productSearchClient.deleteProduct(name); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/AsyncDeleteProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/AsyncDeleteProductSet.java index af2404334759..a0b3481ed35c 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/AsyncDeleteProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/AsyncDeleteProductSet.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { DeleteProductSetRequest request = DeleteProductSetRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSet.java index 2c9d2ac08a02..47f05b8ab936 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSet.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { DeleteProductSetRequest request = DeleteProductSetRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java index 54de01dea835..c7a9a8219f9c 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteProductSetProductsetname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]"); productSearchClient.deleteProductSet(name); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java index 2245897cca4c..ab5f22cf9ae4 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteProductSetString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString(); productSearchClient.deleteProductSet(name); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/AsyncDeleteReferenceImage.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/AsyncDeleteReferenceImage.java index 1030ec55a06c..107f9b0ea93c 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/AsyncDeleteReferenceImage.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/AsyncDeleteReferenceImage.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteReferenceImage() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { DeleteReferenceImageRequest request = DeleteReferenceImageRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java index fc75058db7a8..7e13278940d2 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteReferenceImage() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { DeleteReferenceImageRequest request = DeleteReferenceImageRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java index 4c4fc0eba8ff..774bfcd8a883 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteReferenceImageReferenceimagename() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ReferenceImageName name = ReferenceImageName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]"); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java index e7c9525e7b6c..6580c333b742 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteReferenceImageString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String name = ReferenceImageName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]") diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/AsyncGetProduct.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/AsyncGetProduct.java index 4ba33ac3687a..dec67e615f74 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/AsyncGetProduct.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/AsyncGetProduct.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetProduct() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { GetProductRequest request = GetProductRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/SyncGetProduct.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/SyncGetProduct.java index b4633b14e141..172b278b9773 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/SyncGetProduct.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/SyncGetProduct.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetProduct() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { GetProductRequest request = GetProductRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/SyncGetProductProductname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/SyncGetProductProductname.java index 0b4047436847..7e52c7e1a832 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/SyncGetProductProductname.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/SyncGetProductProductname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetProductProductname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ProductName name = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]"); Product response = productSearchClient.getProduct(name); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/SyncGetProductString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/SyncGetProductString.java index d4dbb777981f..77e33f15a908 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/SyncGetProductString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproduct/SyncGetProductString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetProductString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String name = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString(); Product response = productSearchClient.getProduct(name); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/AsyncGetProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/AsyncGetProductSet.java index 00ffb6bc4d3a..084e9c991d63 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/AsyncGetProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/AsyncGetProductSet.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { GetProductSetRequest request = GetProductSetRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/SyncGetProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/SyncGetProductSet.java index 4a12adbd30da..94f59279ccc9 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/SyncGetProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/SyncGetProductSet.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { GetProductSetRequest request = GetProductSetRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/SyncGetProductSetProductsetname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/SyncGetProductSetProductsetname.java index f7c71eeff8e1..ac6317c45149 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/SyncGetProductSetProductsetname.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/SyncGetProductSetProductsetname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetProductSetProductsetname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]"); ProductSet response = productSearchClient.getProductSet(name); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/SyncGetProductSetString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/SyncGetProductSetString.java index 2a467baca2cd..9b547f4b67a9 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/SyncGetProductSetString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getproductset/SyncGetProductSetString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetProductSetString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString(); ProductSet response = productSearchClient.getProductSet(name); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/AsyncGetReferenceImage.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/AsyncGetReferenceImage.java index a7f07b5d1647..e8d72c529e4f 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/AsyncGetReferenceImage.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/AsyncGetReferenceImage.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetReferenceImage() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { GetReferenceImageRequest request = GetReferenceImageRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/SyncGetReferenceImage.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/SyncGetReferenceImage.java index ddf93eebf99d..39fd456a8b5e 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/SyncGetReferenceImage.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/SyncGetReferenceImage.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetReferenceImage() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { GetReferenceImageRequest request = GetReferenceImageRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageReferenceimagename.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageReferenceimagename.java index fc4d1adc1dc0..2c258155c522 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageReferenceimagename.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageReferenceimagename.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetReferenceImageReferenceimagename() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ReferenceImageName name = ReferenceImageName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]"); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageString.java index f8b0246a78ed..a677430297f7 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetReferenceImageString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String name = ReferenceImageName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]") diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/AsyncImportProductSets.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/AsyncImportProductSets.java index 8b543a0cca47..940862b3d0bc 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/AsyncImportProductSets.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/AsyncImportProductSets.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncImportProductSets() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ImportProductSetsRequest request = ImportProductSetsRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/AsyncImportProductSetsLRO.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/AsyncImportProductSetsLRO.java index ccb149c8e485..f52024c60ab9 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/AsyncImportProductSetsLRO.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/AsyncImportProductSetsLRO.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void asyncImportProductSetsLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ImportProductSetsRequest request = ImportProductSetsRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSets.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSets.java index 0be377eca30f..eb629deacef9 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSets.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSets.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncImportProductSets() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ImportProductSetsRequest request = ImportProductSetsRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java index 0cc58433dccc..b1c76f40a289 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { public static void syncImportProductSetsLocationnameImportproductsetsinputconfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); ImportProductSetsInputConfig inputConfig = ImportProductSetsInputConfig.newBuilder().build(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java index 08b200f9c699..0ddbf0325743 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncImportProductSetsStringImportproductsetsinputconfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); ImportProductSetsInputConfig inputConfig = ImportProductSetsInputConfig.newBuilder().build(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/AsyncListProducts.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/AsyncListProducts.java index e0c8e47f2cd3..22e018b7db0a 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/AsyncListProducts.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/AsyncListProducts.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListProducts() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ListProductsRequest request = ListProductsRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/AsyncListProductsPaged.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/AsyncListProductsPaged.java index f1a5d4aa27d5..602d5aab443c 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/AsyncListProductsPaged.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/AsyncListProductsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListProductsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ListProductsRequest request = ListProductsRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/SyncListProducts.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/SyncListProducts.java index 37e8dfd7b326..26e13ed07293 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/SyncListProducts.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/SyncListProducts.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListProducts() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ListProductsRequest request = ListProductsRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/SyncListProductsLocationname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/SyncListProductsLocationname.java index 083c86797521..51be97599542 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/SyncListProductsLocationname.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/SyncListProductsLocationname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListProductsLocationname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); for (Product element : productSearchClient.listProducts(parent).iterateAll()) { diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/SyncListProductsString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/SyncListProductsString.java index f156d4354eb5..014807bf18fc 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/SyncListProductsString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproducts/SyncListProductsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListProductsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); for (Product element : productSearchClient.listProducts(parent).iterateAll()) { diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/AsyncListProductSets.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/AsyncListProductSets.java index 165f0b245adb..731003110144 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/AsyncListProductSets.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/AsyncListProductSets.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListProductSets() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ListProductSetsRequest request = ListProductSetsRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/AsyncListProductSetsPaged.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/AsyncListProductSetsPaged.java index 5e454493f1de..3f30b5d46786 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/AsyncListProductSetsPaged.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/AsyncListProductSetsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListProductSetsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ListProductSetsRequest request = ListProductSetsRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/SyncListProductSets.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/SyncListProductSets.java index 463615a4b672..29035c5e5b34 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/SyncListProductSets.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/SyncListProductSets.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListProductSets() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ListProductSetsRequest request = ListProductSetsRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/SyncListProductSetsLocationname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/SyncListProductSetsLocationname.java index 2cfa1086aeaf..1a9e639500a3 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/SyncListProductSetsLocationname.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/SyncListProductSetsLocationname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListProductSetsLocationname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); for (ProductSet element : productSearchClient.listProductSets(parent).iterateAll()) { diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/SyncListProductSetsString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/SyncListProductSetsString.java index 79f0475a121c..46bd837a6bd6 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/SyncListProductSetsString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsets/SyncListProductSetsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListProductSetsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); for (ProductSet element : productSearchClient.listProductSets(parent).iterateAll()) { diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSet.java index 2b5e3fb3f6a2..4068d1bc27e2 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSet.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListProductsInProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ListProductsInProductSetRequest request = ListProductsInProductSetRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSetPaged.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSetPaged.java index e0409004a151..e9a497d98998 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSetPaged.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSetPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListProductsInProductSetPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ListProductsInProductSetRequest request = ListProductsInProductSetRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSet.java index 8fcb98ff60bb..9609d21d1ac3 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSet.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListProductsInProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ListProductsInProductSetRequest request = ListProductsInProductSetRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java index de62fbffeec7..4afae165a370 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListProductsInProductSetProductsetname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]"); for (Product element : productSearchClient.listProductsInProductSet(name).iterateAll()) { diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetString.java index 40338a07241d..adcc4acc5e6d 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListProductsInProductSetString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString(); for (Product element : productSearchClient.listProductsInProductSet(name).iterateAll()) { diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/AsyncListReferenceImages.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/AsyncListReferenceImages.java index 0586619cb326..f5aa8c6fff5c 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/AsyncListReferenceImages.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/AsyncListReferenceImages.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListReferenceImages() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ListReferenceImagesRequest request = ListReferenceImagesRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/AsyncListReferenceImagesPaged.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/AsyncListReferenceImagesPaged.java index 82f1f7677ed9..44d598fc4010 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/AsyncListReferenceImagesPaged.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/AsyncListReferenceImagesPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListReferenceImagesPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ListReferenceImagesRequest request = ListReferenceImagesRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/SyncListReferenceImages.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/SyncListReferenceImages.java index 5796846735d4..a507902f8c58 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/SyncListReferenceImages.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/SyncListReferenceImages.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListReferenceImages() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ListReferenceImagesRequest request = ListReferenceImagesRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesProductname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesProductname.java index 9c08e2d7389a..79e99528cb88 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesProductname.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesProductname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListReferenceImagesProductname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ProductName parent = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]"); for (ReferenceImage element : productSearchClient.listReferenceImages(parent).iterateAll()) { diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesString.java index 619aaee78844..7105d84e326b 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListReferenceImagesString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String parent = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString(); for (ReferenceImage element : productSearchClient.listReferenceImages(parent).iterateAll()) { diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/AsyncRemoveProductFromProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/AsyncRemoveProductFromProductSet.java index 264f773fbe2e..4156a31363c1 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/AsyncRemoveProductFromProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/AsyncRemoveProductFromProductSet.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncRemoveProductFromProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { RemoveProductFromProductSetRequest request = RemoveProductFromProductSetRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java index 30adc33a9256..b8d204b00561 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncRemoveProductFromProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { RemoveProductFromProductSetRequest request = RemoveProductFromProductSetRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java index f7e9c8fc8eb5..a39b39523015 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncRemoveProductFromProductSetProductsetnameProductname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]"); ProductName product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]"); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java index 79de6ae33f41..045c962e40cd 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncRemoveProductFromProductSetProductsetnameString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]"); String product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java index 96caddba0c84..510dea6b38e1 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncRemoveProductFromProductSetStringProductname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString(); ProductName product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]"); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java index aa8f842a2e4c..f21bf3b9adc2 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncRemoveProductFromProductSetStringString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString(); String product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproduct/AsyncUpdateProduct.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproduct/AsyncUpdateProduct.java index 882ebf46fedd..4f39f4e62285 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproduct/AsyncUpdateProduct.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproduct/AsyncUpdateProduct.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateProduct() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { UpdateProductRequest request = UpdateProductRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproduct/SyncUpdateProduct.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproduct/SyncUpdateProduct.java index 7e4f49afcad2..5d8577e13df6 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproduct/SyncUpdateProduct.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproduct/SyncUpdateProduct.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateProduct() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { UpdateProductRequest request = UpdateProductRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproduct/SyncUpdateProductProductFieldmask.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproduct/SyncUpdateProductProductFieldmask.java index bb05b2037c01..aab6300ab184 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproduct/SyncUpdateProductProductFieldmask.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproduct/SyncUpdateProductProductFieldmask.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateProductProductFieldmask() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { Product product = Product.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproductset/AsyncUpdateProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproductset/AsyncUpdateProductSet.java index a015b0dea680..b74fd146cdea 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproductset/AsyncUpdateProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproductset/AsyncUpdateProductSet.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { UpdateProductSetRequest request = UpdateProductSetRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproductset/SyncUpdateProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproductset/SyncUpdateProductSet.java index a2f8abbcd789..9cdc578b07de 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproductset/SyncUpdateProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproductset/SyncUpdateProductSet.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { UpdateProductSetRequest request = UpdateProductSetRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproductset/SyncUpdateProductSetProductsetFieldmask.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproductset/SyncUpdateProductSetProductsetFieldmask.java index d391e356eb01..b0abad28e48e 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproductset/SyncUpdateProductSetProductsetFieldmask.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchclient/updateproductset/SyncUpdateProductSetProductsetFieldmask.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateProductSetProductsetFieldmask() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ProductSet productSet = ProductSet.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchsettings/createproductset/SyncCreateProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchsettings/createproductset/SyncCreateProductSet.java index 4ff45436e518..f4f7d368ff02 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchsettings/createproductset/SyncCreateProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/productsearchsettings/createproductset/SyncCreateProductSet.java @@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception { } public static void syncCreateProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library ProductSearchSettings.Builder productSearchSettingsBuilder = ProductSearchSettings.newBuilder(); productSearchSettingsBuilder .createProductSetSettings() .setRetrySettings( - productSearchSettingsBuilder - .createProductSetSettings() - .getRetrySettings() - .toBuilder() + productSearchSettingsBuilder.createProductSetSettings().getRetrySettings().toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); ProductSearchSettings productSearchSettings = productSearchSettingsBuilder.build(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java index 6644fa4c3b13..b00bf50eb263 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchAnnotateImages() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library ImageAnnotatorStubSettings.Builder imageAnnotatorSettingsBuilder = ImageAnnotatorStubSettings.newBuilder(); imageAnnotatorSettingsBuilder diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/stub/productsearchstubsettings/createproductset/SyncCreateProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/stub/productsearchstubsettings/createproductset/SyncCreateProductSet.java index 0f3638abce58..2854e5a26fe6 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/stub/productsearchstubsettings/createproductset/SyncCreateProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p3beta1/stub/productsearchstubsettings/createproductset/SyncCreateProductSet.java @@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception { } public static void syncCreateProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library ProductSearchStubSettings.Builder productSearchSettingsBuilder = ProductSearchStubSettings.newBuilder(); productSearchSettingsBuilder .createProductSetSettings() .setRetrySettings( - productSearchSettingsBuilder - .createProductSetSettings() - .getRetrySettings() - .toBuilder() + productSearchSettingsBuilder.createProductSetSettings().getRetrySettings().toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); ProductSearchStubSettings productSearchSettings = productSearchSettingsBuilder.build(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java index 2596b80d1ff5..3560b383184f 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFiles.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncAsyncBatchAnnotateFiles() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { AsyncBatchAnnotateFilesRequest request = AsyncBatchAnnotateFilesRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java index b10c0539f086..fe9f4bcd280d 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/AsyncAsyncBatchAnnotateFilesLRO.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void asyncAsyncBatchAnnotateFilesLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { AsyncBatchAnnotateFilesRequest request = AsyncBatchAnnotateFilesRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java index 283f71504e10..a7f94cf4cf38 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFiles.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncAsyncBatchAnnotateFiles() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { AsyncBatchAnnotateFilesRequest request = AsyncBatchAnnotateFilesRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java index ce6f0bb1c0b0..cca207531cdc 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotatefiles/SyncAsyncBatchAnnotateFilesListasyncannotatefilerequest.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncAsyncBatchAnnotateFilesListasyncannotatefilerequest() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { List requests = new ArrayList<>(); AsyncBatchAnnotateFilesResponse response = diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImages.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImages.java index d6c129ea3945..f0b8de781153 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImages.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImages.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void asyncAsyncBatchAnnotateImages() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { AsyncBatchAnnotateImagesRequest request = AsyncBatchAnnotateImagesRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImagesLRO.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImagesLRO.java index b2a404c11032..8b8c67b8d86b 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImagesLRO.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/AsyncAsyncBatchAnnotateImagesLRO.java @@ -33,8 +33,11 @@ public static void main(String[] args) throws Exception { } public static void asyncAsyncBatchAnnotateImagesLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { AsyncBatchAnnotateImagesRequest request = AsyncBatchAnnotateImagesRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImages.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImages.java index be053e027de7..9e5abd57b143 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImages.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImages.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void syncAsyncBatchAnnotateImages() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { AsyncBatchAnnotateImagesRequest request = AsyncBatchAnnotateImagesRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig.java index b38e2f97c703..ac9ad1dff5ee 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/asyncbatchannotateimages/SyncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { public static void syncAsyncBatchAnnotateImagesListannotateimagerequestOutputconfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { List requests = new ArrayList<>(); OutputConfig outputConfig = OutputConfig.newBuilder().build(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/AsyncBatchAnnotateFiles.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/AsyncBatchAnnotateFiles.java index d713be7a80be..dcbc6b6d15ea 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/AsyncBatchAnnotateFiles.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/AsyncBatchAnnotateFiles.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncBatchAnnotateFiles() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { BatchAnnotateFilesRequest request = BatchAnnotateFilesRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFiles.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFiles.java index 81ffcfe75728..36ebcb7fd2ea 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFiles.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFiles.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchAnnotateFiles() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { BatchAnnotateFilesRequest request = BatchAnnotateFilesRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFilesListannotatefilerequest.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFilesListannotatefilerequest.java index 90b61dbea682..6d2cb3d4faef 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFilesListannotatefilerequest.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotatefiles/SyncBatchAnnotateFilesListannotatefilerequest.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchAnnotateFilesListannotatefilerequest() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { List requests = new ArrayList<>(); BatchAnnotateFilesResponse response = imageAnnotatorClient.batchAnnotateFiles(requests); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java index 689119130f3f..d3be582406ed 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/AsyncBatchAnnotateImages.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncBatchAnnotateImages() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { BatchAnnotateImagesRequest request = BatchAnnotateImagesRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java index 54928522389f..77c4afa9fb95 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImages.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchAnnotateImages() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { BatchAnnotateImagesRequest request = BatchAnnotateImagesRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java index df9efcea8541..a68569dbd06e 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/batchannotateimages/SyncBatchAnnotateImagesListannotateimagerequest.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchAnnotateImagesListannotateimagerequest() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { List requests = new ArrayList<>(); BatchAnnotateImagesResponse response = imageAnnotatorClient.batchAnnotateImages(requests); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java index 02ea14b4acda..81361ed4fc17 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/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 ImageAnnotatorSettings imageAnnotatorSettings = ImageAnnotatorSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java index a0443d02b1e5..76b3f9bd4ab0 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/create/SyncCreateSetCredentialsProvider1.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/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 ImageAnnotatorSettings imageAnnotatorSettings = ImageAnnotatorSettings.newBuilder() .setTransportChannelProvider( diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java index 01cd71f84a04..ebf53528ca10 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/create/SyncCreateSetEndpoint.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorclient/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 ImageAnnotatorSettings imageAnnotatorSettings = ImageAnnotatorSettings.newBuilder().setEndpoint(myEndpoint).build(); ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create(imageAnnotatorSettings); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java index f46a1dedceb0..76f5c4e198ac 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/imageannotatorsettings/batchannotateimages/SyncBatchAnnotateImages.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchAnnotateImages() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library ImageAnnotatorSettings.Builder imageAnnotatorSettingsBuilder = ImageAnnotatorSettings.newBuilder(); imageAnnotatorSettingsBuilder diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/AsyncAddProductToProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/AsyncAddProductToProductSet.java index 838d54f95e96..826b621f04a2 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/AsyncAddProductToProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/AsyncAddProductToProductSet.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncAddProductToProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { AddProductToProductSetRequest request = AddProductToProductSetRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java index 7f44c8995c9a..73fa23f52b2b 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSet.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncAddProductToProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { AddProductToProductSetRequest request = AddProductToProductSetRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java index adfd6e5379c6..8b5f8d7c5023 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameProductname.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncAddProductToProductSetProductsetnameProductname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]"); ProductName product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]"); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java index c24381de8cd7..1afa9bb839cc 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetProductsetnameString.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncAddProductToProductSetProductsetnameString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]"); String product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java index aaf5dd6c4902..1fe7ef4254f0 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringProductname.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncAddProductToProductSetStringProductname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString(); ProductName product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]"); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java index 58213b2d866d..61a46026adee 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/addproducttoproductset/SyncAddProductToProductSetStringString.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncAddProductToProductSetStringString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString(); String product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/create/SyncCreateSetCredentialsProvider.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/create/SyncCreateSetCredentialsProvider.java index a2701e5bd00c..c95d346c734c 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/create/SyncCreateSetCredentialsProvider.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/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 ProductSearchSettings productSearchSettings = ProductSearchSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/create/SyncCreateSetCredentialsProvider1.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/create/SyncCreateSetCredentialsProvider1.java index 109564889dc0..3a95805781f5 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/create/SyncCreateSetCredentialsProvider1.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/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 ProductSearchSettings productSearchSettings = ProductSearchSettings.newBuilder() .setTransportChannelProvider( diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/create/SyncCreateSetEndpoint.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/create/SyncCreateSetEndpoint.java index c165ae58d0a2..3f394b403dd7 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/create/SyncCreateSetEndpoint.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/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 ProductSearchSettings productSearchSettings = ProductSearchSettings.newBuilder().setEndpoint(myEndpoint).build(); ProductSearchClient productSearchClient = ProductSearchClient.create(productSearchSettings); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/AsyncCreateProduct.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/AsyncCreateProduct.java index 85344e60b23f..07650db00def 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/AsyncCreateProduct.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/AsyncCreateProduct.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateProduct() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { CreateProductRequest request = CreateProductRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProduct.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProduct.java index 533161528a02..84bd73a29378 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProduct.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProduct.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateProduct() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { CreateProductRequest request = CreateProductRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java index bf3b5ba22e9c..15d8dc4c863c 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProductLocationnameProductString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateProductLocationnameProductString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); Product product = Product.newBuilder().build(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProductStringProductString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProductStringProductString.java index a8999f14bb9e..f7fad35f7074 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProductStringProductString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproduct/SyncCreateProductStringProductString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateProductStringProductString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); Product product = Product.newBuilder().build(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/AsyncCreateProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/AsyncCreateProductSet.java index f4da457f035c..b128072caf92 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/AsyncCreateProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/AsyncCreateProductSet.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { CreateProductSetRequest request = CreateProductSetRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSet.java index c6535de6ba9c..dd81ded3f2c2 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSet.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { CreateProductSetRequest request = CreateProductSetRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java index 5d89b0d0b0d7..fc9ca3591107 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSetLocationnameProductsetString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateProductSetLocationnameProductsetString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); ProductSet productSet = ProductSet.newBuilder().build(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java index c134ebbd3f0a..d4a7ec2fde40 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createproductset/SyncCreateProductSetStringProductsetString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateProductSetStringProductsetString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); ProductSet productSet = ProductSet.newBuilder().build(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/AsyncCreateReferenceImage.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/AsyncCreateReferenceImage.java index a9364a5f95a7..3172b3b3f90d 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/AsyncCreateReferenceImage.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/AsyncCreateReferenceImage.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateReferenceImage() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { CreateReferenceImageRequest request = CreateReferenceImageRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImage.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImage.java index b99ed9a5d2cf..533d6344ab01 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImage.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImage.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateReferenceImage() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { CreateReferenceImageRequest request = CreateReferenceImageRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java index 41d8c405c6e2..f5f00ef3a16f 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageProductnameReferenceimageString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateReferenceImageProductnameReferenceimageString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ProductName parent = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]"); ReferenceImage referenceImage = ReferenceImage.newBuilder().build(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java index afab3ec05393..5882fd385d67 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/createreferenceimage/SyncCreateReferenceImageStringReferenceimageString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateReferenceImageStringReferenceimageString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String parent = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString(); ReferenceImage referenceImage = ReferenceImage.newBuilder().build(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/AsyncDeleteProduct.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/AsyncDeleteProduct.java index bae78e4831fe..f1b9e84c8b7c 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/AsyncDeleteProduct.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/AsyncDeleteProduct.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteProduct() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { DeleteProductRequest request = DeleteProductRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProduct.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProduct.java index cb5c9473cf07..4812dd1df924 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProduct.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProduct.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteProduct() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { DeleteProductRequest request = DeleteProductRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java index 52253ab39be2..ad0bae7d6672 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProductProductname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteProductProductname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ProductName name = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]"); productSearchClient.deleteProduct(name); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProductString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProductString.java index 4b419219bb15..10cd71d23b80 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProductString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproduct/SyncDeleteProductString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteProductString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String name = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString(); productSearchClient.deleteProduct(name); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/AsyncDeleteProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/AsyncDeleteProductSet.java index 5ffb39fda4b0..efe3a25c5858 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/AsyncDeleteProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/AsyncDeleteProductSet.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { DeleteProductSetRequest request = DeleteProductSetRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSet.java index fac3b9c74612..e44c89e7db0c 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSet.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { DeleteProductSetRequest request = DeleteProductSetRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java index 6f4688505c98..e582d2735c93 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSetProductsetname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteProductSetProductsetname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]"); productSearchClient.deleteProductSet(name); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java index 6005f2d7e47f..ad1e731dc973 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deleteproductset/SyncDeleteProductSetString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteProductSetString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString(); productSearchClient.deleteProductSet(name); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/AsyncDeleteReferenceImage.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/AsyncDeleteReferenceImage.java index f417327c0ca5..f1aecab1b8d6 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/AsyncDeleteReferenceImage.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/AsyncDeleteReferenceImage.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteReferenceImage() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { DeleteReferenceImageRequest request = DeleteReferenceImageRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java index 96a3109a597f..6395f93a0b5a 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImage.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteReferenceImage() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { DeleteReferenceImageRequest request = DeleteReferenceImageRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java index 6a2d1a0b3daf..46352b0a6f2d 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageReferenceimagename.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteReferenceImageReferenceimagename() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ReferenceImageName name = ReferenceImageName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]"); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java index 68221d8fedc4..b917ac1570fd 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/deletereferenceimage/SyncDeleteReferenceImageString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteReferenceImageString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String name = ReferenceImageName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]") diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/AsyncGetProduct.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/AsyncGetProduct.java index 0d121f430a05..fe223c94d35c 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/AsyncGetProduct.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/AsyncGetProduct.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetProduct() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { GetProductRequest request = GetProductRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/SyncGetProduct.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/SyncGetProduct.java index dcea1eff676c..d882ff04c1aa 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/SyncGetProduct.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/SyncGetProduct.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetProduct() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { GetProductRequest request = GetProductRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/SyncGetProductProductname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/SyncGetProductProductname.java index 130ff7a417e9..b2d76a567e04 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/SyncGetProductProductname.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/SyncGetProductProductname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetProductProductname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ProductName name = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]"); Product response = productSearchClient.getProduct(name); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/SyncGetProductString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/SyncGetProductString.java index b706b29bd9ab..bb02aba4f7d8 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/SyncGetProductString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproduct/SyncGetProductString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetProductString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String name = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString(); Product response = productSearchClient.getProduct(name); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/AsyncGetProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/AsyncGetProductSet.java index 130745414372..85f4202dcc99 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/AsyncGetProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/AsyncGetProductSet.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { GetProductSetRequest request = GetProductSetRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/SyncGetProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/SyncGetProductSet.java index b065d9e4404c..538605a99b1c 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/SyncGetProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/SyncGetProductSet.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { GetProductSetRequest request = GetProductSetRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/SyncGetProductSetProductsetname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/SyncGetProductSetProductsetname.java index 7f66c992452f..4555b7710b05 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/SyncGetProductSetProductsetname.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/SyncGetProductSetProductsetname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetProductSetProductsetname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]"); ProductSet response = productSearchClient.getProductSet(name); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/SyncGetProductSetString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/SyncGetProductSetString.java index 4e19e808dcd6..0ce7f569f705 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/SyncGetProductSetString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getproductset/SyncGetProductSetString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetProductSetString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString(); ProductSet response = productSearchClient.getProductSet(name); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/AsyncGetReferenceImage.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/AsyncGetReferenceImage.java index 65201b35c298..14bd71a62a72 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/AsyncGetReferenceImage.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/AsyncGetReferenceImage.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetReferenceImage() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { GetReferenceImageRequest request = GetReferenceImageRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/SyncGetReferenceImage.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/SyncGetReferenceImage.java index f7542243380c..3ad5a3db5f20 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/SyncGetReferenceImage.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/SyncGetReferenceImage.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetReferenceImage() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { GetReferenceImageRequest request = GetReferenceImageRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageReferenceimagename.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageReferenceimagename.java index e8acc4896cbd..15738a52dbb4 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageReferenceimagename.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageReferenceimagename.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetReferenceImageReferenceimagename() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ReferenceImageName name = ReferenceImageName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]"); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageString.java index 2376fe134e03..b4f16dc3601c 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/getreferenceimage/SyncGetReferenceImageString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetReferenceImageString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String name = ReferenceImageName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]") diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/AsyncImportProductSets.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/AsyncImportProductSets.java index 6d0572e5fc91..3c466d78b02d 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/AsyncImportProductSets.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/AsyncImportProductSets.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncImportProductSets() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ImportProductSetsRequest request = ImportProductSetsRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/AsyncImportProductSetsLRO.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/AsyncImportProductSetsLRO.java index e661950aa570..e69236bd1210 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/AsyncImportProductSetsLRO.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/AsyncImportProductSetsLRO.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void asyncImportProductSetsLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ImportProductSetsRequest request = ImportProductSetsRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSets.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSets.java index 84ab57aafa4d..98d8717a5618 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSets.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSets.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncImportProductSets() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ImportProductSetsRequest request = ImportProductSetsRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java index 8de0043223c7..06350d69882d 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSetsLocationnameImportproductsetsinputconfig.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { public static void syncImportProductSetsLocationnameImportproductsetsinputconfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); ImportProductSetsInputConfig inputConfig = ImportProductSetsInputConfig.newBuilder().build(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java index 39df9f024ee1..d61be7abb0c2 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/importproductsets/SyncImportProductSetsStringImportproductsetsinputconfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncImportProductSetsStringImportproductsetsinputconfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); ImportProductSetsInputConfig inputConfig = ImportProductSetsInputConfig.newBuilder().build(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/AsyncListProducts.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/AsyncListProducts.java index 6f2e1d85f57b..530baf6cf05a 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/AsyncListProducts.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/AsyncListProducts.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListProducts() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ListProductsRequest request = ListProductsRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/AsyncListProductsPaged.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/AsyncListProductsPaged.java index 5acf5b3ffdda..4a10769b4e03 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/AsyncListProductsPaged.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/AsyncListProductsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListProductsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ListProductsRequest request = ListProductsRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/SyncListProducts.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/SyncListProducts.java index 7b25981bfaaa..f8803d503432 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/SyncListProducts.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/SyncListProducts.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListProducts() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ListProductsRequest request = ListProductsRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/SyncListProductsLocationname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/SyncListProductsLocationname.java index 5a402b10595a..6403e8c13eaf 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/SyncListProductsLocationname.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/SyncListProductsLocationname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListProductsLocationname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); for (Product element : productSearchClient.listProducts(parent).iterateAll()) { diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/SyncListProductsString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/SyncListProductsString.java index cc09a44b0d5a..606953592de3 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/SyncListProductsString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproducts/SyncListProductsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListProductsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); for (Product element : productSearchClient.listProducts(parent).iterateAll()) { diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/AsyncListProductSets.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/AsyncListProductSets.java index 172d2b21ae42..f2c73fed2e06 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/AsyncListProductSets.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/AsyncListProductSets.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListProductSets() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ListProductSetsRequest request = ListProductSetsRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/AsyncListProductSetsPaged.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/AsyncListProductSetsPaged.java index 09b0aee98647..05ef50702322 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/AsyncListProductSetsPaged.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/AsyncListProductSetsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListProductSetsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ListProductSetsRequest request = ListProductSetsRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/SyncListProductSets.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/SyncListProductSets.java index 6f932ba1f59a..d2866996e864 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/SyncListProductSets.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/SyncListProductSets.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListProductSets() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ListProductSetsRequest request = ListProductSetsRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/SyncListProductSetsLocationname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/SyncListProductSetsLocationname.java index 2508f3fe0ca9..01f5b5a7ffa1 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/SyncListProductSetsLocationname.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/SyncListProductSetsLocationname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListProductSetsLocationname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); for (ProductSet element : productSearchClient.listProductSets(parent).iterateAll()) { diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/SyncListProductSetsString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/SyncListProductSetsString.java index 7232271a90e3..2be635726289 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/SyncListProductSetsString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsets/SyncListProductSetsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListProductSetsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); for (ProductSet element : productSearchClient.listProductSets(parent).iterateAll()) { diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSet.java index 98128e62655e..00a1e318e919 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSet.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListProductsInProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ListProductsInProductSetRequest request = ListProductsInProductSetRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSetPaged.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSetPaged.java index c91fe9d489f2..7b5f873cb776 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSetPaged.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/AsyncListProductsInProductSetPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListProductsInProductSetPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ListProductsInProductSetRequest request = ListProductsInProductSetRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSet.java index d13a297e4291..97832d7cbe38 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSet.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListProductsInProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ListProductsInProductSetRequest request = ListProductsInProductSetRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java index 8a3a1ef797c3..0c656c2ed6f5 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetProductsetname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListProductsInProductSetProductsetname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]"); for (Product element : productSearchClient.listProductsInProductSet(name).iterateAll()) { diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetString.java index 6e5e6a229a25..7febaade01d8 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listproductsinproductset/SyncListProductsInProductSetString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListProductsInProductSetString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString(); for (Product element : productSearchClient.listProductsInProductSet(name).iterateAll()) { diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/AsyncListReferenceImages.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/AsyncListReferenceImages.java index d61caad108df..b54425a43cdd 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/AsyncListReferenceImages.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/AsyncListReferenceImages.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListReferenceImages() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ListReferenceImagesRequest request = ListReferenceImagesRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/AsyncListReferenceImagesPaged.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/AsyncListReferenceImagesPaged.java index b15ff7d57efc..53b128c781b6 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/AsyncListReferenceImagesPaged.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/AsyncListReferenceImagesPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListReferenceImagesPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ListReferenceImagesRequest request = ListReferenceImagesRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/SyncListReferenceImages.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/SyncListReferenceImages.java index 3cf83c28292d..8b6e2f9b7fcd 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/SyncListReferenceImages.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/SyncListReferenceImages.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListReferenceImages() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ListReferenceImagesRequest request = ListReferenceImagesRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesProductname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesProductname.java index 299de511505e..e307423e9801 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesProductname.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesProductname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListReferenceImagesProductname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ProductName parent = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]"); for (ReferenceImage element : productSearchClient.listReferenceImages(parent).iterateAll()) { diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesString.java index d4d9145d8600..0e5dbc6f2b0b 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/listreferenceimages/SyncListReferenceImagesString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListReferenceImagesString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String parent = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString(); for (ReferenceImage element : productSearchClient.listReferenceImages(parent).iterateAll()) { diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/AsyncPurgeProducts.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/AsyncPurgeProducts.java index cdbb5087cb21..f573a4788e3a 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/AsyncPurgeProducts.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/AsyncPurgeProducts.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncPurgeProducts() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { PurgeProductsRequest request = PurgeProductsRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/AsyncPurgeProductsLRO.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/AsyncPurgeProductsLRO.java index 5ff40627662d..ec01509dcd3f 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/AsyncPurgeProductsLRO.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/AsyncPurgeProductsLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncPurgeProductsLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { PurgeProductsRequest request = PurgeProductsRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProducts.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProducts.java index b404c5f8a50e..91ae2175daf7 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProducts.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProducts.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncPurgeProducts() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { PurgeProductsRequest request = PurgeProductsRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProductsLocationname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProductsLocationname.java index 8fe93c5a722a..990682c1ef37 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProductsLocationname.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProductsLocationname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncPurgeProductsLocationname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); productSearchClient.purgeProductsAsync(parent).get(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProductsString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProductsString.java index 4f0c6ab9d984..d2b09229c08e 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProductsString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/purgeproducts/SyncPurgeProductsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncPurgeProductsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); productSearchClient.purgeProductsAsync(parent).get(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/AsyncRemoveProductFromProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/AsyncRemoveProductFromProductSet.java index 15664749d8b3..90a8d41259b5 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/AsyncRemoveProductFromProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/AsyncRemoveProductFromProductSet.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncRemoveProductFromProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { RemoveProductFromProductSetRequest request = RemoveProductFromProductSetRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java index 994dec221b4b..6b9a54798872 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSet.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncRemoveProductFromProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { RemoveProductFromProductSetRequest request = RemoveProductFromProductSetRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java index 83ab46025a02..804f5772d2d8 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameProductname.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncRemoveProductFromProductSetProductsetnameProductname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]"); ProductName product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]"); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java index 970b71c10704..2943c3dba374 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetProductsetnameString.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncRemoveProductFromProductSetProductsetnameString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]"); String product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java index 0bbd161d395f..50201fa1e716 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringProductname.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncRemoveProductFromProductSetStringProductname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString(); ProductName product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]"); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java index 29cd6ee1efaa..2acbf86656d5 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/removeproductfromproductset/SyncRemoveProductFromProductSetStringString.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncRemoveProductFromProductSetStringString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString(); String product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproduct/AsyncUpdateProduct.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproduct/AsyncUpdateProduct.java index 2f30feee937b..d868c9b5d1a4 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproduct/AsyncUpdateProduct.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproduct/AsyncUpdateProduct.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateProduct() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { UpdateProductRequest request = UpdateProductRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproduct/SyncUpdateProduct.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproduct/SyncUpdateProduct.java index d3c9c1c63452..103e182d4272 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproduct/SyncUpdateProduct.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproduct/SyncUpdateProduct.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateProduct() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { UpdateProductRequest request = UpdateProductRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproduct/SyncUpdateProductProductFieldmask.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproduct/SyncUpdateProductProductFieldmask.java index d8de09474926..14ed817ce21d 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproduct/SyncUpdateProductProductFieldmask.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproduct/SyncUpdateProductProductFieldmask.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateProductProductFieldmask() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { Product product = Product.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproductset/AsyncUpdateProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproductset/AsyncUpdateProductSet.java index ed2ebd5e8e83..f075fe2694e3 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproductset/AsyncUpdateProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproductset/AsyncUpdateProductSet.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { UpdateProductSetRequest request = UpdateProductSetRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproductset/SyncUpdateProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproductset/SyncUpdateProductSet.java index 62fcb9362b58..1f5f451318be 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproductset/SyncUpdateProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproductset/SyncUpdateProductSet.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { UpdateProductSetRequest request = UpdateProductSetRequest.newBuilder() diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproductset/SyncUpdateProductSetProductsetFieldmask.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproductset/SyncUpdateProductSetProductsetFieldmask.java index f363755ca9be..9ae891af3586 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproductset/SyncUpdateProductSetProductsetFieldmask.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchclient/updateproductset/SyncUpdateProductSetProductsetFieldmask.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateProductSetProductsetFieldmask() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { ProductSet productSet = ProductSet.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchsettings/createproductset/SyncCreateProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchsettings/createproductset/SyncCreateProductSet.java index 1abe83dff6ad..1434aed48845 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchsettings/createproductset/SyncCreateProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/productsearchsettings/createproductset/SyncCreateProductSet.java @@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception { } public static void syncCreateProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library ProductSearchSettings.Builder productSearchSettingsBuilder = ProductSearchSettings.newBuilder(); productSearchSettingsBuilder .createProductSetSettings() .setRetrySettings( - productSearchSettingsBuilder - .createProductSetSettings() - .getRetrySettings() - .toBuilder() + productSearchSettingsBuilder.createProductSetSettings().getRetrySettings().toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); ProductSearchSettings productSearchSettings = productSearchSettingsBuilder.build(); diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java index 8d3d27807cfd..d1c22650ed1a 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/stub/imageannotatorstubsettings/batchannotateimages/SyncBatchAnnotateImages.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchAnnotateImages() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library ImageAnnotatorStubSettings.Builder imageAnnotatorSettingsBuilder = ImageAnnotatorStubSettings.newBuilder(); imageAnnotatorSettingsBuilder diff --git a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/stub/productsearchstubsettings/createproductset/SyncCreateProductSet.java b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/stub/productsearchstubsettings/createproductset/SyncCreateProductSet.java index 35837206fe7a..f47575caf07c 100644 --- a/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/stub/productsearchstubsettings/createproductset/SyncCreateProductSet.java +++ b/java-vision/samples/snippets/generated/com/google/cloud/vision/v1p4beta1/stub/productsearchstubsettings/createproductset/SyncCreateProductSet.java @@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception { } public static void syncCreateProductSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library ProductSearchStubSettings.Builder productSearchSettingsBuilder = ProductSearchStubSettings.newBuilder(); productSearchSettingsBuilder .createProductSetSettings() .setRetrySettings( - productSearchSettingsBuilder - .createProductSetSettings() - .getRetrySettings() - .toBuilder() + productSearchSettingsBuilder.createProductSetSettings().getRetrySettings().toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); ProductSearchStubSettings productSearchSettings = productSearchSettingsBuilder.build();