diff --git a/.gitignore b/.gitignore index fadd6afc2..3ca4b1fa5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,15 +1,32 @@ -# Maven -target/ +.gitignore -# Eclipse -.classpath +# Packages +dist +bin +var +sdist +target + +# Unit test / coverage reports +.coverage +.tox +nosetests.xml + +# Translations +*.mo + +# Mr Developer +.mr.developer.cfg .project +.pydevproject +*.iml +.idea .settings +.DS_Store +.classpath -# Intellij -*.iml -.idea/ +# Built documentation +docs/ -# python utilities +# Python utilities *.pyc -__pycache__ diff --git a/.kokoro/release/publish_javadoc.sh b/.kokoro/release/publish_javadoc.sh index a66347039..253a9628a 100755 --- a/.kokoro/release/publish_javadoc.sh +++ b/.kokoro/release/publish_javadoc.sh @@ -33,7 +33,7 @@ python3 -m pip install gcp-docuploader # compile all packages mvn clean install -B -DskipTests=true -NAME=vision +NAME=google-cloud-vision VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3) # build the docs diff --git a/CHANGELOG.md b/CHANGELOG.md index cfbe98e69..2307c78b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.99.0](https://www.github.com/googleapis/java-vision/compare/v1.98.1...v1.99.0) (2019-11-14) + + +### Features + +* add celebrity face detection to v1p4beta ([#13](https://www.github.com/googleapis/java-vision/issues/13)) ([3a869f7](https://www.github.com/googleapis/java-vision/commit/3a869f7c5af4e133fd644005c27e058d5f35b4d2)) + ### [1.98.1](https://www.github.com/googleapis/java-vision/compare/v1.98.0...v1.98.1) (2019-11-12) diff --git a/README.md b/README.md index 4d7a603e7..298f00fc2 100644 --- a/README.md +++ b/README.md @@ -38,16 +38,16 @@ If you are using Maven without a BOM, add this to your dependencies. com.google.cloud google-cloud-vision - 1.98.1 + 1.99.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-vision:1.98.1' +compile 'com.google.cloud:google-cloud-vision:1.99.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vision" % "1.98.1" +libraryDependencies += "com.google.cloud" % "google-cloud-vision" % "1.99.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-vision-bom/pom.xml b/google-cloud-vision-bom/pom.xml index 2722500cd..b01b7c0b1 100644 --- a/google-cloud-vision-bom/pom.xml +++ b/google-cloud-vision-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-vision-bom - 1.98.1 + 1.99.0 pom com.google.cloud @@ -64,57 +64,57 @@ com.google.api.grpc proto-google-cloud-vision-v1p4beta1 - 0.81.1 + 0.82.0 com.google.cloud google-cloud-vision - 1.98.1 + 1.99.0 com.google.api.grpc grpc-google-cloud-vision-v1p3beta1 - 0.81.1 + 0.82.0 com.google.api.grpc proto-google-cloud-vision-v1 - 1.80.1 + 1.81.0 com.google.api.grpc grpc-google-cloud-vision-v1p1beta1 - 0.81.1 + 0.82.0 com.google.api.grpc proto-google-cloud-vision-v1p1beta1 - 0.81.1 + 0.82.0 com.google.api.grpc proto-google-cloud-vision-v1p3beta1 - 0.81.1 + 0.82.0 com.google.api.grpc grpc-google-cloud-vision-v1p4beta1 - 0.81.1 + 0.82.0 com.google.api.grpc grpc-google-cloud-vision-v1p2beta1 - 1.80.1 + 1.81.0 com.google.api.grpc grpc-google-cloud-vision-v1 - 1.80.1 + 1.81.0 com.google.api.grpc proto-google-cloud-vision-v1p2beta1 - 1.80.1 + 1.81.0 diff --git a/google-cloud-vision/pom.xml b/google-cloud-vision/pom.xml index b34330f34..ecebc0ef0 100644 --- a/google-cloud-vision/pom.xml +++ b/google-cloud-vision/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-vision - 1.98.1 + 1.99.0 jar Google Cloud Vision https://github.com/googleapis/java-vision @@ -11,7 +11,7 @@ com.google.cloud google-cloud-vision-parent - 1.98.1 + 1.99.0 google-cloud-vision diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClient.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClient.java index 27e650337..e981ed525 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClient.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClient.java @@ -252,7 +252,7 @@ public final BatchAnnotateImagesResponse batchAnnotateImages(BatchAnnotateImages * } * * - * @param requests The list of file annotation requests. Right now we support only one + * @param requests Required. The list of file annotation requests. Right now we support only one * AnnotateFileRequest in BatchAnnotateFilesRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -340,7 +340,7 @@ public final BatchAnnotateFilesResponse batchAnnotateFiles(BatchAnnotateFilesReq * } * * - * @param requests Individual image annotation requests for this batch. + * @param requests Required. Individual image annotation requests for this batch. * @param outputConfig Required. The desired output location and metadata (e.g. format). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -476,7 +476,7 @@ public final BatchAnnotateFilesResponse batchAnnotateFiles(BatchAnnotateFilesReq * } * * - * @param requests Individual async file annotation requests for this batch. + * @param requests Required. Individual async file annotation requests for this batch. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi( diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchClient.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchClient.java index 0a81388e6..174654af5 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchClient.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchClient.java @@ -208,9 +208,9 @@ public final OperationsClient getOperationsClient() { * } * * - * @param parent The project in which the ProductSet should be created. + * @param parent Required. The project in which the ProductSet should be created. *

Format is `projects/PROJECT_ID/locations/LOC_ID`. - * @param productSet The ProductSet to create. + * @param productSet Required. The ProductSet to create. * @param productSetId A user-supplied resource id for this ProductSet. If set, the server will * attempt to use this value as the resource id. If it is already in use, an error is returned * with code ALREADY_EXISTS. Must be at most 128 characters long. It cannot contain the @@ -249,9 +249,9 @@ public final ProductSet createProductSet( * } * * - * @param parent The project in which the ProductSet should be created. + * @param parent Required. The project in which the ProductSet should be created. *

Format is `projects/PROJECT_ID/locations/LOC_ID`. - * @param productSet The ProductSet to create. + * @param productSet Required. The ProductSet to create. * @param productSetId A user-supplied resource id for this ProductSet. If set, the server will * attempt to use this value as the resource id. If it is already in use, an error is returned * with code ALREADY_EXISTS. Must be at most 128 characters long. It cannot contain the @@ -352,7 +352,7 @@ public final UnaryCallable createProductSet * } * * - * @param parent The project from which ProductSets should be listed. + * @param parent Required. The project from which ProductSets should be listed. *

Format is `projects/PROJECT_ID/locations/LOC_ID`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -383,7 +383,7 @@ public final ListProductSetsPagedResponse listProductSets(LocationName parent) { * } * * - * @param parent The project from which ProductSets should be listed. + * @param parent Required. The project from which ProductSets should be listed. *

Format is `projects/PROJECT_ID/locations/LOC_ID`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -503,7 +503,7 @@ public final ListProductSetsPagedResponse listProductSets(ListProductSetsRequest * } * * - * @param name Resource name of the ProductSet to get. + * @param name Required. Resource name of the ProductSet to get. *

Format is: `projects/PROJECT_ID/locations/LOG_ID/productSets/PRODUCT_SET_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -531,7 +531,7 @@ public final ProductSet getProductSet(ProductSetName name) { * } * * - * @param name Resource name of the ProductSet to get. + * @param name Required. Resource name of the ProductSet to get. *

Format is: `projects/PROJECT_ID/locations/LOG_ID/productSets/PRODUCT_SET_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -614,7 +614,7 @@ public final UnaryCallable getProductSetCallab * } * * - * @param productSet The ProductSet resource which replaces the one on the server. + * @param productSet Required. The ProductSet resource which replaces the one on the server. * @param updateMask The [FieldMask][google.protobuf.FieldMask] that specifies which fields to * update. If update_mask isn't specified, all mutable fields are to be updated. Valid mask * path is `display_name`. @@ -698,10 +698,6 @@ public final UnaryCallable updateProductSet * *

The actual image files are not deleted from Google Cloud Storage. * - *

Possible errors: - * - *

* Returns NOT_FOUND if the ProductSet does not exist. - * *

Sample code: * *


@@ -711,7 +707,7 @@ public final UnaryCallable updateProductSet
    * }
    * 
* - * @param name Resource name of the ProductSet to delete. + * @param name Required. Resource name of the ProductSet to delete. *

Format is: `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -729,10 +725,6 @@ public final void deleteProductSet(ProductSetName name) { * *

The actual image files are not deleted from Google Cloud Storage. * - *

Possible errors: - * - *

* Returns NOT_FOUND if the ProductSet does not exist. - * *

Sample code: * *


@@ -742,7 +734,7 @@ public final void deleteProductSet(ProductSetName name) {
    * }
    * 
* - * @param name Resource name of the ProductSet to delete. + * @param name Required. Resource name of the ProductSet to delete. *

Format is: `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -759,10 +751,6 @@ public final void deleteProductSet(String name) { * *

The actual image files are not deleted from Google Cloud Storage. * - *

Possible errors: - * - *

* Returns NOT_FOUND if the ProductSet does not exist. - * *

Sample code: * *


@@ -789,10 +777,6 @@ public final void deleteProductSet(DeleteProductSetRequest request) {
    *
    * 

The actual image files are not deleted from Google Cloud Storage. * - *

Possible errors: - * - *

* Returns NOT_FOUND if the ProductSet does not exist. - * *

Sample code: * *


@@ -832,9 +816,9 @@ public final UnaryCallable deleteProductSetCalla
    * }
    * 
* - * @param parent The project in which the Product should be created. + * @param parent Required. The project in which the Product should be created. *

Format is `projects/PROJECT_ID/locations/LOC_ID`. - * @param product The product to create. + * @param product Required. The product to create. * @param productId A user-supplied resource id for this Product. If set, the server will attempt * to use this value as the resource id. If it is already in use, an error is returned with * code ALREADY_EXISTS. Must be at most 128 characters long. It cannot contain the character @@ -873,9 +857,9 @@ public final Product createProduct(LocationName parent, Product product, String * } *

* - * @param parent The project in which the Product should be created. + * @param parent Required. The project in which the Product should be created. *

Format is `projects/PROJECT_ID/locations/LOC_ID`. - * @param product The product to create. + * @param product Required. The product to create. * @param productId A user-supplied resource id for this Product. If set, the server will attempt * to use this value as the resource id. If it is already in use, an error is returned with * code ALREADY_EXISTS. Must be at most 128 characters long. It cannot contain the character @@ -977,7 +961,7 @@ public final UnaryCallable createProductCallable( * } * * - * @param parent The project OR ProductSet from which Products should be listed. + * @param parent Required. The project OR ProductSet from which Products should be listed. *

Format: `projects/PROJECT_ID/locations/LOC_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1008,7 +992,7 @@ public final ListProductsPagedResponse listProducts(LocationName parent) { * } * * - * @param parent The project OR ProductSet from which Products should be listed. + * @param parent Required. The project OR ProductSet from which Products should be listed. *

Format: `projects/PROJECT_ID/locations/LOC_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1127,7 +1111,7 @@ public final UnaryCallable listProduc * } * * - * @param name Resource name of the Product to get. + * @param name Required. Resource name of the Product to get. *

Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1155,7 +1139,7 @@ public final Product getProduct(ProductName name) { * } * * - * @param name Resource name of the Product to get. + * @param name Required. Resource name of the Product to get. *

Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1244,8 +1228,8 @@ public final UnaryCallable getProductCallable() { * } * * - * @param product The Product resource which replaces the one on the server. product.name is - * immutable. + * @param product Required. The Product resource which replaces the one on the server. + * product.name is immutable. * @param updateMask The [FieldMask][google.protobuf.FieldMask] that specifies which fields to * update. If update_mask isn't specified, all mutable fields are to be updated. Valid mask * paths include `product_labels`, `display_name`, and `description`. @@ -1339,10 +1323,6 @@ public final UnaryCallable updateProductCallable( * against ProductSets containing the product may still work until all related caches are * refreshed. * - *

Possible errors: - * - *

* Returns NOT_FOUND if the product does not exist. - * *

Sample code: * *


@@ -1352,7 +1332,7 @@ public final UnaryCallable updateProductCallable(
    * }
    * 
* - * @param name Resource name of product to delete. + * @param name Required. Resource name of product to delete. *

Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1371,10 +1351,6 @@ public final void deleteProduct(ProductName name) { * against ProductSets containing the product may still work until all related caches are * refreshed. * - *

Possible errors: - * - *

* Returns NOT_FOUND if the product does not exist. - * *

Sample code: * *


@@ -1384,7 +1360,7 @@ public final void deleteProduct(ProductName name) {
    * }
    * 
* - * @param name Resource name of product to delete. + * @param name Required. Resource name of product to delete. *

Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1402,10 +1378,6 @@ public final void deleteProduct(String name) { * against ProductSets containing the product may still work until all related caches are * refreshed. * - *

Possible errors: - * - *

* Returns NOT_FOUND if the product does not exist. - * *

Sample code: * *


@@ -1433,10 +1405,6 @@ public final void deleteProduct(DeleteProductRequest request) {
    * against ProductSets containing the product may still work until all related caches are
    * refreshed.
    *
-   * 

Possible errors: - * - *

* Returns NOT_FOUND if the product does not exist. - * *

Sample code: * *


@@ -1486,10 +1454,10 @@ public final UnaryCallable deleteProductCallable()
    * }
    * 
* - * @param parent Resource name of the product in which to create the reference image. + * @param parent Required. Resource name of the product in which to create the reference image. *

Format is `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`. - * @param referenceImage The reference image to create. If an image ID is specified, it is - * ignored. + * @param referenceImage Required. The reference image to create. If an image ID is specified, it + * is ignored. * @param referenceImageId A user-supplied resource id for the ReferenceImage to be added. If set, * the server will attempt to use this value as the resource id. If it is already in use, an * error is returned with code ALREADY_EXISTS. Must be at most 128 characters long. It cannot @@ -1539,10 +1507,10 @@ public final ReferenceImage createReferenceImage( * } *

* - * @param parent Resource name of the product in which to create the reference image. + * @param parent Required. Resource name of the product in which to create the reference image. *

Format is `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`. - * @param referenceImage The reference image to create. If an image ID is specified, it is - * ignored. + * @param referenceImage Required. The reference image to create. If an image ID is specified, it + * is ignored. * @param referenceImageId A user-supplied resource id for the ReferenceImage to be added. If set, * the server will attempt to use this value as the resource id. If it is already in use, an * error is returned with code ALREADY_EXISTS. Must be at most 128 characters long. It cannot @@ -1656,10 +1624,6 @@ public final ReferenceImage createReferenceImage(CreateReferenceImageRequest req * *

The actual image files are not deleted from Google Cloud Storage. * - *

Possible errors: - * - *

* Returns NOT_FOUND if the reference image does not exist. - * *

Sample code: * *


@@ -1669,7 +1633,7 @@ public final ReferenceImage createReferenceImage(CreateReferenceImageRequest req
    * }
    * 
* - * @param name The resource name of the reference image to delete. + * @param name Required. The resource name of the reference image to delete. *

Format is: *

`projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -1692,10 +1656,6 @@ public final void deleteReferenceImage(ReferenceImageName name) { * *

The actual image files are not deleted from Google Cloud Storage. * - *

Possible errors: - * - *

* Returns NOT_FOUND if the reference image does not exist. - * *

Sample code: * *


@@ -1705,7 +1665,7 @@ public final void deleteReferenceImage(ReferenceImageName name) {
    * }
    * 
* - * @param name The resource name of the reference image to delete. + * @param name Required. The resource name of the reference image to delete. *

Format is: *

`projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -1726,10 +1686,6 @@ public final void deleteReferenceImage(String name) { * *

The actual image files are not deleted from Google Cloud Storage. * - *

Possible errors: - * - *

* Returns NOT_FOUND if the reference image does not exist. - * *

Sample code: * *


@@ -1758,10 +1714,6 @@ public final void deleteReferenceImage(DeleteReferenceImageRequest request) {
    *
    * 

The actual image files are not deleted from Google Cloud Storage. * - *

Possible errors: - * - *

* Returns NOT_FOUND if the reference image does not exist. - * *

Sample code: * *


@@ -1800,7 +1752,7 @@ public final UnaryCallable deleteReferenceIm
    * }
    * 
* - * @param parent Resource name of the product containing the reference images. + * @param parent Required. Resource name of the product containing the reference images. *

Format is `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1832,7 +1784,7 @@ public final ListReferenceImagesPagedResponse listReferenceImages(ProductName pa * } *

* - * @param parent Resource name of the product containing the reference images. + * @param parent Required. Resource name of the product containing the reference images. *

Format is `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1957,7 +1909,7 @@ public final ListReferenceImagesPagedResponse listReferenceImages( * } * * - * @param name The resource name of the ReferenceImage to get. + * @param name Required. The resource name of the ReferenceImage to get. *

Format is: *

`projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -1988,7 +1940,7 @@ public final ReferenceImage getReferenceImage(ReferenceImageName name) { * } * * - * @param name The resource name of the ReferenceImage to get. + * @param name Required. The resource name of the ReferenceImage to get. *

Format is: *

`projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -2073,9 +2025,9 @@ public final UnaryCallable getReferenc * } * * - * @param name The resource name for the ProductSet to modify. + * @param name Required. The resource name for the ProductSet to modify. *

Format is: `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID` - * @param product The resource name for the Product to be added to this ProductSet. + * @param product Required. The resource name for the Product to be added to this ProductSet. *

Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -2110,9 +2062,9 @@ public final void addProductToProductSet(ProductSetName name, String product) { * } * * - * @param name The resource name for the ProductSet to modify. + * @param name Required. The resource name for the ProductSet to modify. *

Format is: `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID` - * @param product The resource name for the Product to be added to this ProductSet. + * @param product Required. The resource name for the Product to be added to this ProductSet. *

Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -2191,10 +2143,6 @@ public final void addProductToProductSet(AddProductToProductSetRequest request) /** * Removes a Product from the specified ProductSet. * - *

Possible errors: - * - *

* Returns NOT_FOUND If the Product is not found under the ProductSet. - * *

Sample code: * *


@@ -2205,9 +2153,9 @@ public final void addProductToProductSet(AddProductToProductSetRequest request)
    * }
    * 
* - * @param name The resource name for the ProductSet to modify. + * @param name Required. The resource name for the ProductSet to modify. *

Format is: `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID` - * @param product The resource name for the Product to be removed from this ProductSet. + * @param product Required. The resource name for the Product to be removed from this ProductSet. *

Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -2225,10 +2173,6 @@ public final void removeProductFromProductSet(ProductSetName name, String produc /** * Removes a Product from the specified ProductSet. * - *

Possible errors: - * - *

* Returns NOT_FOUND If the Product is not found under the ProductSet. - * *

Sample code: * *


@@ -2239,9 +2183,9 @@ public final void removeProductFromProductSet(ProductSetName name, String produc
    * }
    * 
* - * @param name The resource name for the ProductSet to modify. + * @param name Required. The resource name for the ProductSet to modify. *

Format is: `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID` - * @param product The resource name for the Product to be removed from this ProductSet. + * @param product Required. The resource name for the Product to be removed from this ProductSet. *

Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -2256,10 +2200,6 @@ public final void removeProductFromProductSet(String name, String product) { /** * Removes a Product from the specified ProductSet. * - *

Possible errors: - * - *

* Returns NOT_FOUND If the Product is not found under the ProductSet. - * *

Sample code: * *


@@ -2285,10 +2225,6 @@ public final void removeProductFromProductSet(RemoveProductFromProductSetRequest
   /**
    * Removes a Product from the specified ProductSet.
    *
-   * 

Possible errors: - * - *

* Returns NOT_FOUND If the Product is not found under the ProductSet. - * *

Sample code: * *


@@ -2330,7 +2266,7 @@ public final void removeProductFromProductSet(RemoveProductFromProductSetRequest
    * }
    * 
* - * @param name The ProductSet resource for which to retrieve Products. + * @param name Required. The ProductSet resource for which to retrieve Products. *

Format is: `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -2362,7 +2298,7 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet(Prod * } *

* - * @param name The ProductSet resource for which to retrieve Products. + * @param name Required. The ProductSet resource for which to retrieve Products. *

Format is: `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -2494,9 +2430,9 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet( * } * * - * @param parent The project in which the ProductSets should be imported. + * @param parent Required. The project in which the ProductSets should be imported. *

Format is `projects/PROJECT_ID/locations/LOC_ID`. - * @param inputConfig The input content for the list of requests. + * @param inputConfig Required. The input content for the list of requests. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi( @@ -2536,9 +2472,9 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet( * } * * - * @param parent The project in which the ProductSets should be imported. + * @param parent Required. The project in which the ProductSets should be imported. *

Format is `projects/PROJECT_ID/locations/LOC_ID`. - * @param inputConfig The input content for the list of requests. + * @param inputConfig Required. The input content for the list of requests. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi( @@ -2660,6 +2596,87 @@ public final UnaryCallable importProductSet return stub.importProductSetsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Asynchronous API to delete all Products in a ProductSet or all Products that are in no + * ProductSet. + * + *

If a Product is a member of the specified ProductSet in addition to other ProductSets, the + * Product will still be deleted. + * + *

It is recommended to not delete the specified ProductSet until after this operation has + * completed. It is also recommended to not add any of the Products involved in the batch delete + * to a new ProductSet while this operation is running because those Products may still end up + * deleted. + * + *

It's not possible to undo the PurgeProducts operation. Therefore, it is recommended to keep + * the csv files used in ImportProductSets (if that was how you originally built the Product Set) + * before starting PurgeProducts, in case you need to re-import the data after deletion. + * + *

If the plan is to purge all of the Products from a ProductSet and then re-use the empty + * ProductSet to re-import new Products into the empty ProductSet, you must wait until the + * PurgeProducts operation has finished for that ProductSet. + * + *

The [google.longrunning.Operation][google.longrunning.Operation] API can be used to keep + * track of the progress and results of the request. `Operation.metadata` contains + * `BatchOperationMetadata`. (progress) + * + *

Sample code: + * + *


+   * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
+   *   PurgeProductsRequest request = PurgeProductsRequest.newBuilder().build();
+   *   Operation response = productSearchClient.purgeProducts(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation purgeProducts(PurgeProductsRequest request) { + return purgeProductsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Asynchronous API to delete all Products in a ProductSet or all Products that are in no + * ProductSet. + * + *

If a Product is a member of the specified ProductSet in addition to other ProductSets, the + * Product will still be deleted. + * + *

It is recommended to not delete the specified ProductSet until after this operation has + * completed. It is also recommended to not add any of the Products involved in the batch delete + * to a new ProductSet while this operation is running because those Products may still end up + * deleted. + * + *

It's not possible to undo the PurgeProducts operation. Therefore, it is recommended to keep + * the csv files used in ImportProductSets (if that was how you originally built the Product Set) + * before starting PurgeProducts, in case you need to re-import the data after deletion. + * + *

If the plan is to purge all of the Products from a ProductSet and then re-use the empty + * ProductSet to re-import new Products into the empty ProductSet, you must wait until the + * PurgeProducts operation has finished for that ProductSet. + * + *

The [google.longrunning.Operation][google.longrunning.Operation] API can be used to keep + * track of the progress and results of the request. `Operation.metadata` contains + * `BatchOperationMetadata`. (progress) + * + *

Sample code: + * + *


+   * try (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
+   *   PurgeProductsRequest request = PurgeProductsRequest.newBuilder().build();
+   *   ApiFuture<Operation> future = productSearchClient.purgeProductsCallable().futureCall(request);
+   *   // Do something
+   *   Operation response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable purgeProductsCallable() { + return stub.purgeProductsCallable(); + } + @Override public final void close() { stub.close(); diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchSettings.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchSettings.java index 5a5c38ee0..46e999339 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchSettings.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchSettings.java @@ -179,6 +179,11 @@ public UnaryCallSettings importProductSetsS return ((ProductSearchStubSettings) getStubSettings()).importProductSetsOperationSettings(); } + /** Returns the object with the settings used for calls to purgeProducts. */ + public UnaryCallSettings purgeProductsSettings() { + return ((ProductSearchStubSettings) getStubSettings()).purgeProductsSettings(); + } + public static final ProductSearchSettings create(ProductSearchStubSettings stub) throws IOException { return new ProductSearchSettings.Builder(stub.toBuilder()).build(); @@ -395,6 +400,11 @@ public UnaryCallSettings.Builder deleteProductSetti return getStubSettingsBuilder().importProductSetsOperationSettings(); } + /** Returns the builder for the settings used for calls to purgeProducts. */ + public UnaryCallSettings.Builder purgeProductsSettings() { + return getStubSettingsBuilder().purgeProductsSettings(); + } + @Override public ProductSearchSettings build() throws IOException { return new ProductSearchSettings(this); diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcProductSearchStub.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcProductSearchStub.java index 35ef21837..cb28c06ff 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcProductSearchStub.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/GrpcProductSearchStub.java @@ -52,6 +52,7 @@ import com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse; import com.google.cloud.vision.v1p4beta1.Product; import com.google.cloud.vision.v1p4beta1.ProductSet; +import com.google.cloud.vision.v1p4beta1.PurgeProductsRequest; import com.google.cloud.vision.v1p4beta1.ReferenceImage; import com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest; import com.google.cloud.vision.v1p4beta1.UpdateProductRequest; @@ -243,6 +244,15 @@ public class GrpcProductSearchStub extends ProductSearchStub { ProtoUtils.marshaller(ImportProductSetsRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor + purgeProductsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vision.v1p4beta1.ProductSearch/PurgeProducts") + .setRequestMarshaller( + ProtoUtils.marshaller(PurgeProductsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -282,6 +292,7 @@ public class GrpcProductSearchStub extends ProductSearchStub { private final OperationCallable< ImportProductSetsRequest, ImportProductSetsResponse, BatchOperationMetadata> importProductSetsOperationCallable; + private final UnaryCallable purgeProductsCallable; private final GrpcStubCallableFactory callableFactory; @@ -565,6 +576,19 @@ public Map extract(ImportProductSetsRequest request) { } }) .build(); + GrpcCallSettings purgeProductsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(purgeProductsMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(PurgeProductsRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); this.createProductSetCallable = callableFactory.createUnaryCallable( @@ -658,6 +682,9 @@ public Map extract(ImportProductSetsRequest request) { settings.importProductSetsOperationSettings(), clientContext, this.operationsStub); + this.purgeProductsCallable = + callableFactory.createUnaryCallable( + purgeProductsTransportSettings, settings.purgeProductsSettings(), clientContext); backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); } @@ -768,6 +795,10 @@ public UnaryCallable importProductSetsCalla return importProductSetsCallable; } + public UnaryCallable purgeProductsCallable() { + return purgeProductsCallable; + } + @Override public final void close() { shutdown(); diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStub.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStub.java index 7e93d1b75..fb66f5498 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStub.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStub.java @@ -47,6 +47,7 @@ import com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse; import com.google.cloud.vision.v1p4beta1.Product; import com.google.cloud.vision.v1p4beta1.ProductSet; +import com.google.cloud.vision.v1p4beta1.PurgeProductsRequest; import com.google.cloud.vision.v1p4beta1.ReferenceImage; import com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest; import com.google.cloud.vision.v1p4beta1.UpdateProductRequest; @@ -175,6 +176,10 @@ public UnaryCallable importProductSetsCalla throw new UnsupportedOperationException("Not implemented: importProductSetsCallable()"); } + public UnaryCallable purgeProductsCallable() { + throw new UnsupportedOperationException("Not implemented: purgeProductsCallable()"); + } + @Override public abstract void close(); } diff --git a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStubSettings.java b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStubSettings.java index 3020e7b6b..3c906f738 100644 --- a/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStubSettings.java +++ b/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStubSettings.java @@ -69,6 +69,7 @@ import com.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse; import com.google.cloud.vision.v1p4beta1.Product; import com.google.cloud.vision.v1p4beta1.ProductSet; +import com.google.cloud.vision.v1p4beta1.PurgeProductsRequest; import com.google.cloud.vision.v1p4beta1.ReferenceImage; import com.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest; import com.google.cloud.vision.v1p4beta1.UpdateProductRequest; @@ -156,6 +157,7 @@ public class ProductSearchStubSettings extends StubSettings importProductSetsOperationSettings; + private final UnaryCallSettings purgeProductsSettings; /** Returns the object with the settings used for calls to createProductSet. */ public UnaryCallSettings createProductSetSettings() { @@ -266,6 +268,11 @@ public UnaryCallSettings importProductSetsS return importProductSetsOperationSettings; } + /** Returns the object with the settings used for calls to purgeProducts. */ + public UnaryCallSettings purgeProductsSettings() { + return purgeProductsSettings; + } + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public ProductSearchStub createStub() throws IOException { if (getTransportChannelProvider() @@ -356,6 +363,7 @@ protected ProductSearchStubSettings(Builder settingsBuilder) throws IOException importProductSetsSettings = settingsBuilder.importProductSetsSettings().build(); importProductSetsOperationSettings = settingsBuilder.importProductSetsOperationSettings().build(); + purgeProductsSettings = settingsBuilder.purgeProductsSettings().build(); } private static final PagedListDescriptor< @@ -643,6 +651,7 @@ public static class Builder extends StubSettings.Builder importProductSetsOperationSettings; + private final UnaryCallSettings.Builder purgeProductsSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -725,6 +734,8 @@ protected Builder(ClientContext clientContext) { importProductSetsOperationSettings = OperationCallSettings.newBuilder(); + purgeProductsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + unaryMethodSettingsBuilders = ImmutableList.>of( createProductSetSettings, @@ -744,7 +755,8 @@ protected Builder(ClientContext clientContext) { addProductToProductSetSettings, removeProductFromProductSetSettings, listProductsInProductSetSettings, - importProductSetsSettings); + importProductSetsSettings, + purgeProductsSettings); initDefaults(this); } @@ -849,6 +861,11 @@ private static Builder initDefaults(Builder builder) { .importProductSetsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .purgeProductsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); builder .importProductSetsOperationSettings() .setInitialCallSettings( @@ -900,6 +917,7 @@ protected Builder(ProductSearchStubSettings settings) { listProductsInProductSetSettings = settings.listProductsInProductSetSettings.toBuilder(); importProductSetsSettings = settings.importProductSetsSettings.toBuilder(); importProductSetsOperationSettings = settings.importProductSetsOperationSettings.toBuilder(); + purgeProductsSettings = settings.purgeProductsSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -920,7 +938,8 @@ protected Builder(ProductSearchStubSettings settings) { addProductToProductSetSettings, removeProductFromProductSetSettings, listProductsInProductSetSettings, - importProductSetsSettings); + importProductSetsSettings, + purgeProductsSettings); } // NEXT_MAJOR_VER: remove 'throws Exception' @@ -1058,6 +1077,11 @@ public UnaryCallSettings.Builder deleteProductSetti return importProductSetsOperationSettings; } + /** Returns the builder for the settings used for calls to purgeProducts. */ + public UnaryCallSettings.Builder purgeProductsSettings() { + return purgeProductsSettings; + } + @Override public ProductSearchStubSettings build() throws IOException { return new ProductSearchStubSettings(this); diff --git a/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorSmokeTest.java b/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorSmokeTest.java index 06fed5864..88c2ba2c0 100644 --- a/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorSmokeTest.java +++ b/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorSmokeTest.java @@ -46,7 +46,8 @@ public static void main(String args[]) { public static void executeNoCatch() throws Exception { try (ImageAnnotatorClient client = ImageAnnotatorClient.create()) { - String gcsImageUri = "gs://gapic-toolkit/President_Barack_Obama.jpg"; + String gcsImageUri = + "gs://cloud-samples-data/vision/face_detection/celebrity_recognition/sergey.jpg"; ImageSource source = ImageSource.newBuilder().setGcsImageUri(gcsImageUri).build(); Image image = Image.newBuilder().setSource(source).build(); Feature.Type type = Feature.Type.FACE_DETECTION; diff --git a/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorSmokeTest.java b/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorSmokeTest.java index 9239b3e3b..cef6cd342 100644 --- a/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorSmokeTest.java +++ b/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorSmokeTest.java @@ -46,7 +46,8 @@ public static void main(String args[]) { public static void executeNoCatch() throws Exception { try (ImageAnnotatorClient client = ImageAnnotatorClient.create()) { - String gcsImageUri = "gs://gapic-toolkit/President_Barack_Obama.jpg"; + String gcsImageUri = + "gs://cloud-samples-data/vision/face_detection/celebrity_recognition/sergey.jpg"; ImageSource source = ImageSource.newBuilder().setGcsImageUri(gcsImageUri).build(); Image image = Image.newBuilder().setSource(source).build(); Feature.Type type = Feature.Type.FACE_DETECTION; diff --git a/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorSmokeTest.java b/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorSmokeTest.java index 669bb0ae1..20a4f9e9b 100644 --- a/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorSmokeTest.java +++ b/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorSmokeTest.java @@ -46,7 +46,8 @@ public static void main(String args[]) { public static void executeNoCatch() throws Exception { try (ImageAnnotatorClient client = ImageAnnotatorClient.create()) { - String gcsImageUri = "gs://gapic-toolkit/President_Barack_Obama.jpg"; + String gcsImageUri = + "gs://cloud-samples-data/vision/face_detection/celebrity_recognition/sergey.jpg"; ImageSource source = ImageSource.newBuilder().setGcsImageUri(gcsImageUri).build(); Image image = Image.newBuilder().setSource(source).build(); Feature.Type type = Feature.Type.FACE_DETECTION; diff --git a/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/MockProductSearchImpl.java b/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/MockProductSearchImpl.java index db534f129..b84392efb 100644 --- a/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/MockProductSearchImpl.java +++ b/google-cloud-vision/src/test/java/com/google/cloud/vision/v1p4beta1/MockProductSearchImpl.java @@ -327,4 +327,19 @@ public void importProductSets( responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } } + + @Override + public void purgeProducts( + PurgeProductsRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext((Operation) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } } diff --git a/grpc-google-cloud-vision-v1/pom.xml b/grpc-google-cloud-vision-v1/pom.xml index 8b2d570e0..9910c6100 100644 --- a/grpc-google-cloud-vision-v1/pom.xml +++ b/grpc-google-cloud-vision-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vision-v1 - 1.80.1 + 1.81.0 grpc-google-cloud-vision-v1 GRPC library for grpc-google-cloud-vision-v1 com.google.cloud google-cloud-vision-parent - 1.98.1 + 1.99.0 diff --git a/grpc-google-cloud-vision-v1p1beta1/pom.xml b/grpc-google-cloud-vision-v1p1beta1/pom.xml index ba75bcf99..6e4c19bf5 100644 --- a/grpc-google-cloud-vision-v1p1beta1/pom.xml +++ b/grpc-google-cloud-vision-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vision-v1p1beta1 - 0.81.1 + 0.82.0 grpc-google-cloud-vision-v1p1beta1 GRPC library for grpc-google-cloud-vision-v1p1beta1 com.google.cloud google-cloud-vision-parent - 1.98.1 + 1.99.0 diff --git a/grpc-google-cloud-vision-v1p2beta1/pom.xml b/grpc-google-cloud-vision-v1p2beta1/pom.xml index 5c00b1263..95b5d350c 100644 --- a/grpc-google-cloud-vision-v1p2beta1/pom.xml +++ b/grpc-google-cloud-vision-v1p2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vision-v1p2beta1 - 1.80.1 + 1.81.0 grpc-google-cloud-vision-v1p2beta1 GRPC library for grpc-google-cloud-vision-v1p2beta1 com.google.cloud google-cloud-vision-parent - 1.98.1 + 1.99.0 diff --git a/grpc-google-cloud-vision-v1p3beta1/pom.xml b/grpc-google-cloud-vision-v1p3beta1/pom.xml index 6141bed0b..5b36d20a1 100644 --- a/grpc-google-cloud-vision-v1p3beta1/pom.xml +++ b/grpc-google-cloud-vision-v1p3beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vision-v1p3beta1 - 0.81.1 + 0.82.0 grpc-google-cloud-vision-v1p3beta1 GRPC library for grpc-google-cloud-vision-v1p3beta1 com.google.cloud google-cloud-vision-parent - 1.98.1 + 1.99.0 diff --git a/grpc-google-cloud-vision-v1p4beta1/pom.xml b/grpc-google-cloud-vision-v1p4beta1/pom.xml index 8905b95f9..e78008609 100644 --- a/grpc-google-cloud-vision-v1p4beta1/pom.xml +++ b/grpc-google-cloud-vision-v1p4beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vision-v1p4beta1 - 0.81.1 + 0.82.0 grpc-google-cloud-vision-v1p4beta1 GRPC library for grpc-google-cloud-vision-v1p4beta1 com.google.cloud google-cloud-vision-parent - 1.98.1 + 1.99.0 diff --git a/grpc-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchGrpc.java b/grpc-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchGrpc.java index 3c1e1dd70..e57230498 100644 --- a/grpc-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchGrpc.java +++ b/grpc-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchGrpc.java @@ -1104,6 +1104,60 @@ private ProductSearchGrpc() {} return getImportProductSetsMethod; } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getPurgeProductsMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.vision.v1p4beta1.PurgeProductsRequest, com.google.longrunning.Operation> + METHOD_PURGE_PRODUCTS = getPurgeProductsMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vision.v1p4beta1.PurgeProductsRequest, com.google.longrunning.Operation> + getPurgeProductsMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.vision.v1p4beta1.PurgeProductsRequest, com.google.longrunning.Operation> + getPurgeProductsMethod() { + return getPurgeProductsMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.vision.v1p4beta1.PurgeProductsRequest, com.google.longrunning.Operation> + getPurgeProductsMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.vision.v1p4beta1.PurgeProductsRequest, + com.google.longrunning.Operation> + getPurgeProductsMethod; + if ((getPurgeProductsMethod = ProductSearchGrpc.getPurgeProductsMethod) == null) { + synchronized (ProductSearchGrpc.class) { + if ((getPurgeProductsMethod = ProductSearchGrpc.getPurgeProductsMethod) == null) { + ProductSearchGrpc.getPurgeProductsMethod = + getPurgeProductsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.vision.v1p4beta1.ProductSearch", "PurgeProducts")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vision.v1p4beta1.PurgeProductsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ProductSearchMethodDescriptorSupplier("PurgeProducts")) + .build(); + } + } + } + return getPurgeProductsMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static ProductSearchStub newStub(io.grpc.Channel channel) { return new ProductSearchStub(channel); @@ -1219,8 +1273,6 @@ public void updateProductSet( * Permanently deletes a ProductSet. Products and ReferenceImages in the * ProductSet are not deleted. * The actual image files are not deleted from Google Cloud Storage. - * Possible errors: - * * Returns NOT_FOUND if the ProductSet does not exist. * */ public void deleteProductSet( @@ -1310,8 +1362,6 @@ public void updateProduct( * Metadata of the product and all its images will be deleted right away, but * search queries against ProductSets containing the product may still work * until all related caches are refreshed. - * Possible errors: - * * Returns NOT_FOUND if the product does not exist. * */ public void deleteProduct( @@ -1357,8 +1407,6 @@ public void createReferenceImage( * against ProductSets containing the image may still work until all related * caches are refreshed. * The actual image files are not deleted from Google Cloud Storage. - * Possible errors: - * * Returns NOT_FOUND if the reference image does not exist. * */ public void deleteReferenceImage( @@ -1423,8 +1471,6 @@ public void addProductToProductSet( * *
      * Removes a Product from the specified ProductSet.
-     * Possible errors:
-     * * Returns NOT_FOUND If the Product is not found under the ProductSet.
      * 
*/ public void removeProductFromProductSet( @@ -1473,6 +1519,37 @@ public void importProductSets( asyncUnimplementedUnaryCall(getImportProductSetsMethodHelper(), responseObserver); } + /** + * + * + *
+     * Asynchronous API to delete all Products in a ProductSet or all Products
+     * that are in no ProductSet.
+     * If a Product is a member of the specified ProductSet in addition to other
+     * ProductSets, the Product will still be deleted.
+     * It is recommended to not delete the specified ProductSet until after this
+     * operation has completed. It is also recommended to not add any of the
+     * Products involved in the batch delete to a new ProductSet while this
+     * operation is running because those Products may still end up deleted.
+     * It's not possible to undo the PurgeProducts operation. Therefore, it is
+     * recommended to keep the csv files used in ImportProductSets (if that was
+     * how you originally built the Product Set) before starting PurgeProducts, in
+     * case you need to re-import the data after deletion.
+     * If the plan is to purge all of the Products from a ProductSet and then
+     * re-use the empty ProductSet to re-import new Products into the empty
+     * ProductSet, you must wait until the PurgeProducts operation has finished
+     * for that ProductSet.
+     * The [google.longrunning.Operation][google.longrunning.Operation] API can be
+     * used to keep track of the progress and results of the request.
+     * `Operation.metadata` contains `BatchOperationMetadata`. (progress)
+     * 
+ */ + public void purgeProducts( + com.google.cloud.vision.v1p4beta1.PurgeProductsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getPurgeProductsMethodHelper(), responseObserver); + } + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) @@ -1593,6 +1670,12 @@ public final io.grpc.ServerServiceDefinition bindService() { new MethodHandlers< com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest, com.google.longrunning.Operation>(this, METHODID_IMPORT_PRODUCT_SETS))) + .addMethod( + getPurgeProductsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vision.v1p4beta1.PurgeProductsRequest, + com.google.longrunning.Operation>(this, METHODID_PURGE_PRODUCTS))) .build(); } } @@ -1719,8 +1802,6 @@ public void updateProductSet( * Permanently deletes a ProductSet. Products and ReferenceImages in the * ProductSet are not deleted. * The actual image files are not deleted from Google Cloud Storage. - * Possible errors: - * * Returns NOT_FOUND if the ProductSet does not exist. * */ public void deleteProductSet( @@ -1825,8 +1906,6 @@ public void updateProduct( * Metadata of the product and all its images will be deleted right away, but * search queries against ProductSets containing the product may still work * until all related caches are refreshed. - * Possible errors: - * * Returns NOT_FOUND if the product does not exist. * */ public void deleteProduct( @@ -1878,8 +1957,6 @@ public void createReferenceImage( * against ProductSets containing the image may still work until all related * caches are refreshed. * The actual image files are not deleted from Google Cloud Storage. - * Possible errors: - * * Returns NOT_FOUND if the reference image does not exist. * */ public void deleteReferenceImage( @@ -1956,8 +2033,6 @@ public void addProductToProductSet( * *
      * Removes a Product from the specified ProductSet.
-     * Possible errors:
-     * * Returns NOT_FOUND If the Product is not found under the ProductSet.
      * 
*/ public void removeProductFromProductSet( @@ -2014,6 +2089,40 @@ public void importProductSets( request, responseObserver); } + + /** + * + * + *
+     * Asynchronous API to delete all Products in a ProductSet or all Products
+     * that are in no ProductSet.
+     * If a Product is a member of the specified ProductSet in addition to other
+     * ProductSets, the Product will still be deleted.
+     * It is recommended to not delete the specified ProductSet until after this
+     * operation has completed. It is also recommended to not add any of the
+     * Products involved in the batch delete to a new ProductSet while this
+     * operation is running because those Products may still end up deleted.
+     * It's not possible to undo the PurgeProducts operation. Therefore, it is
+     * recommended to keep the csv files used in ImportProductSets (if that was
+     * how you originally built the Product Set) before starting PurgeProducts, in
+     * case you need to re-import the data after deletion.
+     * If the plan is to purge all of the Products from a ProductSet and then
+     * re-use the empty ProductSet to re-import new Products into the empty
+     * ProductSet, you must wait until the PurgeProducts operation has finished
+     * for that ProductSet.
+     * The [google.longrunning.Operation][google.longrunning.Operation] API can be
+     * used to keep track of the progress and results of the request.
+     * `Operation.metadata` contains `BatchOperationMetadata`. (progress)
+     * 
+ */ + public void purgeProducts( + com.google.cloud.vision.v1p4beta1.PurgeProductsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getPurgeProductsMethodHelper(), getCallOptions()), + request, + responseObserver); + } } /** @@ -2124,8 +2233,6 @@ public com.google.cloud.vision.v1p4beta1.ProductSet updateProductSet( * Permanently deletes a ProductSet. Products and ReferenceImages in the * ProductSet are not deleted. * The actual image files are not deleted from Google Cloud Storage. - * Possible errors: - * * Returns NOT_FOUND if the ProductSet does not exist. * */ public com.google.protobuf.Empty deleteProductSet( @@ -2214,8 +2321,6 @@ public com.google.cloud.vision.v1p4beta1.Product updateProduct( * Metadata of the product and all its images will be deleted right away, but * search queries against ProductSets containing the product may still work * until all related caches are refreshed. - * Possible errors: - * * Returns NOT_FOUND if the product does not exist. * */ public com.google.protobuf.Empty deleteProduct( @@ -2260,8 +2365,6 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImage createReferenceImage( * against ProductSets containing the image may still work until all related * caches are refreshed. * The actual image files are not deleted from Google Cloud Storage. - * Possible errors: - * * Returns NOT_FOUND if the reference image does not exist. * */ public com.google.protobuf.Empty deleteReferenceImage( @@ -2324,8 +2427,6 @@ public com.google.protobuf.Empty addProductToProductSet( * *
      * Removes a Product from the specified ProductSet.
-     * Possible errors:
-     * * Returns NOT_FOUND If the Product is not found under the ProductSet.
      * 
*/ public com.google.protobuf.Empty removeProductFromProductSet( @@ -2372,6 +2473,37 @@ public com.google.longrunning.Operation importProductSets( return blockingUnaryCall( getChannel(), getImportProductSetsMethodHelper(), getCallOptions(), request); } + + /** + * + * + *
+     * Asynchronous API to delete all Products in a ProductSet or all Products
+     * that are in no ProductSet.
+     * If a Product is a member of the specified ProductSet in addition to other
+     * ProductSets, the Product will still be deleted.
+     * It is recommended to not delete the specified ProductSet until after this
+     * operation has completed. It is also recommended to not add any of the
+     * Products involved in the batch delete to a new ProductSet while this
+     * operation is running because those Products may still end up deleted.
+     * It's not possible to undo the PurgeProducts operation. Therefore, it is
+     * recommended to keep the csv files used in ImportProductSets (if that was
+     * how you originally built the Product Set) before starting PurgeProducts, in
+     * case you need to re-import the data after deletion.
+     * If the plan is to purge all of the Products from a ProductSet and then
+     * re-use the empty ProductSet to re-import new Products into the empty
+     * ProductSet, you must wait until the PurgeProducts operation has finished
+     * for that ProductSet.
+     * The [google.longrunning.Operation][google.longrunning.Operation] API can be
+     * used to keep track of the progress and results of the request.
+     * `Operation.metadata` contains `BatchOperationMetadata`. (progress)
+     * 
+ */ + public com.google.longrunning.Operation purgeProducts( + com.google.cloud.vision.v1p4beta1.PurgeProductsRequest request) { + return blockingUnaryCall( + getChannel(), getPurgeProductsMethodHelper(), getCallOptions(), request); + } } /** @@ -2486,8 +2618,6 @@ protected ProductSearchFutureStub build( * Permanently deletes a ProductSet. Products and ReferenceImages in the * ProductSet are not deleted. * The actual image files are not deleted from Google Cloud Storage. - * Possible errors: - * * Returns NOT_FOUND if the ProductSet does not exist. * */ public com.google.common.util.concurrent.ListenableFuture @@ -2580,8 +2710,6 @@ protected ProductSearchFutureStub build( * Metadata of the product and all its images will be deleted right away, but * search queries against ProductSets containing the product may still work * until all related caches are refreshed. - * Possible errors: - * * Returns NOT_FOUND if the product does not exist. * */ public com.google.common.util.concurrent.ListenableFuture @@ -2628,8 +2756,6 @@ protected ProductSearchFutureStub build( * against ProductSets containing the image may still work until all related * caches are refreshed. * The actual image files are not deleted from Google Cloud Storage. - * Possible errors: - * * Returns NOT_FOUND if the reference image does not exist. * */ public com.google.common.util.concurrent.ListenableFuture @@ -2696,8 +2822,6 @@ protected ProductSearchFutureStub build( * *
      * Removes a Product from the specified ProductSet.
-     * Possible errors:
-     * * Returns NOT_FOUND If the Product is not found under the ProductSet.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture @@ -2748,6 +2872,37 @@ protected ProductSearchFutureStub build( return futureUnaryCall( getChannel().newCall(getImportProductSetsMethodHelper(), getCallOptions()), request); } + + /** + * + * + *
+     * Asynchronous API to delete all Products in a ProductSet or all Products
+     * that are in no ProductSet.
+     * If a Product is a member of the specified ProductSet in addition to other
+     * ProductSets, the Product will still be deleted.
+     * It is recommended to not delete the specified ProductSet until after this
+     * operation has completed. It is also recommended to not add any of the
+     * Products involved in the batch delete to a new ProductSet while this
+     * operation is running because those Products may still end up deleted.
+     * It's not possible to undo the PurgeProducts operation. Therefore, it is
+     * recommended to keep the csv files used in ImportProductSets (if that was
+     * how you originally built the Product Set) before starting PurgeProducts, in
+     * case you need to re-import the data after deletion.
+     * If the plan is to purge all of the Products from a ProductSet and then
+     * re-use the empty ProductSet to re-import new Products into the empty
+     * ProductSet, you must wait until the PurgeProducts operation has finished
+     * for that ProductSet.
+     * The [google.longrunning.Operation][google.longrunning.Operation] API can be
+     * used to keep track of the progress and results of the request.
+     * `Operation.metadata` contains `BatchOperationMetadata`. (progress)
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + purgeProducts(com.google.cloud.vision.v1p4beta1.PurgeProductsRequest request) { + return futureUnaryCall( + getChannel().newCall(getPurgeProductsMethodHelper(), getCallOptions()), request); + } } private static final int METHODID_CREATE_PRODUCT_SET = 0; @@ -2768,6 +2923,7 @@ protected ProductSearchFutureStub build( private static final int METHODID_REMOVE_PRODUCT_FROM_PRODUCT_SET = 15; private static final int METHODID_LIST_PRODUCTS_IN_PRODUCT_SET = 16; private static final int METHODID_IMPORT_PRODUCT_SETS = 17; + private static final int METHODID_PURGE_PRODUCTS = 18; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -2891,6 +3047,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.vision.v1p4beta1.ImportProductSetsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_PURGE_PRODUCTS: + serviceImpl.purgeProducts( + (com.google.cloud.vision.v1p4beta1.PurgeProductsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -2973,6 +3134,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getRemoveProductFromProductSetMethodHelper()) .addMethod(getListProductsInProductSetMethodHelper()) .addMethod(getImportProductSetsMethodHelper()) + .addMethod(getPurgeProductsMethodHelper()) .build(); } } diff --git a/pom.xml b/pom.xml index 5016053b5..6399029de 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-vision-parent pom - 1.98.1 + 1.99.0 Google Cloud Vision Parent https://github.com/googleapis/java-vision @@ -81,57 +81,57 @@ com.google.api.grpc proto-google-cloud-vision-v1p4beta1 - 0.81.1 + 0.82.0 com.google.api.grpc proto-google-cloud-vision-v1 - 1.80.1 + 1.81.0 com.google.api.grpc proto-google-cloud-vision-v1p1beta1 - 0.81.1 + 0.82.0 com.google.api.grpc proto-google-cloud-vision-v1p3beta1 - 0.81.1 + 0.82.0 com.google.api.grpc proto-google-cloud-vision-v1p2beta1 - 1.80.1 + 1.81.0 com.google.api.grpc grpc-google-cloud-vision-v1p3beta1 - 0.81.1 + 0.82.0 com.google.api.grpc grpc-google-cloud-vision-v1p1beta1 - 0.81.1 + 0.82.0 com.google.api.grpc grpc-google-cloud-vision-v1p4beta1 - 0.81.1 + 0.82.0 com.google.api.grpc grpc-google-cloud-vision-v1p2beta1 - 1.80.1 + 1.81.0 com.google.api.grpc grpc-google-cloud-vision-v1 - 1.80.1 + 1.81.0 com.google.cloud google-cloud-vision - 1.98.1 + 1.99.0 diff --git a/proto-google-cloud-vision-v1/pom.xml b/proto-google-cloud-vision-v1/pom.xml index b417fc5bf..5bac6cad0 100644 --- a/proto-google-cloud-vision-v1/pom.xml +++ b/proto-google-cloud-vision-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vision-v1 - 1.80.1 + 1.81.0 proto-google-cloud-vision-v1 PROTO library for proto-google-cloud-vision-v1 com.google.cloud google-cloud-vision-parent - 1.98.1 + 1.99.0 diff --git a/proto-google-cloud-vision-v1p1beta1/pom.xml b/proto-google-cloud-vision-v1p1beta1/pom.xml index f3db19871..dbef4c04f 100644 --- a/proto-google-cloud-vision-v1p1beta1/pom.xml +++ b/proto-google-cloud-vision-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vision-v1p1beta1 - 0.81.1 + 0.82.0 proto-google-cloud-vision-v1p1beta1 PROTO library for proto-google-cloud-vision-v1p1beta1 com.google.cloud google-cloud-vision-parent - 1.98.1 + 1.99.0 diff --git a/proto-google-cloud-vision-v1p2beta1/pom.xml b/proto-google-cloud-vision-v1p2beta1/pom.xml index fa3d5f65b..1739c547d 100644 --- a/proto-google-cloud-vision-v1p2beta1/pom.xml +++ b/proto-google-cloud-vision-v1p2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vision-v1p2beta1 - 1.80.1 + 1.81.0 proto-google-cloud-vision-v1p2beta1 PROTO library for proto-google-cloud-vision-v1p2beta1 com.google.cloud google-cloud-vision-parent - 1.98.1 + 1.99.0 diff --git a/proto-google-cloud-vision-v1p3beta1/pom.xml b/proto-google-cloud-vision-v1p3beta1/pom.xml index 59310cce0..0233cfce0 100644 --- a/proto-google-cloud-vision-v1p3beta1/pom.xml +++ b/proto-google-cloud-vision-v1p3beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vision-v1p3beta1 - 0.81.1 + 0.82.0 proto-google-cloud-vision-v1p3beta1 PROTO library for proto-google-cloud-vision-v1p3beta1 com.google.cloud google-cloud-vision-parent - 1.98.1 + 1.99.0 diff --git a/proto-google-cloud-vision-v1p4beta1/clirr-ignored-differences.xml b/proto-google-cloud-vision-v1p4beta1/clirr-ignored-differences.xml new file mode 100644 index 000000000..9f1beabef --- /dev/null +++ b/proto-google-cloud-vision-v1p4beta1/clirr-ignored-differences.xml @@ -0,0 +1,19 @@ + + + + + 7012 + com/google/cloud/vision/v1p4beta1/*OrBuilder + * get*(*) + + + 7012 + com/google/cloud/vision/v1p4beta1/*OrBuilder + boolean contains*(*) + + + 7012 + com/google/cloud/vision/v1p4beta1/*OrBuilder + boolean has*(*) + + diff --git a/proto-google-cloud-vision-v1p4beta1/pom.xml b/proto-google-cloud-vision-v1p4beta1/pom.xml index cb98993e7..a173919fe 100644 --- a/proto-google-cloud-vision-v1p4beta1/pom.xml +++ b/proto-google-cloud-vision-v1p4beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vision-v1p4beta1 - 0.81.1 + 0.82.0 proto-google-cloud-vision-v1p4beta1 PROTO library for proto-google-cloud-vision-v1p4beta1 com.google.cloud google-cloud-vision-parent - 1.98.1 + 1.99.0 diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AddProductToProductSetRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AddProductToProductSetRequest.java index b71c62f15..330951082 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AddProductToProductSetRequest.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AddProductToProductSetRequest.java @@ -120,12 +120,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The resource name for the ProductSet to modify.
+   * Required. The resource name for the ProductSet to modify.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -142,12 +144,14 @@ public java.lang.String getName() { * * *
-   * The resource name for the ProductSet to modify.
+   * Required. The resource name for the ProductSet to modify.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -167,12 +171,14 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * The resource name for the Product to be added to this ProductSet.
+   * Required. The resource name for the Product to be added to this ProductSet.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * string product = 2; + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getProduct() { java.lang.Object ref = product_; @@ -189,12 +195,14 @@ public java.lang.String getProduct() { * * *
-   * The resource name for the Product to be added to this ProductSet.
+   * Required. The resource name for the Product to be added to this ProductSet.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * string product = 2; + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getProductBytes() { java.lang.Object ref = product_; @@ -552,12 +560,14 @@ public Builder mergeFrom( * * *
-     * The resource name for the ProductSet to modify.
+     * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -574,12 +584,14 @@ public java.lang.String getName() { * * *
-     * The resource name for the ProductSet to modify.
+     * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -596,12 +608,14 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * The resource name for the ProductSet to modify.
+     * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setName(java.lang.String value) { if (value == null) { @@ -616,12 +630,14 @@ public Builder setName(java.lang.String value) { * * *
-     * The resource name for the ProductSet to modify.
+     * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder clearName() { @@ -633,12 +649,14 @@ public Builder clearName() { * * *
-     * The resource name for the ProductSet to modify.
+     * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -656,12 +674,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * The resource name for the Product to be added to this ProductSet.
+     * Required. The resource name for the Product to be added to this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string product = 2; + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getProduct() { java.lang.Object ref = product_; @@ -678,12 +698,14 @@ public java.lang.String getProduct() { * * *
-     * The resource name for the Product to be added to this ProductSet.
+     * Required. The resource name for the Product to be added to this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string product = 2; + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getProductBytes() { java.lang.Object ref = product_; @@ -700,12 +722,14 @@ public com.google.protobuf.ByteString getProductBytes() { * * *
-     * The resource name for the Product to be added to this ProductSet.
+     * Required. The resource name for the Product to be added to this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string product = 2; + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setProduct(java.lang.String value) { if (value == null) { @@ -720,12 +744,14 @@ public Builder setProduct(java.lang.String value) { * * *
-     * The resource name for the Product to be added to this ProductSet.
+     * Required. The resource name for the Product to be added to this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string product = 2; + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder clearProduct() { @@ -737,12 +763,14 @@ public Builder clearProduct() { * * *
-     * The resource name for the Product to be added to this ProductSet.
+     * Required. The resource name for the Product to be added to this ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string product = 2; + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setProductBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AddProductToProductSetRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AddProductToProductSetRequestOrBuilder.java index 7567caf4d..e27e4a652 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AddProductToProductSetRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AddProductToProductSetRequestOrBuilder.java @@ -27,24 +27,28 @@ public interface AddProductToProductSetRequestOrBuilder * * *
-   * The resource name for the ProductSet to modify.
+   * Required. The resource name for the ProductSet to modify.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ java.lang.String getName(); /** * * *
-   * The resource name for the ProductSet to modify.
+   * Required. The resource name for the ProductSet to modify.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ com.google.protobuf.ByteString getNameBytes(); @@ -52,24 +56,28 @@ public interface AddProductToProductSetRequestOrBuilder * * *
-   * The resource name for the Product to be added to this ProductSet.
+   * Required. The resource name for the Product to be added to this ProductSet.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * string product = 2; + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ java.lang.String getProduct(); /** * * *
-   * The resource name for the Product to be added to this ProductSet.
+   * Required. The resource name for the Product to be added to this ProductSet.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * string product = 2; + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ com.google.protobuf.ByteString getProductBytes(); } diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileResponse.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileResponse.java index 87ce5ef0b..6168b995c 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileResponse.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileResponse.java @@ -99,6 +99,20 @@ private AnnotateFileResponse( case 24: { totalPages_ = input.readInt32(); + break; + } + case 34: + { + com.google.rpc.Status.Builder subBuilder = null; + if (error_ != null) { + subBuilder = error_.toBuilder(); + } + error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(error_); + error_ = subBuilder.buildPartial(); + } + break; } default: @@ -186,7 +200,8 @@ public com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder getInputConfigOrBu * * *
-   * Individual responses to images found within the file.
+   * Individual responses to images found within the file. This field will be
+   * empty if the `error` field is set.
    * 
* * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2; @@ -199,7 +214,8 @@ public com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder getInputConfigOrBu * * *
-   * Individual responses to images found within the file.
+   * Individual responses to images found within the file. This field will be
+   * empty if the `error` field is set.
    * 
* * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2; @@ -212,7 +228,8 @@ public com.google.cloud.vision.v1p4beta1.InputConfigOrBuilder getInputConfigOrBu * * *
-   * Individual responses to images found within the file.
+   * Individual responses to images found within the file. This field will be
+   * empty if the `error` field is set.
    * 
* * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2; @@ -224,7 +241,8 @@ public int getResponsesCount() { * * *
-   * Individual responses to images found within the file.
+   * Individual responses to images found within the file. This field will be
+   * empty if the `error` field is set.
    * 
* * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2; @@ -236,7 +254,8 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponse getResponses(int * * *
-   * Individual responses to images found within the file.
+   * Individual responses to images found within the file. This field will be
+   * empty if the `error` field is set.
    * 
* * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2; @@ -261,6 +280,48 @@ public int getTotalPages() { return totalPages_; } + public static final int ERROR_FIELD_NUMBER = 4; + private com.google.rpc.Status error_; + /** + * + * + *
+   * If set, represents the error message for the failed request. The
+   * `responses` field will not be set in this case.
+   * 
+ * + * .google.rpc.Status error = 4; + */ + public boolean hasError() { + return error_ != null; + } + /** + * + * + *
+   * If set, represents the error message for the failed request. The
+   * `responses` field will not be set in this case.
+   * 
+ * + * .google.rpc.Status error = 4; + */ + public com.google.rpc.Status getError() { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + /** + * + * + *
+   * If set, represents the error message for the failed request. The
+   * `responses` field will not be set in this case.
+   * 
+ * + * .google.rpc.Status error = 4; + */ + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + return getError(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -284,6 +345,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (totalPages_ != 0) { output.writeInt32(3, totalPages_); } + if (error_ != null) { + output.writeMessage(4, getError()); + } unknownFields.writeTo(output); } @@ -302,6 +366,9 @@ public int getSerializedSize() { if (totalPages_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalPages_); } + if (error_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getError()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -324,6 +391,10 @@ public boolean equals(final java.lang.Object obj) { } if (!getResponsesList().equals(other.getResponsesList())) return false; if (getTotalPages() != other.getTotalPages()) return false; + if (hasError() != other.hasError()) return false; + if (hasError()) { + if (!getError().equals(other.getError())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -345,6 +416,10 @@ public int hashCode() { } hash = (37 * hash) + TOTAL_PAGES_FIELD_NUMBER; hash = (53 * hash) + getTotalPages(); + if (hasError()) { + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -508,6 +583,12 @@ public Builder clear() { } totalPages_ = 0; + if (errorBuilder_ == null) { + error_ = null; + } else { + error_ = null; + errorBuilder_ = null; + } return this; } @@ -552,6 +633,11 @@ public com.google.cloud.vision.v1p4beta1.AnnotateFileResponse buildPartial() { result.responses_ = responsesBuilder_.build(); } result.totalPages_ = totalPages_; + if (errorBuilder_ == null) { + result.error_ = error_; + } else { + result.error_ = errorBuilder_.build(); + } result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -636,6 +722,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.AnnotateFileResponse if (other.getTotalPages() != 0) { setTotalPages(other.getTotalPages()); } + if (other.hasError()) { + mergeError(other.getError()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -872,7 +961,8 @@ private void ensureResponsesIsMutable() { * * *
-     * Individual responses to images found within the file.
+     * Individual responses to images found within the file. This field will be
+     * empty if the `error` field is set.
      * 
* * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2; @@ -889,7 +979,8 @@ private void ensureResponsesIsMutable() { * * *
-     * Individual responses to images found within the file.
+     * Individual responses to images found within the file. This field will be
+     * empty if the `error` field is set.
      * 
* * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2; @@ -905,7 +996,8 @@ public int getResponsesCount() { * * *
-     * Individual responses to images found within the file.
+     * Individual responses to images found within the file. This field will be
+     * empty if the `error` field is set.
      * 
* * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2; @@ -921,7 +1013,8 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponse getResponses(int * * *
-     * Individual responses to images found within the file.
+     * Individual responses to images found within the file. This field will be
+     * empty if the `error` field is set.
      * 
* * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2; @@ -944,7 +1037,8 @@ public Builder setResponses( * * *
-     * Individual responses to images found within the file.
+     * Individual responses to images found within the file. This field will be
+     * empty if the `error` field is set.
      * 
* * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2; @@ -965,7 +1059,8 @@ public Builder setResponses( * * *
-     * Individual responses to images found within the file.
+     * Individual responses to images found within the file. This field will be
+     * empty if the `error` field is set.
      * 
* * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2; @@ -987,7 +1082,8 @@ public Builder addResponses(com.google.cloud.vision.v1p4beta1.AnnotateImageRespo * * *
-     * Individual responses to images found within the file.
+     * Individual responses to images found within the file. This field will be
+     * empty if the `error` field is set.
      * 
* * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2; @@ -1010,7 +1106,8 @@ public Builder addResponses( * * *
-     * Individual responses to images found within the file.
+     * Individual responses to images found within the file. This field will be
+     * empty if the `error` field is set.
      * 
* * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2; @@ -1030,7 +1127,8 @@ public Builder addResponses( * * *
-     * Individual responses to images found within the file.
+     * Individual responses to images found within the file. This field will be
+     * empty if the `error` field is set.
      * 
* * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2; @@ -1051,7 +1149,8 @@ public Builder addResponses( * * *
-     * Individual responses to images found within the file.
+     * Individual responses to images found within the file. This field will be
+     * empty if the `error` field is set.
      * 
* * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2; @@ -1072,7 +1171,8 @@ public Builder addAllResponses( * * *
-     * Individual responses to images found within the file.
+     * Individual responses to images found within the file. This field will be
+     * empty if the `error` field is set.
      * 
* * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2; @@ -1091,7 +1191,8 @@ public Builder clearResponses() { * * *
-     * Individual responses to images found within the file.
+     * Individual responses to images found within the file. This field will be
+     * empty if the `error` field is set.
      * 
* * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2; @@ -1110,7 +1211,8 @@ public Builder removeResponses(int index) { * * *
-     * Individual responses to images found within the file.
+     * Individual responses to images found within the file. This field will be
+     * empty if the `error` field is set.
      * 
* * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2; @@ -1123,7 +1225,8 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder getRespon * * *
-     * Individual responses to images found within the file.
+     * Individual responses to images found within the file. This field will be
+     * empty if the `error` field is set.
      * 
* * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2; @@ -1140,7 +1243,8 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder getRespo * * *
-     * Individual responses to images found within the file.
+     * Individual responses to images found within the file. This field will be
+     * empty if the `error` field is set.
      * 
* * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2; @@ -1158,7 +1262,8 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponseOrBuilder getRespo * * *
-     * Individual responses to images found within the file.
+     * Individual responses to images found within the file. This field will be
+     * empty if the `error` field is set.
      * 
* * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2; @@ -1171,7 +1276,8 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder addRespon * * *
-     * Individual responses to images found within the file.
+     * Individual responses to images found within the file. This field will be
+     * empty if the `error` field is set.
      * 
* * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2; @@ -1186,7 +1292,8 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageResponse.Builder addRespon * * *
-     * Individual responses to images found within the file.
+     * Individual responses to images found within the file. This field will be
+     * empty if the `error` field is set.
      * 
* * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2; @@ -1257,6 +1364,184 @@ public Builder clearTotalPages() { return this; } + private com.google.rpc.Status error_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; + /** + * + * + *
+     * If set, represents the error message for the failed request. The
+     * `responses` field will not be set in this case.
+     * 
+ * + * .google.rpc.Status error = 4; + */ + public boolean hasError() { + return errorBuilder_ != null || error_ != null; + } + /** + * + * + *
+     * If set, represents the error message for the failed request. The
+     * `responses` field will not be set in this case.
+     * 
+ * + * .google.rpc.Status error = 4; + */ + public com.google.rpc.Status getError() { + if (errorBuilder_ == null) { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } else { + return errorBuilder_.getMessage(); + } + } + /** + * + * + *
+     * If set, represents the error message for the failed request. The
+     * `responses` field will not be set in this case.
+     * 
+ * + * .google.rpc.Status error = 4; + */ + public Builder setError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + error_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * If set, represents the error message for the failed request. The
+     * `responses` field will not be set in this case.
+     * 
+ * + * .google.rpc.Status error = 4; + */ + public Builder setError(com.google.rpc.Status.Builder builderForValue) { + if (errorBuilder_ == null) { + error_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * If set, represents the error message for the failed request. The
+     * `responses` field will not be set in this case.
+     * 
+ * + * .google.rpc.Status error = 4; + */ + public Builder mergeError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (error_ != null) { + error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial(); + } else { + error_ = value; + } + onChanged(); + } else { + errorBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * If set, represents the error message for the failed request. The
+     * `responses` field will not be set in this case.
+     * 
+ * + * .google.rpc.Status error = 4; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + error_ = null; + onChanged(); + } else { + error_ = null; + errorBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * If set, represents the error message for the failed request. The
+     * `responses` field will not be set in this case.
+     * 
+ * + * .google.rpc.Status error = 4; + */ + public com.google.rpc.Status.Builder getErrorBuilder() { + + onChanged(); + return getErrorFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * If set, represents the error message for the failed request. The
+     * `responses` field will not be set in this case.
+     * 
+ * + * .google.rpc.Status error = 4; + */ + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + if (errorBuilder_ != null) { + return errorBuilder_.getMessageOrBuilder(); + } else { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + } + /** + * + * + *
+     * If set, represents the error message for the failed request. The
+     * `responses` field will not be set in this case.
+     * 
+ * + * .google.rpc.Status error = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + errorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean()); + error_ = null; + } + return errorBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileResponseOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileResponseOrBuilder.java index 565aefb4f..326d9c077 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileResponseOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AnnotateFileResponseOrBuilder.java @@ -58,7 +58,8 @@ public interface AnnotateFileResponseOrBuilder * * *
-   * Individual responses to images found within the file.
+   * Individual responses to images found within the file. This field will be
+   * empty if the `error` field is set.
    * 
* * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2; @@ -68,7 +69,8 @@ public interface AnnotateFileResponseOrBuilder * * *
-   * Individual responses to images found within the file.
+   * Individual responses to images found within the file. This field will be
+   * empty if the `error` field is set.
    * 
* * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2; @@ -78,7 +80,8 @@ public interface AnnotateFileResponseOrBuilder * * *
-   * Individual responses to images found within the file.
+   * Individual responses to images found within the file. This field will be
+   * empty if the `error` field is set.
    * 
* * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2; @@ -88,7 +91,8 @@ public interface AnnotateFileResponseOrBuilder * * *
-   * Individual responses to images found within the file.
+   * Individual responses to images found within the file. This field will be
+   * empty if the `error` field is set.
    * 
* * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2; @@ -99,7 +103,8 @@ public interface AnnotateFileResponseOrBuilder * * *
-   * Individual responses to images found within the file.
+   * Individual responses to images found within the file. This field will be
+   * empty if the `error` field is set.
    * 
* * repeated .google.cloud.vision.v1p4beta1.AnnotateImageResponse responses = 2; @@ -116,4 +121,38 @@ public interface AnnotateFileResponseOrBuilder * int32 total_pages = 3; */ int getTotalPages(); + + /** + * + * + *
+   * If set, represents the error message for the failed request. The
+   * `responses` field will not be set in this case.
+   * 
+ * + * .google.rpc.Status error = 4; + */ + boolean hasError(); + /** + * + * + *
+   * If set, represents the error message for the failed request. The
+   * `responses` field will not be set in this case.
+   * 
+ * + * .google.rpc.Status error = 4; + */ + com.google.rpc.Status getError(); + /** + * + * + *
+   * If set, represents the error message for the failed request. The
+   * `responses` field will not be set in this case.
+   * 
+ * + * .google.rpc.Status error = 4; + */ + com.google.rpc.StatusOrBuilder getErrorOrBuilder(); } diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesRequest.java index c0f54c7af..fc79adc73 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesRequest.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesRequest.java @@ -124,10 +124,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Individual async file annotation requests for this batch.
+   * Required. Individual async file annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getRequestsList() { @@ -137,10 +139,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Individual async file annotation requests for this batch.
+   * Required. Individual async file annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List< ? extends com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestOrBuilder> @@ -151,10 +155,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Individual async file annotation requests for this batch.
+   * Required. Individual async file annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getRequestsCount() { return requests_.size(); @@ -163,10 +169,12 @@ public int getRequestsCount() { * * *
-   * Individual async file annotation requests for this batch.
+   * Required. Individual async file annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest getRequests(int index) { return requests_.get(index); @@ -175,10 +183,12 @@ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest getRequests(in * * *
-   * Individual async file annotation requests for this batch.
+   * Required. Individual async file annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestOrBuilder getRequestsOrBuilder( int index) { @@ -573,10 +583,12 @@ private void ensureRequestsIsMutable() { * * *
-     * Individual async file annotation requests for this batch.
+     * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getRequestsList() { @@ -590,10 +602,12 @@ private void ensureRequestsIsMutable() { * * *
-     * Individual async file annotation requests for this batch.
+     * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getRequestsCount() { if (requestsBuilder_ == null) { @@ -606,10 +620,12 @@ public int getRequestsCount() { * * *
-     * Individual async file annotation requests for this batch.
+     * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest getRequests(int index) { if (requestsBuilder_ == null) { @@ -622,10 +638,12 @@ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest getRequests(in * * *
-     * Individual async file annotation requests for this batch.
+     * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRequests( int index, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest value) { @@ -645,10 +663,12 @@ public Builder setRequests( * * *
-     * Individual async file annotation requests for this batch.
+     * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRequests( int index, @@ -666,10 +686,12 @@ public Builder setRequests( * * *
-     * Individual async file annotation requests for this batch.
+     * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests(com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest value) { if (requestsBuilder_ == null) { @@ -688,10 +710,12 @@ public Builder addRequests(com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRe * * *
-     * Individual async file annotation requests for this batch.
+     * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( int index, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest value) { @@ -711,10 +735,12 @@ public Builder addRequests( * * *
-     * Individual async file annotation requests for this batch.
+     * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder builderForValue) { @@ -731,10 +757,12 @@ public Builder addRequests( * * *
-     * Individual async file annotation requests for this batch.
+     * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( int index, @@ -752,10 +780,12 @@ public Builder addRequests( * * *
-     * Individual async file annotation requests for this batch.
+     * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllRequests( java.lang.Iterable @@ -773,10 +803,12 @@ public Builder addAllRequests( * * *
-     * Individual async file annotation requests for this batch.
+     * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearRequests() { if (requestsBuilder_ == null) { @@ -792,10 +824,12 @@ public Builder clearRequests() { * * *
-     * Individual async file annotation requests for this batch.
+     * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeRequests(int index) { if (requestsBuilder_ == null) { @@ -811,10 +845,12 @@ public Builder removeRequests(int index) { * * *
-     * Individual async file annotation requests for this batch.
+     * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder getRequestsBuilder( int index) { @@ -824,10 +860,12 @@ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder getReq * * *
-     * Individual async file annotation requests for this batch.
+     * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestOrBuilder getRequestsOrBuilder( int index) { @@ -841,10 +879,12 @@ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestOrBuilder getRe * * *
-     * Individual async file annotation requests for this batch.
+     * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List< ? extends com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestOrBuilder> @@ -859,10 +899,12 @@ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestOrBuilder getRe * * *
-     * Individual async file annotation requests for this batch.
+     * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder addRequestsBuilder() { return getRequestsFieldBuilder() @@ -873,10 +915,12 @@ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder addReq * * *
-     * Individual async file annotation requests for this batch.
+     * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder addRequestsBuilder( int index) { @@ -889,10 +933,12 @@ public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder addReq * * *
-     * Individual async file annotation requests for this batch.
+     * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getRequestsBuilderList() { diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java index db192d883..062a55074 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesRequestOrBuilder.java @@ -27,40 +27,48 @@ public interface AsyncBatchAnnotateFilesRequestOrBuilder * * *
-   * Individual async file annotation requests for this batch.
+   * Required. Individual async file annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ java.util.List getRequestsList(); /** * * *
-   * Individual async file annotation requests for this batch.
+   * Required. Individual async file annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest getRequests(int index); /** * * *
-   * Individual async file annotation requests for this batch.
+   * Required. Individual async file annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ int getRequestsCount(); /** * * *
-   * Individual async file annotation requests for this batch.
+   * Required. Individual async file annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ java.util.List getRequestsOrBuilderList(); @@ -68,10 +76,12 @@ public interface AsyncBatchAnnotateFilesRequestOrBuilder * * *
-   * Individual async file annotation requests for this batch.
+   * Required. Individual async file annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestOrBuilder getRequestsOrBuilder( int index); diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesRequest.java index 22713b451..3ecfb185b 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesRequest.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesRequest.java @@ -140,10 +140,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Individual image annotation requests for this batch.
+   * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getRequestsList() { return requests_; @@ -152,10 +154,12 @@ public java.util.List ge * * *
-   * Individual image annotation requests for this batch.
+   * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getRequestsOrBuilderList() { @@ -165,10 +169,12 @@ public java.util.List ge * * *
-   * Individual image annotation requests for this batch.
+   * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getRequestsCount() { return requests_.size(); @@ -177,10 +183,12 @@ public int getRequestsCount() { * * *
-   * Individual image annotation requests for this batch.
+   * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequest getRequests(int index) { return requests_.get(index); @@ -189,10 +197,12 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequest getRequests(int in * * *
-   * Individual image annotation requests for this batch.
+   * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder getRequestsOrBuilder( int index) { @@ -208,7 +218,9 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder getReques * Required. The desired output location and metadata (e.g. format). * * - * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2; + * + * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasOutputConfig() { return outputConfig_ != null; @@ -220,7 +232,9 @@ public boolean hasOutputConfig() { * Required. The desired output location and metadata (e.g. format). * * - * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2; + * + * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.OutputConfig getOutputConfig() { return outputConfig_ == null @@ -234,7 +248,9 @@ public com.google.cloud.vision.v1p4beta1.OutputConfig getOutputConfig() { * Required. The desired output location and metadata (e.g. format). * * - * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2; + * + * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder getOutputConfigOrBuilder() { return getOutputConfig(); @@ -659,10 +675,12 @@ private void ensureRequestsIsMutable() { * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getRequestsList() { @@ -676,10 +694,12 @@ private void ensureRequestsIsMutable() { * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getRequestsCount() { if (requestsBuilder_ == null) { @@ -692,10 +712,12 @@ public int getRequestsCount() { * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequest getRequests(int index) { if (requestsBuilder_ == null) { @@ -708,10 +730,12 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequest getRequests(int in * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRequests( int index, com.google.cloud.vision.v1p4beta1.AnnotateImageRequest value) { @@ -731,10 +755,12 @@ public Builder setRequests( * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRequests( int index, com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder builderForValue) { @@ -751,10 +777,12 @@ public Builder setRequests( * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests(com.google.cloud.vision.v1p4beta1.AnnotateImageRequest value) { if (requestsBuilder_ == null) { @@ -773,10 +801,12 @@ public Builder addRequests(com.google.cloud.vision.v1p4beta1.AnnotateImageReques * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( int index, com.google.cloud.vision.v1p4beta1.AnnotateImageRequest value) { @@ -796,10 +826,12 @@ public Builder addRequests( * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder builderForValue) { @@ -816,10 +848,12 @@ public Builder addRequests( * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( int index, com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder builderForValue) { @@ -836,10 +870,12 @@ public Builder addRequests( * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllRequests( java.lang.Iterable @@ -857,10 +893,12 @@ public Builder addAllRequests( * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearRequests() { if (requestsBuilder_ == null) { @@ -876,10 +914,12 @@ public Builder clearRequests() { * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeRequests(int index) { if (requestsBuilder_ == null) { @@ -895,10 +935,12 @@ public Builder removeRequests(int index) { * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder getRequestsBuilder( int index) { @@ -908,10 +950,12 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder getRequest * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder getRequestsOrBuilder( int index) { @@ -925,10 +969,12 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder getReques * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getRequestsOrBuilderList() { @@ -942,10 +988,12 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder getReques * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder addRequestsBuilder() { return getRequestsFieldBuilder() @@ -955,10 +1003,12 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder addRequest * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder addRequestsBuilder( int index) { @@ -970,10 +1020,12 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder addRequest * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getRequestsBuilderList() { @@ -1010,7 +1062,9 @@ public com.google.cloud.vision.v1p4beta1.AnnotateImageRequest.Builder addRequest * Required. The desired output location and metadata (e.g. format). * * - * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2; + * + * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; @@ -1022,7 +1076,9 @@ public boolean hasOutputConfig() { * Required. The desired output location and metadata (e.g. format). * * - * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2; + * + * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { @@ -1040,7 +1096,9 @@ public com.google.cloud.vision.v1p4beta1.OutputConfig getOutputConfig() { * Required. The desired output location and metadata (e.g. format). * * - * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2; + * + * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig(com.google.cloud.vision.v1p4beta1.OutputConfig value) { if (outputConfigBuilder_ == null) { @@ -1062,7 +1120,9 @@ public Builder setOutputConfig(com.google.cloud.vision.v1p4beta1.OutputConfig va * Required. The desired output location and metadata (e.g. format). * * - * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2; + * + * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig( com.google.cloud.vision.v1p4beta1.OutputConfig.Builder builderForValue) { @@ -1082,7 +1142,9 @@ public Builder setOutputConfig( * Required. The desired output location and metadata (e.g. format). * * - * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2; + * + * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeOutputConfig(com.google.cloud.vision.v1p4beta1.OutputConfig value) { if (outputConfigBuilder_ == null) { @@ -1108,7 +1170,9 @@ public Builder mergeOutputConfig(com.google.cloud.vision.v1p4beta1.OutputConfig * Required. The desired output location and metadata (e.g. format). * * - * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2; + * + * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -1128,7 +1192,9 @@ public Builder clearOutputConfig() { * Required. The desired output location and metadata (e.g. format). * * - * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2; + * + * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.OutputConfig.Builder getOutputConfigBuilder() { @@ -1142,7 +1208,9 @@ public com.google.cloud.vision.v1p4beta1.OutputConfig.Builder getOutputConfigBui * Required. The desired output location and metadata (e.g. format). * * - * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2; + * + * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { @@ -1160,7 +1228,9 @@ public com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder getOutputConfigOr * Required. The desired output location and metadata (e.g. format). * * - * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2; + * + * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.vision.v1p4beta1.OutputConfig, diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesRequestOrBuilder.java index c249f7d34..1199959c8 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateImagesRequestOrBuilder.java @@ -27,40 +27,48 @@ public interface AsyncBatchAnnotateImagesRequestOrBuilder * * *
-   * Individual image annotation requests for this batch.
+   * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ java.util.List getRequestsList(); /** * * *
-   * Individual image annotation requests for this batch.
+   * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1p4beta1.AnnotateImageRequest getRequests(int index); /** * * *
-   * Individual image annotation requests for this batch.
+   * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ int getRequestsCount(); /** * * *
-   * Individual image annotation requests for this batch.
+   * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ java.util.List getRequestsOrBuilderList(); @@ -68,10 +76,12 @@ public interface AsyncBatchAnnotateImagesRequestOrBuilder * * *
-   * Individual image annotation requests for this batch.
+   * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1p4beta1.AnnotateImageRequestOrBuilder getRequestsOrBuilder(int index); @@ -82,7 +92,9 @@ public interface AsyncBatchAnnotateImagesRequestOrBuilder * Required. The desired output location and metadata (e.g. format). * * - * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2; + * + * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ boolean hasOutputConfig(); /** @@ -92,7 +104,9 @@ public interface AsyncBatchAnnotateImagesRequestOrBuilder * Required. The desired output location and metadata (e.g. format). * * - * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2; + * + * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1p4beta1.OutputConfig getOutputConfig(); /** @@ -102,7 +116,9 @@ public interface AsyncBatchAnnotateImagesRequestOrBuilder * Required. The desired output location and metadata (e.g. format). * * - * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2; + * + * .google.cloud.vision.v1p4beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1p4beta1.OutputConfigOrBuilder getOutputConfigOrBuilder(); } diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesRequest.java index 9e70b3922..e54e89895 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesRequest.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesRequest.java @@ -122,11 +122,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The list of file annotation requests. Right now we support only one
-   * AnnotateFileRequest in BatchAnnotateFilesRequest.
+   * Required. The list of file annotation requests. Right now we support only
+   * one AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getRequestsList() { return requests_; @@ -135,11 +137,13 @@ public java.util.List get * * *
-   * The list of file annotation requests. Right now we support only one
-   * AnnotateFileRequest in BatchAnnotateFilesRequest.
+   * Required. The list of file annotation requests. Right now we support only
+   * one AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getRequestsOrBuilderList() { @@ -149,11 +153,13 @@ public java.util.List get * * *
-   * The list of file annotation requests. Right now we support only one
-   * AnnotateFileRequest in BatchAnnotateFilesRequest.
+   * Required. The list of file annotation requests. Right now we support only
+   * one AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getRequestsCount() { return requests_.size(); @@ -162,11 +168,13 @@ public int getRequestsCount() { * * *
-   * The list of file annotation requests. Right now we support only one
-   * AnnotateFileRequest in BatchAnnotateFilesRequest.
+   * Required. The list of file annotation requests. Right now we support only
+   * one AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.AnnotateFileRequest getRequests(int index) { return requests_.get(index); @@ -175,11 +183,13 @@ public com.google.cloud.vision.v1p4beta1.AnnotateFileRequest getRequests(int ind * * *
-   * The list of file annotation requests. Right now we support only one
-   * AnnotateFileRequest in BatchAnnotateFilesRequest.
+   * Required. The list of file annotation requests. Right now we support only
+   * one AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.AnnotateFileRequestOrBuilder getRequestsOrBuilder( int index) { @@ -569,11 +579,13 @@ private void ensureRequestsIsMutable() { * * *
-     * The list of file annotation requests. Right now we support only one
-     * AnnotateFileRequest in BatchAnnotateFilesRequest.
+     * Required. The list of file annotation requests. Right now we support only
+     * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getRequestsList() { if (requestsBuilder_ == null) { @@ -586,11 +598,13 @@ public java.util.List get * * *
-     * The list of file annotation requests. Right now we support only one
-     * AnnotateFileRequest in BatchAnnotateFilesRequest.
+     * Required. The list of file annotation requests. Right now we support only
+     * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getRequestsCount() { if (requestsBuilder_ == null) { @@ -603,11 +617,13 @@ public int getRequestsCount() { * * *
-     * The list of file annotation requests. Right now we support only one
-     * AnnotateFileRequest in BatchAnnotateFilesRequest.
+     * Required. The list of file annotation requests. Right now we support only
+     * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.AnnotateFileRequest getRequests(int index) { if (requestsBuilder_ == null) { @@ -620,11 +636,13 @@ public com.google.cloud.vision.v1p4beta1.AnnotateFileRequest getRequests(int ind * * *
-     * The list of file annotation requests. Right now we support only one
-     * AnnotateFileRequest in BatchAnnotateFilesRequest.
+     * Required. The list of file annotation requests. Right now we support only
+     * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRequests( int index, com.google.cloud.vision.v1p4beta1.AnnotateFileRequest value) { @@ -644,11 +662,13 @@ public Builder setRequests( * * *
-     * The list of file annotation requests. Right now we support only one
-     * AnnotateFileRequest in BatchAnnotateFilesRequest.
+     * Required. The list of file annotation requests. Right now we support only
+     * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRequests( int index, com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.Builder builderForValue) { @@ -665,11 +685,13 @@ public Builder setRequests( * * *
-     * The list of file annotation requests. Right now we support only one
-     * AnnotateFileRequest in BatchAnnotateFilesRequest.
+     * Required. The list of file annotation requests. Right now we support only
+     * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests(com.google.cloud.vision.v1p4beta1.AnnotateFileRequest value) { if (requestsBuilder_ == null) { @@ -688,11 +710,13 @@ public Builder addRequests(com.google.cloud.vision.v1p4beta1.AnnotateFileRequest * * *
-     * The list of file annotation requests. Right now we support only one
-     * AnnotateFileRequest in BatchAnnotateFilesRequest.
+     * Required. The list of file annotation requests. Right now we support only
+     * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( int index, com.google.cloud.vision.v1p4beta1.AnnotateFileRequest value) { @@ -712,11 +736,13 @@ public Builder addRequests( * * *
-     * The list of file annotation requests. Right now we support only one
-     * AnnotateFileRequest in BatchAnnotateFilesRequest.
+     * Required. The list of file annotation requests. Right now we support only
+     * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.Builder builderForValue) { @@ -733,11 +759,13 @@ public Builder addRequests( * * *
-     * The list of file annotation requests. Right now we support only one
-     * AnnotateFileRequest in BatchAnnotateFilesRequest.
+     * Required. The list of file annotation requests. Right now we support only
+     * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( int index, com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.Builder builderForValue) { @@ -754,11 +782,13 @@ public Builder addRequests( * * *
-     * The list of file annotation requests. Right now we support only one
-     * AnnotateFileRequest in BatchAnnotateFilesRequest.
+     * Required. The list of file annotation requests. Right now we support only
+     * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllRequests( java.lang.Iterable @@ -776,11 +806,13 @@ public Builder addAllRequests( * * *
-     * The list of file annotation requests. Right now we support only one
-     * AnnotateFileRequest in BatchAnnotateFilesRequest.
+     * Required. The list of file annotation requests. Right now we support only
+     * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearRequests() { if (requestsBuilder_ == null) { @@ -796,11 +828,13 @@ public Builder clearRequests() { * * *
-     * The list of file annotation requests. Right now we support only one
-     * AnnotateFileRequest in BatchAnnotateFilesRequest.
+     * Required. The list of file annotation requests. Right now we support only
+     * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeRequests(int index) { if (requestsBuilder_ == null) { @@ -816,11 +850,13 @@ public Builder removeRequests(int index) { * * *
-     * The list of file annotation requests. Right now we support only one
-     * AnnotateFileRequest in BatchAnnotateFilesRequest.
+     * Required. The list of file annotation requests. Right now we support only
+     * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.Builder getRequestsBuilder( int index) { @@ -830,11 +866,13 @@ public com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.Builder getRequests * * *
-     * The list of file annotation requests. Right now we support only one
-     * AnnotateFileRequest in BatchAnnotateFilesRequest.
+     * Required. The list of file annotation requests. Right now we support only
+     * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.AnnotateFileRequestOrBuilder getRequestsOrBuilder( int index) { @@ -848,11 +886,13 @@ public com.google.cloud.vision.v1p4beta1.AnnotateFileRequestOrBuilder getRequest * * *
-     * The list of file annotation requests. Right now we support only one
-     * AnnotateFileRequest in BatchAnnotateFilesRequest.
+     * Required. The list of file annotation requests. Right now we support only
+     * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getRequestsOrBuilderList() { @@ -866,11 +906,13 @@ public com.google.cloud.vision.v1p4beta1.AnnotateFileRequestOrBuilder getRequest * * *
-     * The list of file annotation requests. Right now we support only one
-     * AnnotateFileRequest in BatchAnnotateFilesRequest.
+     * Required. The list of file annotation requests. Right now we support only
+     * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.Builder addRequestsBuilder() { return getRequestsFieldBuilder() @@ -880,11 +922,13 @@ public com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.Builder addRequests * * *
-     * The list of file annotation requests. Right now we support only one
-     * AnnotateFileRequest in BatchAnnotateFilesRequest.
+     * Required. The list of file annotation requests. Right now we support only
+     * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.Builder addRequestsBuilder( int index) { @@ -896,11 +940,13 @@ public com.google.cloud.vision.v1p4beta1.AnnotateFileRequest.Builder addRequests * * *
-     * The list of file annotation requests. Right now we support only one
-     * AnnotateFileRequest in BatchAnnotateFilesRequest.
+     * Required. The list of file annotation requests. Right now we support only
+     * one AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getRequestsBuilderList() { diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesRequestOrBuilder.java index b4d486ad2..e1180cd27 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/BatchAnnotateFilesRequestOrBuilder.java @@ -27,44 +27,52 @@ public interface BatchAnnotateFilesRequestOrBuilder * * *
-   * The list of file annotation requests. Right now we support only one
-   * AnnotateFileRequest in BatchAnnotateFilesRequest.
+   * Required. The list of file annotation requests. Right now we support only
+   * one AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ java.util.List getRequestsList(); /** * * *
-   * The list of file annotation requests. Right now we support only one
-   * AnnotateFileRequest in BatchAnnotateFilesRequest.
+   * Required. The list of file annotation requests. Right now we support only
+   * one AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1p4beta1.AnnotateFileRequest getRequests(int index); /** * * *
-   * The list of file annotation requests. Right now we support only one
-   * AnnotateFileRequest in BatchAnnotateFilesRequest.
+   * Required. The list of file annotation requests. Right now we support only
+   * one AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ int getRequestsCount(); /** * * *
-   * The list of file annotation requests. Right now we support only one
-   * AnnotateFileRequest in BatchAnnotateFilesRequest.
+   * Required. The list of file annotation requests. Right now we support only
+   * one AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ java.util.List getRequestsOrBuilderList(); @@ -72,11 +80,13 @@ public interface BatchAnnotateFilesRequestOrBuilder * * *
-   * The list of file annotation requests. Right now we support only one
-   * AnnotateFileRequest in BatchAnnotateFilesRequest.
+   * Required. The list of file annotation requests. Right now we support only
+   * one AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1p4beta1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1p4beta1.AnnotateFileRequestOrBuilder getRequestsOrBuilder(int index); } diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Celebrity.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Celebrity.java new file mode 100644 index 000000000..84f31e811 --- /dev/null +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Celebrity.java @@ -0,0 +1,940 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/face.proto + +package com.google.cloud.vision.v1p4beta1; + +/** + * + * + *
+ * A Celebrity is a group of Faces with an identity.
+ * 
+ * + * Protobuf type {@code google.cloud.vision.v1p4beta1.Celebrity} + */ +public final class Celebrity extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.Celebrity) + CelebrityOrBuilder { + private static final long serialVersionUID = 0L; + // Use Celebrity.newBuilder() to construct. + private Celebrity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Celebrity() { + name_ = ""; + displayName_ = ""; + description_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Celebrity( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.CelebrityProto + .internal_static_google_cloud_vision_v1p4beta1_Celebrity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vision.v1p4beta1.CelebrityProto + .internal_static_google_cloud_vision_v1p4beta1_Celebrity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vision.v1p4beta1.Celebrity.class, + com.google.cloud.vision.v1p4beta1.Celebrity.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The resource name of the preloaded Celebrity. Has the format
+   * `builtin/{mid}`.
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The resource name of the preloaded Celebrity. Has the format
+   * `builtin/{mid}`.
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object displayName_; + /** + * + * + *
+   * The Celebrity's display name.
+   * 
+ * + * string display_name = 2; + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * The Celebrity's display name.
+   * 
+ * + * string display_name = 2; + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + private volatile java.lang.Object description_; + /** + * + * + *
+   * The Celebrity's description.
+   * 
+ * + * string description = 3; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * The Celebrity's description.
+   * 
+ * + * string description = 3; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vision.v1p4beta1.Celebrity)) { + return super.equals(obj); + } + com.google.cloud.vision.v1p4beta1.Celebrity other = + (com.google.cloud.vision.v1p4beta1.Celebrity) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vision.v1p4beta1.Celebrity parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vision.v1p4beta1.Celebrity parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vision.v1p4beta1.Celebrity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vision.v1p4beta1.Celebrity parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vision.v1p4beta1.Celebrity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vision.v1p4beta1.Celebrity parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vision.v1p4beta1.Celebrity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vision.v1p4beta1.Celebrity parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vision.v1p4beta1.Celebrity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vision.v1p4beta1.Celebrity parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vision.v1p4beta1.Celebrity parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vision.v1p4beta1.Celebrity parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.vision.v1p4beta1.Celebrity prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A Celebrity is a group of Faces with an identity.
+   * 
+ * + * Protobuf type {@code google.cloud.vision.v1p4beta1.Celebrity} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.Celebrity) + com.google.cloud.vision.v1p4beta1.CelebrityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.CelebrityProto + .internal_static_google_cloud_vision_v1p4beta1_Celebrity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vision.v1p4beta1.CelebrityProto + .internal_static_google_cloud_vision_v1p4beta1_Celebrity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vision.v1p4beta1.Celebrity.class, + com.google.cloud.vision.v1p4beta1.Celebrity.Builder.class); + } + + // Construct using com.google.cloud.vision.v1p4beta1.Celebrity.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + displayName_ = ""; + + description_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.CelebrityProto + .internal_static_google_cloud_vision_v1p4beta1_Celebrity_descriptor; + } + + @java.lang.Override + public com.google.cloud.vision.v1p4beta1.Celebrity getDefaultInstanceForType() { + return com.google.cloud.vision.v1p4beta1.Celebrity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vision.v1p4beta1.Celebrity build() { + com.google.cloud.vision.v1p4beta1.Celebrity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vision.v1p4beta1.Celebrity buildPartial() { + com.google.cloud.vision.v1p4beta1.Celebrity result = + new com.google.cloud.vision.v1p4beta1.Celebrity(this); + result.name_ = name_; + result.displayName_ = displayName_; + result.description_ = description_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vision.v1p4beta1.Celebrity) { + return mergeFrom((com.google.cloud.vision.v1p4beta1.Celebrity) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.Celebrity other) { + if (other == com.google.cloud.vision.v1p4beta1.Celebrity.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.vision.v1p4beta1.Celebrity parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.vision.v1p4beta1.Celebrity) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The resource name of the preloaded Celebrity. Has the format
+     * `builtin/{mid}`.
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The resource name of the preloaded Celebrity. Has the format
+     * `builtin/{mid}`.
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The resource name of the preloaded Celebrity. Has the format
+     * `builtin/{mid}`.
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name of the preloaded Celebrity. Has the format
+     * `builtin/{mid}`.
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name of the preloaded Celebrity. Has the format
+     * `builtin/{mid}`.
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * The Celebrity's display name.
+     * 
+ * + * string display_name = 2; + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The Celebrity's display name.
+     * 
+ * + * string display_name = 2; + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The Celebrity's display name.
+     * 
+ * + * string display_name = 2; + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The Celebrity's display name.
+     * 
+ * + * string display_name = 2; + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The Celebrity's display name.
+     * 
+ * + * string display_name = 2; + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * The Celebrity's description.
+     * 
+ * + * string description = 3; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The Celebrity's description.
+     * 
+ * + * string description = 3; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The Celebrity's description.
+     * 
+ * + * string description = 3; + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The Celebrity's description.
+     * 
+ * + * string description = 3; + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * The Celebrity's description.
+     * 
+ * + * string description = 3; + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.Celebrity) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.Celebrity) + private static final com.google.cloud.vision.v1p4beta1.Celebrity DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.Celebrity(); + } + + public static com.google.cloud.vision.v1p4beta1.Celebrity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Celebrity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Celebrity(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.vision.v1p4beta1.Celebrity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CelebrityOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CelebrityOrBuilder.java new file mode 100644 index 000000000..cd689d50d --- /dev/null +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CelebrityOrBuilder.java @@ -0,0 +1,90 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/face.proto + +package com.google.cloud.vision.v1p4beta1; + +public interface CelebrityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.Celebrity) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The resource name of the preloaded Celebrity. Has the format
+   * `builtin/{mid}`.
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * The resource name of the preloaded Celebrity. Has the format
+   * `builtin/{mid}`.
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The Celebrity's display name.
+   * 
+ * + * string display_name = 2; + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * The Celebrity's display name.
+   * 
+ * + * string display_name = 2; + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * The Celebrity's description.
+   * 
+ * + * string description = 3; + */ + java.lang.String getDescription(); + /** + * + * + *
+   * The Celebrity's description.
+   * 
+ * + * string description = 3; + */ + com.google.protobuf.ByteString getDescriptionBytes(); +} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CelebrityProto.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CelebrityProto.java new file mode 100644 index 000000000..cea1a64c9 --- /dev/null +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CelebrityProto.java @@ -0,0 +1,109 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/face.proto + +package com.google.cloud.vision.v1p4beta1; + +public final class CelebrityProto { + private CelebrityProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_Celebrity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_Celebrity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n(google/cloud/vision/v1p4beta1/face.pro" + + "to\022\035google.cloud.vision.v1p4beta1\032\034googl" + + "e/api/annotations.proto\032,google/cloud/vi" + + "sion/v1p4beta1/geometry.proto\".\n\025FaceRec" + + "ognitionParams\022\025\n\rcelebrity_set\030\001 \003(\t\"D\n" + + "\tCelebrity\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name" + + "\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\"h\n\025FaceRecog" + + "nitionResult\022;\n\tcelebrity\030\001 \001(\0132(.google" + + ".cloud.vision.v1p4beta1.Celebrity\022\022\n\ncon" + + "fidence\030\002 \001(\002B\204\001\n!com.google.cloud.visio" + + "n.v1p4beta1B\016CelebrityProtoP\001ZCgoogle.go" + + "lang.org/genproto/googleapis/cloud/visio" + + "n/v1p4beta1;vision\370\001\001\242\002\004GCVNb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_descriptor, + new java.lang.String[] { + "CelebritySet", + }); + internal_static_google_cloud_vision_v1p4beta1_Celebrity_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_vision_v1p4beta1_Celebrity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_Celebrity_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "Description", + }); + internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_descriptor, + new java.lang.String[] { + "Celebrity", "Confidence", + }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductRequest.java index 2181a6fe0..3a231c200 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductRequest.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductRequest.java @@ -136,12 +136,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The project in which the Product should be created.
+   * Required. The project in which the Product should be created.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -158,12 +160,14 @@ public java.lang.String getParent() { * * *
-   * The project in which the Product should be created.
+   * Required. The project in which the Product should be created.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -183,10 +187,12 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * The product to create.
+   * Required. The product to create.
    * 
* - * .google.cloud.vision.v1p4beta1.Product product = 2; + * + * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasProduct() { return product_ != null; @@ -195,10 +201,12 @@ public boolean hasProduct() { * * *
-   * The product to create.
+   * Required. The product to create.
    * 
* - * .google.cloud.vision.v1p4beta1.Product product = 2; + * + * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.Product getProduct() { return product_ == null @@ -209,10 +217,12 @@ public com.google.cloud.vision.v1p4beta1.Product getProduct() { * * *
-   * The product to create.
+   * Required. The product to create.
    * 
* - * .google.cloud.vision.v1p4beta1.Product product = 2; + * + * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductOrBuilder() { return getProduct(); @@ -635,12 +645,14 @@ public Builder mergeFrom( * * *
-     * The project in which the Product should be created.
+     * Required. The project in which the Product should be created.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -657,12 +669,14 @@ public java.lang.String getParent() { * * *
-     * The project in which the Product should be created.
+     * Required. The project in which the Product should be created.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -679,12 +693,14 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * The project in which the Product should be created.
+     * Required. The project in which the Product should be created.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -699,12 +715,14 @@ public Builder setParent(java.lang.String value) { * * *
-     * The project in which the Product should be created.
+     * Required. The project in which the Product should be created.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder clearParent() { @@ -716,12 +734,14 @@ public Builder clearParent() { * * *
-     * The project in which the Product should be created.
+     * Required. The project in which the Product should be created.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -744,10 +764,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * The product to create.
+     * Required. The product to create.
      * 
* - * .google.cloud.vision.v1p4beta1.Product product = 2; + * + * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasProduct() { return productBuilder_ != null || product_ != null; @@ -756,10 +778,12 @@ public boolean hasProduct() { * * *
-     * The product to create.
+     * Required. The product to create.
      * 
* - * .google.cloud.vision.v1p4beta1.Product product = 2; + * + * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.Product getProduct() { if (productBuilder_ == null) { @@ -774,10 +798,12 @@ public com.google.cloud.vision.v1p4beta1.Product getProduct() { * * *
-     * The product to create.
+     * Required. The product to create.
      * 
* - * .google.cloud.vision.v1p4beta1.Product product = 2; + * + * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setProduct(com.google.cloud.vision.v1p4beta1.Product value) { if (productBuilder_ == null) { @@ -796,10 +822,12 @@ public Builder setProduct(com.google.cloud.vision.v1p4beta1.Product value) { * * *
-     * The product to create.
+     * Required. The product to create.
      * 
* - * .google.cloud.vision.v1p4beta1.Product product = 2; + * + * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setProduct(com.google.cloud.vision.v1p4beta1.Product.Builder builderForValue) { if (productBuilder_ == null) { @@ -815,10 +843,12 @@ public Builder setProduct(com.google.cloud.vision.v1p4beta1.Product.Builder buil * * *
-     * The product to create.
+     * Required. The product to create.
      * 
* - * .google.cloud.vision.v1p4beta1.Product product = 2; + * + * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeProduct(com.google.cloud.vision.v1p4beta1.Product value) { if (productBuilder_ == null) { @@ -841,10 +871,12 @@ public Builder mergeProduct(com.google.cloud.vision.v1p4beta1.Product value) { * * *
-     * The product to create.
+     * Required. The product to create.
      * 
* - * .google.cloud.vision.v1p4beta1.Product product = 2; + * + * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearProduct() { if (productBuilder_ == null) { @@ -861,10 +893,12 @@ public Builder clearProduct() { * * *
-     * The product to create.
+     * Required. The product to create.
      * 
* - * .google.cloud.vision.v1p4beta1.Product product = 2; + * + * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.Product.Builder getProductBuilder() { @@ -875,10 +909,12 @@ public com.google.cloud.vision.v1p4beta1.Product.Builder getProductBuilder() { * * *
-     * The product to create.
+     * Required. The product to create.
      * 
* - * .google.cloud.vision.v1p4beta1.Product product = 2; + * + * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductOrBuilder() { if (productBuilder_ != null) { @@ -893,10 +929,12 @@ public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductOrBuilder() * * *
-     * The product to create.
+     * Required. The product to create.
      * 
* - * .google.cloud.vision.v1p4beta1.Product product = 2; + * + * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.vision.v1p4beta1.Product, diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductRequestOrBuilder.java index 3151547e9..e6d67518f 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductRequestOrBuilder.java @@ -27,24 +27,28 @@ public interface CreateProductRequestOrBuilder * * *
-   * The project in which the Product should be created.
+   * Required. The project in which the Product should be created.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ java.lang.String getParent(); /** * * *
-   * The project in which the Product should be created.
+   * Required. The project in which the Product should be created.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ com.google.protobuf.ByteString getParentBytes(); @@ -52,30 +56,36 @@ public interface CreateProductRequestOrBuilder * * *
-   * The product to create.
+   * Required. The product to create.
    * 
* - * .google.cloud.vision.v1p4beta1.Product product = 2; + * + * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ boolean hasProduct(); /** * * *
-   * The product to create.
+   * Required. The product to create.
    * 
* - * .google.cloud.vision.v1p4beta1.Product product = 2; + * + * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1p4beta1.Product getProduct(); /** * * *
-   * The product to create.
+   * Required. The product to create.
    * 
* - * .google.cloud.vision.v1p4beta1.Product product = 2; + * + * .google.cloud.vision.v1p4beta1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductOrBuilder(); diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductSetRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductSetRequest.java index 3767a33d2..55ca3bd34 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductSetRequest.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductSetRequest.java @@ -136,11 +136,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The project in which the ProductSet should be created.
+   * Required. The project in which the ProductSet should be created.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -157,11 +159,13 @@ public java.lang.String getParent() { * * *
-   * The project in which the ProductSet should be created.
+   * Required. The project in which the ProductSet should be created.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -181,10 +185,12 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * The ProductSet to create.
+   * Required. The ProductSet to create.
    * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasProductSet() { return productSet_ != null; @@ -193,10 +199,12 @@ public boolean hasProductSet() { * * *
-   * The ProductSet to create.
+   * Required. The ProductSet to create.
    * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.ProductSet getProductSet() { return productSet_ == null @@ -207,10 +215,12 @@ public com.google.cloud.vision.v1p4beta1.ProductSet getProductSet() { * * *
-   * The ProductSet to create.
+   * Required. The ProductSet to create.
    * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetOrBuilder() { return getProductSet(); @@ -633,11 +643,13 @@ public Builder mergeFrom( * * *
-     * The project in which the ProductSet should be created.
+     * Required. The project in which the ProductSet should be created.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -654,11 +666,13 @@ public java.lang.String getParent() { * * *
-     * The project in which the ProductSet should be created.
+     * Required. The project in which the ProductSet should be created.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -675,11 +689,13 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * The project in which the ProductSet should be created.
+     * Required. The project in which the ProductSet should be created.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -694,11 +710,13 @@ public Builder setParent(java.lang.String value) { * * *
-     * The project in which the ProductSet should be created.
+     * Required. The project in which the ProductSet should be created.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder clearParent() { @@ -710,11 +728,13 @@ public Builder clearParent() { * * *
-     * The project in which the ProductSet should be created.
+     * Required. The project in which the ProductSet should be created.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -737,10 +757,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * The ProductSet to create.
+     * Required. The ProductSet to create.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasProductSet() { return productSetBuilder_ != null || productSet_ != null; @@ -749,10 +771,12 @@ public boolean hasProductSet() { * * *
-     * The ProductSet to create.
+     * Required. The ProductSet to create.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.ProductSet getProductSet() { if (productSetBuilder_ == null) { @@ -767,10 +791,12 @@ public com.google.cloud.vision.v1p4beta1.ProductSet getProductSet() { * * *
-     * The ProductSet to create.
+     * Required. The ProductSet to create.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setProductSet(com.google.cloud.vision.v1p4beta1.ProductSet value) { if (productSetBuilder_ == null) { @@ -789,10 +815,12 @@ public Builder setProductSet(com.google.cloud.vision.v1p4beta1.ProductSet value) * * *
-     * The ProductSet to create.
+     * Required. The ProductSet to create.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setProductSet( com.google.cloud.vision.v1p4beta1.ProductSet.Builder builderForValue) { @@ -809,10 +837,12 @@ public Builder setProductSet( * * *
-     * The ProductSet to create.
+     * Required. The ProductSet to create.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeProductSet(com.google.cloud.vision.v1p4beta1.ProductSet value) { if (productSetBuilder_ == null) { @@ -835,10 +865,12 @@ public Builder mergeProductSet(com.google.cloud.vision.v1p4beta1.ProductSet valu * * *
-     * The ProductSet to create.
+     * Required. The ProductSet to create.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearProductSet() { if (productSetBuilder_ == null) { @@ -855,10 +887,12 @@ public Builder clearProductSet() { * * *
-     * The ProductSet to create.
+     * Required. The ProductSet to create.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.ProductSet.Builder getProductSetBuilder() { @@ -869,10 +903,12 @@ public com.google.cloud.vision.v1p4beta1.ProductSet.Builder getProductSetBuilder * * *
-     * The ProductSet to create.
+     * Required. The ProductSet to create.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetOrBuilder() { if (productSetBuilder_ != null) { @@ -887,10 +923,12 @@ public com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetOrBuil * * *
-     * The ProductSet to create.
+     * Required. The ProductSet to create.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.vision.v1p4beta1.ProductSet, diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductSetRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductSetRequestOrBuilder.java index ed293296a..c1cde011b 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductSetRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateProductSetRequestOrBuilder.java @@ -27,22 +27,26 @@ public interface CreateProductSetRequestOrBuilder * * *
-   * The project in which the ProductSet should be created.
+   * Required. The project in which the ProductSet should be created.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ java.lang.String getParent(); /** * * *
-   * The project in which the ProductSet should be created.
+   * Required. The project in which the ProductSet should be created.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ com.google.protobuf.ByteString getParentBytes(); @@ -50,30 +54,36 @@ public interface CreateProductSetRequestOrBuilder * * *
-   * The ProductSet to create.
+   * Required. The ProductSet to create.
    * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ boolean hasProductSet(); /** * * *
-   * The ProductSet to create.
+   * Required. The ProductSet to create.
    * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1p4beta1.ProductSet getProductSet(); /** * * *
-   * The ProductSet to create.
+   * Required. The ProductSet to create.
    * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetOrBuilder(); diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateReferenceImageRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateReferenceImageRequest.java index 9330f9367..d2f61546a 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateReferenceImageRequest.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateReferenceImageRequest.java @@ -136,12 +136,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Resource name of the product in which to create the reference image.
+   * Required. Resource name of the product in which to create the reference
+   * image.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -158,12 +161,15 @@ public java.lang.String getParent() { * * *
-   * Resource name of the product in which to create the reference image.
+   * Required. Resource name of the product in which to create the reference
+   * image.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -183,11 +189,13 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * The reference image to create.
+   * Required. The reference image to create.
    * If an image ID is specified, it is ignored.
    * 
* - * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2; + * + * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasReferenceImage() { return referenceImage_ != null; @@ -196,11 +204,13 @@ public boolean hasReferenceImage() { * * *
-   * The reference image to create.
+   * Required. The reference image to create.
    * If an image ID is specified, it is ignored.
    * 
* - * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2; + * + * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.ReferenceImage getReferenceImage() { return referenceImage_ == null @@ -211,11 +221,13 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImage getReferenceImage() { * * *
-   * The reference image to create.
+   * Required. The reference image to create.
    * If an image ID is specified, it is ignored.
    * 
* - * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2; + * + * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceImageOrBuilder() { return getReferenceImage(); @@ -641,12 +653,15 @@ public Builder mergeFrom( * * *
-     * Resource name of the product in which to create the reference image.
+     * Required. Resource name of the product in which to create the reference
+     * image.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -663,12 +678,15 @@ public java.lang.String getParent() { * * *
-     * Resource name of the product in which to create the reference image.
+     * Required. Resource name of the product in which to create the reference
+     * image.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -685,12 +703,15 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Resource name of the product in which to create the reference image.
+     * Required. Resource name of the product in which to create the reference
+     * image.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -705,12 +726,15 @@ public Builder setParent(java.lang.String value) { * * *
-     * Resource name of the product in which to create the reference image.
+     * Required. Resource name of the product in which to create the reference
+     * image.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder clearParent() { @@ -722,12 +746,15 @@ public Builder clearParent() { * * *
-     * Resource name of the product in which to create the reference image.
+     * Required. Resource name of the product in which to create the reference
+     * image.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -750,11 +777,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * The reference image to create.
+     * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2; + * + * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasReferenceImage() { return referenceImageBuilder_ != null || referenceImage_ != null; @@ -763,11 +792,13 @@ public boolean hasReferenceImage() { * * *
-     * The reference image to create.
+     * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2; + * + * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.ReferenceImage getReferenceImage() { if (referenceImageBuilder_ == null) { @@ -782,11 +813,13 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImage getReferenceImage() { * * *
-     * The reference image to create.
+     * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2; + * + * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setReferenceImage(com.google.cloud.vision.v1p4beta1.ReferenceImage value) { if (referenceImageBuilder_ == null) { @@ -805,11 +838,13 @@ public Builder setReferenceImage(com.google.cloud.vision.v1p4beta1.ReferenceImag * * *
-     * The reference image to create.
+     * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2; + * + * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setReferenceImage( com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder builderForValue) { @@ -826,11 +861,13 @@ public Builder setReferenceImage( * * *
-     * The reference image to create.
+     * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2; + * + * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeReferenceImage(com.google.cloud.vision.v1p4beta1.ReferenceImage value) { if (referenceImageBuilder_ == null) { @@ -853,11 +890,13 @@ public Builder mergeReferenceImage(com.google.cloud.vision.v1p4beta1.ReferenceIm * * *
-     * The reference image to create.
+     * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2; + * + * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearReferenceImage() { if (referenceImageBuilder_ == null) { @@ -874,11 +913,13 @@ public Builder clearReferenceImage() { * * *
-     * The reference image to create.
+     * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2; + * + * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder getReferenceImageBuilder() { @@ -889,11 +930,13 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImage.Builder getReferenceImag * * *
-     * The reference image to create.
+     * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2; + * + * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceImageOrBuilder() { if (referenceImageBuilder_ != null) { @@ -908,11 +951,13 @@ public com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceIma * * *
-     * The reference image to create.
+     * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2; + * + * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.vision.v1p4beta1.ReferenceImage, diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateReferenceImageRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateReferenceImageRequestOrBuilder.java index 01157475b..e650c5cea 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateReferenceImageRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/CreateReferenceImageRequestOrBuilder.java @@ -27,24 +27,30 @@ public interface CreateReferenceImageRequestOrBuilder * * *
-   * Resource name of the product in which to create the reference image.
+   * Required. Resource name of the product in which to create the reference
+   * image.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ java.lang.String getParent(); /** * * *
-   * Resource name of the product in which to create the reference image.
+   * Required. Resource name of the product in which to create the reference
+   * image.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ com.google.protobuf.ByteString getParentBytes(); @@ -52,33 +58,39 @@ public interface CreateReferenceImageRequestOrBuilder * * *
-   * The reference image to create.
+   * Required. The reference image to create.
    * If an image ID is specified, it is ignored.
    * 
* - * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2; + * + * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ boolean hasReferenceImage(); /** * * *
-   * The reference image to create.
+   * Required. The reference image to create.
    * If an image ID is specified, it is ignored.
    * 
* - * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2; + * + * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1p4beta1.ReferenceImage getReferenceImage(); /** * * *
-   * The reference image to create.
+   * Required. The reference image to create.
    * If an image ID is specified, it is ignored.
    * 
* - * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2; + * + * .google.cloud.vision.v1p4beta1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1p4beta1.ReferenceImageOrBuilder getReferenceImageOrBuilder(); diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductRequest.java index 5e80aaf15..fe9eae143 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductRequest.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductRequest.java @@ -112,12 +112,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Resource name of product to delete.
+   * Required. Resource name of product to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -134,12 +136,14 @@ public java.lang.String getName() { * * *
-   * Resource name of product to delete.
+   * Required. Resource name of product to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -477,12 +481,14 @@ public Builder mergeFrom( * * *
-     * Resource name of product to delete.
+     * Required. Resource name of product to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -499,12 +505,14 @@ public java.lang.String getName() { * * *
-     * Resource name of product to delete.
+     * Required. Resource name of product to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -521,12 +529,14 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Resource name of product to delete.
+     * Required. Resource name of product to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setName(java.lang.String value) { if (value == null) { @@ -541,12 +551,14 @@ public Builder setName(java.lang.String value) { * * *
-     * Resource name of product to delete.
+     * Required. Resource name of product to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder clearName() { @@ -558,12 +570,14 @@ public Builder clearName() { * * *
-     * Resource name of product to delete.
+     * Required. Resource name of product to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductRequestOrBuilder.java index c24489af5..145aeb231 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductRequestOrBuilder.java @@ -27,24 +27,28 @@ public interface DeleteProductRequestOrBuilder * * *
-   * Resource name of product to delete.
+   * Required. Resource name of product to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ java.lang.String getName(); /** * * *
-   * Resource name of product to delete.
+   * Required. Resource name of product to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductSetRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductSetRequest.java index 85965e14c..f5ecb78b5 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductSetRequest.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductSetRequest.java @@ -112,12 +112,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Resource name of the ProductSet to delete.
+   * Required. Resource name of the ProductSet to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -134,12 +136,14 @@ public java.lang.String getName() { * * *
-   * Resource name of the ProductSet to delete.
+   * Required. Resource name of the ProductSet to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -477,12 +481,14 @@ public Builder mergeFrom( * * *
-     * Resource name of the ProductSet to delete.
+     * Required. Resource name of the ProductSet to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -499,12 +505,14 @@ public java.lang.String getName() { * * *
-     * Resource name of the ProductSet to delete.
+     * Required. Resource name of the ProductSet to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -521,12 +529,14 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Resource name of the ProductSet to delete.
+     * Required. Resource name of the ProductSet to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setName(java.lang.String value) { if (value == null) { @@ -541,12 +551,14 @@ public Builder setName(java.lang.String value) { * * *
-     * Resource name of the ProductSet to delete.
+     * Required. Resource name of the ProductSet to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder clearName() { @@ -558,12 +570,14 @@ public Builder clearName() { * * *
-     * Resource name of the ProductSet to delete.
+     * Required. Resource name of the ProductSet to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductSetRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductSetRequestOrBuilder.java index adf7ac870..251cff374 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductSetRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteProductSetRequestOrBuilder.java @@ -27,24 +27,28 @@ public interface DeleteProductSetRequestOrBuilder * * *
-   * Resource name of the ProductSet to delete.
+   * Required. Resource name of the ProductSet to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ java.lang.String getName(); /** * * *
-   * Resource name of the ProductSet to delete.
+   * Required. Resource name of the ProductSet to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteReferenceImageRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteReferenceImageRequest.java index da88cac17..edd793df1 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteReferenceImageRequest.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteReferenceImageRequest.java @@ -112,12 +112,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The resource name of the reference image to delete.
+   * Required. The resource name of the reference image to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -134,12 +136,14 @@ public java.lang.String getName() { * * *
-   * The resource name of the reference image to delete.
+   * Required. The resource name of the reference image to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -480,12 +484,14 @@ public Builder mergeFrom( * * *
-     * The resource name of the reference image to delete.
+     * Required. The resource name of the reference image to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -502,12 +508,14 @@ public java.lang.String getName() { * * *
-     * The resource name of the reference image to delete.
+     * Required. The resource name of the reference image to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -524,12 +532,14 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * The resource name of the reference image to delete.
+     * Required. The resource name of the reference image to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setName(java.lang.String value) { if (value == null) { @@ -544,12 +554,14 @@ public Builder setName(java.lang.String value) { * * *
-     * The resource name of the reference image to delete.
+     * Required. The resource name of the reference image to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder clearName() { @@ -561,12 +573,14 @@ public Builder clearName() { * * *
-     * The resource name of the reference image to delete.
+     * Required. The resource name of the reference image to delete.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteReferenceImageRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteReferenceImageRequestOrBuilder.java index 647ff3837..f4fef2710 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteReferenceImageRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/DeleteReferenceImageRequestOrBuilder.java @@ -27,24 +27,28 @@ public interface DeleteReferenceImageRequestOrBuilder * * *
-   * The resource name of the reference image to delete.
+   * Required. The resource name of the reference image to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ java.lang.String getName(); /** * * *
-   * The resource name of the reference image to delete.
+   * Required. The resource name of the reference image to delete.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceAnnotation.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceAnnotation.java index d5a7d65b0..5a7418409 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceAnnotation.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceAnnotation.java @@ -46,6 +46,7 @@ private FaceAnnotation() { underExposedLikelihood_ = 0; blurredLikelihood_ = 0; headwearLikelihood_ = 0; + recognitionResult_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -192,6 +193,20 @@ private FaceAnnotation( headwearLikelihood_ = rawValue; break; } + case 130: + { + if (!((mutable_bitField0_ & 0x00008000) != 0)) { + recognitionResult_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult>(); + mutable_bitField0_ |= 0x00008000; + } + recognitionResult_.add( + input.readMessage( + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.parser(), + extensionRegistry)); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -209,6 +224,9 @@ private FaceAnnotation( if (((mutable_bitField0_ & 0x00000004) != 0)) { landmarks_ = java.util.Collections.unmodifiableList(landmarks_); } + if (((mutable_bitField0_ & 0x00008000) != 0)) { + recognitionResult_ = java.util.Collections.unmodifiableList(recognitionResult_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -2456,6 +2474,98 @@ public com.google.cloud.vision.v1p4beta1.Likelihood getHeadwearLikelihood() { return result == null ? com.google.cloud.vision.v1p4beta1.Likelihood.UNRECOGNIZED : result; } + public static final int RECOGNITION_RESULT_FIELD_NUMBER = 16; + private java.util.List + recognitionResult_; + /** + * + * + *
+   * Additional recognition information. Only computed if
+   * image_context.face_recognition_params is provided, **and** a match is found
+   * to a [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] in the input
+   * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]. This field is
+   * sorted in order of decreasing confidence values.
+   * 
+ * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * + */ + public java.util.List + getRecognitionResultList() { + return recognitionResult_; + } + /** + * + * + *
+   * Additional recognition information. Only computed if
+   * image_context.face_recognition_params is provided, **and** a match is found
+   * to a [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] in the input
+   * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]. This field is
+   * sorted in order of decreasing confidence values.
+   * 
+ * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * + */ + public java.util.List + getRecognitionResultOrBuilderList() { + return recognitionResult_; + } + /** + * + * + *
+   * Additional recognition information. Only computed if
+   * image_context.face_recognition_params is provided, **and** a match is found
+   * to a [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] in the input
+   * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]. This field is
+   * sorted in order of decreasing confidence values.
+   * 
+ * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * + */ + public int getRecognitionResultCount() { + return recognitionResult_.size(); + } + /** + * + * + *
+   * Additional recognition information. Only computed if
+   * image_context.face_recognition_params is provided, **and** a match is found
+   * to a [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] in the input
+   * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]. This field is
+   * sorted in order of decreasing confidence values.
+   * 
+ * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * + */ + public com.google.cloud.vision.v1p4beta1.FaceRecognitionResult getRecognitionResult(int index) { + return recognitionResult_.get(index); + } + /** + * + * + *
+   * Additional recognition information. Only computed if
+   * image_context.face_recognition_params is provided, **and** a match is found
+   * to a [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] in the input
+   * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]. This field is
+   * sorted in order of decreasing confidence values.
+   * 
+ * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * + */ + public com.google.cloud.vision.v1p4beta1.FaceRecognitionResultOrBuilder + getRecognitionResultOrBuilder(int index) { + return recognitionResult_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2516,6 +2626,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (headwearLikelihood_ != com.google.cloud.vision.v1p4beta1.Likelihood.UNKNOWN.getNumber()) { output.writeEnum(15, headwearLikelihood_); } + for (int i = 0; i < recognitionResult_.size(); i++) { + output.writeMessage(16, recognitionResult_.get(i)); + } unknownFields.writeTo(output); } @@ -2571,6 +2684,10 @@ public int getSerializedSize() { if (headwearLikelihood_ != com.google.cloud.vision.v1p4beta1.Likelihood.UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, headwearLikelihood_); } + for (int i = 0; i < recognitionResult_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(16, recognitionResult_.get(i)); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -2613,6 +2730,7 @@ public boolean equals(final java.lang.Object obj) { if (underExposedLikelihood_ != other.underExposedLikelihood_) return false; if (blurredLikelihood_ != other.blurredLikelihood_) return false; if (headwearLikelihood_ != other.headwearLikelihood_) return false; + if (!getRecognitionResultList().equals(other.getRecognitionResultList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2660,6 +2778,10 @@ public int hashCode() { hash = (53 * hash) + blurredLikelihood_; hash = (37 * hash) + HEADWEAR_LIKELIHOOD_FIELD_NUMBER; hash = (53 * hash) + headwearLikelihood_; + if (getRecognitionResultCount() > 0) { + hash = (37 * hash) + RECOGNITION_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getRecognitionResultList().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -2801,6 +2923,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getLandmarksFieldBuilder(); + getRecognitionResultFieldBuilder(); } } @@ -2849,6 +2972,12 @@ public Builder clear() { headwearLikelihood_ = 0; + if (recognitionResultBuilder_ == null) { + recognitionResult_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00008000); + } else { + recognitionResultBuilder_.clear(); + } return this; } @@ -2909,6 +3038,15 @@ public com.google.cloud.vision.v1p4beta1.FaceAnnotation buildPartial() { result.underExposedLikelihood_ = underExposedLikelihood_; result.blurredLikelihood_ = blurredLikelihood_; result.headwearLikelihood_ = headwearLikelihood_; + if (recognitionResultBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0)) { + recognitionResult_ = java.util.Collections.unmodifiableList(recognitionResult_); + bitField0_ = (bitField0_ & ~0x00008000); + } + result.recognitionResult_ = recognitionResult_; + } else { + result.recognitionResult_ = recognitionResultBuilder_.build(); + } result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -3029,6 +3167,33 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.FaceAnnotation other) if (other.headwearLikelihood_ != 0) { setHeadwearLikelihoodValue(other.getHeadwearLikelihoodValue()); } + if (recognitionResultBuilder_ == null) { + if (!other.recognitionResult_.isEmpty()) { + if (recognitionResult_.isEmpty()) { + recognitionResult_ = other.recognitionResult_; + bitField0_ = (bitField0_ & ~0x00008000); + } else { + ensureRecognitionResultIsMutable(); + recognitionResult_.addAll(other.recognitionResult_); + } + onChanged(); + } + } else { + if (!other.recognitionResult_.isEmpty()) { + if (recognitionResultBuilder_.isEmpty()) { + recognitionResultBuilder_.dispose(); + recognitionResultBuilder_ = null; + recognitionResult_ = other.recognitionResult_; + bitField0_ = (bitField0_ & ~0x00008000); + recognitionResultBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRecognitionResultFieldBuilder() + : null; + } else { + recognitionResultBuilder_.addAllMessages(other.recognitionResult_); + } + } + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -4655,6 +4820,464 @@ public Builder clearHeadwearLikelihood() { return this; } + private java.util.List + recognitionResult_ = java.util.Collections.emptyList(); + + private void ensureRecognitionResultIsMutable() { + if (!((bitField0_ & 0x00008000) != 0)) { + recognitionResult_ = + new java.util.ArrayList( + recognitionResult_); + bitField0_ |= 0x00008000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult, + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder, + com.google.cloud.vision.v1p4beta1.FaceRecognitionResultOrBuilder> + recognitionResultBuilder_; + + /** + * + * + *
+     * Additional recognition information. Only computed if
+     * image_context.face_recognition_params is provided, **and** a match is found
+     * to a [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] in the input
+     * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]. This field is
+     * sorted in order of decreasing confidence values.
+     * 
+ * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * + */ + public java.util.List + getRecognitionResultList() { + if (recognitionResultBuilder_ == null) { + return java.util.Collections.unmodifiableList(recognitionResult_); + } else { + return recognitionResultBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Additional recognition information. Only computed if
+     * image_context.face_recognition_params is provided, **and** a match is found
+     * to a [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] in the input
+     * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]. This field is
+     * sorted in order of decreasing confidence values.
+     * 
+ * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * + */ + public int getRecognitionResultCount() { + if (recognitionResultBuilder_ == null) { + return recognitionResult_.size(); + } else { + return recognitionResultBuilder_.getCount(); + } + } + /** + * + * + *
+     * Additional recognition information. Only computed if
+     * image_context.face_recognition_params is provided, **and** a match is found
+     * to a [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] in the input
+     * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]. This field is
+     * sorted in order of decreasing confidence values.
+     * 
+ * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * + */ + public com.google.cloud.vision.v1p4beta1.FaceRecognitionResult getRecognitionResult(int index) { + if (recognitionResultBuilder_ == null) { + return recognitionResult_.get(index); + } else { + return recognitionResultBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Additional recognition information. Only computed if
+     * image_context.face_recognition_params is provided, **and** a match is found
+     * to a [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] in the input
+     * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]. This field is
+     * sorted in order of decreasing confidence values.
+     * 
+ * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * + */ + public Builder setRecognitionResult( + int index, com.google.cloud.vision.v1p4beta1.FaceRecognitionResult value) { + if (recognitionResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecognitionResultIsMutable(); + recognitionResult_.set(index, value); + onChanged(); + } else { + recognitionResultBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Additional recognition information. Only computed if
+     * image_context.face_recognition_params is provided, **and** a match is found
+     * to a [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] in the input
+     * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]. This field is
+     * sorted in order of decreasing confidence values.
+     * 
+ * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * + */ + public Builder setRecognitionResult( + int index, + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder builderForValue) { + if (recognitionResultBuilder_ == null) { + ensureRecognitionResultIsMutable(); + recognitionResult_.set(index, builderForValue.build()); + onChanged(); + } else { + recognitionResultBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Additional recognition information. Only computed if
+     * image_context.face_recognition_params is provided, **and** a match is found
+     * to a [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] in the input
+     * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]. This field is
+     * sorted in order of decreasing confidence values.
+     * 
+ * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * + */ + public Builder addRecognitionResult( + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult value) { + if (recognitionResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecognitionResultIsMutable(); + recognitionResult_.add(value); + onChanged(); + } else { + recognitionResultBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Additional recognition information. Only computed if
+     * image_context.face_recognition_params is provided, **and** a match is found
+     * to a [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] in the input
+     * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]. This field is
+     * sorted in order of decreasing confidence values.
+     * 
+ * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * + */ + public Builder addRecognitionResult( + int index, com.google.cloud.vision.v1p4beta1.FaceRecognitionResult value) { + if (recognitionResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecognitionResultIsMutable(); + recognitionResult_.add(index, value); + onChanged(); + } else { + recognitionResultBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Additional recognition information. Only computed if
+     * image_context.face_recognition_params is provided, **and** a match is found
+     * to a [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] in the input
+     * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]. This field is
+     * sorted in order of decreasing confidence values.
+     * 
+ * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * + */ + public Builder addRecognitionResult( + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder builderForValue) { + if (recognitionResultBuilder_ == null) { + ensureRecognitionResultIsMutable(); + recognitionResult_.add(builderForValue.build()); + onChanged(); + } else { + recognitionResultBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Additional recognition information. Only computed if
+     * image_context.face_recognition_params is provided, **and** a match is found
+     * to a [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] in the input
+     * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]. This field is
+     * sorted in order of decreasing confidence values.
+     * 
+ * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * + */ + public Builder addRecognitionResult( + int index, + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder builderForValue) { + if (recognitionResultBuilder_ == null) { + ensureRecognitionResultIsMutable(); + recognitionResult_.add(index, builderForValue.build()); + onChanged(); + } else { + recognitionResultBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Additional recognition information. Only computed if
+     * image_context.face_recognition_params is provided, **and** a match is found
+     * to a [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] in the input
+     * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]. This field is
+     * sorted in order of decreasing confidence values.
+     * 
+ * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * + */ + public Builder addAllRecognitionResult( + java.lang.Iterable + values) { + if (recognitionResultBuilder_ == null) { + ensureRecognitionResultIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, recognitionResult_); + onChanged(); + } else { + recognitionResultBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Additional recognition information. Only computed if
+     * image_context.face_recognition_params is provided, **and** a match is found
+     * to a [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] in the input
+     * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]. This field is
+     * sorted in order of decreasing confidence values.
+     * 
+ * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * + */ + public Builder clearRecognitionResult() { + if (recognitionResultBuilder_ == null) { + recognitionResult_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00008000); + onChanged(); + } else { + recognitionResultBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Additional recognition information. Only computed if
+     * image_context.face_recognition_params is provided, **and** a match is found
+     * to a [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] in the input
+     * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]. This field is
+     * sorted in order of decreasing confidence values.
+     * 
+ * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * + */ + public Builder removeRecognitionResult(int index) { + if (recognitionResultBuilder_ == null) { + ensureRecognitionResultIsMutable(); + recognitionResult_.remove(index); + onChanged(); + } else { + recognitionResultBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Additional recognition information. Only computed if
+     * image_context.face_recognition_params is provided, **and** a match is found
+     * to a [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] in the input
+     * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]. This field is
+     * sorted in order of decreasing confidence values.
+     * 
+ * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * + */ + public com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder + getRecognitionResultBuilder(int index) { + return getRecognitionResultFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Additional recognition information. Only computed if
+     * image_context.face_recognition_params is provided, **and** a match is found
+     * to a [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] in the input
+     * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]. This field is
+     * sorted in order of decreasing confidence values.
+     * 
+ * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * + */ + public com.google.cloud.vision.v1p4beta1.FaceRecognitionResultOrBuilder + getRecognitionResultOrBuilder(int index) { + if (recognitionResultBuilder_ == null) { + return recognitionResult_.get(index); + } else { + return recognitionResultBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Additional recognition information. Only computed if
+     * image_context.face_recognition_params is provided, **and** a match is found
+     * to a [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] in the input
+     * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]. This field is
+     * sorted in order of decreasing confidence values.
+     * 
+ * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * + */ + public java.util.List< + ? extends com.google.cloud.vision.v1p4beta1.FaceRecognitionResultOrBuilder> + getRecognitionResultOrBuilderList() { + if (recognitionResultBuilder_ != null) { + return recognitionResultBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(recognitionResult_); + } + } + /** + * + * + *
+     * Additional recognition information. Only computed if
+     * image_context.face_recognition_params is provided, **and** a match is found
+     * to a [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] in the input
+     * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]. This field is
+     * sorted in order of decreasing confidence values.
+     * 
+ * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * + */ + public com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder + addRecognitionResultBuilder() { + return getRecognitionResultFieldBuilder() + .addBuilder(com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.getDefaultInstance()); + } + /** + * + * + *
+     * Additional recognition information. Only computed if
+     * image_context.face_recognition_params is provided, **and** a match is found
+     * to a [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] in the input
+     * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]. This field is
+     * sorted in order of decreasing confidence values.
+     * 
+ * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * + */ + public com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder + addRecognitionResultBuilder(int index) { + return getRecognitionResultFieldBuilder() + .addBuilder( + index, com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.getDefaultInstance()); + } + /** + * + * + *
+     * Additional recognition information. Only computed if
+     * image_context.face_recognition_params is provided, **and** a match is found
+     * to a [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] in the input
+     * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]. This field is
+     * sorted in order of decreasing confidence values.
+     * 
+ * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * + */ + public java.util.List + getRecognitionResultBuilderList() { + return getRecognitionResultFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult, + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder, + com.google.cloud.vision.v1p4beta1.FaceRecognitionResultOrBuilder> + getRecognitionResultFieldBuilder() { + if (recognitionResultBuilder_ == null) { + recognitionResultBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult, + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder, + com.google.cloud.vision.v1p4beta1.FaceRecognitionResultOrBuilder>( + recognitionResult_, + ((bitField0_ & 0x00008000) != 0), + getParentForChildren(), + isClean()); + recognitionResult_ = null; + } + return recognitionResultBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceAnnotationOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceAnnotationOrBuilder.java index 415a26d99..759f0b2ec 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceAnnotationOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceAnnotationOrBuilder.java @@ -377,4 +377,83 @@ com.google.cloud.vision.v1p4beta1.FaceAnnotation.LandmarkOrBuilder getLandmarksO * .google.cloud.vision.v1p4beta1.Likelihood headwear_likelihood = 15; */ com.google.cloud.vision.v1p4beta1.Likelihood getHeadwearLikelihood(); + + /** + * + * + *
+   * Additional recognition information. Only computed if
+   * image_context.face_recognition_params is provided, **and** a match is found
+   * to a [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] in the input
+   * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]. This field is
+   * sorted in order of decreasing confidence values.
+   * 
+ * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * + */ + java.util.List + getRecognitionResultList(); + /** + * + * + *
+   * Additional recognition information. Only computed if
+   * image_context.face_recognition_params is provided, **and** a match is found
+   * to a [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] in the input
+   * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]. This field is
+   * sorted in order of decreasing confidence values.
+   * 
+ * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * + */ + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult getRecognitionResult(int index); + /** + * + * + *
+   * Additional recognition information. Only computed if
+   * image_context.face_recognition_params is provided, **and** a match is found
+   * to a [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] in the input
+   * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]. This field is
+   * sorted in order of decreasing confidence values.
+   * 
+ * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * + */ + int getRecognitionResultCount(); + /** + * + * + *
+   * Additional recognition information. Only computed if
+   * image_context.face_recognition_params is provided, **and** a match is found
+   * to a [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] in the input
+   * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]. This field is
+   * sorted in order of decreasing confidence values.
+   * 
+ * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * + */ + java.util.List + getRecognitionResultOrBuilderList(); + /** + * + * + *
+   * Additional recognition information. Only computed if
+   * image_context.face_recognition_params is provided, **and** a match is found
+   * to a [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] in the input
+   * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]. This field is
+   * sorted in order of decreasing confidence values.
+   * 
+ * + * repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16; + * + */ + com.google.cloud.vision.v1p4beta1.FaceRecognitionResultOrBuilder getRecognitionResultOrBuilder( + int index); } diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionParams.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionParams.java new file mode 100644 index 000000000..741243be8 --- /dev/null +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionParams.java @@ -0,0 +1,749 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/face.proto + +package com.google.cloud.vision.v1p4beta1; + +/** + * + * + *
+ * Parameters for a celebrity recognition request.
+ * 
+ * + * Protobuf type {@code google.cloud.vision.v1p4beta1.FaceRecognitionParams} + */ +public final class FaceRecognitionParams extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.FaceRecognitionParams) + FaceRecognitionParamsOrBuilder { + private static final long serialVersionUID = 0L; + // Use FaceRecognitionParams.newBuilder() to construct. + private FaceRecognitionParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FaceRecognitionParams() { + celebritySet_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FaceRecognitionParams( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + celebritySet_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + celebritySet_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + celebritySet_ = celebritySet_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.CelebrityProto + .internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vision.v1p4beta1.CelebrityProto + .internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.class, + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.Builder.class); + } + + public static final int CELEBRITY_SET_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList celebritySet_; + /** + * + * + *
+   * The resource names for one or more
+   * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
+   * set is preloaded and can be specified as "builtin/default". If this is
+   * specified, the algorithm will try to match the faces detected in the input
+   * image to the Celebrities in the CelebritySets.
+   * 
+ * + * repeated string celebrity_set = 1; + */ + public com.google.protobuf.ProtocolStringList getCelebritySetList() { + return celebritySet_; + } + /** + * + * + *
+   * The resource names for one or more
+   * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
+   * set is preloaded and can be specified as "builtin/default". If this is
+   * specified, the algorithm will try to match the faces detected in the input
+   * image to the Celebrities in the CelebritySets.
+   * 
+ * + * repeated string celebrity_set = 1; + */ + public int getCelebritySetCount() { + return celebritySet_.size(); + } + /** + * + * + *
+   * The resource names for one or more
+   * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
+   * set is preloaded and can be specified as "builtin/default". If this is
+   * specified, the algorithm will try to match the faces detected in the input
+   * image to the Celebrities in the CelebritySets.
+   * 
+ * + * repeated string celebrity_set = 1; + */ + public java.lang.String getCelebritySet(int index) { + return celebritySet_.get(index); + } + /** + * + * + *
+   * The resource names for one or more
+   * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
+   * set is preloaded and can be specified as "builtin/default". If this is
+   * specified, the algorithm will try to match the faces detected in the input
+   * image to the Celebrities in the CelebritySets.
+   * 
+ * + * repeated string celebrity_set = 1; + */ + public com.google.protobuf.ByteString getCelebritySetBytes(int index) { + return celebritySet_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < celebritySet_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, celebritySet_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < celebritySet_.size(); i++) { + dataSize += computeStringSizeNoTag(celebritySet_.getRaw(i)); + } + size += dataSize; + size += 1 * getCelebritySetList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vision.v1p4beta1.FaceRecognitionParams)) { + return super.equals(obj); + } + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams other = + (com.google.cloud.vision.v1p4beta1.FaceRecognitionParams) obj; + + if (!getCelebritySetList().equals(other.getCelebritySetList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getCelebritySetCount() > 0) { + hash = (37 * hash) + CELEBRITY_SET_FIELD_NUMBER; + hash = (53 * hash) + getCelebritySetList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionParams parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionParams parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionParams parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionParams parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionParams parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionParams parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionParams parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionParams parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionParams parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionParams parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionParams parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Parameters for a celebrity recognition request.
+   * 
+ * + * Protobuf type {@code google.cloud.vision.v1p4beta1.FaceRecognitionParams} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.FaceRecognitionParams) + com.google.cloud.vision.v1p4beta1.FaceRecognitionParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.CelebrityProto + .internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vision.v1p4beta1.CelebrityProto + .internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.class, + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.Builder.class); + } + + // Construct using com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + celebritySet_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.CelebrityProto + .internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionParams_descriptor; + } + + @java.lang.Override + public com.google.cloud.vision.v1p4beta1.FaceRecognitionParams getDefaultInstanceForType() { + return com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vision.v1p4beta1.FaceRecognitionParams build() { + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vision.v1p4beta1.FaceRecognitionParams buildPartial() { + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams result = + new com.google.cloud.vision.v1p4beta1.FaceRecognitionParams(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + celebritySet_ = celebritySet_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.celebritySet_ = celebritySet_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vision.v1p4beta1.FaceRecognitionParams) { + return mergeFrom((com.google.cloud.vision.v1p4beta1.FaceRecognitionParams) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.FaceRecognitionParams other) { + if (other == com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.getDefaultInstance()) + return this; + if (!other.celebritySet_.isEmpty()) { + if (celebritySet_.isEmpty()) { + celebritySet_ = other.celebritySet_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCelebritySetIsMutable(); + celebritySet_.addAll(other.celebritySet_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.vision.v1p4beta1.FaceRecognitionParams) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList celebritySet_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureCelebritySetIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + celebritySet_ = new com.google.protobuf.LazyStringArrayList(celebritySet_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * The resource names for one or more
+     * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
+     * set is preloaded and can be specified as "builtin/default". If this is
+     * specified, the algorithm will try to match the faces detected in the input
+     * image to the Celebrities in the CelebritySets.
+     * 
+ * + * repeated string celebrity_set = 1; + */ + public com.google.protobuf.ProtocolStringList getCelebritySetList() { + return celebritySet_.getUnmodifiableView(); + } + /** + * + * + *
+     * The resource names for one or more
+     * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
+     * set is preloaded and can be specified as "builtin/default". If this is
+     * specified, the algorithm will try to match the faces detected in the input
+     * image to the Celebrities in the CelebritySets.
+     * 
+ * + * repeated string celebrity_set = 1; + */ + public int getCelebritySetCount() { + return celebritySet_.size(); + } + /** + * + * + *
+     * The resource names for one or more
+     * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
+     * set is preloaded and can be specified as "builtin/default". If this is
+     * specified, the algorithm will try to match the faces detected in the input
+     * image to the Celebrities in the CelebritySets.
+     * 
+ * + * repeated string celebrity_set = 1; + */ + public java.lang.String getCelebritySet(int index) { + return celebritySet_.get(index); + } + /** + * + * + *
+     * The resource names for one or more
+     * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
+     * set is preloaded and can be specified as "builtin/default". If this is
+     * specified, the algorithm will try to match the faces detected in the input
+     * image to the Celebrities in the CelebritySets.
+     * 
+ * + * repeated string celebrity_set = 1; + */ + public com.google.protobuf.ByteString getCelebritySetBytes(int index) { + return celebritySet_.getByteString(index); + } + /** + * + * + *
+     * The resource names for one or more
+     * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
+     * set is preloaded and can be specified as "builtin/default". If this is
+     * specified, the algorithm will try to match the faces detected in the input
+     * image to the Celebrities in the CelebritySets.
+     * 
+ * + * repeated string celebrity_set = 1; + */ + public Builder setCelebritySet(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCelebritySetIsMutable(); + celebritySet_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The resource names for one or more
+     * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
+     * set is preloaded and can be specified as "builtin/default". If this is
+     * specified, the algorithm will try to match the faces detected in the input
+     * image to the Celebrities in the CelebritySets.
+     * 
+ * + * repeated string celebrity_set = 1; + */ + public Builder addCelebritySet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCelebritySetIsMutable(); + celebritySet_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The resource names for one or more
+     * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
+     * set is preloaded and can be specified as "builtin/default". If this is
+     * specified, the algorithm will try to match the faces detected in the input
+     * image to the Celebrities in the CelebritySets.
+     * 
+ * + * repeated string celebrity_set = 1; + */ + public Builder addAllCelebritySet(java.lang.Iterable values) { + ensureCelebritySetIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, celebritySet_); + onChanged(); + return this; + } + /** + * + * + *
+     * The resource names for one or more
+     * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
+     * set is preloaded and can be specified as "builtin/default". If this is
+     * specified, the algorithm will try to match the faces detected in the input
+     * image to the Celebrities in the CelebritySets.
+     * 
+ * + * repeated string celebrity_set = 1; + */ + public Builder clearCelebritySet() { + celebritySet_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The resource names for one or more
+     * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
+     * set is preloaded and can be specified as "builtin/default". If this is
+     * specified, the algorithm will try to match the faces detected in the input
+     * image to the Celebrities in the CelebritySets.
+     * 
+ * + * repeated string celebrity_set = 1; + */ + public Builder addCelebritySetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCelebritySetIsMutable(); + celebritySet_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.FaceRecognitionParams) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.FaceRecognitionParams) + private static final com.google.cloud.vision.v1p4beta1.FaceRecognitionParams DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.FaceRecognitionParams(); + } + + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionParams getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FaceRecognitionParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FaceRecognitionParams(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.vision.v1p4beta1.FaceRecognitionParams getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionParamsOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionParamsOrBuilder.java new file mode 100644 index 000000000..a1e5679f1 --- /dev/null +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionParamsOrBuilder.java @@ -0,0 +1,82 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/face.proto + +package com.google.cloud.vision.v1p4beta1; + +public interface FaceRecognitionParamsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.FaceRecognitionParams) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The resource names for one or more
+   * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
+   * set is preloaded and can be specified as "builtin/default". If this is
+   * specified, the algorithm will try to match the faces detected in the input
+   * image to the Celebrities in the CelebritySets.
+   * 
+ * + * repeated string celebrity_set = 1; + */ + java.util.List getCelebritySetList(); + /** + * + * + *
+   * The resource names for one or more
+   * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
+   * set is preloaded and can be specified as "builtin/default". If this is
+   * specified, the algorithm will try to match the faces detected in the input
+   * image to the Celebrities in the CelebritySets.
+   * 
+ * + * repeated string celebrity_set = 1; + */ + int getCelebritySetCount(); + /** + * + * + *
+   * The resource names for one or more
+   * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
+   * set is preloaded and can be specified as "builtin/default". If this is
+   * specified, the algorithm will try to match the faces detected in the input
+   * image to the Celebrities in the CelebritySets.
+   * 
+ * + * repeated string celebrity_set = 1; + */ + java.lang.String getCelebritySet(int index); + /** + * + * + *
+   * The resource names for one or more
+   * [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
+   * set is preloaded and can be specified as "builtin/default". If this is
+   * specified, the algorithm will try to match the faces detected in the input
+   * image to the Celebrities in the CelebritySets.
+   * 
+ * + * repeated string celebrity_set = 1; + */ + com.google.protobuf.ByteString getCelebritySetBytes(int index); +} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionResult.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionResult.java new file mode 100644 index 000000000..e2541dbf8 --- /dev/null +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionResult.java @@ -0,0 +1,811 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/face.proto + +package com.google.cloud.vision.v1p4beta1; + +/** + * + * + *
+ * Information about a face's identity.
+ * 
+ * + * Protobuf type {@code google.cloud.vision.v1p4beta1.FaceRecognitionResult} + */ +public final class FaceRecognitionResult extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.FaceRecognitionResult) + FaceRecognitionResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use FaceRecognitionResult.newBuilder() to construct. + private FaceRecognitionResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FaceRecognitionResult() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FaceRecognitionResult( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.vision.v1p4beta1.Celebrity.Builder subBuilder = null; + if (celebrity_ != null) { + subBuilder = celebrity_.toBuilder(); + } + celebrity_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.Celebrity.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(celebrity_); + celebrity_ = subBuilder.buildPartial(); + } + + break; + } + case 21: + { + confidence_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.CelebrityProto + .internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vision.v1p4beta1.CelebrityProto + .internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.class, + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder.class); + } + + public static final int CELEBRITY_FIELD_NUMBER = 1; + private com.google.cloud.vision.v1p4beta1.Celebrity celebrity_; + /** + * + * + *
+   * The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
+   * matched to.
+   * 
+ * + * .google.cloud.vision.v1p4beta1.Celebrity celebrity = 1; + */ + public boolean hasCelebrity() { + return celebrity_ != null; + } + /** + * + * + *
+   * The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
+   * matched to.
+   * 
+ * + * .google.cloud.vision.v1p4beta1.Celebrity celebrity = 1; + */ + public com.google.cloud.vision.v1p4beta1.Celebrity getCelebrity() { + return celebrity_ == null + ? com.google.cloud.vision.v1p4beta1.Celebrity.getDefaultInstance() + : celebrity_; + } + /** + * + * + *
+   * The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
+   * matched to.
+   * 
+ * + * .google.cloud.vision.v1p4beta1.Celebrity celebrity = 1; + */ + public com.google.cloud.vision.v1p4beta1.CelebrityOrBuilder getCelebrityOrBuilder() { + return getCelebrity(); + } + + public static final int CONFIDENCE_FIELD_NUMBER = 2; + private float confidence_; + /** + * + * + *
+   * Recognition confidence. Range [0, 1].
+   * 
+ * + * float confidence = 2; + */ + public float getConfidence() { + return confidence_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (celebrity_ != null) { + output.writeMessage(1, getCelebrity()); + } + if (confidence_ != 0F) { + output.writeFloat(2, confidence_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (celebrity_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCelebrity()); + } + if (confidence_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vision.v1p4beta1.FaceRecognitionResult)) { + return super.equals(obj); + } + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult other = + (com.google.cloud.vision.v1p4beta1.FaceRecognitionResult) obj; + + if (hasCelebrity() != other.hasCelebrity()) return false; + if (hasCelebrity()) { + if (!getCelebrity().equals(other.getCelebrity())) return false; + } + if (java.lang.Float.floatToIntBits(getConfidence()) + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCelebrity()) { + hash = (37 * hash) + CELEBRITY_FIELD_NUMBER; + hash = (53 * hash) + getCelebrity().hashCode(); + } + hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionResult parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionResult parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionResult parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionResult parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionResult parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionResult parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionResult parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionResult parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Information about a face's identity.
+   * 
+ * + * Protobuf type {@code google.cloud.vision.v1p4beta1.FaceRecognitionResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.FaceRecognitionResult) + com.google.cloud.vision.v1p4beta1.FaceRecognitionResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.CelebrityProto + .internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vision.v1p4beta1.CelebrityProto + .internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.class, + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.Builder.class); + } + + // Construct using com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (celebrityBuilder_ == null) { + celebrity_ = null; + } else { + celebrity_ = null; + celebrityBuilder_ = null; + } + confidence_ = 0F; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.CelebrityProto + .internal_static_google_cloud_vision_v1p4beta1_FaceRecognitionResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.vision.v1p4beta1.FaceRecognitionResult getDefaultInstanceForType() { + return com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vision.v1p4beta1.FaceRecognitionResult build() { + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vision.v1p4beta1.FaceRecognitionResult buildPartial() { + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult result = + new com.google.cloud.vision.v1p4beta1.FaceRecognitionResult(this); + if (celebrityBuilder_ == null) { + result.celebrity_ = celebrity_; + } else { + result.celebrity_ = celebrityBuilder_.build(); + } + result.confidence_ = confidence_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vision.v1p4beta1.FaceRecognitionResult) { + return mergeFrom((com.google.cloud.vision.v1p4beta1.FaceRecognitionResult) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.FaceRecognitionResult other) { + if (other == com.google.cloud.vision.v1p4beta1.FaceRecognitionResult.getDefaultInstance()) + return this; + if (other.hasCelebrity()) { + mergeCelebrity(other.getCelebrity()); + } + if (other.getConfidence() != 0F) { + setConfidence(other.getConfidence()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.vision.v1p4beta1.FaceRecognitionResult parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.vision.v1p4beta1.FaceRecognitionResult) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.vision.v1p4beta1.Celebrity celebrity_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.Celebrity, + com.google.cloud.vision.v1p4beta1.Celebrity.Builder, + com.google.cloud.vision.v1p4beta1.CelebrityOrBuilder> + celebrityBuilder_; + /** + * + * + *
+     * The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
+     * matched to.
+     * 
+ * + * .google.cloud.vision.v1p4beta1.Celebrity celebrity = 1; + */ + public boolean hasCelebrity() { + return celebrityBuilder_ != null || celebrity_ != null; + } + /** + * + * + *
+     * The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
+     * matched to.
+     * 
+ * + * .google.cloud.vision.v1p4beta1.Celebrity celebrity = 1; + */ + public com.google.cloud.vision.v1p4beta1.Celebrity getCelebrity() { + if (celebrityBuilder_ == null) { + return celebrity_ == null + ? com.google.cloud.vision.v1p4beta1.Celebrity.getDefaultInstance() + : celebrity_; + } else { + return celebrityBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
+     * matched to.
+     * 
+ * + * .google.cloud.vision.v1p4beta1.Celebrity celebrity = 1; + */ + public Builder setCelebrity(com.google.cloud.vision.v1p4beta1.Celebrity value) { + if (celebrityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + celebrity_ = value; + onChanged(); + } else { + celebrityBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
+     * matched to.
+     * 
+ * + * .google.cloud.vision.v1p4beta1.Celebrity celebrity = 1; + */ + public Builder setCelebrity( + com.google.cloud.vision.v1p4beta1.Celebrity.Builder builderForValue) { + if (celebrityBuilder_ == null) { + celebrity_ = builderForValue.build(); + onChanged(); + } else { + celebrityBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
+     * matched to.
+     * 
+ * + * .google.cloud.vision.v1p4beta1.Celebrity celebrity = 1; + */ + public Builder mergeCelebrity(com.google.cloud.vision.v1p4beta1.Celebrity value) { + if (celebrityBuilder_ == null) { + if (celebrity_ != null) { + celebrity_ = + com.google.cloud.vision.v1p4beta1.Celebrity.newBuilder(celebrity_) + .mergeFrom(value) + .buildPartial(); + } else { + celebrity_ = value; + } + onChanged(); + } else { + celebrityBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
+     * matched to.
+     * 
+ * + * .google.cloud.vision.v1p4beta1.Celebrity celebrity = 1; + */ + public Builder clearCelebrity() { + if (celebrityBuilder_ == null) { + celebrity_ = null; + onChanged(); + } else { + celebrity_ = null; + celebrityBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
+     * matched to.
+     * 
+ * + * .google.cloud.vision.v1p4beta1.Celebrity celebrity = 1; + */ + public com.google.cloud.vision.v1p4beta1.Celebrity.Builder getCelebrityBuilder() { + + onChanged(); + return getCelebrityFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
+     * matched to.
+     * 
+ * + * .google.cloud.vision.v1p4beta1.Celebrity celebrity = 1; + */ + public com.google.cloud.vision.v1p4beta1.CelebrityOrBuilder getCelebrityOrBuilder() { + if (celebrityBuilder_ != null) { + return celebrityBuilder_.getMessageOrBuilder(); + } else { + return celebrity_ == null + ? com.google.cloud.vision.v1p4beta1.Celebrity.getDefaultInstance() + : celebrity_; + } + } + /** + * + * + *
+     * The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
+     * matched to.
+     * 
+ * + * .google.cloud.vision.v1p4beta1.Celebrity celebrity = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.Celebrity, + com.google.cloud.vision.v1p4beta1.Celebrity.Builder, + com.google.cloud.vision.v1p4beta1.CelebrityOrBuilder> + getCelebrityFieldBuilder() { + if (celebrityBuilder_ == null) { + celebrityBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.Celebrity, + com.google.cloud.vision.v1p4beta1.Celebrity.Builder, + com.google.cloud.vision.v1p4beta1.CelebrityOrBuilder>( + getCelebrity(), getParentForChildren(), isClean()); + celebrity_ = null; + } + return celebrityBuilder_; + } + + private float confidence_; + /** + * + * + *
+     * Recognition confidence. Range [0, 1].
+     * 
+ * + * float confidence = 2; + */ + public float getConfidence() { + return confidence_; + } + /** + * + * + *
+     * Recognition confidence. Range [0, 1].
+     * 
+ * + * float confidence = 2; + */ + public Builder setConfidence(float value) { + + confidence_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Recognition confidence. Range [0, 1].
+     * 
+ * + * float confidence = 2; + */ + public Builder clearConfidence() { + + confidence_ = 0F; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.FaceRecognitionResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.FaceRecognitionResult) + private static final com.google.cloud.vision.v1p4beta1.FaceRecognitionResult DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.FaceRecognitionResult(); + } + + public static com.google.cloud.vision.v1p4beta1.FaceRecognitionResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FaceRecognitionResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FaceRecognitionResult(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.vision.v1p4beta1.FaceRecognitionResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionResultOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionResultOrBuilder.java new file mode 100644 index 000000000..399189a8f --- /dev/null +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/FaceRecognitionResultOrBuilder.java @@ -0,0 +1,70 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/face.proto + +package com.google.cloud.vision.v1p4beta1; + +public interface FaceRecognitionResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.FaceRecognitionResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
+   * matched to.
+   * 
+ * + * .google.cloud.vision.v1p4beta1.Celebrity celebrity = 1; + */ + boolean hasCelebrity(); + /** + * + * + *
+   * The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
+   * matched to.
+   * 
+ * + * .google.cloud.vision.v1p4beta1.Celebrity celebrity = 1; + */ + com.google.cloud.vision.v1p4beta1.Celebrity getCelebrity(); + /** + * + * + *
+   * The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
+   * matched to.
+   * 
+ * + * .google.cloud.vision.v1p4beta1.Celebrity celebrity = 1; + */ + com.google.cloud.vision.v1p4beta1.CelebrityOrBuilder getCelebrityOrBuilder(); + + /** + * + * + *
+   * Recognition confidence. Range [0, 1].
+   * 
+ * + * float confidence = 2; + */ + float getConfidence(); +} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsDestination.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsDestination.java index 8657a8396..c92a662f4 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsDestination.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsDestination.java @@ -112,14 +112,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Google Cloud Storage URI where the results will be stored. Results will
-   * be in JSON format and preceded by its corresponding input URI. This field
-   * can either represent a single file, or a prefix for multiple outputs.
-   * Prefixes must end in a `/`.
+   * Google Cloud Storage URI prefix where the results will be stored. Results
+   * will be in JSON format and preceded by its corresponding input URI prefix.
+   * This field can either represent a gcs file prefix or gcs directory. In
+   * either case, the uri should be unique because in order to get all of the
+   * output files, you will need to do a wildcard gcs search on the uri prefix
+   * you provide.
    * Examples:
-   * *    File: gs://bucket-name/filename.json
-   * *    Prefix: gs://bucket-name/prefix/here/
-   * *    File: gs://bucket-name/prefix/here
+   * *    File Prefix: gs://bucket-name/here/filenameprefix   The output files
+   * will be created in gs://bucket-name/here/ and the names of the
+   * output files will begin with "filenameprefix".
+   * *    Directory Prefix: gs://bucket-name/some/location/   The output files
+   * will be created in gs://bucket-name/some/location/ and the names of the
+   * output files could be anything because there was no filename prefix
+   * specified.
    * If multiple outputs, each response is still AnnotateFileResponse, each of
    * which contains some subset of the full list of AnnotateImageResponse.
    * Multiple outputs can happen if, for example, the output JSON is too large
@@ -143,14 +149,20 @@ public java.lang.String getUri() {
    *
    *
    * 
-   * Google Cloud Storage URI where the results will be stored. Results will
-   * be in JSON format and preceded by its corresponding input URI. This field
-   * can either represent a single file, or a prefix for multiple outputs.
-   * Prefixes must end in a `/`.
+   * Google Cloud Storage URI prefix where the results will be stored. Results
+   * will be in JSON format and preceded by its corresponding input URI prefix.
+   * This field can either represent a gcs file prefix or gcs directory. In
+   * either case, the uri should be unique because in order to get all of the
+   * output files, you will need to do a wildcard gcs search on the uri prefix
+   * you provide.
    * Examples:
-   * *    File: gs://bucket-name/filename.json
-   * *    Prefix: gs://bucket-name/prefix/here/
-   * *    File: gs://bucket-name/prefix/here
+   * *    File Prefix: gs://bucket-name/here/filenameprefix   The output files
+   * will be created in gs://bucket-name/here/ and the names of the
+   * output files will begin with "filenameprefix".
+   * *    Directory Prefix: gs://bucket-name/some/location/   The output files
+   * will be created in gs://bucket-name/some/location/ and the names of the
+   * output files could be anything because there was no filename prefix
+   * specified.
    * If multiple outputs, each response is still AnnotateFileResponse, each of
    * which contains some subset of the full list of AnnotateImageResponse.
    * Multiple outputs can happen if, for example, the output JSON is too large
@@ -493,14 +505,20 @@ public Builder mergeFrom(
      *
      *
      * 
-     * Google Cloud Storage URI where the results will be stored. Results will
-     * be in JSON format and preceded by its corresponding input URI. This field
-     * can either represent a single file, or a prefix for multiple outputs.
-     * Prefixes must end in a `/`.
+     * Google Cloud Storage URI prefix where the results will be stored. Results
+     * will be in JSON format and preceded by its corresponding input URI prefix.
+     * This field can either represent a gcs file prefix or gcs directory. In
+     * either case, the uri should be unique because in order to get all of the
+     * output files, you will need to do a wildcard gcs search on the uri prefix
+     * you provide.
      * Examples:
-     * *    File: gs://bucket-name/filename.json
-     * *    Prefix: gs://bucket-name/prefix/here/
-     * *    File: gs://bucket-name/prefix/here
+     * *    File Prefix: gs://bucket-name/here/filenameprefix   The output files
+     * will be created in gs://bucket-name/here/ and the names of the
+     * output files will begin with "filenameprefix".
+     * *    Directory Prefix: gs://bucket-name/some/location/   The output files
+     * will be created in gs://bucket-name/some/location/ and the names of the
+     * output files could be anything because there was no filename prefix
+     * specified.
      * If multiple outputs, each response is still AnnotateFileResponse, each of
      * which contains some subset of the full list of AnnotateImageResponse.
      * Multiple outputs can happen if, for example, the output JSON is too large
@@ -524,14 +542,20 @@ public java.lang.String getUri() {
      *
      *
      * 
-     * Google Cloud Storage URI where the results will be stored. Results will
-     * be in JSON format and preceded by its corresponding input URI. This field
-     * can either represent a single file, or a prefix for multiple outputs.
-     * Prefixes must end in a `/`.
+     * Google Cloud Storage URI prefix where the results will be stored. Results
+     * will be in JSON format and preceded by its corresponding input URI prefix.
+     * This field can either represent a gcs file prefix or gcs directory. In
+     * either case, the uri should be unique because in order to get all of the
+     * output files, you will need to do a wildcard gcs search on the uri prefix
+     * you provide.
      * Examples:
-     * *    File: gs://bucket-name/filename.json
-     * *    Prefix: gs://bucket-name/prefix/here/
-     * *    File: gs://bucket-name/prefix/here
+     * *    File Prefix: gs://bucket-name/here/filenameprefix   The output files
+     * will be created in gs://bucket-name/here/ and the names of the
+     * output files will begin with "filenameprefix".
+     * *    Directory Prefix: gs://bucket-name/some/location/   The output files
+     * will be created in gs://bucket-name/some/location/ and the names of the
+     * output files could be anything because there was no filename prefix
+     * specified.
      * If multiple outputs, each response is still AnnotateFileResponse, each of
      * which contains some subset of the full list of AnnotateImageResponse.
      * Multiple outputs can happen if, for example, the output JSON is too large
@@ -555,14 +579,20 @@ public com.google.protobuf.ByteString getUriBytes() {
      *
      *
      * 
-     * Google Cloud Storage URI where the results will be stored. Results will
-     * be in JSON format and preceded by its corresponding input URI. This field
-     * can either represent a single file, or a prefix for multiple outputs.
-     * Prefixes must end in a `/`.
+     * Google Cloud Storage URI prefix where the results will be stored. Results
+     * will be in JSON format and preceded by its corresponding input URI prefix.
+     * This field can either represent a gcs file prefix or gcs directory. In
+     * either case, the uri should be unique because in order to get all of the
+     * output files, you will need to do a wildcard gcs search on the uri prefix
+     * you provide.
      * Examples:
-     * *    File: gs://bucket-name/filename.json
-     * *    Prefix: gs://bucket-name/prefix/here/
-     * *    File: gs://bucket-name/prefix/here
+     * *    File Prefix: gs://bucket-name/here/filenameprefix   The output files
+     * will be created in gs://bucket-name/here/ and the names of the
+     * output files will begin with "filenameprefix".
+     * *    Directory Prefix: gs://bucket-name/some/location/   The output files
+     * will be created in gs://bucket-name/some/location/ and the names of the
+     * output files could be anything because there was no filename prefix
+     * specified.
      * If multiple outputs, each response is still AnnotateFileResponse, each of
      * which contains some subset of the full list of AnnotateImageResponse.
      * Multiple outputs can happen if, for example, the output JSON is too large
@@ -584,14 +614,20 @@ public Builder setUri(java.lang.String value) {
      *
      *
      * 
-     * Google Cloud Storage URI where the results will be stored. Results will
-     * be in JSON format and preceded by its corresponding input URI. This field
-     * can either represent a single file, or a prefix for multiple outputs.
-     * Prefixes must end in a `/`.
+     * Google Cloud Storage URI prefix where the results will be stored. Results
+     * will be in JSON format and preceded by its corresponding input URI prefix.
+     * This field can either represent a gcs file prefix or gcs directory. In
+     * either case, the uri should be unique because in order to get all of the
+     * output files, you will need to do a wildcard gcs search on the uri prefix
+     * you provide.
      * Examples:
-     * *    File: gs://bucket-name/filename.json
-     * *    Prefix: gs://bucket-name/prefix/here/
-     * *    File: gs://bucket-name/prefix/here
+     * *    File Prefix: gs://bucket-name/here/filenameprefix   The output files
+     * will be created in gs://bucket-name/here/ and the names of the
+     * output files will begin with "filenameprefix".
+     * *    Directory Prefix: gs://bucket-name/some/location/   The output files
+     * will be created in gs://bucket-name/some/location/ and the names of the
+     * output files could be anything because there was no filename prefix
+     * specified.
      * If multiple outputs, each response is still AnnotateFileResponse, each of
      * which contains some subset of the full list of AnnotateImageResponse.
      * Multiple outputs can happen if, for example, the output JSON is too large
@@ -610,14 +646,20 @@ public Builder clearUri() {
      *
      *
      * 
-     * Google Cloud Storage URI where the results will be stored. Results will
-     * be in JSON format and preceded by its corresponding input URI. This field
-     * can either represent a single file, or a prefix for multiple outputs.
-     * Prefixes must end in a `/`.
+     * Google Cloud Storage URI prefix where the results will be stored. Results
+     * will be in JSON format and preceded by its corresponding input URI prefix.
+     * This field can either represent a gcs file prefix or gcs directory. In
+     * either case, the uri should be unique because in order to get all of the
+     * output files, you will need to do a wildcard gcs search on the uri prefix
+     * you provide.
      * Examples:
-     * *    File: gs://bucket-name/filename.json
-     * *    Prefix: gs://bucket-name/prefix/here/
-     * *    File: gs://bucket-name/prefix/here
+     * *    File Prefix: gs://bucket-name/here/filenameprefix   The output files
+     * will be created in gs://bucket-name/here/ and the names of the
+     * output files will begin with "filenameprefix".
+     * *    Directory Prefix: gs://bucket-name/some/location/   The output files
+     * will be created in gs://bucket-name/some/location/ and the names of the
+     * output files could be anything because there was no filename prefix
+     * specified.
      * If multiple outputs, each response is still AnnotateFileResponse, each of
      * which contains some subset of the full list of AnnotateImageResponse.
      * Multiple outputs can happen if, for example, the output JSON is too large
diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsDestinationOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsDestinationOrBuilder.java
index 78f44e14f..9fc88d53d 100644
--- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsDestinationOrBuilder.java
+++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GcsDestinationOrBuilder.java
@@ -27,14 +27,20 @@ public interface GcsDestinationOrBuilder
    *
    *
    * 
-   * Google Cloud Storage URI where the results will be stored. Results will
-   * be in JSON format and preceded by its corresponding input URI. This field
-   * can either represent a single file, or a prefix for multiple outputs.
-   * Prefixes must end in a `/`.
+   * Google Cloud Storage URI prefix where the results will be stored. Results
+   * will be in JSON format and preceded by its corresponding input URI prefix.
+   * This field can either represent a gcs file prefix or gcs directory. In
+   * either case, the uri should be unique because in order to get all of the
+   * output files, you will need to do a wildcard gcs search on the uri prefix
+   * you provide.
    * Examples:
-   * *    File: gs://bucket-name/filename.json
-   * *    Prefix: gs://bucket-name/prefix/here/
-   * *    File: gs://bucket-name/prefix/here
+   * *    File Prefix: gs://bucket-name/here/filenameprefix   The output files
+   * will be created in gs://bucket-name/here/ and the names of the
+   * output files will begin with "filenameprefix".
+   * *    Directory Prefix: gs://bucket-name/some/location/   The output files
+   * will be created in gs://bucket-name/some/location/ and the names of the
+   * output files could be anything because there was no filename prefix
+   * specified.
    * If multiple outputs, each response is still AnnotateFileResponse, each of
    * which contains some subset of the full list of AnnotateImageResponse.
    * Multiple outputs can happen if, for example, the output JSON is too large
@@ -48,14 +54,20 @@ public interface GcsDestinationOrBuilder
    *
    *
    * 
-   * Google Cloud Storage URI where the results will be stored. Results will
-   * be in JSON format and preceded by its corresponding input URI. This field
-   * can either represent a single file, or a prefix for multiple outputs.
-   * Prefixes must end in a `/`.
+   * Google Cloud Storage URI prefix where the results will be stored. Results
+   * will be in JSON format and preceded by its corresponding input URI prefix.
+   * This field can either represent a gcs file prefix or gcs directory. In
+   * either case, the uri should be unique because in order to get all of the
+   * output files, you will need to do a wildcard gcs search on the uri prefix
+   * you provide.
    * Examples:
-   * *    File: gs://bucket-name/filename.json
-   * *    Prefix: gs://bucket-name/prefix/here/
-   * *    File: gs://bucket-name/prefix/here
+   * *    File Prefix: gs://bucket-name/here/filenameprefix   The output files
+   * will be created in gs://bucket-name/here/ and the names of the
+   * output files will begin with "filenameprefix".
+   * *    Directory Prefix: gs://bucket-name/some/location/   The output files
+   * will be created in gs://bucket-name/some/location/ and the names of the
+   * output files could be anything because there was no filename prefix
+   * specified.
    * If multiple outputs, each response is still AnnotateFileResponse, each of
    * which contains some subset of the full list of AnnotateImageResponse.
    * Multiple outputs can happen if, for example, the output JSON is too large
diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductRequest.java
index 00f4d71ad..c6ed1813d 100644
--- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductRequest.java
+++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductRequest.java
@@ -112,12 +112,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    *
    * 
-   * Resource name of the Product to get.
+   * Required. Resource name of the Product to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -134,12 +136,14 @@ public java.lang.String getName() { * * *
-   * Resource name of the Product to get.
+   * Required. Resource name of the Product to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -476,12 +480,14 @@ public Builder mergeFrom( * * *
-     * Resource name of the Product to get.
+     * Required. Resource name of the Product to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -498,12 +504,14 @@ public java.lang.String getName() { * * *
-     * Resource name of the Product to get.
+     * Required. Resource name of the Product to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -520,12 +528,14 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Resource name of the Product to get.
+     * Required. Resource name of the Product to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setName(java.lang.String value) { if (value == null) { @@ -540,12 +550,14 @@ public Builder setName(java.lang.String value) { * * *
-     * Resource name of the Product to get.
+     * Required. Resource name of the Product to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder clearName() { @@ -557,12 +569,14 @@ public Builder clearName() { * * *
-     * Resource name of the Product to get.
+     * Required. Resource name of the Product to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductRequestOrBuilder.java index cbb1cac98..df22f8063 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductRequestOrBuilder.java @@ -27,24 +27,28 @@ public interface GetProductRequestOrBuilder * * *
-   * Resource name of the Product to get.
+   * Required. Resource name of the Product to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ java.lang.String getName(); /** * * *
-   * Resource name of the Product to get.
+   * Required. Resource name of the Product to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductSetRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductSetRequest.java index 3eb65cdcb..8c704437d 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductSetRequest.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductSetRequest.java @@ -112,12 +112,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Resource name of the ProductSet to get.
+   * Required. Resource name of the ProductSet to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOG_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -134,12 +136,14 @@ public java.lang.String getName() { * * *
-   * Resource name of the ProductSet to get.
+   * Required. Resource name of the ProductSet to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOG_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -477,12 +481,14 @@ public Builder mergeFrom( * * *
-     * Resource name of the ProductSet to get.
+     * Required. Resource name of the ProductSet to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOG_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -499,12 +505,14 @@ public java.lang.String getName() { * * *
-     * Resource name of the ProductSet to get.
+     * Required. Resource name of the ProductSet to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOG_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -521,12 +529,14 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Resource name of the ProductSet to get.
+     * Required. Resource name of the ProductSet to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOG_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setName(java.lang.String value) { if (value == null) { @@ -541,12 +551,14 @@ public Builder setName(java.lang.String value) { * * *
-     * Resource name of the ProductSet to get.
+     * Required. Resource name of the ProductSet to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOG_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder clearName() { @@ -558,12 +570,14 @@ public Builder clearName() { * * *
-     * Resource name of the ProductSet to get.
+     * Required. Resource name of the ProductSet to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOG_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductSetRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductSetRequestOrBuilder.java index b6350cb9a..a47425186 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductSetRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetProductSetRequestOrBuilder.java @@ -27,24 +27,28 @@ public interface GetProductSetRequestOrBuilder * * *
-   * Resource name of the ProductSet to get.
+   * Required. Resource name of the ProductSet to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOG_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ java.lang.String getName(); /** * * *
-   * Resource name of the ProductSet to get.
+   * Required. Resource name of the ProductSet to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOG_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetReferenceImageRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetReferenceImageRequest.java index 082bfb5ef..503833e0f 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetReferenceImageRequest.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetReferenceImageRequest.java @@ -112,12 +112,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The resource name of the ReferenceImage to get.
+   * Required. The resource name of the ReferenceImage to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -134,12 +136,14 @@ public java.lang.String getName() { * * *
-   * The resource name of the ReferenceImage to get.
+   * Required. The resource name of the ReferenceImage to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -477,12 +481,14 @@ public Builder mergeFrom( * * *
-     * The resource name of the ReferenceImage to get.
+     * Required. The resource name of the ReferenceImage to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -499,12 +505,14 @@ public java.lang.String getName() { * * *
-     * The resource name of the ReferenceImage to get.
+     * Required. The resource name of the ReferenceImage to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -521,12 +529,14 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * The resource name of the ReferenceImage to get.
+     * Required. The resource name of the ReferenceImage to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setName(java.lang.String value) { if (value == null) { @@ -541,12 +551,14 @@ public Builder setName(java.lang.String value) { * * *
-     * The resource name of the ReferenceImage to get.
+     * Required. The resource name of the ReferenceImage to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder clearName() { @@ -558,12 +570,14 @@ public Builder clearName() { * * *
-     * The resource name of the ReferenceImage to get.
+     * Required. The resource name of the ReferenceImage to get.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetReferenceImageRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetReferenceImageRequestOrBuilder.java index 7fa618fca..d9a144a67 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetReferenceImageRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/GetReferenceImageRequestOrBuilder.java @@ -27,24 +27,28 @@ public interface GetReferenceImageRequestOrBuilder * * *
-   * The resource name of the ReferenceImage to get.
+   * Required. The resource name of the ReferenceImage to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ java.lang.String getName(); /** * * *
-   * The resource name of the ReferenceImage to get.
+   * Required. The resource name of the ReferenceImage to get.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorProto.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorProto.java index fb8bd749d..47bef46f7 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorProto.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorProto.java @@ -115,10 +115,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_vision_v1p4beta1_AnnotateImageResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_vision_v1p4beta1_AnnotateImageResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -131,6 +127,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_vision_v1p4beta1_AnnotateFileRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_vision_v1p4beta1_AnnotateFileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -194,239 +194,255 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n3google/cloud/vision/v1p4beta1/image_an" + "notator.proto\022\035google.cloud.vision.v1p4b" - + "eta1\032\034google/api/annotations.proto\032,goog" - + "le/cloud/vision/v1p4beta1/geometry.proto" - + "\0322google/cloud/vision/v1p4beta1/product_" - + "search.proto\0323google/cloud/vision/v1p4be" - + "ta1/text_annotation.proto\0321google/cloud/" - + "vision/v1p4beta1/web_detection.proto\032#go" - + "ogle/longrunning/operations.proto\032 googl" - + "e/protobuf/field_mask.proto\032\037google/prot" - + "obuf/timestamp.proto\032\027google/rpc/status." - + "proto\032\027google/type/color.proto\032\030google/t" - + "ype/latlng.proto\"\216\003\n\007Feature\0229\n\004type\030\001 \001" - + "(\0162+.google.cloud.vision.v1p4beta1.Featu" - + "re.Type\022\023\n\013max_results\030\002 \001(\005\022\r\n\005model\030\003 " - + "\001(\t\"\243\002\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\022\n\016FA" - + "CE_DETECTION\020\001\022\026\n\022LANDMARK_DETECTION\020\002\022\022" - + "\n\016LOGO_DETECTION\020\003\022\023\n\017LABEL_DETECTION\020\004\022" - + "\022\n\016TEXT_DETECTION\020\005\022\033\n\027DOCUMENT_TEXT_DET" - + "ECTION\020\013\022\031\n\025SAFE_SEARCH_DETECTION\020\006\022\024\n\020I" - + "MAGE_PROPERTIES\020\007\022\016\n\nCROP_HINTS\020\t\022\021\n\rWEB" - + "_DETECTION\020\n\022\022\n\016PRODUCT_SEARCH\020\014\022\027\n\023OBJE" - + "CT_LOCALIZATION\020\023\"7\n\013ImageSource\022\025\n\rgcs_" - + "image_uri\030\001 \001(\t\022\021\n\timage_uri\030\002 \001(\t\"T\n\005Im" - + "age\022\017\n\007content\030\001 \001(\014\022:\n\006source\030\002 \001(\0132*.g" - + "oogle.cloud.vision.v1p4beta1.ImageSource" - + "\"\233\016\n\016FaceAnnotation\022B\n\rbounding_poly\030\001 \001" - + "(\0132+.google.cloud.vision.v1p4beta1.Bound" - + "ingPoly\022E\n\020fd_bounding_poly\030\002 \001(\0132+.goog" - + "le.cloud.vision.v1p4beta1.BoundingPoly\022I" - + "\n\tlandmarks\030\003 \003(\01326.google.cloud.vision." - + "v1p4beta1.FaceAnnotation.Landmark\022\022\n\nrol" - + "l_angle\030\004 \001(\002\022\021\n\tpan_angle\030\005 \001(\002\022\022\n\ntilt" - + "_angle\030\006 \001(\002\022\034\n\024detection_confidence\030\007 \001" - + "(\002\022\036\n\026landmarking_confidence\030\010 \001(\002\022A\n\016jo" - + "y_likelihood\030\t \001(\0162).google.cloud.vision" - + ".v1p4beta1.Likelihood\022D\n\021sorrow_likeliho" - + "od\030\n \001(\0162).google.cloud.vision.v1p4beta1" - + ".Likelihood\022C\n\020anger_likelihood\030\013 \001(\0162)." + + "eta1\032\034google/api/annotations.proto\032\027goog" + + "le/api/client.proto\032\037google/api/field_be" + + "havior.proto\032(google/cloud/vision/v1p4be" + + "ta1/face.proto\032,google/cloud/vision/v1p4" + + "beta1/geometry.proto\0322google/cloud/visio" + + "n/v1p4beta1/product_search.proto\0323google" + + "/cloud/vision/v1p4beta1/text_annotation." + + "proto\0321google/cloud/vision/v1p4beta1/web" + + "_detection.proto\032#google/longrunning/ope" + + "rations.proto\032 google/protobuf/field_mas" + + "k.proto\032\037google/protobuf/timestamp.proto" + + "\032\027google/rpc/status.proto\032\027google/type/c" + + "olor.proto\032\030google/type/latlng.proto\"\216\003\n" + + "\007Feature\0229\n\004type\030\001 \001(\0162+.google.cloud.vi" + + "sion.v1p4beta1.Feature.Type\022\023\n\013max_resul" + + "ts\030\002 \001(\005\022\r\n\005model\030\003 \001(\t\"\243\002\n\004Type\022\024\n\020TYPE" + + "_UNSPECIFIED\020\000\022\022\n\016FACE_DETECTION\020\001\022\026\n\022LA" + + "NDMARK_DETECTION\020\002\022\022\n\016LOGO_DETECTION\020\003\022\023" + + "\n\017LABEL_DETECTION\020\004\022\022\n\016TEXT_DETECTION\020\005\022" + + "\033\n\027DOCUMENT_TEXT_DETECTION\020\013\022\031\n\025SAFE_SEA" + + "RCH_DETECTION\020\006\022\024\n\020IMAGE_PROPERTIES\020\007\022\016\n" + + "\nCROP_HINTS\020\t\022\021\n\rWEB_DETECTION\020\n\022\022\n\016PROD" + + "UCT_SEARCH\020\014\022\027\n\023OBJECT_LOCALIZATION\020\023\"7\n" + + "\013ImageSource\022\025\n\rgcs_image_uri\030\001 \001(\t\022\021\n\ti" + + "mage_uri\030\002 \001(\t\"T\n\005Image\022\017\n\007content\030\001 \001(\014" + + "\022:\n\006source\030\002 \001(\0132*.google.cloud.vision.v" + + "1p4beta1.ImageSource\"\355\016\n\016FaceAnnotation\022" + + "B\n\rbounding_poly\030\001 \001(\0132+.google.cloud.vi" + + "sion.v1p4beta1.BoundingPoly\022E\n\020fd_boundi" + + "ng_poly\030\002 \001(\0132+.google.cloud.vision.v1p4" + + "beta1.BoundingPoly\022I\n\tlandmarks\030\003 \003(\01326." + + "google.cloud.vision.v1p4beta1.FaceAnnota" + + "tion.Landmark\022\022\n\nroll_angle\030\004 \001(\002\022\021\n\tpan" + + "_angle\030\005 \001(\002\022\022\n\ntilt_angle\030\006 \001(\002\022\034\n\024dete" + + "ction_confidence\030\007 \001(\002\022\036\n\026landmarking_co" + + "nfidence\030\010 \001(\002\022A\n\016joy_likelihood\030\t \001(\0162)" + + ".google.cloud.vision.v1p4beta1.Likelihoo" + + "d\022D\n\021sorrow_likelihood\030\n \001(\0162).google.cl" + + "oud.vision.v1p4beta1.Likelihood\022C\n\020anger" + + "_likelihood\030\013 \001(\0162).google.cloud.vision." + + "v1p4beta1.Likelihood\022F\n\023surprise_likelih" + + "ood\030\014 \001(\0162).google.cloud.vision.v1p4beta" + + "1.Likelihood\022K\n\030under_exposed_likelihood" + + "\030\r \001(\0162).google.cloud.vision.v1p4beta1.L" + + "ikelihood\022E\n\022blurred_likelihood\030\016 \001(\0162)." + "google.cloud.vision.v1p4beta1.Likelihood" - + "\022F\n\023surprise_likelihood\030\014 \001(\0162).google.c" - + "loud.vision.v1p4beta1.Likelihood\022K\n\030unde" - + "r_exposed_likelihood\030\r \001(\0162).google.clou" - + "d.vision.v1p4beta1.Likelihood\022E\n\022blurred" - + "_likelihood\030\016 \001(\0162).google.cloud.vision." - + "v1p4beta1.Likelihood\022F\n\023headwear_likelih" - + "ood\030\017 \001(\0162).google.cloud.vision.v1p4beta" - + "1.Likelihood\032\307\007\n\010Landmark\022I\n\004type\030\003 \001(\0162" - + ";.google.cloud.vision.v1p4beta1.FaceAnno" - + "tation.Landmark.Type\0229\n\010position\030\004 \001(\0132\'" - + ".google.cloud.vision.v1p4beta1.Position\"" - + "\264\006\n\004Type\022\024\n\020UNKNOWN_LANDMARK\020\000\022\014\n\010LEFT_E" - + "YE\020\001\022\r\n\tRIGHT_EYE\020\002\022\030\n\024LEFT_OF_LEFT_EYEB" - + "ROW\020\003\022\031\n\025RIGHT_OF_LEFT_EYEBROW\020\004\022\031\n\025LEFT" - + "_OF_RIGHT_EYEBROW\020\005\022\032\n\026RIGHT_OF_RIGHT_EY" - + "EBROW\020\006\022\031\n\025MIDPOINT_BETWEEN_EYES\020\007\022\014\n\010NO" - + "SE_TIP\020\010\022\r\n\tUPPER_LIP\020\t\022\r\n\tLOWER_LIP\020\n\022\016" - + "\n\nMOUTH_LEFT\020\013\022\017\n\013MOUTH_RIGHT\020\014\022\020\n\014MOUTH" - + "_CENTER\020\r\022\025\n\021NOSE_BOTTOM_RIGHT\020\016\022\024\n\020NOSE" - + "_BOTTOM_LEFT\020\017\022\026\n\022NOSE_BOTTOM_CENTER\020\020\022\031" - + "\n\025LEFT_EYE_TOP_BOUNDARY\020\021\022\031\n\025LEFT_EYE_RI" - + "GHT_CORNER\020\022\022\034\n\030LEFT_EYE_BOTTOM_BOUNDARY" - + "\020\023\022\030\n\024LEFT_EYE_LEFT_CORNER\020\024\022\032\n\026RIGHT_EY" - + "E_TOP_BOUNDARY\020\025\022\032\n\026RIGHT_EYE_RIGHT_CORN" - + "ER\020\026\022\035\n\031RIGHT_EYE_BOTTOM_BOUNDARY\020\027\022\031\n\025R" - + "IGHT_EYE_LEFT_CORNER\020\030\022\037\n\033LEFT_EYEBROW_U" - + "PPER_MIDPOINT\020\031\022 \n\034RIGHT_EYEBROW_UPPER_M" - + "IDPOINT\020\032\022\024\n\020LEFT_EAR_TRAGION\020\033\022\025\n\021RIGHT" - + "_EAR_TRAGION\020\034\022\022\n\016LEFT_EYE_PUPIL\020\035\022\023\n\017RI" - + "GHT_EYE_PUPIL\020\036\022\025\n\021FOREHEAD_GLABELLA\020\037\022\021" - + "\n\rCHIN_GNATHION\020 \022\024\n\020CHIN_LEFT_GONION\020!\022" - + "\025\n\021CHIN_RIGHT_GONION\020\"\"4\n\014LocationInfo\022$" - + "\n\007lat_lng\030\001 \001(\0132\023.google.type.LatLng\"=\n\010" - + "Property\022\014\n\004name\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\022\024\n" - + "\014uint64_value\030\003 \001(\004\"\300\002\n\020EntityAnnotation" - + "\022\013\n\003mid\030\001 \001(\t\022\016\n\006locale\030\002 \001(\t\022\023\n\013descrip" - + "tion\030\003 \001(\t\022\r\n\005score\030\004 \001(\002\022\026\n\nconfidence\030" - + "\005 \001(\002B\002\030\001\022\022\n\ntopicality\030\006 \001(\002\022B\n\rboundin" - + "g_poly\030\007 \001(\0132+.google.cloud.vision.v1p4b" - + "eta1.BoundingPoly\022>\n\tlocations\030\010 \003(\0132+.g" - + "oogle.cloud.vision.v1p4beta1.LocationInf" - + "o\022;\n\nproperties\030\t \003(\0132\'.google.cloud.vis" - + "ion.v1p4beta1.Property\"\240\001\n\031LocalizedObje" - + "ctAnnotation\022\013\n\003mid\030\001 \001(\t\022\025\n\rlanguage_co" - + "de\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\022\r\n\005score\030\004 \001(\002\022B\n" - + "\rbounding_poly\030\005 \001(\0132+.google.cloud.visi" - + "on.v1p4beta1.BoundingPoly\"\274\002\n\024SafeSearch" - + "Annotation\0228\n\005adult\030\001 \001(\0162).google.cloud" - + ".vision.v1p4beta1.Likelihood\0228\n\005spoof\030\002 " + + "\022F\n\023headwear_likelihood\030\017 \001(\0162).google.c" + + "loud.vision.v1p4beta1.Likelihood\022P\n\022reco" + + "gnition_result\030\020 \003(\01324.google.cloud.visi" + + "on.v1p4beta1.FaceRecognitionResult\032\307\007\n\010L" + + "andmark\022I\n\004type\030\003 \001(\0162;.google.cloud.vis" + + "ion.v1p4beta1.FaceAnnotation.Landmark.Ty" + + "pe\0229\n\010position\030\004 \001(\0132\'.google.cloud.visi" + + "on.v1p4beta1.Position\"\264\006\n\004Type\022\024\n\020UNKNOW" + + "N_LANDMARK\020\000\022\014\n\010LEFT_EYE\020\001\022\r\n\tRIGHT_EYE\020" + + "\002\022\030\n\024LEFT_OF_LEFT_EYEBROW\020\003\022\031\n\025RIGHT_OF_" + + "LEFT_EYEBROW\020\004\022\031\n\025LEFT_OF_RIGHT_EYEBROW\020" + + "\005\022\032\n\026RIGHT_OF_RIGHT_EYEBROW\020\006\022\031\n\025MIDPOIN" + + "T_BETWEEN_EYES\020\007\022\014\n\010NOSE_TIP\020\010\022\r\n\tUPPER_" + + "LIP\020\t\022\r\n\tLOWER_LIP\020\n\022\016\n\nMOUTH_LEFT\020\013\022\017\n\013" + + "MOUTH_RIGHT\020\014\022\020\n\014MOUTH_CENTER\020\r\022\025\n\021NOSE_" + + "BOTTOM_RIGHT\020\016\022\024\n\020NOSE_BOTTOM_LEFT\020\017\022\026\n\022" + + "NOSE_BOTTOM_CENTER\020\020\022\031\n\025LEFT_EYE_TOP_BOU" + + "NDARY\020\021\022\031\n\025LEFT_EYE_RIGHT_CORNER\020\022\022\034\n\030LE" + + "FT_EYE_BOTTOM_BOUNDARY\020\023\022\030\n\024LEFT_EYE_LEF" + + "T_CORNER\020\024\022\032\n\026RIGHT_EYE_TOP_BOUNDARY\020\025\022\032" + + "\n\026RIGHT_EYE_RIGHT_CORNER\020\026\022\035\n\031RIGHT_EYE_" + + "BOTTOM_BOUNDARY\020\027\022\031\n\025RIGHT_EYE_LEFT_CORN" + + "ER\020\030\022\037\n\033LEFT_EYEBROW_UPPER_MIDPOINT\020\031\022 \n" + + "\034RIGHT_EYEBROW_UPPER_MIDPOINT\020\032\022\024\n\020LEFT_" + + "EAR_TRAGION\020\033\022\025\n\021RIGHT_EAR_TRAGION\020\034\022\022\n\016" + + "LEFT_EYE_PUPIL\020\035\022\023\n\017RIGHT_EYE_PUPIL\020\036\022\025\n" + + "\021FOREHEAD_GLABELLA\020\037\022\021\n\rCHIN_GNATHION\020 \022" + + "\024\n\020CHIN_LEFT_GONION\020!\022\025\n\021CHIN_RIGHT_GONI" + + "ON\020\"\"4\n\014LocationInfo\022$\n\007lat_lng\030\001 \001(\0132\023." + + "google.type.LatLng\"=\n\010Property\022\014\n\004name\030\001" + + " \001(\t\022\r\n\005value\030\002 \001(\t\022\024\n\014uint64_value\030\003 \001(" + + "\004\"\300\002\n\020EntityAnnotation\022\013\n\003mid\030\001 \001(\t\022\016\n\006l" + + "ocale\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022\r\n\005scor" + + "e\030\004 \001(\002\022\026\n\nconfidence\030\005 \001(\002B\002\030\001\022\022\n\ntopic" + + "ality\030\006 \001(\002\022B\n\rbounding_poly\030\007 \001(\0132+.goo" + + "gle.cloud.vision.v1p4beta1.BoundingPoly\022" + + ">\n\tlocations\030\010 \003(\0132+.google.cloud.vision" + + ".v1p4beta1.LocationInfo\022;\n\nproperties\030\t " + + "\003(\0132\'.google.cloud.vision.v1p4beta1.Prop" + + "erty\"\240\001\n\031LocalizedObjectAnnotation\022\013\n\003mi" + + "d\030\001 \001(\t\022\025\n\rlanguage_code\030\002 \001(\t\022\014\n\004name\030\003" + + " \001(\t\022\r\n\005score\030\004 \001(\002\022B\n\rbounding_poly\030\005 \001" + + "(\0132+.google.cloud.vision.v1p4beta1.Bound" + + "ingPoly\"\274\002\n\024SafeSearchAnnotation\0228\n\005adul" + + "t\030\001 \001(\0162).google.cloud.vision.v1p4beta1." + + "Likelihood\0228\n\005spoof\030\002 \001(\0162).google.cloud" + + ".vision.v1p4beta1.Likelihood\022:\n\007medical\030" + + "\003 \001(\0162).google.cloud.vision.v1p4beta1.Li" + + "kelihood\022;\n\010violence\030\004 \001(\0162).google.clou" + + "d.vision.v1p4beta1.Likelihood\0227\n\004racy\030\t " + "\001(\0162).google.cloud.vision.v1p4beta1.Like" - + "lihood\022:\n\007medical\030\003 \001(\0162).google.cloud.v" - + "ision.v1p4beta1.Likelihood\022;\n\010violence\030\004" - + " \001(\0162).google.cloud.vision.v1p4beta1.Lik" - + "elihood\0227\n\004racy\030\t \001(\0162).google.cloud.vis" - + "ion.v1p4beta1.Likelihood\"a\n\013LatLongRect\022" - + "(\n\013min_lat_lng\030\001 \001(\0132\023.google.type.LatLn" - + "g\022(\n\013max_lat_lng\030\002 \001(\0132\023.google.type.Lat" - + "Lng\"U\n\tColorInfo\022!\n\005color\030\001 \001(\0132\022.google" - + ".type.Color\022\r\n\005score\030\002 \001(\002\022\026\n\016pixel_frac" - + "tion\030\003 \001(\002\"T\n\030DominantColorsAnnotation\0228" - + "\n\006colors\030\001 \003(\0132(.google.cloud.vision.v1p" - + "4beta1.ColorInfo\"c\n\017ImageProperties\022P\n\017d" - + "ominant_colors\030\001 \001(\01327.google.cloud.visi" - + "on.v1p4beta1.DominantColorsAnnotation\"\177\n" - + "\010CropHint\022B\n\rbounding_poly\030\001 \001(\0132+.googl" - + "e.cloud.vision.v1p4beta1.BoundingPoly\022\022\n" - + "\nconfidence\030\002 \001(\002\022\033\n\023importance_fraction" - + "\030\003 \001(\002\"R\n\023CropHintsAnnotation\022;\n\ncrop_hi" - + "nts\030\001 \003(\0132\'.google.cloud.vision.v1p4beta" - + "1.CropHint\"(\n\017CropHintsParams\022\025\n\raspect_" - + "ratios\030\001 \003(\002\"1\n\022WebDetectionParams\022\033\n\023in" - + "clude_geo_results\030\002 \001(\010\"\330\002\n\014ImageContext" - + "\022A\n\rlat_long_rect\030\001 \001(\0132*.google.cloud.v" - + "ision.v1p4beta1.LatLongRect\022\026\n\016language_" - + "hints\030\002 \003(\t\022I\n\021crop_hints_params\030\004 \001(\0132." - + ".google.cloud.vision.v1p4beta1.CropHints" - + "Params\022Q\n\025product_search_params\030\005 \001(\01322." - + "google.cloud.vision.v1p4beta1.ProductSea" - + "rchParams\022O\n\024web_detection_params\030\006 \001(\0132" - + "1.google.cloud.vision.v1p4beta1.WebDetec" - + "tionParams\"\311\001\n\024AnnotateImageRequest\0223\n\005i" - + "mage\030\001 \001(\0132$.google.cloud.vision.v1p4bet" - + "a1.Image\0228\n\010features\030\002 \003(\0132&.google.clou" + + "lihood\"a\n\013LatLongRect\022(\n\013min_lat_lng\030\001 \001" + + "(\0132\023.google.type.LatLng\022(\n\013max_lat_lng\030\002" + + " \001(\0132\023.google.type.LatLng\"U\n\tColorInfo\022!" + + "\n\005color\030\001 \001(\0132\022.google.type.Color\022\r\n\005sco" + + "re\030\002 \001(\002\022\026\n\016pixel_fraction\030\003 \001(\002\"T\n\030Domi" + + "nantColorsAnnotation\0228\n\006colors\030\001 \003(\0132(.g" + + "oogle.cloud.vision.v1p4beta1.ColorInfo\"c" + + "\n\017ImageProperties\022P\n\017dominant_colors\030\001 \001" + + "(\01327.google.cloud.vision.v1p4beta1.Domin" + + "antColorsAnnotation\"\177\n\010CropHint\022B\n\rbound" + + "ing_poly\030\001 \001(\0132+.google.cloud.vision.v1p" + + "4beta1.BoundingPoly\022\022\n\nconfidence\030\002 \001(\002\022" + + "\033\n\023importance_fraction\030\003 \001(\002\"R\n\023CropHint" + + "sAnnotation\022;\n\ncrop_hints\030\001 \003(\0132\'.google" + + ".cloud.vision.v1p4beta1.CropHint\"(\n\017Crop" + + "HintsParams\022\025\n\raspect_ratios\030\001 \003(\002\"1\n\022We" + + "bDetectionParams\022\033\n\023include_geo_results\030" + + "\002 \001(\010\"\257\003\n\014ImageContext\022A\n\rlat_long_rect\030" + + "\001 \001(\0132*.google.cloud.vision.v1p4beta1.La" + + "tLongRect\022\026\n\016language_hints\030\002 \003(\t\022I\n\021cro" + + "p_hints_params\030\004 \001(\0132..google.cloud.visi" + + "on.v1p4beta1.CropHintsParams\022U\n\027face_rec" + + "ognition_params\030\n \001(\01324.google.cloud.vis" + + "ion.v1p4beta1.FaceRecognitionParams\022Q\n\025p" + + "roduct_search_params\030\005 \001(\01322.google.clou" + + "d.vision.v1p4beta1.ProductSearchParams\022O" + + "\n\024web_detection_params\030\006 \001(\01321.google.cl" + + "oud.vision.v1p4beta1.WebDetectionParams\"" + + "\311\001\n\024AnnotateImageRequest\0223\n\005image\030\001 \001(\0132" + + "$.google.cloud.vision.v1p4beta1.Image\0228\n" + + "\010features\030\002 \003(\0132&.google.cloud.vision.v1" + + "p4beta1.Feature\022B\n\rimage_context\030\003 \001(\0132+" + + ".google.cloud.vision.v1p4beta1.ImageCont" + + "ext\":\n\026ImageAnnotationContext\022\013\n\003uri\030\001 \001" + + "(\t\022\023\n\013page_number\030\002 \001(\005\"\277\010\n\025AnnotateImag" + + "eResponse\022G\n\020face_annotations\030\001 \003(\0132-.go" + + "ogle.cloud.vision.v1p4beta1.FaceAnnotati" + + "on\022M\n\024landmark_annotations\030\002 \003(\0132/.googl" + + "e.cloud.vision.v1p4beta1.EntityAnnotatio" + + "n\022I\n\020logo_annotations\030\003 \003(\0132/.google.clo" + + "ud.vision.v1p4beta1.EntityAnnotation\022J\n\021" + + "label_annotations\030\004 \003(\0132/.google.cloud.v" + + "ision.v1p4beta1.EntityAnnotation\022^\n\034loca" + + "lized_object_annotations\030\026 \003(\01328.google." + + "cloud.vision.v1p4beta1.LocalizedObjectAn" + + "notation\022I\n\020text_annotations\030\005 \003(\0132/.goo" + + "gle.cloud.vision.v1p4beta1.EntityAnnotat" + + "ion\022K\n\024full_text_annotation\030\014 \001(\0132-.goog" + + "le.cloud.vision.v1p4beta1.TextAnnotation" + + "\022S\n\026safe_search_annotation\030\006 \001(\01323.googl" + + "e.cloud.vision.v1p4beta1.SafeSearchAnnot" + + "ation\022S\n\033image_properties_annotation\030\010 \001" + + "(\0132..google.cloud.vision.v1p4beta1.Image" + + "Properties\022Q\n\025crop_hints_annotation\030\013 \001(" + + "\01322.google.cloud.vision.v1p4beta1.CropHi" + + "ntsAnnotation\022B\n\rweb_detection\030\r \001(\0132+.g" + + "oogle.cloud.vision.v1p4beta1.WebDetectio" + + "n\022S\n\026product_search_results\030\016 \001(\01323.goog" + + "le.cloud.vision.v1p4beta1.ProductSearchR" + + "esults\022!\n\005error\030\t \001(\0132\022.google.rpc.Statu" + + "s\022F\n\007context\030\025 \001(\01325.google.cloud.vision" + + ".v1p4beta1.ImageAnnotationContext\"c\n\032Bat" + + "chAnnotateImagesRequest\022E\n\010requests\030\001 \003(" + + "\01323.google.cloud.vision.v1p4beta1.Annota" + + "teImageRequest\"f\n\033BatchAnnotateImagesRes" + + "ponse\022G\n\tresponses\030\001 \003(\01324.google.cloud." + + "vision.v1p4beta1.AnnotateImageResponse\"\344" + + "\001\n\023AnnotateFileRequest\022@\n\014input_config\030\001" + + " \001(\0132*.google.cloud.vision.v1p4beta1.Inp" + + "utConfig\0228\n\010features\030\002 \003(\0132&.google.clou" + "d.vision.v1p4beta1.Feature\022B\n\rimage_cont" + "ext\030\003 \001(\0132+.google.cloud.vision.v1p4beta" - + "1.ImageContext\":\n\026ImageAnnotationContext" - + "\022\013\n\003uri\030\001 \001(\t\022\023\n\013page_number\030\002 \001(\005\"\277\010\n\025A" - + "nnotateImageResponse\022G\n\020face_annotations" - + "\030\001 \003(\0132-.google.cloud.vision.v1p4beta1.F" - + "aceAnnotation\022M\n\024landmark_annotations\030\002 " - + "\003(\0132/.google.cloud.vision.v1p4beta1.Enti" - + "tyAnnotation\022I\n\020logo_annotations\030\003 \003(\0132/" - + ".google.cloud.vision.v1p4beta1.EntityAnn" - + "otation\022J\n\021label_annotations\030\004 \003(\0132/.goo" - + "gle.cloud.vision.v1p4beta1.EntityAnnotat" - + "ion\022^\n\034localized_object_annotations\030\026 \003(" - + "\01328.google.cloud.vision.v1p4beta1.Locali" - + "zedObjectAnnotation\022I\n\020text_annotations\030" - + "\005 \003(\0132/.google.cloud.vision.v1p4beta1.En" - + "tityAnnotation\022K\n\024full_text_annotation\030\014" - + " \001(\0132-.google.cloud.vision.v1p4beta1.Tex" - + "tAnnotation\022S\n\026safe_search_annotation\030\006 " - + "\001(\01323.google.cloud.vision.v1p4beta1.Safe" - + "SearchAnnotation\022S\n\033image_properties_ann" - + "otation\030\010 \001(\0132..google.cloud.vision.v1p4" - + "beta1.ImageProperties\022Q\n\025crop_hints_anno" - + "tation\030\013 \001(\01322.google.cloud.vision.v1p4b" - + "eta1.CropHintsAnnotation\022B\n\rweb_detectio" - + "n\030\r \001(\0132+.google.cloud.vision.v1p4beta1." - + "WebDetection\022S\n\026product_search_results\030\016" - + " \001(\01323.google.cloud.vision.v1p4beta1.Pro" - + "ductSearchResults\022!\n\005error\030\t \001(\0132\022.googl" - + "e.rpc.Status\022F\n\007context\030\025 \001(\01325.google.c" - + "loud.vision.v1p4beta1.ImageAnnotationCon" - + "text\"\266\001\n\024AnnotateFileResponse\022@\n\014input_c" - + "onfig\030\001 \001(\0132*.google.cloud.vision.v1p4be" - + "ta1.InputConfig\022G\n\tresponses\030\002 \003(\01324.goo" - + "gle.cloud.vision.v1p4beta1.AnnotateImage" - + "Response\022\023\n\013total_pages\030\003 \001(\005\"c\n\032BatchAn" - + "notateImagesRequest\022E\n\010requests\030\001 \003(\01323." - + "google.cloud.vision.v1p4beta1.AnnotateIm" - + "ageRequest\"f\n\033BatchAnnotateImagesRespons" - + "e\022G\n\tresponses\030\001 \003(\01324.google.cloud.visi" - + "on.v1p4beta1.AnnotateImageResponse\"\344\001\n\023A" - + "nnotateFileRequest\022@\n\014input_config\030\001 \001(\013" - + "2*.google.cloud.vision.v1p4beta1.InputCo" - + "nfig\0228\n\010features\030\002 \003(\0132&.google.cloud.vi" - + "sion.v1p4beta1.Feature\022B\n\rimage_context\030" - + "\003 \001(\0132+.google.cloud.vision.v1p4beta1.Im" - + "ageContext\022\r\n\005pages\030\004 \003(\005\"a\n\031BatchAnnota" - + "teFilesRequest\022D\n\010requests\030\001 \003(\01322.googl" - + "e.cloud.vision.v1p4beta1.AnnotateFileReq" - + "uest\"d\n\032BatchAnnotateFilesResponse\022F\n\tre" - + "sponses\030\001 \003(\01323.google.cloud.vision.v1p4" - + "beta1.AnnotateFileResponse\"\236\002\n\030AsyncAnno" - + "tateFileRequest\022@\n\014input_config\030\001 \001(\0132*." - + "google.cloud.vision.v1p4beta1.InputConfi" - + "g\0228\n\010features\030\002 \003(\0132&.google.cloud.visio" - + "n.v1p4beta1.Feature\022B\n\rimage_context\030\003 \001" - + "(\0132+.google.cloud.vision.v1p4beta1.Image" - + "Context\022B\n\routput_config\030\004 \001(\0132+.google." - + "cloud.vision.v1p4beta1.OutputConfig\"_\n\031A" - + "syncAnnotateFileResponse\022B\n\routput_confi" - + "g\030\001 \001(\0132+.google.cloud.vision.v1p4beta1." - + "OutputConfig\"\254\001\n\037AsyncBatchAnnotateImage" - + "sRequest\022E\n\010requests\030\001 \003(\01323.google.clou" - + "d.vision.v1p4beta1.AnnotateImageRequest\022" - + "B\n\routput_config\030\002 \001(\0132+.google.cloud.vi" - + "sion.v1p4beta1.OutputConfig\"f\n AsyncBatc" - + "hAnnotateImagesResponse\022B\n\routput_config" - + "\030\001 \001(\0132+.google.cloud.vision.v1p4beta1.O" - + "utputConfig\"k\n\036AsyncBatchAnnotateFilesRe" - + "quest\022I\n\010requests\030\001 \003(\01327.google.cloud.v" - + "ision.v1p4beta1.AsyncAnnotateFileRequest" - + "\"n\n\037AsyncBatchAnnotateFilesResponse\022K\n\tr" - + "esponses\030\001 \003(\01328.google.cloud.vision.v1p" - + "4beta1.AsyncAnnotateFileResponse\"o\n\013Inpu" - + "tConfig\022<\n\ngcs_source\030\001 \001(\0132(.google.clo" - + "ud.vision.v1p4beta1.GcsSource\022\017\n\007content" - + "\030\003 \001(\014\022\021\n\tmime_type\030\002 \001(\t\"j\n\014OutputConfi" - + "g\022F\n\017gcs_destination\030\001 \001(\0132-.google.clou" - + "d.vision.v1p4beta1.GcsDestination\022\022\n\nbat" - + "ch_size\030\002 \001(\005\"\030\n\tGcsSource\022\013\n\003uri\030\001 \001(\t\"" - + "\035\n\016GcsDestination\022\013\n\003uri\030\001 \001(\t\"\217\002\n\021Opera" - + "tionMetadata\022E\n\005state\030\001 \001(\01626.google.clo" - + "ud.vision.v1p4beta1.OperationMetadata.St" - + "ate\022/\n\013create_time\030\005 \001(\0132\032.google.protob" - + "uf.Timestamp\022/\n\013update_time\030\006 \001(\0132\032.goog" - + "le.protobuf.Timestamp\"Q\n\005State\022\025\n\021STATE_" - + "UNSPECIFIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007RUNNING\020\002\022" - + "\010\n\004DONE\020\003\022\r\n\tCANCELLED\020\004*e\n\nLikelihood\022\013" - + "\n\007UNKNOWN\020\000\022\021\n\rVERY_UNLIKELY\020\001\022\014\n\010UNLIKE" - + "LY\020\002\022\014\n\010POSSIBLE\020\003\022\n\n\006LIKELY\020\004\022\017\n\013VERY_L" - + "IKELY\020\0052\317\005\n\016ImageAnnotator\022\263\001\n\023BatchAnno" - + "tateImages\0229.google.cloud.vision.v1p4bet" - + "a1.BatchAnnotateImagesRequest\032:.google.c" - + "loud.vision.v1p4beta1.BatchAnnotateImage" - + "sResponse\"%\202\323\344\223\002\037\"\032/v1p4beta1/images:ann" - + "otate:\001*\022\257\001\n\022BatchAnnotateFiles\0228.google" - + ".cloud.vision.v1p4beta1.BatchAnnotateFil" - + "esRequest\0329.google.cloud.vision.v1p4beta" - + "1.BatchAnnotateFilesResponse\"$\202\323\344\223\002\036\"\031/v" - + "1p4beta1/files:annotate:\001*\022\252\001\n\030AsyncBatc" - + "hAnnotateImages\022>.google.cloud.vision.v1" - + "p4beta1.AsyncBatchAnnotateImagesRequest\032" - + "\035.google.longrunning.Operation\"/\202\323\344\223\002)\"$" - + "/v1p4beta1/images:asyncBatchAnnotate:\001*\022" - + "\247\001\n\027AsyncBatchAnnotateFiles\022=.google.clo" - + "ud.vision.v1p4beta1.AsyncBatchAnnotateFi" - + "lesRequest\032\035.google.longrunning.Operatio" - + "n\".\202\323\344\223\002(\"#/v1p4beta1/files:asyncBatchAn" - + "notate:\001*B\211\001\n!com.google.cloud.vision.v1" - + "p4beta1B\023ImageAnnotatorProtoP\001ZCgoogle.g" - + "olang.org/genproto/googleapis/cloud/visi" - + "on/v1p4beta1;vision\370\001\001\242\002\004GCVNb\006proto3" + + "1.ImageContext\022\r\n\005pages\030\004 \003(\005\"\331\001\n\024Annota" + + "teFileResponse\022@\n\014input_config\030\001 \001(\0132*.g" + + "oogle.cloud.vision.v1p4beta1.InputConfig" + + "\022G\n\tresponses\030\002 \003(\01324.google.cloud.visio" + + "n.v1p4beta1.AnnotateImageResponse\022\023\n\013tot" + + "al_pages\030\003 \001(\005\022!\n\005error\030\004 \001(\0132\022.google.r" + + "pc.Status\"f\n\031BatchAnnotateFilesRequest\022I" + + "\n\010requests\030\001 \003(\01322.google.cloud.vision.v" + + "1p4beta1.AnnotateFileRequestB\003\340A\002\"d\n\032Bat" + + "chAnnotateFilesResponse\022F\n\tresponses\030\001 \003" + + "(\01323.google.cloud.vision.v1p4beta1.Annot" + + "ateFileResponse\"\236\002\n\030AsyncAnnotateFileReq" + + "uest\022@\n\014input_config\030\001 \001(\0132*.google.clou" + + "d.vision.v1p4beta1.InputConfig\0228\n\010featur" + + "es\030\002 \003(\0132&.google.cloud.vision.v1p4beta1" + + ".Feature\022B\n\rimage_context\030\003 \001(\0132+.google" + + ".cloud.vision.v1p4beta1.ImageContext\022B\n\r" + + "output_config\030\004 \001(\0132+.google.cloud.visio" + + "n.v1p4beta1.OutputConfig\"_\n\031AsyncAnnotat" + + "eFileResponse\022B\n\routput_config\030\001 \001(\0132+.g" + + "oogle.cloud.vision.v1p4beta1.OutputConfi" + + "g\"\266\001\n\037AsyncBatchAnnotateImagesRequest\022J\n" + + "\010requests\030\001 \003(\01323.google.cloud.vision.v1" + + "p4beta1.AnnotateImageRequestB\003\340A\002\022G\n\rout" + + "put_config\030\002 \001(\0132+.google.cloud.vision.v" + + "1p4beta1.OutputConfigB\003\340A\002\"f\n AsyncBatch" + + "AnnotateImagesResponse\022B\n\routput_config\030" + + "\001 \001(\0132+.google.cloud.vision.v1p4beta1.Ou" + + "tputConfig\"p\n\036AsyncBatchAnnotateFilesReq" + + "uest\022N\n\010requests\030\001 \003(\01327.google.cloud.vi" + + "sion.v1p4beta1.AsyncAnnotateFileRequestB" + + "\003\340A\002\"n\n\037AsyncBatchAnnotateFilesResponse\022" + + "K\n\tresponses\030\001 \003(\01328.google.cloud.vision" + + ".v1p4beta1.AsyncAnnotateFileResponse\"o\n\013" + + "InputConfig\022<\n\ngcs_source\030\001 \001(\0132(.google" + + ".cloud.vision.v1p4beta1.GcsSource\022\017\n\007con" + + "tent\030\003 \001(\014\022\021\n\tmime_type\030\002 \001(\t\"j\n\014OutputC" + + "onfig\022F\n\017gcs_destination\030\001 \001(\0132-.google." + + "cloud.vision.v1p4beta1.GcsDestination\022\022\n" + + "\nbatch_size\030\002 \001(\005\"\030\n\tGcsSource\022\013\n\003uri\030\001 " + + "\001(\t\"\035\n\016GcsDestination\022\013\n\003uri\030\001 \001(\t\"\217\002\n\021O" + + "perationMetadata\022E\n\005state\030\001 \001(\01626.google" + + ".cloud.vision.v1p4beta1.OperationMetadat" + + "a.State\022/\n\013create_time\030\005 \001(\0132\032.google.pr" + + "otobuf.Timestamp\022/\n\013update_time\030\006 \001(\0132\032." + + "google.protobuf.Timestamp\"Q\n\005State\022\025\n\021ST" + + "ATE_UNSPECIFIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007RUNNIN" + + "G\020\002\022\010\n\004DONE\020\003\022\r\n\tCANCELLED\020\004*e\n\nLikeliho" + + "od\022\013\n\007UNKNOWN\020\000\022\021\n\rVERY_UNLIKELY\020\001\022\014\n\010UN" + + "LIKELY\020\002\022\014\n\010POSSIBLE\020\003\022\n\n\006LIKELY\020\004\022\017\n\013VE" + + "RY_LIKELY\020\0052\361\007\n\016ImageAnnotator\022\276\001\n\023Batch" + + "AnnotateImages\0229.google.cloud.vision.v1p" + + "4beta1.BatchAnnotateImagesRequest\032:.goog" + + "le.cloud.vision.v1p4beta1.BatchAnnotateI" + + "magesResponse\"0\202\323\344\223\002\037\"\032/v1p4beta1/images" + + ":annotate:\001*\332A\010requests\022\272\001\n\022BatchAnnotat" + + "eFiles\0228.google.cloud.vision.v1p4beta1.B" + + "atchAnnotateFilesRequest\0329.google.cloud." + + "vision.v1p4beta1.BatchAnnotateFilesRespo" + + "nse\"/\202\323\344\223\002\036\"\031/v1p4beta1/files:annotate:\001" + + "*\332A\010requests\022\374\001\n\030AsyncBatchAnnotateImage" + + "s\022>.google.cloud.vision.v1p4beta1.AsyncB" + + "atchAnnotateImagesRequest\032\035.google.longr" + + "unning.Operation\"\200\001\202\323\344\223\002)\"$/v1p4beta1/im" + + "ages:asyncBatchAnnotate:\001*\332A\026requests,ou" + + "tput_config\312A5\n AsyncBatchAnnotateImages" + + "Response\022\021OperationMetadata\022\351\001\n\027AsyncBat" + + "chAnnotateFiles\022=.google.cloud.vision.v1" + + "p4beta1.AsyncBatchAnnotateFilesRequest\032\035" + + ".google.longrunning.Operation\"p\202\323\344\223\002(\"#/" + + "v1p4beta1/files:asyncBatchAnnotate:\001*\332A\010" + + "requests\312A4\n\037AsyncBatchAnnotateFilesResp" + + "onse\022\021OperationMetadata\032v\312A\025vision.googl" + + "eapis.com\322A[https://www.googleapis.com/a" + + "uth/cloud-platform,https://www.googleapi" + + "s.com/auth/cloud-visionB\211\001\n!com.google.c" + + "loud.vision.v1p4beta1B\023ImageAnnotatorPro" + + "toP\001ZCgoogle.golang.org/genproto/googlea" + + "pis/cloud/vision/v1p4beta1;vision\370\001\001\242\002\004G" + + "CVNb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -440,6 +456,9 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.vision.v1p4beta1.CelebrityProto.getDescriptor(), com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(), com.google.cloud.vision.v1p4beta1.ProductSearchProto.getDescriptor(), com.google.cloud.vision.v1p4beta1.TextAnnotationProto.getDescriptor(), @@ -497,6 +516,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "UnderExposedLikelihood", "BlurredLikelihood", "HeadwearLikelihood", + "RecognitionResult", }); internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_Landmark_descriptor = internal_static_google_cloud_vision_v1p4beta1_FaceAnnotation_descriptor @@ -629,6 +649,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "LatLongRect", "LanguageHints", "CropHintsParams", + "FaceRecognitionParams", "ProductSearchParams", "WebDetectionParams", }); @@ -669,16 +690,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Error", "Context", }); - internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_descriptor, - new java.lang.String[] { - "InputConfig", "Responses", "TotalPages", - }); internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesRequest_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesRequest_descriptor, @@ -686,7 +699,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Requests", }); internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesResponse_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateImagesResponse_descriptor, @@ -694,13 +707,21 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Responses", }); internal_static_google_cloud_vision_v1p4beta1_AnnotateFileRequest_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_vision_v1p4beta1_AnnotateFileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vision_v1p4beta1_AnnotateFileRequest_descriptor, new java.lang.String[] { "InputConfig", "Features", "ImageContext", "Pages", }); + internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_AnnotateFileResponse_descriptor, + new java.lang.String[] { + "InputConfig", "Responses", "TotalPages", "Error", + }); internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesRequest_descriptor = getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_vision_v1p4beta1_BatchAnnotateFilesRequest_fieldAccessorTable = @@ -807,10 +828,18 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.longrunning.OperationsProto.operationInfo); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.vision.v1p4beta1.CelebrityProto.getDescriptor(); com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(); com.google.cloud.vision.v1p4beta1.ProductSearchProto.getDescriptor(); com.google.cloud.vision.v1p4beta1.TextAnnotationProto.getDescriptor(); diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageContext.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageContext.java index 30032ad4b..3715d7886 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageContext.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageContext.java @@ -140,6 +140,23 @@ private ImageContext( webDetectionParams_ = subBuilder.buildPartial(); } + break; + } + case 82: + { + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.Builder subBuilder = null; + if (faceRecognitionParams_ != null) { + subBuilder = faceRecognitionParams_.toBuilder(); + } + faceRecognitionParams_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(faceRecognitionParams_); + faceRecognitionParams_ = subBuilder.buildPartial(); + } + break; } default: @@ -341,6 +358,48 @@ public com.google.cloud.vision.v1p4beta1.CropHintsParamsOrBuilder getCropHintsPa return getCropHintsParams(); } + public static final int FACE_RECOGNITION_PARAMS_FIELD_NUMBER = 10; + private com.google.cloud.vision.v1p4beta1.FaceRecognitionParams faceRecognitionParams_; + /** + * + * + *
+   * Parameters for face recognition.
+   * 
+ * + * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; + */ + public boolean hasFaceRecognitionParams() { + return faceRecognitionParams_ != null; + } + /** + * + * + *
+   * Parameters for face recognition.
+   * 
+ * + * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; + */ + public com.google.cloud.vision.v1p4beta1.FaceRecognitionParams getFaceRecognitionParams() { + return faceRecognitionParams_ == null + ? com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.getDefaultInstance() + : faceRecognitionParams_; + } + /** + * + * + *
+   * Parameters for face recognition.
+   * 
+ * + * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; + */ + public com.google.cloud.vision.v1p4beta1.FaceRecognitionParamsOrBuilder + getFaceRecognitionParamsOrBuilder() { + return getFaceRecognitionParams(); + } + public static final int PRODUCT_SEARCH_PARAMS_FIELD_NUMBER = 5; private com.google.cloud.vision.v1p4beta1.ProductSearchParams productSearchParams_; /** @@ -454,6 +513,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (webDetectionParams_ != null) { output.writeMessage(6, getWebDetectionParams()); } + if (faceRecognitionParams_ != null) { + output.writeMessage(10, getFaceRecognitionParams()); + } unknownFields.writeTo(output); } @@ -483,6 +545,10 @@ public int getSerializedSize() { if (webDetectionParams_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getWebDetectionParams()); } + if (faceRecognitionParams_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(10, getFaceRecognitionParams()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -508,6 +574,10 @@ public boolean equals(final java.lang.Object obj) { if (hasCropHintsParams()) { if (!getCropHintsParams().equals(other.getCropHintsParams())) return false; } + if (hasFaceRecognitionParams() != other.hasFaceRecognitionParams()) return false; + if (hasFaceRecognitionParams()) { + if (!getFaceRecognitionParams().equals(other.getFaceRecognitionParams())) return false; + } if (hasProductSearchParams() != other.hasProductSearchParams()) return false; if (hasProductSearchParams()) { if (!getProductSearchParams().equals(other.getProductSearchParams())) return false; @@ -539,6 +609,10 @@ public int hashCode() { hash = (37 * hash) + CROP_HINTS_PARAMS_FIELD_NUMBER; hash = (53 * hash) + getCropHintsParams().hashCode(); } + if (hasFaceRecognitionParams()) { + hash = (37 * hash) + FACE_RECOGNITION_PARAMS_FIELD_NUMBER; + hash = (53 * hash) + getFaceRecognitionParams().hashCode(); + } if (hasProductSearchParams()) { hash = (37 * hash) + PRODUCT_SEARCH_PARAMS_FIELD_NUMBER; hash = (53 * hash) + getProductSearchParams().hashCode(); @@ -706,6 +780,12 @@ public Builder clear() { cropHintsParams_ = null; cropHintsParamsBuilder_ = null; } + if (faceRecognitionParamsBuilder_ == null) { + faceRecognitionParams_ = null; + } else { + faceRecognitionParams_ = null; + faceRecognitionParamsBuilder_ = null; + } if (productSearchParamsBuilder_ == null) { productSearchParams_ = null; } else { @@ -762,6 +842,11 @@ public com.google.cloud.vision.v1p4beta1.ImageContext buildPartial() { } else { result.cropHintsParams_ = cropHintsParamsBuilder_.build(); } + if (faceRecognitionParamsBuilder_ == null) { + result.faceRecognitionParams_ = faceRecognitionParams_; + } else { + result.faceRecognitionParams_ = faceRecognitionParamsBuilder_.build(); + } if (productSearchParamsBuilder_ == null) { result.productSearchParams_ = productSearchParams_; } else { @@ -838,6 +923,9 @@ public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ImageContext other) { if (other.hasCropHintsParams()) { mergeCropHintsParams(other.getCropHintsParams()); } + if (other.hasFaceRecognitionParams()) { + mergeFaceRecognitionParams(other.getFaceRecognitionParams()); + } if (other.hasProductSearchParams()) { mergeProductSearchParams(other.getProductSearchParams()); } @@ -1446,6 +1534,202 @@ public com.google.cloud.vision.v1p4beta1.CropHintsParams.Builder getCropHintsPar return cropHintsParamsBuilder_; } + private com.google.cloud.vision.v1p4beta1.FaceRecognitionParams faceRecognitionParams_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams, + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.Builder, + com.google.cloud.vision.v1p4beta1.FaceRecognitionParamsOrBuilder> + faceRecognitionParamsBuilder_; + /** + * + * + *
+     * Parameters for face recognition.
+     * 
+ * + * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; + * + */ + public boolean hasFaceRecognitionParams() { + return faceRecognitionParamsBuilder_ != null || faceRecognitionParams_ != null; + } + /** + * + * + *
+     * Parameters for face recognition.
+     * 
+ * + * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; + * + */ + public com.google.cloud.vision.v1p4beta1.FaceRecognitionParams getFaceRecognitionParams() { + if (faceRecognitionParamsBuilder_ == null) { + return faceRecognitionParams_ == null + ? com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.getDefaultInstance() + : faceRecognitionParams_; + } else { + return faceRecognitionParamsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Parameters for face recognition.
+     * 
+ * + * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; + * + */ + public Builder setFaceRecognitionParams( + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams value) { + if (faceRecognitionParamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + faceRecognitionParams_ = value; + onChanged(); + } else { + faceRecognitionParamsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Parameters for face recognition.
+     * 
+ * + * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; + * + */ + public Builder setFaceRecognitionParams( + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.Builder builderForValue) { + if (faceRecognitionParamsBuilder_ == null) { + faceRecognitionParams_ = builderForValue.build(); + onChanged(); + } else { + faceRecognitionParamsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Parameters for face recognition.
+     * 
+ * + * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; + * + */ + public Builder mergeFaceRecognitionParams( + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams value) { + if (faceRecognitionParamsBuilder_ == null) { + if (faceRecognitionParams_ != null) { + faceRecognitionParams_ = + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.newBuilder( + faceRecognitionParams_) + .mergeFrom(value) + .buildPartial(); + } else { + faceRecognitionParams_ = value; + } + onChanged(); + } else { + faceRecognitionParamsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Parameters for face recognition.
+     * 
+ * + * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; + * + */ + public Builder clearFaceRecognitionParams() { + if (faceRecognitionParamsBuilder_ == null) { + faceRecognitionParams_ = null; + onChanged(); + } else { + faceRecognitionParams_ = null; + faceRecognitionParamsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Parameters for face recognition.
+     * 
+ * + * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; + * + */ + public com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.Builder + getFaceRecognitionParamsBuilder() { + + onChanged(); + return getFaceRecognitionParamsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Parameters for face recognition.
+     * 
+ * + * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; + * + */ + public com.google.cloud.vision.v1p4beta1.FaceRecognitionParamsOrBuilder + getFaceRecognitionParamsOrBuilder() { + if (faceRecognitionParamsBuilder_ != null) { + return faceRecognitionParamsBuilder_.getMessageOrBuilder(); + } else { + return faceRecognitionParams_ == null + ? com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.getDefaultInstance() + : faceRecognitionParams_; + } + } + /** + * + * + *
+     * Parameters for face recognition.
+     * 
+ * + * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams, + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.Builder, + com.google.cloud.vision.v1p4beta1.FaceRecognitionParamsOrBuilder> + getFaceRecognitionParamsFieldBuilder() { + if (faceRecognitionParamsBuilder_ == null) { + faceRecognitionParamsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams, + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams.Builder, + com.google.cloud.vision.v1p4beta1.FaceRecognitionParamsOrBuilder>( + getFaceRecognitionParams(), getParentForChildren(), isClean()); + faceRecognitionParams_ = null; + } + return faceRecognitionParamsBuilder_; + } + private com.google.cloud.vision.v1p4beta1.ProductSearchParams productSearchParams_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.vision.v1p4beta1.ProductSearchParams, diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageContextOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageContextOrBuilder.java index e67eea978..9dc824fbe 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageContextOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageContextOrBuilder.java @@ -154,6 +154,38 @@ public interface ImageContextOrBuilder */ com.google.cloud.vision.v1p4beta1.CropHintsParamsOrBuilder getCropHintsParamsOrBuilder(); + /** + * + * + *
+   * Parameters for face recognition.
+   * 
+ * + * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; + */ + boolean hasFaceRecognitionParams(); + /** + * + * + *
+   * Parameters for face recognition.
+   * 
+ * + * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; + */ + com.google.cloud.vision.v1p4beta1.FaceRecognitionParams getFaceRecognitionParams(); + /** + * + * + *
+   * Parameters for face recognition.
+   * 
+ * + * .google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10; + */ + com.google.cloud.vision.v1p4beta1.FaceRecognitionParamsOrBuilder + getFaceRecognitionParamsOrBuilder(); + /** * * diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsRequest.java index d5ab3013e..9bf541a68 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsRequest.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsRequest.java @@ -130,11 +130,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The project in which the ProductSets should be imported.
+   * Required. The project in which the ProductSets should be imported.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -151,11 +153,13 @@ public java.lang.String getParent() { * * *
-   * The project in which the ProductSets should be imported.
+   * Required. The project in which the ProductSets should be imported.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -175,10 +179,12 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * The input content for the list of requests.
+   * Required. The input content for the list of requests.
    * 
* - * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2; + * + * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasInputConfig() { return inputConfig_ != null; @@ -187,10 +193,12 @@ public boolean hasInputConfig() { * * *
-   * The input content for the list of requests.
+   * Required. The input content for the list of requests.
    * 
* - * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2; + * + * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig getInputConfig() { return inputConfig_ == null @@ -201,10 +209,12 @@ public com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig getInputCo * * *
-   * The input content for the list of requests.
+   * Required. The input content for the list of requests.
    * 
* - * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2; + * + * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfigOrBuilder getInputConfigOrBuilder() { @@ -563,11 +573,13 @@ public Builder mergeFrom( * * *
-     * The project in which the ProductSets should be imported.
+     * Required. The project in which the ProductSets should be imported.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -584,11 +596,13 @@ public java.lang.String getParent() { * * *
-     * The project in which the ProductSets should be imported.
+     * Required. The project in which the ProductSets should be imported.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -605,11 +619,13 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * The project in which the ProductSets should be imported.
+     * Required. The project in which the ProductSets should be imported.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -624,11 +640,13 @@ public Builder setParent(java.lang.String value) { * * *
-     * The project in which the ProductSets should be imported.
+     * Required. The project in which the ProductSets should be imported.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder clearParent() { @@ -640,11 +658,13 @@ public Builder clearParent() { * * *
-     * The project in which the ProductSets should be imported.
+     * Required. The project in which the ProductSets should be imported.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -667,10 +687,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * The input content for the list of requests.
+     * Required. The input content for the list of requests.
      * 
* - * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2; + * + * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; @@ -679,10 +701,12 @@ public boolean hasInputConfig() { * * *
-     * The input content for the list of requests.
+     * Required. The input content for the list of requests.
      * 
* - * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2; + * + * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig getInputConfig() { if (inputConfigBuilder_ == null) { @@ -697,10 +721,12 @@ public com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig getInputCo * * *
-     * The input content for the list of requests.
+     * Required. The input content for the list of requests.
      * 
* - * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2; + * + * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInputConfig( com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig value) { @@ -720,10 +746,12 @@ public Builder setInputConfig( * * *
-     * The input content for the list of requests.
+     * Required. The input content for the list of requests.
      * 
* - * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2; + * + * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInputConfig( com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.Builder builderForValue) { @@ -740,10 +768,12 @@ public Builder setInputConfig( * * *
-     * The input content for the list of requests.
+     * Required. The input content for the list of requests.
      * 
* - * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2; + * + * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeInputConfig( com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig value) { @@ -768,10 +798,12 @@ public Builder mergeInputConfig( * * *
-     * The input content for the list of requests.
+     * Required. The input content for the list of requests.
      * 
* - * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2; + * + * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInputConfig() { if (inputConfigBuilder_ == null) { @@ -788,10 +820,12 @@ public Builder clearInputConfig() { * * *
-     * The input content for the list of requests.
+     * Required. The input content for the list of requests.
      * 
* - * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2; + * + * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.Builder getInputConfigBuilder() { @@ -803,10 +837,12 @@ public Builder clearInputConfig() { * * *
-     * The input content for the list of requests.
+     * Required. The input content for the list of requests.
      * 
* - * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2; + * + * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfigOrBuilder getInputConfigOrBuilder() { @@ -822,10 +858,12 @@ public Builder clearInputConfig() { * * *
-     * The input content for the list of requests.
+     * Required. The input content for the list of requests.
      * 
* - * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2; + * + * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig, diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsRequestOrBuilder.java index eed9ec98e..b02ed7cc7 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImportProductSetsRequestOrBuilder.java @@ -27,22 +27,26 @@ public interface ImportProductSetsRequestOrBuilder * * *
-   * The project in which the ProductSets should be imported.
+   * Required. The project in which the ProductSets should be imported.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ java.lang.String getParent(); /** * * *
-   * The project in which the ProductSets should be imported.
+   * Required. The project in which the ProductSets should be imported.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ com.google.protobuf.ByteString getParentBytes(); @@ -50,30 +54,36 @@ public interface ImportProductSetsRequestOrBuilder * * *
-   * The input content for the list of requests.
+   * Required. The input content for the list of requests.
    * 
* - * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2; + * + * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ boolean hasInputConfig(); /** * * *
-   * The input content for the list of requests.
+   * Required. The input content for the list of requests.
    * 
* - * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2; + * + * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig getInputConfig(); /** * * *
-   * The input content for the list of requests.
+   * Required. The input content for the list of requests.
    * 
* - * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2; + * + * .google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfigOrBuilder getInputConfigOrBuilder(); } diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/InputConfig.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/InputConfig.java index 8398c39a2..96a84917d 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/InputConfig.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/InputConfig.java @@ -194,8 +194,8 @@ public com.google.protobuf.ByteString getContent() { * * *
-   * The type of the file. Currently only "application/pdf" and "image/tiff"
-   * are supported. Wildcards are not supported.
+   * The type of the file. Currently only "application/pdf", "image/tiff" and
+   * "image/gif" are supported. Wildcards are not supported.
    * 
* * string mime_type = 2; @@ -215,8 +215,8 @@ public java.lang.String getMimeType() { * * *
-   * The type of the file. Currently only "application/pdf" and "image/tiff"
-   * are supported. Wildcards are not supported.
+   * The type of the file. Currently only "application/pdf", "image/tiff" and
+   * "image/gif" are supported. Wildcards are not supported.
    * 
* * string mime_type = 2; @@ -838,8 +838,8 @@ public Builder clearContent() { * * *
-     * The type of the file. Currently only "application/pdf" and "image/tiff"
-     * are supported. Wildcards are not supported.
+     * The type of the file. Currently only "application/pdf", "image/tiff" and
+     * "image/gif" are supported. Wildcards are not supported.
      * 
* * string mime_type = 2; @@ -859,8 +859,8 @@ public java.lang.String getMimeType() { * * *
-     * The type of the file. Currently only "application/pdf" and "image/tiff"
-     * are supported. Wildcards are not supported.
+     * The type of the file. Currently only "application/pdf", "image/tiff" and
+     * "image/gif" are supported. Wildcards are not supported.
      * 
* * string mime_type = 2; @@ -880,8 +880,8 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { * * *
-     * The type of the file. Currently only "application/pdf" and "image/tiff"
-     * are supported. Wildcards are not supported.
+     * The type of the file. Currently only "application/pdf", "image/tiff" and
+     * "image/gif" are supported. Wildcards are not supported.
      * 
* * string mime_type = 2; @@ -899,8 +899,8 @@ public Builder setMimeType(java.lang.String value) { * * *
-     * The type of the file. Currently only "application/pdf" and "image/tiff"
-     * are supported. Wildcards are not supported.
+     * The type of the file. Currently only "application/pdf", "image/tiff" and
+     * "image/gif" are supported. Wildcards are not supported.
      * 
* * string mime_type = 2; @@ -915,8 +915,8 @@ public Builder clearMimeType() { * * *
-     * The type of the file. Currently only "application/pdf" and "image/tiff"
-     * are supported. Wildcards are not supported.
+     * The type of the file. Currently only "application/pdf", "image/tiff" and
+     * "image/gif" are supported. Wildcards are not supported.
      * 
* * string mime_type = 2; diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/InputConfigOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/InputConfigOrBuilder.java index b2a14ff41..d0f8f4294 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/InputConfigOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/InputConfigOrBuilder.java @@ -73,8 +73,8 @@ public interface InputConfigOrBuilder * * *
-   * The type of the file. Currently only "application/pdf" and "image/tiff"
-   * are supported. Wildcards are not supported.
+   * The type of the file. Currently only "application/pdf", "image/tiff" and
+   * "image/gif" are supported. Wildcards are not supported.
    * 
* * string mime_type = 2; @@ -84,8 +84,8 @@ public interface InputConfigOrBuilder * * *
-   * The type of the file. Currently only "application/pdf" and "image/tiff"
-   * are supported. Wildcards are not supported.
+   * The type of the file. Currently only "application/pdf", "image/tiff" and
+   * "image/gif" are supported. Wildcards are not supported.
    * 
* * string mime_type = 2; diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Likelihood.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Likelihood.java index d29ce9bec..6a566d8a7 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Likelihood.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Likelihood.java @@ -43,7 +43,7 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { * * *
-   * It is very unlikely that the image belongs to the specified vertical.
+   * It is very unlikely.
    * 
* * VERY_UNLIKELY = 1; @@ -53,7 +53,7 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { * * *
-   * It is unlikely that the image belongs to the specified vertical.
+   * It is unlikely.
    * 
* * UNLIKELY = 2; @@ -63,7 +63,7 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { * * *
-   * It is possible that the image belongs to the specified vertical.
+   * It is possible.
    * 
* * POSSIBLE = 3; @@ -73,7 +73,7 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { * * *
-   * It is likely that the image belongs to the specified vertical.
+   * It is likely.
    * 
* * LIKELY = 4; @@ -83,7 +83,7 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { * * *
-   * It is very likely that the image belongs to the specified vertical.
+   * It is very likely.
    * 
* * VERY_LIKELY = 5; @@ -106,7 +106,7 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { * * *
-   * It is very unlikely that the image belongs to the specified vertical.
+   * It is very unlikely.
    * 
* * VERY_UNLIKELY = 1; @@ -116,7 +116,7 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { * * *
-   * It is unlikely that the image belongs to the specified vertical.
+   * It is unlikely.
    * 
* * UNLIKELY = 2; @@ -126,7 +126,7 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { * * *
-   * It is possible that the image belongs to the specified vertical.
+   * It is possible.
    * 
* * POSSIBLE = 3; @@ -136,7 +136,7 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { * * *
-   * It is likely that the image belongs to the specified vertical.
+   * It is likely.
    * 
* * LIKELY = 4; @@ -146,7 +146,7 @@ public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { * * *
-   * It is very likely that the image belongs to the specified vertical.
+   * It is very likely.
    * 
* * VERY_LIKELY = 5; diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsRequest.java index 17e0b84e1..896a1d0c9 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsRequest.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsRequest.java @@ -125,11 +125,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The project from which ProductSets should be listed.
+   * Required. The project from which ProductSets should be listed.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -146,11 +148,13 @@ public java.lang.String getParent() { * * *
-   * The project from which ProductSets should be listed.
+   * Required. The project from which ProductSets should be listed.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -577,11 +581,13 @@ public Builder mergeFrom( * * *
-     * The project from which ProductSets should be listed.
+     * Required. The project from which ProductSets should be listed.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -598,11 +604,13 @@ public java.lang.String getParent() { * * *
-     * The project from which ProductSets should be listed.
+     * Required. The project from which ProductSets should be listed.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -619,11 +627,13 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * The project from which ProductSets should be listed.
+     * Required. The project from which ProductSets should be listed.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -638,11 +648,13 @@ public Builder setParent(java.lang.String value) { * * *
-     * The project from which ProductSets should be listed.
+     * Required. The project from which ProductSets should be listed.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder clearParent() { @@ -654,11 +666,13 @@ public Builder clearParent() { * * *
-     * The project from which ProductSets should be listed.
+     * Required. The project from which ProductSets should be listed.
      * Format is `projects/PROJECT_ID/locations/LOC_ID`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsRequestOrBuilder.java index 423bf9f9a..b7d750257 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductSetsRequestOrBuilder.java @@ -27,22 +27,26 @@ public interface ListProductSetsRequestOrBuilder * * *
-   * The project from which ProductSets should be listed.
+   * Required. The project from which ProductSets should be listed.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ java.lang.String getParent(); /** * * *
-   * The project from which ProductSets should be listed.
+   * Required. The project from which ProductSets should be listed.
    * Format is `projects/PROJECT_ID/locations/LOC_ID`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ com.google.protobuf.ByteString getParentBytes(); diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetRequest.java index 31a45a9a0..61cb3e762 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetRequest.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetRequest.java @@ -126,12 +126,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The ProductSet resource for which to retrieve Products.
+   * Required. The ProductSet resource for which to retrieve Products.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -148,12 +150,14 @@ public java.lang.String getName() { * * *
-   * The ProductSet resource for which to retrieve Products.
+   * Required. The ProductSet resource for which to retrieve Products.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -586,12 +590,14 @@ public Builder mergeFrom( * * *
-     * The ProductSet resource for which to retrieve Products.
+     * Required. The ProductSet resource for which to retrieve Products.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -608,12 +614,14 @@ public java.lang.String getName() { * * *
-     * The ProductSet resource for which to retrieve Products.
+     * Required. The ProductSet resource for which to retrieve Products.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -630,12 +638,14 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * The ProductSet resource for which to retrieve Products.
+     * Required. The ProductSet resource for which to retrieve Products.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setName(java.lang.String value) { if (value == null) { @@ -650,12 +660,14 @@ public Builder setName(java.lang.String value) { * * *
-     * The ProductSet resource for which to retrieve Products.
+     * Required. The ProductSet resource for which to retrieve Products.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder clearName() { @@ -667,12 +679,14 @@ public Builder clearName() { * * *
-     * The ProductSet resource for which to retrieve Products.
+     * Required. The ProductSet resource for which to retrieve Products.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetRequestOrBuilder.java index 36cbd9b5d..a592ead3b 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsInProductSetRequestOrBuilder.java @@ -27,24 +27,28 @@ public interface ListProductsInProductSetRequestOrBuilder * * *
-   * The ProductSet resource for which to retrieve Products.
+   * Required. The ProductSet resource for which to retrieve Products.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ java.lang.String getName(); /** * * *
-   * The ProductSet resource for which to retrieve Products.
+   * Required. The ProductSet resource for which to retrieve Products.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ com.google.protobuf.ByteString getNameBytes(); diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsRequest.java index f468b37f6..f36562e77 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsRequest.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsRequest.java @@ -125,12 +125,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The project OR ProductSet from which Products should be listed.
+   * Required. The project OR ProductSet from which Products should be listed.
    * Format:
    * `projects/PROJECT_ID/locations/LOC_ID`
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -147,12 +149,14 @@ public java.lang.String getParent() { * * *
-   * The project OR ProductSet from which Products should be listed.
+   * Required. The project OR ProductSet from which Products should be listed.
    * Format:
    * `projects/PROJECT_ID/locations/LOC_ID`
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -579,12 +583,14 @@ public Builder mergeFrom( * * *
-     * The project OR ProductSet from which Products should be listed.
+     * Required. The project OR ProductSet from which Products should be listed.
      * Format:
      * `projects/PROJECT_ID/locations/LOC_ID`
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -601,12 +607,14 @@ public java.lang.String getParent() { * * *
-     * The project OR ProductSet from which Products should be listed.
+     * Required. The project OR ProductSet from which Products should be listed.
      * Format:
      * `projects/PROJECT_ID/locations/LOC_ID`
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -623,12 +631,14 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * The project OR ProductSet from which Products should be listed.
+     * Required. The project OR ProductSet from which Products should be listed.
      * Format:
      * `projects/PROJECT_ID/locations/LOC_ID`
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -643,12 +653,14 @@ public Builder setParent(java.lang.String value) { * * *
-     * The project OR ProductSet from which Products should be listed.
+     * Required. The project OR ProductSet from which Products should be listed.
      * Format:
      * `projects/PROJECT_ID/locations/LOC_ID`
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder clearParent() { @@ -660,12 +672,14 @@ public Builder clearParent() { * * *
-     * The project OR ProductSet from which Products should be listed.
+     * Required. The project OR ProductSet from which Products should be listed.
      * Format:
      * `projects/PROJECT_ID/locations/LOC_ID`
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsRequestOrBuilder.java index 16bbb7622..afb428c4c 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListProductsRequestOrBuilder.java @@ -27,24 +27,28 @@ public interface ListProductsRequestOrBuilder * * *
-   * The project OR ProductSet from which Products should be listed.
+   * Required. The project OR ProductSet from which Products should be listed.
    * Format:
    * `projects/PROJECT_ID/locations/LOC_ID`
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ java.lang.String getParent(); /** * * *
-   * The project OR ProductSet from which Products should be listed.
+   * Required. The project OR ProductSet from which Products should be listed.
    * Format:
    * `projects/PROJECT_ID/locations/LOC_ID`
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ com.google.protobuf.ByteString getParentBytes(); diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesRequest.java index 8ff9c5528..29360a05b 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesRequest.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesRequest.java @@ -125,12 +125,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Resource name of the product containing the reference images.
+   * Required. Resource name of the product containing the reference images.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -147,12 +149,14 @@ public java.lang.String getParent() { * * *
-   * Resource name of the product containing the reference images.
+   * Required. Resource name of the product containing the reference images.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -585,12 +589,14 @@ public Builder mergeFrom( * * *
-     * Resource name of the product containing the reference images.
+     * Required. Resource name of the product containing the reference images.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -607,12 +613,14 @@ public java.lang.String getParent() { * * *
-     * Resource name of the product containing the reference images.
+     * Required. Resource name of the product containing the reference images.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -629,12 +637,14 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Resource name of the product containing the reference images.
+     * Required. Resource name of the product containing the reference images.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -649,12 +659,14 @@ public Builder setParent(java.lang.String value) { * * *
-     * Resource name of the product containing the reference images.
+     * Required. Resource name of the product containing the reference images.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder clearParent() { @@ -666,12 +678,14 @@ public Builder clearParent() { * * *
-     * Resource name of the product containing the reference images.
+     * Required. Resource name of the product containing the reference images.
      * Format is
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesRequestOrBuilder.java index 46bad60aa..0fdd45259 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ListReferenceImagesRequestOrBuilder.java @@ -27,24 +27,28 @@ public interface ListReferenceImagesRequestOrBuilder * * *
-   * Resource name of the product containing the reference images.
+   * Required. Resource name of the product containing the reference images.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ java.lang.String getParent(); /** * * *
-   * Resource name of the product containing the reference images.
+   * Required. Resource name of the product containing the reference images.
    * Format is
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ com.google.protobuf.ByteString getParentBytes(); diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Paragraph.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Paragraph.java index 2fbf435b3..1602b43ef 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Paragraph.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Paragraph.java @@ -284,7 +284,7 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingBoxOrB * * *
-   * List of words in this paragraph.
+   * List of all words in this paragraph.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; @@ -296,7 +296,7 @@ public java.util.List getWordsList() { * * *
-   * List of words in this paragraph.
+   * List of all words in this paragraph.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; @@ -309,7 +309,7 @@ public java.util.List getWordsList() { * * *
-   * List of words in this paragraph.
+   * List of all words in this paragraph.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; @@ -321,7 +321,7 @@ public int getWordsCount() { * * *
-   * List of words in this paragraph.
+   * List of all words in this paragraph.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; @@ -333,7 +333,7 @@ public com.google.cloud.vision.v1p4beta1.Word getWords(int index) { * * *
-   * List of words in this paragraph.
+   * List of all words in this paragraph.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; @@ -1303,7 +1303,7 @@ private void ensureWordsIsMutable() { * * *
-     * List of words in this paragraph.
+     * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; @@ -1319,7 +1319,7 @@ public java.util.List getWordsList() { * * *
-     * List of words in this paragraph.
+     * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; @@ -1335,7 +1335,7 @@ public int getWordsCount() { * * *
-     * List of words in this paragraph.
+     * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; @@ -1351,7 +1351,7 @@ public com.google.cloud.vision.v1p4beta1.Word getWords(int index) { * * *
-     * List of words in this paragraph.
+     * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; @@ -1373,7 +1373,7 @@ public Builder setWords(int index, com.google.cloud.vision.v1p4beta1.Word value) * * *
-     * List of words in this paragraph.
+     * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; @@ -1393,7 +1393,7 @@ public Builder setWords( * * *
-     * List of words in this paragraph.
+     * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; @@ -1415,7 +1415,7 @@ public Builder addWords(com.google.cloud.vision.v1p4beta1.Word value) { * * *
-     * List of words in this paragraph.
+     * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; @@ -1437,7 +1437,7 @@ public Builder addWords(int index, com.google.cloud.vision.v1p4beta1.Word value) * * *
-     * List of words in this paragraph.
+     * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; @@ -1456,7 +1456,7 @@ public Builder addWords(com.google.cloud.vision.v1p4beta1.Word.Builder builderFo * * *
-     * List of words in this paragraph.
+     * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; @@ -1476,7 +1476,7 @@ public Builder addWords( * * *
-     * List of words in this paragraph.
+     * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; @@ -1496,7 +1496,7 @@ public Builder addAllWords( * * *
-     * List of words in this paragraph.
+     * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; @@ -1515,7 +1515,7 @@ public Builder clearWords() { * * *
-     * List of words in this paragraph.
+     * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; @@ -1534,7 +1534,7 @@ public Builder removeWords(int index) { * * *
-     * List of words in this paragraph.
+     * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; @@ -1546,7 +1546,7 @@ public com.google.cloud.vision.v1p4beta1.Word.Builder getWordsBuilder(int index) * * *
-     * List of words in this paragraph.
+     * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; @@ -1562,7 +1562,7 @@ public com.google.cloud.vision.v1p4beta1.WordOrBuilder getWordsOrBuilder(int ind * * *
-     * List of words in this paragraph.
+     * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; @@ -1579,7 +1579,7 @@ public com.google.cloud.vision.v1p4beta1.WordOrBuilder getWordsOrBuilder(int ind * * *
-     * List of words in this paragraph.
+     * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; @@ -1592,7 +1592,7 @@ public com.google.cloud.vision.v1p4beta1.Word.Builder addWordsBuilder() { * * *
-     * List of words in this paragraph.
+     * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; @@ -1605,7 +1605,7 @@ public com.google.cloud.vision.v1p4beta1.Word.Builder addWordsBuilder(int index) * * *
-     * List of words in this paragraph.
+     * List of all words in this paragraph.
      * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ParagraphOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ParagraphOrBuilder.java index 6981e356e..b3e406c45 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ParagraphOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ParagraphOrBuilder.java @@ -131,7 +131,7 @@ public interface ParagraphOrBuilder * * *
-   * List of words in this paragraph.
+   * List of all words in this paragraph.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; @@ -141,7 +141,7 @@ public interface ParagraphOrBuilder * * *
-   * List of words in this paragraph.
+   * List of all words in this paragraph.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; @@ -151,7 +151,7 @@ public interface ParagraphOrBuilder * * *
-   * List of words in this paragraph.
+   * List of all words in this paragraph.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; @@ -161,7 +161,7 @@ public interface ParagraphOrBuilder * * *
-   * List of words in this paragraph.
+   * List of all words in this paragraph.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; @@ -171,7 +171,7 @@ public interface ParagraphOrBuilder * * *
-   * List of words in this paragraph.
+   * List of all words in this paragraph.
    * 
* * repeated .google.cloud.vision.v1p4beta1.Word words = 3; diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Product.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Product.java index 18cb2d54c..63b7c2ee8 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Product.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Product.java @@ -1118,14 +1118,13 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
-   * The category for the product identified by the reference image. This should
-   * be either "homegoods-v2", "apparel-v2", "toys-v2", "packagedgoods-v1", or
-   * "general-v1" The legacy categories "homegoods", "apparel", and "toys" are
-   * still supported, but these should not be used for new products.
-   * This field is immutable.
+   * Immutable. The category for the product identified by the reference image.
+   * This should be either "homegoods-v2", "apparel-v2", or "toys-v2". The
+   * legacy categories "homegoods", "apparel", and "toys" are still supported,
+   * but these should not be used for new products.
    * 
* - * string product_category = 4; + * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; */ public java.lang.String getProductCategory() { java.lang.Object ref = productCategory_; @@ -1142,14 +1141,13 @@ public java.lang.String getProductCategory() { * * *
-   * The category for the product identified by the reference image. This should
-   * be either "homegoods-v2", "apparel-v2", "toys-v2", "packagedgoods-v1", or
-   * "general-v1" The legacy categories "homegoods", "apparel", and "toys" are
-   * still supported, but these should not be used for new products.
-   * This field is immutable.
+   * Immutable. The category for the product identified by the reference image.
+   * This should be either "homegoods-v2", "apparel-v2", or "toys-v2". The
+   * legacy categories "homegoods", "apparel", and "toys" are still supported,
+   * but these should not be used for new products.
    * 
* - * string product_category = 4; + * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; */ public com.google.protobuf.ByteString getProductCategoryBytes() { java.lang.Object ref = productCategory_; @@ -1175,7 +1173,10 @@ public com.google.protobuf.ByteString getProductCategoryBytes() { * strings with integer values can match a range-based restriction which is * to be supported soon. * Multiple values can be assigned to the same key. One product may have up to - * 100 product_labels. + * 500 product_labels. + * Notice that the total number of distinct product_labels over all products + * in one ProductSet cannot exceed 1M, otherwise the product search pipeline + * will refuse to work for that ProductSet. *
* * repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5; @@ -1193,7 +1194,10 @@ public java.util.List getPro * strings with integer values can match a range-based restriction which is * to be supported soon. * Multiple values can be assigned to the same key. One product may have up to - * 100 product_labels. + * 500 product_labels. + * Notice that the total number of distinct product_labels over all products + * in one ProductSet cannot exceed 1M, otherwise the product search pipeline + * will refuse to work for that ProductSet. *
* * repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5; @@ -1212,7 +1216,10 @@ public java.util.List getPro * strings with integer values can match a range-based restriction which is * to be supported soon. * Multiple values can be assigned to the same key. One product may have up to - * 100 product_labels. + * 500 product_labels. + * Notice that the total number of distinct product_labels over all products + * in one ProductSet cannot exceed 1M, otherwise the product search pipeline + * will refuse to work for that ProductSet. *
* * repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5; @@ -1230,7 +1237,10 @@ public int getProductLabelsCount() { * strings with integer values can match a range-based restriction which is * to be supported soon. * Multiple values can be assigned to the same key. One product may have up to - * 100 product_labels. + * 500 product_labels. + * Notice that the total number of distinct product_labels over all products + * in one ProductSet cannot exceed 1M, otherwise the product search pipeline + * will refuse to work for that ProductSet. *
* * repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5; @@ -1248,7 +1258,10 @@ public com.google.cloud.vision.v1p4beta1.Product.KeyValue getProductLabels(int i * strings with integer values can match a range-based restriction which is * to be supported soon. * Multiple values can be assigned to the same key. One product may have up to - * 100 product_labels. + * 500 product_labels. + * Notice that the total number of distinct product_labels over all products + * in one ProductSet cannot exceed 1M, otherwise the product search pipeline + * will refuse to work for that ProductSet. *
* * repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5; @@ -1994,14 +2007,13 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * * *
-     * The category for the product identified by the reference image. This should
-     * be either "homegoods-v2", "apparel-v2", "toys-v2", "packagedgoods-v1", or
-     * "general-v1" The legacy categories "homegoods", "apparel", and "toys" are
-     * still supported, but these should not be used for new products.
-     * This field is immutable.
+     * Immutable. The category for the product identified by the reference image.
+     * This should be either "homegoods-v2", "apparel-v2", or "toys-v2". The
+     * legacy categories "homegoods", "apparel", and "toys" are still supported,
+     * but these should not be used for new products.
      * 
* - * string product_category = 4; + * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; */ public java.lang.String getProductCategory() { java.lang.Object ref = productCategory_; @@ -2018,14 +2030,13 @@ public java.lang.String getProductCategory() { * * *
-     * The category for the product identified by the reference image. This should
-     * be either "homegoods-v2", "apparel-v2", "toys-v2", "packagedgoods-v1", or
-     * "general-v1" The legacy categories "homegoods", "apparel", and "toys" are
-     * still supported, but these should not be used for new products.
-     * This field is immutable.
+     * Immutable. The category for the product identified by the reference image.
+     * This should be either "homegoods-v2", "apparel-v2", or "toys-v2". The
+     * legacy categories "homegoods", "apparel", and "toys" are still supported,
+     * but these should not be used for new products.
      * 
* - * string product_category = 4; + * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; */ public com.google.protobuf.ByteString getProductCategoryBytes() { java.lang.Object ref = productCategory_; @@ -2042,14 +2053,13 @@ public com.google.protobuf.ByteString getProductCategoryBytes() { * * *
-     * The category for the product identified by the reference image. This should
-     * be either "homegoods-v2", "apparel-v2", "toys-v2", "packagedgoods-v1", or
-     * "general-v1" The legacy categories "homegoods", "apparel", and "toys" are
-     * still supported, but these should not be used for new products.
-     * This field is immutable.
+     * Immutable. The category for the product identified by the reference image.
+     * This should be either "homegoods-v2", "apparel-v2", or "toys-v2". The
+     * legacy categories "homegoods", "apparel", and "toys" are still supported,
+     * but these should not be used for new products.
      * 
* - * string product_category = 4; + * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder setProductCategory(java.lang.String value) { if (value == null) { @@ -2064,14 +2074,13 @@ public Builder setProductCategory(java.lang.String value) { * * *
-     * The category for the product identified by the reference image. This should
-     * be either "homegoods-v2", "apparel-v2", "toys-v2", "packagedgoods-v1", or
-     * "general-v1" The legacy categories "homegoods", "apparel", and "toys" are
-     * still supported, but these should not be used for new products.
-     * This field is immutable.
+     * Immutable. The category for the product identified by the reference image.
+     * This should be either "homegoods-v2", "apparel-v2", or "toys-v2". The
+     * legacy categories "homegoods", "apparel", and "toys" are still supported,
+     * but these should not be used for new products.
      * 
* - * string product_category = 4; + * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder clearProductCategory() { @@ -2083,14 +2092,13 @@ public Builder clearProductCategory() { * * *
-     * The category for the product identified by the reference image. This should
-     * be either "homegoods-v2", "apparel-v2", "toys-v2", "packagedgoods-v1", or
-     * "general-v1" The legacy categories "homegoods", "apparel", and "toys" are
-     * still supported, but these should not be used for new products.
-     * This field is immutable.
+     * Immutable. The category for the product identified by the reference image.
+     * This should be either "homegoods-v2", "apparel-v2", or "toys-v2". The
+     * legacy categories "homegoods", "apparel", and "toys" are still supported,
+     * but these should not be used for new products.
      * 
* - * string product_category = 4; + * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder setProductCategoryBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -2131,7 +2139,10 @@ private void ensureProductLabelsIsMutable() { * strings with integer values can match a range-based restriction which is * to be supported soon. * Multiple values can be assigned to the same key. One product may have up to - * 100 product_labels. + * 500 product_labels. + * Notice that the total number of distinct product_labels over all products + * in one ProductSet cannot exceed 1M, otherwise the product search pipeline + * will refuse to work for that ProductSet. *
* * repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5; @@ -2154,7 +2165,10 @@ private void ensureProductLabelsIsMutable() { * strings with integer values can match a range-based restriction which is * to be supported soon. * Multiple values can be assigned to the same key. One product may have up to - * 100 product_labels. + * 500 product_labels. + * Notice that the total number of distinct product_labels over all products + * in one ProductSet cannot exceed 1M, otherwise the product search pipeline + * will refuse to work for that ProductSet. *
* * repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5; @@ -2176,7 +2190,10 @@ public int getProductLabelsCount() { * strings with integer values can match a range-based restriction which is * to be supported soon. * Multiple values can be assigned to the same key. One product may have up to - * 100 product_labels. + * 500 product_labels. + * Notice that the total number of distinct product_labels over all products + * in one ProductSet cannot exceed 1M, otherwise the product search pipeline + * will refuse to work for that ProductSet. *
* * repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5; @@ -2198,7 +2215,10 @@ public com.google.cloud.vision.v1p4beta1.Product.KeyValue getProductLabels(int i * strings with integer values can match a range-based restriction which is * to be supported soon. * Multiple values can be assigned to the same key. One product may have up to - * 100 product_labels. + * 500 product_labels. + * Notice that the total number of distinct product_labels over all products + * in one ProductSet cannot exceed 1M, otherwise the product search pipeline + * will refuse to work for that ProductSet. *
* * repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5; @@ -2227,7 +2247,10 @@ public Builder setProductLabels( * strings with integer values can match a range-based restriction which is * to be supported soon. * Multiple values can be assigned to the same key. One product may have up to - * 100 product_labels. + * 500 product_labels. + * Notice that the total number of distinct product_labels over all products + * in one ProductSet cannot exceed 1M, otherwise the product search pipeline + * will refuse to work for that ProductSet. * * * repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5; @@ -2253,7 +2276,10 @@ public Builder setProductLabels( * strings with integer values can match a range-based restriction which is * to be supported soon. * Multiple values can be assigned to the same key. One product may have up to - * 100 product_labels. + * 500 product_labels. + * Notice that the total number of distinct product_labels over all products + * in one ProductSet cannot exceed 1M, otherwise the product search pipeline + * will refuse to work for that ProductSet. * * * repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5; @@ -2281,7 +2307,10 @@ public Builder addProductLabels(com.google.cloud.vision.v1p4beta1.Product.KeyVal * strings with integer values can match a range-based restriction which is * to be supported soon. * Multiple values can be assigned to the same key. One product may have up to - * 100 product_labels. + * 500 product_labels. + * Notice that the total number of distinct product_labels over all products + * in one ProductSet cannot exceed 1M, otherwise the product search pipeline + * will refuse to work for that ProductSet. * * * repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5; @@ -2310,7 +2339,10 @@ public Builder addProductLabels( * strings with integer values can match a range-based restriction which is * to be supported soon. * Multiple values can be assigned to the same key. One product may have up to - * 100 product_labels. + * 500 product_labels. + * Notice that the total number of distinct product_labels over all products + * in one ProductSet cannot exceed 1M, otherwise the product search pipeline + * will refuse to work for that ProductSet. * * * repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5; @@ -2336,7 +2368,10 @@ public Builder addProductLabels( * strings with integer values can match a range-based restriction which is * to be supported soon. * Multiple values can be assigned to the same key. One product may have up to - * 100 product_labels. + * 500 product_labels. + * Notice that the total number of distinct product_labels over all products + * in one ProductSet cannot exceed 1M, otherwise the product search pipeline + * will refuse to work for that ProductSet. * * * repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5; @@ -2362,7 +2397,10 @@ public Builder addProductLabels( * strings with integer values can match a range-based restriction which is * to be supported soon. * Multiple values can be assigned to the same key. One product may have up to - * 100 product_labels. + * 500 product_labels. + * Notice that the total number of distinct product_labels over all products + * in one ProductSet cannot exceed 1M, otherwise the product search pipeline + * will refuse to work for that ProductSet. * * * repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5; @@ -2388,7 +2426,10 @@ public Builder addAllProductLabels( * strings with integer values can match a range-based restriction which is * to be supported soon. * Multiple values can be assigned to the same key. One product may have up to - * 100 product_labels. + * 500 product_labels. + * Notice that the total number of distinct product_labels over all products + * in one ProductSet cannot exceed 1M, otherwise the product search pipeline + * will refuse to work for that ProductSet. * * * repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5; @@ -2413,7 +2454,10 @@ public Builder clearProductLabels() { * strings with integer values can match a range-based restriction which is * to be supported soon. * Multiple values can be assigned to the same key. One product may have up to - * 100 product_labels. + * 500 product_labels. + * Notice that the total number of distinct product_labels over all products + * in one ProductSet cannot exceed 1M, otherwise the product search pipeline + * will refuse to work for that ProductSet. * * * repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5; @@ -2438,7 +2482,10 @@ public Builder removeProductLabels(int index) { * strings with integer values can match a range-based restriction which is * to be supported soon. * Multiple values can be assigned to the same key. One product may have up to - * 100 product_labels. + * 500 product_labels. + * Notice that the total number of distinct product_labels over all products + * in one ProductSet cannot exceed 1M, otherwise the product search pipeline + * will refuse to work for that ProductSet. * * * repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5; @@ -2457,7 +2504,10 @@ public com.google.cloud.vision.v1p4beta1.Product.KeyValue.Builder getProductLabe * strings with integer values can match a range-based restriction which is * to be supported soon. * Multiple values can be assigned to the same key. One product may have up to - * 100 product_labels. + * 500 product_labels. + * Notice that the total number of distinct product_labels over all products + * in one ProductSet cannot exceed 1M, otherwise the product search pipeline + * will refuse to work for that ProductSet. * * * repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5; @@ -2480,7 +2530,10 @@ public com.google.cloud.vision.v1p4beta1.Product.KeyValueOrBuilder getProductLab * strings with integer values can match a range-based restriction which is * to be supported soon. * Multiple values can be assigned to the same key. One product may have up to - * 100 product_labels. + * 500 product_labels. + * Notice that the total number of distinct product_labels over all products + * in one ProductSet cannot exceed 1M, otherwise the product search pipeline + * will refuse to work for that ProductSet. * * * repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5; @@ -2503,7 +2556,10 @@ public com.google.cloud.vision.v1p4beta1.Product.KeyValueOrBuilder getProductLab * strings with integer values can match a range-based restriction which is * to be supported soon. * Multiple values can be assigned to the same key. One product may have up to - * 100 product_labels. + * 500 product_labels. + * Notice that the total number of distinct product_labels over all products + * in one ProductSet cannot exceed 1M, otherwise the product search pipeline + * will refuse to work for that ProductSet. * * * repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5; @@ -2522,7 +2578,10 @@ public com.google.cloud.vision.v1p4beta1.Product.KeyValue.Builder addProductLabe * strings with integer values can match a range-based restriction which is * to be supported soon. * Multiple values can be assigned to the same key. One product may have up to - * 100 product_labels. + * 500 product_labels. + * Notice that the total number of distinct product_labels over all products + * in one ProductSet cannot exceed 1M, otherwise the product search pipeline + * will refuse to work for that ProductSet. * * * repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5; @@ -2543,7 +2602,10 @@ public com.google.cloud.vision.v1p4beta1.Product.KeyValue.Builder addProductLabe * strings with integer values can match a range-based restriction which is * to be supported soon. * Multiple values can be assigned to the same key. One product may have up to - * 100 product_labels. + * 500 product_labels. + * Notice that the total number of distinct product_labels over all products + * in one ProductSet cannot exceed 1M, otherwise the product search pipeline + * will refuse to work for that ProductSet. * * * repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5; diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductOrBuilder.java index 802c08e2a..71952d93e 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductOrBuilder.java @@ -100,28 +100,26 @@ public interface ProductOrBuilder * * *
-   * The category for the product identified by the reference image. This should
-   * be either "homegoods-v2", "apparel-v2", "toys-v2", "packagedgoods-v1", or
-   * "general-v1" The legacy categories "homegoods", "apparel", and "toys" are
-   * still supported, but these should not be used for new products.
-   * This field is immutable.
+   * Immutable. The category for the product identified by the reference image.
+   * This should be either "homegoods-v2", "apparel-v2", or "toys-v2". The
+   * legacy categories "homegoods", "apparel", and "toys" are still supported,
+   * but these should not be used for new products.
    * 
* - * string product_category = 4; + * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; */ java.lang.String getProductCategory(); /** * * *
-   * The category for the product identified by the reference image. This should
-   * be either "homegoods-v2", "apparel-v2", "toys-v2", "packagedgoods-v1", or
-   * "general-v1" The legacy categories "homegoods", "apparel", and "toys" are
-   * still supported, but these should not be used for new products.
-   * This field is immutable.
+   * Immutable. The category for the product identified by the reference image.
+   * This should be either "homegoods-v2", "apparel-v2", or "toys-v2". The
+   * legacy categories "homegoods", "apparel", and "toys" are still supported,
+   * but these should not be used for new products.
    * 
* - * string product_category = 4; + * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; */ com.google.protobuf.ByteString getProductCategoryBytes(); @@ -135,7 +133,10 @@ public interface ProductOrBuilder * strings with integer values can match a range-based restriction which is * to be supported soon. * Multiple values can be assigned to the same key. One product may have up to - * 100 product_labels. + * 500 product_labels. + * Notice that the total number of distinct product_labels over all products + * in one ProductSet cannot exceed 1M, otherwise the product search pipeline + * will refuse to work for that ProductSet. * * * repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5; @@ -151,7 +152,10 @@ public interface ProductOrBuilder * strings with integer values can match a range-based restriction which is * to be supported soon. * Multiple values can be assigned to the same key. One product may have up to - * 100 product_labels. + * 500 product_labels. + * Notice that the total number of distinct product_labels over all products + * in one ProductSet cannot exceed 1M, otherwise the product search pipeline + * will refuse to work for that ProductSet. * * * repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5; @@ -167,7 +171,10 @@ public interface ProductOrBuilder * strings with integer values can match a range-based restriction which is * to be supported soon. * Multiple values can be assigned to the same key. One product may have up to - * 100 product_labels. + * 500 product_labels. + * Notice that the total number of distinct product_labels over all products + * in one ProductSet cannot exceed 1M, otherwise the product search pipeline + * will refuse to work for that ProductSet. * * * repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5; @@ -183,7 +190,10 @@ public interface ProductOrBuilder * strings with integer values can match a range-based restriction which is * to be supported soon. * Multiple values can be assigned to the same key. One product may have up to - * 100 product_labels. + * 500 product_labels. + * Notice that the total number of distinct product_labels over all products + * in one ProductSet cannot exceed 1M, otherwise the product search pipeline + * will refuse to work for that ProductSet. * * * repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5; @@ -200,7 +210,10 @@ public interface ProductOrBuilder * strings with integer values can match a range-based restriction which is * to be supported soon. * Multiple values can be assigned to the same key. One product may have up to - * 100 product_labels. + * 500 product_labels. + * Notice that the total number of distinct product_labels over all products + * in one ProductSet cannot exceed 1M, otherwise the product search pipeline + * will refuse to work for that ProductSet. * * * repeated .google.cloud.vision.v1p4beta1.Product.KeyValue product_labels = 5; diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchParams.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchParams.java index 8e65b4a05..684347c60 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchParams.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchParams.java @@ -152,7 +152,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * The bounding polygon around the area of interest in the image.
-   * Optional. If it is not specified, system discretion will be applied.
+   * If it is not specified, system discretion will be applied.
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 9; @@ -165,7 +165,7 @@ public boolean hasBoundingPoly() { * *
    * The bounding polygon around the area of interest in the image.
-   * Optional. If it is not specified, system discretion will be applied.
+   * If it is not specified, system discretion will be applied.
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 9; @@ -180,7 +180,7 @@ public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPoly() { * *
    * The bounding polygon around the area of interest in the image.
-   * Optional. If it is not specified, system discretion will be applied.
+   * If it is not specified, system discretion will be applied.
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 9; @@ -202,7 +202,7 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`. * * - * string product_set = 6; + * string product_set = 6 [(.google.api.resource_reference) = { ... } */ public java.lang.String getProductSet() { java.lang.Object ref = productSet_; @@ -226,7 +226,7 @@ public java.lang.String getProductSet() { * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`. * * - * string product_set = 6; + * string product_set = 6 [(.google.api.resource_reference) = { ... } */ public com.google.protobuf.ByteString getProductSetBytes() { java.lang.Object ref = productSet_; @@ -323,9 +323,11 @@ public com.google.protobuf.ByteString getProductCategoriesBytes(int index) { *
    * The filtering expression. This can be used to restrict search results based
    * on Product labels. We currently support an AND of OR of key-value
-   * expressions, where each expression within an OR must have the same key.
+   * expressions, where each expression within an OR must have the same key. An
+   * '=' should be used to connect the key and value.
    * For example, "(color = red OR color = blue) AND brand = Google" is
-   * acceptable, but not "(color = red OR brand = Google)" or "color: red".
+   * acceptable, but "(color = red OR brand = Google)" is not acceptable.
+   * "color: red" is not acceptable because it uses a ':' instead of an '='.
    * 
* * string filter = 8; @@ -347,9 +349,11 @@ public java.lang.String getFilter() { *
    * The filtering expression. This can be used to restrict search results based
    * on Product labels. We currently support an AND of OR of key-value
-   * expressions, where each expression within an OR must have the same key.
+   * expressions, where each expression within an OR must have the same key. An
+   * '=' should be used to connect the key and value.
    * For example, "(color = red OR color = blue) AND brand = Google" is
-   * acceptable, but not "(color = red OR brand = Google)" or "color: red".
+   * acceptable, but "(color = red OR brand = Google)" is not acceptable.
+   * "color: red" is not acceptable because it uses a ':' instead of an '='.
    * 
* * string filter = 8; @@ -778,7 +782,7 @@ public Builder mergeFrom( * *
      * The bounding polygon around the area of interest in the image.
-     * Optional. If it is not specified, system discretion will be applied.
+     * If it is not specified, system discretion will be applied.
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 9; @@ -791,7 +795,7 @@ public boolean hasBoundingPoly() { * *
      * The bounding polygon around the area of interest in the image.
-     * Optional. If it is not specified, system discretion will be applied.
+     * If it is not specified, system discretion will be applied.
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 9; @@ -810,7 +814,7 @@ public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPoly() { * *
      * The bounding polygon around the area of interest in the image.
-     * Optional. If it is not specified, system discretion will be applied.
+     * If it is not specified, system discretion will be applied.
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 9; @@ -833,7 +837,7 @@ public Builder setBoundingPoly(com.google.cloud.vision.v1p4beta1.BoundingPoly va * *
      * The bounding polygon around the area of interest in the image.
-     * Optional. If it is not specified, system discretion will be applied.
+     * If it is not specified, system discretion will be applied.
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 9; @@ -854,7 +858,7 @@ public Builder setBoundingPoly( * *
      * The bounding polygon around the area of interest in the image.
-     * Optional. If it is not specified, system discretion will be applied.
+     * If it is not specified, system discretion will be applied.
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 9; @@ -881,7 +885,7 @@ public Builder mergeBoundingPoly(com.google.cloud.vision.v1p4beta1.BoundingPoly * *
      * The bounding polygon around the area of interest in the image.
-     * Optional. If it is not specified, system discretion will be applied.
+     * If it is not specified, system discretion will be applied.
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 9; @@ -902,7 +906,7 @@ public Builder clearBoundingPoly() { * *
      * The bounding polygon around the area of interest in the image.
-     * Optional. If it is not specified, system discretion will be applied.
+     * If it is not specified, system discretion will be applied.
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 9; @@ -917,7 +921,7 @@ public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder getBoundingPolyBui * *
      * The bounding polygon around the area of interest in the image.
-     * Optional. If it is not specified, system discretion will be applied.
+     * If it is not specified, system discretion will be applied.
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 9; @@ -936,7 +940,7 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr * *
      * The bounding polygon around the area of interest in the image.
-     * Optional. If it is not specified, system discretion will be applied.
+     * If it is not specified, system discretion will be applied.
      * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 9; @@ -970,7 +974,7 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolyOr * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`. * * - * string product_set = 6; + * string product_set = 6 [(.google.api.resource_reference) = { ... } */ public java.lang.String getProductSet() { java.lang.Object ref = productSet_; @@ -994,7 +998,7 @@ public java.lang.String getProductSet() { * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`. * * - * string product_set = 6; + * string product_set = 6 [(.google.api.resource_reference) = { ... } */ public com.google.protobuf.ByteString getProductSetBytes() { java.lang.Object ref = productSet_; @@ -1018,7 +1022,7 @@ public com.google.protobuf.ByteString getProductSetBytes() { * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`. * * - * string product_set = 6; + * string product_set = 6 [(.google.api.resource_reference) = { ... } */ public Builder setProductSet(java.lang.String value) { if (value == null) { @@ -1040,7 +1044,7 @@ public Builder setProductSet(java.lang.String value) { * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`. * * - * string product_set = 6; + * string product_set = 6 [(.google.api.resource_reference) = { ... } */ public Builder clearProductSet() { @@ -1059,7 +1063,7 @@ public Builder clearProductSet() { * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`. * * - * string product_set = 6; + * string product_set = 6 [(.google.api.resource_reference) = { ... } */ public Builder setProductSetBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1276,9 +1280,11 @@ public Builder addProductCategoriesBytes(com.google.protobuf.ByteString value) { *
      * The filtering expression. This can be used to restrict search results based
      * on Product labels. We currently support an AND of OR of key-value
-     * expressions, where each expression within an OR must have the same key.
+     * expressions, where each expression within an OR must have the same key. An
+     * '=' should be used to connect the key and value.
      * For example, "(color = red OR color = blue) AND brand = Google" is
-     * acceptable, but not "(color = red OR brand = Google)" or "color: red".
+     * acceptable, but "(color = red OR brand = Google)" is not acceptable.
+     * "color: red" is not acceptable because it uses a ':' instead of an '='.
      * 
* * string filter = 8; @@ -1300,9 +1306,11 @@ public java.lang.String getFilter() { *
      * The filtering expression. This can be used to restrict search results based
      * on Product labels. We currently support an AND of OR of key-value
-     * expressions, where each expression within an OR must have the same key.
+     * expressions, where each expression within an OR must have the same key. An
+     * '=' should be used to connect the key and value.
      * For example, "(color = red OR color = blue) AND brand = Google" is
-     * acceptable, but not "(color = red OR brand = Google)" or "color: red".
+     * acceptable, but "(color = red OR brand = Google)" is not acceptable.
+     * "color: red" is not acceptable because it uses a ':' instead of an '='.
      * 
* * string filter = 8; @@ -1324,9 +1332,11 @@ public com.google.protobuf.ByteString getFilterBytes() { *
      * The filtering expression. This can be used to restrict search results based
      * on Product labels. We currently support an AND of OR of key-value
-     * expressions, where each expression within an OR must have the same key.
+     * expressions, where each expression within an OR must have the same key. An
+     * '=' should be used to connect the key and value.
      * For example, "(color = red OR color = blue) AND brand = Google" is
-     * acceptable, but not "(color = red OR brand = Google)" or "color: red".
+     * acceptable, but "(color = red OR brand = Google)" is not acceptable.
+     * "color: red" is not acceptable because it uses a ':' instead of an '='.
      * 
* * string filter = 8; @@ -1346,9 +1356,11 @@ public Builder setFilter(java.lang.String value) { *
      * The filtering expression. This can be used to restrict search results based
      * on Product labels. We currently support an AND of OR of key-value
-     * expressions, where each expression within an OR must have the same key.
+     * expressions, where each expression within an OR must have the same key. An
+     * '=' should be used to connect the key and value.
      * For example, "(color = red OR color = blue) AND brand = Google" is
-     * acceptable, but not "(color = red OR brand = Google)" or "color: red".
+     * acceptable, but "(color = red OR brand = Google)" is not acceptable.
+     * "color: red" is not acceptable because it uses a ':' instead of an '='.
      * 
* * string filter = 8; @@ -1365,9 +1377,11 @@ public Builder clearFilter() { *
      * The filtering expression. This can be used to restrict search results based
      * on Product labels. We currently support an AND of OR of key-value
-     * expressions, where each expression within an OR must have the same key.
+     * expressions, where each expression within an OR must have the same key. An
+     * '=' should be used to connect the key and value.
      * For example, "(color = red OR color = blue) AND brand = Google" is
-     * acceptable, but not "(color = red OR brand = Google)" or "color: red".
+     * acceptable, but "(color = red OR brand = Google)" is not acceptable.
+     * "color: red" is not acceptable because it uses a ':' instead of an '='.
      * 
* * string filter = 8; diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchParamsOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchParamsOrBuilder.java index 9ebcc39b6..c44f687aa 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchParamsOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchParamsOrBuilder.java @@ -28,7 +28,7 @@ public interface ProductSearchParamsOrBuilder * *
    * The bounding polygon around the area of interest in the image.
-   * Optional. If it is not specified, system discretion will be applied.
+   * If it is not specified, system discretion will be applied.
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 9; @@ -39,7 +39,7 @@ public interface ProductSearchParamsOrBuilder * *
    * The bounding polygon around the area of interest in the image.
-   * Optional. If it is not specified, system discretion will be applied.
+   * If it is not specified, system discretion will be applied.
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 9; @@ -50,7 +50,7 @@ public interface ProductSearchParamsOrBuilder * *
    * The bounding polygon around the area of interest in the image.
-   * Optional. If it is not specified, system discretion will be applied.
+   * If it is not specified, system discretion will be applied.
    * 
* * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 9; @@ -68,7 +68,7 @@ public interface ProductSearchParamsOrBuilder * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`. * * - * string product_set = 6; + * string product_set = 6 [(.google.api.resource_reference) = { ... } */ java.lang.String getProductSet(); /** @@ -82,7 +82,7 @@ public interface ProductSearchParamsOrBuilder * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`. * * - * string product_set = 6; + * string product_set = 6 [(.google.api.resource_reference) = { ... } */ com.google.protobuf.ByteString getProductSetBytes(); @@ -157,9 +157,11 @@ public interface ProductSearchParamsOrBuilder *
    * The filtering expression. This can be used to restrict search results based
    * on Product labels. We currently support an AND of OR of key-value
-   * expressions, where each expression within an OR must have the same key.
+   * expressions, where each expression within an OR must have the same key. An
+   * '=' should be used to connect the key and value.
    * For example, "(color = red OR color = blue) AND brand = Google" is
-   * acceptable, but not "(color = red OR brand = Google)" or "color: red".
+   * acceptable, but "(color = red OR brand = Google)" is not acceptable.
+   * "color: red" is not acceptable because it uses a ':' instead of an '='.
    * 
* * string filter = 8; @@ -171,9 +173,11 @@ public interface ProductSearchParamsOrBuilder *
    * The filtering expression. This can be used to restrict search results based
    * on Product labels. We currently support an AND of OR of key-value
-   * expressions, where each expression within an OR must have the same key.
+   * expressions, where each expression within an OR must have the same key. An
+   * '=' should be used to connect the key and value.
    * For example, "(color = red OR color = blue) AND brand = Google" is
-   * acceptable, but not "(color = red OR brand = Google)" or "color: red".
+   * acceptable, but "(color = red OR brand = Google)" is not acceptable.
+   * "color: red" is not acceptable because it uses a ':' instead of an '='.
    * 
* * string filter = 8; diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchProto.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchProto.java index 79f41b638..b69397ac6 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchProto.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchProto.java @@ -39,6 +39,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_Result_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_Result_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_GroupedResult_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -54,31 +58,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n2google/cloud/vision/v1p4beta1/product_" + "search.proto\022\035google.cloud.vision.v1p4be" - + "ta1\032\034google/api/annotations.proto\032,googl" - + "e/cloud/vision/v1p4beta1/geometry.proto\032" - + ":google/cloud/vision/v1p4beta1/product_s" - + "earch_service.proto\032\037google/protobuf/tim" - + "estamp.proto\"\232\001\n\023ProductSearchParams\022B\n\r" - + "bounding_poly\030\t \001(\0132+.google.cloud.visio" - + "n.v1p4beta1.BoundingPoly\022\023\n\013product_set\030" - + "\006 \001(\t\022\032\n\022product_categories\030\007 \003(\t\022\016\n\006fil" - + "ter\030\010 \001(\t\"\373\003\n\024ProductSearchResults\022.\n\nin" - + "dex_time\030\002 \001(\0132\032.google.protobuf.Timesta" - + "mp\022K\n\007results\030\005 \003(\0132:.google.cloud.visio" - + "n.v1p4beta1.ProductSearchResults.Result\022" - + "b\n\027product_grouped_results\030\006 \003(\0132A.googl" - + "e.cloud.vision.v1p4beta1.ProductSearchRe" - + "sults.GroupedResult\032_\n\006Result\0227\n\007product" - + "\030\001 \001(\0132&.google.cloud.vision.v1p4beta1.P" - + "roduct\022\r\n\005score\030\002 \001(\002\022\r\n\005image\030\003 \001(\t\032\240\001\n" - + "\rGroupedResult\022B\n\rbounding_poly\030\001 \001(\0132+." - + "google.cloud.vision.v1p4beta1.BoundingPo" - + "ly\022K\n\007results\030\002 \003(\0132:.google.cloud.visio" - + "n.v1p4beta1.ProductSearchResults.ResultB" - + "\210\001\n!com.google.cloud.vision.v1p4beta1B\022P" - + "roductSearchProtoP\001ZCgoogle.golang.org/g" - + "enproto/googleapis/cloud/vision/v1p4beta" - + "1;vision\370\001\001\242\002\004GCVNb\006proto3" + + "ta1\032\034google/api/annotations.proto\032\031googl" + + "e/api/resource.proto\032,google/cloud/visio" + + "n/v1p4beta1/geometry.proto\032:google/cloud" + + "/vision/v1p4beta1/product_search_service" + + ".proto\032\037google/protobuf/timestamp.proto\"" + + "\301\001\n\023ProductSearchParams\022B\n\rbounding_poly" + + "\030\t \001(\0132+.google.cloud.vision.v1p4beta1.B" + + "oundingPoly\022:\n\013product_set\030\006 \001(\tB%\372A\"\n v" + + "ision.googleapis.com/ProductSet\022\032\n\022produ" + + "ct_categories\030\007 \003(\t\022\016\n\006filter\030\010 \001(\t\"\262\005\n\024" + + "ProductSearchResults\022.\n\nindex_time\030\002 \001(\013" + + "2\032.google.protobuf.Timestamp\022K\n\007results\030" + + "\005 \003(\0132:.google.cloud.vision.v1p4beta1.Pr" + + "oductSearchResults.Result\022b\n\027product_gro" + + "uped_results\030\006 \003(\0132A.google.cloud.vision" + + ".v1p4beta1.ProductSearchResults.GroupedR" + + "esult\032_\n\006Result\0227\n\007product\030\001 \001(\0132&.googl" + + "e.cloud.vision.v1p4beta1.Product\022\r\n\005scor" + + "e\030\002 \001(\002\022\r\n\005image\030\003 \001(\t\032S\n\020ObjectAnnotati" + + "on\022\013\n\003mid\030\001 \001(\t\022\025\n\rlanguage_code\030\002 \001(\t\022\014" + + "\n\004name\030\003 \001(\t\022\r\n\005score\030\004 \001(\002\032\202\002\n\rGroupedR" + + "esult\022B\n\rbounding_poly\030\001 \001(\0132+.google.cl" + + "oud.vision.v1p4beta1.BoundingPoly\022K\n\007res" + + "ults\030\002 \003(\0132:.google.cloud.vision.v1p4bet" + + "a1.ProductSearchResults.Result\022`\n\022object" + + "_annotations\030\003 \003(\0132D.google.cloud.vision" + + ".v1p4beta1.ProductSearchResults.ObjectAn" + + "notationB\210\001\n!com.google.cloud.vision.v1p" + + "4beta1B\022ProductSearchProtoP\001ZCgoogle.gol" + + "ang.org/genproto/googleapis/cloud/vision" + + "/v1p4beta1;vision\370\001\001\242\002\004GCVNb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -92,6 +102,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(), com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -123,17 +134,33 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "Product", "Score", "Image", }); - internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_GroupedResult_descriptor = + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_descriptor = internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_descriptor .getNestedTypes() .get(1); + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_descriptor, + new java.lang.String[] { + "Mid", "LanguageCode", "Name", "Score", + }); + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_GroupedResult_descriptor = + internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_descriptor + .getNestedTypes() + .get(2); internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_GroupedResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_GroupedResult_descriptor, new java.lang.String[] { - "BoundingPoly", "Results", + "BoundingPoly", "Results", "ObjectAnnotations", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(); com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchResults.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchResults.java index bf9dd4690..90214acb3 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchResults.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchResults.java @@ -1184,6 +1184,1124 @@ public com.google.protobuf.Parser getParserForType() { } } + public interface ObjectAnnotationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Object ID that should align with EntityAnnotation mid.
+     * 
+ * + * string mid = 1; + */ + java.lang.String getMid(); + /** + * + * + *
+     * Object ID that should align with EntityAnnotation mid.
+     * 
+ * + * string mid = 1; + */ + com.google.protobuf.ByteString getMidBytes(); + + /** + * + * + *
+     * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
+     * information, see
+     * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+     * 
+ * + * string language_code = 2; + */ + java.lang.String getLanguageCode(); + /** + * + * + *
+     * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
+     * information, see
+     * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+     * 
+ * + * string language_code = 2; + */ + com.google.protobuf.ByteString getLanguageCodeBytes(); + + /** + * + * + *
+     * Object name, expressed in its `language_code` language.
+     * 
+ * + * string name = 3; + */ + java.lang.String getName(); + /** + * + * + *
+     * Object name, expressed in its `language_code` language.
+     * 
+ * + * string name = 3; + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+     * Score of the result. Range [0, 1].
+     * 
+ * + * float score = 4; + */ + float getScore(); + } + /** + * + * + *
+   * Prediction for what the object in the bounding box is.
+   * 
+ * + * Protobuf type {@code google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation} + */ + public static final class ObjectAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation) + ObjectAnnotationOrBuilder { + private static final long serialVersionUID = 0L; + // Use ObjectAnnotation.newBuilder() to construct. + private ObjectAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ObjectAnnotation() { + mid_ = ""; + languageCode_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ObjectAnnotation( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + mid_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + languageCode_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 37: + { + score_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchProto + .internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vision.v1p4beta1.ProductSearchProto + .internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.class, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder + .class); + } + + public static final int MID_FIELD_NUMBER = 1; + private volatile java.lang.Object mid_; + /** + * + * + *
+     * Object ID that should align with EntityAnnotation mid.
+     * 
+ * + * string mid = 1; + */ + public java.lang.String getMid() { + java.lang.Object ref = mid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mid_ = s; + return s; + } + } + /** + * + * + *
+     * Object ID that should align with EntityAnnotation mid.
+     * 
+ * + * string mid = 1; + */ + public com.google.protobuf.ByteString getMidBytes() { + java.lang.Object ref = mid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; + private volatile java.lang.Object languageCode_; + /** + * + * + *
+     * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
+     * information, see
+     * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+     * 
+ * + * string language_code = 2; + */ + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } + } + /** + * + * + *
+     * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
+     * information, see
+     * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+     * 
+ * + * string language_code = 2; + */ + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object name_; + /** + * + * + *
+     * Object name, expressed in its `language_code` language.
+     * 
+ * + * string name = 3; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+     * Object name, expressed in its `language_code` language.
+     * 
+ * + * string name = 3; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCORE_FIELD_NUMBER = 4; + private float score_; + /** + * + * + *
+     * Score of the result. Range [0, 1].
+     * 
+ * + * float score = 4; + */ + public float getScore() { + return score_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getMidBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mid_); + } + if (!getLanguageCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); + } + if (score_ != 0F) { + output.writeFloat(4, score_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getMidBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mid_); + } + if (!getLanguageCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); + } + if (score_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, score_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation)) { + return super.equals(obj); + } + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation other = + (com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation) obj; + + if (!getMid().equals(other.getMid())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getName().equals(other.getName())) return false; + if (java.lang.Float.floatToIntBits(getScore()) + != java.lang.Float.floatToIntBits(other.getScore())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MID_FIELD_NUMBER; + hash = (53 * hash) + getMid().hashCode(); + hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getLanguageCode().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Prediction for what the object in the bounding box is.
+     * 
+ * + * Protobuf type {@code google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation) + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchProto + .internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vision.v1p4beta1.ProductSearchProto + .internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.class, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder + .class); + } + + // Construct using + // com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + mid_ = ""; + + languageCode_ = ""; + + name_ = ""; + + score_ = 0F; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchProto + .internal_static_google_cloud_vision_v1p4beta1_ProductSearchResults_ObjectAnnotation_descriptor; + } + + @java.lang.Override + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation + getDefaultInstanceForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation build() { + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation + buildPartial() { + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation result = + new com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation(this); + result.mid_ = mid_; + result.languageCode_ = languageCode_; + result.name_ = name_; + result.score_ = score_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation) { + return mergeFrom( + (com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation other) { + if (other + == com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation + .getDefaultInstance()) return this; + if (!other.getMid().isEmpty()) { + mid_ = other.mid_; + onChanged(); + } + if (!other.getLanguageCode().isEmpty()) { + languageCode_ = other.languageCode_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getScore() != 0F) { + setScore(other.getScore()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object mid_ = ""; + /** + * + * + *
+       * Object ID that should align with EntityAnnotation mid.
+       * 
+ * + * string mid = 1; + */ + public java.lang.String getMid() { + java.lang.Object ref = mid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Object ID that should align with EntityAnnotation mid.
+       * 
+ * + * string mid = 1; + */ + public com.google.protobuf.ByteString getMidBytes() { + java.lang.Object ref = mid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Object ID that should align with EntityAnnotation mid.
+       * 
+ * + * string mid = 1; + */ + public Builder setMid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + mid_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Object ID that should align with EntityAnnotation mid.
+       * 
+ * + * string mid = 1; + */ + public Builder clearMid() { + + mid_ = getDefaultInstance().getMid(); + onChanged(); + return this; + } + /** + * + * + *
+       * Object ID that should align with EntityAnnotation mid.
+       * 
+ * + * string mid = 1; + */ + public Builder setMidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + mid_ = value; + onChanged(); + return this; + } + + private java.lang.Object languageCode_ = ""; + /** + * + * + *
+       * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
+       * information, see
+       * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+       * 
+ * + * string language_code = 2; + */ + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
+       * information, see
+       * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+       * 
+ * + * string language_code = 2; + */ + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
+       * information, see
+       * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+       * 
+ * + * string language_code = 2; + */ + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + languageCode_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
+       * information, see
+       * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+       * 
+ * + * string language_code = 2; + */ + public Builder clearLanguageCode() { + + languageCode_ = getDefaultInstance().getLanguageCode(); + onChanged(); + return this; + } + /** + * + * + *
+       * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
+       * information, see
+       * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+       * 
+ * + * string language_code = 2; + */ + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + languageCode_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+       * Object name, expressed in its `language_code` language.
+       * 
+ * + * string name = 3; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Object name, expressed in its `language_code` language.
+       * 
+ * + * string name = 3; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Object name, expressed in its `language_code` language.
+       * 
+ * + * string name = 3; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Object name, expressed in its `language_code` language.
+       * 
+ * + * string name = 3; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+       * Object name, expressed in its `language_code` language.
+       * 
+ * + * string name = 3; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private float score_; + /** + * + * + *
+       * Score of the result. Range [0, 1].
+       * 
+ * + * float score = 4; + */ + public float getScore() { + return score_; + } + /** + * + * + *
+       * Score of the result. Range [0, 1].
+       * 
+ * + * float score = 4; + */ + public Builder setScore(float value) { + + score_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Score of the result. Range [0, 1].
+       * 
+ * + * float score = 4; + */ + public Builder clearScore() { + + score_ = 0F; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation) + private static final com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation(); + } + + public static com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ObjectAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ObjectAnnotation(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + public interface GroupedResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult) @@ -1272,6 +2390,73 @@ public interface GroupedResultOrBuilder */ com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder getResultsOrBuilder( int index); + + /** + * + * + *
+     * List of generic predictions for the object in the bounding box.
+     * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + */ + java.util.List + getObjectAnnotationsList(); + /** + * + * + *
+     * List of generic predictions for the object in the bounding box.
+     * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + */ + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation getObjectAnnotations( + int index); + /** + * + * + *
+     * List of generic predictions for the object in the bounding box.
+     * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + */ + int getObjectAnnotationsCount(); + /** + * + * + *
+     * List of generic predictions for the object in the bounding box.
+     * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + */ + java.util.List< + ? extends + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationOrBuilder> + getObjectAnnotationsOrBuilderList(); + /** + * + * + *
+     * List of generic predictions for the object in the bounding box.
+     * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + */ + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationOrBuilder + getObjectAnnotationsOrBuilder(int index); } /** * @@ -1295,6 +2480,7 @@ private GroupedResult(com.google.protobuf.GeneratedMessageV3.Builder builder) private GroupedResult() { results_ = java.util.Collections.emptyList(); + objectAnnotations_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -1351,6 +2537,22 @@ private GroupedResult( extensionRegistry)); break; } + case 26: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + objectAnnotations_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p4beta1.ProductSearchResults + .ObjectAnnotation>(); + mutable_bitField0_ |= 0x00000004; + } + objectAnnotations_.add( + input.readMessage( + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation + .parser(), + extensionRegistry)); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -1368,6 +2570,9 @@ private GroupedResult( if (((mutable_bitField0_ & 0x00000002) != 0)) { results_ = java.util.Collections.unmodifiableList(results_); } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + objectAnnotations_ = java.util.Collections.unmodifiableList(objectAnnotations_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -1497,6 +2702,86 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result getResults( return results_.get(index); } + public static final int OBJECT_ANNOTATIONS_FIELD_NUMBER = 3; + private java.util.List + objectAnnotations_; + /** + * + * + *
+     * List of generic predictions for the object in the bounding box.
+     * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + */ + public java.util.List + getObjectAnnotationsList() { + return objectAnnotations_; + } + /** + * + * + *
+     * List of generic predictions for the object in the bounding box.
+     * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + */ + public java.util.List< + ? extends + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationOrBuilder> + getObjectAnnotationsOrBuilderList() { + return objectAnnotations_; + } + /** + * + * + *
+     * List of generic predictions for the object in the bounding box.
+     * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + */ + public int getObjectAnnotationsCount() { + return objectAnnotations_.size(); + } + /** + * + * + *
+     * List of generic predictions for the object in the bounding box.
+     * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + */ + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation + getObjectAnnotations(int index) { + return objectAnnotations_.get(index); + } + /** + * + * + *
+     * List of generic predictions for the object in the bounding box.
+     * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + */ + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationOrBuilder + getObjectAnnotationsOrBuilder(int index) { + return objectAnnotations_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1517,6 +2802,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < results_.size(); i++) { output.writeMessage(2, results_.get(i)); } + for (int i = 0; i < objectAnnotations_.size(); i++) { + output.writeMessage(3, objectAnnotations_.get(i)); + } unknownFields.writeTo(output); } @@ -1532,6 +2820,10 @@ public int getSerializedSize() { for (int i = 0; i < results_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, results_.get(i)); } + for (int i = 0; i < objectAnnotations_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, objectAnnotations_.get(i)); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1553,6 +2845,7 @@ public boolean equals(final java.lang.Object obj) { if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; } if (!getResultsList().equals(other.getResultsList())) return false; + if (!getObjectAnnotationsList().equals(other.getObjectAnnotationsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1572,6 +2865,10 @@ public int hashCode() { hash = (37 * hash) + RESULTS_FIELD_NUMBER; hash = (53 * hash) + getResultsList().hashCode(); } + if (getObjectAnnotationsCount() > 0) { + hash = (37 * hash) + OBJECT_ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + getObjectAnnotationsList().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1719,6 +3016,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getResultsFieldBuilder(); + getObjectAnnotationsFieldBuilder(); } } @@ -1737,6 +3035,12 @@ public Builder clear() { } else { resultsBuilder_.clear(); } + if (objectAnnotationsBuilder_ == null) { + objectAnnotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + objectAnnotationsBuilder_.clear(); + } return this; } @@ -1779,9 +3083,18 @@ public com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult buil results_ = java.util.Collections.unmodifiableList(results_); bitField0_ = (bitField0_ & ~0x00000002); } - result.results_ = results_; + result.results_ = results_; + } else { + result.results_ = resultsBuilder_.build(); + } + if (objectAnnotationsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + objectAnnotations_ = java.util.Collections.unmodifiableList(objectAnnotations_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.objectAnnotations_ = objectAnnotations_; } else { - result.results_ = resultsBuilder_.build(); + result.objectAnnotations_ = objectAnnotationsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); @@ -1869,6 +3182,33 @@ public Builder mergeFrom( } } } + if (objectAnnotationsBuilder_ == null) { + if (!other.objectAnnotations_.isEmpty()) { + if (objectAnnotations_.isEmpty()) { + objectAnnotations_ = other.objectAnnotations_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureObjectAnnotationsIsMutable(); + objectAnnotations_.addAll(other.objectAnnotations_); + } + onChanged(); + } + } else { + if (!other.objectAnnotations_.isEmpty()) { + if (objectAnnotationsBuilder_.isEmpty()) { + objectAnnotationsBuilder_.dispose(); + objectAnnotationsBuilder_ = null; + objectAnnotations_ = other.objectAnnotations_; + bitField0_ = (bitField0_ & ~0x00000004); + objectAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getObjectAnnotationsFieldBuilder() + : null; + } else { + objectAnnotationsBuilder_.addAllMessages(other.objectAnnotations_); + } + } + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2470,6 +3810,425 @@ public Builder removeResults(int index) { return resultsBuilder_; } + private java.util.List< + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation> + objectAnnotations_ = java.util.Collections.emptyList(); + + private void ensureObjectAnnotationsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + objectAnnotations_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation>( + objectAnnotations_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationOrBuilder> + objectAnnotationsBuilder_; + + /** + * + * + *
+       * List of generic predictions for the object in the bounding box.
+       * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + */ + public java.util.List + getObjectAnnotationsList() { + if (objectAnnotationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(objectAnnotations_); + } else { + return objectAnnotationsBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * List of generic predictions for the object in the bounding box.
+       * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + */ + public int getObjectAnnotationsCount() { + if (objectAnnotationsBuilder_ == null) { + return objectAnnotations_.size(); + } else { + return objectAnnotationsBuilder_.getCount(); + } + } + /** + * + * + *
+       * List of generic predictions for the object in the bounding box.
+       * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + */ + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation + getObjectAnnotations(int index) { + if (objectAnnotationsBuilder_ == null) { + return objectAnnotations_.get(index); + } else { + return objectAnnotationsBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * List of generic predictions for the object in the bounding box.
+       * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + */ + public Builder setObjectAnnotations( + int index, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation value) { + if (objectAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureObjectAnnotationsIsMutable(); + objectAnnotations_.set(index, value); + onChanged(); + } else { + objectAnnotationsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * List of generic predictions for the object in the bounding box.
+       * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + */ + public Builder setObjectAnnotations( + int index, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder + builderForValue) { + if (objectAnnotationsBuilder_ == null) { + ensureObjectAnnotationsIsMutable(); + objectAnnotations_.set(index, builderForValue.build()); + onChanged(); + } else { + objectAnnotationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * List of generic predictions for the object in the bounding box.
+       * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + */ + public Builder addObjectAnnotations( + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation value) { + if (objectAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureObjectAnnotationsIsMutable(); + objectAnnotations_.add(value); + onChanged(); + } else { + objectAnnotationsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * List of generic predictions for the object in the bounding box.
+       * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + */ + public Builder addObjectAnnotations( + int index, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation value) { + if (objectAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureObjectAnnotationsIsMutable(); + objectAnnotations_.add(index, value); + onChanged(); + } else { + objectAnnotationsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * List of generic predictions for the object in the bounding box.
+       * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + */ + public Builder addObjectAnnotations( + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder + builderForValue) { + if (objectAnnotationsBuilder_ == null) { + ensureObjectAnnotationsIsMutable(); + objectAnnotations_.add(builderForValue.build()); + onChanged(); + } else { + objectAnnotationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * List of generic predictions for the object in the bounding box.
+       * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + */ + public Builder addObjectAnnotations( + int index, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder + builderForValue) { + if (objectAnnotationsBuilder_ == null) { + ensureObjectAnnotationsIsMutable(); + objectAnnotations_.add(index, builderForValue.build()); + onChanged(); + } else { + objectAnnotationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * List of generic predictions for the object in the bounding box.
+       * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + */ + public Builder addAllObjectAnnotations( + java.lang.Iterable< + ? extends com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation> + values) { + if (objectAnnotationsBuilder_ == null) { + ensureObjectAnnotationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, objectAnnotations_); + onChanged(); + } else { + objectAnnotationsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * List of generic predictions for the object in the bounding box.
+       * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + */ + public Builder clearObjectAnnotations() { + if (objectAnnotationsBuilder_ == null) { + objectAnnotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + objectAnnotationsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * List of generic predictions for the object in the bounding box.
+       * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + */ + public Builder removeObjectAnnotations(int index) { + if (objectAnnotationsBuilder_ == null) { + ensureObjectAnnotationsIsMutable(); + objectAnnotations_.remove(index); + onChanged(); + } else { + objectAnnotationsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * List of generic predictions for the object in the bounding box.
+       * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + */ + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder + getObjectAnnotationsBuilder(int index) { + return getObjectAnnotationsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * List of generic predictions for the object in the bounding box.
+       * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + */ + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationOrBuilder + getObjectAnnotationsOrBuilder(int index) { + if (objectAnnotationsBuilder_ == null) { + return objectAnnotations_.get(index); + } else { + return objectAnnotationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * List of generic predictions for the object in the bounding box.
+       * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + */ + public java.util.List< + ? extends + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationOrBuilder> + getObjectAnnotationsOrBuilderList() { + if (objectAnnotationsBuilder_ != null) { + return objectAnnotationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(objectAnnotations_); + } + } + /** + * + * + *
+       * List of generic predictions for the object in the bounding box.
+       * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + */ + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder + addObjectAnnotationsBuilder() { + return getObjectAnnotationsFieldBuilder() + .addBuilder( + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation + .getDefaultInstance()); + } + /** + * + * + *
+       * List of generic predictions for the object in the bounding box.
+       * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + */ + public com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder + addObjectAnnotationsBuilder(int index) { + return getObjectAnnotationsFieldBuilder() + .addBuilder( + index, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation + .getDefaultInstance()); + } + /** + * + * + *
+       * List of generic predictions for the object in the bounding box.
+       * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3; + * + */ + public java.util.List< + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder> + getObjectAnnotationsBuilderList() { + return getObjectAnnotationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationOrBuilder> + getObjectAnnotationsFieldBuilder() { + if (objectAnnotationsBuilder_ == null) { + objectAnnotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation.Builder, + com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationOrBuilder>( + objectAnnotations_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + objectAnnotations_ = null; + } + return objectAnnotationsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2532,8 +4291,9 @@ public com.google.protobuf.Parser getParserForType() { * * *
-   * Timestamp of the index which provided these results. Changes made after
-   * this time are not reflected in the current results.
+   * Timestamp of the index which provided these results. Products added to the
+   * product set and products removed from the product set after this time are
+   * not reflected in the current results.
    * 
* * .google.protobuf.Timestamp index_time = 2; @@ -2545,8 +4305,9 @@ public boolean hasIndexTime() { * * *
-   * Timestamp of the index which provided these results. Changes made after
-   * this time are not reflected in the current results.
+   * Timestamp of the index which provided these results. Products added to the
+   * product set and products removed from the product set after this time are
+   * not reflected in the current results.
    * 
* * .google.protobuf.Timestamp index_time = 2; @@ -2558,8 +4319,9 @@ public com.google.protobuf.Timestamp getIndexTime() { * * *
-   * Timestamp of the index which provided these results. Changes made after
-   * this time are not reflected in the current results.
+   * Timestamp of the index which provided these results. Products added to the
+   * product set and products removed from the product set after this time are
+   * not reflected in the current results.
    * 
* * .google.protobuf.Timestamp index_time = 2; @@ -3186,8 +4948,9 @@ public Builder mergeFrom( * * *
-     * Timestamp of the index which provided these results. Changes made after
-     * this time are not reflected in the current results.
+     * Timestamp of the index which provided these results. Products added to the
+     * product set and products removed from the product set after this time are
+     * not reflected in the current results.
      * 
* * .google.protobuf.Timestamp index_time = 2; @@ -3199,8 +4962,9 @@ public boolean hasIndexTime() { * * *
-     * Timestamp of the index which provided these results. Changes made after
-     * this time are not reflected in the current results.
+     * Timestamp of the index which provided these results. Products added to the
+     * product set and products removed from the product set after this time are
+     * not reflected in the current results.
      * 
* * .google.protobuf.Timestamp index_time = 2; @@ -3216,8 +4980,9 @@ public com.google.protobuf.Timestamp getIndexTime() { * * *
-     * Timestamp of the index which provided these results. Changes made after
-     * this time are not reflected in the current results.
+     * Timestamp of the index which provided these results. Products added to the
+     * product set and products removed from the product set after this time are
+     * not reflected in the current results.
      * 
* * .google.protobuf.Timestamp index_time = 2; @@ -3239,8 +5004,9 @@ public Builder setIndexTime(com.google.protobuf.Timestamp value) { * * *
-     * Timestamp of the index which provided these results. Changes made after
-     * this time are not reflected in the current results.
+     * Timestamp of the index which provided these results. Products added to the
+     * product set and products removed from the product set after this time are
+     * not reflected in the current results.
      * 
* * .google.protobuf.Timestamp index_time = 2; @@ -3259,8 +5025,9 @@ public Builder setIndexTime(com.google.protobuf.Timestamp.Builder builderForValu * * *
-     * Timestamp of the index which provided these results. Changes made after
-     * this time are not reflected in the current results.
+     * Timestamp of the index which provided these results. Products added to the
+     * product set and products removed from the product set after this time are
+     * not reflected in the current results.
      * 
* * .google.protobuf.Timestamp index_time = 2; @@ -3284,8 +5051,9 @@ public Builder mergeIndexTime(com.google.protobuf.Timestamp value) { * * *
-     * Timestamp of the index which provided these results. Changes made after
-     * this time are not reflected in the current results.
+     * Timestamp of the index which provided these results. Products added to the
+     * product set and products removed from the product set after this time are
+     * not reflected in the current results.
      * 
* * .google.protobuf.Timestamp index_time = 2; @@ -3305,8 +5073,9 @@ public Builder clearIndexTime() { * * *
-     * Timestamp of the index which provided these results. Changes made after
-     * this time are not reflected in the current results.
+     * Timestamp of the index which provided these results. Products added to the
+     * product set and products removed from the product set after this time are
+     * not reflected in the current results.
      * 
* * .google.protobuf.Timestamp index_time = 2; @@ -3320,8 +5089,9 @@ public com.google.protobuf.Timestamp.Builder getIndexTimeBuilder() { * * *
-     * Timestamp of the index which provided these results. Changes made after
-     * this time are not reflected in the current results.
+     * Timestamp of the index which provided these results. Products added to the
+     * product set and products removed from the product set after this time are
+     * not reflected in the current results.
      * 
* * .google.protobuf.Timestamp index_time = 2; @@ -3337,8 +5107,9 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { * * *
-     * Timestamp of the index which provided these results. Changes made after
-     * this time are not reflected in the current results.
+     * Timestamp of the index which provided these results. Products added to the
+     * product set and products removed from the product set after this time are
+     * not reflected in the current results.
      * 
* * .google.protobuf.Timestamp index_time = 2; diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchResultsOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchResultsOrBuilder.java index 323755c13..953e7179c 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchResultsOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchResultsOrBuilder.java @@ -27,8 +27,9 @@ public interface ProductSearchResultsOrBuilder * * *
-   * Timestamp of the index which provided these results. Changes made after
-   * this time are not reflected in the current results.
+   * Timestamp of the index which provided these results. Products added to the
+   * product set and products removed from the product set after this time are
+   * not reflected in the current results.
    * 
* * .google.protobuf.Timestamp index_time = 2; @@ -38,8 +39,9 @@ public interface ProductSearchResultsOrBuilder * * *
-   * Timestamp of the index which provided these results. Changes made after
-   * this time are not reflected in the current results.
+   * Timestamp of the index which provided these results. Products added to the
+   * product set and products removed from the product set after this time are
+   * not reflected in the current results.
    * 
* * .google.protobuf.Timestamp index_time = 2; @@ -49,8 +51,9 @@ public interface ProductSearchResultsOrBuilder * * *
-   * Timestamp of the index which provided these results. Changes made after
-   * this time are not reflected in the current results.
+   * Timestamp of the index which provided these results. Products added to the
+   * product set and products removed from the product set after this time are
+   * not reflected in the current results.
    * 
* * .google.protobuf.Timestamp index_time = 2; diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchServiceProto.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchServiceProto.java index 554c079db..9a276d70a 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchServiceProto.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchServiceProto.java @@ -147,6 +147,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_vision_v1p4beta1_BatchOperationMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_vision_v1p4beta1_BatchOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -159,179 +167,234 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n:google/cloud/vision/v1p4beta1/product_" + "search_service.proto\022\035google.cloud.visio" + "n.v1p4beta1\032\034google/api/annotations.prot" - + "o\032,google/cloud/vision/v1p4beta1/geometr" - + "y.proto\032#google/longrunning/operations.p" - + "roto\032\033google/protobuf/empty.proto\032 googl" - + "e/protobuf/field_mask.proto\032\037google/prot" - + "obuf/timestamp.proto\032\027google/rpc/status." - + "proto\"\315\001\n\007Product\022\014\n\004name\030\001 \001(\t\022\024\n\014displ" - + "ay_name\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022\030\n\020pr" - + "oduct_category\030\004 \001(\t\022G\n\016product_labels\030\005" - + " \003(\0132/.google.cloud.vision.v1p4beta1.Pro" - + "duct.KeyValue\032&\n\010KeyValue\022\013\n\003key\030\001 \001(\t\022\r" - + "\n\005value\030\002 \001(\t\"\211\001\n\nProductSet\022\014\n\004name\030\001 \001" - + "(\t\022\024\n\014display_name\030\002 \001(\t\022.\n\nindex_time\030\003" - + " \001(\0132\032.google.protobuf.Timestamp\022\'\n\013inde" - + "x_error\030\004 \001(\0132\022.google.rpc.Status\"p\n\016Ref" - + "erenceImage\022\014\n\004name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022C" - + "\n\016bounding_polys\030\003 \003(\0132+.google.cloud.vi" - + "sion.v1p4beta1.BoundingPoly\"s\n\024CreatePro" - + "ductRequest\022\016\n\006parent\030\001 \001(\t\0227\n\007product\030\002" - + " \001(\0132&.google.cloud.vision.v1p4beta1.Pro" - + "duct\022\022\n\nproduct_id\030\003 \001(\t\"L\n\023ListProducts" - + "Request\022\016\n\006parent\030\001 \001(\t\022\021\n\tpage_size\030\002 \001" - + "(\005\022\022\n\npage_token\030\003 \001(\t\"i\n\024ListProductsRe" - + "sponse\0228\n\010products\030\001 \003(\0132&.google.cloud." - + "vision.v1p4beta1.Product\022\027\n\017next_page_to" - + "ken\030\002 \001(\t\"!\n\021GetProductRequest\022\014\n\004name\030\001" - + " \001(\t\"\200\001\n\024UpdateProductRequest\0227\n\007product" - + "\030\001 \001(\0132&.google.cloud.vision.v1p4beta1.P" - + "roduct\022/\n\013update_mask\030\002 \001(\0132\032.google.pro" - + "tobuf.FieldMask\"$\n\024DeleteProductRequest\022" - + "\014\n\004name\030\001 \001(\t\"\201\001\n\027CreateProductSetReques" - + "t\022\016\n\006parent\030\001 \001(\t\022>\n\013product_set\030\002 \001(\0132)" - + ".google.cloud.vision.v1p4beta1.ProductSe" - + "t\022\026\n\016product_set_id\030\003 \001(\t\"O\n\026ListProduct" - + "SetsRequest\022\016\n\006parent\030\001 \001(\t\022\021\n\tpage_size" - + "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"s\n\027ListProduc" - + "tSetsResponse\022?\n\014product_sets\030\001 \003(\0132).go" - + "ogle.cloud.vision.v1p4beta1.ProductSet\022\027" - + "\n\017next_page_token\030\002 \001(\t\"$\n\024GetProductSet" - + "Request\022\014\n\004name\030\001 \001(\t\"\212\001\n\027UpdateProductS" - + "etRequest\022>\n\013product_set\030\001 \001(\0132).google." - + "cloud.vision.v1p4beta1.ProductSet\022/\n\013upd" - + "ate_mask\030\002 \001(\0132\032.google.protobuf.FieldMa" - + "sk\"\'\n\027DeleteProductSetRequest\022\014\n\004name\030\001 " - + "\001(\t\"\221\001\n\033CreateReferenceImageRequest\022\016\n\006p" - + "arent\030\001 \001(\t\022F\n\017reference_image\030\002 \001(\0132-.g" - + "oogle.cloud.vision.v1p4beta1.ReferenceIm" - + "age\022\032\n\022reference_image_id\030\003 \001(\t\"S\n\032ListR" - + "eferenceImagesRequest\022\016\n\006parent\030\001 \001(\t\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\222\001\n" - + "\033ListReferenceImagesResponse\022G\n\020referenc" - + "e_images\030\001 \003(\0132-.google.cloud.vision.v1p" - + "4beta1.ReferenceImage\022\021\n\tpage_size\030\002 \001(\005" - + "\022\027\n\017next_page_token\030\003 \001(\t\"(\n\030GetReferenc" - + "eImageRequest\022\014\n\004name\030\001 \001(\t\"+\n\033DeleteRef" - + "erenceImageRequest\022\014\n\004name\030\001 \001(\t\">\n\035AddP" - + "roductToProductSetRequest\022\014\n\004name\030\001 \001(\t\022" - + "\017\n\007product\030\002 \001(\t\"C\n\"RemoveProductFromPro" - + "ductSetRequest\022\014\n\004name\030\001 \001(\t\022\017\n\007product\030" - + "\002 \001(\t\"V\n\037ListProductsInProductSetRequest" - + "\022\014\n\004name\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npag" - + "e_token\030\003 \001(\t\"u\n ListProductsInProductSe" - + "tResponse\0228\n\010products\030\001 \003(\0132&.google.clo" - + "ud.vision.v1p4beta1.Product\022\027\n\017next_page" - + "_token\030\002 \001(\t\"2\n\032ImportProductSetsGcsSour" - + "ce\022\024\n\014csv_file_uri\030\001 \001(\t\"y\n\034ImportProduc" - + "tSetsInputConfig\022O\n\ngcs_source\030\001 \001(\01329.g" - + "oogle.cloud.vision.v1p4beta1.ImportProdu" - + "ctSetsGcsSourceH\000B\010\n\006source\"}\n\030ImportPro" - + "ductSetsRequest\022\016\n\006parent\030\001 \001(\t\022Q\n\014input" - + "_config\030\002 \001(\0132;.google.cloud.vision.v1p4" - + "beta1.ImportProductSetsInputConfig\"\212\001\n\031I" - + "mportProductSetsResponse\022G\n\020reference_im" - + "ages\030\001 \003(\0132-.google.cloud.vision.v1p4bet" - + "a1.ReferenceImage\022$\n\010statuses\030\002 \003(\0132\022.go" - + "ogle.rpc.Status\"\236\002\n\026BatchOperationMetada" - + "ta\022J\n\005state\030\001 \001(\0162;.google.cloud.vision." - + "v1p4beta1.BatchOperationMetadata.State\022/" - + "\n\013submit_time\030\002 \001(\0132\032.google.protobuf.Ti" - + "mestamp\022,\n\010end_time\030\003 \001(\0132\032.google.proto" - + "buf.Timestamp\"Y\n\005State\022\025\n\021STATE_UNSPECIF" - + "IED\020\000\022\016\n\nPROCESSING\020\001\022\016\n\nSUCCESSFUL\020\002\022\n\n" - + "\006FAILED\020\003\022\r\n\tCANCELLED\020\0042\237\033\n\rProductSear" - + "ch\022\302\001\n\020CreateProductSet\0226.google.cloud.v" + + "o\032\027google/api/client.proto\032\037google/api/f" + + "ield_behavior.proto\032\031google/api/resource" + + ".proto\032,google/cloud/vision/v1p4beta1/ge" + + "ometry.proto\032#google/longrunning/operati" + + "ons.proto\032\033google/protobuf/empty.proto\032 " + + "google/protobuf/field_mask.proto\032\037google" + + "/protobuf/timestamp.proto\032\027google/rpc/st" + + "atus.proto\"\262\002\n\007Product\022\014\n\004name\030\001 \001(\t\022\024\n\014" + + "display_name\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022" + + "\035\n\020product_category\030\004 \001(\tB\003\340A\005\022G\n\016produc" + + "t_labels\030\005 \003(\0132/.google.cloud.vision.v1p" + + "4beta1.Product.KeyValue\032&\n\010KeyValue\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:^\352A[\n\035vision.goo" + + "gleapis.com/Product\022:projects/{project}/" + + "locations/{location}/products/{product}\"" + + "\375\001\n\nProductSet\022\014\n\004name\030\001 \001(\t\022\024\n\014display_" + + "name\030\002 \001(\t\0223\n\nindex_time\030\003 \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\022,\n\013index_error\030\004" + + " \001(\0132\022.google.rpc.StatusB\003\340A\003:h\352Ae\n visi" + + "on.googleapis.com/ProductSet\022Aprojects/{" + + "project}/locations/{location}/productSet" + + "s/{product_set}\"\205\002\n\016ReferenceImage\022\014\n\004na" + + "me\030\001 \001(\t\022\020\n\003uri\030\002 \001(\tB\003\340A\002\022H\n\016bounding_p" + + "olys\030\003 \003(\0132+.google.cloud.vision.v1p4bet" + + "a1.BoundingPolyB\003\340A\001:\210\001\352A\204\001\n$vision.goog" + + "leapis.com/ReferenceImage\022\\projects/{pro" + + "ject}/locations/{location}/products/{pro" + + "duct}/referenceImages/{reference_image}\"" + + "\243\001\n\024CreateProductRequest\0229\n\006parent\030\001 \001(\t" + + "B)\340A\002\372A#\n!locations.googleapis.com/Locat" + + "ion\022<\n\007product\030\002 \001(\0132&.google.cloud.visi" + + "on.v1p4beta1.ProductB\003\340A\002\022\022\n\nproduct_id\030" + + "\003 \001(\t\"w\n\023ListProductsRequest\0229\n\006parent\030\001" + + " \001(\tB)\340A\002\372A#\n!locations.googleapis.com/L" + + "ocation\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" + + "\030\003 \001(\t\"i\n\024ListProductsResponse\0228\n\010produc" + + "ts\030\001 \003(\0132&.google.cloud.vision.v1p4beta1" + + ".Product\022\027\n\017next_page_token\030\002 \001(\t\"H\n\021Get" + + "ProductRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035vi" + + "sion.googleapis.com/Product\"\205\001\n\024UpdatePr" + + "oductRequest\022<\n\007product\030\001 \001(\0132&.google.c" + + "loud.vision.v1p4beta1.ProductB\003\340A\002\022/\n\013up" + + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" + + "ask\"K\n\024DeleteProductRequest\0223\n\004name\030\001 \001(" + + "\tB%\340A\002\372A\037\n\035vision.googleapis.com/Product" + + "\"\261\001\n\027CreateProductSetRequest\0229\n\006parent\030\001" + + " \001(\tB)\340A\002\372A#\n!locations.googleapis.com/L" + + "ocation\022C\n\013product_set\030\002 \001(\0132).google.cl" + + "oud.vision.v1p4beta1.ProductSetB\003\340A\002\022\026\n\016" + + "product_set_id\030\003 \001(\t\"z\n\026ListProductSetsR" + + "equest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!location" + + "s.googleapis.com/Location\022\021\n\tpage_size\030\002" + + " \001(\005\022\022\n\npage_token\030\003 \001(\t\"s\n\027ListProductS" + + "etsResponse\022?\n\014product_sets\030\001 \003(\0132).goog" + + "le.cloud.vision.v1p4beta1.ProductSet\022\027\n\017" + + "next_page_token\030\002 \001(\t\"N\n\024GetProductSetRe" + + "quest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n vision.goog" + + "leapis.com/ProductSet\"\217\001\n\027UpdateProductS" + + "etRequest\022C\n\013product_set\030\001 \001(\0132).google." + + "cloud.vision.v1p4beta1.ProductSetB\003\340A\002\022/" + + "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" + + "eldMask\"Q\n\027DeleteProductSetRequest\0226\n\004na" + + "me\030\001 \001(\tB(\340A\002\372A\"\n vision.googleapis.com/" + + "ProductSet\"\275\001\n\033CreateReferenceImageReque" + + "st\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\n\035vision.googl" + + "eapis.com/Product\022K\n\017reference_image\030\002 \001" + + "(\0132-.google.cloud.vision.v1p4beta1.Refer" + + "enceImageB\003\340A\002\022\032\n\022reference_image_id\030\003 \001" + + "(\t\"z\n\032ListReferenceImagesRequest\0225\n\006pare" + + "nt\030\001 \001(\tB%\340A\002\372A\037\n\035vision.googleapis.com/" + + "Product\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" + + "\030\003 \001(\t\"\222\001\n\033ListReferenceImagesResponse\022G" + + "\n\020reference_images\030\001 \003(\0132-.google.cloud." + + "vision.v1p4beta1.ReferenceImage\022\021\n\tpage_" + + "size\030\002 \001(\005\022\027\n\017next_page_token\030\003 \001(\t\"V\n\030G" + + "etReferenceImageRequest\022:\n\004name\030\001 \001(\tB,\340" + + "A\002\372A&\n$vision.googleapis.com/ReferenceIm" + + "age\"Y\n\033DeleteReferenceImageRequest\022:\n\004na" + + "me\030\001 \001(\tB,\340A\002\372A&\n$vision.googleapis.com/" + + "ReferenceImage\"\217\001\n\035AddProductToProductSe" + + "tRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n vision.g" + + "oogleapis.com/ProductSet\0226\n\007product\030\002 \001(" + + "\tB%\340A\002\372A\037\n\035vision.googleapis.com/Product" + + "\"\224\001\n\"RemoveProductFromProductSetRequest\022" + + "6\n\004name\030\001 \001(\tB(\340A\002\372A\"\n vision.googleapis" + + ".com/ProductSet\0226\n\007product\030\002 \001(\tB%\340A\002\372A\037" + + "\n\035vision.googleapis.com/Product\"\200\001\n\037List" + + "ProductsInProductSetRequest\0226\n\004name\030\001 \001(" + + "\tB(\340A\002\372A\"\n vision.googleapis.com/Product" + + "Set\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001" + + "(\t\"u\n ListProductsInProductSetResponse\0228" + + "\n\010products\030\001 \003(\0132&.google.cloud.vision.v" + + "1p4beta1.Product\022\027\n\017next_page_token\030\002 \001(" + + "\t\"2\n\032ImportProductSetsGcsSource\022\024\n\014csv_f" + + "ile_uri\030\001 \001(\t\"y\n\034ImportProductSetsInputC" + + "onfig\022O\n\ngcs_source\030\001 \001(\01329.google.cloud" + + ".vision.v1p4beta1.ImportProductSetsGcsSo" + + "urceH\000B\010\n\006source\"\255\001\n\030ImportProductSetsRe" + + "quest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations" + + ".googleapis.com/Location\022V\n\014input_config" + + "\030\002 \001(\0132;.google.cloud.vision.v1p4beta1.I" + + "mportProductSetsInputConfigB\003\340A\002\"\212\001\n\031Imp" + + "ortProductSetsResponse\022G\n\020reference_imag" + + "es\030\001 \003(\0132-.google.cloud.vision.v1p4beta1" + + ".ReferenceImage\022$\n\010statuses\030\002 \003(\0132\022.goog" + + "le.rpc.Status\"\236\002\n\026BatchOperationMetadata" + + "\022J\n\005state\030\001 \001(\0162;.google.cloud.vision.v1" + + "p4beta1.BatchOperationMetadata.State\022/\n\013" + + "submit_time\030\002 \001(\0132\032.google.protobuf.Time" + + "stamp\022,\n\010end_time\030\003 \001(\0132\032.google.protobu" + + "f.Timestamp\"Y\n\005State\022\025\n\021STATE_UNSPECIFIE" + + "D\020\000\022\016\n\nPROCESSING\020\001\022\016\n\nSUCCESSFUL\020\002\022\n\n\006F" + + "AILED\020\003\022\r\n\tCANCELLED\020\004\"/\n\025ProductSetPurg" + + "eConfig\022\026\n\016product_set_id\030\001 \001(\t\"\346\001\n\024Purg" + + "eProductsRequest\022X\n\030product_set_purge_co" + + "nfig\030\002 \001(\01324.google.cloud.vision.v1p4bet" + + "a1.ProductSetPurgeConfigH\000\022 \n\026delete_orp" + + "han_products\030\003 \001(\010H\000\0229\n\006parent\030\001 \001(\tB)\340A" + + "\002\372A#\n!locations.googleapis.com/Location\022" + + "\r\n\005force\030\004 \001(\010B\010\n\006target2\322 \n\rProductSear" + + "ch\022\346\001\n\020CreateProductSet\0226.google.cloud.v" + "ision.v1p4beta1.CreateProductSetRequest\032" + ").google.cloud.vision.v1p4beta1.ProductS" - + "et\"K\202\323\344\223\002E\"6/v1p4beta1/{parent=projects/" - + "*/locations/*}/productSets:\013product_set\022" - + "\300\001\n\017ListProductSets\0225.google.cloud.visio" - + "n.v1p4beta1.ListProductSetsRequest\0326.goo" - + "gle.cloud.vision.v1p4beta1.ListProductSe" - + "tsResponse\">\202\323\344\223\0028\0226/v1p4beta1/{parent=p" - + "rojects/*/locations/*}/productSets\022\257\001\n\rG" - + "etProductSet\0223.google.cloud.vision.v1p4b" - + "eta1.GetProductSetRequest\032).google.cloud" - + ".vision.v1p4beta1.ProductSet\">\202\323\344\223\0028\0226/v" - + "1p4beta1/{name=projects/*/locations/*/pr" - + "oductSets/*}\022\316\001\n\020UpdateProductSet\0226.goog" - + "le.cloud.vision.v1p4beta1.UpdateProductS" - + "etRequest\032).google.cloud.vision.v1p4beta" - + "1.ProductSet\"W\202\323\344\223\002Q2B/v1p4beta1/{produc" - + "t_set.name=projects/*/locations/*/produc" - + "tSets/*}:\013product_set\022\242\001\n\020DeleteProductS" - + "et\0226.google.cloud.vision.v1p4beta1.Delet" - + "eProductSetRequest\032\026.google.protobuf.Emp" - + "ty\">\202\323\344\223\0028*6/v1p4beta1/{name=projects/*/" - + "locations/*/productSets/*}\022\262\001\n\rCreatePro" - + "duct\0223.google.cloud.vision.v1p4beta1.Cre" - + "ateProductRequest\032&.google.cloud.vision." - + "v1p4beta1.Product\"D\202\323\344\223\002>\"3/v1p4beta1/{p" - + "arent=projects/*/locations/*}/products:\007" - + "product\022\264\001\n\014ListProducts\0222.google.cloud." - + "vision.v1p4beta1.ListProductsRequest\0323.g" - + "oogle.cloud.vision.v1p4beta1.ListProduct" - + "sResponse\";\202\323\344\223\0025\0223/v1p4beta1/{parent=pr" - + "ojects/*/locations/*}/products\022\243\001\n\nGetPr" - + "oduct\0220.google.cloud.vision.v1p4beta1.Ge" - + "tProductRequest\032&.google.cloud.vision.v1" - + "p4beta1.Product\";\202\323\344\223\0025\0223/v1p4beta1/{nam" - + "e=projects/*/locations/*/products/*}\022\272\001\n" - + "\rUpdateProduct\0223.google.cloud.vision.v1p" - + "4beta1.UpdateProductRequest\032&.google.clo" - + "ud.vision.v1p4beta1.Product\"L\202\323\344\223\002F2;/v1" - + "p4beta1/{product.name=projects/*/locatio" - + "ns/*/products/*}:\007product\022\231\001\n\rDeleteProd" - + "uct\0223.google.cloud.vision.v1p4beta1.Dele" - + "teProductRequest\032\026.google.protobuf.Empty" - + "\";\202\323\344\223\0025*3/v1p4beta1/{name=projects/*/lo" - + "cations/*/products/*}\022\341\001\n\024CreateReferenc" - + "eImage\022:.google.cloud.vision.v1p4beta1.C" - + "reateReferenceImageRequest\032-.google.clou" - + "d.vision.v1p4beta1.ReferenceImage\"^\202\323\344\223\002" - + "X\"E/v1p4beta1/{parent=projects/*/locatio" - + "ns/*/products/*}/referenceImages:\017refere" - + "nce_image\022\271\001\n\024DeleteReferenceImage\022:.goo" - + "gle.cloud.vision.v1p4beta1.DeleteReferen" - + "ceImageRequest\032\026.google.protobuf.Empty\"M" - + "\202\323\344\223\002G*E/v1p4beta1/{name=projects/*/loca" - + "tions/*/products/*/referenceImages/*}\022\333\001" - + "\n\023ListReferenceImages\0229.google.cloud.vis" - + "ion.v1p4beta1.ListReferenceImagesRequest" - + "\032:.google.cloud.vision.v1p4beta1.ListRef" - + "erenceImagesResponse\"M\202\323\344\223\002G\022E/v1p4beta1" - + "/{parent=projects/*/locations/*/products" - + "/*}/referenceImages\022\312\001\n\021GetReferenceImag" - + "e\0227.google.cloud.vision.v1p4beta1.GetRef" - + "erenceImageRequest\032-.google.cloud.vision" - + ".v1p4beta1.ReferenceImage\"M\202\323\344\223\002G\022E/v1p4" - + "beta1/{name=projects/*/locations/*/produ" - + "cts/*/referenceImages/*}\022\274\001\n\026AddProductT" - + "oProductSet\022<.google.cloud.vision.v1p4be" - + "ta1.AddProductToProductSetRequest\032\026.goog" - + "le.protobuf.Empty\"L\202\323\344\223\002F\"A/v1p4beta1/{n" - + "ame=projects/*/locations/*/productSets/*" - + "}:addProduct:\001*\022\311\001\n\033RemoveProductFromPro" - + "ductSet\022A.google.cloud.vision.v1p4beta1." - + "RemoveProductFromProductSetRequest\032\026.goo" - + "gle.protobuf.Empty\"O\202\323\344\223\002I\"D/v1p4beta1/{" - + "name=projects/*/locations/*/productSets/" - + "*}:removeProduct:\001*\022\344\001\n\030ListProductsInPr" - + "oductSet\022>.google.cloud.vision.v1p4beta1" - + ".ListProductsInProductSetRequest\032?.googl" - + "e.cloud.vision.v1p4beta1.ListProductsInP" - + "roductSetResponse\"G\202\323\344\223\002A\022?/v1p4beta1/{n" - + "ame=projects/*/locations/*/productSets/*" - + "}/products\022\265\001\n\021ImportProductSets\0227.googl" - + "e.cloud.vision.v1p4beta1.ImportProductSe" - + "tsRequest\032\035.google.longrunning.Operation" - + "\"H\202\323\344\223\002B\"=/v1p4beta1/{parent=projects/*/" - + "locations/*}/productSets:import:\001*B\217\001\n!c" - + "om.google.cloud.vision.v1p4beta1B\031Produc" - + "tSearchServiceProtoP\001ZCgoogle.golang.org" - + "/genproto/googleapis/cloud/vision/v1p4be" - + "ta1;vision\370\001\001\242\002\004GCVNb\006proto3" + + "et\"o\202\323\344\223\002E\"6/v1p4beta1/{parent=projects/" + + "*/locations/*}/productSets:\013product_set\332" + + "A!parent,product_set,product_set_id\022\311\001\n\017" + + "ListProductSets\0225.google.cloud.vision.v1" + + "p4beta1.ListProductSetsRequest\0326.google." + + "cloud.vision.v1p4beta1.ListProductSetsRe" + + "sponse\"G\202\323\344\223\0028\0226/v1p4beta1/{parent=proje" + + "cts/*/locations/*}/productSets\332A\006parent\022" + + "\266\001\n\rGetProductSet\0223.google.cloud.vision." + + "v1p4beta1.GetProductSetRequest\032).google." + + "cloud.vision.v1p4beta1.ProductSet\"E\202\323\344\223\002" + + "8\0226/v1p4beta1/{name=projects/*/locations" + + "/*/productSets/*}\332A\004name\022\350\001\n\020UpdateProdu" + + "ctSet\0226.google.cloud.vision.v1p4beta1.Up" + + "dateProductSetRequest\032).google.cloud.vis" + + "ion.v1p4beta1.ProductSet\"q\202\323\344\223\002Q2B/v1p4b" + + "eta1/{product_set.name=projects/*/locati" + + "ons/*/productSets/*}:\013product_set\332A\027prod" + + "uct_set,update_mask\022\251\001\n\020DeleteProductSet" + + "\0226.google.cloud.vision.v1p4beta1.DeleteP" + + "roductSetRequest\032\026.google.protobuf.Empty" + + "\"E\202\323\344\223\0028*6/v1p4beta1/{name=projects/*/lo" + + "cations/*/productSets/*}\332A\004name\022\316\001\n\rCrea" + + "teProduct\0223.google.cloud.vision.v1p4beta" + + "1.CreateProductRequest\032&.google.cloud.vi" + + "sion.v1p4beta1.Product\"`\202\323\344\223\002>\"3/v1p4bet" + + "a1/{parent=projects/*/locations/*}/produ" + + "cts:\007product\332A\031parent,product,product_id" + + "\022\275\001\n\014ListProducts\0222.google.cloud.vision." + + "v1p4beta1.ListProductsRequest\0323.google.c" + + "loud.vision.v1p4beta1.ListProductsRespon" + + "se\"D\202\323\344\223\0025\0223/v1p4beta1/{parent=projects/" + + "*/locations/*}/products\332A\006parent\022\252\001\n\nGet" + + "Product\0220.google.cloud.vision.v1p4beta1." + + "GetProductRequest\032&.google.cloud.vision." + + "v1p4beta1.Product\"B\202\323\344\223\0025\0223/v1p4beta1/{n" + + "ame=projects/*/locations/*/products/*}\332A" + + "\004name\022\320\001\n\rUpdateProduct\0223.google.cloud.v" + + "ision.v1p4beta1.UpdateProductRequest\032&.g" + + "oogle.cloud.vision.v1p4beta1.Product\"b\202\323" + + "\344\223\002F2;/v1p4beta1/{product.name=projects/" + + "*/locations/*/products/*}:\007product\332A\023pro" + + "duct,update_mask\022\240\001\n\rDeleteProduct\0223.goo" + + "gle.cloud.vision.v1p4beta1.DeleteProduct" + + "Request\032\026.google.protobuf.Empty\"B\202\323\344\223\0025*" + + "3/v1p4beta1/{name=projects/*/locations/*" + + "/products/*}\332A\004name\022\216\002\n\024CreateReferenceI" + + "mage\022:.google.cloud.vision.v1p4beta1.Cre" + + "ateReferenceImageRequest\032-.google.cloud." + + "vision.v1p4beta1.ReferenceImage\"\212\001\202\323\344\223\002X" + + "\"E/v1p4beta1/{parent=projects/*/location" + + "s/*/products/*}/referenceImages:\017referen" + + "ce_image\332A)parent,reference_image,refere" + + "nce_image_id\022\300\001\n\024DeleteReferenceImage\022:." + + "google.cloud.vision.v1p4beta1.DeleteRefe" + + "renceImageRequest\032\026.google.protobuf.Empt" + + "y\"T\202\323\344\223\002G*E/v1p4beta1/{name=projects/*/l" + + "ocations/*/products/*/referenceImages/*}" + + "\332A\004name\022\344\001\n\023ListReferenceImages\0229.google" + + ".cloud.vision.v1p4beta1.ListReferenceIma" + + "gesRequest\032:.google.cloud.vision.v1p4bet" + + "a1.ListReferenceImagesResponse\"V\202\323\344\223\002G\022E" + + "/v1p4beta1/{parent=projects/*/locations/" + + "*/products/*}/referenceImages\332A\006parent\022\321" + + "\001\n\021GetReferenceImage\0227.google.cloud.visi" + + "on.v1p4beta1.GetReferenceImageRequest\032-." + + "google.cloud.vision.v1p4beta1.ReferenceI" + + "mage\"T\202\323\344\223\002G\022E/v1p4beta1/{name=projects/" + + "*/locations/*/products/*/referenceImages" + + "/*}\332A\004name\022\313\001\n\026AddProductToProductSet\022<." + + "google.cloud.vision.v1p4beta1.AddProduct" + + "ToProductSetRequest\032\026.google.protobuf.Em" + + "pty\"[\202\323\344\223\002F\"A/v1p4beta1/{name=projects/*" + + "/locations/*/productSets/*}:addProduct:\001" + + "*\332A\014name,product\022\330\001\n\033RemoveProductFromPr" + + "oductSet\022A.google.cloud.vision.v1p4beta1" + + ".RemoveProductFromProductSetRequest\032\026.go" + + "ogle.protobuf.Empty\"^\202\323\344\223\002I\"D/v1p4beta1/" + + "{name=projects/*/locations/*/productSets" + + "/*}:removeProduct:\001*\332A\014name,product\022\353\001\n\030" + + "ListProductsInProductSet\022>.google.cloud." + + "vision.v1p4beta1.ListProductsInProductSe" + + "tRequest\032?.google.cloud.vision.v1p4beta1" + + ".ListProductsInProductSetResponse\"N\202\323\344\223\002" + + "A\022?/v1p4beta1/{name=projects/*/locations" + + "/*/productSets/*}/products\332A\004name\022\202\002\n\021Im" + + "portProductSets\0227.google.cloud.vision.v1" + + "p4beta1.ImportProductSetsRequest\032\035.googl" + + "e.longrunning.Operation\"\224\001\202\323\344\223\002B\"=/v1p4b" + + "eta1/{parent=projects/*/locations/*}/pro" + + "ductSets:import:\001*\332A\023parent,input_config" + + "\312A3\n\031ImportProductSetsResponse\022\026BatchOpe" + + "rationMetadata\022\344\001\n\rPurgeProducts\0223.googl" + + "e.cloud.vision.v1p4beta1.PurgeProductsRe" + + "quest\032\035.google.longrunning.Operation\"\177\202\323" + + "\344\223\002>\"9/v1p4beta1/{parent=projects/*/loca" + + "tions/*}/products:purge:\001*\332A\006parent\312A/\n\025" + + "google.protobuf.Empty\022\026BatchOperationMet" + + "adata\032v\312A\025vision.googleapis.com\322A[https:" + + "//www.googleapis.com/auth/cloud-platform" + + ",https://www.googleapis.com/auth/cloud-v" + + "isionB\217\001\n!com.google.cloud.vision.v1p4be" + + "ta1B\031ProductSearchServiceProtoP\001ZCgoogle" + + ".golang.org/genproto/googleapis/cloud/vi" + + "sion/v1p4beta1;vision\370\001\001\242\002\004GCVNb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -345,6 +408,9 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), @@ -593,12 +659,38 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "State", "SubmitTime", "EndTime", }); + internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_descriptor, + new java.lang.String[] { + "ProductSetId", + }); + internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_descriptor, + new java.lang.String[] { + "ProductSetPurgeConfig", "DeleteOrphanProducts", "Parent", "Force", "Target", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); com.google.cloud.vision.v1p4beta1.GeometryProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSet.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSet.java index 8464ccb69..f9d381450 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSet.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSet.java @@ -252,7 +252,8 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * This field is ignored when creating a ProductSet. * * - * .google.protobuf.Timestamp index_time = 3; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public boolean hasIndexTime() { return indexTime_ != null; @@ -268,7 +269,8 @@ public boolean hasIndexTime() { * This field is ignored when creating a ProductSet. * * - * .google.protobuf.Timestamp index_time = 3; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp getIndexTime() { return indexTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : indexTime_; @@ -284,7 +286,8 @@ public com.google.protobuf.Timestamp getIndexTime() { * This field is ignored when creating a ProductSet. * * - * .google.protobuf.Timestamp index_time = 3; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { return getIndexTime(); @@ -301,7 +304,7 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { * This field is ignored when creating a ProductSet. * * - * .google.rpc.Status index_error = 4; + * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public boolean hasIndexError() { return indexError_ != null; @@ -315,7 +318,7 @@ public boolean hasIndexError() { * This field is ignored when creating a ProductSet. * * - * .google.rpc.Status index_error = 4; + * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status getIndexError() { return indexError_ == null ? com.google.rpc.Status.getDefaultInstance() : indexError_; @@ -329,7 +332,7 @@ public com.google.rpc.Status getIndexError() { * This field is ignored when creating a ProductSet. * * - * .google.rpc.Status index_error = 4; + * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.StatusOrBuilder getIndexErrorOrBuilder() { return getIndexError(); @@ -950,7 +953,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * This field is ignored when creating a ProductSet. * * - * .google.protobuf.Timestamp index_time = 3; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public boolean hasIndexTime() { return indexTimeBuilder_ != null || indexTime_ != null; @@ -966,7 +970,8 @@ public boolean hasIndexTime() { * This field is ignored when creating a ProductSet. * * - * .google.protobuf.Timestamp index_time = 3; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp getIndexTime() { if (indexTimeBuilder_ == null) { @@ -986,7 +991,8 @@ public com.google.protobuf.Timestamp getIndexTime() { * This field is ignored when creating a ProductSet. * * - * .google.protobuf.Timestamp index_time = 3; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setIndexTime(com.google.protobuf.Timestamp value) { if (indexTimeBuilder_ == null) { @@ -1012,7 +1018,8 @@ public Builder setIndexTime(com.google.protobuf.Timestamp value) { * This field is ignored when creating a ProductSet. * * - * .google.protobuf.Timestamp index_time = 3; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setIndexTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (indexTimeBuilder_ == null) { @@ -1035,7 +1042,8 @@ public Builder setIndexTime(com.google.protobuf.Timestamp.Builder builderForValu * This field is ignored when creating a ProductSet. * * - * .google.protobuf.Timestamp index_time = 3; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeIndexTime(com.google.protobuf.Timestamp value) { if (indexTimeBuilder_ == null) { @@ -1063,7 +1071,8 @@ public Builder mergeIndexTime(com.google.protobuf.Timestamp value) { * This field is ignored when creating a ProductSet. * * - * .google.protobuf.Timestamp index_time = 3; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearIndexTime() { if (indexTimeBuilder_ == null) { @@ -1087,7 +1096,8 @@ public Builder clearIndexTime() { * This field is ignored when creating a ProductSet. * * - * .google.protobuf.Timestamp index_time = 3; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getIndexTimeBuilder() { @@ -1105,7 +1115,8 @@ public com.google.protobuf.Timestamp.Builder getIndexTimeBuilder() { * This field is ignored when creating a ProductSet. * * - * .google.protobuf.Timestamp index_time = 3; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { if (indexTimeBuilder_ != null) { @@ -1125,7 +1136,8 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { * This field is ignored when creating a ProductSet. * * - * .google.protobuf.Timestamp index_time = 3; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, @@ -1157,7 +1169,7 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { * This field is ignored when creating a ProductSet. * * - * .google.rpc.Status index_error = 4; + * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public boolean hasIndexError() { return indexErrorBuilder_ != null || indexError_ != null; @@ -1171,7 +1183,7 @@ public boolean hasIndexError() { * This field is ignored when creating a ProductSet. * * - * .google.rpc.Status index_error = 4; + * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status getIndexError() { if (indexErrorBuilder_ == null) { @@ -1189,7 +1201,7 @@ public com.google.rpc.Status getIndexError() { * This field is ignored when creating a ProductSet. * * - * .google.rpc.Status index_error = 4; + * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setIndexError(com.google.rpc.Status value) { if (indexErrorBuilder_ == null) { @@ -1213,7 +1225,7 @@ public Builder setIndexError(com.google.rpc.Status value) { * This field is ignored when creating a ProductSet. * * - * .google.rpc.Status index_error = 4; + * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setIndexError(com.google.rpc.Status.Builder builderForValue) { if (indexErrorBuilder_ == null) { @@ -1234,7 +1246,7 @@ public Builder setIndexError(com.google.rpc.Status.Builder builderForValue) { * This field is ignored when creating a ProductSet. * * - * .google.rpc.Status index_error = 4; + * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeIndexError(com.google.rpc.Status value) { if (indexErrorBuilder_ == null) { @@ -1260,7 +1272,7 @@ public Builder mergeIndexError(com.google.rpc.Status value) { * This field is ignored when creating a ProductSet. * * - * .google.rpc.Status index_error = 4; + * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearIndexError() { if (indexErrorBuilder_ == null) { @@ -1282,7 +1294,7 @@ public Builder clearIndexError() { * This field is ignored when creating a ProductSet. * * - * .google.rpc.Status index_error = 4; + * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status.Builder getIndexErrorBuilder() { @@ -1298,7 +1310,7 @@ public com.google.rpc.Status.Builder getIndexErrorBuilder() { * This field is ignored when creating a ProductSet. * * - * .google.rpc.Status index_error = 4; + * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.StatusOrBuilder getIndexErrorOrBuilder() { if (indexErrorBuilder_ != null) { @@ -1316,7 +1328,7 @@ public com.google.rpc.StatusOrBuilder getIndexErrorOrBuilder() { * This field is ignored when creating a ProductSet. * * - * .google.rpc.Status index_error = 4; + * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetOrBuilder.java index 8b10fcb0d..3ae8aa2a7 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetOrBuilder.java @@ -84,7 +84,8 @@ public interface ProductSetOrBuilder * This field is ignored when creating a ProductSet. * * - * .google.protobuf.Timestamp index_time = 3; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ boolean hasIndexTime(); /** @@ -98,7 +99,8 @@ public interface ProductSetOrBuilder * This field is ignored when creating a ProductSet. * * - * .google.protobuf.Timestamp index_time = 3; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.Timestamp getIndexTime(); /** @@ -112,7 +114,8 @@ public interface ProductSetOrBuilder * This field is ignored when creating a ProductSet. * * - * .google.protobuf.Timestamp index_time = 3; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder(); @@ -125,7 +128,7 @@ public interface ProductSetOrBuilder * This field is ignored when creating a ProductSet. * * - * .google.rpc.Status index_error = 4; + * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ boolean hasIndexError(); /** @@ -137,7 +140,7 @@ public interface ProductSetOrBuilder * This field is ignored when creating a ProductSet. * * - * .google.rpc.Status index_error = 4; + * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.rpc.Status getIndexError(); /** @@ -149,7 +152,7 @@ public interface ProductSetOrBuilder * This field is ignored when creating a ProductSet. * * - * .google.rpc.Status index_error = 4; + * .google.rpc.Status index_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.rpc.StatusOrBuilder getIndexErrorOrBuilder(); } diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetPurgeConfig.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetPurgeConfig.java new file mode 100644 index 000000000..80749e192 --- /dev/null +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetPurgeConfig.java @@ -0,0 +1,628 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/product_search_service.proto + +package com.google.cloud.vision.v1p4beta1; + +/** + * + * + *
+ * Config to control which ProductSet contains the Products to be deleted.
+ * 
+ * + * Protobuf type {@code google.cloud.vision.v1p4beta1.ProductSetPurgeConfig} + */ +public final class ProductSetPurgeConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) + ProductSetPurgeConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProductSetPurgeConfig.newBuilder() to construct. + private ProductSetPurgeConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ProductSetPurgeConfig() { + productSetId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ProductSetPurgeConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + productSetId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.class, + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.Builder.class); + } + + public static final int PRODUCT_SET_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object productSetId_; + /** + * + * + *
+   * The ProductSet that contains the Products to delete. If a Product is a
+   * member of product_set_id in addition to other ProductSets, the Product will
+   * still be deleted.
+   * 
+ * + * string product_set_id = 1; + */ + public java.lang.String getProductSetId() { + java.lang.Object ref = productSetId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + productSetId_ = s; + return s; + } + } + /** + * + * + *
+   * The ProductSet that contains the Products to delete. If a Product is a
+   * member of product_set_id in addition to other ProductSets, the Product will
+   * still be deleted.
+   * 
+ * + * string product_set_id = 1; + */ + public com.google.protobuf.ByteString getProductSetIdBytes() { + java.lang.Object ref = productSetId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + productSetId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getProductSetIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, productSetId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProductSetIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, productSetId_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig)) { + return super.equals(obj); + } + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig other = + (com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) obj; + + if (!getProductSetId().equals(other.getProductSetId())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PRODUCT_SET_ID_FIELD_NUMBER; + hash = (53 * hash) + getProductSetId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Config to control which ProductSet contains the Products to be deleted.
+   * 
+ * + * Protobuf type {@code google.cloud.vision.v1p4beta1.ProductSetPurgeConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.class, + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.Builder.class); + } + + // Construct using com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + productSetId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_ProductSetPurgeConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig getDefaultInstanceForType() { + return com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig build() { + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig buildPartial() { + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig result = + new com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig(this); + result.productSetId_ = productSetId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) { + return mergeFrom((com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig other) { + if (other == com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.getDefaultInstance()) + return this; + if (!other.getProductSetId().isEmpty()) { + productSetId_ = other.productSetId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object productSetId_ = ""; + /** + * + * + *
+     * The ProductSet that contains the Products to delete. If a Product is a
+     * member of product_set_id in addition to other ProductSets, the Product will
+     * still be deleted.
+     * 
+ * + * string product_set_id = 1; + */ + public java.lang.String getProductSetId() { + java.lang.Object ref = productSetId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + productSetId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The ProductSet that contains the Products to delete. If a Product is a
+     * member of product_set_id in addition to other ProductSets, the Product will
+     * still be deleted.
+     * 
+ * + * string product_set_id = 1; + */ + public com.google.protobuf.ByteString getProductSetIdBytes() { + java.lang.Object ref = productSetId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + productSetId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The ProductSet that contains the Products to delete. If a Product is a
+     * member of product_set_id in addition to other ProductSets, the Product will
+     * still be deleted.
+     * 
+ * + * string product_set_id = 1; + */ + public Builder setProductSetId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + productSetId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The ProductSet that contains the Products to delete. If a Product is a
+     * member of product_set_id in addition to other ProductSets, the Product will
+     * still be deleted.
+     * 
+ * + * string product_set_id = 1; + */ + public Builder clearProductSetId() { + + productSetId_ = getDefaultInstance().getProductSetId(); + onChanged(); + return this; + } + /** + * + * + *
+     * The ProductSet that contains the Products to delete. If a Product is a
+     * member of product_set_id in addition to other ProductSets, the Product will
+     * still be deleted.
+     * 
+ * + * string product_set_id = 1; + */ + public Builder setProductSetIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + productSetId_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) + private static final com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig(); + } + + public static com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProductSetPurgeConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProductSetPurgeConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetPurgeConfigOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetPurgeConfigOrBuilder.java new file mode 100644 index 000000000..d37257f84 --- /dev/null +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetPurgeConfigOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/product_search_service.proto + +package com.google.cloud.vision.v1p4beta1; + +public interface ProductSetPurgeConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The ProductSet that contains the Products to delete. If a Product is a
+   * member of product_set_id in addition to other ProductSets, the Product will
+   * still be deleted.
+   * 
+ * + * string product_set_id = 1; + */ + java.lang.String getProductSetId(); + /** + * + * + *
+   * The ProductSet that contains the Products to delete. If a Product is a
+   * member of product_set_id in addition to other ProductSets, the Product will
+   * still be deleted.
+   * 
+ * + * string product_set_id = 1; + */ + com.google.protobuf.ByteString getProductSetIdBytes(); +} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PurgeProductsRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PurgeProductsRequest.java new file mode 100644 index 000000000..2b6876ee7 --- /dev/null +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PurgeProductsRequest.java @@ -0,0 +1,1195 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/product_search_service.proto + +package com.google.cloud.vision.v1p4beta1; + +/** + * + * + *
+ * Request message for the `PurgeProducts` method.
+ * 
+ * + * Protobuf type {@code google.cloud.vision.v1p4beta1.PurgeProductsRequest} + */ +public final class PurgeProductsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.PurgeProductsRequest) + PurgeProductsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use PurgeProductsRequest.newBuilder() to construct. + private PurgeProductsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PurgeProductsRequest() { + parent_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PurgeProductsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.Builder subBuilder = null; + if (targetCase_ == 2) { + subBuilder = + ((com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) target_).toBuilder(); + } + target_ = + input.readMessage( + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 2; + break; + } + case 24: + { + targetCase_ = 3; + target_ = input.readBool(); + break; + } + case 32: + { + force_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vision.v1p4beta1.PurgeProductsRequest.class, + com.google.cloud.vision.v1p4beta1.PurgeProductsRequest.Builder.class); + } + + private int targetCase_ = 0; + private java.lang.Object target_; + + public enum TargetCase implements com.google.protobuf.Internal.EnumLite { + PRODUCT_SET_PURGE_CONFIG(2), + DELETE_ORPHAN_PRODUCTS(3), + TARGET_NOT_SET(0); + private final int value; + + private TargetCase(int value) { + this.value = value; + } + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static TargetCase valueOf(int value) { + return forNumber(value); + } + + public static TargetCase forNumber(int value) { + switch (value) { + case 2: + return PRODUCT_SET_PURGE_CONFIG; + case 3: + return DELETE_ORPHAN_PRODUCTS; + case 0: + return TARGET_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TargetCase getTargetCase() { + return TargetCase.forNumber(targetCase_); + } + + public static final int PRODUCT_SET_PURGE_CONFIG_FIELD_NUMBER = 2; + /** + * + * + *
+   * Specify which ProductSet contains the Products to be deleted.
+   * 
+ * + * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; + */ + public boolean hasProductSetPurgeConfig() { + return targetCase_ == 2; + } + /** + * + * + *
+   * Specify which ProductSet contains the Products to be deleted.
+   * 
+ * + * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; + */ + public com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig getProductSetPurgeConfig() { + if (targetCase_ == 2) { + return (com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) target_; + } + return com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.getDefaultInstance(); + } + /** + * + * + *
+   * Specify which ProductSet contains the Products to be deleted.
+   * 
+ * + * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; + */ + public com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfigOrBuilder + getProductSetPurgeConfigOrBuilder() { + if (targetCase_ == 2) { + return (com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) target_; + } + return com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.getDefaultInstance(); + } + + public static final int DELETE_ORPHAN_PRODUCTS_FIELD_NUMBER = 3; + /** + * + * + *
+   * If delete_orphan_products is true, all Products that are not in any
+   * ProductSet will be deleted.
+   * 
+ * + * bool delete_orphan_products = 3; + */ + public boolean getDeleteOrphanProducts() { + if (targetCase_ == 3) { + return (java.lang.Boolean) target_; + } + return false; + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The project and location in which the Products should be deleted.
+   * Format is `projects/PROJECT_ID/locations/LOC_ID`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The project and location in which the Products should be deleted.
+   * Format is `projects/PROJECT_ID/locations/LOC_ID`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FORCE_FIELD_NUMBER = 4; + private boolean force_; + /** + * + * + *
+   * The default value is false. Override this value to true to actually perform
+   * the purge.
+   * 
+ * + * bool force = 4; + */ + public boolean getForce() { + return force_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (targetCase_ == 2) { + output.writeMessage(2, (com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) target_); + } + if (targetCase_ == 3) { + output.writeBool(3, (boolean) ((java.lang.Boolean) target_)); + } + if (force_ != false) { + output.writeBool(4, force_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (targetCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) target_); + } + if (targetCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 3, (boolean) ((java.lang.Boolean) target_)); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, force_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vision.v1p4beta1.PurgeProductsRequest)) { + return super.equals(obj); + } + com.google.cloud.vision.v1p4beta1.PurgeProductsRequest other = + (com.google.cloud.vision.v1p4beta1.PurgeProductsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getForce() != other.getForce()) return false; + if (!getTargetCase().equals(other.getTargetCase())) return false; + switch (targetCase_) { + case 2: + if (!getProductSetPurgeConfig().equals(other.getProductSetPurgeConfig())) return false; + break; + case 3: + if (getDeleteOrphanProducts() != other.getDeleteOrphanProducts()) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + switch (targetCase_) { + case 2: + hash = (37 * hash) + PRODUCT_SET_PURGE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getProductSetPurgeConfig().hashCode(); + break; + case 3: + hash = (37 * hash) + DELETE_ORPHAN_PRODUCTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeleteOrphanProducts()); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vision.v1p4beta1.PurgeProductsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vision.v1p4beta1.PurgeProductsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vision.v1p4beta1.PurgeProductsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vision.v1p4beta1.PurgeProductsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vision.v1p4beta1.PurgeProductsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vision.v1p4beta1.PurgeProductsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vision.v1p4beta1.PurgeProductsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vision.v1p4beta1.PurgeProductsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vision.v1p4beta1.PurgeProductsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vision.v1p4beta1.PurgeProductsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vision.v1p4beta1.PurgeProductsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vision.v1p4beta1.PurgeProductsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.PurgeProductsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for the `PurgeProducts` method.
+   * 
+ * + * Protobuf type {@code google.cloud.vision.v1p4beta1.PurgeProductsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.PurgeProductsRequest) + com.google.cloud.vision.v1p4beta1.PurgeProductsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vision.v1p4beta1.PurgeProductsRequest.class, + com.google.cloud.vision.v1p4beta1.PurgeProductsRequest.Builder.class); + } + + // Construct using com.google.cloud.vision.v1p4beta1.PurgeProductsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + force_ = false; + + targetCase_ = 0; + target_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.ProductSearchServiceProto + .internal_static_google_cloud_vision_v1p4beta1_PurgeProductsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vision.v1p4beta1.PurgeProductsRequest getDefaultInstanceForType() { + return com.google.cloud.vision.v1p4beta1.PurgeProductsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vision.v1p4beta1.PurgeProductsRequest build() { + com.google.cloud.vision.v1p4beta1.PurgeProductsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vision.v1p4beta1.PurgeProductsRequest buildPartial() { + com.google.cloud.vision.v1p4beta1.PurgeProductsRequest result = + new com.google.cloud.vision.v1p4beta1.PurgeProductsRequest(this); + if (targetCase_ == 2) { + if (productSetPurgeConfigBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = productSetPurgeConfigBuilder_.build(); + } + } + if (targetCase_ == 3) { + result.target_ = target_; + } + result.parent_ = parent_; + result.force_ = force_; + result.targetCase_ = targetCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vision.v1p4beta1.PurgeProductsRequest) { + return mergeFrom((com.google.cloud.vision.v1p4beta1.PurgeProductsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.PurgeProductsRequest other) { + if (other == com.google.cloud.vision.v1p4beta1.PurgeProductsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + switch (other.getTargetCase()) { + case PRODUCT_SET_PURGE_CONFIG: + { + mergeProductSetPurgeConfig(other.getProductSetPurgeConfig()); + break; + } + case DELETE_ORPHAN_PRODUCTS: + { + setDeleteOrphanProducts(other.getDeleteOrphanProducts()); + break; + } + case TARGET_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.vision.v1p4beta1.PurgeProductsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.vision.v1p4beta1.PurgeProductsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int targetCase_ = 0; + private java.lang.Object target_; + + public TargetCase getTargetCase() { + return TargetCase.forNumber(targetCase_); + } + + public Builder clearTarget() { + targetCase_ = 0; + target_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig, + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.Builder, + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfigOrBuilder> + productSetPurgeConfigBuilder_; + /** + * + * + *
+     * Specify which ProductSet contains the Products to be deleted.
+     * 
+ * + * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; + * + */ + public boolean hasProductSetPurgeConfig() { + return targetCase_ == 2; + } + /** + * + * + *
+     * Specify which ProductSet contains the Products to be deleted.
+     * 
+ * + * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; + * + */ + public com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig getProductSetPurgeConfig() { + if (productSetPurgeConfigBuilder_ == null) { + if (targetCase_ == 2) { + return (com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) target_; + } + return com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.getDefaultInstance(); + } else { + if (targetCase_ == 2) { + return productSetPurgeConfigBuilder_.getMessage(); + } + return com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * Specify which ProductSet contains the Products to be deleted.
+     * 
+ * + * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; + * + */ + public Builder setProductSetPurgeConfig( + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig value) { + if (productSetPurgeConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + productSetPurgeConfigBuilder_.setMessage(value); + } + targetCase_ = 2; + return this; + } + /** + * + * + *
+     * Specify which ProductSet contains the Products to be deleted.
+     * 
+ * + * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; + * + */ + public Builder setProductSetPurgeConfig( + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.Builder builderForValue) { + if (productSetPurgeConfigBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + productSetPurgeConfigBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 2; + return this; + } + /** + * + * + *
+     * Specify which ProductSet contains the Products to be deleted.
+     * 
+ * + * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; + * + */ + public Builder mergeProductSetPurgeConfig( + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig value) { + if (productSetPurgeConfigBuilder_ == null) { + if (targetCase_ == 2 + && target_ + != com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.getDefaultInstance()) { + target_ = + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.newBuilder( + (com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) target_) + .mergeFrom(value) + .buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 2) { + productSetPurgeConfigBuilder_.mergeFrom(value); + } + productSetPurgeConfigBuilder_.setMessage(value); + } + targetCase_ = 2; + return this; + } + /** + * + * + *
+     * Specify which ProductSet contains the Products to be deleted.
+     * 
+ * + * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; + * + */ + public Builder clearProductSetPurgeConfig() { + if (productSetPurgeConfigBuilder_ == null) { + if (targetCase_ == 2) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 2) { + targetCase_ = 0; + target_ = null; + } + productSetPurgeConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Specify which ProductSet contains the Products to be deleted.
+     * 
+ * + * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; + * + */ + public com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.Builder + getProductSetPurgeConfigBuilder() { + return getProductSetPurgeConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Specify which ProductSet contains the Products to be deleted.
+     * 
+ * + * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; + * + */ + public com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfigOrBuilder + getProductSetPurgeConfigOrBuilder() { + if ((targetCase_ == 2) && (productSetPurgeConfigBuilder_ != null)) { + return productSetPurgeConfigBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 2) { + return (com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) target_; + } + return com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * Specify which ProductSet contains the Products to be deleted.
+     * 
+ * + * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig, + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.Builder, + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfigOrBuilder> + getProductSetPurgeConfigFieldBuilder() { + if (productSetPurgeConfigBuilder_ == null) { + if (!(targetCase_ == 2)) { + target_ = com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.getDefaultInstance(); + } + productSetPurgeConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig, + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig.Builder, + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfigOrBuilder>( + (com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 2; + onChanged(); + ; + return productSetPurgeConfigBuilder_; + } + + /** + * + * + *
+     * If delete_orphan_products is true, all Products that are not in any
+     * ProductSet will be deleted.
+     * 
+ * + * bool delete_orphan_products = 3; + */ + public boolean getDeleteOrphanProducts() { + if (targetCase_ == 3) { + return (java.lang.Boolean) target_; + } + return false; + } + /** + * + * + *
+     * If delete_orphan_products is true, all Products that are not in any
+     * ProductSet will be deleted.
+     * 
+ * + * bool delete_orphan_products = 3; + */ + public Builder setDeleteOrphanProducts(boolean value) { + targetCase_ = 3; + target_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If delete_orphan_products is true, all Products that are not in any
+     * ProductSet will be deleted.
+     * 
+ * + * bool delete_orphan_products = 3; + */ + public Builder clearDeleteOrphanProducts() { + if (targetCase_ == 3) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The project and location in which the Products should be deleted.
+     * Format is `projects/PROJECT_ID/locations/LOC_ID`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The project and location in which the Products should be deleted.
+     * Format is `projects/PROJECT_ID/locations/LOC_ID`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The project and location in which the Products should be deleted.
+     * Format is `projects/PROJECT_ID/locations/LOC_ID`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The project and location in which the Products should be deleted.
+     * Format is `projects/PROJECT_ID/locations/LOC_ID`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The project and location in which the Products should be deleted.
+     * Format is `projects/PROJECT_ID/locations/LOC_ID`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private boolean force_; + /** + * + * + *
+     * The default value is false. Override this value to true to actually perform
+     * the purge.
+     * 
+ * + * bool force = 4; + */ + public boolean getForce() { + return force_; + } + /** + * + * + *
+     * The default value is false. Override this value to true to actually perform
+     * the purge.
+     * 
+ * + * bool force = 4; + */ + public Builder setForce(boolean value) { + + force_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The default value is false. Override this value to true to actually perform
+     * the purge.
+     * 
+ * + * bool force = 4; + */ + public Builder clearForce() { + + force_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.PurgeProductsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.PurgeProductsRequest) + private static final com.google.cloud.vision.v1p4beta1.PurgeProductsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.PurgeProductsRequest(); + } + + public static com.google.cloud.vision.v1p4beta1.PurgeProductsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurgeProductsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PurgeProductsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.vision.v1p4beta1.PurgeProductsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PurgeProductsRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PurgeProductsRequestOrBuilder.java new file mode 100644 index 000000000..e6bdf960b --- /dev/null +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/PurgeProductsRequestOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vision/v1p4beta1/product_search_service.proto + +package com.google.cloud.vision.v1p4beta1; + +public interface PurgeProductsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.PurgeProductsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Specify which ProductSet contains the Products to be deleted.
+   * 
+ * + * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; + */ + boolean hasProductSetPurgeConfig(); + /** + * + * + *
+   * Specify which ProductSet contains the Products to be deleted.
+   * 
+ * + * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; + */ + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfig getProductSetPurgeConfig(); + /** + * + * + *
+   * Specify which ProductSet contains the Products to be deleted.
+   * 
+ * + * .google.cloud.vision.v1p4beta1.ProductSetPurgeConfig product_set_purge_config = 2; + */ + com.google.cloud.vision.v1p4beta1.ProductSetPurgeConfigOrBuilder + getProductSetPurgeConfigOrBuilder(); + + /** + * + * + *
+   * If delete_orphan_products is true, all Products that are not in any
+   * ProductSet will be deleted.
+   * 
+ * + * bool delete_orphan_products = 3; + */ + boolean getDeleteOrphanProducts(); + + /** + * + * + *
+   * Required. The project and location in which the Products should be deleted.
+   * Format is `projects/PROJECT_ID/locations/LOC_ID`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The project and location in which the Products should be deleted.
+   * Format is `projects/PROJECT_ID/locations/LOC_ID`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The default value is false. Override this value to true to actually perform
+   * the purge.
+   * 
+ * + * bool force = 4; + */ + boolean getForce(); + + public com.google.cloud.vision.v1p4beta1.PurgeProductsRequest.TargetCase getTargetCase(); +} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImage.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImage.java index 35ba0c8f7..6cfd082dd 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImage.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImage.java @@ -187,12 +187,11 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * The Google Cloud Storage URI of the reference image.
+   * Required. The Google Cloud Storage URI of the reference image.
    * The URI must start with `gs://`.
-   * Required.
    * 
* - * string uri = 2; + * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; */ public java.lang.String getUri() { java.lang.Object ref = uri_; @@ -209,12 +208,11 @@ public java.lang.String getUri() { * * *
-   * The Google Cloud Storage URI of the reference image.
+   * Required. The Google Cloud Storage URI of the reference image.
    * The URI must start with `gs://`.
-   * Required.
    * 
* - * string uri = 2; + * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; @@ -234,8 +232,8 @@ public com.google.protobuf.ByteString getUriBytes() { * * *
-   * Bounding polygons around the areas of interest in the reference image.
-   * Optional. If this field is empty, the system will try to detect regions of
+   * Optional. Bounding polygons around the areas of interest in the reference
+   * image. If this field is empty, the system will try to detect regions of
    * interest. At most 10 bounding polygons will be used.
    * The provided shape is converted into a non-rotated rectangle. Once
    * converted, the small edge of the rectangle must be greater than or equal
@@ -243,7 +241,9 @@ public com.google.protobuf.ByteString getUriBytes() {
    * is not).
    * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getBoundingPolysList() { return boundingPolys_; @@ -252,8 +252,8 @@ public java.util.List getBoundin * * *
-   * Bounding polygons around the areas of interest in the reference image.
-   * Optional. If this field is empty, the system will try to detect regions of
+   * Optional. Bounding polygons around the areas of interest in the reference
+   * image. If this field is empty, the system will try to detect regions of
    * interest. At most 10 bounding polygons will be used.
    * The provided shape is converted into a non-rotated rectangle. Once
    * converted, the small edge of the rectangle must be greater than or equal
@@ -261,7 +261,9 @@ public java.util.List getBoundin
    * is not).
    * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getBoundingPolysOrBuilderList() { @@ -271,8 +273,8 @@ public java.util.List getBoundin * * *
-   * Bounding polygons around the areas of interest in the reference image.
-   * Optional. If this field is empty, the system will try to detect regions of
+   * Optional. Bounding polygons around the areas of interest in the reference
+   * image. If this field is empty, the system will try to detect regions of
    * interest. At most 10 bounding polygons will be used.
    * The provided shape is converted into a non-rotated rectangle. Once
    * converted, the small edge of the rectangle must be greater than or equal
@@ -280,7 +282,9 @@ public java.util.List getBoundin
    * is not).
    * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getBoundingPolysCount() { return boundingPolys_.size(); @@ -289,8 +293,8 @@ public int getBoundingPolysCount() { * * *
-   * Bounding polygons around the areas of interest in the reference image.
-   * Optional. If this field is empty, the system will try to detect regions of
+   * Optional. Bounding polygons around the areas of interest in the reference
+   * image. If this field is empty, the system will try to detect regions of
    * interest. At most 10 bounding polygons will be used.
    * The provided shape is converted into a non-rotated rectangle. Once
    * converted, the small edge of the rectangle must be greater than or equal
@@ -298,7 +302,9 @@ public int getBoundingPolysCount() {
    * is not).
    * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPolys(int index) { return boundingPolys_.get(index); @@ -307,8 +313,8 @@ public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPolys(int index * * *
-   * Bounding polygons around the areas of interest in the reference image.
-   * Optional. If this field is empty, the system will try to detect regions of
+   * Optional. Bounding polygons around the areas of interest in the reference
+   * image. If this field is empty, the system will try to detect regions of
    * interest. At most 10 bounding polygons will be used.
    * The provided shape is converted into a non-rotated rectangle. Once
    * converted, the small edge of the rectangle must be greater than or equal
@@ -316,7 +322,9 @@ public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPolys(int index
    * is not).
    * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolysOrBuilder( int index) { @@ -831,12 +839,11 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * The Google Cloud Storage URI of the reference image.
+     * Required. The Google Cloud Storage URI of the reference image.
      * The URI must start with `gs://`.
-     * Required.
      * 
* - * string uri = 2; + * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; */ public java.lang.String getUri() { java.lang.Object ref = uri_; @@ -853,12 +860,11 @@ public java.lang.String getUri() { * * *
-     * The Google Cloud Storage URI of the reference image.
+     * Required. The Google Cloud Storage URI of the reference image.
      * The URI must start with `gs://`.
-     * Required.
      * 
* - * string uri = 2; + * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; @@ -875,12 +881,11 @@ public com.google.protobuf.ByteString getUriBytes() { * * *
-     * The Google Cloud Storage URI of the reference image.
+     * Required. The Google Cloud Storage URI of the reference image.
      * The URI must start with `gs://`.
-     * Required.
      * 
* - * string uri = 2; + * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUri(java.lang.String value) { if (value == null) { @@ -895,12 +900,11 @@ public Builder setUri(java.lang.String value) { * * *
-     * The Google Cloud Storage URI of the reference image.
+     * Required. The Google Cloud Storage URI of the reference image.
      * The URI must start with `gs://`.
-     * Required.
      * 
* - * string uri = 2; + * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUri() { @@ -912,12 +916,11 @@ public Builder clearUri() { * * *
-     * The Google Cloud Storage URI of the reference image.
+     * Required. The Google Cloud Storage URI of the reference image.
      * The URI must start with `gs://`.
-     * Required.
      * 
* - * string uri = 2; + * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -951,8 +954,8 @@ private void ensureBoundingPolysIsMutable() { * * *
-     * Bounding polygons around the areas of interest in the reference image.
-     * Optional. If this field is empty, the system will try to detect regions of
+     * Optional. Bounding polygons around the areas of interest in the reference
+     * image. If this field is empty, the system will try to detect regions of
      * interest. At most 10 bounding polygons will be used.
      * The provided shape is converted into a non-rotated rectangle. Once
      * converted, the small edge of the rectangle must be greater than or equal
@@ -960,7 +963,9 @@ private void ensureBoundingPolysIsMutable() {
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getBoundingPolysList() { if (boundingPolysBuilder_ == null) { @@ -973,8 +978,8 @@ public java.util.List getBoundin * * *
-     * Bounding polygons around the areas of interest in the reference image.
-     * Optional. If this field is empty, the system will try to detect regions of
+     * Optional. Bounding polygons around the areas of interest in the reference
+     * image. If this field is empty, the system will try to detect regions of
      * interest. At most 10 bounding polygons will be used.
      * The provided shape is converted into a non-rotated rectangle. Once
      * converted, the small edge of the rectangle must be greater than or equal
@@ -982,7 +987,9 @@ public java.util.List getBoundin
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getBoundingPolysCount() { if (boundingPolysBuilder_ == null) { @@ -995,8 +1002,8 @@ public int getBoundingPolysCount() { * * *
-     * Bounding polygons around the areas of interest in the reference image.
-     * Optional. If this field is empty, the system will try to detect regions of
+     * Optional. Bounding polygons around the areas of interest in the reference
+     * image. If this field is empty, the system will try to detect regions of
      * interest. At most 10 bounding polygons will be used.
      * The provided shape is converted into a non-rotated rectangle. Once
      * converted, the small edge of the rectangle must be greater than or equal
@@ -1004,7 +1011,9 @@ public int getBoundingPolysCount() {
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPolys(int index) { if (boundingPolysBuilder_ == null) { @@ -1017,8 +1026,8 @@ public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPolys(int index * * *
-     * Bounding polygons around the areas of interest in the reference image.
-     * Optional. If this field is empty, the system will try to detect regions of
+     * Optional. Bounding polygons around the areas of interest in the reference
+     * image. If this field is empty, the system will try to detect regions of
      * interest. At most 10 bounding polygons will be used.
      * The provided shape is converted into a non-rotated rectangle. Once
      * converted, the small edge of the rectangle must be greater than or equal
@@ -1026,7 +1035,9 @@ public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPolys(int index
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setBoundingPolys( int index, com.google.cloud.vision.v1p4beta1.BoundingPoly value) { @@ -1046,8 +1057,8 @@ public Builder setBoundingPolys( * * *
-     * Bounding polygons around the areas of interest in the reference image.
-     * Optional. If this field is empty, the system will try to detect regions of
+     * Optional. Bounding polygons around the areas of interest in the reference
+     * image. If this field is empty, the system will try to detect regions of
      * interest. At most 10 bounding polygons will be used.
      * The provided shape is converted into a non-rotated rectangle. Once
      * converted, the small edge of the rectangle must be greater than or equal
@@ -1055,7 +1066,9 @@ public Builder setBoundingPolys(
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setBoundingPolys( int index, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder builderForValue) { @@ -1072,8 +1085,8 @@ public Builder setBoundingPolys( * * *
-     * Bounding polygons around the areas of interest in the reference image.
-     * Optional. If this field is empty, the system will try to detect regions of
+     * Optional. Bounding polygons around the areas of interest in the reference
+     * image. If this field is empty, the system will try to detect regions of
      * interest. At most 10 bounding polygons will be used.
      * The provided shape is converted into a non-rotated rectangle. Once
      * converted, the small edge of the rectangle must be greater than or equal
@@ -1081,7 +1094,9 @@ public Builder setBoundingPolys(
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addBoundingPolys(com.google.cloud.vision.v1p4beta1.BoundingPoly value) { if (boundingPolysBuilder_ == null) { @@ -1100,8 +1115,8 @@ public Builder addBoundingPolys(com.google.cloud.vision.v1p4beta1.BoundingPoly v * * *
-     * Bounding polygons around the areas of interest in the reference image.
-     * Optional. If this field is empty, the system will try to detect regions of
+     * Optional. Bounding polygons around the areas of interest in the reference
+     * image. If this field is empty, the system will try to detect regions of
      * interest. At most 10 bounding polygons will be used.
      * The provided shape is converted into a non-rotated rectangle. Once
      * converted, the small edge of the rectangle must be greater than or equal
@@ -1109,7 +1124,9 @@ public Builder addBoundingPolys(com.google.cloud.vision.v1p4beta1.BoundingPoly v
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addBoundingPolys( int index, com.google.cloud.vision.v1p4beta1.BoundingPoly value) { @@ -1129,8 +1146,8 @@ public Builder addBoundingPolys( * * *
-     * Bounding polygons around the areas of interest in the reference image.
-     * Optional. If this field is empty, the system will try to detect regions of
+     * Optional. Bounding polygons around the areas of interest in the reference
+     * image. If this field is empty, the system will try to detect regions of
      * interest. At most 10 bounding polygons will be used.
      * The provided shape is converted into a non-rotated rectangle. Once
      * converted, the small edge of the rectangle must be greater than or equal
@@ -1138,7 +1155,9 @@ public Builder addBoundingPolys(
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addBoundingPolys( com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder builderForValue) { @@ -1155,8 +1174,8 @@ public Builder addBoundingPolys( * * *
-     * Bounding polygons around the areas of interest in the reference image.
-     * Optional. If this field is empty, the system will try to detect regions of
+     * Optional. Bounding polygons around the areas of interest in the reference
+     * image. If this field is empty, the system will try to detect regions of
      * interest. At most 10 bounding polygons will be used.
      * The provided shape is converted into a non-rotated rectangle. Once
      * converted, the small edge of the rectangle must be greater than or equal
@@ -1164,7 +1183,9 @@ public Builder addBoundingPolys(
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addBoundingPolys( int index, com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder builderForValue) { @@ -1181,8 +1202,8 @@ public Builder addBoundingPolys( * * *
-     * Bounding polygons around the areas of interest in the reference image.
-     * Optional. If this field is empty, the system will try to detect regions of
+     * Optional. Bounding polygons around the areas of interest in the reference
+     * image. If this field is empty, the system will try to detect regions of
      * interest. At most 10 bounding polygons will be used.
      * The provided shape is converted into a non-rotated rectangle. Once
      * converted, the small edge of the rectangle must be greater than or equal
@@ -1190,7 +1211,9 @@ public Builder addBoundingPolys(
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllBoundingPolys( java.lang.Iterable values) { @@ -1207,8 +1230,8 @@ public Builder addAllBoundingPolys( * * *
-     * Bounding polygons around the areas of interest in the reference image.
-     * Optional. If this field is empty, the system will try to detect regions of
+     * Optional. Bounding polygons around the areas of interest in the reference
+     * image. If this field is empty, the system will try to detect regions of
      * interest. At most 10 bounding polygons will be used.
      * The provided shape is converted into a non-rotated rectangle. Once
      * converted, the small edge of the rectangle must be greater than or equal
@@ -1216,7 +1239,9 @@ public Builder addAllBoundingPolys(
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearBoundingPolys() { if (boundingPolysBuilder_ == null) { @@ -1232,8 +1257,8 @@ public Builder clearBoundingPolys() { * * *
-     * Bounding polygons around the areas of interest in the reference image.
-     * Optional. If this field is empty, the system will try to detect regions of
+     * Optional. Bounding polygons around the areas of interest in the reference
+     * image. If this field is empty, the system will try to detect regions of
      * interest. At most 10 bounding polygons will be used.
      * The provided shape is converted into a non-rotated rectangle. Once
      * converted, the small edge of the rectangle must be greater than or equal
@@ -1241,7 +1266,9 @@ public Builder clearBoundingPolys() {
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeBoundingPolys(int index) { if (boundingPolysBuilder_ == null) { @@ -1257,8 +1284,8 @@ public Builder removeBoundingPolys(int index) { * * *
-     * Bounding polygons around the areas of interest in the reference image.
-     * Optional. If this field is empty, the system will try to detect regions of
+     * Optional. Bounding polygons around the areas of interest in the reference
+     * image. If this field is empty, the system will try to detect regions of
      * interest. At most 10 bounding polygons will be used.
      * The provided shape is converted into a non-rotated rectangle. Once
      * converted, the small edge of the rectangle must be greater than or equal
@@ -1266,7 +1293,9 @@ public Builder removeBoundingPolys(int index) {
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder getBoundingPolysBuilder( int index) { @@ -1276,8 +1305,8 @@ public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder getBoundingPolysBu * * *
-     * Bounding polygons around the areas of interest in the reference image.
-     * Optional. If this field is empty, the system will try to detect regions of
+     * Optional. Bounding polygons around the areas of interest in the reference
+     * image. If this field is empty, the system will try to detect regions of
      * interest. At most 10 bounding polygons will be used.
      * The provided shape is converted into a non-rotated rectangle. Once
      * converted, the small edge of the rectangle must be greater than or equal
@@ -1285,7 +1314,9 @@ public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder getBoundingPolysBu
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolysOrBuilder( int index) { @@ -1299,8 +1330,8 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolysO * * *
-     * Bounding polygons around the areas of interest in the reference image.
-     * Optional. If this field is empty, the system will try to detect regions of
+     * Optional. Bounding polygons around the areas of interest in the reference
+     * image. If this field is empty, the system will try to detect regions of
      * interest. At most 10 bounding polygons will be used.
      * The provided shape is converted into a non-rotated rectangle. Once
      * converted, the small edge of the rectangle must be greater than or equal
@@ -1308,7 +1339,9 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolysO
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getBoundingPolysOrBuilderList() { @@ -1322,8 +1355,8 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolysO * * *
-     * Bounding polygons around the areas of interest in the reference image.
-     * Optional. If this field is empty, the system will try to detect regions of
+     * Optional. Bounding polygons around the areas of interest in the reference
+     * image. If this field is empty, the system will try to detect regions of
      * interest. At most 10 bounding polygons will be used.
      * The provided shape is converted into a non-rotated rectangle. Once
      * converted, the small edge of the rectangle must be greater than or equal
@@ -1331,7 +1364,9 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolysO
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder addBoundingPolysBuilder() { return getBoundingPolysFieldBuilder() @@ -1341,8 +1376,8 @@ public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder addBoundingPolysBu * * *
-     * Bounding polygons around the areas of interest in the reference image.
-     * Optional. If this field is empty, the system will try to detect regions of
+     * Optional. Bounding polygons around the areas of interest in the reference
+     * image. If this field is empty, the system will try to detect regions of
      * interest. At most 10 bounding polygons will be used.
      * The provided shape is converted into a non-rotated rectangle. Once
      * converted, the small edge of the rectangle must be greater than or equal
@@ -1350,7 +1385,9 @@ public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder addBoundingPolysBu
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder addBoundingPolysBuilder( int index) { @@ -1361,8 +1398,8 @@ public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder addBoundingPolysBu * * *
-     * Bounding polygons around the areas of interest in the reference image.
-     * Optional. If this field is empty, the system will try to detect regions of
+     * Optional. Bounding polygons around the areas of interest in the reference
+     * image. If this field is empty, the system will try to detect regions of
      * interest. At most 10 bounding polygons will be used.
      * The provided shape is converted into a non-rotated rectangle. Once
      * converted, the small edge of the rectangle must be greater than or equal
@@ -1370,7 +1407,9 @@ public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder addBoundingPolysBu
      * is not).
      * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getBoundingPolysBuilderList() { diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImageOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImageOrBuilder.java index df5e01a62..96dc97478 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImageOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImageOrBuilder.java @@ -54,24 +54,22 @@ public interface ReferenceImageOrBuilder * * *
-   * The Google Cloud Storage URI of the reference image.
+   * Required. The Google Cloud Storage URI of the reference image.
    * The URI must start with `gs://`.
-   * Required.
    * 
* - * string uri = 2; + * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; */ java.lang.String getUri(); /** * * *
-   * The Google Cloud Storage URI of the reference image.
+   * Required. The Google Cloud Storage URI of the reference image.
    * The URI must start with `gs://`.
-   * Required.
    * 
* - * string uri = 2; + * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.ByteString getUriBytes(); @@ -79,8 +77,8 @@ public interface ReferenceImageOrBuilder * * *
-   * Bounding polygons around the areas of interest in the reference image.
-   * Optional. If this field is empty, the system will try to detect regions of
+   * Optional. Bounding polygons around the areas of interest in the reference
+   * image. If this field is empty, the system will try to detect regions of
    * interest. At most 10 bounding polygons will be used.
    * The provided shape is converted into a non-rotated rectangle. Once
    * converted, the small edge of the rectangle must be greater than or equal
@@ -88,15 +86,17 @@ public interface ReferenceImageOrBuilder
    * is not).
    * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.List getBoundingPolysList(); /** * * *
-   * Bounding polygons around the areas of interest in the reference image.
-   * Optional. If this field is empty, the system will try to detect regions of
+   * Optional. Bounding polygons around the areas of interest in the reference
+   * image. If this field is empty, the system will try to detect regions of
    * interest. At most 10 bounding polygons will be used.
    * The provided shape is converted into a non-rotated rectangle. Once
    * converted, the small edge of the rectangle must be greater than or equal
@@ -104,15 +104,17 @@ public interface ReferenceImageOrBuilder
    * is not).
    * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingPolys(int index); /** * * *
-   * Bounding polygons around the areas of interest in the reference image.
-   * Optional. If this field is empty, the system will try to detect regions of
+   * Optional. Bounding polygons around the areas of interest in the reference
+   * image. If this field is empty, the system will try to detect regions of
    * interest. At most 10 bounding polygons will be used.
    * The provided shape is converted into a non-rotated rectangle. Once
    * converted, the small edge of the rectangle must be greater than or equal
@@ -120,15 +122,17 @@ public interface ReferenceImageOrBuilder
    * is not).
    * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getBoundingPolysCount(); /** * * *
-   * Bounding polygons around the areas of interest in the reference image.
-   * Optional. If this field is empty, the system will try to detect regions of
+   * Optional. Bounding polygons around the areas of interest in the reference
+   * image. If this field is empty, the system will try to detect regions of
    * interest. At most 10 bounding polygons will be used.
    * The provided shape is converted into a non-rotated rectangle. Once
    * converted, the small edge of the rectangle must be greater than or equal
@@ -136,7 +140,9 @@ public interface ReferenceImageOrBuilder
    * is not).
    * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.List getBoundingPolysOrBuilderList(); @@ -144,8 +150,8 @@ public interface ReferenceImageOrBuilder * * *
-   * Bounding polygons around the areas of interest in the reference image.
-   * Optional. If this field is empty, the system will try to detect regions of
+   * Optional. Bounding polygons around the areas of interest in the reference
+   * image. If this field is empty, the system will try to detect regions of
    * interest. At most 10 bounding polygons will be used.
    * The provided shape is converted into a non-rotated rectangle. Once
    * converted, the small edge of the rectangle must be greater than or equal
@@ -153,7 +159,9 @@ public interface ReferenceImageOrBuilder
    * is not).
    * 
* - * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1p4beta1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingPolysOrBuilder(int index); } diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/RemoveProductFromProductSetRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/RemoveProductFromProductSetRequest.java index ebb904301..26b596105 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/RemoveProductFromProductSetRequest.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/RemoveProductFromProductSetRequest.java @@ -121,12 +121,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The resource name for the ProductSet to modify.
+   * Required. The resource name for the ProductSet to modify.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -143,12 +145,14 @@ public java.lang.String getName() { * * *
-   * The resource name for the ProductSet to modify.
+   * Required. The resource name for the ProductSet to modify.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -168,12 +172,15 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * The resource name for the Product to be removed from this ProductSet.
+   * Required. The resource name for the Product to be removed from this
+   * ProductSet.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * string product = 2; + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getProduct() { java.lang.Object ref = product_; @@ -190,12 +197,15 @@ public java.lang.String getProduct() { * * *
-   * The resource name for the Product to be removed from this ProductSet.
+   * Required. The resource name for the Product to be removed from this
+   * ProductSet.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * string product = 2; + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getProductBytes() { java.lang.Object ref = product_; @@ -557,12 +567,14 @@ public Builder mergeFrom( * * *
-     * The resource name for the ProductSet to modify.
+     * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -579,12 +591,14 @@ public java.lang.String getName() { * * *
-     * The resource name for the ProductSet to modify.
+     * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -601,12 +615,14 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * The resource name for the ProductSet to modify.
+     * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setName(java.lang.String value) { if (value == null) { @@ -621,12 +637,14 @@ public Builder setName(java.lang.String value) { * * *
-     * The resource name for the ProductSet to modify.
+     * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder clearName() { @@ -638,12 +656,14 @@ public Builder clearName() { * * *
-     * The resource name for the ProductSet to modify.
+     * Required. The resource name for the ProductSet to modify.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -661,12 +681,15 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * The resource name for the Product to be removed from this ProductSet.
+     * Required. The resource name for the Product to be removed from this
+     * ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string product = 2; + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getProduct() { java.lang.Object ref = product_; @@ -683,12 +706,15 @@ public java.lang.String getProduct() { * * *
-     * The resource name for the Product to be removed from this ProductSet.
+     * Required. The resource name for the Product to be removed from this
+     * ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string product = 2; + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getProductBytes() { java.lang.Object ref = product_; @@ -705,12 +731,15 @@ public com.google.protobuf.ByteString getProductBytes() { * * *
-     * The resource name for the Product to be removed from this ProductSet.
+     * Required. The resource name for the Product to be removed from this
+     * ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string product = 2; + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setProduct(java.lang.String value) { if (value == null) { @@ -725,12 +754,15 @@ public Builder setProduct(java.lang.String value) { * * *
-     * The resource name for the Product to be removed from this ProductSet.
+     * Required. The resource name for the Product to be removed from this
+     * ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string product = 2; + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder clearProduct() { @@ -742,12 +774,15 @@ public Builder clearProduct() { * * *
-     * The resource name for the Product to be removed from this ProductSet.
+     * Required. The resource name for the Product to be removed from this
+     * ProductSet.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
      * 
* - * string product = 2; + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setProductBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/RemoveProductFromProductSetRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/RemoveProductFromProductSetRequestOrBuilder.java index 4a0f311ee..290c66f25 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/RemoveProductFromProductSetRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/RemoveProductFromProductSetRequestOrBuilder.java @@ -27,24 +27,28 @@ public interface RemoveProductFromProductSetRequestOrBuilder * * *
-   * The resource name for the ProductSet to modify.
+   * Required. The resource name for the ProductSet to modify.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ java.lang.String getName(); /** * * *
-   * The resource name for the ProductSet to modify.
+   * Required. The resource name for the ProductSet to modify.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ com.google.protobuf.ByteString getNameBytes(); @@ -52,24 +56,30 @@ public interface RemoveProductFromProductSetRequestOrBuilder * * *
-   * The resource name for the Product to be removed from this ProductSet.
+   * Required. The resource name for the Product to be removed from this
+   * ProductSet.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * string product = 2; + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ java.lang.String getProduct(); /** * * *
-   * The resource name for the Product to be removed from this ProductSet.
+   * Required. The resource name for the Product to be removed from this
+   * ProductSet.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
    * 
* - * string product = 2; + * + * string product = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ com.google.protobuf.ByteString getProductBytes(); } diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Symbol.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Symbol.java index df1231ddc..20c5cbae2 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Symbol.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/Symbol.java @@ -207,7 +207,7 @@ public com.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty getProperty * 2----3 * | | * 1----0 - * and the vertice order will still be (0, 1, 2, 3). + * and the vertex order will still be (0, 1, 2, 3). * * * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; @@ -233,7 +233,7 @@ public boolean hasBoundingBox() { * 2----3 * | | * 1----0 - * and the vertice order will still be (0, 1, 2, 3). + * and the vertex order will still be (0, 1, 2, 3). * * * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; @@ -261,7 +261,7 @@ public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingBox() { * 2----3 * | | * 1----0 - * and the vertice order will still be (0, 1, 2, 3). + * and the vertex order will still be (0, 1, 2, 3). * * * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; @@ -925,7 +925,7 @@ public Builder clearProperty() { * 2----3 * | | * 1----0 - * and the vertice order will still be (0, 1, 2, 3). + * and the vertex order will still be (0, 1, 2, 3). * * * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; @@ -951,7 +951,7 @@ public boolean hasBoundingBox() { * 2----3 * | | * 1----0 - * and the vertice order will still be (0, 1, 2, 3). + * and the vertex order will still be (0, 1, 2, 3). * * * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; @@ -983,7 +983,7 @@ public com.google.cloud.vision.v1p4beta1.BoundingPoly getBoundingBox() { * 2----3 * | | * 1----0 - * and the vertice order will still be (0, 1, 2, 3). + * and the vertex order will still be (0, 1, 2, 3). * * * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; @@ -1019,7 +1019,7 @@ public Builder setBoundingBox(com.google.cloud.vision.v1p4beta1.BoundingPoly val * 2----3 * | | * 1----0 - * and the vertice order will still be (0, 1, 2, 3). + * and the vertex order will still be (0, 1, 2, 3). * * * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; @@ -1053,7 +1053,7 @@ public Builder setBoundingBox( * 2----3 * | | * 1----0 - * and the vertice order will still be (0, 1, 2, 3). + * and the vertex order will still be (0, 1, 2, 3). * * * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; @@ -1093,7 +1093,7 @@ public Builder mergeBoundingBox(com.google.cloud.vision.v1p4beta1.BoundingPoly v * 2----3 * | | * 1----0 - * and the vertice order will still be (0, 1, 2, 3). + * and the vertex order will still be (0, 1, 2, 3). * * * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; @@ -1127,7 +1127,7 @@ public Builder clearBoundingBox() { * 2----3 * | | * 1----0 - * and the vertice order will still be (0, 1, 2, 3). + * and the vertex order will still be (0, 1, 2, 3). * * * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; @@ -1155,7 +1155,7 @@ public com.google.cloud.vision.v1p4beta1.BoundingPoly.Builder getBoundingBoxBuil * 2----3 * | | * 1----0 - * and the vertice order will still be (0, 1, 2, 3). + * and the vertex order will still be (0, 1, 2, 3). * * * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; @@ -1187,7 +1187,7 @@ public com.google.cloud.vision.v1p4beta1.BoundingPolyOrBuilder getBoundingBoxOrB * 2----3 * | | * 1----0 - * and the vertice order will still be (0, 1, 2, 3). + * and the vertex order will still be (0, 1, 2, 3). * * * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/SymbolOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/SymbolOrBuilder.java index 70e183c23..33b00de65 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/SymbolOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/SymbolOrBuilder.java @@ -72,7 +72,7 @@ public interface SymbolOrBuilder * 2----3 * | | * 1----0 - * and the vertice order will still be (0, 1, 2, 3). + * and the vertex order will still be (0, 1, 2, 3). * * * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; @@ -96,7 +96,7 @@ public interface SymbolOrBuilder * 2----3 * | | * 1----0 - * and the vertice order will still be (0, 1, 2, 3). + * and the vertex order will still be (0, 1, 2, 3). * * * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; @@ -120,7 +120,7 @@ public interface SymbolOrBuilder * 2----3 * | | * 1----0 - * and the vertice order will still be (0, 1, 2, 3). + * and the vertex order will still be (0, 1, 2, 3). * * * .google.cloud.vision.v1p4beta1.BoundingPoly bounding_box = 2; diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductRequest.java index 3f4912478..c64072c34 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductRequest.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductRequest.java @@ -134,11 +134,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The Product resource which replaces the one on the server.
+   * Required. The Product resource which replaces the one on the server.
    * product.name is immutable.
    * 
* - * .google.cloud.vision.v1p4beta1.Product product = 1; + * + * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasProduct() { return product_ != null; @@ -147,11 +149,13 @@ public boolean hasProduct() { * * *
-   * The Product resource which replaces the one on the server.
+   * Required. The Product resource which replaces the one on the server.
    * product.name is immutable.
    * 
* - * .google.cloud.vision.v1p4beta1.Product product = 1; + * + * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.Product getProduct() { return product_ == null @@ -162,11 +166,13 @@ public com.google.cloud.vision.v1p4beta1.Product getProduct() { * * *
-   * The Product resource which replaces the one on the server.
+   * Required. The Product resource which replaces the one on the server.
    * product.name is immutable.
    * 
* - * .google.cloud.vision.v1p4beta1.Product product = 1; + * + * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductOrBuilder() { return getProduct(); @@ -592,11 +598,13 @@ public Builder mergeFrom( * * *
-     * The Product resource which replaces the one on the server.
+     * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * .google.cloud.vision.v1p4beta1.Product product = 1; + * + * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasProduct() { return productBuilder_ != null || product_ != null; @@ -605,11 +613,13 @@ public boolean hasProduct() { * * *
-     * The Product resource which replaces the one on the server.
+     * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * .google.cloud.vision.v1p4beta1.Product product = 1; + * + * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.Product getProduct() { if (productBuilder_ == null) { @@ -624,11 +634,13 @@ public com.google.cloud.vision.v1p4beta1.Product getProduct() { * * *
-     * The Product resource which replaces the one on the server.
+     * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * .google.cloud.vision.v1p4beta1.Product product = 1; + * + * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setProduct(com.google.cloud.vision.v1p4beta1.Product value) { if (productBuilder_ == null) { @@ -647,11 +659,13 @@ public Builder setProduct(com.google.cloud.vision.v1p4beta1.Product value) { * * *
-     * The Product resource which replaces the one on the server.
+     * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * .google.cloud.vision.v1p4beta1.Product product = 1; + * + * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setProduct(com.google.cloud.vision.v1p4beta1.Product.Builder builderForValue) { if (productBuilder_ == null) { @@ -667,11 +681,13 @@ public Builder setProduct(com.google.cloud.vision.v1p4beta1.Product.Builder buil * * *
-     * The Product resource which replaces the one on the server.
+     * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * .google.cloud.vision.v1p4beta1.Product product = 1; + * + * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeProduct(com.google.cloud.vision.v1p4beta1.Product value) { if (productBuilder_ == null) { @@ -694,11 +710,13 @@ public Builder mergeProduct(com.google.cloud.vision.v1p4beta1.Product value) { * * *
-     * The Product resource which replaces the one on the server.
+     * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * .google.cloud.vision.v1p4beta1.Product product = 1; + * + * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearProduct() { if (productBuilder_ == null) { @@ -715,11 +733,13 @@ public Builder clearProduct() { * * *
-     * The Product resource which replaces the one on the server.
+     * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * .google.cloud.vision.v1p4beta1.Product product = 1; + * + * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.Product.Builder getProductBuilder() { @@ -730,11 +750,13 @@ public com.google.cloud.vision.v1p4beta1.Product.Builder getProductBuilder() { * * *
-     * The Product resource which replaces the one on the server.
+     * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * .google.cloud.vision.v1p4beta1.Product product = 1; + * + * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductOrBuilder() { if (productBuilder_ != null) { @@ -749,11 +771,13 @@ public com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductOrBuilder() * * *
-     * The Product resource which replaces the one on the server.
+     * Required. The Product resource which replaces the one on the server.
      * product.name is immutable.
      * 
* - * .google.cloud.vision.v1p4beta1.Product product = 1; + * + * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.vision.v1p4beta1.Product, diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductRequestOrBuilder.java index c20190150..2b6766148 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductRequestOrBuilder.java @@ -27,33 +27,39 @@ public interface UpdateProductRequestOrBuilder * * *
-   * The Product resource which replaces the one on the server.
+   * Required. The Product resource which replaces the one on the server.
    * product.name is immutable.
    * 
* - * .google.cloud.vision.v1p4beta1.Product product = 1; + * + * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ boolean hasProduct(); /** * * *
-   * The Product resource which replaces the one on the server.
+   * Required. The Product resource which replaces the one on the server.
    * product.name is immutable.
    * 
* - * .google.cloud.vision.v1p4beta1.Product product = 1; + * + * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1p4beta1.Product getProduct(); /** * * *
-   * The Product resource which replaces the one on the server.
+   * Required. The Product resource which replaces the one on the server.
    * product.name is immutable.
    * 
* - * .google.cloud.vision.v1p4beta1.Product product = 1; + * + * .google.cloud.vision.v1p4beta1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1p4beta1.ProductOrBuilder getProductOrBuilder(); diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductSetRequest.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductSetRequest.java index ebf381ee2..e96cc24a6 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductSetRequest.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductSetRequest.java @@ -134,10 +134,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The ProductSet resource which replaces the one on the server.
+   * Required. The ProductSet resource which replaces the one on the server.
    * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasProductSet() { return productSet_ != null; @@ -146,10 +148,12 @@ public boolean hasProductSet() { * * *
-   * The ProductSet resource which replaces the one on the server.
+   * Required. The ProductSet resource which replaces the one on the server.
    * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.ProductSet getProductSet() { return productSet_ == null @@ -160,10 +164,12 @@ public com.google.cloud.vision.v1p4beta1.ProductSet getProductSet() { * * *
-   * The ProductSet resource which replaces the one on the server.
+   * Required. The ProductSet resource which replaces the one on the server.
    * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetOrBuilder() { return getProductSet(); @@ -586,10 +592,12 @@ public Builder mergeFrom( * * *
-     * The ProductSet resource which replaces the one on the server.
+     * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasProductSet() { return productSetBuilder_ != null || productSet_ != null; @@ -598,10 +606,12 @@ public boolean hasProductSet() { * * *
-     * The ProductSet resource which replaces the one on the server.
+     * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.ProductSet getProductSet() { if (productSetBuilder_ == null) { @@ -616,10 +626,12 @@ public com.google.cloud.vision.v1p4beta1.ProductSet getProductSet() { * * *
-     * The ProductSet resource which replaces the one on the server.
+     * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setProductSet(com.google.cloud.vision.v1p4beta1.ProductSet value) { if (productSetBuilder_ == null) { @@ -638,10 +650,12 @@ public Builder setProductSet(com.google.cloud.vision.v1p4beta1.ProductSet value) * * *
-     * The ProductSet resource which replaces the one on the server.
+     * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setProductSet( com.google.cloud.vision.v1p4beta1.ProductSet.Builder builderForValue) { @@ -658,10 +672,12 @@ public Builder setProductSet( * * *
-     * The ProductSet resource which replaces the one on the server.
+     * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeProductSet(com.google.cloud.vision.v1p4beta1.ProductSet value) { if (productSetBuilder_ == null) { @@ -684,10 +700,12 @@ public Builder mergeProductSet(com.google.cloud.vision.v1p4beta1.ProductSet valu * * *
-     * The ProductSet resource which replaces the one on the server.
+     * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearProductSet() { if (productSetBuilder_ == null) { @@ -704,10 +722,12 @@ public Builder clearProductSet() { * * *
-     * The ProductSet resource which replaces the one on the server.
+     * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.ProductSet.Builder getProductSetBuilder() { @@ -718,10 +738,12 @@ public com.google.cloud.vision.v1p4beta1.ProductSet.Builder getProductSetBuilder * * *
-     * The ProductSet resource which replaces the one on the server.
+     * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetOrBuilder() { if (productSetBuilder_ != null) { @@ -736,10 +758,12 @@ public com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetOrBuil * * *
-     * The ProductSet resource which replaces the one on the server.
+     * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.vision.v1p4beta1.ProductSet, diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductSetRequestOrBuilder.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductSetRequestOrBuilder.java index 084461643..8fde14322 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductSetRequestOrBuilder.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/UpdateProductSetRequestOrBuilder.java @@ -27,30 +27,36 @@ public interface UpdateProductSetRequestOrBuilder * * *
-   * The ProductSet resource which replaces the one on the server.
+   * Required. The ProductSet resource which replaces the one on the server.
    * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ boolean hasProductSet(); /** * * *
-   * The ProductSet resource which replaces the one on the server.
+   * Required. The ProductSet resource which replaces the one on the server.
    * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1p4beta1.ProductSet getProductSet(); /** * * *
-   * The ProductSet resource which replaces the one on the server.
+   * Required. The ProductSet resource which replaces the one on the server.
    * 
* - * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1; + * + * .google.cloud.vision.v1p4beta1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1p4beta1.ProductSetOrBuilder getProductSetOrBuilder(); diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetection.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetection.java index be36ff9bc..67e4e58d8 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetection.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetection.java @@ -1827,79 +1827,231 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getDefaultInstanc } } - public interface WebLabelOrBuilder + public interface WebPageOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.WebDetection.WebLabel) + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.WebDetection.WebPage) com.google.protobuf.MessageOrBuilder { /** * * *
-     * Label for extra metadata.
+     * The result web page URL.
      * 
* - * string label = 1; + * string url = 1; */ - java.lang.String getLabel(); + java.lang.String getUrl(); /** * * *
-     * Label for extra metadata.
+     * The result web page URL.
      * 
* - * string label = 1; + * string url = 1; */ - com.google.protobuf.ByteString getLabelBytes(); + com.google.protobuf.ByteString getUrlBytes(); /** * * *
-     * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
-     * For more information, see
-     * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+     * (Deprecated) Overall relevancy score for the web page.
      * 
* - * string language_code = 2; + * float score = 2; */ - java.lang.String getLanguageCode(); + float getScore(); + /** * * *
-     * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
-     * For more information, see
-     * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+     * Title for the web page, may contain HTML markups.
      * 
* - * string language_code = 2; + * string page_title = 3; */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + java.lang.String getPageTitle(); + /** + * + * + *
+     * Title for the web page, may contain HTML markups.
+     * 
+ * + * string page_title = 3; + */ + com.google.protobuf.ByteString getPageTitleBytes(); + + /** + * + * + *
+     * Fully matching images on the page.
+     * Can include resized copies of the query image.
+     * 
+ * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * + */ + java.util.List + getFullMatchingImagesList(); + /** + * + * + *
+     * Fully matching images on the page.
+     * Can include resized copies of the query image.
+     * 
+ * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * + */ + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getFullMatchingImages(int index); + /** + * + * + *
+     * Fully matching images on the page.
+     * Can include resized copies of the query image.
+     * 
+ * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * + */ + int getFullMatchingImagesCount(); + /** + * + * + *
+     * Fully matching images on the page.
+     * Can include resized copies of the query image.
+     * 
+ * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * + */ + java.util.List + getFullMatchingImagesOrBuilderList(); + /** + * + * + *
+     * Fully matching images on the page.
+     * Can include resized copies of the query image.
+     * 
+ * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * + */ + com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( + int index); + + /** + * + * + *
+     * Partial matching images on the page.
+     * Those images are similar enough to share some key-point features. For
+     * example an original image will likely have partial matching for its
+     * crops.
+     * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * + */ + java.util.List + getPartialMatchingImagesList(); + /** + * + * + *
+     * Partial matching images on the page.
+     * Those images are similar enough to share some key-point features. For
+     * example an original image will likely have partial matching for its
+     * crops.
+     * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * + */ + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getPartialMatchingImages(int index); + /** + * + * + *
+     * Partial matching images on the page.
+     * Those images are similar enough to share some key-point features. For
+     * example an original image will likely have partial matching for its
+     * crops.
+     * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * + */ + int getPartialMatchingImagesCount(); + /** + * + * + *
+     * Partial matching images on the page.
+     * Those images are similar enough to share some key-point features. For
+     * example an original image will likely have partial matching for its
+     * crops.
+     * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * + */ + java.util.List + getPartialMatchingImagesOrBuilderList(); + /** + * + * + *
+     * Partial matching images on the page.
+     * Those images are similar enough to share some key-point features. For
+     * example an original image will likely have partial matching for its
+     * crops.
+     * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * + */ + com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder + getPartialMatchingImagesOrBuilder(int index); } /** * * *
-   * Label to provide extra metadata for the web detection.
+   * Metadata for web pages.
    * 
* - * Protobuf type {@code google.cloud.vision.v1p4beta1.WebDetection.WebLabel} + * Protobuf type {@code google.cloud.vision.v1p4beta1.WebDetection.WebPage} */ - public static final class WebLabel extends com.google.protobuf.GeneratedMessageV3 + public static final class WebPage extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.WebDetection.WebLabel) - WebLabelOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.WebDetection.WebPage) + WebPageOrBuilder { private static final long serialVersionUID = 0L; - // Use WebLabel.newBuilder() to construct. - private WebLabel(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use WebPage.newBuilder() to construct. + private WebPage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WebLabel() { - label_ = ""; - languageCode_ = ""; + private WebPage() { + url_ = ""; + pageTitle_ = ""; + fullMatchingImages_ = java.util.Collections.emptyList(); + partialMatchingImages_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -1907,7 +2059,7 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private WebLabel( + private WebPage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1930,14 +2082,47 @@ private WebLabel( { java.lang.String s = input.readStringRequireUtf8(); - label_ = s; + url_ = s; break; } - case 18: + case 21: + { + score_ = input.readFloat(); + break; + } + case 26: { java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; + pageTitle_ = s; + break; + } + case 34: + { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + fullMatchingImages_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage>(); + mutable_bitField0_ |= 0x00000008; + } + fullMatchingImages_.add( + input.readMessage( + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.parser(), + extensionRegistry)); + break; + } + case 42: + { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + partialMatchingImages_ = + new java.util.ArrayList< + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage>(); + mutable_bitField0_ |= 0x00000010; + } + partialMatchingImages_.add( + input.readMessage( + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.parser(), + extensionRegistry)); break; } default: @@ -1954,6 +2139,12 @@ private WebLabel( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField0_ & 0x00000008) != 0)) { + fullMatchingImages_ = java.util.Collections.unmodifiableList(fullMatchingImages_); + } + if (((mutable_bitField0_ & 0x00000010) != 0)) { + partialMatchingImages_ = java.util.Collections.unmodifiableList(partialMatchingImages_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -1961,38 +2152,39 @@ private WebLabel( public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.vision.v1p4beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_descriptor; + .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.vision.v1p4beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_fieldAccessorTable + .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.class, - com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder.class); + com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.class, + com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.Builder.class); } - public static final int LABEL_FIELD_NUMBER = 1; - private volatile java.lang.Object label_; + private int bitField0_; + public static final int URL_FIELD_NUMBER = 1; + private volatile java.lang.Object url_; /** * * *
-     * Label for extra metadata.
+     * The result web page URL.
      * 
* - * string label = 1; + * string url = 1; */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; + public java.lang.String getUrl() { + java.lang.Object ref = url_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - label_ = s; + url_ = s; return s; } } @@ -2000,44 +2192,57 @@ public java.lang.String getLabel() { * * *
-     * Label for extra metadata.
+     * The result web page URL.
      * 
* - * string label = 1; + * string url = 1; */ - public com.google.protobuf.ByteString getLabelBytes() { - java.lang.Object ref = label_; + public com.google.protobuf.ByteString getUrlBytes() { + java.lang.Object ref = url_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - label_ = b; + url_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; - private volatile java.lang.Object languageCode_; + public static final int SCORE_FIELD_NUMBER = 2; + private float score_; /** * * *
-     * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
-     * For more information, see
-     * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+     * (Deprecated) Overall relevancy score for the web page.
      * 
* - * string language_code = 2; + * float score = 2; */ - public java.lang.String getLanguageCode() { - java.lang.Object ref = languageCode_; + public float getScore() { + return score_; + } + + public static final int PAGE_TITLE_FIELD_NUMBER = 3; + private volatile java.lang.Object pageTitle_; + /** + * + * + *
+     * Title for the web page, may contain HTML markups.
+     * 
+ * + * string page_title = 3; + */ + public java.lang.String getPageTitle() { + java.lang.Object ref = pageTitle_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - languageCode_ = s; + pageTitle_ = s; return s; } } @@ -2045,25 +2250,196 @@ public java.lang.String getLanguageCode() { * * *
-     * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
-     * For more information, see
-     * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+     * Title for the web page, may contain HTML markups.
      * 
* - * string language_code = 2; + * string page_title = 3; */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { - java.lang.Object ref = languageCode_; + public com.google.protobuf.ByteString getPageTitleBytes() { + java.lang.Object ref = pageTitle_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - languageCode_ = b; + pageTitle_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } + public static final int FULL_MATCHING_IMAGES_FIELD_NUMBER = 4; + private java.util.List + fullMatchingImages_; + /** + * + * + *
+     * Fully matching images on the page.
+     * Can include resized copies of the query image.
+     * 
+ * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * + */ + public java.util.List + getFullMatchingImagesList() { + return fullMatchingImages_; + } + /** + * + * + *
+     * Fully matching images on the page.
+     * Can include resized copies of the query image.
+     * 
+ * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * + */ + public java.util.List< + ? extends com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> + getFullMatchingImagesOrBuilderList() { + return fullMatchingImages_; + } + /** + * + * + *
+     * Fully matching images on the page.
+     * Can include resized copies of the query image.
+     * 
+ * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * + */ + public int getFullMatchingImagesCount() { + return fullMatchingImages_.size(); + } + /** + * + * + *
+     * Fully matching images on the page.
+     * Can include resized copies of the query image.
+     * 
+ * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * + */ + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getFullMatchingImages( + int index) { + return fullMatchingImages_.get(index); + } + /** + * + * + *
+     * Fully matching images on the page.
+     * Can include resized copies of the query image.
+     * 
+ * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * + */ + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder + getFullMatchingImagesOrBuilder(int index) { + return fullMatchingImages_.get(index); + } + + public static final int PARTIAL_MATCHING_IMAGES_FIELD_NUMBER = 5; + private java.util.List + partialMatchingImages_; + /** + * + * + *
+     * Partial matching images on the page.
+     * Those images are similar enough to share some key-point features. For
+     * example an original image will likely have partial matching for its
+     * crops.
+     * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * + */ + public java.util.List + getPartialMatchingImagesList() { + return partialMatchingImages_; + } + /** + * + * + *
+     * Partial matching images on the page.
+     * Those images are similar enough to share some key-point features. For
+     * example an original image will likely have partial matching for its
+     * crops.
+     * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * + */ + public java.util.List< + ? extends com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> + getPartialMatchingImagesOrBuilderList() { + return partialMatchingImages_; + } + /** + * + * + *
+     * Partial matching images on the page.
+     * Those images are similar enough to share some key-point features. For
+     * example an original image will likely have partial matching for its
+     * crops.
+     * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * + */ + public int getPartialMatchingImagesCount() { + return partialMatchingImages_.size(); + } + /** + * + * + *
+     * Partial matching images on the page.
+     * Those images are similar enough to share some key-point features. For
+     * example an original image will likely have partial matching for its
+     * crops.
+     * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * + */ + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getPartialMatchingImages( + int index) { + return partialMatchingImages_.get(index); + } + /** + * + * + *
+     * Partial matching images on the page.
+     * Those images are similar enough to share some key-point features. For
+     * example an original image will likely have partial matching for its
+     * crops.
+     * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * + */ + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder + getPartialMatchingImagesOrBuilder(int index) { + return partialMatchingImages_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2078,11 +2454,20 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getLabelBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, label_); + if (!getUrlBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); } - if (!getLanguageCodeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_); + if (score_ != 0F) { + output.writeFloat(2, score_); + } + if (!getPageTitleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageTitle_); + } + for (int i = 0; i < fullMatchingImages_.size(); i++) { + output.writeMessage(4, fullMatchingImages_.get(i)); + } + for (int i = 0; i < partialMatchingImages_.size(); i++) { + output.writeMessage(5, partialMatchingImages_.get(i)); } unknownFields.writeTo(output); } @@ -2093,11 +2478,23 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getLabelBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, label_); + if (!getUrlBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); } - if (!getLanguageCodeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_); + if (score_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); + } + if (!getPageTitleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageTitle_); + } + for (int i = 0; i < fullMatchingImages_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, fullMatchingImages_.get(i)); + } + for (int i = 0; i < partialMatchingImages_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, partialMatchingImages_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2109,14 +2506,19 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel)) { + if (!(obj instanceof com.google.cloud.vision.v1p4beta1.WebDetection.WebPage)) { return super.equals(obj); } - com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel other = - (com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel) obj; + com.google.cloud.vision.v1p4beta1.WebDetection.WebPage other = + (com.google.cloud.vision.v1p4beta1.WebDetection.WebPage) obj; - if (!getLabel().equals(other.getLabel())) return false; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getUrl().equals(other.getUrl())) return false; + if (java.lang.Float.floatToIntBits(getScore()) + != java.lang.Float.floatToIntBits(other.getScore())) return false; + if (!getPageTitle().equals(other.getPageTitle())) return false; + if (!getFullMatchingImagesList().equals(other.getFullMatchingImagesList())) return false; + if (!getPartialMatchingImagesList().equals(other.getPartialMatchingImagesList())) + return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2128,80 +2530,90 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + LABEL_FIELD_NUMBER; - hash = (53 * hash) + getLabel().hashCode(); - hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; - hash = (53 * hash) + getLanguageCode().hashCode(); + hash = (37 * hash) + URL_FIELD_NUMBER; + hash = (53 * hash) + getUrl().hashCode(); + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + hash = (37 * hash) + PAGE_TITLE_FIELD_NUMBER; + hash = (53 * hash) + getPageTitle().hashCode(); + if (getFullMatchingImagesCount() > 0) { + hash = (37 * hash) + FULL_MATCHING_IMAGES_FIELD_NUMBER; + hash = (53 * hash) + getFullMatchingImagesList().hashCode(); + } + if (getPartialMatchingImagesCount() > 0) { + hash = (37 * hash) + PARTIAL_MATCHING_IMAGES_FIELD_NUMBER; + hash = (53 * hash) + getPartialMatchingImagesList().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseFrom( + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseFrom( + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseFrom( + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseFrom( + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseFrom(byte[] data) + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseFrom( + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseFrom( + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseFrom( + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseDelimitedFrom( + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseDelimitedFrom( + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseFrom( + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseFrom( + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -2219,7 +2631,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel prototype) { + com.google.cloud.vision.v1p4beta1.WebDetection.WebPage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -2238,32 +2650,32 @@ protected Builder newBuilderForType( * * *
-     * Label to provide extra metadata for the web detection.
+     * Metadata for web pages.
      * 
* - * Protobuf type {@code google.cloud.vision.v1p4beta1.WebDetection.WebLabel} + * Protobuf type {@code google.cloud.vision.v1p4beta1.WebDetection.WebPage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.WebDetection.WebLabel) - com.google.cloud.vision.v1p4beta1.WebDetection.WebLabelOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.WebDetection.WebPage) + com.google.cloud.vision.v1p4beta1.WebDetection.WebPageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.vision.v1p4beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_descriptor; + .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.vision.v1p4beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_fieldAccessorTable + .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.class, - com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder.class); + com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.class, + com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.Builder.class); } - // Construct using com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.newBuilder() + // Construct using com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -2274,33 +2686,50 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getFullMatchingImagesFieldBuilder(); + getPartialMatchingImagesFieldBuilder(); + } } @java.lang.Override public Builder clear() { super.clear(); - label_ = ""; + url_ = ""; - languageCode_ = ""; + score_ = 0F; + + pageTitle_ = ""; + if (fullMatchingImagesBuilder_ == null) { + fullMatchingImages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + fullMatchingImagesBuilder_.clear(); + } + if (partialMatchingImagesBuilder_ == null) { + partialMatchingImages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + partialMatchingImagesBuilder_.clear(); + } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.vision.v1p4beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_descriptor; + .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_descriptor; } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel getDefaultInstanceForType() { - return com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.getDefaultInstance(); + public com.google.cloud.vision.v1p4beta1.WebDetection.WebPage getDefaultInstanceForType() { + return com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel build() { - com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel result = buildPartial(); + public com.google.cloud.vision.v1p4beta1.WebDetection.WebPage build() { + com.google.cloud.vision.v1p4beta1.WebDetection.WebPage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2308,11 +2737,33 @@ public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel build() { } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel buildPartial() { - com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel result = - new com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel(this); - result.label_ = label_; - result.languageCode_ = languageCode_; + public com.google.cloud.vision.v1p4beta1.WebDetection.WebPage buildPartial() { + com.google.cloud.vision.v1p4beta1.WebDetection.WebPage result = + new com.google.cloud.vision.v1p4beta1.WebDetection.WebPage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.url_ = url_; + result.score_ = score_; + result.pageTitle_ = pageTitle_; + if (fullMatchingImagesBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + fullMatchingImages_ = java.util.Collections.unmodifiableList(fullMatchingImages_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.fullMatchingImages_ = fullMatchingImages_; + } else { + result.fullMatchingImages_ = fullMatchingImagesBuilder_.build(); + } + if (partialMatchingImagesBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + partialMatchingImages_ = java.util.Collections.unmodifiableList(partialMatchingImages_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.partialMatchingImages_ = partialMatchingImages_; + } else { + result.partialMatchingImages_ = partialMatchingImagesBuilder_.build(); + } + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -2354,25 +2805,82 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel) other); + if (other instanceof com.google.cloud.vision.v1p4beta1.WebDetection.WebPage) { + return mergeFrom((com.google.cloud.vision.v1p4beta1.WebDetection.WebPage) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel other) { - if (other == com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.getDefaultInstance()) + public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.WebDetection.WebPage other) { + if (other == com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.getDefaultInstance()) return this; - if (!other.getLabel().isEmpty()) { - label_ = other.label_; + if (!other.getUrl().isEmpty()) { + url_ = other.url_; onChanged(); } - if (!other.getLanguageCode().isEmpty()) { - languageCode_ = other.languageCode_; + if (other.getScore() != 0F) { + setScore(other.getScore()); + } + if (!other.getPageTitle().isEmpty()) { + pageTitle_ = other.pageTitle_; onChanged(); } + if (fullMatchingImagesBuilder_ == null) { + if (!other.fullMatchingImages_.isEmpty()) { + if (fullMatchingImages_.isEmpty()) { + fullMatchingImages_ = other.fullMatchingImages_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureFullMatchingImagesIsMutable(); + fullMatchingImages_.addAll(other.fullMatchingImages_); + } + onChanged(); + } + } else { + if (!other.fullMatchingImages_.isEmpty()) { + if (fullMatchingImagesBuilder_.isEmpty()) { + fullMatchingImagesBuilder_.dispose(); + fullMatchingImagesBuilder_ = null; + fullMatchingImages_ = other.fullMatchingImages_; + bitField0_ = (bitField0_ & ~0x00000008); + fullMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFullMatchingImagesFieldBuilder() + : null; + } else { + fullMatchingImagesBuilder_.addAllMessages(other.fullMatchingImages_); + } + } + } + if (partialMatchingImagesBuilder_ == null) { + if (!other.partialMatchingImages_.isEmpty()) { + if (partialMatchingImages_.isEmpty()) { + partialMatchingImages_ = other.partialMatchingImages_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensurePartialMatchingImagesIsMutable(); + partialMatchingImages_.addAll(other.partialMatchingImages_); + } + onChanged(); + } + } else { + if (!other.partialMatchingImages_.isEmpty()) { + if (partialMatchingImagesBuilder_.isEmpty()) { + partialMatchingImagesBuilder_.dispose(); + partialMatchingImagesBuilder_ = null; + partialMatchingImages_ = other.partialMatchingImages_; + bitField0_ = (bitField0_ & ~0x00000010); + partialMatchingImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPartialMatchingImagesFieldBuilder() + : null; + } else { + partialMatchingImagesBuilder_.addAllMessages(other.partialMatchingImages_); + } + } + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2388,12 +2896,12 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parsedMessage = null; + com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = - (com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel) e.getUnfinishedMessage(); + (com.google.cloud.vision.v1p4beta1.WebDetection.WebPage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2403,22 +2911,24 @@ public Builder mergeFrom( return this; } - private java.lang.Object label_ = ""; + private int bitField0_; + + private java.lang.Object url_ = ""; /** * * *
-       * Label for extra metadata.
+       * The result web page URL.
        * 
* - * string label = 1; + * string url = 1; */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; + public java.lang.String getUrl() { + java.lang.Object ref = url_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - label_ = s; + url_ = s; return s; } else { return (java.lang.String) ref; @@ -2428,17 +2938,17 @@ public java.lang.String getLabel() { * * *
-       * Label for extra metadata.
+       * The result web page URL.
        * 
* - * string label = 1; + * string url = 1; */ - public com.google.protobuf.ByteString getLabelBytes() { - java.lang.Object ref = label_; + public com.google.protobuf.ByteString getUrlBytes() { + java.lang.Object ref = url_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - label_ = b; + url_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -2448,17 +2958,17 @@ public com.google.protobuf.ByteString getLabelBytes() { * * *
-       * Label for extra metadata.
+       * The result web page URL.
        * 
* - * string label = 1; + * string url = 1; */ - public Builder setLabel(java.lang.String value) { + public Builder setUrl(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - label_ = value; + url_ = value; onChanged(); return this; } @@ -2466,14 +2976,14 @@ public Builder setLabel(java.lang.String value) { * * *
-       * Label for extra metadata.
+       * The result web page URL.
        * 
* - * string label = 1; + * string url = 1; */ - public Builder clearLabel() { + public Builder clearUrl() { - label_ = getDefaultInstance().getLabel(); + url_ = getDefaultInstance().getUrl(); onChanged(); return this; } @@ -2481,40 +2991,82 @@ public Builder clearLabel() { * * *
-       * Label for extra metadata.
+       * The result web page URL.
        * 
* - * string label = 1; + * string url = 1; */ - public Builder setLabelBytes(com.google.protobuf.ByteString value) { + public Builder setUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - label_ = value; + url_ = value; onChanged(); return this; } - private java.lang.Object languageCode_ = ""; + private float score_; /** * * *
-       * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
-       * For more information, see
-       * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+       * (Deprecated) Overall relevancy score for the web page.
        * 
* - * string language_code = 2; + * float score = 2; */ - public java.lang.String getLanguageCode() { - java.lang.Object ref = languageCode_; + public float getScore() { + return score_; + } + /** + * + * + *
+       * (Deprecated) Overall relevancy score for the web page.
+       * 
+ * + * float score = 2; + */ + public Builder setScore(float value) { + + score_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * (Deprecated) Overall relevancy score for the web page.
+       * 
+ * + * float score = 2; + */ + public Builder clearScore() { + + score_ = 0F; + onChanged(); + return this; + } + + private java.lang.Object pageTitle_ = ""; + /** + * + * + *
+       * Title for the web page, may contain HTML markups.
+       * 
+ * + * string page_title = 3; + */ + public java.lang.String getPageTitle() { + java.lang.Object ref = pageTitle_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - languageCode_ = s; + pageTitle_ = s; return s; } else { return (java.lang.String) ref; @@ -2524,19 +3076,17 @@ public java.lang.String getLanguageCode() { * * *
-       * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
-       * For more information, see
-       * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+       * Title for the web page, may contain HTML markups.
        * 
* - * string language_code = 2; + * string page_title = 3; */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { - java.lang.Object ref = languageCode_; + public com.google.protobuf.ByteString getPageTitleBytes() { + java.lang.Object ref = pageTitle_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - languageCode_ = b; + pageTitle_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -2546,19 +3096,17 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { * * *
-       * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
-       * For more information, see
-       * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+       * Title for the web page, may contain HTML markups.
        * 
* - * string language_code = 2; + * string page_title = 3; */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setPageTitle(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + pageTitle_ = value; onChanged(); return this; } @@ -2566,16 +3114,14 @@ public Builder setLanguageCode(java.lang.String value) { * * *
-       * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
-       * For more information, see
-       * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+       * Title for the web page, may contain HTML markups.
        * 
* - * string language_code = 2; + * string page_title = 3; */ - public Builder clearLanguageCode() { + public Builder clearPageTitle() { - languageCode_ = getDefaultInstance().getLanguageCode(); + pageTitle_ = getDefaultInstance().getPageTitle(); onChanged(); return this; } @@ -2583,2278 +3129,1732 @@ public Builder clearLanguageCode() { * * *
-       * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
-       * For more information, see
-       * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+       * Title for the web page, may contain HTML markups.
        * 
* - * string language_code = 2; + * string page_title = 3; */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setPageTitleBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + pageTitle_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } + private java.util.List + fullMatchingImages_ = java.util.Collections.emptyList(); - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + private void ensureFullMatchingImagesIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + fullMatchingImages_ = + new java.util.ArrayList( + fullMatchingImages_); + bitField0_ |= 0x00000008; + } } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.WebDetection.WebLabel) - } - - // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.WebDetection.WebLabel) - private static final com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel(); - } - - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebLabel parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebLabel(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface WebPageOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.WebDetection.WebPage) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * The result web page URL.
-     * 
- * - * string url = 1; - */ - java.lang.String getUrl(); - /** - * - * - *
-     * The result web page URL.
-     * 
- * - * string url = 1; - */ - com.google.protobuf.ByteString getUrlBytes(); - - /** - * - * - *
-     * (Deprecated) Overall relevancy score for the web page.
-     * 
- * - * float score = 2; - */ - float getScore(); + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> + fullMatchingImagesBuilder_; - /** - * - * - *
-     * Title for the web page, may contain HTML markups.
-     * 
- * - * string page_title = 3; - */ - java.lang.String getPageTitle(); - /** - * - * - *
-     * Title for the web page, may contain HTML markups.
-     * 
- * - * string page_title = 3; - */ - com.google.protobuf.ByteString getPageTitleBytes(); - - /** - * - * - *
-     * Fully matching images on the page.
-     * Can include resized copies of the query image.
-     * 
- * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * - */ - java.util.List - getFullMatchingImagesList(); - /** - * - * - *
-     * Fully matching images on the page.
-     * Can include resized copies of the query image.
-     * 
- * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * - */ - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getFullMatchingImages(int index); - /** - * - * - *
-     * Fully matching images on the page.
-     * Can include resized copies of the query image.
-     * 
- * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * - */ - int getFullMatchingImagesCount(); - /** - * - * - *
-     * Fully matching images on the page.
-     * Can include resized copies of the query image.
-     * 
- * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * - */ - java.util.List - getFullMatchingImagesOrBuilderList(); - /** - * - * - *
-     * Fully matching images on the page.
-     * Can include resized copies of the query image.
-     * 
- * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * - */ - com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder getFullMatchingImagesOrBuilder( - int index); - - /** - * - * - *
-     * Partial matching images on the page.
-     * Those images are similar enough to share some key-point features. For
-     * example an original image will likely have partial matching for its
-     * crops.
-     * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * - */ - java.util.List - getPartialMatchingImagesList(); - /** - * - * - *
-     * Partial matching images on the page.
-     * Those images are similar enough to share some key-point features. For
-     * example an original image will likely have partial matching for its
-     * crops.
-     * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * - */ - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getPartialMatchingImages(int index); - /** - * - * - *
-     * Partial matching images on the page.
-     * Those images are similar enough to share some key-point features. For
-     * example an original image will likely have partial matching for its
-     * crops.
-     * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * - */ - int getPartialMatchingImagesCount(); - /** - * - * - *
-     * Partial matching images on the page.
-     * Those images are similar enough to share some key-point features. For
-     * example an original image will likely have partial matching for its
-     * crops.
-     * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * - */ - java.util.List - getPartialMatchingImagesOrBuilderList(); - /** - * - * - *
-     * Partial matching images on the page.
-     * Those images are similar enough to share some key-point features. For
-     * example an original image will likely have partial matching for its
-     * crops.
-     * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * - */ - com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder - getPartialMatchingImagesOrBuilder(int index); - } - /** - * - * - *
-   * Metadata for web pages.
-   * 
- * - * Protobuf type {@code google.cloud.vision.v1p4beta1.WebDetection.WebPage} - */ - public static final class WebPage extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.WebDetection.WebPage) - WebPageOrBuilder { - private static final long serialVersionUID = 0L; - // Use WebPage.newBuilder() to construct. - private WebPage(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private WebPage() { - url_ = ""; - pageTitle_ = ""; - fullMatchingImages_ = java.util.Collections.emptyList(); - partialMatchingImages_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private WebPage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - url_ = s; - break; - } - case 21: - { - score_ = input.readFloat(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageTitle_ = s; - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - fullMatchingImages_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage>(); - mutable_bitField0_ |= 0x00000008; - } - fullMatchingImages_.add( - input.readMessage( - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.parser(), - extensionRegistry)); - break; - } - case 42: - { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - partialMatchingImages_ = - new java.util.ArrayList< - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage>(); - mutable_bitField0_ |= 0x00000010; - } - partialMatchingImages_.add( - input.readMessage( - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.parser(), - extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000008) != 0)) { - fullMatchingImages_ = java.util.Collections.unmodifiableList(fullMatchingImages_); - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - partialMatchingImages_ = java.util.Collections.unmodifiableList(partialMatchingImages_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.class, - com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.Builder.class); - } - - private int bitField0_; - public static final int URL_FIELD_NUMBER = 1; - private volatile java.lang.Object url_; - /** - * - * - *
-     * The result web page URL.
-     * 
- * - * string url = 1; - */ - public java.lang.String getUrl() { - java.lang.Object ref = url_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - url_ = s; - return s; - } - } - /** - * - * - *
-     * The result web page URL.
-     * 
- * - * string url = 1; - */ - public com.google.protobuf.ByteString getUrlBytes() { - java.lang.Object ref = url_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - url_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SCORE_FIELD_NUMBER = 2; - private float score_; - /** - * - * - *
-     * (Deprecated) Overall relevancy score for the web page.
-     * 
- * - * float score = 2; - */ - public float getScore() { - return score_; - } - - public static final int PAGE_TITLE_FIELD_NUMBER = 3; - private volatile java.lang.Object pageTitle_; - /** - * - * - *
-     * Title for the web page, may contain HTML markups.
-     * 
- * - * string page_title = 3; - */ - public java.lang.String getPageTitle() { - java.lang.Object ref = pageTitle_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageTitle_ = s; - return s; - } - } - /** - * - * - *
-     * Title for the web page, may contain HTML markups.
-     * 
- * - * string page_title = 3; - */ - public com.google.protobuf.ByteString getPageTitleBytes() { - java.lang.Object ref = pageTitle_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageTitle_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FULL_MATCHING_IMAGES_FIELD_NUMBER = 4; - private java.util.List - fullMatchingImages_; - /** - * - * - *
-     * Fully matching images on the page.
-     * Can include resized copies of the query image.
-     * 
- * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * - */ - public java.util.List - getFullMatchingImagesList() { - return fullMatchingImages_; - } - /** - * - * - *
-     * Fully matching images on the page.
-     * Can include resized copies of the query image.
-     * 
- * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * - */ - public java.util.List< - ? extends com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> - getFullMatchingImagesOrBuilderList() { - return fullMatchingImages_; - } - /** - * - * - *
-     * Fully matching images on the page.
-     * Can include resized copies of the query image.
-     * 
- * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * - */ - public int getFullMatchingImagesCount() { - return fullMatchingImages_.size(); - } - /** - * - * - *
-     * Fully matching images on the page.
-     * Can include resized copies of the query image.
-     * 
- * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * - */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getFullMatchingImages( - int index) { - return fullMatchingImages_.get(index); - } - /** - * - * - *
-     * Fully matching images on the page.
-     * Can include resized copies of the query image.
-     * 
- * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * - */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder - getFullMatchingImagesOrBuilder(int index) { - return fullMatchingImages_.get(index); - } - - public static final int PARTIAL_MATCHING_IMAGES_FIELD_NUMBER = 5; - private java.util.List - partialMatchingImages_; - /** - * - * - *
-     * Partial matching images on the page.
-     * Those images are similar enough to share some key-point features. For
-     * example an original image will likely have partial matching for its
-     * crops.
-     * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * - */ - public java.util.List - getPartialMatchingImagesList() { - return partialMatchingImages_; - } - /** - * - * - *
-     * Partial matching images on the page.
-     * Those images are similar enough to share some key-point features. For
-     * example an original image will likely have partial matching for its
-     * crops.
-     * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * - */ - public java.util.List< - ? extends com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> - getPartialMatchingImagesOrBuilderList() { - return partialMatchingImages_; - } - /** - * - * - *
-     * Partial matching images on the page.
-     * Those images are similar enough to share some key-point features. For
-     * example an original image will likely have partial matching for its
-     * crops.
-     * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * - */ - public int getPartialMatchingImagesCount() { - return partialMatchingImages_.size(); - } - /** - * - * - *
-     * Partial matching images on the page.
-     * Those images are similar enough to share some key-point features. For
-     * example an original image will likely have partial matching for its
-     * crops.
-     * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * - */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getPartialMatchingImages( - int index) { - return partialMatchingImages_.get(index); - } - /** - * - * - *
-     * Partial matching images on the page.
-     * Those images are similar enough to share some key-point features. For
-     * example an original image will likely have partial matching for its
-     * crops.
-     * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * - */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder - getPartialMatchingImagesOrBuilder(int index) { - return partialMatchingImages_.get(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getUrlBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); - } - if (score_ != 0F) { - output.writeFloat(2, score_); - } - if (!getPageTitleBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageTitle_); - } - for (int i = 0; i < fullMatchingImages_.size(); i++) { - output.writeMessage(4, fullMatchingImages_.get(i)); - } - for (int i = 0; i < partialMatchingImages_.size(); i++) { - output.writeMessage(5, partialMatchingImages_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getUrlBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); - } - if (score_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); - } - if (!getPageTitleBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageTitle_); - } - for (int i = 0; i < fullMatchingImages_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(4, fullMatchingImages_.get(i)); - } - for (int i = 0; i < partialMatchingImages_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, partialMatchingImages_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.vision.v1p4beta1.WebDetection.WebPage)) { - return super.equals(obj); - } - com.google.cloud.vision.v1p4beta1.WebDetection.WebPage other = - (com.google.cloud.vision.v1p4beta1.WebDetection.WebPage) obj; - - if (!getUrl().equals(other.getUrl())) return false; - if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits(other.getScore())) return false; - if (!getPageTitle().equals(other.getPageTitle())) return false; - if (!getFullMatchingImagesList().equals(other.getFullMatchingImagesList())) return false; - if (!getPartialMatchingImagesList().equals(other.getPartialMatchingImagesList())) - return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + /** + * + * + *
+       * Fully matching images on the page.
+       * Can include resized copies of the query image.
+       * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * + */ + public java.util.List + getFullMatchingImagesList() { + if (fullMatchingImagesBuilder_ == null) { + return java.util.Collections.unmodifiableList(fullMatchingImages_); + } else { + return fullMatchingImagesBuilder_.getMessageList(); + } } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + URL_FIELD_NUMBER; - hash = (53 * hash) + getUrl().hashCode(); - hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); - hash = (37 * hash) + PAGE_TITLE_FIELD_NUMBER; - hash = (53 * hash) + getPageTitle().hashCode(); - if (getFullMatchingImagesCount() > 0) { - hash = (37 * hash) + FULL_MATCHING_IMAGES_FIELD_NUMBER; - hash = (53 * hash) + getFullMatchingImagesList().hashCode(); + /** + * + * + *
+       * Fully matching images on the page.
+       * Can include resized copies of the query image.
+       * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * + */ + public int getFullMatchingImagesCount() { + if (fullMatchingImagesBuilder_ == null) { + return fullMatchingImages_.size(); + } else { + return fullMatchingImagesBuilder_.getCount(); + } } - if (getPartialMatchingImagesCount() > 0) { - hash = (37 * hash) + PARTIAL_MATCHING_IMAGES_FIELD_NUMBER; - hash = (53 * hash) + getPartialMatchingImagesList().hashCode(); + /** + * + * + *
+       * Fully matching images on the page.
+       * Can include resized copies of the query image.
+       * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * + */ + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getFullMatchingImages( + int index) { + if (fullMatchingImagesBuilder_ == null) { + return fullMatchingImages_.get(index); + } else { + return fullMatchingImagesBuilder_.getMessage(index); + } } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.vision.v1p4beta1.WebDetection.WebPage prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * Metadata for web pages.
-     * 
- * - * Protobuf type {@code google.cloud.vision.v1p4beta1.WebDetection.WebPage} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.WebDetection.WebPage) - com.google.cloud.vision.v1p4beta1.WebDetection.WebPageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_descriptor; + /** + * + * + *
+       * Fully matching images on the page.
+       * Can include resized copies of the query image.
+       * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * + */ + public Builder setFullMatchingImages( + int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { + if (fullMatchingImagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFullMatchingImagesIsMutable(); + fullMatchingImages_.set(index, value); + onChanged(); + } else { + fullMatchingImagesBuilder_.setMessage(index, value); + } + return this; } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.class, - com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.Builder.class); + /** + * + * + *
+       * Fully matching images on the page.
+       * Can include resized copies of the query image.
+       * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * + */ + public Builder setFullMatchingImages( + int index, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { + if (fullMatchingImagesBuilder_ == null) { + ensureFullMatchingImagesIsMutable(); + fullMatchingImages_.set(index, builderForValue.build()); + onChanged(); + } else { + fullMatchingImagesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Fully matching images on the page.
+       * Can include resized copies of the query image.
+       * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * + */ + public Builder addFullMatchingImages( + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { + if (fullMatchingImagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFullMatchingImagesIsMutable(); + fullMatchingImages_.add(value); + onChanged(); + } else { + fullMatchingImagesBuilder_.addMessage(value); + } + return this; } - - // Construct using com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + /** + * + * + *
+       * Fully matching images on the page.
+       * Can include resized copies of the query image.
+       * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * + */ + public Builder addFullMatchingImages( + int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { + if (fullMatchingImagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFullMatchingImagesIsMutable(); + fullMatchingImages_.add(index, value); + onChanged(); + } else { + fullMatchingImagesBuilder_.addMessage(index, value); + } + return this; } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + /** + * + * + *
+       * Fully matching images on the page.
+       * Can include resized copies of the query image.
+       * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * + */ + public Builder addFullMatchingImages( + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { + if (fullMatchingImagesBuilder_ == null) { + ensureFullMatchingImagesIsMutable(); + fullMatchingImages_.add(builderForValue.build()); + onChanged(); + } else { + fullMatchingImagesBuilder_.addMessage(builderForValue.build()); + } + return this; } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getFullMatchingImagesFieldBuilder(); - getPartialMatchingImagesFieldBuilder(); + /** + * + * + *
+       * Fully matching images on the page.
+       * Can include resized copies of the query image.
+       * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * + */ + public Builder addFullMatchingImages( + int index, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { + if (fullMatchingImagesBuilder_ == null) { + ensureFullMatchingImagesIsMutable(); + fullMatchingImages_.add(index, builderForValue.build()); + onChanged(); + } else { + fullMatchingImagesBuilder_.addMessage(index, builderForValue.build()); } + return this; } - - @java.lang.Override - public Builder clear() { - super.clear(); - url_ = ""; - - score_ = 0F; - - pageTitle_ = ""; - + /** + * + * + *
+       * Fully matching images on the page.
+       * Can include resized copies of the query image.
+       * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * + */ + public Builder addAllFullMatchingImages( + java.lang.Iterable + values) { + if (fullMatchingImagesBuilder_ == null) { + ensureFullMatchingImagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fullMatchingImages_); + onChanged(); + } else { + fullMatchingImagesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * Fully matching images on the page.
+       * Can include resized copies of the query image.
+       * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * + */ + public Builder clearFullMatchingImages() { if (fullMatchingImagesBuilder_ == null) { fullMatchingImages_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); } else { fullMatchingImagesBuilder_.clear(); } - if (partialMatchingImagesBuilder_ == null) { - partialMatchingImages_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + /** + * + * + *
+       * Fully matching images on the page.
+       * Can include resized copies of the query image.
+       * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * + */ + public Builder removeFullMatchingImages(int index) { + if (fullMatchingImagesBuilder_ == null) { + ensureFullMatchingImagesIsMutable(); + fullMatchingImages_.remove(index); + onChanged(); } else { - partialMatchingImagesBuilder_.clear(); + fullMatchingImagesBuilder_.remove(index); } return this; } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vision.v1p4beta1.WebDetectionProto - .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_descriptor; - } - - @java.lang.Override - public com.google.cloud.vision.v1p4beta1.WebDetection.WebPage getDefaultInstanceForType() { - return com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.vision.v1p4beta1.WebDetection.WebPage build() { - com.google.cloud.vision.v1p4beta1.WebDetection.WebPage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + /** + * + * + *
+       * Fully matching images on the page.
+       * Can include resized copies of the query image.
+       * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * + */ + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder + getFullMatchingImagesBuilder(int index) { + return getFullMatchingImagesFieldBuilder().getBuilder(index); } - - @java.lang.Override - public com.google.cloud.vision.v1p4beta1.WebDetection.WebPage buildPartial() { - com.google.cloud.vision.v1p4beta1.WebDetection.WebPage result = - new com.google.cloud.vision.v1p4beta1.WebDetection.WebPage(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.url_ = url_; - result.score_ = score_; - result.pageTitle_ = pageTitle_; + /** + * + * + *
+       * Fully matching images on the page.
+       * Can include resized copies of the query image.
+       * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * + */ + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder + getFullMatchingImagesOrBuilder(int index) { if (fullMatchingImagesBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - fullMatchingImages_ = java.util.Collections.unmodifiableList(fullMatchingImages_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.fullMatchingImages_ = fullMatchingImages_; - } else { - result.fullMatchingImages_ = fullMatchingImagesBuilder_.build(); - } - if (partialMatchingImagesBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - partialMatchingImages_ = java.util.Collections.unmodifiableList(partialMatchingImages_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.partialMatchingImages_ = partialMatchingImages_; + return fullMatchingImages_.get(index); } else { - result.partialMatchingImages_ = partialMatchingImagesBuilder_.build(); + return fullMatchingImagesBuilder_.getMessageOrBuilder(index); } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; } - - @java.lang.Override - public Builder clone() { - return super.clone(); + /** + * + * + *
+       * Fully matching images on the page.
+       * Can include resized copies of the query image.
+       * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * + */ + public java.util.List< + ? extends com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> + getFullMatchingImagesOrBuilderList() { + if (fullMatchingImagesBuilder_ != null) { + return fullMatchingImagesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(fullMatchingImages_); + } } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); + /** + * + * + *
+       * Fully matching images on the page.
+       * Can include resized copies of the query image.
+       * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * + */ + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder + addFullMatchingImagesBuilder() { + return getFullMatchingImagesFieldBuilder() + .addBuilder( + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + /** + * + * + *
+       * Fully matching images on the page.
+       * Can include resized copies of the query image.
+       * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * + */ + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder + addFullMatchingImagesBuilder(int index) { + return getFullMatchingImagesFieldBuilder() + .addBuilder( + index, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + /** + * + * + *
+       * Fully matching images on the page.
+       * Can include resized copies of the query image.
+       * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * + */ + public java.util.List + getFullMatchingImagesBuilderList() { + return getFullMatchingImagesFieldBuilder().getBuilderList(); } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> + getFullMatchingImagesFieldBuilder() { + if (fullMatchingImagesBuilder_ == null) { + fullMatchingImagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder>( + fullMatchingImages_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + fullMatchingImages_ = null; + } + return fullMatchingImagesBuilder_; } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } + private java.util.List + partialMatchingImages_ = java.util.Collections.emptyList(); - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.vision.v1p4beta1.WebDetection.WebPage) { - return mergeFrom((com.google.cloud.vision.v1p4beta1.WebDetection.WebPage) other); - } else { - super.mergeFrom(other); - return this; + private void ensurePartialMatchingImagesIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + partialMatchingImages_ = + new java.util.ArrayList( + partialMatchingImages_); + bitField0_ |= 0x00000010; } } - public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.WebDetection.WebPage other) { - if (other == com.google.cloud.vision.v1p4beta1.WebDetection.WebPage.getDefaultInstance()) - return this; - if (!other.getUrl().isEmpty()) { - url_ = other.url_; - onChanged(); - } - if (other.getScore() != 0F) { - setScore(other.getScore()); - } - if (!other.getPageTitle().isEmpty()) { - pageTitle_ = other.pageTitle_; - onChanged(); - } - if (fullMatchingImagesBuilder_ == null) { - if (!other.fullMatchingImages_.isEmpty()) { - if (fullMatchingImages_.isEmpty()) { - fullMatchingImages_ = other.fullMatchingImages_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureFullMatchingImagesIsMutable(); - fullMatchingImages_.addAll(other.fullMatchingImages_); - } - onChanged(); - } - } else { - if (!other.fullMatchingImages_.isEmpty()) { - if (fullMatchingImagesBuilder_.isEmpty()) { - fullMatchingImagesBuilder_.dispose(); - fullMatchingImagesBuilder_ = null; - fullMatchingImages_ = other.fullMatchingImages_; - bitField0_ = (bitField0_ & ~0x00000008); - fullMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFullMatchingImagesFieldBuilder() - : null; - } else { - fullMatchingImagesBuilder_.addAllMessages(other.fullMatchingImages_); - } - } - } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> + partialMatchingImagesBuilder_; + + /** + * + * + *
+       * Partial matching images on the page.
+       * Those images are similar enough to share some key-point features. For
+       * example an original image will likely have partial matching for its
+       * crops.
+       * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * + */ + public java.util.List + getPartialMatchingImagesList() { if (partialMatchingImagesBuilder_ == null) { - if (!other.partialMatchingImages_.isEmpty()) { - if (partialMatchingImages_.isEmpty()) { - partialMatchingImages_ = other.partialMatchingImages_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensurePartialMatchingImagesIsMutable(); - partialMatchingImages_.addAll(other.partialMatchingImages_); - } - onChanged(); - } + return java.util.Collections.unmodifiableList(partialMatchingImages_); } else { - if (!other.partialMatchingImages_.isEmpty()) { - if (partialMatchingImagesBuilder_.isEmpty()) { - partialMatchingImagesBuilder_.dispose(); - partialMatchingImagesBuilder_ = null; - partialMatchingImages_ = other.partialMatchingImages_; - bitField0_ = (bitField0_ & ~0x00000010); - partialMatchingImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPartialMatchingImagesFieldBuilder() - : null; - } else { - partialMatchingImagesBuilder_.addAllMessages(other.partialMatchingImages_); - } - } + return partialMatchingImagesBuilder_.getMessageList(); } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.vision.v1p4beta1.WebDetection.WebPage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vision.v1p4beta1.WebDetection.WebPage) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } + /** + * + * + *
+       * Partial matching images on the page.
+       * Those images are similar enough to share some key-point features. For
+       * example an original image will likely have partial matching for its
+       * crops.
+       * 
+ * + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * + */ + public int getPartialMatchingImagesCount() { + if (partialMatchingImagesBuilder_ == null) { + return partialMatchingImages_.size(); + } else { + return partialMatchingImagesBuilder_.getCount(); } - return this; } - - private int bitField0_; - - private java.lang.Object url_ = ""; /** * * *
-       * The result web page URL.
+       * Partial matching images on the page.
+       * Those images are similar enough to share some key-point features. For
+       * example an original image will likely have partial matching for its
+       * crops.
        * 
* - * string url = 1; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public java.lang.String getUrl() { - java.lang.Object ref = url_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - url_ = s; - return s; + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getPartialMatchingImages( + int index) { + if (partialMatchingImagesBuilder_ == null) { + return partialMatchingImages_.get(index); } else { - return (java.lang.String) ref; + return partialMatchingImagesBuilder_.getMessage(index); } } /** * * *
-       * The result web page URL.
+       * Partial matching images on the page.
+       * Those images are similar enough to share some key-point features. For
+       * example an original image will likely have partial matching for its
+       * crops.
        * 
* - * string url = 1; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public com.google.protobuf.ByteString getUrlBytes() { - java.lang.Object ref = url_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - url_ = b; - return b; + public Builder setPartialMatchingImages( + int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { + if (partialMatchingImagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePartialMatchingImagesIsMutable(); + partialMatchingImages_.set(index, value); + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + partialMatchingImagesBuilder_.setMessage(index, value); } + return this; } /** * * *
-       * The result web page URL.
+       * Partial matching images on the page.
+       * Those images are similar enough to share some key-point features. For
+       * example an original image will likely have partial matching for its
+       * crops.
        * 
* - * string url = 1; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public Builder setUrl(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder setPartialMatchingImages( + int index, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { + if (partialMatchingImagesBuilder_ == null) { + ensurePartialMatchingImagesIsMutable(); + partialMatchingImages_.set(index, builderForValue.build()); + onChanged(); + } else { + partialMatchingImagesBuilder_.setMessage(index, builderForValue.build()); } - - url_ = value; - onChanged(); return this; } /** * * *
-       * The result web page URL.
+       * Partial matching images on the page.
+       * Those images are similar enough to share some key-point features. For
+       * example an original image will likely have partial matching for its
+       * crops.
        * 
* - * string url = 1; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public Builder clearUrl() { - - url_ = getDefaultInstance().getUrl(); - onChanged(); + public Builder addPartialMatchingImages( + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { + if (partialMatchingImagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePartialMatchingImagesIsMutable(); + partialMatchingImages_.add(value); + onChanged(); + } else { + partialMatchingImagesBuilder_.addMessage(value); + } return this; } /** * * *
-       * The result web page URL.
+       * Partial matching images on the page.
+       * Those images are similar enough to share some key-point features. For
+       * example an original image will likely have partial matching for its
+       * crops.
        * 
* - * string url = 1; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public Builder setUrlBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder addPartialMatchingImages( + int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { + if (partialMatchingImagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePartialMatchingImagesIsMutable(); + partialMatchingImages_.add(index, value); + onChanged(); + } else { + partialMatchingImagesBuilder_.addMessage(index, value); } - checkByteStringIsUtf8(value); - - url_ = value; - onChanged(); return this; } - - private float score_; /** * * *
-       * (Deprecated) Overall relevancy score for the web page.
+       * Partial matching images on the page.
+       * Those images are similar enough to share some key-point features. For
+       * example an original image will likely have partial matching for its
+       * crops.
        * 
* - * float score = 2; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public float getScore() { - return score_; + public Builder addPartialMatchingImages( + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { + if (partialMatchingImagesBuilder_ == null) { + ensurePartialMatchingImagesIsMutable(); + partialMatchingImages_.add(builderForValue.build()); + onChanged(); + } else { + partialMatchingImagesBuilder_.addMessage(builderForValue.build()); + } + return this; } /** * * *
-       * (Deprecated) Overall relevancy score for the web page.
+       * Partial matching images on the page.
+       * Those images are similar enough to share some key-point features. For
+       * example an original image will likely have partial matching for its
+       * crops.
        * 
* - * float score = 2; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public Builder setScore(float value) { - - score_ = value; - onChanged(); + public Builder addPartialMatchingImages( + int index, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { + if (partialMatchingImagesBuilder_ == null) { + ensurePartialMatchingImagesIsMutable(); + partialMatchingImages_.add(index, builderForValue.build()); + onChanged(); + } else { + partialMatchingImagesBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** * * *
-       * (Deprecated) Overall relevancy score for the web page.
+       * Partial matching images on the page.
+       * Those images are similar enough to share some key-point features. For
+       * example an original image will likely have partial matching for its
+       * crops.
        * 
* - * float score = 2; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public Builder clearScore() { - - score_ = 0F; - onChanged(); + public Builder addAllPartialMatchingImages( + java.lang.Iterable + values) { + if (partialMatchingImagesBuilder_ == null) { + ensurePartialMatchingImagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partialMatchingImages_); + onChanged(); + } else { + partialMatchingImagesBuilder_.addAllMessages(values); + } return this; } - - private java.lang.Object pageTitle_ = ""; /** * * *
-       * Title for the web page, may contain HTML markups.
+       * Partial matching images on the page.
+       * Those images are similar enough to share some key-point features. For
+       * example an original image will likely have partial matching for its
+       * crops.
        * 
* - * string page_title = 3; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public java.lang.String getPageTitle() { - java.lang.Object ref = pageTitle_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageTitle_ = s; - return s; + public Builder clearPartialMatchingImages() { + if (partialMatchingImagesBuilder_ == null) { + partialMatchingImages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); } else { - return (java.lang.String) ref; + partialMatchingImagesBuilder_.clear(); } + return this; } /** * * *
-       * Title for the web page, may contain HTML markups.
+       * Partial matching images on the page.
+       * Those images are similar enough to share some key-point features. For
+       * example an original image will likely have partial matching for its
+       * crops.
        * 
* - * string page_title = 3; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public com.google.protobuf.ByteString getPageTitleBytes() { - java.lang.Object ref = pageTitle_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageTitle_ = b; - return b; + public Builder removePartialMatchingImages(int index) { + if (partialMatchingImagesBuilder_ == null) { + ensurePartialMatchingImagesIsMutable(); + partialMatchingImages_.remove(index); + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + partialMatchingImagesBuilder_.remove(index); } + return this; } /** * * *
-       * Title for the web page, may contain HTML markups.
+       * Partial matching images on the page.
+       * Those images are similar enough to share some key-point features. For
+       * example an original image will likely have partial matching for its
+       * crops.
        * 
* - * string page_title = 3; - */ - public Builder setPageTitle(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageTitle_ = value; - onChanged(); - return this; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * + */ + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder + getPartialMatchingImagesBuilder(int index) { + return getPartialMatchingImagesFieldBuilder().getBuilder(index); } /** * * *
-       * Title for the web page, may contain HTML markups.
+       * Partial matching images on the page.
+       * Those images are similar enough to share some key-point features. For
+       * example an original image will likely have partial matching for its
+       * crops.
        * 
* - * string page_title = 3; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public Builder clearPageTitle() { - - pageTitle_ = getDefaultInstance().getPageTitle(); - onChanged(); - return this; + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder + getPartialMatchingImagesOrBuilder(int index) { + if (partialMatchingImagesBuilder_ == null) { + return partialMatchingImages_.get(index); + } else { + return partialMatchingImagesBuilder_.getMessageOrBuilder(index); + } } /** * * *
-       * Title for the web page, may contain HTML markups.
+       * Partial matching images on the page.
+       * Those images are similar enough to share some key-point features. For
+       * example an original image will likely have partial matching for its
+       * crops.
        * 
* - * string page_title = 3; + * + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; + * */ - public Builder setPageTitleBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageTitle_ = value; - onChanged(); - return this; - } - - private java.util.List - fullMatchingImages_ = java.util.Collections.emptyList(); - - private void ensureFullMatchingImagesIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - fullMatchingImages_ = - new java.util.ArrayList( - fullMatchingImages_); - bitField0_ |= 0x00000008; + public java.util.List< + ? extends com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> + getPartialMatchingImagesOrBuilderList() { + if (partialMatchingImagesBuilder_ != null) { + return partialMatchingImagesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(partialMatchingImages_); } } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> - fullMatchingImagesBuilder_; - /** * * *
-       * Fully matching images on the page.
-       * Can include resized copies of the query image.
+       * Partial matching images on the page.
+       * Those images are similar enough to share some key-point features. For
+       * example an original image will likely have partial matching for its
+       * crops.
        * 
* * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; * */ - public java.util.List - getFullMatchingImagesList() { - if (fullMatchingImagesBuilder_ == null) { - return java.util.Collections.unmodifiableList(fullMatchingImages_); - } else { - return fullMatchingImagesBuilder_.getMessageList(); - } + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder + addPartialMatchingImagesBuilder() { + return getPartialMatchingImagesFieldBuilder() + .addBuilder( + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); } /** * * *
-       * Fully matching images on the page.
-       * Can include resized copies of the query image.
+       * Partial matching images on the page.
+       * Those images are similar enough to share some key-point features. For
+       * example an original image will likely have partial matching for its
+       * crops.
        * 
* * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; * */ - public int getFullMatchingImagesCount() { - if (fullMatchingImagesBuilder_ == null) { - return fullMatchingImages_.size(); - } else { - return fullMatchingImagesBuilder_.getCount(); - } + public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder + addPartialMatchingImagesBuilder(int index) { + return getPartialMatchingImagesFieldBuilder() + .addBuilder( + index, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); } /** * * *
-       * Fully matching images on the page.
-       * Can include resized copies of the query image.
+       * Partial matching images on the page.
+       * Those images are similar enough to share some key-point features. For
+       * example an original image will likely have partial matching for its
+       * crops.
        * 
* * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; + * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; * */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getFullMatchingImages( - int index) { - if (fullMatchingImagesBuilder_ == null) { - return fullMatchingImages_.get(index); - } else { - return fullMatchingImagesBuilder_.getMessage(index); + public java.util.List + getPartialMatchingImagesBuilderList() { + return getPartialMatchingImagesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> + getPartialMatchingImagesFieldBuilder() { + if (partialMatchingImagesBuilder_ == null) { + partialMatchingImagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, + com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder>( + partialMatchingImages_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + partialMatchingImages_ = null; } + return partialMatchingImagesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.WebDetection.WebPage) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.WebDetection.WebPage) + private static final com.google.cloud.vision.v1p4beta1.WebDetection.WebPage DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.WebDetection.WebPage(); + } + + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebPage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebPage(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.vision.v1p4beta1.WebDetection.WebPage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface WebLabelOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.WebDetection.WebLabel) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Label for extra metadata.
+     * 
+ * + * string label = 1; + */ + java.lang.String getLabel(); + /** + * + * + *
+     * Label for extra metadata.
+     * 
+ * + * string label = 1; + */ + com.google.protobuf.ByteString getLabelBytes(); + + /** + * + * + *
+     * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+     * 
+ * + * string language_code = 2; + */ + java.lang.String getLanguageCode(); + /** + * + * + *
+     * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+     * 
+ * + * string language_code = 2; + */ + com.google.protobuf.ByteString getLanguageCodeBytes(); + } + /** + * + * + *
+   * Label to provide extra metadata for the web detection.
+   * 
+ * + * Protobuf type {@code google.cloud.vision.v1p4beta1.WebDetection.WebLabel} + */ + public static final class WebLabel extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.WebDetection.WebLabel) + WebLabelOrBuilder { + private static final long serialVersionUID = 0L; + // Use WebLabel.newBuilder() to construct. + private WebLabel(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private WebLabel() { + label_ = ""; + languageCode_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private WebLabel( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); } - /** - * - * - *
-       * Fully matching images on the page.
-       * Can include resized copies of the query image.
-       * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * - */ - public Builder setFullMatchingImages( - int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { - if (fullMatchingImagesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + label_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + languageCode_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } - ensureFullMatchingImagesIsMutable(); - fullMatchingImages_.set(index, value); - onChanged(); - } else { - fullMatchingImagesBuilder_.setMessage(index, value); } - return this; + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); } - /** - * - * - *
-       * Fully matching images on the page.
-       * Can include resized copies of the query image.
-       * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * - */ - public Builder setFullMatchingImages( - int index, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { - if (fullMatchingImagesBuilder_ == null) { - ensureFullMatchingImagesIsMutable(); - fullMatchingImages_.set(index, builderForValue.build()); - onChanged(); - } else { - fullMatchingImagesBuilder_.setMessage(index, builderForValue.build()); - } - return this; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vision.v1p4beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.class, + com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder.class); + } + + public static final int LABEL_FIELD_NUMBER = 1; + private volatile java.lang.Object label_; + /** + * + * + *
+     * Label for extra metadata.
+     * 
+ * + * string label = 1; + */ + public java.lang.String getLabel() { + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + label_ = s; + return s; } - /** - * - * - *
-       * Fully matching images on the page.
-       * Can include resized copies of the query image.
-       * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * - */ - public Builder addFullMatchingImages( - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { - if (fullMatchingImagesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFullMatchingImagesIsMutable(); - fullMatchingImages_.add(value); - onChanged(); - } else { - fullMatchingImagesBuilder_.addMessage(value); - } - return this; + } + /** + * + * + *
+     * Label for extra metadata.
+     * 
+ * + * string label = 1; + */ + public com.google.protobuf.ByteString getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - /** - * - * - *
-       * Fully matching images on the page.
-       * Can include resized copies of the query image.
-       * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * - */ - public Builder addFullMatchingImages( - int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { - if (fullMatchingImagesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFullMatchingImagesIsMutable(); - fullMatchingImages_.add(index, value); - onChanged(); - } else { - fullMatchingImagesBuilder_.addMessage(index, value); - } - return this; + } + + public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; + private volatile java.lang.Object languageCode_; + /** + * + * + *
+     * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+     * 
+ * + * string language_code = 2; + */ + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } + } + /** + * + * + *
+     * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
+     * For more information, see
+     * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+     * 
+ * + * string language_code = 2; + */ + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - /** - * - * - *
-       * Fully matching images on the page.
-       * Can include resized copies of the query image.
-       * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * - */ - public Builder addFullMatchingImages( - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { - if (fullMatchingImagesBuilder_ == null) { - ensureFullMatchingImagesIsMutable(); - fullMatchingImages_.add(builderForValue.build()); - onChanged(); - } else { - fullMatchingImagesBuilder_.addMessage(builderForValue.build()); - } - return this; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getLabelBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, label_); } - /** - * - * - *
-       * Fully matching images on the page.
-       * Can include resized copies of the query image.
-       * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * - */ - public Builder addFullMatchingImages( - int index, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { - if (fullMatchingImagesBuilder_ == null) { - ensureFullMatchingImagesIsMutable(); - fullMatchingImages_.add(index, builderForValue.build()); - onChanged(); - } else { - fullMatchingImagesBuilder_.addMessage(index, builderForValue.build()); - } - return this; + if (!getLanguageCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_); } - /** - * - * - *
-       * Fully matching images on the page.
-       * Can include resized copies of the query image.
-       * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * - */ - public Builder addAllFullMatchingImages( - java.lang.Iterable - values) { - if (fullMatchingImagesBuilder_ == null) { - ensureFullMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fullMatchingImages_); - onChanged(); - } else { - fullMatchingImagesBuilder_.addAllMessages(values); - } - return this; + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getLabelBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, label_); } - /** - * - * - *
-       * Fully matching images on the page.
-       * Can include resized copies of the query image.
-       * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * - */ - public Builder clearFullMatchingImages() { - if (fullMatchingImagesBuilder_ == null) { - fullMatchingImages_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - fullMatchingImagesBuilder_.clear(); - } - return this; + if (!getLanguageCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_); } - /** - * - * - *
-       * Fully matching images on the page.
-       * Can include resized copies of the query image.
-       * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * - */ - public Builder removeFullMatchingImages(int index) { - if (fullMatchingImagesBuilder_ == null) { - ensureFullMatchingImagesIsMutable(); - fullMatchingImages_.remove(index); - onChanged(); - } else { - fullMatchingImagesBuilder_.remove(index); - } - return this; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - /** - * - * - *
-       * Fully matching images on the page.
-       * Can include resized copies of the query image.
-       * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * - */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder - getFullMatchingImagesBuilder(int index) { - return getFullMatchingImagesFieldBuilder().getBuilder(index); + if (!(obj instanceof com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel)) { + return super.equals(obj); } - /** - * - * - *
-       * Fully matching images on the page.
-       * Can include resized copies of the query image.
-       * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * - */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder - getFullMatchingImagesOrBuilder(int index) { - if (fullMatchingImagesBuilder_ == null) { - return fullMatchingImages_.get(index); - } else { - return fullMatchingImagesBuilder_.getMessageOrBuilder(index); - } + com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel other = + (com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel) obj; + + if (!getLabel().equals(other.getLabel())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - /** - * - * - *
-       * Fully matching images on the page.
-       * Can include resized copies of the query image.
-       * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * - */ - public java.util.List< - ? extends com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> - getFullMatchingImagesOrBuilderList() { - if (fullMatchingImagesBuilder_ != null) { - return fullMatchingImagesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(fullMatchingImages_); - } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LABEL_FIELD_NUMBER; + hash = (53 * hash) + getLabel().hashCode(); + hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getLanguageCode().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Label to provide extra metadata for the web detection.
+     * 
+ * + * Protobuf type {@code google.cloud.vision.v1p4beta1.WebDetection.WebLabel} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.WebDetection.WebLabel) + com.google.cloud.vision.v1p4beta1.WebDetection.WebLabelOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vision.v1p4beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_descriptor; } - /** - * - * - *
-       * Fully matching images on the page.
-       * Can include resized copies of the query image.
-       * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * - */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder - addFullMatchingImagesBuilder() { - return getFullMatchingImagesFieldBuilder() - .addBuilder( - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vision.v1p4beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.class, + com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.Builder.class); } - /** - * - * - *
-       * Fully matching images on the page.
-       * Can include resized copies of the query image.
-       * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * - */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder - addFullMatchingImagesBuilder(int index) { - return getFullMatchingImagesFieldBuilder() - .addBuilder( - index, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); + + // Construct using com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); } - /** - * - * - *
-       * Fully matching images on the page.
-       * Can include resized copies of the query image.
-       * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage full_matching_images = 4; - * - */ - public java.util.List - getFullMatchingImagesBuilderList() { - return getFullMatchingImagesFieldBuilder().getBuilderList(); + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> - getFullMatchingImagesFieldBuilder() { - if (fullMatchingImagesBuilder_ == null) { - fullMatchingImagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder>( - fullMatchingImages_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - fullMatchingImages_ = null; - } - return fullMatchingImagesBuilder_; + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } - private java.util.List - partialMatchingImages_ = java.util.Collections.emptyList(); + @java.lang.Override + public Builder clear() { + super.clear(); + label_ = ""; - private void ensurePartialMatchingImagesIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - partialMatchingImages_ = - new java.util.ArrayList( - partialMatchingImages_); - bitField0_ |= 0x00000010; - } - } + languageCode_ = ""; - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> - partialMatchingImagesBuilder_; + return this; + } - /** - * - * - *
-       * Partial matching images on the page.
-       * Those images are similar enough to share some key-point features. For
-       * example an original image will likely have partial matching for its
-       * crops.
-       * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * - */ - public java.util.List - getPartialMatchingImagesList() { - if (partialMatchingImagesBuilder_ == null) { - return java.util.Collections.unmodifiableList(partialMatchingImages_); - } else { - return partialMatchingImagesBuilder_.getMessageList(); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vision.v1p4beta1.WebDetectionProto + .internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_descriptor; } - /** - * - * - *
-       * Partial matching images on the page.
-       * Those images are similar enough to share some key-point features. For
-       * example an original image will likely have partial matching for its
-       * crops.
-       * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * - */ - public int getPartialMatchingImagesCount() { - if (partialMatchingImagesBuilder_ == null) { - return partialMatchingImages_.size(); - } else { - return partialMatchingImagesBuilder_.getCount(); - } + + @java.lang.Override + public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel getDefaultInstanceForType() { + return com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.getDefaultInstance(); } - /** - * - * - *
-       * Partial matching images on the page.
-       * Those images are similar enough to share some key-point features. For
-       * example an original image will likely have partial matching for its
-       * crops.
-       * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * - */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage getPartialMatchingImages( - int index) { - if (partialMatchingImagesBuilder_ == null) { - return partialMatchingImages_.get(index); - } else { - return partialMatchingImagesBuilder_.getMessage(index); + + @java.lang.Override + public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel build() { + com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } + return result; } - /** - * - * - *
-       * Partial matching images on the page.
-       * Those images are similar enough to share some key-point features. For
-       * example an original image will likely have partial matching for its
-       * crops.
-       * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * - */ - public Builder setPartialMatchingImages( - int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { - if (partialMatchingImagesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePartialMatchingImagesIsMutable(); - partialMatchingImages_.set(index, value); - onChanged(); - } else { - partialMatchingImagesBuilder_.setMessage(index, value); - } - return this; + + @java.lang.Override + public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel buildPartial() { + com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel result = + new com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel(this); + result.label_ = label_; + result.languageCode_ = languageCode_; + onBuilt(); + return result; } - /** - * - * - *
-       * Partial matching images on the page.
-       * Those images are similar enough to share some key-point features. For
-       * example an original image will likely have partial matching for its
-       * crops.
-       * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * - */ - public Builder setPartialMatchingImages( + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { - if (partialMatchingImagesBuilder_ == null) { - ensurePartialMatchingImagesIsMutable(); - partialMatchingImages_.set(index, builderForValue.build()); - onChanged(); + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel) { + return mergeFrom((com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel) other); } else { - partialMatchingImagesBuilder_.setMessage(index, builderForValue.build()); + super.mergeFrom(other); + return this; } - return this; } - /** - * - * - *
-       * Partial matching images on the page.
-       * Those images are similar enough to share some key-point features. For
-       * example an original image will likely have partial matching for its
-       * crops.
-       * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * - */ - public Builder addPartialMatchingImages( - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { - if (partialMatchingImagesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePartialMatchingImagesIsMutable(); - partialMatchingImages_.add(value); + + public Builder mergeFrom(com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel other) { + if (other == com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel.getDefaultInstance()) + return this; + if (!other.getLabel().isEmpty()) { + label_ = other.label_; onChanged(); - } else { - partialMatchingImagesBuilder_.addMessage(value); } - return this; - } - /** - * - * - *
-       * Partial matching images on the page.
-       * Those images are similar enough to share some key-point features. For
-       * example an original image will likely have partial matching for its
-       * crops.
-       * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * - */ - public Builder addPartialMatchingImages( - int index, com.google.cloud.vision.v1p4beta1.WebDetection.WebImage value) { - if (partialMatchingImagesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePartialMatchingImagesIsMutable(); - partialMatchingImages_.add(index, value); + if (!other.getLanguageCode().isEmpty()) { + languageCode_ = other.languageCode_; onChanged(); - } else { - partialMatchingImagesBuilder_.addMessage(index, value); } + this.mergeUnknownFields(other.unknownFields); + onChanged(); return this; } - /** - * - * - *
-       * Partial matching images on the page.
-       * Those images are similar enough to share some key-point features. For
-       * example an original image will likely have partial matching for its
-       * crops.
-       * 
- * - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * - */ - public Builder addPartialMatchingImages( - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { - if (partialMatchingImagesBuilder_ == null) { - ensurePartialMatchingImagesIsMutable(); - partialMatchingImages_.add(builderForValue.build()); - onChanged(); - } else { - partialMatchingImagesBuilder_.addMessage(builderForValue.build()); + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } } return this; } + + private java.lang.Object label_ = ""; /** * * *
-       * Partial matching images on the page.
-       * Those images are similar enough to share some key-point features. For
-       * example an original image will likely have partial matching for its
-       * crops.
+       * Label for extra metadata.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * + * string label = 1; */ - public Builder addPartialMatchingImages( - int index, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder builderForValue) { - if (partialMatchingImagesBuilder_ == null) { - ensurePartialMatchingImagesIsMutable(); - partialMatchingImages_.add(index, builderForValue.build()); - onChanged(); + public java.lang.String getLabel() { + java.lang.Object ref = label_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + label_ = s; + return s; } else { - partialMatchingImagesBuilder_.addMessage(index, builderForValue.build()); + return (java.lang.String) ref; } - return this; } /** * * *
-       * Partial matching images on the page.
-       * Those images are similar enough to share some key-point features. For
-       * example an original image will likely have partial matching for its
-       * crops.
+       * Label for extra metadata.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * + * string label = 1; */ - public Builder addAllPartialMatchingImages( - java.lang.Iterable - values) { - if (partialMatchingImagesBuilder_ == null) { - ensurePartialMatchingImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partialMatchingImages_); - onChanged(); + public com.google.protobuf.ByteString getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + label_ = b; + return b; } else { - partialMatchingImagesBuilder_.addAllMessages(values); + return (com.google.protobuf.ByteString) ref; } - return this; } /** * * *
-       * Partial matching images on the page.
-       * Those images are similar enough to share some key-point features. For
-       * example an original image will likely have partial matching for its
-       * crops.
+       * Label for extra metadata.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * + * string label = 1; */ - public Builder clearPartialMatchingImages() { - if (partialMatchingImagesBuilder_ == null) { - partialMatchingImages_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - partialMatchingImagesBuilder_.clear(); + public Builder setLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + + label_ = value; + onChanged(); return this; } /** * * *
-       * Partial matching images on the page.
-       * Those images are similar enough to share some key-point features. For
-       * example an original image will likely have partial matching for its
-       * crops.
+       * Label for extra metadata.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * + * string label = 1; */ - public Builder removePartialMatchingImages(int index) { - if (partialMatchingImagesBuilder_ == null) { - ensurePartialMatchingImagesIsMutable(); - partialMatchingImages_.remove(index); - onChanged(); - } else { - partialMatchingImagesBuilder_.remove(index); - } + public Builder clearLabel() { + + label_ = getDefaultInstance().getLabel(); + onChanged(); return this; } /** * * *
-       * Partial matching images on the page.
-       * Those images are similar enough to share some key-point features. For
-       * example an original image will likely have partial matching for its
-       * crops.
+       * Label for extra metadata.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * + * string label = 1; */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder - getPartialMatchingImagesBuilder(int index) { - return getPartialMatchingImagesFieldBuilder().getBuilder(index); + public Builder setLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + label_ = value; + onChanged(); + return this; } + + private java.lang.Object languageCode_ = ""; /** * * *
-       * Partial matching images on the page.
-       * Those images are similar enough to share some key-point features. For
-       * example an original image will likely have partial matching for its
-       * crops.
+       * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
+       * For more information, see
+       * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * + * string language_code = 2; */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder - getPartialMatchingImagesOrBuilder(int index) { - if (partialMatchingImagesBuilder_ == null) { - return partialMatchingImages_.get(index); + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; } else { - return partialMatchingImagesBuilder_.getMessageOrBuilder(index); + return (java.lang.String) ref; } } /** * * *
-       * Partial matching images on the page.
-       * Those images are similar enough to share some key-point features. For
-       * example an original image will likely have partial matching for its
-       * crops.
+       * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
+       * For more information, see
+       * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * + * string language_code = 2; */ - public java.util.List< - ? extends com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> - getPartialMatchingImagesOrBuilderList() { - if (partialMatchingImagesBuilder_ != null) { - return partialMatchingImagesBuilder_.getMessageOrBuilderList(); + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; } else { - return java.util.Collections.unmodifiableList(partialMatchingImages_); + return (com.google.protobuf.ByteString) ref; } } /** * * *
-       * Partial matching images on the page.
-       * Those images are similar enough to share some key-point features. For
-       * example an original image will likely have partial matching for its
-       * crops.
+       * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
+       * For more information, see
+       * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * + * string language_code = 2; */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder - addPartialMatchingImagesBuilder() { - return getPartialMatchingImagesFieldBuilder() - .addBuilder( - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + languageCode_ = value; + onChanged(); + return this; } /** * * *
-       * Partial matching images on the page.
-       * Those images are similar enough to share some key-point features. For
-       * example an original image will likely have partial matching for its
-       * crops.
+       * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
+       * For more information, see
+       * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * + * string language_code = 2; */ - public com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder - addPartialMatchingImagesBuilder(int index) { - return getPartialMatchingImagesFieldBuilder() - .addBuilder( - index, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.getDefaultInstance()); + public Builder clearLanguageCode() { + + languageCode_ = getDefaultInstance().getLanguageCode(); + onChanged(); + return this; } /** * * *
-       * Partial matching images on the page.
-       * Those images are similar enough to share some key-point features. For
-       * example an original image will likely have partial matching for its
-       * crops.
+       * The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
+       * For more information, see
+       * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
        * 
* - * - * repeated .google.cloud.vision.v1p4beta1.WebDetection.WebImage partial_matching_images = 5; - * + * string language_code = 2; */ - public java.util.List - getPartialMatchingImagesBuilderList() { - return getPartialMatchingImagesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder> - getPartialMatchingImagesFieldBuilder() { - if (partialMatchingImagesBuilder_ == null) { - partialMatchingImagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImage.Builder, - com.google.cloud.vision.v1p4beta1.WebDetection.WebImageOrBuilder>( - partialMatchingImages_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); - partialMatchingImages_ = null; + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - return partialMatchingImagesBuilder_; + checkByteStringIsUtf8(value); + + languageCode_ = value; + onChanged(); + return this; } @java.lang.Override @@ -4869,42 +4869,42 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.WebDetection.WebPage) + // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1p4beta1.WebDetection.WebLabel) } - // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.WebDetection.WebPage) - private static final com.google.cloud.vision.v1p4beta1.WebDetection.WebPage DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.WebDetection.WebLabel) + private static final com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.WebDetection.WebPage(); + DEFAULT_INSTANCE = new com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel(); } - public static com.google.cloud.vision.v1p4beta1.WebDetection.WebPage getDefaultInstance() { + public static com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public WebPage parsePartialFrom( + public WebLabel parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new WebPage(input, extensionRegistry); + return new WebLabel(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.vision.v1p4beta1.WebDetection.WebPage getDefaultInstanceForType() { + public com.google.cloud.vision.v1p4beta1.WebDetection.WebLabel getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionProto.java b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionProto.java index 579f6a610..1f168b6df 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionProto.java +++ b/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/WebDetectionProto.java @@ -39,14 +39,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebImage_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebImage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -74,14 +74,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "on.v1p4beta1.WebDetection.WebLabel\032B\n\tWe" + "bEntity\022\021\n\tentity_id\030\001 \001(\t\022\r\n\005score\030\002 \001(" + "\002\022\023\n\013description\030\003 \001(\t\032&\n\010WebImage\022\013\n\003ur" - + "l\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\0320\n\010WebLabel\022\r\n\005la" - + "bel\030\001 \001(\t\022\025\n\rlanguage_code\030\002 \001(\t\032\344\001\n\007Web" - + "Page\022\013\n\003url\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\022\022\n\npage" - + "_title\030\003 \001(\t\022R\n\024full_matching_images\030\004 \003" - + "(\01324.google.cloud.vision.v1p4beta1.WebDe" - + "tection.WebImage\022U\n\027partial_matching_ima" - + "ges\030\005 \003(\01324.google.cloud.vision.v1p4beta" - + "1.WebDetection.WebImageB\207\001\n!com.google.c" + + "l\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\032\344\001\n\007WebPage\022\013\n\003ur" + + "l\030\001 \001(\t\022\r\n\005score\030\002 \001(\002\022\022\n\npage_title\030\003 \001" + + "(\t\022R\n\024full_matching_images\030\004 \003(\01324.googl" + + "e.cloud.vision.v1p4beta1.WebDetection.We" + + "bImage\022U\n\027partial_matching_images\030\005 \003(\0132" + + "4.google.cloud.vision.v1p4beta1.WebDetec" + + "tion.WebImage\0320\n\010WebLabel\022\r\n\005label\030\001 \001(\t" + + "\022\025\n\rlanguage_code\030\002 \001(\tB\207\001\n!com.google.c" + "loud.vision.v1p4beta1B\021WebDetectionProto" + "P\001ZCgoogle.golang.org/genproto/googleapi" + "s/cloud/vision/v1p4beta1;vision\370\001\001\242\002\004GCV" @@ -134,25 +134,25 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "Url", "Score", }); - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_descriptor = + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_descriptor = internal_static_google_cloud_vision_v1p4beta1_WebDetection_descriptor .getNestedTypes() .get(2); - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_fieldAccessorTable = + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_descriptor, + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_descriptor, new java.lang.String[] { - "Label", "LanguageCode", + "Url", "Score", "PageTitle", "FullMatchingImages", "PartialMatchingImages", }); - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_descriptor = + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_descriptor = internal_static_google_cloud_vision_v1p4beta1_WebDetection_descriptor .getNestedTypes() .get(3); - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_fieldAccessorTable = + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebPage_descriptor, + internal_static_google_cloud_vision_v1p4beta1_WebDetection_WebLabel_descriptor, new java.lang.String[] { - "Url", "Score", "PageTitle", "FullMatchingImages", "PartialMatchingImages", + "Label", "LanguageCode", }); com.google.api.AnnotationsProto.getDescriptor(); } diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/face.proto b/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/face.proto new file mode 100644 index 000000000..1786f26f0 --- /dev/null +++ b/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/face.proto @@ -0,0 +1,61 @@ +// Copyright 2019 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.vision.v1p4beta1; + +import "google/api/annotations.proto"; +import "google/cloud/vision/v1p4beta1/geometry.proto"; + +option cc_enable_arenas = true; +option go_package = "google.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision"; +option java_multiple_files = true; +option java_outer_classname = "CelebrityProto"; +option java_package = "com.google.cloud.vision.v1p4beta1"; +option objc_class_prefix = "GCVN"; + +// Parameters for a celebrity recognition request. +message FaceRecognitionParams { + // The resource names for one or more + // [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity + // set is preloaded and can be specified as "builtin/default". If this is + // specified, the algorithm will try to match the faces detected in the input + // image to the Celebrities in the CelebritySets. + repeated string celebrity_set = 1; +} + +// A Celebrity is a group of Faces with an identity. +message Celebrity { + // The resource name of the preloaded Celebrity. Has the format + // `builtin/{mid}`. + string name = 1; + + // The Celebrity's display name. + string display_name = 2; + + // The Celebrity's description. + string description = 3; +} + +// Information about a face's identity. +message FaceRecognitionResult { + // The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was + // matched to. + Celebrity celebrity = 1; + + // Recognition confidence. Range [0, 1]. + float confidence = 2; +} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/geometry.proto b/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/geometry.proto index b0abd329c..18877188f 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/geometry.proto +++ b/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/geometry.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC. +// Copyright 2019 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/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/image_annotator.proto b/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/image_annotator.proto index 30318044a..e3553b0de 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/image_annotator.proto +++ b/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/image_annotator.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC. +// Copyright 2019 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -18,6 +18,9 @@ syntax = "proto3"; package google.cloud.vision.v1p4beta1; import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/cloud/vision/v1p4beta1/face.proto"; import "google/cloud/vision/v1p4beta1/geometry.proto"; import "google/cloud/vision/v1p4beta1/product_search.proto"; import "google/cloud/vision/v1p4beta1/text_annotation.proto"; @@ -40,6 +43,11 @@ option objc_class_prefix = "GCVN"; // images, such as face, landmark, logo, label, and text detection. The // ImageAnnotator service returns detected entities from the images. service ImageAnnotator { + option (google.api.default_host) = "vision.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/cloud-vision"; + // Run image detection and annotation for a batch of images. rpc BatchAnnotateImages(BatchAnnotateImagesRequest) returns (BatchAnnotateImagesResponse) { @@ -47,6 +55,7 @@ service ImageAnnotator { post: "/v1p4beta1/images:annotate" body: "*" }; + option (google.api.method_signature) = "requests"; } // Service that performs image detection and annotation for a batch of files. @@ -62,6 +71,7 @@ service ImageAnnotator { post: "/v1p4beta1/files:annotate" body: "*" }; + option (google.api.method_signature) = "requests"; } // Run asynchronous image detection and annotation for a list of images. @@ -79,6 +89,11 @@ service ImageAnnotator { post: "/v1p4beta1/images:asyncBatchAnnotate" body: "*" }; + option (google.api.method_signature) = "requests,output_config"; + option (google.longrunning.operation_info) = { + response_type: "AsyncBatchAnnotateImagesResponse" + metadata_type: "OperationMetadata" + }; } // Run asynchronous image detection and annotation for a list of generic @@ -93,6 +108,11 @@ service ImageAnnotator { post: "/v1p4beta1/files:asyncBatchAnnotate" body: "*" }; + option (google.api.method_signature) = "requests"; + option (google.longrunning.operation_info) = { + response_type: "AsyncBatchAnnotateFilesResponse" + metadata_type: "OperationMetadata" + }; } } @@ -209,19 +229,19 @@ enum Likelihood { // Unknown likelihood. UNKNOWN = 0; - // It is very unlikely that the image belongs to the specified vertical. + // It is very unlikely. VERY_UNLIKELY = 1; - // It is unlikely that the image belongs to the specified vertical. + // It is unlikely. UNLIKELY = 2; - // It is possible that the image belongs to the specified vertical. + // It is possible. POSSIBLE = 3; - // It is likely that the image belongs to the specified vertical. + // It is likely. LIKELY = 4; - // It is very likely that the image belongs to the specified vertical. + // It is very likely. VERY_LIKELY = 5; } @@ -407,6 +427,13 @@ message FaceAnnotation { // Headwear likelihood. Likelihood headwear_likelihood = 15; + + // Additional recognition information. Only computed if + // image_context.face_recognition_params is provided, **and** a match is found + // to a [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] in the input + // [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]. This field is + // sorted in order of decreasing confidence values. + repeated FaceRecognitionResult recognition_result = 16; } // Detected entity location information. @@ -611,6 +638,9 @@ message ImageContext { // Parameters for crop hints annotation request. CropHintsParams crop_hints_params = 4; + // Parameters for face recognition. + FaceRecognitionParams face_recognition_params = 10; + // Parameters for product search. ProductSearchParams product_search_params = 5; @@ -694,19 +724,6 @@ message AnnotateImageResponse { ImageAnnotationContext context = 21; } -// Response to a single file annotation request. A file may contain one or more -// images, which individually have their own responses. -message AnnotateFileResponse { - // Information about the file for which this response is generated. - InputConfig input_config = 1; - - // Individual responses to images found within the file. - repeated AnnotateImageResponse responses = 2; - - // This field gives the total number of pages in the file. - int32 total_pages = 3; -} - // Multiple image annotation requests are batched into a single service call. message BatchAnnotateImagesRequest { // Individual image annotation requests for this batch. @@ -747,11 +764,30 @@ message AnnotateFileRequest { repeated int32 pages = 4; } +// Response to a single file annotation request. A file may contain one or more +// images, which individually have their own responses. +message AnnotateFileResponse { + // Information about the file for which this response is generated. + InputConfig input_config = 1; + + // Individual responses to images found within the file. This field will be + // empty if the `error` field is set. + repeated AnnotateImageResponse responses = 2; + + // This field gives the total number of pages in the file. + int32 total_pages = 3; + + // If set, represents the error message for the failed request. The + // `responses` field will not be set in this case. + google.rpc.Status error = 4; +} + // A list of requests to annotate files using the BatchAnnotateFiles API. message BatchAnnotateFilesRequest { - // The list of file annotation requests. Right now we support only one - // AnnotateFileRequest in BatchAnnotateFilesRequest. - repeated AnnotateFileRequest requests = 1; + // Required. The list of file annotation requests. Right now we support only + // one AnnotateFileRequest in BatchAnnotateFilesRequest. + repeated AnnotateFileRequest requests = 1 + [(google.api.field_behavior) = REQUIRED]; } // A list of file annotation responses. @@ -784,11 +820,12 @@ message AsyncAnnotateFileResponse { // Request for async image annotation for a list of images. message AsyncBatchAnnotateImagesRequest { - // Individual image annotation requests for this batch. - repeated AnnotateImageRequest requests = 1; + // Required. Individual image annotation requests for this batch. + repeated AnnotateImageRequest requests = 1 + [(google.api.field_behavior) = REQUIRED]; // Required. The desired output location and metadata (e.g. format). - OutputConfig output_config = 2; + OutputConfig output_config = 2 [(google.api.field_behavior) = REQUIRED]; } // Response to an async batch image annotation request. @@ -800,8 +837,9 @@ message AsyncBatchAnnotateImagesResponse { // Multiple async file annotation requests are batched into a single service // call. message AsyncBatchAnnotateFilesRequest { - // Individual async file annotation requests for this batch. - repeated AsyncAnnotateFileRequest requests = 1; + // Required. Individual async file annotation requests for this batch. + repeated AsyncAnnotateFileRequest requests = 1 + [(google.api.field_behavior) = REQUIRED]; } // Response to an async batch file annotation request. @@ -824,8 +862,8 @@ message InputConfig { // not work for AsyncBatchAnnotateFiles requests. bytes content = 3; - // The type of the file. Currently only "application/pdf" and "image/tiff" - // are supported. Wildcards are not supported. + // The type of the file. Currently only "application/pdf", "image/tiff" and + // "image/gif" are supported. Wildcards are not supported. string mime_type = 2; } @@ -857,16 +895,23 @@ message GcsSource { // The Google Cloud Storage location where the output will be written to. message GcsDestination { - // Google Cloud Storage URI where the results will be stored. Results will - // be in JSON format and preceded by its corresponding input URI. This field - // can either represent a single file, or a prefix for multiple outputs. - // Prefixes must end in a `/`. + // Google Cloud Storage URI prefix where the results will be stored. Results + // will be in JSON format and preceded by its corresponding input URI prefix. + // This field can either represent a gcs file prefix or gcs directory. In + // either case, the uri should be unique because in order to get all of the + // output files, you will need to do a wildcard gcs search on the uri prefix + // you provide. // // Examples: // - // * File: gs://bucket-name/filename.json - // * Prefix: gs://bucket-name/prefix/here/ - // * File: gs://bucket-name/prefix/here + // * File Prefix: gs://bucket-name/here/filenameprefix The output files + // will be created in gs://bucket-name/here/ and the names of the + // output files will begin with "filenameprefix". + // + // * Directory Prefix: gs://bucket-name/some/location/ The output files + // will be created in gs://bucket-name/some/location/ and the names of the + // output files could be anything because there was no filename prefix + // specified. // // If multiple outputs, each response is still AnnotateFileResponse, each of // which contains some subset of the full list of AnnotateImageResponse. diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/product_search.proto b/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/product_search.proto index e0982facd..15baed1fd 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/product_search.proto +++ b/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/product_search.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC. +// Copyright 2019 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -18,6 +18,7 @@ syntax = "proto3"; package google.cloud.vision.v1p4beta1; import "google/api/annotations.proto"; +import "google/api/resource.proto"; import "google/cloud/vision/v1p4beta1/geometry.proto"; import "google/cloud/vision/v1p4beta1/product_search_service.proto"; import "google/protobuf/timestamp.proto"; @@ -32,7 +33,7 @@ option objc_class_prefix = "GCVN"; // Parameters for a product search request. message ProductSearchParams { // The bounding polygon around the area of interest in the image. - // Optional. If it is not specified, system discretion will be applied. + // If it is not specified, system discretion will be applied. BoundingPoly bounding_poly = 9; // The resource name of a @@ -41,7 +42,9 @@ message ProductSearchParams { // // Format is: // `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`. - string product_set = 6; + string product_set = 6 [(google.api.resource_reference) = { + type: "vision.googleapis.com/ProductSet" + }]; // The list of product categories to search in. Currently, we only consider // the first category, and either "homegoods-v2", "apparel-v2", "toys-v2", @@ -54,10 +57,12 @@ message ProductSearchParams { // The filtering expression. This can be used to restrict search results based // on Product labels. We currently support an AND of OR of key-value - // expressions, where each expression within an OR must have the same key. + // expressions, where each expression within an OR must have the same key. An + // '=' should be used to connect the key and value. // // For example, "(color = red OR color = blue) AND brand = Google" is - // acceptable, but not "(color = red OR brand = Google)" or "color: red". + // acceptable, but "(color = red OR brand = Google)" is not acceptable. + // "color: red" is not acceptable because it uses a ':' instead of an '='. string filter = 8; } @@ -77,6 +82,23 @@ message ProductSearchResults { string image = 3; } + // Prediction for what the object in the bounding box is. + message ObjectAnnotation { + // Object ID that should align with EntityAnnotation mid. + string mid = 1; + + // The BCP-47 language code, such as "en-US" or "sr-Latn". For more + // information, see + // http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + string language_code = 2; + + // Object name, expressed in its `language_code` language. + string name = 3; + + // Score of the result. Range [0, 1]. + float score = 4; + } + // Information about the products similar to a single product in a query // image. message GroupedResult { @@ -85,10 +107,14 @@ message ProductSearchResults { // List of results, one for each product match. repeated Result results = 2; + + // List of generic predictions for the object in the bounding box. + repeated ObjectAnnotation object_annotations = 3; } - // Timestamp of the index which provided these results. Changes made after - // this time are not reflected in the current results. + // Timestamp of the index which provided these results. Products added to the + // product set and products removed from the product set after this time are + // not reflected in the current results. google.protobuf.Timestamp index_time = 2; // List of results, one for each product match. diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/product_search_service.proto b/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/product_search_service.proto index 28d7378b2..1a165c708 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/product_search_service.proto +++ b/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/product_search_service.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC. +// Copyright 2019 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -18,6 +18,9 @@ syntax = "proto3"; package google.cloud.vision.v1p4beta1; import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; import "google/cloud/vision/v1p4beta1/geometry.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; @@ -51,6 +54,11 @@ option objc_class_prefix = "GCVN"; // named // `projects/*/locations/*/products/*/referenceImages/*` service ProductSearch { + option (google.api.default_host) = "vision.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/cloud-vision"; + // Creates and returns a new ProductSet resource. // // Possible errors: @@ -62,6 +70,7 @@ service ProductSearch { post: "/v1p4beta1/{parent=projects/*/locations/*}/productSets" body: "product_set" }; + option (google.api.method_signature) = "parent,product_set,product_set_id"; } // Lists ProductSets in an unspecified order. @@ -75,6 +84,7 @@ service ProductSearch { option (google.api.http) = { get: "/v1p4beta1/{parent=projects/*/locations/*}/productSets" }; + option (google.api.method_signature) = "parent"; } // Gets information associated with a ProductSet. @@ -86,6 +96,7 @@ service ProductSearch { option (google.api.http) = { get: "/v1p4beta1/{name=projects/*/locations/*/productSets/*}" }; + option (google.api.method_signature) = "name"; } // Makes changes to a ProductSet resource. @@ -101,21 +112,19 @@ service ProductSearch { patch: "/v1p4beta1/{product_set.name=projects/*/locations/*/productSets/*}" body: "product_set" }; + option (google.api.method_signature) = "product_set,update_mask"; } // Permanently deletes a ProductSet. Products and ReferenceImages in the // ProductSet are not deleted. // // The actual image files are not deleted from Google Cloud Storage. - // - // Possible errors: - // - // * Returns NOT_FOUND if the ProductSet does not exist. rpc DeleteProductSet(DeleteProductSetRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1p4beta1/{name=projects/*/locations/*/productSets/*}" }; + option (google.api.method_signature) = "name"; } // Creates and returns a new product resource. @@ -131,6 +140,7 @@ service ProductSearch { post: "/v1p4beta1/{parent=projects/*/locations/*}/products" body: "product" }; + option (google.api.method_signature) = "parent,product,product_id"; } // Lists products in an unspecified order. @@ -142,6 +152,7 @@ service ProductSearch { option (google.api.http) = { get: "/v1p4beta1/{parent=projects/*/locations/*}/products" }; + option (google.api.method_signature) = "parent"; } // Gets information associated with a Product. @@ -153,6 +164,7 @@ service ProductSearch { option (google.api.http) = { get: "/v1p4beta1/{name=projects/*/locations/*/products/*}" }; + option (google.api.method_signature) = "name"; } // Makes changes to a Product resource. @@ -175,6 +187,7 @@ service ProductSearch { patch: "/v1p4beta1/{product.name=projects/*/locations/*/products/*}" body: "product" }; + option (google.api.method_signature) = "product,update_mask"; } // Permanently deletes a product and its reference images. @@ -182,14 +195,11 @@ service ProductSearch { // Metadata of the product and all its images will be deleted right away, but // search queries against ProductSets containing the product may still work // until all related caches are refreshed. - // - // Possible errors: - // - // * Returns NOT_FOUND if the product does not exist. rpc DeleteProduct(DeleteProductRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1p4beta1/{name=projects/*/locations/*/products/*}" }; + option (google.api.method_signature) = "name"; } // Creates and returns a new ReferenceImage resource. @@ -217,6 +227,8 @@ service ProductSearch { post: "/v1p4beta1/{parent=projects/*/locations/*/products/*}/referenceImages" body: "reference_image" }; + option (google.api.method_signature) = + "parent,reference_image,reference_image_id"; } // Permanently deletes a reference image. @@ -226,15 +238,12 @@ service ProductSearch { // caches are refreshed. // // The actual image files are not deleted from Google Cloud Storage. - // - // Possible errors: - // - // * Returns NOT_FOUND if the reference image does not exist. rpc DeleteReferenceImage(DeleteReferenceImageRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1p4beta1/{name=projects/*/locations/*/products/*/referenceImages/*}" }; + option (google.api.method_signature) = "name"; } // Lists reference images. @@ -249,6 +258,7 @@ service ProductSearch { option (google.api.http) = { get: "/v1p4beta1/{parent=projects/*/locations/*/products/*}/referenceImages" }; + option (google.api.method_signature) = "parent"; } // Gets information associated with a ReferenceImage. @@ -260,6 +270,7 @@ service ProductSearch { option (google.api.http) = { get: "/v1p4beta1/{name=projects/*/locations/*/products/*/referenceImages/*}" }; + option (google.api.method_signature) = "name"; } // Adds a Product to the specified ProductSet. If the Product is already @@ -276,19 +287,17 @@ service ProductSearch { post: "/v1p4beta1/{name=projects/*/locations/*/productSets/*}:addProduct" body: "*" }; + option (google.api.method_signature) = "name,product"; } // Removes a Product from the specified ProductSet. - // - // Possible errors: - // - // * Returns NOT_FOUND If the Product is not found under the ProductSet. rpc RemoveProductFromProductSet(RemoveProductFromProductSetRequest) returns (google.protobuf.Empty) { option (google.api.http) = { post: "/v1p4beta1/{name=projects/*/locations/*/productSets/*}:removeProduct" body: "*" }; + option (google.api.method_signature) = "name,product"; } // Lists the Products in a ProductSet, in an unspecified order. If the @@ -303,6 +312,7 @@ service ProductSearch { option (google.api.http) = { get: "/v1p4beta1/{name=projects/*/locations/*/productSets/*}/products" }; + option (google.api.method_signature) = "name"; } // Asynchronous API that imports a list of reference images to specified @@ -322,11 +332,58 @@ service ProductSearch { post: "/v1p4beta1/{parent=projects/*/locations/*}/productSets:import" body: "*" }; + option (google.api.method_signature) = "parent,input_config"; + option (google.longrunning.operation_info) = { + response_type: "ImportProductSetsResponse" + metadata_type: "BatchOperationMetadata" + }; + } + + // Asynchronous API to delete all Products in a ProductSet or all Products + // that are in no ProductSet. + // + // If a Product is a member of the specified ProductSet in addition to other + // ProductSets, the Product will still be deleted. + // + // It is recommended to not delete the specified ProductSet until after this + // operation has completed. It is also recommended to not add any of the + // Products involved in the batch delete to a new ProductSet while this + // operation is running because those Products may still end up deleted. + // + // It's not possible to undo the PurgeProducts operation. Therefore, it is + // recommended to keep the csv files used in ImportProductSets (if that was + // how you originally built the Product Set) before starting PurgeProducts, in + // case you need to re-import the data after deletion. + // + // If the plan is to purge all of the Products from a ProductSet and then + // re-use the empty ProductSet to re-import new Products into the empty + // ProductSet, you must wait until the PurgeProducts operation has finished + // for that ProductSet. + // + // The [google.longrunning.Operation][google.longrunning.Operation] API can be + // used to keep track of the progress and results of the request. + // `Operation.metadata` contains `BatchOperationMetadata`. (progress) + rpc PurgeProducts(PurgeProductsRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1p4beta1/{parent=projects/*/locations/*}/products:purge" + body: "*" + }; + option (google.api.method_signature) = "parent"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "BatchOperationMetadata" + }; } } // A Product contains ReferenceImages. message Product { + option (google.api.resource) = { + type: "vision.googleapis.com/Product" + pattern: "projects/{project}/locations/{location}/products/{product}" + }; + // A product label represented as a key-value pair. message KeyValue { // The key of the label attached to the product. Cannot be empty and cannot @@ -354,13 +411,11 @@ message Product { // characters long. string description = 3; - // The category for the product identified by the reference image. This should - // be either "homegoods-v2", "apparel-v2", "toys-v2", "packagedgoods-v1", or - // "general-v1" The legacy categories "homegoods", "apparel", and "toys" are - // still supported, but these should not be used for new products. - // - // This field is immutable. - string product_category = 4; + // Immutable. The category for the product identified by the reference image. + // This should be either "homegoods-v2", "apparel-v2", or "toys-v2". The + // legacy categories "homegoods", "apparel", and "toys" are still supported, + // but these should not be used for new products. + string product_category = 4 [(google.api.field_behavior) = IMMUTABLE]; // Key-value pairs that can be attached to a product. At query time, // constraints can be specified based on the product_labels. @@ -370,7 +425,11 @@ message Product { // to be supported soon. // // Multiple values can be assigned to the same key. One product may have up to - // 100 product_labels. + // 500 product_labels. + // + // Notice that the total number of distinct product_labels over all products + // in one ProductSet cannot exceed 1M, otherwise the product search pipeline + // will refuse to work for that ProductSet. repeated KeyValue product_labels = 5; } @@ -378,6 +437,11 @@ message Product { // million reference images. If the limit is exceeded, periodic indexing will // fail. message ProductSet { + option (google.api.resource) = { + type: "vision.googleapis.com/ProductSet" + pattern: "projects/{project}/locations/{location}/productSets/{product_set}" + }; + // The resource name of the ProductSet. // // Format is: @@ -396,18 +460,24 @@ message ProductSet { // "1970-01-01T00:00:00Z". // // This field is ignored when creating a ProductSet. - google.protobuf.Timestamp index_time = 3; + google.protobuf.Timestamp index_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. If there was an error with indexing the product set, the field // is populated. // // This field is ignored when creating a ProductSet. - google.rpc.Status index_error = 4; + google.rpc.Status index_error = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; } // A `ReferenceImage` represents a product image and its associated metadata, // such as bounding boxes. message ReferenceImage { + option (google.api.resource) = { + type: "vision.googleapis.com/ReferenceImage" + pattern: "projects/{project}/locations/{location}/products/{product}/referenceImages/{reference_image}" + }; + // The resource name of the reference image. // // Format is: @@ -417,34 +487,38 @@ message ReferenceImage { // This field is ignored when creating a reference image. string name = 1; - // The Google Cloud Storage URI of the reference image. + // Required. The Google Cloud Storage URI of the reference image. // // The URI must start with `gs://`. - // - // Required. - string uri = 2; + string uri = 2 [(google.api.field_behavior) = REQUIRED]; - // Bounding polygons around the areas of interest in the reference image. - // Optional. If this field is empty, the system will try to detect regions of + // Optional. Bounding polygons around the areas of interest in the reference + // image. If this field is empty, the system will try to detect regions of // interest. At most 10 bounding polygons will be used. // // The provided shape is converted into a non-rotated rectangle. Once // converted, the small edge of the rectangle must be greater than or equal // to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5 // is not). - repeated BoundingPoly bounding_polys = 3; + repeated BoundingPoly bounding_polys = 3 + [(google.api.field_behavior) = OPTIONAL]; } // Request message for the `CreateProduct` method. message CreateProductRequest { - // The project in which the Product should be created. + // Required. The project in which the Product should be created. // // Format is // `projects/PROJECT_ID/locations/LOC_ID`. - string parent = 1; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; - // The product to create. - Product product = 2; + // Required. The product to create. + Product product = 2 [(google.api.field_behavior) = REQUIRED]; // A user-supplied resource id for this Product. If set, the server will // attempt to use this value as the resource id. If it is already in use, an @@ -455,11 +529,16 @@ message CreateProductRequest { // Request message for the `ListProducts` method. message ListProductsRequest { - // The project OR ProductSet from which Products should be listed. + // Required. The project OR ProductSet from which Products should be listed. // // Format: // `projects/PROJECT_ID/locations/LOC_ID` - string parent = 1; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; // The maximum number of items to return. Default 10, maximum 100. int32 page_size = 2; @@ -480,18 +559,21 @@ message ListProductsResponse { // Request message for the `GetProduct` method. message GetProductRequest { - // Resource name of the Product to get. + // Required. Resource name of the Product to get. // // Format is: // `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID` - string name = 1; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "vision.googleapis.com/Product" } + ]; } // Request message for the `UpdateProduct` method. message UpdateProductRequest { - // The Product resource which replaces the one on the server. + // Required. The Product resource which replaces the one on the server. // product.name is immutable. - Product product = 1; + Product product = 1 [(google.api.field_behavior) = REQUIRED]; // The [FieldMask][google.protobuf.FieldMask] that specifies which fields // to update. @@ -503,22 +585,30 @@ message UpdateProductRequest { // Request message for the `DeleteProduct` method. message DeleteProductRequest { - // Resource name of product to delete. + // Required. Resource name of product to delete. // // Format is: // `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID` - string name = 1; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "vision.googleapis.com/Product" } + ]; } // Request message for the `CreateProductSet` method. message CreateProductSetRequest { - // The project in which the ProductSet should be created. + // Required. The project in which the ProductSet should be created. // // Format is `projects/PROJECT_ID/locations/LOC_ID`. - string parent = 1; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; - // The ProductSet to create. - ProductSet product_set = 2; + // Required. The ProductSet to create. + ProductSet product_set = 2 [(google.api.field_behavior) = REQUIRED]; // A user-supplied resource id for this ProductSet. If set, the server will // attempt to use this value as the resource id. If it is already in use, an @@ -529,10 +619,15 @@ message CreateProductSetRequest { // Request message for the `ListProductSets` method. message ListProductSetsRequest { - // The project from which ProductSets should be listed. + // Required. The project from which ProductSets should be listed. // // Format is `projects/PROJECT_ID/locations/LOC_ID`. - string parent = 1; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; // The maximum number of items to return. Default 10, maximum 100. int32 page_size = 2; @@ -553,17 +648,22 @@ message ListProductSetsResponse { // Request message for the `GetProductSet` method. message GetProductSetRequest { - // Resource name of the ProductSet to get. + // Required. Resource name of the ProductSet to get. // // Format is: // `projects/PROJECT_ID/locations/LOG_ID/productSets/PRODUCT_SET_ID` - string name = 1; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vision.googleapis.com/ProductSet" + } + ]; } // Request message for the `UpdateProductSet` method. message UpdateProductSetRequest { - // The ProductSet resource which replaces the one on the server. - ProductSet product_set = 1; + // Required. The ProductSet resource which replaces the one on the server. + ProductSet product_set = 1 [(google.api.field_behavior) = REQUIRED]; // The [FieldMask][google.protobuf.FieldMask] that specifies which fields to // update. @@ -574,24 +674,33 @@ message UpdateProductSetRequest { // Request message for the `DeleteProductSet` method. message DeleteProductSetRequest { - // Resource name of the ProductSet to delete. + // Required. Resource name of the ProductSet to delete. // // Format is: // `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID` - string name = 1; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vision.googleapis.com/ProductSet" + } + ]; } // Request message for the `CreateReferenceImage` method. message CreateReferenceImageRequest { - // Resource name of the product in which to create the reference image. + // Required. Resource name of the product in which to create the reference + // image. // // Format is // `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`. - string parent = 1; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "vision.googleapis.com/Product" } + ]; - // The reference image to create. + // Required. The reference image to create. // If an image ID is specified, it is ignored. - ReferenceImage reference_image = 2; + ReferenceImage reference_image = 2 [(google.api.field_behavior) = REQUIRED]; // A user-supplied resource id for the ReferenceImage to be added. If set, // the server will attempt to use this value as the resource id. If it is @@ -602,11 +711,14 @@ message CreateReferenceImageRequest { // Request message for the `ListReferenceImages` method. message ListReferenceImagesRequest { - // Resource name of the product containing the reference images. + // Required. Resource name of the product containing the reference images. // // Format is // `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`. - string parent = 1; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "vision.googleapis.com/Product" } + ]; // The maximum number of items to return. Default 10, maximum 100. int32 page_size = 2; @@ -632,61 +744,93 @@ message ListReferenceImagesResponse { // Request message for the `GetReferenceImage` method. message GetReferenceImageRequest { - // The resource name of the ReferenceImage to get. + // Required. The resource name of the ReferenceImage to get. // // Format is: // // `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`. - string name = 1; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vision.googleapis.com/ReferenceImage" + } + ]; } // Request message for the `DeleteReferenceImage` method. message DeleteReferenceImageRequest { - // The resource name of the reference image to delete. + // Required. The resource name of the reference image to delete. // // Format is: // // `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID` - string name = 1; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vision.googleapis.com/ReferenceImage" + } + ]; } // Request message for the `AddProductToProductSet` method. message AddProductToProductSetRequest { - // The resource name for the ProductSet to modify. + // Required. The resource name for the ProductSet to modify. // // Format is: // `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID` - string name = 1; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vision.googleapis.com/ProductSet" + } + ]; - // The resource name for the Product to be added to this ProductSet. + // Required. The resource name for the Product to be added to this ProductSet. // // Format is: // `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID` - string product = 2; + string product = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "vision.googleapis.com/Product" } + ]; } // Request message for the `RemoveProductFromProductSet` method. message RemoveProductFromProductSetRequest { - // The resource name for the ProductSet to modify. + // Required. The resource name for the ProductSet to modify. // // Format is: // `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID` - string name = 1; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vision.googleapis.com/ProductSet" + } + ]; - // The resource name for the Product to be removed from this ProductSet. + // Required. The resource name for the Product to be removed from this + // ProductSet. // // Format is: // `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID` - string product = 2; + string product = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "vision.googleapis.com/Product" } + ]; } // Request message for the `ListProductsInProductSet` method. message ListProductsInProductSetRequest { - // The ProductSet resource for which to retrieve Products. + // Required. The ProductSet resource for which to retrieve Products. // // Format is: // `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID` - string name = 1; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vision.googleapis.com/ProductSet" + } + ]; // The maximum number of items to return. Default 10, maximum 100. int32 page_size = 2; @@ -786,13 +930,19 @@ message ImportProductSetsInputConfig { // Request message for the `ImportProductSets` method. message ImportProductSetsRequest { - // The project in which the ProductSets should be imported. + // Required. The project in which the ProductSets should be imported. // // Format is `projects/PROJECT_ID/locations/LOC_ID`. - string parent = 1; - - // The input content for the list of requests. - ImportProductSetsInputConfig input_config = 2; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The input content for the list of requests. + ImportProductSetsInputConfig input_config = 2 + [(google.api.field_behavior) = REQUIRED]; } // Response message for the `ImportProductSets` method. @@ -852,3 +1002,38 @@ message BatchOperationMetadata { // set to true. google.protobuf.Timestamp end_time = 3; } + +// Config to control which ProductSet contains the Products to be deleted. +message ProductSetPurgeConfig { + // The ProductSet that contains the Products to delete. If a Product is a + // member of product_set_id in addition to other ProductSets, the Product will + // still be deleted. + string product_set_id = 1; +} + +// Request message for the `PurgeProducts` method. +message PurgeProductsRequest { + // The Products to delete. + oneof target { + // Specify which ProductSet contains the Products to be deleted. + ProductSetPurgeConfig product_set_purge_config = 2; + + // If delete_orphan_products is true, all Products that are not in any + // ProductSet will be deleted. + bool delete_orphan_products = 3; + } + + // Required. The project and location in which the Products should be deleted. + // + // Format is `projects/PROJECT_ID/locations/LOC_ID`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // The default value is false. Override this value to true to actually perform + // the purge. + bool force = 4; +} diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/text_annotation.proto b/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/text_annotation.proto index 542677f27..fbc35bb54 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/text_annotation.proto +++ b/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/text_annotation.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC. +// Copyright 2019 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -194,7 +194,7 @@ message Paragraph { // and the vertex order will still be (0, 1, 2, 3). BoundingPoly bounding_box = 2; - // List of words in this paragraph. + // List of all words in this paragraph. repeated Word words = 3; // Confidence of the OCR results for the paragraph. Range [0, 1]. @@ -250,7 +250,7 @@ message Symbol { // 2----3 // | | // 1----0 - // and the vertice order will still be (0, 1, 2, 3). + // and the vertex order will still be (0, 1, 2, 3). BoundingPoly bounding_box = 2; // The actual UTF-8 representation of the symbol. diff --git a/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/web_detection.proto b/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/web_detection.proto index 15822563b..446a937f1 100644 --- a/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/web_detection.proto +++ b/proto-google-cloud-vision-v1p4beta1/src/main/proto/google/cloud/vision/v1p4beta1/web_detection.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC. +// Copyright 2019 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -50,17 +50,6 @@ message WebDetection { float score = 2; } - // Label to provide extra metadata for the web detection. - message WebLabel { - // Label for extra metadata. - string label = 1; - - // The BCP-47 language code for `label`, such as "en-US" or "sr-Latn". - // For more information, see - // http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. - string language_code = 2; - } - // Metadata for web pages. message WebPage { // The result web page URL. @@ -83,6 +72,17 @@ message WebDetection { repeated WebImage partial_matching_images = 5; } + // Label to provide extra metadata for the web detection. + message WebLabel { + // Label for extra metadata. + string label = 1; + + // The BCP-47 language code for `label`, such as "en-US" or "sr-Latn". + // For more information, see + // http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + string language_code = 2; + } + // Deduced entities from similar images on the Internet. repeated WebEntity web_entities = 1; diff --git a/synth.metadata b/synth.metadata index 093a61ea2..3d4e69f9d 100644 --- a/synth.metadata +++ b/synth.metadata @@ -1,5 +1,5 @@ { - "updateTime": "2019-11-12T17:27:37.943900Z", + "updateTime": "2019-11-13T23:40:59.479115Z", "sources": [ { "generator": { @@ -12,8 +12,8 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "675de3dc9ab98cc1cf54216ad58c933ede54e915", - "internalRef": "279982263" + "sha": "218164b3deba1075979c9dca5f71461379e42dd1", + "internalRef": "280279014" } }, { @@ -34,6 +34,46 @@ "generator": "gapic", "config": "google/cloud/vision/artman_vision_v1.yaml" } + }, + { + "client": { + "source": "googleapis", + "apiName": "vision", + "apiVersion": "v1p1beta1", + "language": "java", + "generator": "gapic", + "config": "google/cloud/vision/artman_vision_v1p1beta1.yaml" + } + }, + { + "client": { + "source": "googleapis", + "apiName": "vision", + "apiVersion": "v1p2beta1", + "language": "java", + "generator": "gapic", + "config": "google/cloud/vision/artman_vision_v1p2beta1.yaml" + } + }, + { + "client": { + "source": "googleapis", + "apiName": "vision", + "apiVersion": "v1p3beta1", + "language": "java", + "generator": "gapic", + "config": "google/cloud/vision/artman_vision_v1p3beta1.yaml" + } + }, + { + "client": { + "source": "googleapis", + "apiName": "vision", + "apiVersion": "v1p4beta1", + "language": "java", + "generator": "gapic", + "config": "google/cloud/vision/artman_vision_v1p4beta1.yaml" + } } ] } \ No newline at end of file diff --git a/synth.py b/synth.py index 2c684fe6a..8e2c88130 100644 --- a/synth.py +++ b/synth.py @@ -21,7 +21,7 @@ gapic = gcp.GAPICGenerator() service = 'vision' -versions = ['v1']#, 'v1p1beta1', 'v1p2beta1', 'v1p3beta1', 'v1p4beta1'] +versions = ['v1', 'v1p1beta1', 'v1p2beta1', 'v1p3beta1', 'v1p4beta1'] config_pattern = '/google/cloud/vision/artman_vision_{version}.yaml' for version in versions: diff --git a/versions.txt b/versions.txt index 2a8bee9bb..dc0353560 100644 --- a/versions.txt +++ b/versions.txt @@ -1,14 +1,14 @@ # Format: # module:released-version:current-version -proto-google-cloud-vision-v1p4beta1:0.81.1:0.81.1 -proto-google-cloud-vision-v1:1.80.1:1.80.1 -proto-google-cloud-vision-v1p1beta1:0.81.1:0.81.1 -proto-google-cloud-vision-v1p3beta1:0.81.1:0.81.1 -proto-google-cloud-vision-v1p2beta1:1.80.1:1.80.1 -grpc-google-cloud-vision-v1p3beta1:0.81.1:0.81.1 -grpc-google-cloud-vision-v1p1beta1:0.81.1:0.81.1 -grpc-google-cloud-vision-v1p4beta1:0.81.1:0.81.1 -grpc-google-cloud-vision-v1p2beta1:1.80.1:1.80.1 -grpc-google-cloud-vision-v1:1.80.1:1.80.1 -google-cloud-vision:1.98.1:1.98.1 \ No newline at end of file +proto-google-cloud-vision-v1p4beta1:0.82.0:0.82.0 +proto-google-cloud-vision-v1:1.81.0:1.81.0 +proto-google-cloud-vision-v1p1beta1:0.82.0:0.82.0 +proto-google-cloud-vision-v1p3beta1:0.82.0:0.82.0 +proto-google-cloud-vision-v1p2beta1:1.81.0:1.81.0 +grpc-google-cloud-vision-v1p3beta1:0.82.0:0.82.0 +grpc-google-cloud-vision-v1p1beta1:0.82.0:0.82.0 +grpc-google-cloud-vision-v1p4beta1:0.82.0:0.82.0 +grpc-google-cloud-vision-v1p2beta1:1.81.0:1.81.0 +grpc-google-cloud-vision-v1:1.81.0:1.81.0 +google-cloud-vision:1.99.0:1.99.0 \ No newline at end of file