{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { * Listrequests = new ArrayList<>(); * BatchAnnotateImagesResponse response = imageAnnotatorClient.batchAnnotateImages(requests); @@ -75,6 +77,8 @@ * To customize credentials: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * ImageAnnotatorSettings imageAnnotatorSettings = * ImageAnnotatorSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -85,6 +89,8 @@ *To customize the endpoint: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * ImageAnnotatorSettings imageAnnotatorSettings = * ImageAnnotatorSettings.newBuilder().setEndpoint(myEndpoint).build(); * ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create(imageAnnotatorSettings); @@ -163,6 +169,8 @@ public final OperationsClient getOperationsClient() { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { * Listrequests = new ArrayList<>(); * BatchAnnotateImagesResponse response = imageAnnotatorClient.batchAnnotateImages(requests); @@ -186,6 +194,8 @@ 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. * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { * BatchAnnotateImagesRequest request = * BatchAnnotateImagesRequest.newBuilder() @@ -210,6 +220,8 @@ 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. * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { * BatchAnnotateImagesRequest request = * BatchAnnotateImagesRequest.newBuilder() @@ -240,6 +252,8 @@ 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. * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { * Listrequests = new ArrayList<>(); * BatchAnnotateFilesResponse response = imageAnnotatorClient.batchAnnotateFiles(requests); @@ -268,6 +282,8 @@ public final BatchAnnotateFilesResponse batchAnnotateFiles(List Sample code: * * {@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { * BatchAnnotateFilesRequest request = * BatchAnnotateFilesRequest.newBuilder() @@ -297,6 +313,8 @@ 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. * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { * BatchAnnotateFilesRequest request = * BatchAnnotateFilesRequest.newBuilder() @@ -329,6 +347,8 @@ 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. * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { * Listrequests = new ArrayList<>(); * OutputConfig outputConfig = OutputConfig.newBuilder().build(); @@ -366,6 +386,8 @@ 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. * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { * AsyncBatchAnnotateImagesRequest request = * AsyncBatchAnnotateImagesRequest.newBuilder() @@ -400,6 +422,8 @@ 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. * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { * AsyncBatchAnnotateImagesRequest request = * AsyncBatchAnnotateImagesRequest.newBuilder() @@ -434,6 +458,8 @@ 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. * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { * AsyncBatchAnnotateImagesRequest request = * AsyncBatchAnnotateImagesRequest.newBuilder() @@ -464,6 +490,8 @@ 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. * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { * Listrequests = new ArrayList<>(); * AsyncBatchAnnotateFilesResponse response = @@ -492,6 +520,8 @@ 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. * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { * AsyncBatchAnnotateFilesRequest request = * AsyncBatchAnnotateFilesRequest.newBuilder() @@ -522,6 +552,8 @@ 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. * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { * AsyncBatchAnnotateFilesRequest request = * AsyncBatchAnnotateFilesRequest.newBuilder() @@ -552,6 +584,8 @@ 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. * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { * AsyncBatchAnnotateFilesRequest request = * AsyncBatchAnnotateFilesRequest.newBuilder() diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorSettings.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorSettings.java index 17160ba9d..145c8b864 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorSettings.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -51,6 +51,8 @@ *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. * ImageAnnotatorSettings.Builder imageAnnotatorSettingsBuilder = * ImageAnnotatorSettings.newBuilder(); * imageAnnotatorSettingsBuilder diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchClient.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchClient.java index 5ecec5677..5d709a259 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchClient.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -62,6 +62,8 @@ * 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * ProductSet productSet = ProductSet.newBuilder().build(); @@ -99,6 +101,8 @@ *To customize credentials: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * ProductSearchSettings productSearchSettings = * ProductSearchSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -109,6 +113,8 @@ *To customize the endpoint: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * ProductSearchSettings productSearchSettings = * ProductSearchSettings.newBuilder().setEndpoint(myEndpoint).build(); * ProductSearchClient productSearchClient = ProductSearchClient.create(productSearchSettings); @@ -388,6 +394,8 @@ public final OperationsClient getOperationsClient() { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * ProductSet productSet = ProductSet.newBuilder().build(); @@ -429,6 +437,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * ProductSet productSet = ProductSet.newBuilder().build(); @@ -470,6 +480,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * CreateProductSetRequest request = * CreateProductSetRequest.newBuilder() @@ -501,6 +513,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * CreateProductSetRequest request = * CreateProductSetRequest.newBuilder() @@ -532,6 +546,8 @@ public final UnaryCallablecreateProductSet * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (ProductSet element : productSearchClient.listProductSets(parent).iterateAll()) { @@ -565,6 +581,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * for (ProductSet element : productSearchClient.listProductSets(parent).iterateAll()) { @@ -595,6 +613,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ListProductSetsRequest request = * ListProductSetsRequest.newBuilder() @@ -628,6 +648,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ListProductSetsRequest request = * ListProductSetsRequest.newBuilder() @@ -662,6 +684,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ListProductSetsRequest request = * ListProductSetsRequest.newBuilder() @@ -703,6 +727,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]"); * ProductSet response = productSearchClient.getProductSet(name); @@ -732,6 +758,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString(); * ProductSet response = productSearchClient.getProductSet(name); @@ -760,6 +788,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * GetProductSetRequest request = * GetProductSetRequest.newBuilder() @@ -789,6 +819,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * GetProductSetRequest request = * GetProductSetRequest.newBuilder() @@ -820,6 +852,8 @@ public final UnaryCallablegetProductSetCallab * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ProductSet productSet = ProductSet.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -857,6 +891,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * UpdateProductSetRequest request = * UpdateProductSetRequest.newBuilder() @@ -889,6 +925,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * UpdateProductSetRequest request = * UpdateProductSetRequest.newBuilder() @@ -916,6 +954,8 @@ public final UnaryCallableupdateProductSet * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]"); * productSearchClient.deleteProductSet(name); @@ -942,6 +982,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString(); * productSearchClient.deleteProductSet(name); @@ -967,6 +1009,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * DeleteProductSetRequest request = * DeleteProductSetRequest.newBuilder() @@ -993,6 +1037,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * DeleteProductSetRequest request = * DeleteProductSetRequest.newBuilder() @@ -1023,6 +1069,8 @@ public final UnaryCallabledeleteProductSetCalla * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * Product product = Product.newBuilder().build(); @@ -1065,6 +1113,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * Product product = Product.newBuilder().build(); @@ -1107,6 +1157,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * CreateProductRequest request = * CreateProductRequest.newBuilder() @@ -1140,6 +1192,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * CreateProductRequest request = * CreateProductRequest.newBuilder() @@ -1170,6 +1224,8 @@ public final UnaryCallablecreateProductCallable( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (Product element : productSearchClient.listProducts(parent).iterateAll()) { @@ -1203,6 +1259,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * for (Product element : productSearchClient.listProducts(parent).iterateAll()) { @@ -1233,6 +1291,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ListProductsRequest request = * ListProductsRequest.newBuilder() @@ -1266,6 +1326,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ListProductsRequest request = * ListProductsRequest.newBuilder() @@ -1300,6 +1362,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ListProductsRequest request = * ListProductsRequest.newBuilder() @@ -1339,6 +1403,8 @@ public final UnaryCallablelistProduc * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ProductName name = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]"); * Product response = productSearchClient.getProduct(name); @@ -1368,6 +1434,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * String name = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString(); * Product response = productSearchClient.getProduct(name); @@ -1396,6 +1464,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * GetProductRequest request = * GetProductRequest.newBuilder() @@ -1425,6 +1495,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * GetProductRequest request = * GetProductRequest.newBuilder() @@ -1462,6 +1534,8 @@ public final UnaryCallablegetProductCallable() { * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * Product product = Product.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -1504,6 +1578,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * UpdateProductRequest request = * UpdateProductRequest.newBuilder() @@ -1543,6 +1619,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * UpdateProductRequest request = * UpdateProductRequest.newBuilder() @@ -1570,6 +1648,8 @@ public final UnaryCallableupdateProductCallable( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ProductName name = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]"); * productSearchClient.deleteProduct(name); @@ -1597,6 +1677,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * String name = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString(); * productSearchClient.deleteProduct(name); @@ -1623,6 +1705,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * DeleteProductRequest request = * DeleteProductRequest.newBuilder() @@ -1650,6 +1734,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * DeleteProductRequest request = * DeleteProductRequest.newBuilder() @@ -1690,6 +1776,8 @@ public final UnaryCallabledeleteProductCallable() * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ProductName parent = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]"); * ReferenceImage referenceImage = ReferenceImage.newBuilder().build(); @@ -1745,6 +1833,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * String parent = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString(); * ReferenceImage referenceImage = ReferenceImage.newBuilder().build(); @@ -1800,6 +1890,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * CreateReferenceImageRequest request = * CreateReferenceImageRequest.newBuilder() @@ -1843,6 +1935,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * CreateReferenceImageRequest request = * CreateReferenceImageRequest.newBuilder() @@ -1874,6 +1968,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ReferenceImageName name = * ReferenceImageName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]"); @@ -1906,6 +2002,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * String name = * ReferenceImageName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]") @@ -1937,6 +2035,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * DeleteReferenceImageRequest request = * DeleteReferenceImageRequest.newBuilder() @@ -1967,6 +2067,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * DeleteReferenceImageRequest request = * DeleteReferenceImageRequest.newBuilder() @@ -1999,6 +2101,8 @@ public final UnaryCallabledeleteReferenceIm * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ProductName parent = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]"); * for (ReferenceImage element : productSearchClient.listReferenceImages(parent).iterateAll()) { @@ -2033,6 +2137,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * String parent = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString(); * for (ReferenceImage element : productSearchClient.listReferenceImages(parent).iterateAll()) { @@ -2065,6 +2171,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ListReferenceImagesRequest request = * ListReferenceImagesRequest.newBuilder() @@ -2100,6 +2208,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ListReferenceImagesRequest request = * ListReferenceImagesRequest.newBuilder() @@ -2135,6 +2245,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ListReferenceImagesRequest request = * ListReferenceImagesRequest.newBuilder() @@ -2176,6 +2288,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ReferenceImageName name = * ReferenceImageName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]"); @@ -2209,6 +2323,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * String name = * ReferenceImageName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]") @@ -2240,6 +2356,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * GetReferenceImageRequest request = * GetReferenceImageRequest.newBuilder() @@ -2271,6 +2389,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * GetReferenceImageRequest request = * GetReferenceImageRequest.newBuilder() @@ -2305,6 +2425,8 @@ public final UnaryCallablegetReferenc * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]"); * ProductName product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]"); @@ -2343,6 +2465,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]"); * String product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString(); @@ -2381,6 +2505,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString(); * ProductName product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]"); @@ -2419,6 +2545,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString(); * String product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString(); @@ -2454,6 +2582,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * AddProductToProductSetRequest request = * AddProductToProductSetRequest.newBuilder() @@ -2487,6 +2617,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * AddProductToProductSetRequest request = * AddProductToProductSetRequest.newBuilder() @@ -2512,6 +2644,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]"); * ProductName product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]"); @@ -2541,6 +2675,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]"); * String product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString(); @@ -2570,6 +2706,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString(); * ProductName product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]"); @@ -2599,6 +2737,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString(); * String product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString(); @@ -2625,6 +2765,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * RemoveProductFromProductSetRequest request = * RemoveProductFromProductSetRequest.newBuilder() @@ -2649,6 +2791,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * RemoveProductFromProductSetRequest request = * RemoveProductFromProductSetRequest.newBuilder() @@ -2681,6 +2825,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]"); * for (Product element : productSearchClient.listProductsInProductSet(name).iterateAll()) { @@ -2715,6 +2861,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString(); * for (Product element : productSearchClient.listProductsInProductSet(name).iterateAll()) { @@ -2747,6 +2895,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ListProductsInProductSetRequest request = * ListProductsInProductSetRequest.newBuilder() @@ -2782,6 +2932,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ListProductsInProductSetRequest request = * ListProductsInProductSetRequest.newBuilder() @@ -2817,6 +2969,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ListProductsInProductSetRequest request = * ListProductsInProductSetRequest.newBuilder() @@ -2862,6 +3016,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * ImportProductSetsInputConfig inputConfig = ImportProductSetsInputConfig.newBuilder().build(); @@ -2902,6 +3058,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * ImportProductSetsInputConfig inputConfig = ImportProductSetsInputConfig.newBuilder().build(); @@ -2939,6 +3097,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ImportProductSetsRequest request = * ImportProductSetsRequest.newBuilder() @@ -2975,6 +3135,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ImportProductSetsRequest request = * ImportProductSetsRequest.newBuilder() @@ -3011,6 +3173,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ImportProductSetsRequest request = * ImportProductSetsRequest.newBuilder() @@ -3056,6 +3220,8 @@ public final UnaryCallableimportProductSet * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * productSearchClient.purgeProductsAsync(parent).get(); @@ -3103,6 +3269,8 @@ public final OperationFuturepurgeProductsAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * productSearchClient.purgeProductsAsync(parent).get(); @@ -3146,6 +3314,8 @@ public final OperationFuturepurgeProductsAsync(S * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * PurgeProductsRequest request = * PurgeProductsRequest.newBuilder() @@ -3192,6 +3362,8 @@ public final OperationFuturepurgeProductsAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * PurgeProductsRequest request = * PurgeProductsRequest.newBuilder() @@ -3238,6 +3410,8 @@ public final OperationFuturepurgeProductsAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * PurgeProductsRequest request = * PurgeProductsRequest.newBuilder() diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchSettings.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchSettings.java index e6dc55fe6..4a84703f8 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchSettings.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -58,6 +58,8 @@ *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. * ProductSearchSettings.Builder productSearchSettingsBuilder = ProductSearchSettings.newBuilder(); * productSearchSettingsBuilder * .createProductSetSettings() diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/package-info.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/package-info.java index d49f12be9..d747f3380 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/package-info.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -26,6 +26,8 @@ *Sample for ImageAnnotatorClient: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { * Listrequests = new ArrayList<>(); * BatchAnnotateImagesResponse response = imageAnnotatorClient.batchAnnotateImages(requests); @@ -53,6 +55,8 @@ * Sample for ProductSearchClient: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * ProductSet productSet = ProductSet.newBuilder().build(); diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcImageAnnotatorCallableFactory.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcImageAnnotatorCallableFactory.java index dfaa56680..48312a70e 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcImageAnnotatorCallableFactory.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcImageAnnotatorCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcImageAnnotatorStub.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcImageAnnotatorStub.java index 6eff5ee22..69708118b 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcImageAnnotatorStub.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcImageAnnotatorStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcProductSearchCallableFactory.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcProductSearchCallableFactory.java index 7d9bfa3a1..85024d906 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcProductSearchCallableFactory.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcProductSearchCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcProductSearchStub.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcProductSearchStub.java index 5eaac41fc..9305da9b5 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcProductSearchStub.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/GrpcProductSearchStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStub.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStub.java index 45a86c90d..3dd0b2552 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStub.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStubSettings.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStubSettings.java index a1a0c7bd3..31e695739 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStubSettings.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -72,6 +72,8 @@ *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. * ImageAnnotatorStubSettings.Builder imageAnnotatorSettingsBuilder = * ImageAnnotatorStubSettings.newBuilder(); * imageAnnotatorSettingsBuilder diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStub.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStub.java index 92eda19e3..0215af469 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStub.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStubSettings.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStubSettings.java index 66ea508b5..e501b7526 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStubSettings.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -104,6 +104,8 @@ *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. * ProductSearchStubSettings.Builder productSearchSettingsBuilder = * ProductSearchStubSettings.newBuilder(); * productSearchSettingsBuilder diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorClient.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorClient.java index d52c2dc09..e345de6b7 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorClient.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -36,6 +36,8 @@ * 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. * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { * Listrequests = new ArrayList<>(); * BatchAnnotateImagesResponse response = imageAnnotatorClient.batchAnnotateImages(requests); @@ -71,6 +73,8 @@ * To customize credentials: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * ImageAnnotatorSettings imageAnnotatorSettings = * ImageAnnotatorSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -81,6 +85,8 @@ *To customize the endpoint: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * ImageAnnotatorSettings imageAnnotatorSettings = * ImageAnnotatorSettings.newBuilder().setEndpoint(myEndpoint).build(); * ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create(imageAnnotatorSettings); @@ -149,6 +155,8 @@ 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. * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { * Listrequests = new ArrayList<>(); * BatchAnnotateImagesResponse response = imageAnnotatorClient.batchAnnotateImages(requests); @@ -172,6 +180,8 @@ 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. * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { * BatchAnnotateImagesRequest request = * BatchAnnotateImagesRequest.newBuilder() @@ -195,6 +205,8 @@ 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. * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { * BatchAnnotateImagesRequest request = * BatchAnnotateImagesRequest.newBuilder() diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorSettings.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorSettings.java index 167e721b9..b5a7050c0 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorSettings.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -49,6 +49,8 @@ *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. * ImageAnnotatorSettings.Builder imageAnnotatorSettingsBuilder = * ImageAnnotatorSettings.newBuilder(); * imageAnnotatorSettingsBuilder diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/package-info.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/package-info.java index 0244fa375..b77de0aa9 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/package-info.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -26,6 +26,8 @@ *Sample for ImageAnnotatorClient: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { * Listrequests = new ArrayList<>(); * BatchAnnotateImagesResponse response = imageAnnotatorClient.batchAnnotateImages(requests); diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/GrpcImageAnnotatorCallableFactory.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/GrpcImageAnnotatorCallableFactory.java index c2adc1ab9..c4c203ed5 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/GrpcImageAnnotatorCallableFactory.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/GrpcImageAnnotatorCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/GrpcImageAnnotatorStub.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/GrpcImageAnnotatorStub.java index 251f45c95..439c6ccba 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/GrpcImageAnnotatorStub.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/GrpcImageAnnotatorStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStub.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStub.java index d1fdb66a5..f7bffd2ca 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStub.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStubSettings.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStubSettings.java index d7cba5845..6864f282a 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStubSettings.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -60,6 +60,8 @@ * 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. * ImageAnnotatorStubSettings.Builder imageAnnotatorSettingsBuilder = * ImageAnnotatorStubSettings.newBuilder(); * imageAnnotatorSettingsBuilder diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClient.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClient.java index ae47b6230..88e2c161f 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClient.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -40,6 +40,8 @@ * 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. * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { * Listrequests = new ArrayList<>(); * BatchAnnotateImagesResponse response = imageAnnotatorClient.batchAnnotateImages(requests); @@ -75,6 +77,8 @@ * To customize credentials: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * ImageAnnotatorSettings imageAnnotatorSettings = * ImageAnnotatorSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -85,6 +89,8 @@ *To customize the endpoint: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * ImageAnnotatorSettings imageAnnotatorSettings = * ImageAnnotatorSettings.newBuilder().setEndpoint(myEndpoint).build(); * ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create(imageAnnotatorSettings); @@ -164,6 +170,8 @@ public final OperationsClient getOperationsClient() { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { * Listrequests = new ArrayList<>(); * BatchAnnotateImagesResponse response = imageAnnotatorClient.batchAnnotateImages(requests); @@ -187,6 +195,8 @@ 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. * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { * BatchAnnotateImagesRequest request = * BatchAnnotateImagesRequest.newBuilder() @@ -210,6 +220,8 @@ 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. * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { * BatchAnnotateImagesRequest request = * BatchAnnotateImagesRequest.newBuilder() @@ -238,6 +250,8 @@ 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. * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { * Listrequests = new ArrayList<>(); * AsyncBatchAnnotateFilesResponse response = @@ -266,6 +280,8 @@ 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. * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { * AsyncBatchAnnotateFilesRequest request = * AsyncBatchAnnotateFilesRequest.newBuilder() @@ -295,6 +311,8 @@ 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. * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { * AsyncBatchAnnotateFilesRequest request = * AsyncBatchAnnotateFilesRequest.newBuilder() @@ -324,6 +342,8 @@ 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. * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { * AsyncBatchAnnotateFilesRequest request = * AsyncBatchAnnotateFilesRequest.newBuilder() diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorSettings.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorSettings.java index 5a01dcec9..956be571d 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorSettings.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -51,6 +51,8 @@ *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. * ImageAnnotatorSettings.Builder imageAnnotatorSettingsBuilder = * ImageAnnotatorSettings.newBuilder(); * imageAnnotatorSettingsBuilder diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/package-info.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/package-info.java index b411cf438..fdf5c84c7 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/package-info.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -26,6 +26,8 @@ *Sample for ImageAnnotatorClient: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { * Listrequests = new ArrayList<>(); * BatchAnnotateImagesResponse response = imageAnnotatorClient.batchAnnotateImages(requests); diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/GrpcImageAnnotatorCallableFactory.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/GrpcImageAnnotatorCallableFactory.java index 3307d76e0..9a46dc820 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/GrpcImageAnnotatorCallableFactory.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/GrpcImageAnnotatorCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/GrpcImageAnnotatorStub.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/GrpcImageAnnotatorStub.java index 7a2f78b4a..0efebe412 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/GrpcImageAnnotatorStub.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/GrpcImageAnnotatorStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStub.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStub.java index 6430f4e1d..6fa20f7bc 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStub.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStubSettings.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStubSettings.java index 0ed76ba4f..2232a90d5 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStubSettings.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -68,6 +68,8 @@ * 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. * ImageAnnotatorStubSettings.Builder imageAnnotatorSettingsBuilder = * ImageAnnotatorStubSettings.newBuilder(); * imageAnnotatorSettingsBuilder diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClient.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClient.java index aabc4cf9b..f90b934b7 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClient.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -40,6 +40,8 @@ * 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. * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { * Listrequests = new ArrayList<>(); * BatchAnnotateImagesResponse response = imageAnnotatorClient.batchAnnotateImages(requests); @@ -75,6 +77,8 @@ * To customize credentials: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * ImageAnnotatorSettings imageAnnotatorSettings = * ImageAnnotatorSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -85,6 +89,8 @@ *To customize the endpoint: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * ImageAnnotatorSettings imageAnnotatorSettings = * ImageAnnotatorSettings.newBuilder().setEndpoint(myEndpoint).build(); * ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create(imageAnnotatorSettings); @@ -164,6 +170,8 @@ public final OperationsClient getOperationsClient() { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { * Listrequests = new ArrayList<>(); * BatchAnnotateImagesResponse response = imageAnnotatorClient.batchAnnotateImages(requests); @@ -187,6 +195,8 @@ 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. * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { * BatchAnnotateImagesRequest request = * BatchAnnotateImagesRequest.newBuilder() @@ -210,6 +220,8 @@ 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. * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { * BatchAnnotateImagesRequest request = * BatchAnnotateImagesRequest.newBuilder() @@ -238,6 +250,8 @@ 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. * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { * Listrequests = new ArrayList<>(); * AsyncBatchAnnotateFilesResponse response = @@ -266,6 +280,8 @@ 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. * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { * AsyncBatchAnnotateFilesRequest request = * AsyncBatchAnnotateFilesRequest.newBuilder() @@ -295,6 +311,8 @@ 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. * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { * AsyncBatchAnnotateFilesRequest request = * AsyncBatchAnnotateFilesRequest.newBuilder() @@ -324,6 +342,8 @@ 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. * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { * AsyncBatchAnnotateFilesRequest request = * AsyncBatchAnnotateFilesRequest.newBuilder() diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorSettings.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorSettings.java index 0d72ff62b..48256f899 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorSettings.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -51,6 +51,8 @@ *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. * ImageAnnotatorSettings.Builder imageAnnotatorSettingsBuilder = * ImageAnnotatorSettings.newBuilder(); * imageAnnotatorSettingsBuilder diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchClient.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchClient.java index aa2c72308..b75c25911 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchClient.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -61,6 +61,8 @@ * 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * ProductSet productSet = ProductSet.newBuilder().build(); @@ -98,6 +100,8 @@ *To customize credentials: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * ProductSearchSettings productSearchSettings = * ProductSearchSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -108,6 +112,8 @@ *To customize the endpoint: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * ProductSearchSettings productSearchSettings = * ProductSearchSettings.newBuilder().setEndpoint(myEndpoint).build(); * ProductSearchClient productSearchClient = ProductSearchClient.create(productSearchSettings); @@ -193,6 +199,8 @@ public final OperationsClient getOperationsClient() { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * ProductSet productSet = ProductSet.newBuilder().build(); @@ -234,6 +242,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * ProductSet productSet = ProductSet.newBuilder().build(); @@ -275,6 +285,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * CreateProductSetRequest request = * CreateProductSetRequest.newBuilder() @@ -306,6 +318,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * CreateProductSetRequest request = * CreateProductSetRequest.newBuilder() @@ -337,6 +351,8 @@ public final UnaryCallablecreateProductSet * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (ProductSet element : productSearchClient.listProductSets(parent).iterateAll()) { @@ -370,6 +386,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * for (ProductSet element : productSearchClient.listProductSets(parent).iterateAll()) { @@ -400,6 +418,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ListProductSetsRequest request = * ListProductSetsRequest.newBuilder() @@ -433,6 +453,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ListProductSetsRequest request = * ListProductSetsRequest.newBuilder() @@ -467,6 +489,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ListProductSetsRequest request = * ListProductSetsRequest.newBuilder() @@ -508,6 +532,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]"); * ProductSet response = productSearchClient.getProductSet(name); @@ -537,6 +563,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString(); * ProductSet response = productSearchClient.getProductSet(name); @@ -565,6 +593,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * GetProductSetRequest request = * GetProductSetRequest.newBuilder() @@ -594,6 +624,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * GetProductSetRequest request = * GetProductSetRequest.newBuilder() @@ -625,6 +657,8 @@ public final UnaryCallablegetProductSetCallab * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ProductSet productSet = ProductSet.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -662,6 +696,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * UpdateProductSetRequest request = * UpdateProductSetRequest.newBuilder() @@ -694,6 +730,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * UpdateProductSetRequest request = * UpdateProductSetRequest.newBuilder() @@ -727,6 +765,8 @@ public final UnaryCallableupdateProductSet * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]"); * productSearchClient.deleteProductSet(name); @@ -759,6 +799,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString(); * productSearchClient.deleteProductSet(name); @@ -790,6 +832,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * DeleteProductSetRequest request = * DeleteProductSetRequest.newBuilder() @@ -822,6 +866,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * DeleteProductSetRequest request = * DeleteProductSetRequest.newBuilder() @@ -852,6 +898,8 @@ public final UnaryCallabledeleteProductSetCalla * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * Product product = Product.newBuilder().build(); @@ -894,6 +942,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * Product product = Product.newBuilder().build(); @@ -936,6 +986,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * CreateProductRequest request = * CreateProductRequest.newBuilder() @@ -969,6 +1021,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * CreateProductRequest request = * CreateProductRequest.newBuilder() @@ -999,6 +1053,8 @@ public final UnaryCallablecreateProductCallable( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (Product element : productSearchClient.listProducts(parent).iterateAll()) { @@ -1032,6 +1088,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * for (Product element : productSearchClient.listProducts(parent).iterateAll()) { @@ -1062,6 +1120,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ListProductsRequest request = * ListProductsRequest.newBuilder() @@ -1095,6 +1155,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ListProductsRequest request = * ListProductsRequest.newBuilder() @@ -1129,6 +1191,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ListProductsRequest request = * ListProductsRequest.newBuilder() @@ -1168,6 +1232,8 @@ public final UnaryCallablelistProduc * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ProductName name = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]"); * Product response = productSearchClient.getProduct(name); @@ -1197,6 +1263,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * String name = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString(); * Product response = productSearchClient.getProduct(name); @@ -1225,6 +1293,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * GetProductRequest request = * GetProductRequest.newBuilder() @@ -1254,6 +1324,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * GetProductRequest request = * GetProductRequest.newBuilder() @@ -1291,6 +1363,8 @@ public final UnaryCallablegetProductCallable() { * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * Product product = Product.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -1333,6 +1407,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * UpdateProductRequest request = * UpdateProductRequest.newBuilder() @@ -1372,6 +1448,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * UpdateProductRequest request = * UpdateProductRequest.newBuilder() @@ -1405,6 +1483,8 @@ public final UnaryCallableupdateProductCallable( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ProductName name = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]"); * productSearchClient.deleteProduct(name); @@ -1438,6 +1518,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * String name = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString(); * productSearchClient.deleteProduct(name); @@ -1470,6 +1552,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * DeleteProductRequest request = * DeleteProductRequest.newBuilder() @@ -1503,6 +1587,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * DeleteProductRequest request = * DeleteProductRequest.newBuilder() @@ -1543,6 +1629,8 @@ public final UnaryCallabledeleteProductCallable() * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ProductName parent = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]"); * ReferenceImage referenceImage = ReferenceImage.newBuilder().build(); @@ -1598,6 +1686,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * String parent = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString(); * ReferenceImage referenceImage = ReferenceImage.newBuilder().build(); @@ -1653,6 +1743,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * CreateReferenceImageRequest request = * CreateReferenceImageRequest.newBuilder() @@ -1696,6 +1788,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * CreateReferenceImageRequest request = * CreateReferenceImageRequest.newBuilder() @@ -1733,6 +1827,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ReferenceImageName name = * ReferenceImageName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]"); @@ -1771,6 +1867,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * String name = * ReferenceImageName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]") @@ -1808,6 +1906,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * DeleteReferenceImageRequest request = * DeleteReferenceImageRequest.newBuilder() @@ -1844,6 +1944,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * DeleteReferenceImageRequest request = * DeleteReferenceImageRequest.newBuilder() @@ -1876,6 +1978,8 @@ public final UnaryCallabledeleteReferenceIm * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ProductName parent = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]"); * for (ReferenceImage element : productSearchClient.listReferenceImages(parent).iterateAll()) { @@ -1910,6 +2014,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * String parent = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString(); * for (ReferenceImage element : productSearchClient.listReferenceImages(parent).iterateAll()) { @@ -1942,6 +2048,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ListReferenceImagesRequest request = * ListReferenceImagesRequest.newBuilder() @@ -1977,6 +2085,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ListReferenceImagesRequest request = * ListReferenceImagesRequest.newBuilder() @@ -2012,6 +2122,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ListReferenceImagesRequest request = * ListReferenceImagesRequest.newBuilder() @@ -2053,6 +2165,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ReferenceImageName name = * ReferenceImageName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]"); @@ -2086,6 +2200,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * String name = * ReferenceImageName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]") @@ -2117,6 +2233,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * GetReferenceImageRequest request = * GetReferenceImageRequest.newBuilder() @@ -2148,6 +2266,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * GetReferenceImageRequest request = * GetReferenceImageRequest.newBuilder() @@ -2182,6 +2302,8 @@ public final UnaryCallablegetReferenc * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]"); * ProductName product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]"); @@ -2220,6 +2342,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]"); * String product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString(); @@ -2258,6 +2382,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString(); * ProductName product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]"); @@ -2296,6 +2422,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * String name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]").toString(); * String product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString(); @@ -2331,6 +2459,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * AddProductToProductSetRequest request = * AddProductToProductSetRequest.newBuilder() @@ -2364,6 +2494,8 @@ 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. * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) { * AddProductToProductSetRequest request = * AddProductToProductSetRequest.newBuilder() @@ -2395,6 +2527,8 @@ public final void addProductToProductSet(AddProductToProductSetRequest request) *