From 874771cd5451a60fe68dd52b3d14b30e4da3d7f6 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Thu, 19 Sep 2019 01:05:37 -0700 Subject: [PATCH] Regenerate vision client --- .../cloud/vision/v1/ProductSearchGrpc.java | 92 ++-- .../v1/AddProductToProductSetRequest.java | 84 ++- ...ddProductToProductSetRequestOrBuilder.java | 24 +- .../v1/AsyncBatchAnnotateFilesRequest.java | 138 +++-- ...yncBatchAnnotateFilesRequestOrBuilder.java | 30 +- .../v1/AsyncBatchAnnotateImagesRequest.java | 186 +++++-- ...ncBatchAnnotateImagesRequestOrBuilder.java | 42 +- .../vision/v1/BatchAnnotateFilesRequest.java | 138 +++-- .../BatchAnnotateFilesRequestOrBuilder.java | 30 +- .../vision/v1/BatchAnnotateImagesRequest.java | 138 +++-- .../BatchAnnotateImagesRequestOrBuilder.java | 30 +- .../vision/v1/BatchOperationMetadata.java | 36 +- .../v1/BatchOperationMetadataOrBuilder.java | 9 +- .../cloud/vision/v1/CreateProductRequest.java | 102 ++-- .../v1/CreateProductRequestOrBuilder.java | 27 +- .../vision/v1/CreateProductSetRequest.java | 114 ++-- .../v1/CreateProductSetRequestOrBuilder.java | 30 +- .../v1/CreateReferenceImageRequest.java | 114 ++-- .../CreateReferenceImageRequestOrBuilder.java | 30 +- .../cloud/vision/v1/DeleteProductRequest.java | 42 +- .../v1/DeleteProductRequestOrBuilder.java | 12 +- .../vision/v1/DeleteProductSetRequest.java | 42 +- .../v1/DeleteProductSetRequestOrBuilder.java | 12 +- .../v1/DeleteReferenceImageRequest.java | 42 +- .../DeleteReferenceImageRequestOrBuilder.java | 12 +- .../cloud/vision/v1/GetProductRequest.java | 42 +- .../vision/v1/GetProductRequestOrBuilder.java | 12 +- .../cloud/vision/v1/GetProductSetRequest.java | 42 +- .../v1/GetProductSetRequestOrBuilder.java | 12 +- .../vision/v1/GetReferenceImageRequest.java | 42 +- .../v1/GetReferenceImageRequestOrBuilder.java | 12 +- .../cloud/vision/v1/ImageAnnotatorProto.java | 514 +++++++++--------- .../vision/v1/ImportProductSetsGcsSource.java | 70 +-- .../ImportProductSetsGcsSourceOrBuilder.java | 20 +- .../vision/v1/ImportProductSetsRequest.java | 114 ++-- .../v1/ImportProductSetsRequestOrBuilder.java | 30 +- .../vision/v1/ImportProductSetsResponse.java | 12 +- .../vision/v1/ListProductSetsRequest.java | 42 +- .../v1/ListProductSetsRequestOrBuilder.java | 12 +- .../v1/ListProductsInProductSetRequest.java | 42 +- ...tProductsInProductSetRequestOrBuilder.java | 12 +- .../cloud/vision/v1/ListProductsRequest.java | 42 +- .../v1/ListProductsRequestOrBuilder.java | 12 +- .../vision/v1/ListReferenceImagesRequest.java | 42 +- .../ListReferenceImagesRequestOrBuilder.java | 12 +- .../com/google/cloud/vision/v1/Product.java | 35 +- .../cloud/vision/v1/ProductOrBuilder.java | 10 +- .../cloud/vision/v1/ProductSearchParams.java | 21 +- .../v1/ProductSearchParamsOrBuilder.java | 6 +- .../cloud/vision/v1/ProductSearchProto.java | 14 +- .../vision/v1/ProductSearchServiceProto.java | 400 ++++++++------ .../google/cloud/vision/v1/ProductSet.java | 60 +- .../cloud/vision/v1/ProductSetOrBuilder.java | 15 +- .../cloud/vision/v1/PurgeProductsRequest.java | 42 +- .../v1/PurgeProductsRequestOrBuilder.java | 12 +- .../cloud/vision/v1/ReferenceImage.java | 219 +++++--- .../vision/v1/ReferenceImageOrBuilder.java | 50 +- .../RemoveProductFromProductSetRequest.java | 84 ++- ...ProductFromProductSetRequestOrBuilder.java | 24 +- .../cloud/vision/v1/SafeSearchAnnotation.java | 504 +++++++++++++++++ .../v1/SafeSearchAnnotationOrBuilder.java | 72 +++ .../cloud/vision/v1/TextAnnotation.java | 10 +- .../cloud/vision/v1/TextAnnotationProto.java | 10 +- .../cloud/vision/v1/UpdateProductRequest.java | 60 +- .../v1/UpdateProductRequestOrBuilder.java | 15 +- .../vision/v1/UpdateProductSetRequest.java | 72 ++- .../v1/UpdateProductSetRequestOrBuilder.java | 18 +- .../cloud/vision/v1/image_annotator.proto | 103 ++-- .../cloud/vision/v1/product_search.proto | 5 +- .../vision/v1/product_search_service.proto | 333 ++++++++---- .../cloud/vision/v1/text_annotation.proto | 7 +- .../cloud/vision/v1/ImageAnnotatorClient.java | 8 +- .../cloud/vision/v1/ProductSearchClient.java | 102 ++-- .../google-cloud-vision/synth.metadata | 9 +- 74 files changed, 3276 insertions(+), 1738 deletions(-) diff --git a/google-api-grpc/grpc-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchGrpc.java b/google-api-grpc/grpc-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchGrpc.java index 7ed74f98416c..229c0b8d0cf9 100644 --- a/google-api-grpc/grpc-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchGrpc.java +++ b/google-api-grpc/grpc-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchGrpc.java @@ -13,15 +13,13 @@ *
  * Manages Products and ProductSets of reference images for use in product
  * search. It uses the following resource model:
- * - The API has a collection of [ProductSet][google.cloud.vision.v1.ProductSet]
- * resources, named `projects/*/locations/*/productSets/*`, which acts as a way
- * to put different products into groups to limit identification.
+ * - The API has a collection of [ProductSet][google.cloud.vision.v1.ProductSet] resources, named
+ * `projects/*/locations/*/productSets/*`, which acts as a way to put different
+ * products into groups to limit identification.
  * In parallel,
- * - The API has a collection of [Product][google.cloud.vision.v1.Product]
- * resources, named
+ * - The API has a collection of [Product][google.cloud.vision.v1.Product] resources, named
  *   `projects/*/locations/*/products/*`
- * - Each [Product][google.cloud.vision.v1.Product] has a collection of
- * [ReferenceImage][google.cloud.vision.v1.ReferenceImage] resources, named
+ * - Each [Product][google.cloud.vision.v1.Product] has a collection of [ReferenceImage][google.cloud.vision.v1.ReferenceImage] resources, named
  *   `projects/*/locations/*/products/*/referenceImages/*`
  * 
*/ @@ -1105,15 +1103,13 @@ public static ProductSearchFutureStub newFutureStub(io.grpc.Channel channel) { *
    * Manages Products and ProductSets of reference images for use in product
    * search. It uses the following resource model:
-   * - The API has a collection of [ProductSet][google.cloud.vision.v1.ProductSet]
-   * resources, named `projects/*/locations/*/productSets/*`, which acts as a way
-   * to put different products into groups to limit identification.
+   * - The API has a collection of [ProductSet][google.cloud.vision.v1.ProductSet] resources, named
+   * `projects/*/locations/*/productSets/*`, which acts as a way to put different
+   * products into groups to limit identification.
    * In parallel,
-   * - The API has a collection of [Product][google.cloud.vision.v1.Product]
-   * resources, named
+   * - The API has a collection of [Product][google.cloud.vision.v1.Product] resources, named
    *   `projects/*/locations/*/products/*`
-   * - Each [Product][google.cloud.vision.v1.Product] has a collection of
-   * [ReferenceImage][google.cloud.vision.v1.ReferenceImage] resources, named
+   * - Each [Product][google.cloud.vision.v1.Product] has a collection of [ReferenceImage][google.cloud.vision.v1.ReferenceImage] resources, named
    *   `projects/*/locations/*/products/*/referenceImages/*`
    * 
*/ @@ -1420,8 +1416,8 @@ public void listProductsInProductSet( *
      * Asynchronous API that imports a list of reference images to specified
      * product sets based on a list of image information.
-     * The [google.longrunning.Operation][google.longrunning.Operation] API can be
-     * used to keep track of the progress and results of the request.
+     * 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)
      * `Operation.response` contains `ImportProductSetsResponse`. (results)
      * The input source of this method is a csv file on Google Cloud Storage.
@@ -1455,8 +1451,8 @@ public void importProductSets(
      * 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.
+     * 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)
      * 
*/ @@ -1599,15 +1595,13 @@ public final io.grpc.ServerServiceDefinition bindService() { *
    * Manages Products and ProductSets of reference images for use in product
    * search. It uses the following resource model:
-   * - The API has a collection of [ProductSet][google.cloud.vision.v1.ProductSet]
-   * resources, named `projects/*/locations/*/productSets/*`, which acts as a way
-   * to put different products into groups to limit identification.
+   * - The API has a collection of [ProductSet][google.cloud.vision.v1.ProductSet] resources, named
+   * `projects/*/locations/*/productSets/*`, which acts as a way to put different
+   * products into groups to limit identification.
    * In parallel,
-   * - The API has a collection of [Product][google.cloud.vision.v1.Product]
-   * resources, named
+   * - The API has a collection of [Product][google.cloud.vision.v1.Product] resources, named
    *   `projects/*/locations/*/products/*`
-   * - Each [Product][google.cloud.vision.v1.Product] has a collection of
-   * [ReferenceImage][google.cloud.vision.v1.ReferenceImage] resources, named
+   * - Each [Product][google.cloud.vision.v1.Product] has a collection of [ReferenceImage][google.cloud.vision.v1.ReferenceImage] resources, named
    *   `projects/*/locations/*/products/*/referenceImages/*`
    * 
*/ @@ -1977,8 +1971,8 @@ public void listProductsInProductSet( *
      * Asynchronous API that imports a list of reference images to specified
      * product sets based on a list of image information.
-     * The [google.longrunning.Operation][google.longrunning.Operation] API can be
-     * used to keep track of the progress and results of the request.
+     * 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)
      * `Operation.response` contains `ImportProductSetsResponse`. (results)
      * The input source of this method is a csv file on Google Cloud Storage.
@@ -2015,8 +2009,8 @@ public void importProductSets(
      * 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.
+     * 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)
      * 
*/ @@ -2036,15 +2030,13 @@ public void purgeProducts( *
    * Manages Products and ProductSets of reference images for use in product
    * search. It uses the following resource model:
-   * - The API has a collection of [ProductSet][google.cloud.vision.v1.ProductSet]
-   * resources, named `projects/*/locations/*/productSets/*`, which acts as a way
-   * to put different products into groups to limit identification.
+   * - The API has a collection of [ProductSet][google.cloud.vision.v1.ProductSet] resources, named
+   * `projects/*/locations/*/productSets/*`, which acts as a way to put different
+   * products into groups to limit identification.
    * In parallel,
-   * - The API has a collection of [Product][google.cloud.vision.v1.Product]
-   * resources, named
+   * - The API has a collection of [Product][google.cloud.vision.v1.Product] resources, named
    *   `projects/*/locations/*/products/*`
-   * - Each [Product][google.cloud.vision.v1.Product] has a collection of
-   * [ReferenceImage][google.cloud.vision.v1.ReferenceImage] resources, named
+   * - Each [Product][google.cloud.vision.v1.Product] has a collection of [ReferenceImage][google.cloud.vision.v1.ReferenceImage] resources, named
    *   `projects/*/locations/*/products/*/referenceImages/*`
    * 
*/ @@ -2361,8 +2353,8 @@ public com.google.cloud.vision.v1.ListProductsInProductSetResponse listProductsI *
      * Asynchronous API that imports a list of reference images to specified
      * product sets based on a list of image information.
-     * The [google.longrunning.Operation][google.longrunning.Operation] API can be
-     * used to keep track of the progress and results of the request.
+     * 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)
      * `Operation.response` contains `ImportProductSetsResponse`. (results)
      * The input source of this method is a csv file on Google Cloud Storage.
@@ -2396,8 +2388,8 @@ public com.google.longrunning.Operation importProductSets(
      * 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.
+     * 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)
      * 
*/ @@ -2414,15 +2406,13 @@ public com.google.longrunning.Operation purgeProducts( *
    * Manages Products and ProductSets of reference images for use in product
    * search. It uses the following resource model:
-   * - The API has a collection of [ProductSet][google.cloud.vision.v1.ProductSet]
-   * resources, named `projects/*/locations/*/productSets/*`, which acts as a way
-   * to put different products into groups to limit identification.
+   * - The API has a collection of [ProductSet][google.cloud.vision.v1.ProductSet] resources, named
+   * `projects/*/locations/*/productSets/*`, which acts as a way to put different
+   * products into groups to limit identification.
    * In parallel,
-   * - The API has a collection of [Product][google.cloud.vision.v1.Product]
-   * resources, named
+   * - The API has a collection of [Product][google.cloud.vision.v1.Product] resources, named
    *   `projects/*/locations/*/products/*`
-   * - Each [Product][google.cloud.vision.v1.Product] has a collection of
-   * [ReferenceImage][google.cloud.vision.v1.ReferenceImage] resources, named
+   * - Each [Product][google.cloud.vision.v1.Product] has a collection of [ReferenceImage][google.cloud.vision.v1.ReferenceImage] resources, named
    *   `projects/*/locations/*/products/*/referenceImages/*`
    * 
*/ @@ -2749,8 +2739,8 @@ protected ProductSearchFutureStub build( *
      * Asynchronous API that imports a list of reference images to specified
      * product sets based on a list of image information.
-     * The [google.longrunning.Operation][google.longrunning.Operation] API can be
-     * used to keep track of the progress and results of the request.
+     * 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)
      * `Operation.response` contains `ImportProductSetsResponse`. (results)
      * The input source of this method is a csv file on Google Cloud Storage.
@@ -2784,8 +2774,8 @@ protected ProductSearchFutureStub build(
      * 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.
+     * 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)
      * 
*/ diff --git a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AddProductToProductSetRequest.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AddProductToProductSetRequest.java index 37101634ba4f..e619c60e2364 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AddProductToProductSetRequest.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AddProductToProductSetRequest.java @@ -105,12 +105,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_; @@ -127,12 +129,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_; @@ -152,12 +156,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_; @@ -174,12 +180,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_; @@ -533,12 +541,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_; @@ -555,12 +565,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_; @@ -577,12 +589,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) { @@ -597,12 +611,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() { @@ -614,12 +630,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) { @@ -637,12 +655,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_; @@ -659,12 +679,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_; @@ -681,12 +703,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) { @@ -701,12 +725,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() { @@ -718,12 +744,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/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AddProductToProductSetRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AddProductToProductSetRequestOrBuilder.java index bd2ececaed6c..044761239bf5 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AddProductToProductSetRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AddProductToProductSetRequestOrBuilder.java @@ -12,24 +12,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(); @@ -37,24 +41,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/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesRequest.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesRequest.java index ba4d4b9681ed..32c7ddc86de5 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesRequest.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesRequest.java @@ -117,10 +117,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.v1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getRequestsList() { return requests_; @@ -129,10 +131,12 @@ public java.util.List getRe * * *
-   * Individual async file annotation requests for this batch.
+   * Required. Individual async file annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getRequestsOrBuilderList() { @@ -142,10 +146,12 @@ public java.util.List getRe * * *
-   * Individual async file annotation requests for this batch.
+   * Required. Individual async file annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getRequestsCount() { return requests_.size(); @@ -154,10 +160,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.v1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.AsyncAnnotateFileRequest getRequests(int index) { return requests_.get(index); @@ -166,10 +174,12 @@ public com.google.cloud.vision.v1.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.v1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.AsyncAnnotateFileRequestOrBuilder getRequestsOrBuilder( int index) { @@ -634,10 +644,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.v1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getRequestsList() { if (requestsBuilder_ == null) { @@ -650,10 +662,12 @@ public java.util.List getRe * * *
-     * Individual async file annotation requests for this batch.
+     * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getRequestsCount() { if (requestsBuilder_ == null) { @@ -666,10 +680,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.v1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.AsyncAnnotateFileRequest getRequests(int index) { if (requestsBuilder_ == null) { @@ -682,10 +698,12 @@ public com.google.cloud.vision.v1.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.v1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRequests( int index, com.google.cloud.vision.v1.AsyncAnnotateFileRequest value) { @@ -705,10 +723,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.v1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRequests( int index, com.google.cloud.vision.v1.AsyncAnnotateFileRequest.Builder builderForValue) { @@ -725,10 +745,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.v1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests(com.google.cloud.vision.v1.AsyncAnnotateFileRequest value) { if (requestsBuilder_ == null) { @@ -747,10 +769,12 @@ public Builder addRequests(com.google.cloud.vision.v1.AsyncAnnotateFileRequest v * * *
-     * Individual async file annotation requests for this batch.
+     * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( int index, com.google.cloud.vision.v1.AsyncAnnotateFileRequest value) { @@ -770,10 +794,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.v1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( com.google.cloud.vision.v1.AsyncAnnotateFileRequest.Builder builderForValue) { @@ -790,10 +816,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.v1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( int index, com.google.cloud.vision.v1.AsyncAnnotateFileRequest.Builder builderForValue) { @@ -810,10 +838,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.v1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllRequests( java.lang.Iterable values) { @@ -830,10 +860,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.v1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearRequests() { if (requestsBuilder_ == null) { @@ -849,10 +881,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.v1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeRequests(int index) { if (requestsBuilder_ == null) { @@ -868,10 +902,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.v1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.AsyncAnnotateFileRequest.Builder getRequestsBuilder( int index) { @@ -881,10 +917,12 @@ public com.google.cloud.vision.v1.AsyncAnnotateFileRequest.Builder getRequestsBu * * *
-     * Individual async file annotation requests for this batch.
+     * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.AsyncAnnotateFileRequestOrBuilder getRequestsOrBuilder( int index) { @@ -898,10 +936,12 @@ public com.google.cloud.vision.v1.AsyncAnnotateFileRequestOrBuilder getRequestsO * * *
-     * Individual async file annotation requests for this batch.
+     * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getRequestsOrBuilderList() { @@ -915,10 +955,12 @@ public com.google.cloud.vision.v1.AsyncAnnotateFileRequestOrBuilder getRequestsO * * *
-     * Individual async file annotation requests for this batch.
+     * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.AsyncAnnotateFileRequest.Builder addRequestsBuilder() { return getRequestsFieldBuilder() @@ -928,10 +970,12 @@ public com.google.cloud.vision.v1.AsyncAnnotateFileRequest.Builder addRequestsBu * * *
-     * Individual async file annotation requests for this batch.
+     * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.AsyncAnnotateFileRequest.Builder addRequestsBuilder( int index) { @@ -943,10 +987,12 @@ public com.google.cloud.vision.v1.AsyncAnnotateFileRequest.Builder addRequestsBu * * *
-     * Individual async file annotation requests for this batch.
+     * Required. Individual async file annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getRequestsBuilderList() { diff --git a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesRequestOrBuilder.java index 1614467e4158..d8b08f8bfd1d 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateFilesRequestOrBuilder.java @@ -12,40 +12,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.v1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.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.v1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1.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.v1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.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.v1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ java.util.List getRequestsOrBuilderList(); @@ -53,10 +61,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.v1.AsyncAnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1.AsyncAnnotateFileRequestOrBuilder getRequestsOrBuilder(int index); diff --git a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesRequest.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesRequest.java index 0f88f2d834c3..21708780eed0 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesRequest.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesRequest.java @@ -131,10 +131,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.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getRequestsList() { return requests_; @@ -143,10 +145,12 @@ public java.util.List getReques * * *
-   * Individual image annotation requests for this batch.
+   * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getRequestsOrBuilderList() { @@ -156,10 +160,12 @@ public java.util.List getReques * * *
-   * Individual image annotation requests for this batch.
+   * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getRequestsCount() { return requests_.size(); @@ -168,10 +174,12 @@ public int getRequestsCount() { * * *
-   * Individual image annotation requests for this batch.
+   * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.AnnotateImageRequest getRequests(int index) { return requests_.get(index); @@ -180,10 +188,12 @@ public com.google.cloud.vision.v1.AnnotateImageRequest getRequests(int index) { * * *
-   * Individual image annotation requests for this batch.
+   * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder getRequestsOrBuilder(int index) { return requests_.get(index); @@ -198,7 +208,9 @@ public com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder getRequestsOrBui * Required. The desired output location and metadata (e.g. format). * * - * .google.cloud.vision.v1.OutputConfig output_config = 2; + * + * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasOutputConfig() { return outputConfig_ != null; @@ -210,7 +222,9 @@ public boolean hasOutputConfig() { * Required. The desired output location and metadata (e.g. format). * * - * .google.cloud.vision.v1.OutputConfig output_config = 2; + * + * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.OutputConfig getOutputConfig() { return outputConfig_ == null @@ -224,7 +238,9 @@ public com.google.cloud.vision.v1.OutputConfig getOutputConfig() { * Required. The desired output location and metadata (e.g. format). * * - * .google.cloud.vision.v1.OutputConfig output_config = 2; + * + * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.OutputConfigOrBuilder getOutputConfigOrBuilder() { return getOutputConfig(); @@ -715,10 +731,12 @@ private void ensureRequestsIsMutable() { * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getRequestsList() { if (requestsBuilder_ == null) { @@ -731,10 +749,12 @@ public java.util.List getReques * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getRequestsCount() { if (requestsBuilder_ == null) { @@ -747,10 +767,12 @@ public int getRequestsCount() { * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.AnnotateImageRequest getRequests(int index) { if (requestsBuilder_ == null) { @@ -763,10 +785,12 @@ public com.google.cloud.vision.v1.AnnotateImageRequest getRequests(int index) { * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRequests(int index, com.google.cloud.vision.v1.AnnotateImageRequest value) { if (requestsBuilder_ == null) { @@ -785,10 +809,12 @@ public Builder setRequests(int index, com.google.cloud.vision.v1.AnnotateImageRe * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRequests( int index, com.google.cloud.vision.v1.AnnotateImageRequest.Builder builderForValue) { @@ -805,10 +831,12 @@ public Builder setRequests( * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests(com.google.cloud.vision.v1.AnnotateImageRequest value) { if (requestsBuilder_ == null) { @@ -827,10 +855,12 @@ public Builder addRequests(com.google.cloud.vision.v1.AnnotateImageRequest value * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests(int index, com.google.cloud.vision.v1.AnnotateImageRequest value) { if (requestsBuilder_ == null) { @@ -849,10 +879,12 @@ public Builder addRequests(int index, com.google.cloud.vision.v1.AnnotateImageRe * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( com.google.cloud.vision.v1.AnnotateImageRequest.Builder builderForValue) { @@ -869,10 +901,12 @@ public Builder addRequests( * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( int index, com.google.cloud.vision.v1.AnnotateImageRequest.Builder builderForValue) { @@ -889,10 +923,12 @@ public Builder addRequests( * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllRequests( java.lang.Iterable values) { @@ -909,10 +945,12 @@ public Builder addAllRequests( * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearRequests() { if (requestsBuilder_ == null) { @@ -928,10 +966,12 @@ public Builder clearRequests() { * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeRequests(int index) { if (requestsBuilder_ == null) { @@ -947,10 +987,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.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.AnnotateImageRequest.Builder getRequestsBuilder(int index) { return getRequestsFieldBuilder().getBuilder(index); @@ -959,10 +1001,12 @@ public com.google.cloud.vision.v1.AnnotateImageRequest.Builder getRequestsBuilde * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder getRequestsOrBuilder( int index) { @@ -976,10 +1020,12 @@ public com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder getRequestsOrBui * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getRequestsOrBuilderList() { @@ -993,10 +1039,12 @@ public com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder getRequestsOrBui * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.AnnotateImageRequest.Builder addRequestsBuilder() { return getRequestsFieldBuilder() @@ -1006,10 +1054,12 @@ public com.google.cloud.vision.v1.AnnotateImageRequest.Builder addRequestsBuilde * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.AnnotateImageRequest.Builder addRequestsBuilder(int index) { return getRequestsFieldBuilder() @@ -1019,10 +1069,12 @@ public com.google.cloud.vision.v1.AnnotateImageRequest.Builder addRequestsBuilde * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getRequestsBuilderList() { @@ -1059,7 +1111,9 @@ public com.google.cloud.vision.v1.AnnotateImageRequest.Builder addRequestsBuilde * Required. The desired output location and metadata (e.g. format). * * - * .google.cloud.vision.v1.OutputConfig output_config = 2; + * + * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; @@ -1071,7 +1125,9 @@ public boolean hasOutputConfig() { * Required. The desired output location and metadata (e.g. format). * * - * .google.cloud.vision.v1.OutputConfig output_config = 2; + * + * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { @@ -1089,7 +1145,9 @@ public com.google.cloud.vision.v1.OutputConfig getOutputConfig() { * Required. The desired output location and metadata (e.g. format). * * - * .google.cloud.vision.v1.OutputConfig output_config = 2; + * + * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig(com.google.cloud.vision.v1.OutputConfig value) { if (outputConfigBuilder_ == null) { @@ -1111,7 +1169,9 @@ public Builder setOutputConfig(com.google.cloud.vision.v1.OutputConfig value) { * Required. The desired output location and metadata (e.g. format). * * - * .google.cloud.vision.v1.OutputConfig output_config = 2; + * + * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig( com.google.cloud.vision.v1.OutputConfig.Builder builderForValue) { @@ -1131,7 +1191,9 @@ public Builder setOutputConfig( * Required. The desired output location and metadata (e.g. format). * * - * .google.cloud.vision.v1.OutputConfig output_config = 2; + * + * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeOutputConfig(com.google.cloud.vision.v1.OutputConfig value) { if (outputConfigBuilder_ == null) { @@ -1157,7 +1219,9 @@ public Builder mergeOutputConfig(com.google.cloud.vision.v1.OutputConfig value) * Required. The desired output location and metadata (e.g. format). * * - * .google.cloud.vision.v1.OutputConfig output_config = 2; + * + * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -1177,7 +1241,9 @@ public Builder clearOutputConfig() { * Required. The desired output location and metadata (e.g. format). * * - * .google.cloud.vision.v1.OutputConfig output_config = 2; + * + * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.OutputConfig.Builder getOutputConfigBuilder() { @@ -1191,7 +1257,9 @@ public com.google.cloud.vision.v1.OutputConfig.Builder getOutputConfigBuilder() * Required. The desired output location and metadata (e.g. format). * * - * .google.cloud.vision.v1.OutputConfig output_config = 2; + * + * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.OutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { @@ -1209,7 +1277,9 @@ public com.google.cloud.vision.v1.OutputConfigOrBuilder getOutputConfigOrBuilder * Required. The desired output location and metadata (e.g. format). * * - * .google.cloud.vision.v1.OutputConfig output_config = 2; + * + * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.vision.v1.OutputConfig, diff --git a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesRequestOrBuilder.java index 69beb6eca985..fe40a649e70e 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/AsyncBatchAnnotateImagesRequestOrBuilder.java @@ -12,40 +12,48 @@ public interface AsyncBatchAnnotateImagesRequestOrBuilder * * *
-   * Individual image annotation requests for this batch.
+   * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.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.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1.AnnotateImageRequest getRequests(int index); /** * * *
-   * Individual image annotation requests for this batch.
+   * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.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.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ java.util.List getRequestsOrBuilderList(); @@ -53,10 +61,12 @@ public interface AsyncBatchAnnotateImagesRequestOrBuilder * * *
-   * Individual image annotation requests for this batch.
+   * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder getRequestsOrBuilder(int index); @@ -67,7 +77,9 @@ public interface AsyncBatchAnnotateImagesRequestOrBuilder * Required. The desired output location and metadata (e.g. format). * * - * .google.cloud.vision.v1.OutputConfig output_config = 2; + * + * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ boolean hasOutputConfig(); /** @@ -77,7 +89,9 @@ public interface AsyncBatchAnnotateImagesRequestOrBuilder * Required. The desired output location and metadata (e.g. format). * * - * .google.cloud.vision.v1.OutputConfig output_config = 2; + * + * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1.OutputConfig getOutputConfig(); /** @@ -87,7 +101,9 @@ public interface AsyncBatchAnnotateImagesRequestOrBuilder * Required. The desired output location and metadata (e.g. format). * * - * .google.cloud.vision.v1.OutputConfig output_config = 2; + * + * .google.cloud.vision.v1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1.OutputConfigOrBuilder getOutputConfigOrBuilder(); diff --git a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesRequest.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesRequest.java index 1cdf80417802..2f70e290b2ea 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesRequest.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesRequest.java @@ -114,11 +114,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The list of file annotation requests. Right now we support only one
+   * Required. The list of file annotation requests. Right now we support only one
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getRequestsList() { return requests_; @@ -127,11 +129,13 @@ public java.util.List getRequest * * *
-   * The list of file annotation requests. Right now we support only one
+   * Required. The list of file annotation requests. Right now we support only one
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getRequestsOrBuilderList() { @@ -141,11 +145,13 @@ public java.util.List getRequest * * *
-   * The list of file annotation requests. Right now we support only one
+   * Required. The list of file annotation requests. Right now we support only one
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getRequestsCount() { return requests_.size(); @@ -154,11 +160,13 @@ public int getRequestsCount() { * * *
-   * The list of file annotation requests. Right now we support only one
+   * Required. The list of file annotation requests. Right now we support only one
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.AnnotateFileRequest getRequests(int index) { return requests_.get(index); @@ -167,11 +175,13 @@ public com.google.cloud.vision.v1.AnnotateFileRequest getRequests(int index) { * * *
-   * The list of file annotation requests. Right now we support only one
+   * Required. The list of file annotation requests. Right now we support only one
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.AnnotateFileRequestOrBuilder getRequestsOrBuilder(int index) { return requests_.get(index); @@ -633,11 +643,13 @@ private void ensureRequestsIsMutable() { * * *
-     * The list of file annotation requests. Right now we support only one
+     * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getRequestsList() { if (requestsBuilder_ == null) { @@ -650,11 +662,13 @@ public java.util.List getRequest * * *
-     * The list of file annotation requests. Right now we support only one
+     * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getRequestsCount() { if (requestsBuilder_ == null) { @@ -667,11 +681,13 @@ public int getRequestsCount() { * * *
-     * The list of file annotation requests. Right now we support only one
+     * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.AnnotateFileRequest getRequests(int index) { if (requestsBuilder_ == null) { @@ -684,11 +700,13 @@ public com.google.cloud.vision.v1.AnnotateFileRequest getRequests(int index) { * * *
-     * The list of file annotation requests. Right now we support only one
+     * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRequests(int index, com.google.cloud.vision.v1.AnnotateFileRequest value) { if (requestsBuilder_ == null) { @@ -707,11 +725,13 @@ public Builder setRequests(int index, com.google.cloud.vision.v1.AnnotateFileReq * * *
-     * The list of file annotation requests. Right now we support only one
+     * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRequests( int index, com.google.cloud.vision.v1.AnnotateFileRequest.Builder builderForValue) { @@ -728,11 +748,13 @@ public Builder setRequests( * * *
-     * The list of file annotation requests. Right now we support only one
+     * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests(com.google.cloud.vision.v1.AnnotateFileRequest value) { if (requestsBuilder_ == null) { @@ -751,11 +773,13 @@ public Builder addRequests(com.google.cloud.vision.v1.AnnotateFileRequest value) * * *
-     * The list of file annotation requests. Right now we support only one
+     * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests(int index, com.google.cloud.vision.v1.AnnotateFileRequest value) { if (requestsBuilder_ == null) { @@ -774,11 +798,13 @@ public Builder addRequests(int index, com.google.cloud.vision.v1.AnnotateFileReq * * *
-     * The list of file annotation requests. Right now we support only one
+     * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( com.google.cloud.vision.v1.AnnotateFileRequest.Builder builderForValue) { @@ -795,11 +821,13 @@ public Builder addRequests( * * *
-     * The list of file annotation requests. Right now we support only one
+     * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( int index, com.google.cloud.vision.v1.AnnotateFileRequest.Builder builderForValue) { @@ -816,11 +844,13 @@ public Builder addRequests( * * *
-     * The list of file annotation requests. Right now we support only one
+     * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllRequests( java.lang.Iterable values) { @@ -837,11 +867,13 @@ public Builder addAllRequests( * * *
-     * The list of file annotation requests. Right now we support only one
+     * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearRequests() { if (requestsBuilder_ == null) { @@ -857,11 +889,13 @@ public Builder clearRequests() { * * *
-     * The list of file annotation requests. Right now we support only one
+     * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeRequests(int index) { if (requestsBuilder_ == null) { @@ -877,11 +911,13 @@ public Builder removeRequests(int index) { * * *
-     * The list of file annotation requests. Right now we support only one
+     * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.AnnotateFileRequest.Builder getRequestsBuilder(int index) { return getRequestsFieldBuilder().getBuilder(index); @@ -890,11 +926,13 @@ public com.google.cloud.vision.v1.AnnotateFileRequest.Builder getRequestsBuilder * * *
-     * The list of file annotation requests. Right now we support only one
+     * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.AnnotateFileRequestOrBuilder getRequestsOrBuilder(int index) { if (requestsBuilder_ == null) { @@ -907,11 +945,13 @@ public com.google.cloud.vision.v1.AnnotateFileRequestOrBuilder getRequestsOrBuil * * *
-     * The list of file annotation requests. Right now we support only one
+     * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getRequestsOrBuilderList() { @@ -925,11 +965,13 @@ public com.google.cloud.vision.v1.AnnotateFileRequestOrBuilder getRequestsOrBuil * * *
-     * The list of file annotation requests. Right now we support only one
+     * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.AnnotateFileRequest.Builder addRequestsBuilder() { return getRequestsFieldBuilder() @@ -939,11 +981,13 @@ public com.google.cloud.vision.v1.AnnotateFileRequest.Builder addRequestsBuilder * * *
-     * The list of file annotation requests. Right now we support only one
+     * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.AnnotateFileRequest.Builder addRequestsBuilder(int index) { return getRequestsFieldBuilder() @@ -953,11 +997,13 @@ public com.google.cloud.vision.v1.AnnotateFileRequest.Builder addRequestsBuilder * * *
-     * The list of file annotation requests. Right now we support only one
+     * Required. The list of file annotation requests. Right now we support only one
      * AnnotateFileRequest in BatchAnnotateFilesRequest.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getRequestsBuilderList() { diff --git a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesRequestOrBuilder.java index e3bfcf626a68..e8cf2cc18509 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateFilesRequestOrBuilder.java @@ -12,44 +12,52 @@ public interface BatchAnnotateFilesRequestOrBuilder * * *
-   * The list of file annotation requests. Right now we support only one
+   * Required. The list of file annotation requests. Right now we support only one
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ java.util.List getRequestsList(); /** * * *
-   * The list of file annotation requests. Right now we support only one
+   * Required. The list of file annotation requests. Right now we support only one
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1.AnnotateFileRequest getRequests(int index); /** * * *
-   * The list of file annotation requests. Right now we support only one
+   * Required. The list of file annotation requests. Right now we support only one
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ int getRequestsCount(); /** * * *
-   * The list of file annotation requests. Right now we support only one
+   * Required. The list of file annotation requests. Right now we support only one
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ java.util.List getRequestsOrBuilderList(); @@ -57,11 +65,13 @@ public interface BatchAnnotateFilesRequestOrBuilder * * *
-   * The list of file annotation requests. Right now we support only one
+   * Required. The list of file annotation requests. Right now we support only one
    * AnnotateFileRequest in BatchAnnotateFilesRequest.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1.AnnotateFileRequestOrBuilder getRequestsOrBuilder(int index); diff --git a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesRequest.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesRequest.java index 30973318893d..4a47febdc31b 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesRequest.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesRequest.java @@ -114,10 +114,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.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getRequestsList() { return requests_; @@ -126,10 +128,12 @@ public java.util.List getReques * * *
-   * Individual image annotation requests for this batch.
+   * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getRequestsOrBuilderList() { @@ -139,10 +143,12 @@ public java.util.List getReques * * *
-   * Individual image annotation requests for this batch.
+   * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getRequestsCount() { return requests_.size(); @@ -151,10 +157,12 @@ public int getRequestsCount() { * * *
-   * Individual image annotation requests for this batch.
+   * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.AnnotateImageRequest getRequests(int index) { return requests_.get(index); @@ -163,10 +171,12 @@ public com.google.cloud.vision.v1.AnnotateImageRequest getRequests(int index) { * * *
-   * Individual image annotation requests for this batch.
+   * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder getRequestsOrBuilder(int index) { return requests_.get(index); @@ -629,10 +639,12 @@ private void ensureRequestsIsMutable() { * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getRequestsList() { if (requestsBuilder_ == null) { @@ -645,10 +657,12 @@ public java.util.List getReques * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getRequestsCount() { if (requestsBuilder_ == null) { @@ -661,10 +675,12 @@ public int getRequestsCount() { * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.AnnotateImageRequest getRequests(int index) { if (requestsBuilder_ == null) { @@ -677,10 +693,12 @@ public com.google.cloud.vision.v1.AnnotateImageRequest getRequests(int index) { * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRequests(int index, com.google.cloud.vision.v1.AnnotateImageRequest value) { if (requestsBuilder_ == null) { @@ -699,10 +717,12 @@ public Builder setRequests(int index, com.google.cloud.vision.v1.AnnotateImageRe * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRequests( int index, com.google.cloud.vision.v1.AnnotateImageRequest.Builder builderForValue) { @@ -719,10 +739,12 @@ public Builder setRequests( * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests(com.google.cloud.vision.v1.AnnotateImageRequest value) { if (requestsBuilder_ == null) { @@ -741,10 +763,12 @@ public Builder addRequests(com.google.cloud.vision.v1.AnnotateImageRequest value * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests(int index, com.google.cloud.vision.v1.AnnotateImageRequest value) { if (requestsBuilder_ == null) { @@ -763,10 +787,12 @@ public Builder addRequests(int index, com.google.cloud.vision.v1.AnnotateImageRe * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( com.google.cloud.vision.v1.AnnotateImageRequest.Builder builderForValue) { @@ -783,10 +809,12 @@ public Builder addRequests( * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addRequests( int index, com.google.cloud.vision.v1.AnnotateImageRequest.Builder builderForValue) { @@ -803,10 +831,12 @@ public Builder addRequests( * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllRequests( java.lang.Iterable values) { @@ -823,10 +853,12 @@ public Builder addAllRequests( * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearRequests() { if (requestsBuilder_ == null) { @@ -842,10 +874,12 @@ public Builder clearRequests() { * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeRequests(int index) { if (requestsBuilder_ == null) { @@ -861,10 +895,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.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.AnnotateImageRequest.Builder getRequestsBuilder(int index) { return getRequestsFieldBuilder().getBuilder(index); @@ -873,10 +909,12 @@ public com.google.cloud.vision.v1.AnnotateImageRequest.Builder getRequestsBuilde * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder getRequestsOrBuilder( int index) { @@ -890,10 +928,12 @@ public com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder getRequestsOrBui * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getRequestsOrBuilderList() { @@ -907,10 +947,12 @@ public com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder getRequestsOrBui * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.AnnotateImageRequest.Builder addRequestsBuilder() { return getRequestsFieldBuilder() @@ -920,10 +962,12 @@ public com.google.cloud.vision.v1.AnnotateImageRequest.Builder addRequestsBuilde * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.AnnotateImageRequest.Builder addRequestsBuilder(int index) { return getRequestsFieldBuilder() @@ -933,10 +977,12 @@ public com.google.cloud.vision.v1.AnnotateImageRequest.Builder addRequestsBuilde * * *
-     * Individual image annotation requests for this batch.
+     * Required. Individual image annotation requests for this batch.
      * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getRequestsBuilderList() { diff --git a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesRequestOrBuilder.java index f2c813e1111d..c8d1b4ce2b89 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchAnnotateImagesRequestOrBuilder.java @@ -12,40 +12,48 @@ public interface BatchAnnotateImagesRequestOrBuilder * * *
-   * Individual image annotation requests for this batch.
+   * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.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.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1.AnnotateImageRequest getRequests(int index); /** * * *
-   * Individual image annotation requests for this batch.
+   * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.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.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ java.util.List getRequestsOrBuilderList(); @@ -53,10 +61,12 @@ public interface BatchAnnotateImagesRequestOrBuilder * * *
-   * Individual image annotation requests for this batch.
+   * Required. Individual image annotation requests for this batch.
    * 
* - * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1; + * + * repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1.AnnotateImageRequestOrBuilder getRequestsOrBuilder(int index); diff --git a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchOperationMetadata.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchOperationMetadata.java index e7b6d34a63e7..c9ac4d5148d7 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchOperationMetadata.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchOperationMetadata.java @@ -398,8 +398,7 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * *
    * The time when the batch request is finished and
-   * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
-   * set to true.
+   * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
    * 
* * .google.protobuf.Timestamp end_time = 3; @@ -412,8 +411,7 @@ public boolean hasEndTime() { * *
    * The time when the batch request is finished and
-   * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
-   * set to true.
+   * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
    * 
* * .google.protobuf.Timestamp end_time = 3; @@ -426,8 +424,7 @@ public com.google.protobuf.Timestamp getEndTime() { * *
    * The time when the batch request is finished and
-   * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
-   * set to true.
+   * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
    * 
* * .google.protobuf.Timestamp end_time = 3; @@ -1081,8 +1078,7 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * *
      * The time when the batch request is finished and
-     * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
-     * set to true.
+     * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
      * 
* * .google.protobuf.Timestamp end_time = 3; @@ -1095,8 +1091,7 @@ public boolean hasEndTime() { * *
      * The time when the batch request is finished and
-     * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
-     * set to true.
+     * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
      * 
* * .google.protobuf.Timestamp end_time = 3; @@ -1113,8 +1108,7 @@ public com.google.protobuf.Timestamp getEndTime() { * *
      * The time when the batch request is finished and
-     * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
-     * set to true.
+     * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
      * 
* * .google.protobuf.Timestamp end_time = 3; @@ -1137,8 +1131,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { * *
      * The time when the batch request is finished and
-     * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
-     * set to true.
+     * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
      * 
* * .google.protobuf.Timestamp end_time = 3; @@ -1158,8 +1151,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) * *
      * The time when the batch request is finished and
-     * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
-     * set to true.
+     * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
      * 
* * .google.protobuf.Timestamp end_time = 3; @@ -1184,8 +1176,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { * *
      * The time when the batch request is finished and
-     * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
-     * set to true.
+     * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
      * 
* * .google.protobuf.Timestamp end_time = 3; @@ -1206,8 +1197,7 @@ public Builder clearEndTime() { * *
      * The time when the batch request is finished and
-     * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
-     * set to true.
+     * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
      * 
* * .google.protobuf.Timestamp end_time = 3; @@ -1222,8 +1212,7 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { * *
      * The time when the batch request is finished and
-     * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
-     * set to true.
+     * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
      * 
* * .google.protobuf.Timestamp end_time = 3; @@ -1240,8 +1229,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * *
      * The time when the batch request is finished and
-     * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
-     * set to true.
+     * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
      * 
* * .google.protobuf.Timestamp end_time = 3; diff --git a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchOperationMetadataOrBuilder.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchOperationMetadataOrBuilder.java index 83302fca2bdc..f663777e1d70 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchOperationMetadataOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/BatchOperationMetadataOrBuilder.java @@ -65,8 +65,7 @@ public interface BatchOperationMetadataOrBuilder * *
    * The time when the batch request is finished and
-   * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
-   * set to true.
+   * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
    * 
* * .google.protobuf.Timestamp end_time = 3; @@ -77,8 +76,7 @@ public interface BatchOperationMetadataOrBuilder * *
    * The time when the batch request is finished and
-   * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
-   * set to true.
+   * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
    * 
* * .google.protobuf.Timestamp end_time = 3; @@ -89,8 +87,7 @@ public interface BatchOperationMetadataOrBuilder * *
    * The time when the batch request is finished and
-   * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
-   * set to true.
+   * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
    * 
* * .google.protobuf.Timestamp end_time = 3; diff --git a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductRequest.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductRequest.java index da9ba645f905..2339ceebb137 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductRequest.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductRequest.java @@ -120,12 +120,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_; @@ -142,12 +144,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_; @@ -167,10 +171,11 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * The product to create.
+   * Required. The product to create.
    * 
* - * .google.cloud.vision.v1.Product product = 2; + * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasProduct() { return product_ != null; @@ -179,10 +184,11 @@ public boolean hasProduct() { * * *
-   * The product to create.
+   * Required. The product to create.
    * 
* - * .google.cloud.vision.v1.Product product = 2; + * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.Product getProduct() { return product_ == null ? com.google.cloud.vision.v1.Product.getDefaultInstance() : product_; @@ -191,10 +197,11 @@ public com.google.cloud.vision.v1.Product getProduct() { * * *
-   * The product to create.
+   * Required. The product to create.
    * 
* - * .google.cloud.vision.v1.Product product = 2; + * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.ProductOrBuilder getProductOrBuilder() { return getProduct(); @@ -615,12 +622,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_; @@ -637,12 +646,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_; @@ -659,12 +670,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) { @@ -679,12 +692,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() { @@ -696,12 +711,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) { @@ -724,10 +741,11 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * The product to create.
+     * Required. The product to create.
      * 
* - * .google.cloud.vision.v1.Product product = 2; + * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasProduct() { return productBuilder_ != null || product_ != null; @@ -736,10 +754,11 @@ public boolean hasProduct() { * * *
-     * The product to create.
+     * Required. The product to create.
      * 
* - * .google.cloud.vision.v1.Product product = 2; + * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.Product getProduct() { if (productBuilder_ == null) { @@ -754,10 +773,11 @@ public com.google.cloud.vision.v1.Product getProduct() { * * *
-     * The product to create.
+     * Required. The product to create.
      * 
* - * .google.cloud.vision.v1.Product product = 2; + * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setProduct(com.google.cloud.vision.v1.Product value) { if (productBuilder_ == null) { @@ -776,10 +796,11 @@ public Builder setProduct(com.google.cloud.vision.v1.Product value) { * * *
-     * The product to create.
+     * Required. The product to create.
      * 
* - * .google.cloud.vision.v1.Product product = 2; + * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setProduct(com.google.cloud.vision.v1.Product.Builder builderForValue) { if (productBuilder_ == null) { @@ -795,10 +816,11 @@ public Builder setProduct(com.google.cloud.vision.v1.Product.Builder builderForV * * *
-     * The product to create.
+     * Required. The product to create.
      * 
* - * .google.cloud.vision.v1.Product product = 2; + * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeProduct(com.google.cloud.vision.v1.Product value) { if (productBuilder_ == null) { @@ -821,10 +843,11 @@ public Builder mergeProduct(com.google.cloud.vision.v1.Product value) { * * *
-     * The product to create.
+     * Required. The product to create.
      * 
* - * .google.cloud.vision.v1.Product product = 2; + * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearProduct() { if (productBuilder_ == null) { @@ -841,10 +864,11 @@ public Builder clearProduct() { * * *
-     * The product to create.
+     * Required. The product to create.
      * 
* - * .google.cloud.vision.v1.Product product = 2; + * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.Product.Builder getProductBuilder() { @@ -855,10 +879,11 @@ public com.google.cloud.vision.v1.Product.Builder getProductBuilder() { * * *
-     * The product to create.
+     * Required. The product to create.
      * 
* - * .google.cloud.vision.v1.Product product = 2; + * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.ProductOrBuilder getProductOrBuilder() { if (productBuilder_ != null) { @@ -873,10 +898,11 @@ public com.google.cloud.vision.v1.ProductOrBuilder getProductOrBuilder() { * * *
-     * The product to create.
+     * Required. The product to create.
      * 
* - * .google.cloud.vision.v1.Product product = 2; + * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.vision.v1.Product, diff --git a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductRequestOrBuilder.java index edfe76e69488..049be9b119f8 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductRequestOrBuilder.java @@ -12,24 +12,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(); @@ -37,30 +41,33 @@ public interface CreateProductRequestOrBuilder * * *
-   * The product to create.
+   * Required. The product to create.
    * 
* - * .google.cloud.vision.v1.Product product = 2; + * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ boolean hasProduct(); /** * * *
-   * The product to create.
+   * Required. The product to create.
    * 
* - * .google.cloud.vision.v1.Product product = 2; + * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1.Product getProduct(); /** * * *
-   * The product to create.
+   * Required. The product to create.
    * 
* - * .google.cloud.vision.v1.Product product = 2; + * .google.cloud.vision.v1.Product product = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1.ProductOrBuilder getProductOrBuilder(); diff --git a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductSetRequest.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductSetRequest.java index 10f3d0c0c800..49e7775dd697 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductSetRequest.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductSetRequest.java @@ -121,11 +121,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_; @@ -142,11 +144,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_; @@ -166,10 +170,12 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * The ProductSet to create.
+   * Required. The ProductSet to create.
    * 
* - * .google.cloud.vision.v1.ProductSet product_set = 2; + * + * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasProductSet() { return productSet_ != null; @@ -178,10 +184,12 @@ public boolean hasProductSet() { * * *
-   * The ProductSet to create.
+   * Required. The ProductSet to create.
    * 
* - * .google.cloud.vision.v1.ProductSet product_set = 2; + * + * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.ProductSet getProductSet() { return productSet_ == null @@ -192,10 +200,12 @@ public com.google.cloud.vision.v1.ProductSet getProductSet() { * * *
-   * The ProductSet to create.
+   * Required. The ProductSet to create.
    * 
* - * .google.cloud.vision.v1.ProductSet product_set = 2; + * + * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetOrBuilder() { return getProductSet(); @@ -617,11 +627,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_; @@ -638,11 +650,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_; @@ -659,11 +673,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) { @@ -678,11 +694,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() { @@ -694,11 +712,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) { @@ -721,10 +741,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * The ProductSet to create.
+     * Required. The ProductSet to create.
      * 
* - * .google.cloud.vision.v1.ProductSet product_set = 2; + * + * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasProductSet() { return productSetBuilder_ != null || productSet_ != null; @@ -733,10 +755,12 @@ public boolean hasProductSet() { * * *
-     * The ProductSet to create.
+     * Required. The ProductSet to create.
      * 
* - * .google.cloud.vision.v1.ProductSet product_set = 2; + * + * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.ProductSet getProductSet() { if (productSetBuilder_ == null) { @@ -751,10 +775,12 @@ public com.google.cloud.vision.v1.ProductSet getProductSet() { * * *
-     * The ProductSet to create.
+     * Required. The ProductSet to create.
      * 
* - * .google.cloud.vision.v1.ProductSet product_set = 2; + * + * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setProductSet(com.google.cloud.vision.v1.ProductSet value) { if (productSetBuilder_ == null) { @@ -773,10 +799,12 @@ public Builder setProductSet(com.google.cloud.vision.v1.ProductSet value) { * * *
-     * The ProductSet to create.
+     * Required. The ProductSet to create.
      * 
* - * .google.cloud.vision.v1.ProductSet product_set = 2; + * + * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setProductSet(com.google.cloud.vision.v1.ProductSet.Builder builderForValue) { if (productSetBuilder_ == null) { @@ -792,10 +820,12 @@ public Builder setProductSet(com.google.cloud.vision.v1.ProductSet.Builder build * * *
-     * The ProductSet to create.
+     * Required. The ProductSet to create.
      * 
* - * .google.cloud.vision.v1.ProductSet product_set = 2; + * + * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeProductSet(com.google.cloud.vision.v1.ProductSet value) { if (productSetBuilder_ == null) { @@ -818,10 +848,12 @@ public Builder mergeProductSet(com.google.cloud.vision.v1.ProductSet value) { * * *
-     * The ProductSet to create.
+     * Required. The ProductSet to create.
      * 
* - * .google.cloud.vision.v1.ProductSet product_set = 2; + * + * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearProductSet() { if (productSetBuilder_ == null) { @@ -838,10 +870,12 @@ public Builder clearProductSet() { * * *
-     * The ProductSet to create.
+     * Required. The ProductSet to create.
      * 
* - * .google.cloud.vision.v1.ProductSet product_set = 2; + * + * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.ProductSet.Builder getProductSetBuilder() { @@ -852,10 +886,12 @@ public com.google.cloud.vision.v1.ProductSet.Builder getProductSetBuilder() { * * *
-     * The ProductSet to create.
+     * Required. The ProductSet to create.
      * 
* - * .google.cloud.vision.v1.ProductSet product_set = 2; + * + * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetOrBuilder() { if (productSetBuilder_ != null) { @@ -870,10 +906,12 @@ public com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetOrBuilder() { * * *
-     * The ProductSet to create.
+     * Required. The ProductSet to create.
      * 
* - * .google.cloud.vision.v1.ProductSet product_set = 2; + * + * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.vision.v1.ProductSet, diff --git a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductSetRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductSetRequestOrBuilder.java index e5e7640817fa..a0057ec48461 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductSetRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateProductSetRequestOrBuilder.java @@ -12,22 +12,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(); @@ -35,30 +39,36 @@ public interface CreateProductSetRequestOrBuilder * * *
-   * The ProductSet to create.
+   * Required. The ProductSet to create.
    * 
* - * .google.cloud.vision.v1.ProductSet product_set = 2; + * + * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ boolean hasProductSet(); /** * * *
-   * The ProductSet to create.
+   * Required. The ProductSet to create.
    * 
* - * .google.cloud.vision.v1.ProductSet product_set = 2; + * + * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1.ProductSet getProductSet(); /** * * *
-   * The ProductSet to create.
+   * Required. The ProductSet to create.
    * 
* - * .google.cloud.vision.v1.ProductSet product_set = 2; + * + * .google.cloud.vision.v1.ProductSet product_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetOrBuilder(); diff --git a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateReferenceImageRequest.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateReferenceImageRequest.java index 1875cb6f52ff..049ba377844d 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateReferenceImageRequest.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateReferenceImageRequest.java @@ -121,12 +121,14 @@ 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_; @@ -143,12 +145,14 @@ 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_; @@ -168,11 +172,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.v1.ReferenceImage reference_image = 2; + * + * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasReferenceImage() { return referenceImage_ != null; @@ -181,11 +187,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.v1.ReferenceImage reference_image = 2; + * + * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.ReferenceImage getReferenceImage() { return referenceImage_ == null @@ -196,11 +204,13 @@ public com.google.cloud.vision.v1.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.v1.ReferenceImage reference_image = 2; + * + * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImageOrBuilder() { return getReferenceImage(); @@ -623,12 +633,14 @@ 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_; @@ -645,12 +657,14 @@ 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_; @@ -667,12 +681,14 @@ 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) { @@ -687,12 +703,14 @@ 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() { @@ -704,12 +722,14 @@ 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) { @@ -732,11 +752,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.v1.ReferenceImage reference_image = 2; + * + * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasReferenceImage() { return referenceImageBuilder_ != null || referenceImage_ != null; @@ -745,11 +767,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.v1.ReferenceImage reference_image = 2; + * + * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.ReferenceImage getReferenceImage() { if (referenceImageBuilder_ == null) { @@ -764,11 +788,13 @@ public com.google.cloud.vision.v1.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.v1.ReferenceImage reference_image = 2; + * + * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setReferenceImage(com.google.cloud.vision.v1.ReferenceImage value) { if (referenceImageBuilder_ == null) { @@ -787,11 +813,13 @@ public Builder setReferenceImage(com.google.cloud.vision.v1.ReferenceImage value * * *
-     * The reference image to create.
+     * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * .google.cloud.vision.v1.ReferenceImage reference_image = 2; + * + * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setReferenceImage( com.google.cloud.vision.v1.ReferenceImage.Builder builderForValue) { @@ -808,11 +836,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.v1.ReferenceImage reference_image = 2; + * + * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeReferenceImage(com.google.cloud.vision.v1.ReferenceImage value) { if (referenceImageBuilder_ == null) { @@ -835,11 +865,13 @@ public Builder mergeReferenceImage(com.google.cloud.vision.v1.ReferenceImage val * * *
-     * The reference image to create.
+     * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * .google.cloud.vision.v1.ReferenceImage reference_image = 2; + * + * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearReferenceImage() { if (referenceImageBuilder_ == null) { @@ -856,11 +888,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.v1.ReferenceImage reference_image = 2; + * + * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.ReferenceImage.Builder getReferenceImageBuilder() { @@ -871,11 +905,13 @@ public com.google.cloud.vision.v1.ReferenceImage.Builder getReferenceImageBuilde * * *
-     * The reference image to create.
+     * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * .google.cloud.vision.v1.ReferenceImage reference_image = 2; + * + * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImageOrBuilder() { if (referenceImageBuilder_ != null) { @@ -890,11 +926,13 @@ public com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImageOrBui * * *
-     * The reference image to create.
+     * Required. The reference image to create.
      * If an image ID is specified, it is ignored.
      * 
* - * .google.cloud.vision.v1.ReferenceImage reference_image = 2; + * + * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.vision.v1.ReferenceImage, diff --git a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateReferenceImageRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateReferenceImageRequestOrBuilder.java index fa862eed5da7..5bbe981ea36d 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateReferenceImageRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/CreateReferenceImageRequestOrBuilder.java @@ -12,24 +12,28 @@ 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(); @@ -37,33 +41,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.v1.ReferenceImage reference_image = 2; + * + * .google.cloud.vision.v1.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.v1.ReferenceImage reference_image = 2; + * + * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1.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.v1.ReferenceImage reference_image = 2; + * + * .google.cloud.vision.v1.ReferenceImage reference_image = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1.ReferenceImageOrBuilder getReferenceImageOrBuilder(); diff --git a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductRequest.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductRequest.java index cbef7c101df7..7edae1a8c918 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductRequest.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductRequest.java @@ -97,12 +97,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_; @@ -119,12 +121,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_; @@ -460,12 +464,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_; @@ -482,12 +488,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_; @@ -504,12 +512,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) { @@ -524,12 +534,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() { @@ -541,12 +553,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/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductRequestOrBuilder.java index 3183b4f336f4..7c26d4b4d270 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductRequestOrBuilder.java @@ -12,24 +12,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/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductSetRequest.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductSetRequest.java index 9c8f4d84c62a..9526f0746c94 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductSetRequest.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductSetRequest.java @@ -97,12 +97,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_; @@ -119,12 +121,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_; @@ -461,12 +465,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_; @@ -483,12 +489,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_; @@ -505,12 +513,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) { @@ -525,12 +535,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() { @@ -542,12 +554,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/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductSetRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductSetRequestOrBuilder.java index 9465f8a64aba..2ae5aaa459e8 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductSetRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteProductSetRequestOrBuilder.java @@ -12,24 +12,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/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteReferenceImageRequest.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteReferenceImageRequest.java index b006f5312554..8710acc3dfc3 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteReferenceImageRequest.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteReferenceImageRequest.java @@ -97,12 +97,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_; @@ -119,12 +121,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_; @@ -462,12 +466,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_; @@ -484,12 +490,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_; @@ -506,12 +514,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) { @@ -526,12 +536,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() { @@ -543,12 +555,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/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteReferenceImageRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteReferenceImageRequestOrBuilder.java index 9e8c4b666dab..1236923f8763 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteReferenceImageRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/DeleteReferenceImageRequestOrBuilder.java @@ -12,24 +12,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/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductRequest.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductRequest.java index 250f50f07c75..0f61043e20e6 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductRequest.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductRequest.java @@ -97,12 +97,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_; @@ -119,12 +121,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_; @@ -459,12 +463,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_; @@ -481,12 +487,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_; @@ -503,12 +511,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) { @@ -523,12 +533,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() { @@ -540,12 +552,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/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductRequestOrBuilder.java index 05d2072121e8..7ed1133b50c6 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductRequestOrBuilder.java @@ -12,24 +12,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/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductSetRequest.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductSetRequest.java index a4a4eaa486e3..1c72f7abf1a7 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductSetRequest.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductSetRequest.java @@ -97,12 +97,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_; @@ -119,12 +121,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_; @@ -460,12 +464,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_; @@ -482,12 +488,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_; @@ -504,12 +512,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) { @@ -524,12 +534,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() { @@ -541,12 +553,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/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductSetRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductSetRequestOrBuilder.java index 13e98bb001e3..c5f2e8e149e4 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductSetRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetProductSetRequestOrBuilder.java @@ -12,24 +12,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/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetReferenceImageRequest.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetReferenceImageRequest.java index 29565933e878..8a1b76dd4110 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetReferenceImageRequest.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetReferenceImageRequest.java @@ -97,12 +97,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_; @@ -119,12 +121,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_; @@ -461,12 +465,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_; @@ -483,12 +489,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_; @@ -505,12 +513,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) { @@ -525,12 +535,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() { @@ -542,12 +554,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/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetReferenceImageRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetReferenceImageRequestOrBuilder.java index 950dfe84415a..d029b3bbcee6 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetReferenceImageRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/GetReferenceImageRequestOrBuilder.java @@ -12,24 +12,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/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorProto.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorProto.java index 393772a1ce53..8b72ae1d6c6d 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorProto.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorProto.java @@ -100,10 +100,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_vision_v1_AnnotateImageResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_vision_v1_AnnotateImageResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vision_v1_AnnotateFileResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vision_v1_AnnotateFileResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_vision_v1_BatchAnnotateImagesRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -116,6 +112,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_vision_v1_AnnotateFileRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_vision_v1_AnnotateFileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vision_v1_AnnotateFileResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vision_v1_AnnotateFileResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_vision_v1_BatchAnnotateFilesRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -180,241 +180,250 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n,google/cloud/vision/v1/image_annotator" + ".proto\022\026google.cloud.vision.v1\032\034google/a" + "pi/annotations.proto\032\027google/api/client." - + "proto\032%google/cloud/vision/v1/geometry.p" - + "roto\032+google/cloud/vision/v1/product_sea" - + "rch.proto\032,google/cloud/vision/v1/text_a" - + "nnotation.proto\032*google/cloud/vision/v1/" - + "web_detection.proto\032#google/longrunning/" - + "operations.proto\032 google/protobuf/field_" - + "mask.proto\032\037google/protobuf/timestamp.pr" - + "oto\032\027google/rpc/status.proto\032\027google/typ" - + "e/color.proto\032\030google/type/latlng.proto\"" - + "\207\003\n\007Feature\0222\n\004type\030\001 \001(\0162$.google.cloud" - + ".vision.v1.Feature.Type\022\023\n\013max_results\030\002" - + " \001(\005\022\r\n\005model\030\003 \001(\t\"\243\002\n\004Type\022\024\n\020TYPE_UNS" - + "PECIFIED\020\000\022\022\n\016FACE_DETECTION\020\001\022\026\n\022LANDMA" - + "RK_DETECTION\020\002\022\022\n\016LOGO_DETECTION\020\003\022\023\n\017LA" - + "BEL_DETECTION\020\004\022\022\n\016TEXT_DETECTION\020\005\022\033\n\027D" - + "OCUMENT_TEXT_DETECTION\020\013\022\031\n\025SAFE_SEARCH_" - + "DETECTION\020\006\022\024\n\020IMAGE_PROPERTIES\020\007\022\016\n\nCRO" - + "P_HINTS\020\t\022\021\n\rWEB_DETECTION\020\n\022\022\n\016PRODUCT_" - + "SEARCH\020\014\022\027\n\023OBJECT_LOCALIZATION\020\023\"7\n\013Ima" - + "geSource\022\025\n\rgcs_image_uri\030\001 \001(\t\022\021\n\timage" - + "_uri\030\002 \001(\t\"M\n\005Image\022\017\n\007content\030\001 \001(\014\0223\n\006" - + "source\030\002 \001(\0132#.google.cloud.vision.v1.Im" - + "ageSource\"\307\r\n\016FaceAnnotation\022;\n\rbounding" - + "_poly\030\001 \001(\0132$.google.cloud.vision.v1.Bou" - + "ndingPoly\022>\n\020fd_bounding_poly\030\002 \001(\0132$.go" - + "ogle.cloud.vision.v1.BoundingPoly\022B\n\tlan" - + "dmarks\030\003 \003(\0132/.google.cloud.vision.v1.Fa" - + "ceAnnotation.Landmark\022\022\n\nroll_angle\030\004 \001(" - + "\002\022\021\n\tpan_angle\030\005 \001(\002\022\022\n\ntilt_angle\030\006 \001(\002" - + "\022\034\n\024detection_confidence\030\007 \001(\002\022\036\n\026landma" - + "rking_confidence\030\010 \001(\002\022:\n\016joy_likelihood" - + "\030\t \001(\0162\".google.cloud.vision.v1.Likeliho" - + "od\022=\n\021sorrow_likelihood\030\n \001(\0162\".google.c" - + "loud.vision.v1.Likelihood\022<\n\020anger_likel" - + "ihood\030\013 \001(\0162\".google.cloud.vision.v1.Lik" - + "elihood\022?\n\023surprise_likelihood\030\014 \001(\0162\".g" - + "oogle.cloud.vision.v1.Likelihood\022D\n\030unde" - + "r_exposed_likelihood\030\r \001(\0162\".google.clou" - + "d.vision.v1.Likelihood\022>\n\022blurred_likeli" - + "hood\030\016 \001(\0162\".google.cloud.vision.v1.Like" - + "lihood\022?\n\023headwear_likelihood\030\017 \001(\0162\".go" - + "ogle.cloud.vision.v1.Likelihood\032\271\007\n\010Land" - + "mark\022B\n\004type\030\003 \001(\01624.google.cloud.vision" - + ".v1.FaceAnnotation.Landmark.Type\0222\n\010posi" - + "tion\030\004 \001(\0132 .google.cloud.vision.v1.Posi" - + "tion\"\264\006\n\004Type\022\024\n\020UNKNOWN_LANDMARK\020\000\022\014\n\010L" - + "EFT_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_RIG" - + "HT_EYEBROW\020\006\022\031\n\025MIDPOINT_BETWEEN_EYES\020\007\022" - + "\014\n\010NOSE_TIP\020\010\022\r\n\tUPPER_LIP\020\t\022\r\n\tLOWER_LI" - + "P\020\n\022\016\n\nMOUTH_LEFT\020\013\022\017\n\013MOUTH_RIGHT\020\014\022\020\n\014" - + "MOUTH_CENTER\020\r\022\025\n\021NOSE_BOTTOM_RIGHT\020\016\022\024\n" - + "\020NOSE_BOTTOM_LEFT\020\017\022\026\n\022NOSE_BOTTOM_CENTE" - + "R\020\020\022\031\n\025LEFT_EYE_TOP_BOUNDARY\020\021\022\031\n\025LEFT_E" - + "YE_RIGHT_CORNER\020\022\022\034\n\030LEFT_EYE_BOTTOM_BOU" - + "NDARY\020\023\022\030\n\024LEFT_EYE_LEFT_CORNER\020\024\022\032\n\026RIG" - + "HT_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_CORNER\020\030\022\037\n\033LEFT_EYEB" - + "ROW_UPPER_MIDPOINT\020\031\022 \n\034RIGHT_EYEBROW_UP" - + "PER_MIDPOINT\020\032\022\024\n\020LEFT_EAR_TRAGION\020\033\022\025\n\021" - + "RIGHT_EAR_TRAGION\020\034\022\022\n\016LEFT_EYE_PUPIL\020\035\022" - + "\023\n\017RIGHT_EYE_PUPIL\020\036\022\025\n\021FOREHEAD_GLABELL" - + "A\020\037\022\021\n\rCHIN_GNATHION\020 \022\024\n\020CHIN_LEFT_GONI" - + "ON\020!\022\025\n\021CHIN_RIGHT_GONION\020\"\"4\n\014LocationI" - + "nfo\022$\n\007lat_lng\030\001 \001(\0132\023.google.type.LatLn" - + "g\"=\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\"\253\002\n\020EntityAnnot" - + "ation\022\013\n\003mid\030\001 \001(\t\022\016\n\006locale\030\002 \001(\t\022\023\n\013de" - + "scription\030\003 \001(\t\022\r\n\005score\030\004 \001(\002\022\026\n\nconfid" - + "ence\030\005 \001(\002B\002\030\001\022\022\n\ntopicality\030\006 \001(\002\022;\n\rbo" - + "unding_poly\030\007 \001(\0132$.google.cloud.vision." - + "v1.BoundingPoly\0227\n\tlocations\030\010 \003(\0132$.goo" - + "gle.cloud.vision.v1.LocationInfo\0224\n\nprop" - + "erties\030\t \003(\0132 .google.cloud.vision.v1.Pr" - + "operty\"\231\001\n\031LocalizedObjectAnnotation\022\013\n\003" - + "mid\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\022;\n\rbounding_poly\030\005" + + "proto\032\037google/api/field_behavior.proto\032%" + + "google/cloud/vision/v1/geometry.proto\032+g" + + "oogle/cloud/vision/v1/product_search.pro" + + "to\032,google/cloud/vision/v1/text_annotati" + + "on.proto\032*google/cloud/vision/v1/web_det" + + "ection.proto\032#google/longrunning/operati" + + "ons.proto\032 google/protobuf/field_mask.pr" + + "oto\032\037google/protobuf/timestamp.proto\032\027go" + + "ogle/rpc/status.proto\032\027google/type/color" + + ".proto\032\030google/type/latlng.proto\"\207\003\n\007Fea" + + "ture\0222\n\004type\030\001 \001(\0162$.google.cloud.vision" + + ".v1.Feature.Type\022\023\n\013max_results\030\002 \001(\005\022\r\n" + + "\005model\030\003 \001(\t\"\243\002\n\004Type\022\024\n\020TYPE_UNSPECIFIE" + + "D\020\000\022\022\n\016FACE_DETECTION\020\001\022\026\n\022LANDMARK_DETE" + + "CTION\020\002\022\022\n\016LOGO_DETECTION\020\003\022\023\n\017LABEL_DET" + + "ECTION\020\004\022\022\n\016TEXT_DETECTION\020\005\022\033\n\027DOCUMENT" + + "_TEXT_DETECTION\020\013\022\031\n\025SAFE_SEARCH_DETECTI" + + "ON\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\016PRODUCT_SEARCH\020" + + "\014\022\027\n\023OBJECT_LOCALIZATION\020\023\"7\n\013ImageSourc" + + "e\022\025\n\rgcs_image_uri\030\001 \001(\t\022\021\n\timage_uri\030\002 " + + "\001(\t\"M\n\005Image\022\017\n\007content\030\001 \001(\014\0223\n\006source\030" + + "\002 \001(\0132#.google.cloud.vision.v1.ImageSour" + + "ce\"\307\r\n\016FaceAnnotation\022;\n\rbounding_poly\030\001" + " \001(\0132$.google.cloud.vision.v1.BoundingPo" - + "ly\"\231\002\n\024SafeSearchAnnotation\0221\n\005adult\030\001 \001" - + "(\0162\".google.cloud.vision.v1.Likelihood\0221" - + "\n\005spoof\030\002 \001(\0162\".google.cloud.vision.v1.L" - + "ikelihood\0223\n\007medical\030\003 \001(\0162\".google.clou" - + "d.vision.v1.Likelihood\0224\n\010violence\030\004 \001(\016" - + "2\".google.cloud.vision.v1.Likelihood\0220\n\004" - + "racy\030\t \001(\0162\".google.cloud.vision.v1.Like" - + "lihood\"a\n\013LatLongRect\022(\n\013min_lat_lng\030\001 \001" - + "(\0132\023.google.type.LatLng\022(\n\013max_lat_lng\030\002" - + " \001(\0132\023.google.type.LatLng\"U\n\tColorInfo\022!" - + "\n\005color\030\001 \001(\0132\022.google.type.Color\022\r\n\005sco" - + "re\030\002 \001(\002\022\026\n\016pixel_fraction\030\003 \001(\002\"M\n\030Domi" - + "nantColorsAnnotation\0221\n\006colors\030\001 \003(\0132!.g" - + "oogle.cloud.vision.v1.ColorInfo\"\\\n\017Image" - + "Properties\022I\n\017dominant_colors\030\001 \001(\01320.go" - + "ogle.cloud.vision.v1.DominantColorsAnnot" - + "ation\"x\n\010CropHint\022;\n\rbounding_poly\030\001 \001(\013" - + "2$.google.cloud.vision.v1.BoundingPoly\022\022" - + "\n\nconfidence\030\002 \001(\002\022\033\n\023importance_fractio" - + "n\030\003 \001(\002\"K\n\023CropHintsAnnotation\0224\n\ncrop_h" - + "ints\030\001 \003(\0132 .google.cloud.vision.v1.Crop" - + "Hint\"(\n\017CropHintsParams\022\025\n\raspect_ratios" - + "\030\001 \003(\002\"1\n\022WebDetectionParams\022\033\n\023include_" - + "geo_results\030\002 \001(\010\"\274\002\n\014ImageContext\022:\n\rla" - + "t_long_rect\030\001 \001(\0132#.google.cloud.vision." - + "v1.LatLongRect\022\026\n\016language_hints\030\002 \003(\t\022B" - + "\n\021crop_hints_params\030\004 \001(\0132\'.google.cloud" - + ".vision.v1.CropHintsParams\022J\n\025product_se" - + "arch_params\030\005 \001(\0132+.google.cloud.vision." - + "v1.ProductSearchParams\022H\n\024web_detection_" - + "params\030\006 \001(\0132*.google.cloud.vision.v1.We" - + "bDetectionParams\"\264\001\n\024AnnotateImageReques" - + "t\022,\n\005image\030\001 \001(\0132\035.google.cloud.vision.v" - + "1.Image\0221\n\010features\030\002 \003(\0132\037.google.cloud" - + ".vision.v1.Feature\022;\n\rimage_context\030\003 \001(" - + "\0132$.google.cloud.vision.v1.ImageContext\"" - + ":\n\026ImageAnnotationContext\022\013\n\003uri\030\001 \001(\t\022\023" - + "\n\013page_number\030\002 \001(\005\"\344\007\n\025AnnotateImageRes" - + "ponse\022@\n\020face_annotations\030\001 \003(\0132&.google" - + ".cloud.vision.v1.FaceAnnotation\022F\n\024landm" - + "ark_annotations\030\002 \003(\0132(.google.cloud.vis" - + "ion.v1.EntityAnnotation\022B\n\020logo_annotati" - + "ons\030\003 \003(\0132(.google.cloud.vision.v1.Entit" - + "yAnnotation\022C\n\021label_annotations\030\004 \003(\0132(" - + ".google.cloud.vision.v1.EntityAnnotation" - + "\022W\n\034localized_object_annotations\030\026 \003(\01321" - + ".google.cloud.vision.v1.LocalizedObjectA" - + "nnotation\022B\n\020text_annotations\030\005 \003(\0132(.go" - + "ogle.cloud.vision.v1.EntityAnnotation\022D\n" - + "\024full_text_annotation\030\014 \001(\0132&.google.clo" - + "ud.vision.v1.TextAnnotation\022L\n\026safe_sear" - + "ch_annotation\030\006 \001(\0132,.google.cloud.visio" - + "n.v1.SafeSearchAnnotation\022L\n\033image_prope" - + "rties_annotation\030\010 \001(\0132\'.google.cloud.vi" - + "sion.v1.ImageProperties\022J\n\025crop_hints_an" - + "notation\030\013 \001(\0132+.google.cloud.vision.v1." - + "CropHintsAnnotation\022;\n\rweb_detection\030\r \001" - + "(\0132$.google.cloud.vision.v1.WebDetection" - + "\022L\n\026product_search_results\030\016 \001(\0132,.googl" - + "e.cloud.vision.v1.ProductSearchResults\022!" - + "\n\005error\030\t \001(\0132\022.google.rpc.Status\022?\n\007con" - + "text\030\025 \001(\0132..google.cloud.vision.v1.Imag" - + "eAnnotationContext\"\313\001\n\024AnnotateFileRespo" - + "nse\0229\n\014input_config\030\001 \001(\0132#.google.cloud" - + ".vision.v1.InputConfig\022@\n\tresponses\030\002 \003(" - + "\0132-.google.cloud.vision.v1.AnnotateImage" - + "Response\022\023\n\013total_pages\030\003 \001(\005\022!\n\005error\030\004" - + " \001(\0132\022.google.rpc.Status\"l\n\032BatchAnnotat" - + "eImagesRequest\022>\n\010requests\030\001 \003(\0132,.googl" - + "e.cloud.vision.v1.AnnotateImageRequest\022\016" - + "\n\006parent\030\004 \001(\t\"_\n\033BatchAnnotateImagesRes" - + "ponse\022@\n\tresponses\030\001 \003(\0132-.google.cloud." - + "vision.v1.AnnotateImageResponse\"\317\001\n\023Anno" - + "tateFileRequest\0229\n\014input_config\030\001 \001(\0132#." - + "google.cloud.vision.v1.InputConfig\0221\n\010fe" - + "atures\030\002 \003(\0132\037.google.cloud.vision.v1.Fe" - + "ature\022;\n\rimage_context\030\003 \001(\0132$.google.cl" - + "oud.vision.v1.ImageContext\022\r\n\005pages\030\004 \003(" - + "\005\"j\n\031BatchAnnotateFilesRequest\022=\n\010reques" - + "ts\030\001 \003(\0132+.google.cloud.vision.v1.Annota" - + "teFileRequest\022\016\n\006parent\030\003 \001(\t\"]\n\032BatchAn" - + "notateFilesResponse\022?\n\tresponses\030\001 \003(\0132," - + ".google.cloud.vision.v1.AnnotateFileResp" - + "onse\"\202\002\n\030AsyncAnnotateFileRequest\0229\n\014inp" - + "ut_config\030\001 \001(\0132#.google.cloud.vision.v1" - + ".InputConfig\0221\n\010features\030\002 \003(\0132\037.google." - + "cloud.vision.v1.Feature\022;\n\rimage_context" - + "\030\003 \001(\0132$.google.cloud.vision.v1.ImageCon" - + "text\022;\n\routput_config\030\004 \001(\0132$.google.clo" - + "ud.vision.v1.OutputConfig\"X\n\031AsyncAnnota" - + "teFileResponse\022;\n\routput_config\030\001 \001(\0132$." - + "google.cloud.vision.v1.OutputConfig\"\256\001\n\037" - + "AsyncBatchAnnotateImagesRequest\022>\n\010reque" - + "sts\030\001 \003(\0132,.google.cloud.vision.v1.Annot" - + "ateImageRequest\022;\n\routput_config\030\002 \001(\0132$" - + ".google.cloud.vision.v1.OutputConfig\022\016\n\006" - + "parent\030\004 \001(\t\"_\n AsyncBatchAnnotateImages" - + "Response\022;\n\routput_config\030\001 \001(\0132$.google" - + ".cloud.vision.v1.OutputConfig\"t\n\036AsyncBa" - + "tchAnnotateFilesRequest\022B\n\010requests\030\001 \003(" - + "\01320.google.cloud.vision.v1.AsyncAnnotate" - + "FileRequest\022\016\n\006parent\030\004 \001(\t\"g\n\037AsyncBatc" - + "hAnnotateFilesResponse\022D\n\tresponses\030\001 \003(" - + "\01321.google.cloud.vision.v1.AsyncAnnotate" - + "FileResponse\"h\n\013InputConfig\0225\n\ngcs_sourc" - + "e\030\001 \001(\0132!.google.cloud.vision.v1.GcsSour" - + "ce\022\017\n\007content\030\003 \001(\014\022\021\n\tmime_type\030\002 \001(\t\"c" - + "\n\014OutputConfig\022?\n\017gcs_destination\030\001 \001(\0132" - + "&.google.cloud.vision.v1.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\"\210\002\n" - + "\021OperationMetadata\022>\n\005state\030\001 \001(\0162/.goog" - + "le.cloud.vision.v1.OperationMetadata.Sta" - + "te\022/\n\013create_time\030\005 \001(\0132\032.google.protobu" - + "f.Timestamp\022/\n\013update_time\030\006 \001(\0132\032.googl" - + "e.protobuf.Timestamp\"Q\n\005State\022\025\n\021STATE_U" - + "NSPECIFIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007RUNNING\020\002\022\010" - + "\n\004DONE\020\003\022\r\n\tCANCELLED\020\004*e\n\nLikelihood\022\013\n" - + "\007UNKNOWN\020\000\022\021\n\rVERY_UNLIKELY\020\001\022\014\n\010UNLIKEL" - + "Y\020\002\022\014\n\010POSSIBLE\020\003\022\n\n\006LIKELY\020\004\022\017\n\013VERY_LI" - + "KELY\020\0052\314\t\n\016ImageAnnotator\022\210\002\n\023BatchAnnot" - + "ateImages\0222.google.cloud.vision.v1.Batch" - + "AnnotateImagesRequest\0323.google.cloud.vis" - + "ion.v1.BatchAnnotateImagesResponse\"\207\001\202\323\344" - + "\223\002\200\001\"\023/v1/images:annotate:\001*Z8\"3/v1/{par" - + "ent=projects/*/locations/*}/images:annot" - + "ate:\001*Z,\"\'/v1/{parent=projects/*}/images" - + ":annotate:\001*\022\201\002\n\022BatchAnnotateFiles\0221.go" - + "ogle.cloud.vision.v1.BatchAnnotateFilesR" - + "equest\0322.google.cloud.vision.v1.BatchAnn" - + "otateFilesResponse\"\203\001\202\323\344\223\002}\"\022/v1/files:a" - + "nnotate:\001*Z7\"2/v1/{parent=projects/*/loc" - + "ations/*}/files:annotate:\001*Z+\"&/v1/{pare" - + "nt=projects/*}/files:annotate:\001*\022\232\002\n\030Asy" - + "ncBatchAnnotateImages\0227.google.cloud.vis" - + "ion.v1.AsyncBatchAnnotateImagesRequest\032\035" - + ".google.longrunning.Operation\"\245\001\202\323\344\223\002\236\001\"" - + "\035/v1/images:asyncBatchAnnotate:\001*ZB\"=/v1" - + "/{parent=projects/*/locations/*}/images:" - + "asyncBatchAnnotate:\001*Z6\"1/v1/{parent=pro" - + "jects/*}/images:asyncBatchAnnotate:\001*\022\225\002" + + "ly\022>\n\020fd_bounding_poly\030\002 \001(\0132$.google.cl" + + "oud.vision.v1.BoundingPoly\022B\n\tlandmarks\030" + + "\003 \003(\0132/.google.cloud.vision.v1.FaceAnnot" + + "ation.Landmark\022\022\n\nroll_angle\030\004 \001(\002\022\021\n\tpa" + + "n_angle\030\005 \001(\002\022\022\n\ntilt_angle\030\006 \001(\002\022\034\n\024det" + + "ection_confidence\030\007 \001(\002\022\036\n\026landmarking_c" + + "onfidence\030\010 \001(\002\022:\n\016joy_likelihood\030\t \001(\0162" + + "\".google.cloud.vision.v1.Likelihood\022=\n\021s" + + "orrow_likelihood\030\n \001(\0162\".google.cloud.vi" + + "sion.v1.Likelihood\022<\n\020anger_likelihood\030\013" + + " \001(\0162\".google.cloud.vision.v1.Likelihood" + + "\022?\n\023surprise_likelihood\030\014 \001(\0162\".google.c" + + "loud.vision.v1.Likelihood\022D\n\030under_expos" + + "ed_likelihood\030\r \001(\0162\".google.cloud.visio" + + "n.v1.Likelihood\022>\n\022blurred_likelihood\030\016 " + + "\001(\0162\".google.cloud.vision.v1.Likelihood\022" + + "?\n\023headwear_likelihood\030\017 \001(\0162\".google.cl" + + "oud.vision.v1.Likelihood\032\271\007\n\010Landmark\022B\n" + + "\004type\030\003 \001(\01624.google.cloud.vision.v1.Fac" + + "eAnnotation.Landmark.Type\0222\n\010position\030\004 " + + "\001(\0132 .google.cloud.vision.v1.Position\"\264\006" + + "\n\004Type\022\024\n\020UNKNOWN_LANDMARK\020\000\022\014\n\010LEFT_EYE" + + "\020\001\022\r\n\tRIGHT_EYE\020\002\022\030\n\024LEFT_OF_LEFT_EYEBRO" + + "W\020\003\022\031\n\025RIGHT_OF_LEFT_EYEBROW\020\004\022\031\n\025LEFT_O" + + "F_RIGHT_EYEBROW\020\005\022\032\n\026RIGHT_OF_RIGHT_EYEB" + + "ROW\020\006\022\031\n\025MIDPOINT_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\n" + + "MOUTH_LEFT\020\013\022\017\n\013MOUTH_RIGHT\020\014\022\020\n\014MOUTH_C" + + "ENTER\020\r\022\025\n\021NOSE_BOTTOM_RIGHT\020\016\022\024\n\020NOSE_B" + + "OTTOM_LEFT\020\017\022\026\n\022NOSE_BOTTOM_CENTER\020\020\022\031\n\025" + + "LEFT_EYE_TOP_BOUNDARY\020\021\022\031\n\025LEFT_EYE_RIGH" + + "T_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_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\025RIG" + + "HT_EYE_LEFT_CORNER\020\030\022\037\n\033LEFT_EYEBROW_UPP" + + "ER_MIDPOINT\020\031\022 \n\034RIGHT_EYEBROW_UPPER_MID" + + "POINT\020\032\022\024\n\020LEFT_EAR_TRAGION\020\033\022\025\n\021RIGHT_E" + + "AR_TRAGION\020\034\022\022\n\016LEFT_EYE_PUPIL\020\035\022\023\n\017RIGH" + + "T_EYE_PUPIL\020\036\022\025\n\021FOREHEAD_GLABELLA\020\037\022\021\n\r" + + "CHIN_GNATHION\020 \022\024\n\020CHIN_LEFT_GONION\020!\022\025\n" + + "\021CHIN_RIGHT_GONION\020\"\"4\n\014LocationInfo\022$\n\007" + + "lat_lng\030\001 \001(\0132\023.google.type.LatLng\"=\n\010Pr" + + "operty\022\014\n\004name\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\022\024\n\014u" + + "int64_value\030\003 \001(\004\"\253\002\n\020EntityAnnotation\022\013" + + "\n\003mid\030\001 \001(\t\022\016\n\006locale\030\002 \001(\t\022\023\n\013descripti" + + "on\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\022;\n\rbounding_" + + "poly\030\007 \001(\0132$.google.cloud.vision.v1.Boun" + + "dingPoly\0227\n\tlocations\030\010 \003(\0132$.google.clo" + + "ud.vision.v1.LocationInfo\0224\n\nproperties\030" + + "\t \003(\0132 .google.cloud.vision.v1.Property\"" + + "\231\001\n\031LocalizedObjectAnnotation\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\022;\n\rbounding_poly\030\005 \001(\0132$." + + "google.cloud.vision.v1.BoundingPoly\"\270\003\n\024" + + "SafeSearchAnnotation\0221\n\005adult\030\001 \001(\0162\".go" + + "ogle.cloud.vision.v1.Likelihood\0221\n\005spoof" + + "\030\002 \001(\0162\".google.cloud.vision.v1.Likeliho" + + "od\0223\n\007medical\030\003 \001(\0162\".google.cloud.visio" + + "n.v1.Likelihood\0224\n\010violence\030\004 \001(\0162\".goog" + + "le.cloud.vision.v1.Likelihood\0220\n\004racy\030\t " + + "\001(\0162\".google.cloud.vision.v1.Likelihood\022" + + "\030\n\020adult_confidence\030\020 \001(\002\022\030\n\020spoof_confi" + + "dence\030\022 \001(\002\022\032\n\022medical_confidence\030\024 \001(\002\022" + + "\033\n\023violence_confidence\030\026 \001(\002\022\027\n\017racy_con" + + "fidence\030\030 \001(\002\022\027\n\017nsfw_confidence\030\032 \001(\002\"a" + + "\n\013LatLongRect\022(\n\013min_lat_lng\030\001 \001(\0132\023.goo" + + "gle.type.LatLng\022(\n\013max_lat_lng\030\002 \001(\0132\023.g" + + "oogle.type.LatLng\"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_fraction\030\003 \001(\002\"M\n\030DominantColo" + + "rsAnnotation\0221\n\006colors\030\001 \003(\0132!.google.cl" + + "oud.vision.v1.ColorInfo\"\\\n\017ImageProperti" + + "es\022I\n\017dominant_colors\030\001 \001(\01320.google.clo" + + "ud.vision.v1.DominantColorsAnnotation\"x\n" + + "\010CropHint\022;\n\rbounding_poly\030\001 \001(\0132$.googl" + + "e.cloud.vision.v1.BoundingPoly\022\022\n\nconfid" + + "ence\030\002 \001(\002\022\033\n\023importance_fraction\030\003 \001(\002\"" + + "K\n\023CropHintsAnnotation\0224\n\ncrop_hints\030\001 \003" + + "(\0132 .google.cloud.vision.v1.CropHint\"(\n\017" + + "CropHintsParams\022\025\n\raspect_ratios\030\001 \003(\002\"1" + + "\n\022WebDetectionParams\022\033\n\023include_geo_resu" + + "lts\030\002 \001(\010\"\274\002\n\014ImageContext\022:\n\rlat_long_r" + + "ect\030\001 \001(\0132#.google.cloud.vision.v1.LatLo" + + "ngRect\022\026\n\016language_hints\030\002 \003(\t\022B\n\021crop_h" + + "ints_params\030\004 \001(\0132\'.google.cloud.vision." + + "v1.CropHintsParams\022J\n\025product_search_par" + + "ams\030\005 \001(\0132+.google.cloud.vision.v1.Produ" + + "ctSearchParams\022H\n\024web_detection_params\030\006" + + " \001(\0132*.google.cloud.vision.v1.WebDetecti" + + "onParams\"\264\001\n\024AnnotateImageRequest\022,\n\005ima" + + "ge\030\001 \001(\0132\035.google.cloud.vision.v1.Image\022" + + "1\n\010features\030\002 \003(\0132\037.google.cloud.vision." + + "v1.Feature\022;\n\rimage_context\030\003 \001(\0132$.goog" + + "le.cloud.vision.v1.ImageContext\":\n\026Image" + + "AnnotationContext\022\013\n\003uri\030\001 \001(\t\022\023\n\013page_n" + + "umber\030\002 \001(\005\"\344\007\n\025AnnotateImageResponse\022@\n" + + "\020face_annotations\030\001 \003(\0132&.google.cloud.v" + + "ision.v1.FaceAnnotation\022F\n\024landmark_anno" + + "tations\030\002 \003(\0132(.google.cloud.vision.v1.E" + + "ntityAnnotation\022B\n\020logo_annotations\030\003 \003(" + + "\0132(.google.cloud.vision.v1.EntityAnnotat" + + "ion\022C\n\021label_annotations\030\004 \003(\0132(.google." + + "cloud.vision.v1.EntityAnnotation\022W\n\034loca" + + "lized_object_annotations\030\026 \003(\01321.google." + + "cloud.vision.v1.LocalizedObjectAnnotatio" + + "n\022B\n\020text_annotations\030\005 \003(\0132(.google.clo" + + "ud.vision.v1.EntityAnnotation\022D\n\024full_te" + + "xt_annotation\030\014 \001(\0132&.google.cloud.visio" + + "n.v1.TextAnnotation\022L\n\026safe_search_annot" + + "ation\030\006 \001(\0132,.google.cloud.vision.v1.Saf" + + "eSearchAnnotation\022L\n\033image_properties_an" + + "notation\030\010 \001(\0132\'.google.cloud.vision.v1." + + "ImageProperties\022J\n\025crop_hints_annotation" + + "\030\013 \001(\0132+.google.cloud.vision.v1.CropHint" + + "sAnnotation\022;\n\rweb_detection\030\r \001(\0132$.goo" + + "gle.cloud.vision.v1.WebDetection\022L\n\026prod" + + "uct_search_results\030\016 \001(\0132,.google.cloud." + + "vision.v1.ProductSearchResults\022!\n\005error\030" + + "\t \001(\0132\022.google.rpc.Status\022?\n\007context\030\025 \001" + + "(\0132..google.cloud.vision.v1.ImageAnnotat" + + "ionContext\"q\n\032BatchAnnotateImagesRequest" + + "\022C\n\010requests\030\001 \003(\0132,.google.cloud.vision" + + ".v1.AnnotateImageRequestB\003\340A\002\022\016\n\006parent\030" + + "\004 \001(\t\"_\n\033BatchAnnotateImagesResponse\022@\n\t" + + "responses\030\001 \003(\0132-.google.cloud.vision.v1" + + ".AnnotateImageResponse\"\317\001\n\023AnnotateFileR" + + "equest\0229\n\014input_config\030\001 \001(\0132#.google.cl" + + "oud.vision.v1.InputConfig\0221\n\010features\030\002 " + + "\003(\0132\037.google.cloud.vision.v1.Feature\022;\n\r" + + "image_context\030\003 \001(\0132$.google.cloud.visio" + + "n.v1.ImageContext\022\r\n\005pages\030\004 \003(\005\"\313\001\n\024Ann" + + "otateFileResponse\0229\n\014input_config\030\001 \001(\0132" + + "#.google.cloud.vision.v1.InputConfig\022@\n\t" + + "responses\030\002 \003(\0132-.google.cloud.vision.v1" + + ".AnnotateImageResponse\022\023\n\013total_pages\030\003 " + + "\001(\005\022!\n\005error\030\004 \001(\0132\022.google.rpc.Status\"o" + + "\n\031BatchAnnotateFilesRequest\022B\n\010requests\030" + + "\001 \003(\0132+.google.cloud.vision.v1.AnnotateF" + + "ileRequestB\003\340A\002\022\016\n\006parent\030\003 \001(\t\"]\n\032Batch" + + "AnnotateFilesResponse\022?\n\tresponses\030\001 \003(\013" + + "2,.google.cloud.vision.v1.AnnotateFileRe" + + "sponse\"\202\002\n\030AsyncAnnotateFileRequest\0229\n\014i" + + "nput_config\030\001 \001(\0132#.google.cloud.vision." + + "v1.InputConfig\0221\n\010features\030\002 \003(\0132\037.googl" + + "e.cloud.vision.v1.Feature\022;\n\rimage_conte" + + "xt\030\003 \001(\0132$.google.cloud.vision.v1.ImageC" + + "ontext\022;\n\routput_config\030\004 \001(\0132$.google.c" + + "loud.vision.v1.OutputConfig\"X\n\031AsyncAnno" + + "tateFileResponse\022;\n\routput_config\030\001 \001(\0132" + + "$.google.cloud.vision.v1.OutputConfig\"\270\001" + + "\n\037AsyncBatchAnnotateImagesRequest\022C\n\010req" + + "uests\030\001 \003(\0132,.google.cloud.vision.v1.Ann" + + "otateImageRequestB\003\340A\002\022@\n\routput_config\030" + + "\002 \001(\0132$.google.cloud.vision.v1.OutputCon" + + "figB\003\340A\002\022\016\n\006parent\030\004 \001(\t\"_\n AsyncBatchAn" + + "notateImagesResponse\022;\n\routput_config\030\001 " + + "\001(\0132$.google.cloud.vision.v1.OutputConfi" + + "g\"y\n\036AsyncBatchAnnotateFilesRequest\022G\n\010r" + + "equests\030\001 \003(\01320.google.cloud.vision.v1.A" + + "syncAnnotateFileRequestB\003\340A\002\022\016\n\006parent\030\004" + + " \001(\t\"g\n\037AsyncBatchAnnotateFilesResponse\022" + + "D\n\tresponses\030\001 \003(\01321.google.cloud.vision" + + ".v1.AsyncAnnotateFileResponse\"h\n\013InputCo" + + "nfig\0225\n\ngcs_source\030\001 \001(\0132!.google.cloud." + + "vision.v1.GcsSource\022\017\n\007content\030\003 \001(\014\022\021\n\t" + + "mime_type\030\002 \001(\t\"c\n\014OutputConfig\022?\n\017gcs_d" + + "estination\030\001 \001(\0132&.google.cloud.vision.v" + + "1.GcsDestination\022\022\n\nbatch_size\030\002 \001(\005\"\030\n\t" + + "GcsSource\022\013\n\003uri\030\001 \001(\t\"\035\n\016GcsDestination" + + "\022\013\n\003uri\030\001 \001(\t\"\210\002\n\021OperationMetadata\022>\n\005s" + + "tate\030\001 \001(\0162/.google.cloud.vision.v1.Oper" + + "ationMetadata.State\022/\n\013create_time\030\005 \001(\013" + + "2\032.google.protobuf.Timestamp\022/\n\013update_t" + + "ime\030\006 \001(\0132\032.google.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_UNLI" + + "KELY\020\001\022\014\n\010UNLIKELY\020\002\022\014\n\010POSSIBLE\020\003\022\n\n\006LI" + + "KELY\020\004\022\017\n\013VERY_LIKELY\020\0052\365\n\n\016ImageAnnotat" + + "or\022\223\002\n\023BatchAnnotateImages\0222.google.clou" + + "d.vision.v1.BatchAnnotateImagesRequest\0323" + + ".google.cloud.vision.v1.BatchAnnotateIma" + + "gesResponse\"\222\001\202\323\344\223\002\200\001\"\023/v1/images:annota" + + "te:\001*Z8\"3/v1/{parent=projects/*/location" + + "s/*}/images:annotate:\001*Z,\"\'/v1/{parent=p" + + "rojects/*}/images:annotate:\001*\332A\010requests" + + "\022\214\002\n\022BatchAnnotateFiles\0221.google.cloud.v" + + "ision.v1.BatchAnnotateFilesRequest\0322.goo" + + "gle.cloud.vision.v1.BatchAnnotateFilesRe" + + "sponse\"\216\001\202\323\344\223\002}\"\022/v1/files:annotate:\001*Z7" + + "\"2/v1/{parent=projects/*/locations/*}/fi" + + "les:annotate:\001*Z+\"&/v1/{parent=projects/" + + "*}/files:annotate:\001*\332A\010requests\022\353\002\n\030Asyn" + + "cBatchAnnotateImages\0227.google.cloud.visi" + + "on.v1.AsyncBatchAnnotateImagesRequest\032\035." + + "google.longrunning.Operation\"\366\001\202\323\344\223\002\236\001\"\035" + + "/v1/images:asyncBatchAnnotate:\001*ZB\"=/v1/" + + "{parent=projects/*/locations/*}/images:a" + + "syncBatchAnnotate:\001*Z6\"1/v1/{parent=proj" + + "ects/*}/images:asyncBatchAnnotate:\001*\332A\026r" + + "equests,output_config\312A5\n AsyncBatchAnno" + + "tateImagesResponse\022\021OperationMetadata\022\327\002" + "\n\027AsyncBatchAnnotateFiles\0226.google.cloud" + ".vision.v1.AsyncBatchAnnotateFilesReques" - + "t\032\035.google.longrunning.Operation\"\242\001\202\323\344\223\002" + + "t\032\035.google.longrunning.Operation\"\344\001\202\323\344\223\002" + "\233\001\"\034/v1/files:asyncBatchAnnotate:\001*ZA\" - * 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_; @@ -135,11 +137,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_; @@ -159,10 +163,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.v1.ImportProductSetsInputConfig input_config = 2; + * + * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasInputConfig() { return inputConfig_ != null; @@ -171,10 +177,12 @@ public boolean hasInputConfig() { * * *
-   * The input content for the list of requests.
+   * Required. The input content for the list of requests.
    * 
* - * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2; + * + * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.ImportProductSetsInputConfig getInputConfig() { return inputConfig_ == null @@ -185,10 +193,12 @@ public com.google.cloud.vision.v1.ImportProductSetsInputConfig getInputConfig() * * *
-   * The input content for the list of requests.
+   * Required. The input content for the list of requests.
    * 
* - * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2; + * + * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.ImportProductSetsInputConfigOrBuilder getInputConfigOrBuilder() { @@ -546,11 +556,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_; @@ -567,11 +579,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_; @@ -588,11 +602,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) { @@ -607,11 +623,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() { @@ -623,11 +641,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) { @@ -650,10 +670,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.v1.ImportProductSetsInputConfig input_config = 2; + * + * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; @@ -662,10 +684,12 @@ public boolean hasInputConfig() { * * *
-     * The input content for the list of requests.
+     * Required. The input content for the list of requests.
      * 
* - * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2; + * + * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.ImportProductSetsInputConfig getInputConfig() { if (inputConfigBuilder_ == null) { @@ -680,10 +704,12 @@ public com.google.cloud.vision.v1.ImportProductSetsInputConfig getInputConfig() * * *
-     * The input content for the list of requests.
+     * Required. The input content for the list of requests.
      * 
* - * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2; + * + * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInputConfig(com.google.cloud.vision.v1.ImportProductSetsInputConfig value) { if (inputConfigBuilder_ == null) { @@ -702,10 +728,12 @@ public Builder setInputConfig(com.google.cloud.vision.v1.ImportProductSetsInputC * * *
-     * The input content for the list of requests.
+     * Required. The input content for the list of requests.
      * 
* - * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2; + * + * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInputConfig( com.google.cloud.vision.v1.ImportProductSetsInputConfig.Builder builderForValue) { @@ -722,10 +750,12 @@ public Builder setInputConfig( * * *
-     * The input content for the list of requests.
+     * Required. The input content for the list of requests.
      * 
* - * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2; + * + * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeInputConfig(com.google.cloud.vision.v1.ImportProductSetsInputConfig value) { if (inputConfigBuilder_ == null) { @@ -748,10 +778,12 @@ public Builder mergeInputConfig(com.google.cloud.vision.v1.ImportProductSetsInpu * * *
-     * The input content for the list of requests.
+     * Required. The input content for the list of requests.
      * 
* - * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2; + * + * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInputConfig() { if (inputConfigBuilder_ == null) { @@ -768,10 +800,12 @@ public Builder clearInputConfig() { * * *
-     * The input content for the list of requests.
+     * Required. The input content for the list of requests.
      * 
* - * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2; + * + * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.ImportProductSetsInputConfig.Builder getInputConfigBuilder() { @@ -782,10 +816,12 @@ public com.google.cloud.vision.v1.ImportProductSetsInputConfig.Builder getInputC * * *
-     * The input content for the list of requests.
+     * Required. The input content for the list of requests.
      * 
* - * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2; + * + * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.ImportProductSetsInputConfigOrBuilder getInputConfigOrBuilder() { @@ -801,10 +837,12 @@ public com.google.cloud.vision.v1.ImportProductSetsInputConfig.Builder getInputC * * *
-     * The input content for the list of requests.
+     * Required. The input content for the list of requests.
      * 
* - * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2; + * + * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.vision.v1.ImportProductSetsInputConfig, diff --git a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsRequestOrBuilder.java index a26b02b9bdd7..867380ac0f91 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsRequestOrBuilder.java @@ -12,22 +12,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(); @@ -35,30 +39,36 @@ public interface ImportProductSetsRequestOrBuilder * * *
-   * The input content for the list of requests.
+   * Required. The input content for the list of requests.
    * 
* - * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2; + * + * .google.cloud.vision.v1.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.v1.ImportProductSetsInputConfig input_config = 2; + * + * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1.ImportProductSetsInputConfig getInputConfig(); /** * * *
-   * The input content for the list of requests.
+   * Required. The input content for the list of requests.
    * 
* - * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2; + * + * .google.cloud.vision.v1.ImportProductSetsInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1.ImportProductSetsInputConfigOrBuilder getInputConfigOrBuilder(); } diff --git a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsResponse.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsResponse.java index db320dfb7c3f..c1fdd45fc635 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsResponse.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImportProductSetsResponse.java @@ -9,10 +9,8 @@ *
  * Response message for the `ImportProductSets` method.
  * This message is returned by the
- * [google.longrunning.Operations.GetOperation][google.longrunning.Operations.GetOperation]
- * method in the returned
- * [google.longrunning.Operation.response][google.longrunning.Operation.response]
- * field.
+ * [google.longrunning.Operations.GetOperation][google.longrunning.Operations.GetOperation] method in the returned
+ * [google.longrunning.Operation.response][google.longrunning.Operation.response] field.
  * 
* * Protobuf type {@code google.cloud.vision.v1.ImportProductSetsResponse} @@ -442,10 +440,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build *
    * Response message for the `ImportProductSets` method.
    * This message is returned by the
-   * [google.longrunning.Operations.GetOperation][google.longrunning.Operations.GetOperation]
-   * method in the returned
-   * [google.longrunning.Operation.response][google.longrunning.Operation.response]
-   * field.
+   * [google.longrunning.Operations.GetOperation][google.longrunning.Operations.GetOperation] method in the returned
+   * [google.longrunning.Operation.response][google.longrunning.Operation.response] field.
    * 
* * Protobuf type {@code google.cloud.vision.v1.ImportProductSetsResponse} diff --git a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsRequest.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsRequest.java index 118ab82a19a6..2d3eed9ea510 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsRequest.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsRequest.java @@ -110,11 +110,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_; @@ -131,11 +133,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_; @@ -561,11 +565,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_; @@ -582,11 +588,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_; @@ -603,11 +611,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) { @@ -622,11 +632,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() { @@ -638,11 +650,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/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsRequestOrBuilder.java index dbdb4ec1331e..ed29ffb5256e 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductSetsRequestOrBuilder.java @@ -12,22 +12,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/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetRequest.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetRequest.java index e7e12717932e..3a652c4ef5eb 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetRequest.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetRequest.java @@ -111,12 +111,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_; @@ -133,12 +135,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_; @@ -565,12 +569,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_; @@ -587,12 +593,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_; @@ -609,12 +617,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) { @@ -629,12 +639,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() { @@ -646,12 +658,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/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetRequestOrBuilder.java index 58e0963d1e4c..9e902546681c 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsInProductSetRequestOrBuilder.java @@ -12,24 +12,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/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsRequest.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsRequest.java index 0a61c52bf7a1..c613075a467d 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsRequest.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsRequest.java @@ -110,12 +110,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_; @@ -132,12 +134,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_; @@ -561,12 +565,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_; @@ -583,12 +589,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_; @@ -605,12 +613,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) { @@ -625,12 +635,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() { @@ -642,12 +654,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/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsRequestOrBuilder.java index b87b32cc44c7..33dda78f769e 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListProductsRequestOrBuilder.java @@ -12,24 +12,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/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesRequest.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesRequest.java index f708a4367296..b84ba341852b 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesRequest.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesRequest.java @@ -110,12 +110,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_; @@ -132,12 +134,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_; @@ -568,12 +572,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_; @@ -590,12 +596,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_; @@ -612,12 +620,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) { @@ -632,12 +642,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() { @@ -649,12 +661,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/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesRequestOrBuilder.java index 062e95928908..4059fee0fa9c 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ListReferenceImagesRequestOrBuilder.java @@ -12,24 +12,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/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Product.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Product.java index 9b09cdc57756..1270409c5f46 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Product.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/Product.java @@ -1100,14 +1100,13 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
-   * The category for the product identified by the reference image. This should
+   * Immutable. 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; + * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; */ public java.lang.String getProductCategory() { java.lang.Object ref = productCategory_; @@ -1124,14 +1123,13 @@ public java.lang.String getProductCategory() { * * *
-   * The category for the product identified by the reference image. This should
+   * Immutable. 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; + * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; */ public com.google.protobuf.ByteString getProductCategoryBytes() { java.lang.Object ref = productCategory_; @@ -1987,14 +1985,13 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * * *
-     * The category for the product identified by the reference image. This should
+     * Immutable. 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; + * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; */ public java.lang.String getProductCategory() { java.lang.Object ref = productCategory_; @@ -2011,14 +2008,13 @@ public java.lang.String getProductCategory() { * * *
-     * The category for the product identified by the reference image. This should
+     * Immutable. 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; + * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; */ public com.google.protobuf.ByteString getProductCategoryBytes() { java.lang.Object ref = productCategory_; @@ -2035,14 +2031,13 @@ public com.google.protobuf.ByteString getProductCategoryBytes() { * * *
-     * The category for the product identified by the reference image. This should
+     * Immutable. 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; + * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder setProductCategory(java.lang.String value) { if (value == null) { @@ -2057,14 +2052,13 @@ public Builder setProductCategory(java.lang.String value) { * * *
-     * The category for the product identified by the reference image. This should
+     * Immutable. 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; + * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder clearProductCategory() { @@ -2076,14 +2070,13 @@ public Builder clearProductCategory() { * * *
-     * The category for the product identified by the reference image. This should
+     * Immutable. 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; + * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder setProductCategoryBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductOrBuilder.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductOrBuilder.java index 3b69e0263a6b..c0d6385ea886 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductOrBuilder.java @@ -85,28 +85,26 @@ public interface ProductOrBuilder * * *
-   * The category for the product identified by the reference image. This should
+   * Immutable. 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; + * 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
+   * Immutable. 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; + * string product_category = 4 [(.google.api.field_behavior) = IMMUTABLE]; */ com.google.protobuf.ByteString getProductCategoryBytes(); diff --git a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchParams.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchParams.java index 4b2f58e3db84..a497d818a646 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchParams.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchParams.java @@ -180,8 +180,7 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder * * *
-   * The resource name of a [ProductSet][google.cloud.vision.v1.ProductSet] to
-   * be searched for similar images.
+   * The resource name of a [ProductSet][google.cloud.vision.v1.ProductSet] to be searched for similar images.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`.
    * 
@@ -203,8 +202,7 @@ public java.lang.String getProductSet() { * * *
-   * The resource name of a [ProductSet][google.cloud.vision.v1.ProductSet] to
-   * be searched for similar images.
+   * The resource name of a [ProductSet][google.cloud.vision.v1.ProductSet] to be searched for similar images.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`.
    * 
@@ -947,8 +945,7 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolyOrBuilder * * *
-     * The resource name of a [ProductSet][google.cloud.vision.v1.ProductSet] to
-     * be searched for similar images.
+     * The resource name of a [ProductSet][google.cloud.vision.v1.ProductSet] to be searched for similar images.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`.
      * 
@@ -970,8 +967,7 @@ public java.lang.String getProductSet() { * * *
-     * The resource name of a [ProductSet][google.cloud.vision.v1.ProductSet] to
-     * be searched for similar images.
+     * The resource name of a [ProductSet][google.cloud.vision.v1.ProductSet] to be searched for similar images.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`.
      * 
@@ -993,8 +989,7 @@ public com.google.protobuf.ByteString getProductSetBytes() { * * *
-     * The resource name of a [ProductSet][google.cloud.vision.v1.ProductSet] to
-     * be searched for similar images.
+     * The resource name of a [ProductSet][google.cloud.vision.v1.ProductSet] to be searched for similar images.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`.
      * 
@@ -1014,8 +1009,7 @@ public Builder setProductSet(java.lang.String value) { * * *
-     * The resource name of a [ProductSet][google.cloud.vision.v1.ProductSet] to
-     * be searched for similar images.
+     * The resource name of a [ProductSet][google.cloud.vision.v1.ProductSet] to be searched for similar images.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`.
      * 
@@ -1032,8 +1026,7 @@ public Builder clearProductSet() { * * *
-     * The resource name of a [ProductSet][google.cloud.vision.v1.ProductSet] to
-     * be searched for similar images.
+     * The resource name of a [ProductSet][google.cloud.vision.v1.ProductSet] to be searched for similar images.
      * Format is:
      * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`.
      * 
diff --git a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchParamsOrBuilder.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchParamsOrBuilder.java index c5d5e5915adf..83270f5be4b4 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchParamsOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchParamsOrBuilder.java @@ -46,8 +46,7 @@ public interface ProductSearchParamsOrBuilder * * *
-   * The resource name of a [ProductSet][google.cloud.vision.v1.ProductSet] to
-   * be searched for similar images.
+   * The resource name of a [ProductSet][google.cloud.vision.v1.ProductSet] to be searched for similar images.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`.
    * 
@@ -59,8 +58,7 @@ public interface ProductSearchParamsOrBuilder * * *
-   * The resource name of a [ProductSet][google.cloud.vision.v1.ProductSet] to
-   * be searched for similar images.
+   * The resource name of a [ProductSet][google.cloud.vision.v1.ProductSet] to be searched for similar images.
    * Format is:
    * `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`.
    * 
diff --git a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchProto.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchProto.java index f2a141f29954..e9d04241ffd4 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchProto.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchProto.java @@ -42,11 +42,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n+google/cloud/vision/v1/product_search." - + "proto\022\026google.cloud.vision.v1\032\034google/ap" - + "i/annotations.proto\032%google/cloud/vision" - + "/v1/geometry.proto\0323google/cloud/vision/" - + "v1/product_search_service.proto\032\037google/" - + "protobuf/timestamp.proto\"\223\001\n\023ProductSear" + + "proto\022\026google.cloud.vision.v1\032%google/cl" + + "oud/vision/v1/geometry.proto\0323google/clo" + + "ud/vision/v1/product_search_service.prot" + + "o\032\037google/protobuf/timestamp.proto\032\034goog" + + "le/api/annotations.proto\"\223\001\n\023ProductSear" + "chParams\022;\n\rbounding_poly\030\t \001(\0132$.google" + ".cloud.vision.v1.BoundingPoly\022\023\n\013product" + "_set\030\006 \001(\t\022\032\n\022product_categories\030\007 \003(\t\022\016" @@ -82,10 +82,10 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.cloud.vision.v1.GeometryProto.getDescriptor(), com.google.cloud.vision.v1.ProductSearchServiceProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), }, assigner); internal_static_google_cloud_vision_v1_ProductSearchParams_descriptor = @@ -134,10 +134,10 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "BoundingPoly", "Results", "ObjectAnnotations", }); - com.google.api.AnnotationsProto.getDescriptor(); com.google.cloud.vision.v1.GeometryProto.getDescriptor(); com.google.cloud.vision.v1.ProductSearchServiceProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchServiceProto.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchServiceProto.java index fddcd5f71f41..a61e0e79ab33 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchServiceProto.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSearchServiceProto.java @@ -152,181 +152,222 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n3google/cloud/vision/v1/product_search_" + "service.proto\022\026google.cloud.vision.v1\032\034g" + "oogle/api/annotations.proto\032\027google/api/" - + "client.proto\032%google/cloud/vision/v1/geo" - + "metry.proto\032#google/longrunning/operatio" - + "ns.proto\032\033google/protobuf/empty.proto\032 g" - + "oogle/protobuf/field_mask.proto\032\037google/" - + "protobuf/timestamp.proto\032\027google/rpc/sta" - + "tus.proto\"\306\001\n\007Product\022\014\n\004name\030\001 \001(\t\022\024\n\014d" - + "isplay_name\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022\030" - + "\n\020product_category\030\004 \001(\t\022@\n\016product_labe" - + "ls\030\005 \003(\0132(.google.cloud.vision.v1.Produc" - + "t.KeyValue\032&\n\010KeyValue\022\013\n\003key\030\001 \001(\t\022\r\n\005v" - + "alue\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\013index_e" - + "rror\030\004 \001(\0132\022.google.rpc.Status\"i\n\016Refere" - + "nceImage\022\014\n\004name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022<\n\016b" - + "ounding_polys\030\003 \003(\0132$.google.cloud.visio" - + "n.v1.BoundingPoly\"l\n\024CreateProductReques" - + "t\022\016\n\006parent\030\001 \001(\t\0220\n\007product\030\002 \001(\0132\037.goo" - + "gle.cloud.vision.v1.Product\022\022\n\nproduct_i" - + "d\030\003 \001(\t\"L\n\023ListProductsRequest\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\"b\n\024ListProductsResponse\0221\n\010product" - + "s\030\001 \003(\0132\037.google.cloud.vision.v1.Product" - + "\022\027\n\017next_page_token\030\002 \001(\t\"!\n\021GetProductR" - + "equest\022\014\n\004name\030\001 \001(\t\"y\n\024UpdateProductReq" - + "uest\0220\n\007product\030\001 \001(\0132\037.google.cloud.vis" - + "ion.v1.Product\022/\n\013update_mask\030\002 \001(\0132\032.go" - + "ogle.protobuf.FieldMask\"$\n\024DeleteProduct" - + "Request\022\014\n\004name\030\001 \001(\t\"z\n\027CreateProductSe" - + "tRequest\022\016\n\006parent\030\001 \001(\t\0227\n\013product_set\030" - + "\002 \001(\0132\".google.cloud.vision.v1.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\"l\n\027ListProduc" - + "tSetsResponse\0228\n\014product_sets\030\001 \003(\0132\".go" - + "ogle.cloud.vision.v1.ProductSet\022\027\n\017next_" - + "page_token\030\002 \001(\t\"$\n\024GetProductSetRequest" - + "\022\014\n\004name\030\001 \001(\t\"\203\001\n\027UpdateProductSetReque" - + "st\0227\n\013product_set\030\001 \001(\0132\".google.cloud.v" - + "ision.v1.ProductSet\022/\n\013update_mask\030\002 \001(\013" - + "2\032.google.protobuf.FieldMask\"\'\n\027DeletePr" - + "oductSetRequest\022\014\n\004name\030\001 \001(\t\"\212\001\n\033Create" - + "ReferenceImageRequest\022\016\n\006parent\030\001 \001(\t\022?\n" - + "\017reference_image\030\002 \001(\0132&.google.cloud.vi" - + "sion.v1.ReferenceImage\022\032\n\022reference_imag" - + "e_id\030\003 \001(\t\"S\n\032ListReferenceImagesRequest" - + "\022\016\n\006parent\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\np" - + "age_token\030\003 \001(\t\"\213\001\n\033ListReferenceImagesR" - + "esponse\022@\n\020reference_images\030\001 \003(\0132&.goog" - + "le.cloud.vision.v1.ReferenceImage\022\021\n\tpag" - + "e_size\030\002 \001(\005\022\027\n\017next_page_token\030\003 \001(\t\"(\n" - + "\030GetReferenceImageRequest\022\014\n\004name\030\001 \001(\t\"" - + "+\n\033DeleteReferenceImageRequest\022\014\n\004name\030\001" - + " \001(\t\">\n\035AddProductToProductSetRequest\022\014\n" - + "\004name\030\001 \001(\t\022\017\n\007product\030\002 \001(\t\"C\n\"RemovePr" - + "oductFromProductSetRequest\022\014\n\004name\030\001 \001(\t" - + "\022\017\n\007product\030\002 \001(\t\"V\n\037ListProductsInProdu" - + "ctSetRequest\022\014\n\004name\030\001 \001(\t\022\021\n\tpage_size\030" - + "\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"n\n ListProduct" - + "sInProductSetResponse\0221\n\010products\030\001 \003(\0132" - + "\037.google.cloud.vision.v1.Product\022\027\n\017next" - + "_page_token\030\002 \001(\t\"2\n\032ImportProductSetsGc" - + "sSource\022\024\n\014csv_file_uri\030\001 \001(\t\"r\n\034ImportP" - + "roductSetsInputConfig\022H\n\ngcs_source\030\001 \001(" - + "\01322.google.cloud.vision.v1.ImportProduct" - + "SetsGcsSourceH\000B\010\n\006source\"v\n\030ImportProdu" - + "ctSetsRequest\022\016\n\006parent\030\001 \001(\t\022J\n\014input_c" - + "onfig\030\002 \001(\01324.google.cloud.vision.v1.Imp" - + "ortProductSetsInputConfig\"\203\001\n\031ImportProd" - + "uctSetsResponse\022@\n\020reference_images\030\001 \003(" - + "\0132&.google.cloud.vision.v1.ReferenceImag" - + "e\022$\n\010statuses\030\002 \003(\0132\022.google.rpc.Status\"" - + "\227\002\n\026BatchOperationMetadata\022C\n\005state\030\001 \001(" - + "\01624.google.cloud.vision.v1.BatchOperatio" - + "nMetadata.State\022/\n\013submit_time\030\002 \001(\0132\032.g" - + "oogle.protobuf.Timestamp\022,\n\010end_time\030\003 \001" - + "(\0132\032.google.protobuf.Timestamp\"Y\n\005State\022" - + "\025\n\021STATE_UNSPECIFIED\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" - + "\004\"/\n\025ProductSetPurgeConfig\022\026\n\016product_se" - + "t_id\030\001 \001(\t\"\264\001\n\024PurgeProductsRequest\022Q\n\030p" - + "roduct_set_purge_config\030\002 \001(\0132-.google.c" - + "loud.vision.v1.ProductSetPurgeConfigH\000\022 " - + "\n\026delete_orphan_products\030\003 \001(\010H\000\022\016\n\006pare" - + "nt\030\001 \001(\t\022\r\n\005force\030\004 \001(\010B\010\n\006target2\345\032\n\rPr" - + "oductSearch\022\255\001\n\020CreateProductSet\022/.googl" - + "e.cloud.vision.v1.CreateProductSetReques" - + "t\032\".google.cloud.vision.v1.ProductSet\"D\202" - + "\323\344\223\002>\"//v1/{parent=projects/*/locations/" - + "*}/productSets:\013product_set\022\253\001\n\017ListProd" - + "uctSets\022..google.cloud.vision.v1.ListPro" - + "ductSetsRequest\032/.google.cloud.vision.v1" - + ".ListProductSetsResponse\"7\202\323\344\223\0021\022//v1/{p" - + "arent=projects/*/locations/*}/productSet" - + "s\022\232\001\n\rGetProductSet\022,.google.cloud.visio" - + "n.v1.GetProductSetRequest\032\".google.cloud" - + ".vision.v1.ProductSet\"7\202\323\344\223\0021\022//v1/{name" - + "=projects/*/locations/*/productSets/*}\022\271" - + "\001\n\020UpdateProductSet\022/.google.cloud.visio" - + "n.v1.UpdateProductSetRequest\032\".google.cl" - + "oud.vision.v1.ProductSet\"P\202\323\344\223\002J2;/v1/{p" - + "roduct_set.name=projects/*/locations/*/p" - + "roductSets/*}:\013product_set\022\224\001\n\020DeletePro" - + "ductSet\022/.google.cloud.vision.v1.DeleteP" - + "roductSetRequest\032\026.google.protobuf.Empty" - + "\"7\202\323\344\223\0021*//v1/{name=projects/*/locations" - + "/*/productSets/*}\022\235\001\n\rCreateProduct\022,.go" - + "ogle.cloud.vision.v1.CreateProductReques" - + "t\032\037.google.cloud.vision.v1.Product\"=\202\323\344\223" - + "\0027\",/v1/{parent=projects/*/locations/*}/" - + "products:\007product\022\237\001\n\014ListProducts\022+.goo" - + "gle.cloud.vision.v1.ListProductsRequest\032" - + ",.google.cloud.vision.v1.ListProductsRes" - + "ponse\"4\202\323\344\223\002.\022,/v1/{parent=projects/*/lo" - + "cations/*}/products\022\216\001\n\nGetProduct\022).goo" - + "gle.cloud.vision.v1.GetProductRequest\032\037." - + "google.cloud.vision.v1.Product\"4\202\323\344\223\002.\022," - + "/v1/{name=projects/*/locations/*/product" - + "s/*}\022\245\001\n\rUpdateProduct\022,.google.cloud.vi" - + "sion.v1.UpdateProductRequest\032\037.google.cl" - + "oud.vision.v1.Product\"E\202\323\344\223\002?24/v1/{prod" - + "uct.name=projects/*/locations/*/products" - + "/*}:\007product\022\213\001\n\rDeleteProduct\022,.google." - + "cloud.vision.v1.DeleteProductRequest\032\026.g" - + "oogle.protobuf.Empty\"4\202\323\344\223\002.*,/v1/{name=" - + "projects/*/locations/*/products/*}\022\314\001\n\024C" - + "reateReferenceImage\0223.google.cloud.visio" - + "n.v1.CreateReferenceImageRequest\032&.googl" - + "e.cloud.vision.v1.ReferenceImage\"W\202\323\344\223\002Q" - + "\">/v1/{parent=projects/*/locations/*/pro" - + "ducts/*}/referenceImages:\017reference_imag" - + "e\022\253\001\n\024DeleteReferenceImage\0223.google.clou" - + "d.vision.v1.DeleteReferenceImageRequest\032" - + "\026.google.protobuf.Empty\"F\202\323\344\223\002@*>/v1/{na" - + "me=projects/*/locations/*/products/*/ref" - + "erenceImages/*}\022\306\001\n\023ListReferenceImages\022" - + "2.google.cloud.vision.v1.ListReferenceIm" - + "agesRequest\0323.google.cloud.vision.v1.Lis" - + "tReferenceImagesResponse\"F\202\323\344\223\002@\022>/v1/{p" - + "arent=projects/*/locations/*/products/*}" - + "/referenceImages\022\265\001\n\021GetReferenceImage\0220" - + ".google.cloud.vision.v1.GetReferenceImag" - + "eRequest\032&.google.cloud.vision.v1.Refere" - + "nceImage\"F\202\323\344\223\002@\022>/v1/{name=projects/*/l" - + "ocations/*/products/*/referenceImages/*}" - + "\022\256\001\n\026AddProductToProductSet\0225.google.clo" - + "ud.vision.v1.AddProductToProductSetReque" - + "st\032\026.google.protobuf.Empty\"E\202\323\344\223\002?\":/v1/" - + "{name=projects/*/locations/*/productSets" - + "/*}:addProduct:\001*\022\273\001\n\033RemoveProductFromP" - + "roductSet\022:.google.cloud.vision.v1.Remov" - + "eProductFromProductSetRequest\032\026.google.p" - + "rotobuf.Empty\"H\202\323\344\223\002B\"=/v1/{name=project" - + "s/*/locations/*/productSets/*}:removePro" - + "duct:\001*\022\317\001\n\030ListProductsInProductSet\0227.g" - + "oogle.cloud.vision.v1.ListProductsInProd" - + "uctSetRequest\0328.google.cloud.vision.v1.L" - + "istProductsInProductSetResponse\"@\202\323\344\223\002:\022" - + "8/v1/{name=projects/*/locations/*/produc" - + "tSets/*}/products\022\247\001\n\021ImportProductSets\022" - + "0.google.cloud.vision.v1.ImportProductSe" - + "tsRequest\032\035.google.longrunning.Operation" - + "\"A\202\323\344\223\002;\"6/v1/{parent=projects/*/locatio" - + "ns/*}/productSets:import:\001*\022\233\001\n\rPurgePro" - + "ducts\022,.google.cloud.vision.v1.PurgeProd" - + "uctsRequest\032\035.google.longrunning.Operati" - + "on\"=\202\323\344\223\0027\"2/v1/{parent=projects/*/locat" - + "ions/*}/products:purge:\001*\032v\312A\025vision.goo" - + "gleapis.com\322A[https://www.googleapis.com" - + "/auth/cloud-platform,https://www.googlea" - + "pis.com/auth/cloud-visionB\201\001\n\032com.google" - + ".cloud.vision.v1B\031ProductSearchServicePr" - + "otoP\001Z\"//v1/{parent=proj" + + "ects/*/locations/*}/productSets:\013product" + + "_set\332A!parent,product_set,product_set_id" + + "\022\264\001\n\017ListProductSets\022..google.cloud.visi" + + "on.v1.ListProductSetsRequest\032/.google.cl" + + "oud.vision.v1.ListProductSetsResponse\"@\202" + + "\323\344\223\0021\022//v1/{parent=projects/*/locations/" + + "*}/productSets\332A\006parent\022\241\001\n\rGetProductSe" + + "t\022,.google.cloud.vision.v1.GetProductSet" + + "Request\032\".google.cloud.vision.v1.Product" + + "Set\">\202\323\344\223\0021\022//v1/{name=projects/*/locati" + + "ons/*/productSets/*}\332A\004name\022\323\001\n\020UpdatePr" + + "oductSet\022/.google.cloud.vision.v1.Update" + + "ProductSetRequest\032\".google.cloud.vision." + + "v1.ProductSet\"j\202\323\344\223\002J2;/v1/{product_set." + + "name=projects/*/locations/*/productSets/" + + "*}:\013product_set\332A\027product_set,update_mas" + + "k\022\233\001\n\020DeleteProductSet\022/.google.cloud.vi" + + "sion.v1.DeleteProductSetRequest\032\026.google" + + ".protobuf.Empty\">\202\323\344\223\0021*//v1/{name=proje" + + "cts/*/locations/*/productSets/*}\332A\004name\022" + + "\271\001\n\rCreateProduct\022,.google.cloud.vision." + + "v1.CreateProductRequest\032\037.google.cloud.v" + + "ision.v1.Product\"Y\202\323\344\223\0027\",/v1/{parent=pr" + + "ojects/*/locations/*}/products:\007product\332" + + "A\031parent,product,product_id\022\250\001\n\014ListProd" + + "ucts\022+.google.cloud.vision.v1.ListProduc" + + "tsRequest\032,.google.cloud.vision.v1.ListP" + + "roductsResponse\"=\202\323\344\223\002.\022,/v1/{parent=pro" + + "jects/*/locations/*}/products\332A\006parent\022\225" + + "\001\n\nGetProduct\022).google.cloud.vision.v1.G" + + "etProductRequest\032\037.google.cloud.vision.v" + + "1.Product\";\202\323\344\223\002.\022,/v1/{name=projects/*/" + + "locations/*/products/*}\332A\004name\022\273\001\n\rUpdat" + + "eProduct\022,.google.cloud.vision.v1.Update" + + "ProductRequest\032\037.google.cloud.vision.v1." + + "Product\"[\202\323\344\223\002?24/v1/{product.name=proje" + + "cts/*/locations/*/products/*}:\007product\332A" + + "\023product,update_mask\022\222\001\n\rDeleteProduct\022," + + ".google.cloud.vision.v1.DeleteProductReq" + + "uest\032\026.google.protobuf.Empty\";\202\323\344\223\002.*,/v" + + "1/{name=projects/*/locations/*/products/" + + "*}\332A\004name\022\371\001\n\024CreateReferenceImage\0223.goo" + + "gle.cloud.vision.v1.CreateReferenceImage" + + "Request\032&.google.cloud.vision.v1.Referen" + + "ceImage\"\203\001\202\323\344\223\002Q\">/v1/{parent=projects/*" + + "/locations/*/products/*}/referenceImages" + + ":\017reference_image\332A)parent,reference_ima" + + "ge,reference_image_id\022\262\001\n\024DeleteReferenc" + + "eImage\0223.google.cloud.vision.v1.DeleteRe" + + "ferenceImageRequest\032\026.google.protobuf.Em" + + "pty\"M\202\323\344\223\002@*>/v1/{name=projects/*/locati" + + "ons/*/products/*/referenceImages/*}\332A\004na" + + "me\022\317\001\n\023ListReferenceImages\0222.google.clou" + + "d.vision.v1.ListReferenceImagesRequest\0323" + + ".google.cloud.vision.v1.ListReferenceIma" + + "gesResponse\"O\202\323\344\223\002@\022>/v1/{parent=project" + + "s/*/locations/*/products/*}/referenceIma" + + "ges\332A\006parent\022\265\001\n\021GetReferenceImage\0220.goo" + + "gle.cloud.vision.v1.GetReferenceImageReq" + + "uest\032&.google.cloud.vision.v1.ReferenceI" + + "mage\"F\202\323\344\223\002@\022>/v1/{name=projects/*/locat" + + "ions/*/products/*/referenceImages/*}\022\275\001\n" + + "\026AddProductToProductSet\0225.google.cloud.v" + + "ision.v1.AddProductToProductSetRequest\032\026" + + ".google.protobuf.Empty\"T\202\323\344\223\002?\":/v1/{nam" + + "e=projects/*/locations/*/productSets/*}:" + + "addProduct:\001*\332A\014name,product\022\312\001\n\033RemoveP" + + "roductFromProductSet\022:.google.cloud.visi" + + "on.v1.RemoveProductFromProductSetRequest" + + "\032\026.google.protobuf.Empty\"W\202\323\344\223\002B\"=/v1/{n" + + "ame=projects/*/locations/*/productSets/*" + + "}:removeProduct:\001*\332A\014name,product\022\326\001\n\030Li" + + "stProductsInProductSet\0227.google.cloud.vi" + + "sion.v1.ListProductsInProductSetRequest\032" + + "8.google.cloud.vision.v1.ListProductsInP" + + "roductSetResponse\"G\202\323\344\223\002:\0228/v1/{name=pro" + + "jects/*/locations/*/productSets/*}/produ" + + "cts\332A\004name\022\364\001\n\021ImportProductSets\0220.googl" + + "e.cloud.vision.v1.ImportProductSetsReque" + + "st\032\035.google.longrunning.Operation\"\215\001\202\323\344\223" + + "\002;\"6/v1/{parent=projects/*/locations/*}/" + + "productSets:import:\001*\332A\023parent,input_con" + + "fig\312A3\n\031ImportProductSetsResponse\022\026Batch" + + "OperationMetadata\022\326\001\n\rPurgeProducts\022,.go" + + "ogle.cloud.vision.v1.PurgeProductsReques" + + "t\032\035.google.longrunning.Operation\"x\202\323\344\223\0027" + + "\"2/v1/{parent=projects/*/locations/*}/pr" + + "oducts:purge:\001*\332A\006parent\312A/\n\025google.prot" + + "obuf.Empty\022\026BatchOperationMetadata\032v\312A\025v" + + "ision.googleapis.com\322A[https://www.googl" + + "eapis.com/auth/cloud-platform,https://ww" + + "w.googleapis.com/auth/cloud-visionB\201\001\n\032c" + + "om.google.cloud.vision.v1B\031ProductSearch" + + "ServiceProtoP\001Z * - * .google.protobuf.Timestamp index_time = 3; + * .google.protobuf.Timestamp index_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public boolean hasIndexTime() { return indexTime_ != null; @@ -253,7 +254,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_; @@ -269,7 +271,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(); @@ -286,7 +289,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; @@ -300,7 +303,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_; @@ -314,7 +317,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(); @@ -933,7 +936,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; @@ -949,7 +953,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) { @@ -969,7 +974,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) { @@ -995,7 +1001,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) { @@ -1018,7 +1025,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) { @@ -1046,7 +1054,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) { @@ -1070,7 +1079,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() { @@ -1088,7 +1098,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) { @@ -1108,7 +1119,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, @@ -1140,7 +1152,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; @@ -1154,7 +1166,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) { @@ -1172,7 +1184,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) { @@ -1196,7 +1208,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) { @@ -1217,7 +1229,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) { @@ -1243,7 +1255,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) { @@ -1265,7 +1277,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() { @@ -1281,7 +1293,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) { @@ -1299,7 +1311,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/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetOrBuilder.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetOrBuilder.java index aa234f1a847e..3ef29ae1ce5e 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetOrBuilder.java @@ -69,7 +69,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(); /** @@ -83,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]; + * */ com.google.protobuf.Timestamp getIndexTime(); /** @@ -97,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.TimestampOrBuilder getIndexTimeOrBuilder(); @@ -110,7 +113,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(); /** @@ -122,7 +125,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(); /** @@ -134,7 +137,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/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PurgeProductsRequest.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PurgeProductsRequest.java index d8690489652e..7465cac3827a 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PurgeProductsRequest.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PurgeProductsRequest.java @@ -228,11 +228,13 @@ public boolean getDeleteOrphanProducts() { * * *
-   * The project and location in which the Products should be deleted.
+   * Required. The project and location in which the Products should be deleted.
    * 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_; @@ -249,11 +251,13 @@ public java.lang.String getParent() { * * *
-   * The project and location in which the Products should be deleted.
+   * Required. The project and location in which the Products should be deleted.
    * 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_; @@ -959,11 +963,13 @@ public Builder clearDeleteOrphanProducts() { * * *
-     * The project and location in which the Products should be deleted.
+     * Required. The project and location in which the Products should be deleted.
      * 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_; @@ -980,11 +986,13 @@ public java.lang.String getParent() { * * *
-     * The project and location in which the Products should be deleted.
+     * Required. The project and location in which the Products should be deleted.
      * 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_; @@ -1001,11 +1009,13 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * The project and location in which the Products should be deleted.
+     * Required. The project and location in which the Products should be deleted.
      * 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) { @@ -1020,11 +1030,13 @@ public Builder setParent(java.lang.String value) { * * *
-     * The project and location in which the Products should be deleted.
+     * Required. The project and location in which the Products should be deleted.
      * 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() { @@ -1036,11 +1048,13 @@ public Builder clearParent() { * * *
-     * The project and location in which the Products should be deleted.
+     * Required. The project and location in which the Products should be deleted.
      * 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/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PurgeProductsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PurgeProductsRequestOrBuilder.java index c349fc23dcc3..b13750af8f65 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PurgeProductsRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/PurgeProductsRequestOrBuilder.java @@ -55,22 +55,26 @@ public interface PurgeProductsRequestOrBuilder * * *
-   * The project and location in which the Products should be deleted.
+   * Required. The project and location in which the Products should be deleted.
    * 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 and location in which the Products should be deleted.
+   * Required. The project and location in which the Products should be deleted.
    * 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/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ReferenceImage.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ReferenceImage.java index e43fb583647c..3f072af2b10f 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ReferenceImage.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ReferenceImage.java @@ -171,12 +171,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_; @@ -193,12 +192,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_; @@ -218,8 +216,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
@@ -227,7 +225,9 @@ public com.google.protobuf.ByteString getUriBytes() {
    * is not).
    * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getBoundingPolysList() { return boundingPolys_; @@ -236,8 +236,8 @@ public java.util.List getBoundingPolysL * * *
-   * 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
@@ -245,7 +245,9 @@ public java.util.List getBoundingPolysL
    * is not).
    * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getBoundingPolysOrBuilderList() { @@ -255,8 +257,8 @@ public java.util.List getBoundingPolysL * * *
-   * 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
@@ -264,7 +266,9 @@ public java.util.List getBoundingPolysL
    * is not).
    * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getBoundingPolysCount() { return boundingPolys_.size(); @@ -273,8 +277,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
@@ -282,7 +286,9 @@ public int getBoundingPolysCount() {
    * is not).
    * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.vision.v1.BoundingPoly getBoundingPolys(int index) { return boundingPolys_.get(index); @@ -291,8 +297,8 @@ public com.google.cloud.vision.v1.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
@@ -300,7 +306,9 @@ public com.google.cloud.vision.v1.BoundingPoly getBoundingPolys(int index) {
    * is not).
    * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolysOrBuilder(int index) { return boundingPolys_.get(index); @@ -813,12 +821,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_; @@ -835,12 +842,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_; @@ -857,12 +863,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) { @@ -877,12 +882,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() { @@ -894,12 +898,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) { @@ -933,8 +936,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
@@ -942,7 +945,9 @@ private void ensureBoundingPolysIsMutable() {
      * is not).
      * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getBoundingPolysList() { if (boundingPolysBuilder_ == null) { @@ -955,8 +960,8 @@ public java.util.List getBoundingPolysL * * *
-     * 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
@@ -964,7 +969,9 @@ public java.util.List getBoundingPolysL
      * is not).
      * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getBoundingPolysCount() { if (boundingPolysBuilder_ == null) { @@ -977,8 +984,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
@@ -986,7 +993,9 @@ public int getBoundingPolysCount() {
      * is not).
      * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.vision.v1.BoundingPoly getBoundingPolys(int index) { if (boundingPolysBuilder_ == null) { @@ -999,8 +1008,8 @@ public com.google.cloud.vision.v1.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
@@ -1008,7 +1017,9 @@ public com.google.cloud.vision.v1.BoundingPoly getBoundingPolys(int index) {
      * is not).
      * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setBoundingPolys(int index, com.google.cloud.vision.v1.BoundingPoly value) { if (boundingPolysBuilder_ == null) { @@ -1027,8 +1038,8 @@ public Builder setBoundingPolys(int index, com.google.cloud.vision.v1.BoundingPo * * *
-     * 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
@@ -1036,7 +1047,9 @@ public Builder setBoundingPolys(int index, com.google.cloud.vision.v1.BoundingPo
      * is not).
      * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setBoundingPolys( int index, com.google.cloud.vision.v1.BoundingPoly.Builder builderForValue) { @@ -1053,8 +1066,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
@@ -1062,7 +1075,9 @@ public Builder setBoundingPolys(
      * is not).
      * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addBoundingPolys(com.google.cloud.vision.v1.BoundingPoly value) { if (boundingPolysBuilder_ == null) { @@ -1081,8 +1096,8 @@ public Builder addBoundingPolys(com.google.cloud.vision.v1.BoundingPoly value) { * * *
-     * 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
@@ -1090,7 +1105,9 @@ public Builder addBoundingPolys(com.google.cloud.vision.v1.BoundingPoly value) {
      * is not).
      * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addBoundingPolys(int index, com.google.cloud.vision.v1.BoundingPoly value) { if (boundingPolysBuilder_ == null) { @@ -1109,8 +1126,8 @@ public Builder addBoundingPolys(int index, com.google.cloud.vision.v1.BoundingPo * * *
-     * 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
@@ -1118,7 +1135,9 @@ public Builder addBoundingPolys(int index, com.google.cloud.vision.v1.BoundingPo
      * is not).
      * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addBoundingPolys( com.google.cloud.vision.v1.BoundingPoly.Builder builderForValue) { @@ -1135,8 +1154,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
@@ -1144,7 +1163,9 @@ public Builder addBoundingPolys(
      * is not).
      * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addBoundingPolys( int index, com.google.cloud.vision.v1.BoundingPoly.Builder builderForValue) { @@ -1161,8 +1182,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
@@ -1170,7 +1191,9 @@ public Builder addBoundingPolys(
      * is not).
      * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllBoundingPolys( java.lang.Iterable values) { @@ -1187,8 +1210,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
@@ -1196,7 +1219,9 @@ public Builder addAllBoundingPolys(
      * is not).
      * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearBoundingPolys() { if (boundingPolysBuilder_ == null) { @@ -1212,8 +1237,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
@@ -1221,7 +1246,9 @@ public Builder clearBoundingPolys() {
      * is not).
      * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeBoundingPolys(int index) { if (boundingPolysBuilder_ == null) { @@ -1237,8 +1264,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
@@ -1246,7 +1273,9 @@ public Builder removeBoundingPolys(int index) {
      * is not).
      * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.vision.v1.BoundingPoly.Builder getBoundingPolysBuilder(int index) { return getBoundingPolysFieldBuilder().getBuilder(index); @@ -1255,8 +1284,8 @@ public com.google.cloud.vision.v1.BoundingPoly.Builder getBoundingPolysBuilder(i * * *
-     * 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
@@ -1264,7 +1293,9 @@ public com.google.cloud.vision.v1.BoundingPoly.Builder getBoundingPolysBuilder(i
      * is not).
      * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolysOrBuilder(int index) { if (boundingPolysBuilder_ == null) { @@ -1277,8 +1308,8 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolysOrBuilde * * *
-     * 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
@@ -1286,7 +1317,9 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolysOrBuilde
      * is not).
      * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getBoundingPolysOrBuilderList() { @@ -1300,8 +1333,8 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolysOrBuilde * * *
-     * 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
@@ -1309,7 +1342,9 @@ public com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolysOrBuilde
      * is not).
      * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.vision.v1.BoundingPoly.Builder addBoundingPolysBuilder() { return getBoundingPolysFieldBuilder() @@ -1319,8 +1354,8 @@ public com.google.cloud.vision.v1.BoundingPoly.Builder addBoundingPolysBuilder() * * *
-     * 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
@@ -1328,7 +1363,9 @@ public com.google.cloud.vision.v1.BoundingPoly.Builder addBoundingPolysBuilder()
      * is not).
      * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.vision.v1.BoundingPoly.Builder addBoundingPolysBuilder(int index) { return getBoundingPolysFieldBuilder() @@ -1338,8 +1375,8 @@ public com.google.cloud.vision.v1.BoundingPoly.Builder addBoundingPolysBuilder(i * * *
-     * 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
@@ -1347,7 +1384,9 @@ public com.google.cloud.vision.v1.BoundingPoly.Builder addBoundingPolysBuilder(i
      * is not).
      * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getBoundingPolysBuilderList() { diff --git a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ReferenceImageOrBuilder.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ReferenceImageOrBuilder.java index 22382261992a..0ca78595b8f3 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ReferenceImageOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ReferenceImageOrBuilder.java @@ -39,24 +39,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(); @@ -64,8 +62,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
@@ -73,15 +71,17 @@ public interface ReferenceImageOrBuilder
    * is not).
    * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1.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
@@ -89,15 +89,17 @@ public interface ReferenceImageOrBuilder
    * is not).
    * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.vision.v1.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
@@ -105,15 +107,17 @@ public interface ReferenceImageOrBuilder
    * is not).
    * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1.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
@@ -121,7 +125,9 @@ public interface ReferenceImageOrBuilder
    * is not).
    * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.List getBoundingPolysOrBuilderList(); @@ -129,8 +135,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
@@ -138,7 +144,9 @@ public interface ReferenceImageOrBuilder
    * is not).
    * 
* - * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3; + * + * repeated .google.cloud.vision.v1.BoundingPoly bounding_polys = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.vision.v1.BoundingPolyOrBuilder getBoundingPolysOrBuilder(int index); } diff --git a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/RemoveProductFromProductSetRequest.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/RemoveProductFromProductSetRequest.java index eeb576c49df5..8be3894a6e2b 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/RemoveProductFromProductSetRequest.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/RemoveProductFromProductSetRequest.java @@ -106,12 +106,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_; @@ -128,12 +130,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_; @@ -153,12 +157,14 @@ 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_; @@ -175,12 +181,14 @@ 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_; @@ -537,12 +545,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_; @@ -559,12 +569,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_; @@ -581,12 +593,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) { @@ -601,12 +615,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() { @@ -618,12 +634,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) { @@ -641,12 +659,14 @@ 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_; @@ -663,12 +683,14 @@ 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_; @@ -685,12 +707,14 @@ 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) { @@ -705,12 +729,14 @@ 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() { @@ -722,12 +748,14 @@ 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/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/RemoveProductFromProductSetRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/RemoveProductFromProductSetRequestOrBuilder.java index bc01e82e895c..821e2ea6dd16 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/RemoveProductFromProductSetRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/RemoveProductFromProductSetRequestOrBuilder.java @@ -12,24 +12,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(); @@ -37,24 +41,28 @@ 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/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/SafeSearchAnnotation.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/SafeSearchAnnotation.java index 407d6378699b..b6fb8ae444ca 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/SafeSearchAnnotation.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/SafeSearchAnnotation.java @@ -91,6 +91,36 @@ private SafeSearchAnnotation( racy_ = rawValue; break; } + case 133: + { + adultConfidence_ = input.readFloat(); + break; + } + case 149: + { + spoofConfidence_ = input.readFloat(); + break; + } + case 165: + { + medicalConfidence_ = input.readFloat(); + break; + } + case 181: + { + violenceConfidence_ = input.readFloat(); + break; + } + case 197: + { + racyConfidence_ = input.readFloat(); + break; + } + case 213: + { + nsfwConfidence_ = input.readFloat(); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -289,6 +319,102 @@ public com.google.cloud.vision.v1.Likelihood getRacy() { return result == null ? com.google.cloud.vision.v1.Likelihood.UNRECOGNIZED : result; } + public static final int ADULT_CONFIDENCE_FIELD_NUMBER = 16; + private float adultConfidence_; + /** + * + * + *
+   * Confidence of adult_score. Range [0, 1]. 0 means not confident, 1 means
+   * very confident.
+   * 
+ * + * float adult_confidence = 16; + */ + public float getAdultConfidence() { + return adultConfidence_; + } + + public static final int SPOOF_CONFIDENCE_FIELD_NUMBER = 18; + private float spoofConfidence_; + /** + * + * + *
+   * Confidence of spoof_score. Range [0, 1]. 0 means not confident, 1 means
+   * very confident.
+   * 
+ * + * float spoof_confidence = 18; + */ + public float getSpoofConfidence() { + return spoofConfidence_; + } + + public static final int MEDICAL_CONFIDENCE_FIELD_NUMBER = 20; + private float medicalConfidence_; + /** + * + * + *
+   * Confidence of medical_score. Range [0, 1]. 0 means not confident, 1 means
+   * very confident.
+   * 
+ * + * float medical_confidence = 20; + */ + public float getMedicalConfidence() { + return medicalConfidence_; + } + + public static final int VIOLENCE_CONFIDENCE_FIELD_NUMBER = 22; + private float violenceConfidence_; + /** + * + * + *
+   * Confidence of violence_score. Range [0, 1]. 0 means not confident, 1 means
+   * very confident.
+   * 
+ * + * float violence_confidence = 22; + */ + public float getViolenceConfidence() { + return violenceConfidence_; + } + + public static final int RACY_CONFIDENCE_FIELD_NUMBER = 24; + private float racyConfidence_; + /** + * + * + *
+   * Confidence of racy_score. Range [0, 1]. 0 means not confident, 1 means very
+   * confident.
+   * 
+ * + * float racy_confidence = 24; + */ + public float getRacyConfidence() { + return racyConfidence_; + } + + public static final int NSFW_CONFIDENCE_FIELD_NUMBER = 26; + private float nsfwConfidence_; + /** + * + * + *
+   * Confidence of nsfw_score. Range [0, 1]. 0 means not confident, 1 means very
+   * confident.
+   * 
+ * + * float nsfw_confidence = 26; + */ + public float getNsfwConfidence() { + return nsfwConfidence_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -318,6 +444,24 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (racy_ != com.google.cloud.vision.v1.Likelihood.UNKNOWN.getNumber()) { output.writeEnum(9, racy_); } + if (adultConfidence_ != 0F) { + output.writeFloat(16, adultConfidence_); + } + if (spoofConfidence_ != 0F) { + output.writeFloat(18, spoofConfidence_); + } + if (medicalConfidence_ != 0F) { + output.writeFloat(20, medicalConfidence_); + } + if (violenceConfidence_ != 0F) { + output.writeFloat(22, violenceConfidence_); + } + if (racyConfidence_ != 0F) { + output.writeFloat(24, racyConfidence_); + } + if (nsfwConfidence_ != 0F) { + output.writeFloat(26, nsfwConfidence_); + } unknownFields.writeTo(output); } @@ -342,6 +486,24 @@ public int getSerializedSize() { if (racy_ != com.google.cloud.vision.v1.Likelihood.UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, racy_); } + if (adultConfidence_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(16, adultConfidence_); + } + if (spoofConfidence_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(18, spoofConfidence_); + } + if (medicalConfidence_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(20, medicalConfidence_); + } + if (violenceConfidence_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(22, violenceConfidence_); + } + if (racyConfidence_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(24, racyConfidence_); + } + if (nsfwConfidence_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(26, nsfwConfidence_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -363,6 +525,18 @@ public boolean equals(final java.lang.Object obj) { if (medical_ != other.medical_) return false; if (violence_ != other.violence_) return false; if (racy_ != other.racy_) return false; + if (java.lang.Float.floatToIntBits(getAdultConfidence()) + != java.lang.Float.floatToIntBits(other.getAdultConfidence())) return false; + if (java.lang.Float.floatToIntBits(getSpoofConfidence()) + != java.lang.Float.floatToIntBits(other.getSpoofConfidence())) return false; + if (java.lang.Float.floatToIntBits(getMedicalConfidence()) + != java.lang.Float.floatToIntBits(other.getMedicalConfidence())) return false; + if (java.lang.Float.floatToIntBits(getViolenceConfidence()) + != java.lang.Float.floatToIntBits(other.getViolenceConfidence())) return false; + if (java.lang.Float.floatToIntBits(getRacyConfidence()) + != java.lang.Float.floatToIntBits(other.getRacyConfidence())) return false; + if (java.lang.Float.floatToIntBits(getNsfwConfidence()) + != java.lang.Float.floatToIntBits(other.getNsfwConfidence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -384,6 +558,18 @@ public int hashCode() { hash = (53 * hash) + violence_; hash = (37 * hash) + RACY_FIELD_NUMBER; hash = (53 * hash) + racy_; + hash = (37 * hash) + ADULT_CONFIDENCE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getAdultConfidence()); + hash = (37 * hash) + SPOOF_CONFIDENCE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getSpoofConfidence()); + hash = (37 * hash) + MEDICAL_CONFIDENCE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getMedicalConfidence()); + hash = (37 * hash) + VIOLENCE_CONFIDENCE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getViolenceConfidence()); + hash = (37 * hash) + RACY_CONFIDENCE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getRacyConfidence()); + hash = (37 * hash) + NSFW_CONFIDENCE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getNsfwConfidence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -541,6 +727,18 @@ public Builder clear() { racy_ = 0; + adultConfidence_ = 0F; + + spoofConfidence_ = 0F; + + medicalConfidence_ = 0F; + + violenceConfidence_ = 0F; + + racyConfidence_ = 0F; + + nsfwConfidence_ = 0F; + return this; } @@ -573,6 +771,12 @@ public com.google.cloud.vision.v1.SafeSearchAnnotation buildPartial() { result.medical_ = medical_; result.violence_ = violence_; result.racy_ = racy_; + result.adultConfidence_ = adultConfidence_; + result.spoofConfidence_ = spoofConfidence_; + result.medicalConfidence_ = medicalConfidence_; + result.violenceConfidence_ = violenceConfidence_; + result.racyConfidence_ = racyConfidence_; + result.nsfwConfidence_ = nsfwConfidence_; onBuilt(); return result; } @@ -638,6 +842,24 @@ public Builder mergeFrom(com.google.cloud.vision.v1.SafeSearchAnnotation other) if (other.racy_ != 0) { setRacyValue(other.getRacyValue()); } + if (other.getAdultConfidence() != 0F) { + setAdultConfidence(other.getAdultConfidence()); + } + if (other.getSpoofConfidence() != 0F) { + setSpoofConfidence(other.getSpoofConfidence()); + } + if (other.getMedicalConfidence() != 0F) { + setMedicalConfidence(other.getMedicalConfidence()); + } + if (other.getViolenceConfidence() != 0F) { + setViolenceConfidence(other.getViolenceConfidence()); + } + if (other.getRacyConfidence() != 0F) { + setRacyConfidence(other.getRacyConfidence()); + } + if (other.getNsfwConfidence() != 0F) { + setNsfwConfidence(other.getNsfwConfidence()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1082,6 +1304,288 @@ public Builder clearRacy() { return this; } + private float adultConfidence_; + /** + * + * + *
+     * Confidence of adult_score. Range [0, 1]. 0 means not confident, 1 means
+     * very confident.
+     * 
+ * + * float adult_confidence = 16; + */ + public float getAdultConfidence() { + return adultConfidence_; + } + /** + * + * + *
+     * Confidence of adult_score. Range [0, 1]. 0 means not confident, 1 means
+     * very confident.
+     * 
+ * + * float adult_confidence = 16; + */ + public Builder setAdultConfidence(float value) { + + adultConfidence_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Confidence of adult_score. Range [0, 1]. 0 means not confident, 1 means
+     * very confident.
+     * 
+ * + * float adult_confidence = 16; + */ + public Builder clearAdultConfidence() { + + adultConfidence_ = 0F; + onChanged(); + return this; + } + + private float spoofConfidence_; + /** + * + * + *
+     * Confidence of spoof_score. Range [0, 1]. 0 means not confident, 1 means
+     * very confident.
+     * 
+ * + * float spoof_confidence = 18; + */ + public float getSpoofConfidence() { + return spoofConfidence_; + } + /** + * + * + *
+     * Confidence of spoof_score. Range [0, 1]. 0 means not confident, 1 means
+     * very confident.
+     * 
+ * + * float spoof_confidence = 18; + */ + public Builder setSpoofConfidence(float value) { + + spoofConfidence_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Confidence of spoof_score. Range [0, 1]. 0 means not confident, 1 means
+     * very confident.
+     * 
+ * + * float spoof_confidence = 18; + */ + public Builder clearSpoofConfidence() { + + spoofConfidence_ = 0F; + onChanged(); + return this; + } + + private float medicalConfidence_; + /** + * + * + *
+     * Confidence of medical_score. Range [0, 1]. 0 means not confident, 1 means
+     * very confident.
+     * 
+ * + * float medical_confidence = 20; + */ + public float getMedicalConfidence() { + return medicalConfidence_; + } + /** + * + * + *
+     * Confidence of medical_score. Range [0, 1]. 0 means not confident, 1 means
+     * very confident.
+     * 
+ * + * float medical_confidence = 20; + */ + public Builder setMedicalConfidence(float value) { + + medicalConfidence_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Confidence of medical_score. Range [0, 1]. 0 means not confident, 1 means
+     * very confident.
+     * 
+ * + * float medical_confidence = 20; + */ + public Builder clearMedicalConfidence() { + + medicalConfidence_ = 0F; + onChanged(); + return this; + } + + private float violenceConfidence_; + /** + * + * + *
+     * Confidence of violence_score. Range [0, 1]. 0 means not confident, 1 means
+     * very confident.
+     * 
+ * + * float violence_confidence = 22; + */ + public float getViolenceConfidence() { + return violenceConfidence_; + } + /** + * + * + *
+     * Confidence of violence_score. Range [0, 1]. 0 means not confident, 1 means
+     * very confident.
+     * 
+ * + * float violence_confidence = 22; + */ + public Builder setViolenceConfidence(float value) { + + violenceConfidence_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Confidence of violence_score. Range [0, 1]. 0 means not confident, 1 means
+     * very confident.
+     * 
+ * + * float violence_confidence = 22; + */ + public Builder clearViolenceConfidence() { + + violenceConfidence_ = 0F; + onChanged(); + return this; + } + + private float racyConfidence_; + /** + * + * + *
+     * Confidence of racy_score. Range [0, 1]. 0 means not confident, 1 means very
+     * confident.
+     * 
+ * + * float racy_confidence = 24; + */ + public float getRacyConfidence() { + return racyConfidence_; + } + /** + * + * + *
+     * Confidence of racy_score. Range [0, 1]. 0 means not confident, 1 means very
+     * confident.
+     * 
+ * + * float racy_confidence = 24; + */ + public Builder setRacyConfidence(float value) { + + racyConfidence_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Confidence of racy_score. Range [0, 1]. 0 means not confident, 1 means very
+     * confident.
+     * 
+ * + * float racy_confidence = 24; + */ + public Builder clearRacyConfidence() { + + racyConfidence_ = 0F; + onChanged(); + return this; + } + + private float nsfwConfidence_; + /** + * + * + *
+     * Confidence of nsfw_score. Range [0, 1]. 0 means not confident, 1 means very
+     * confident.
+     * 
+ * + * float nsfw_confidence = 26; + */ + public float getNsfwConfidence() { + return nsfwConfidence_; + } + /** + * + * + *
+     * Confidence of nsfw_score. Range [0, 1]. 0 means not confident, 1 means very
+     * confident.
+     * 
+ * + * float nsfw_confidence = 26; + */ + public Builder setNsfwConfidence(float value) { + + nsfwConfidence_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Confidence of nsfw_score. Range [0, 1]. 0 means not confident, 1 means very
+     * confident.
+     * 
+ * + * float nsfw_confidence = 26; + */ + public Builder clearNsfwConfidence() { + + nsfwConfidence_ = 0F; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/SafeSearchAnnotationOrBuilder.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/SafeSearchAnnotationOrBuilder.java index 3c01904a4395..ae288e0e97f0 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/SafeSearchAnnotationOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/SafeSearchAnnotationOrBuilder.java @@ -126,4 +126,76 @@ public interface SafeSearchAnnotationOrBuilder * .google.cloud.vision.v1.Likelihood racy = 9; */ com.google.cloud.vision.v1.Likelihood getRacy(); + + /** + * + * + *
+   * Confidence of adult_score. Range [0, 1]. 0 means not confident, 1 means
+   * very confident.
+   * 
+ * + * float adult_confidence = 16; + */ + float getAdultConfidence(); + + /** + * + * + *
+   * Confidence of spoof_score. Range [0, 1]. 0 means not confident, 1 means
+   * very confident.
+   * 
+ * + * float spoof_confidence = 18; + */ + float getSpoofConfidence(); + + /** + * + * + *
+   * Confidence of medical_score. Range [0, 1]. 0 means not confident, 1 means
+   * very confident.
+   * 
+ * + * float medical_confidence = 20; + */ + float getMedicalConfidence(); + + /** + * + * + *
+   * Confidence of violence_score. Range [0, 1]. 0 means not confident, 1 means
+   * very confident.
+   * 
+ * + * float violence_confidence = 22; + */ + float getViolenceConfidence(); + + /** + * + * + *
+   * Confidence of racy_score. Range [0, 1]. 0 means not confident, 1 means very
+   * confident.
+   * 
+ * + * float racy_confidence = 24; + */ + float getRacyConfidence(); + + /** + * + * + *
+   * Confidence of nsfw_score. Range [0, 1]. 0 means not confident, 1 means very
+   * confident.
+   * 
+ * + * float nsfw_confidence = 26; + */ + float getNsfwConfidence(); } diff --git a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotation.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotation.java index 985353ead641..ed3804fb4ffd 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotation.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotation.java @@ -12,9 +12,8 @@ * TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol * Each structural component, starting from Page, may further have their own * properties. Properties describe detected languages, breaks etc.. Please refer - * to the - * [TextAnnotation.TextProperty][google.cloud.vision.v1.TextAnnotation.TextProperty] - * message definition below for more detail. + * to the [TextAnnotation.TextProperty][google.cloud.vision.v1.TextAnnotation.TextProperty] message definition below for more + * detail. * * * Protobuf type {@code google.cloud.vision.v1.TextAnnotation} @@ -3423,9 +3422,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol * Each structural component, starting from Page, may further have their own * properties. Properties describe detected languages, breaks etc.. Please refer - * to the - * [TextAnnotation.TextProperty][google.cloud.vision.v1.TextAnnotation.TextProperty] - * message definition below for more detail. + * to the [TextAnnotation.TextProperty][google.cloud.vision.v1.TextAnnotation.TextProperty] message definition below for more + * detail. * * * Protobuf type {@code google.cloud.vision.v1.TextAnnotation} diff --git a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotationProto.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotationProto.java index 2e5e230c5e35..f3516d0c031a 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotationProto.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotationProto.java @@ -58,9 +58,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n,google/cloud/vision/v1/text_annotation" - + ".proto\022\026google.cloud.vision.v1\032\034google/a" - + "pi/annotations.proto\032%google/cloud/visio" - + "n/v1/geometry.proto\"\226\004\n\016TextAnnotation\022+" + + ".proto\022\026google.cloud.vision.v1\032%google/c" + + "loud/vision/v1/geometry.proto\032\034google/ap" + + "i/annotations.proto\"\226\004\n\016TextAnnotation\022+" + "\n\005pages\030\001 \003(\0132\034.google.cloud.vision.v1.P" + "age\022\014\n\004text\030\002 \001(\t\032=\n\020DetectedLanguage\022\025\n" + "\rlanguage_code\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002" @@ -118,8 +118,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.cloud.vision.v1.GeometryProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), }, assigner); internal_static_google_cloud_vision_v1_TextAnnotation_descriptor = @@ -194,8 +194,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "Property", "BoundingBox", "Text", "Confidence", }); - com.google.api.AnnotationsProto.getDescriptor(); com.google.cloud.vision.v1.GeometryProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductRequest.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductRequest.java index b1548f31670f..a4f474f7d8d9 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductRequest.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductRequest.java @@ -118,11 +118,12 @@ 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.v1.Product product = 1; + * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasProduct() { return product_ != null; @@ -131,11 +132,12 @@ 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.v1.Product product = 1; + * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.Product getProduct() { return product_ == null ? com.google.cloud.vision.v1.Product.getDefaultInstance() : product_; @@ -144,11 +146,12 @@ public com.google.cloud.vision.v1.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.v1.Product product = 1; + * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.ProductOrBuilder getProductOrBuilder() { return getProduct(); @@ -572,11 +575,12 @@ 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.v1.Product product = 1; + * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasProduct() { return productBuilder_ != null || product_ != null; @@ -585,11 +589,12 @@ 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.v1.Product product = 1; + * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.Product getProduct() { if (productBuilder_ == null) { @@ -604,11 +609,12 @@ public com.google.cloud.vision.v1.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.v1.Product product = 1; + * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setProduct(com.google.cloud.vision.v1.Product value) { if (productBuilder_ == null) { @@ -627,11 +633,12 @@ public Builder setProduct(com.google.cloud.vision.v1.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.v1.Product product = 1; + * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setProduct(com.google.cloud.vision.v1.Product.Builder builderForValue) { if (productBuilder_ == null) { @@ -647,11 +654,12 @@ public Builder setProduct(com.google.cloud.vision.v1.Product.Builder builderForV * * *
-     * 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.v1.Product product = 1; + * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeProduct(com.google.cloud.vision.v1.Product value) { if (productBuilder_ == null) { @@ -674,11 +682,12 @@ public Builder mergeProduct(com.google.cloud.vision.v1.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.v1.Product product = 1; + * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearProduct() { if (productBuilder_ == null) { @@ -695,11 +704,12 @@ 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.v1.Product product = 1; + * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.Product.Builder getProductBuilder() { @@ -710,11 +720,12 @@ public com.google.cloud.vision.v1.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.v1.Product product = 1; + * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.ProductOrBuilder getProductOrBuilder() { if (productBuilder_ != null) { @@ -729,11 +740,12 @@ public com.google.cloud.vision.v1.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.v1.Product product = 1; + * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.vision.v1.Product, diff --git a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductRequestOrBuilder.java index 08d2eacd7c69..2f43e06122df 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductRequestOrBuilder.java @@ -12,33 +12,36 @@ 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.v1.Product product = 1; + * .google.cloud.vision.v1.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.v1.Product product = 1; + * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1.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.v1.Product product = 1; + * .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1.ProductOrBuilder getProductOrBuilder(); diff --git a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductSetRequest.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductSetRequest.java index 663cebe7bf7b..e07c3d7e5519 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductSetRequest.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductSetRequest.java @@ -119,10 +119,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.v1.ProductSet product_set = 1; + * + * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasProductSet() { return productSet_ != null; @@ -131,10 +133,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.v1.ProductSet product_set = 1; + * + * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.ProductSet getProductSet() { return productSet_ == null @@ -145,10 +149,12 @@ public com.google.cloud.vision.v1.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.v1.ProductSet product_set = 1; + * + * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetOrBuilder() { return getProductSet(); @@ -570,10 +576,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.v1.ProductSet product_set = 1; + * + * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasProductSet() { return productSetBuilder_ != null || productSet_ != null; @@ -582,10 +590,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.v1.ProductSet product_set = 1; + * + * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.ProductSet getProductSet() { if (productSetBuilder_ == null) { @@ -600,10 +610,12 @@ public com.google.cloud.vision.v1.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.v1.ProductSet product_set = 1; + * + * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setProductSet(com.google.cloud.vision.v1.ProductSet value) { if (productSetBuilder_ == null) { @@ -622,10 +634,12 @@ public Builder setProductSet(com.google.cloud.vision.v1.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.v1.ProductSet product_set = 1; + * + * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setProductSet(com.google.cloud.vision.v1.ProductSet.Builder builderForValue) { if (productSetBuilder_ == null) { @@ -641,10 +655,12 @@ public Builder setProductSet(com.google.cloud.vision.v1.ProductSet.Builder build * * *
-     * The ProductSet resource which replaces the one on the server.
+     * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * .google.cloud.vision.v1.ProductSet product_set = 1; + * + * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeProductSet(com.google.cloud.vision.v1.ProductSet value) { if (productSetBuilder_ == null) { @@ -667,10 +683,12 @@ public Builder mergeProductSet(com.google.cloud.vision.v1.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.v1.ProductSet product_set = 1; + * + * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearProductSet() { if (productSetBuilder_ == null) { @@ -687,10 +705,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.v1.ProductSet product_set = 1; + * + * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.ProductSet.Builder getProductSetBuilder() { @@ -701,10 +721,12 @@ public com.google.cloud.vision.v1.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.v1.ProductSet product_set = 1; + * + * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetOrBuilder() { if (productSetBuilder_ != null) { @@ -719,10 +741,12 @@ public com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetOrBuilder() { * * *
-     * The ProductSet resource which replaces the one on the server.
+     * Required. The ProductSet resource which replaces the one on the server.
      * 
* - * .google.cloud.vision.v1.ProductSet product_set = 1; + * + * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.vision.v1.ProductSet, diff --git a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductSetRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductSetRequestOrBuilder.java index e258e289d3a3..dd5cfa894e73 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductSetRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/UpdateProductSetRequestOrBuilder.java @@ -12,30 +12,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.v1.ProductSet product_set = 1; + * + * .google.cloud.vision.v1.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.v1.ProductSet product_set = 1; + * + * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1.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.v1.ProductSet product_set = 1; + * + * .google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vision.v1.ProductSetOrBuilder getProductSetOrBuilder(); diff --git a/google-api-grpc/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/image_annotator.proto b/google-api-grpc/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/image_annotator.proto index e4ca1539350a..6cff8dde4d51 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/image_annotator.proto +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/image_annotator.proto @@ -19,6 +19,7 @@ package google.cloud.vision.v1; import "google/api/annotations.proto"; import "google/api/client.proto"; +import "google/api/field_behavior.proto"; import "google/cloud/vision/v1/geometry.proto"; import "google/cloud/vision/v1/product_search.proto"; import "google/cloud/vision/v1/text_annotation.proto"; @@ -47,8 +48,7 @@ service ImageAnnotator { "https://www.googleapis.com/auth/cloud-vision"; // Run image detection and annotation for a batch of images. - rpc BatchAnnotateImages(BatchAnnotateImagesRequest) - returns (BatchAnnotateImagesResponse) { + rpc BatchAnnotateImages(BatchAnnotateImagesRequest) returns (BatchAnnotateImagesResponse) { option (google.api.http) = { post: "/v1/images:annotate" body: "*" @@ -61,6 +61,7 @@ service ImageAnnotator { body: "*" } }; + option (google.api.method_signature) = "requests"; } // Service that performs image detection and annotation for a batch of files. @@ -70,8 +71,7 @@ service ImageAnnotator { // AnnotateFileRequest.pages) frames (gif) or pages (pdf or tiff) from each // file provided and perform detection and annotation for each image // extracted. - rpc BatchAnnotateFiles(BatchAnnotateFilesRequest) - returns (BatchAnnotateFilesResponse) { + rpc BatchAnnotateFiles(BatchAnnotateFilesRequest) returns (BatchAnnotateFilesResponse) { option (google.api.http) = { post: "/v1/files:annotate" body: "*" @@ -84,6 +84,7 @@ service ImageAnnotator { body: "*" } }; + option (google.api.method_signature) = "requests"; } // Run asynchronous image detection and annotation for a list of images. @@ -95,8 +96,7 @@ service ImageAnnotator { // // This service will write image annotation outputs to json files in customer // GCS bucket, each json file containing BatchAnnotateImagesResponse proto. - rpc AsyncBatchAnnotateImages(AsyncBatchAnnotateImagesRequest) - returns (google.longrunning.Operation) { + rpc AsyncBatchAnnotateImages(AsyncBatchAnnotateImagesRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/images:asyncBatchAnnotate" body: "*" @@ -109,6 +109,11 @@ service ImageAnnotator { 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 @@ -117,8 +122,7 @@ service ImageAnnotator { // `google.longrunning.Operations` interface. // `Operation.metadata` contains `OperationMetadata` (metadata). // `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results). - rpc AsyncBatchAnnotateFiles(AsyncBatchAnnotateFilesRequest) - returns (google.longrunning.Operation) { + rpc AsyncBatchAnnotateFiles(AsyncBatchAnnotateFilesRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/files:asyncBatchAnnotate" body: "*" @@ -131,6 +135,11 @@ service ImageAnnotator { body: "*" } }; + option (google.api.method_signature) = "requests"; + option (google.longrunning.operation_info) = { + response_type: "AsyncBatchAnnotateFilesResponse" + metadata_type: "OperationMetadata" + }; } } @@ -557,6 +566,30 @@ message SafeSearchAnnotation { // covered nudity, lewd or provocative poses, or close-ups of sensitive // body areas. Likelihood racy = 9; + + // Confidence of adult_score. Range [0, 1]. 0 means not confident, 1 means + // very confident. + float adult_confidence = 16; + + // Confidence of spoof_score. Range [0, 1]. 0 means not confident, 1 means + // very confident. + float spoof_confidence = 18; + + // Confidence of medical_score. Range [0, 1]. 0 means not confident, 1 means + // very confident. + float medical_confidence = 20; + + // Confidence of violence_score. Range [0, 1]. 0 means not confident, 1 means + // very confident. + float violence_confidence = 22; + + // Confidence of racy_score. Range [0, 1]. 0 means not confident, 1 means very + // confident. + float racy_confidence = 24; + + // Confidence of nsfw_score. Range [0, 1]. 0 means not confident, 1 means very + // confident. + float nsfw_confidence = 26; } // Rectangle determined by min and max `LatLng` pairs. @@ -732,28 +765,10 @@ 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. 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; -} - // Multiple image annotation requests are batched into a single service call. message BatchAnnotateImagesRequest { - // 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]; // Optional. Target project and location to make a call. // @@ -804,11 +819,29 @@ 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 + // Required. The list of file annotation requests. Right now we support only one // AnnotateFileRequest in BatchAnnotateFilesRequest. - repeated AnnotateFileRequest requests = 1; + repeated AnnotateFileRequest requests = 1 [(google.api.field_behavior) = REQUIRED]; // Optional. Target project and location to make a call. // @@ -855,11 +888,11 @@ 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]; // Optional. Target project and location to make a call. // @@ -885,8 +918,8 @@ 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]; // Optional. Target project and location to make a call. // diff --git a/google-api-grpc/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/product_search.proto b/google-api-grpc/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/product_search.proto index 28d36abbb9a9..bede95be4687 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/product_search.proto +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/product_search.proto @@ -17,10 +17,10 @@ syntax = "proto3"; package google.cloud.vision.v1; -import "google/api/annotations.proto"; import "google/cloud/vision/v1/geometry.proto"; import "google/cloud/vision/v1/product_search_service.proto"; import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; option cc_enable_arenas = true; option go_package = "google.golang.org/genproto/googleapis/cloud/vision/v1;vision"; @@ -35,8 +35,7 @@ message ProductSearchParams { // Optional. If it is not specified, system discretion will be applied. BoundingPoly bounding_poly = 9; - // The resource name of a [ProductSet][google.cloud.vision.v1.ProductSet] to - // be searched for similar images. + // The resource name of a [ProductSet][google.cloud.vision.v1.ProductSet] to be searched for similar images. // // Format is: // `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`. diff --git a/google-api-grpc/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/product_search_service.proto b/google-api-grpc/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/product_search_service.proto index a892a6fb6bbe..72657399acec 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/product_search_service.proto +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/product_search_service.proto @@ -19,6 +19,8 @@ package google.cloud.vision.v1; 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/v1/geometry.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; @@ -36,18 +38,16 @@ option objc_class_prefix = "GCVN"; // Manages Products and ProductSets of reference images for use in product // search. It uses the following resource model: // -// - The API has a collection of [ProductSet][google.cloud.vision.v1.ProductSet] -// resources, named `projects/*/locations/*/productSets/*`, which acts as a way -// to put different products into groups to limit identification. +// - The API has a collection of [ProductSet][google.cloud.vision.v1.ProductSet] resources, named +// `projects/*/locations/*/productSets/*`, which acts as a way to put different +// products into groups to limit identification. // // In parallel, // -// - The API has a collection of [Product][google.cloud.vision.v1.Product] -// resources, named +// - The API has a collection of [Product][google.cloud.vision.v1.Product] resources, named // `projects/*/locations/*/products/*` // -// - Each [Product][google.cloud.vision.v1.Product] has a collection of -// [ReferenceImage][google.cloud.vision.v1.ReferenceImage] resources, named +// - Each [Product][google.cloud.vision.v1.Product] has a collection of [ReferenceImage][google.cloud.vision.v1.ReferenceImage] resources, named // `projects/*/locations/*/products/*/referenceImages/*` service ProductSearch { option (google.api.default_host) = "vision.googleapis.com"; @@ -66,6 +66,7 @@ service ProductSearch { post: "/v1/{parent=projects/*/locations/*}/productSets" body: "product_set" }; + option (google.api.method_signature) = "parent,product_set,product_set_id"; } // Lists ProductSets in an unspecified order. @@ -74,11 +75,11 @@ service ProductSearch { // // * Returns INVALID_ARGUMENT if page_size is greater than 100, or less // than 1. - rpc ListProductSets(ListProductSetsRequest) - returns (ListProductSetsResponse) { + rpc ListProductSets(ListProductSetsRequest) returns (ListProductSetsResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*}/productSets" }; + option (google.api.method_signature) = "parent"; } // Gets information associated with a ProductSet. @@ -90,6 +91,7 @@ service ProductSearch { option (google.api.http) = { get: "/v1/{name=projects/*/locations/*/productSets/*}" }; + option (google.api.method_signature) = "name"; } // Makes changes to a ProductSet resource. @@ -105,17 +107,18 @@ service ProductSearch { patch: "/v1/{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. - rpc DeleteProductSet(DeleteProductSetRequest) - returns (google.protobuf.Empty) { + rpc DeleteProductSet(DeleteProductSetRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/productSets/*}" }; + option (google.api.method_signature) = "name"; } // Creates and returns a new product resource. @@ -131,6 +134,7 @@ service ProductSearch { post: "/v1/{parent=projects/*/locations/*}/products" body: "product" }; + option (google.api.method_signature) = "parent,product,product_id"; } // Lists products in an unspecified order. @@ -142,6 +146,7 @@ service ProductSearch { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*}/products" }; + option (google.api.method_signature) = "parent"; } // Gets information associated with a Product. @@ -153,6 +158,7 @@ service ProductSearch { option (google.api.http) = { get: "/v1/{name=projects/*/locations/*/products/*}" }; + option (google.api.method_signature) = "name"; } // Makes changes to a Product resource. @@ -175,6 +181,7 @@ service ProductSearch { patch: "/v1/{product.name=projects/*/locations/*/products/*}" body: "product" }; + option (google.api.method_signature) = "product,update_mask"; } // Permanently deletes a product and its reference images. @@ -186,6 +193,7 @@ service ProductSearch { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/products/*}" }; + option (google.api.method_signature) = "name"; } // Creates and returns a new ReferenceImage resource. @@ -207,12 +215,12 @@ service ProductSearch { // * Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing // compatible with the parent product's product_category is detected. // * Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. - rpc CreateReferenceImage(CreateReferenceImageRequest) - returns (ReferenceImage) { + rpc CreateReferenceImage(CreateReferenceImageRequest) returns (ReferenceImage) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*/products/*}/referenceImages" body: "reference_image" }; + option (google.api.method_signature) = "parent,reference_image,reference_image_id"; } // Permanently deletes a reference image. @@ -222,11 +230,11 @@ service ProductSearch { // caches are refreshed. // // The actual image files are not deleted from Google Cloud Storage. - rpc DeleteReferenceImage(DeleteReferenceImageRequest) - returns (google.protobuf.Empty) { + rpc DeleteReferenceImage(DeleteReferenceImageRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/products/*/referenceImages/*}" }; + option (google.api.method_signature) = "name"; } // Lists reference images. @@ -236,11 +244,11 @@ service ProductSearch { // * Returns NOT_FOUND if the parent product does not exist. // * Returns INVALID_ARGUMENT if the page_size is greater than 100, or less // than 1. - rpc ListReferenceImages(ListReferenceImagesRequest) - returns (ListReferenceImagesResponse) { + rpc ListReferenceImages(ListReferenceImagesRequest) returns (ListReferenceImagesResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*/products/*}/referenceImages" }; + option (google.api.method_signature) = "parent"; } // Gets information associated with a ReferenceImage. @@ -262,21 +270,21 @@ service ProductSearch { // Possible errors: // // * Returns NOT_FOUND if the Product or the ProductSet doesn't exist. - rpc AddProductToProductSet(AddProductToProductSetRequest) - returns (google.protobuf.Empty) { + rpc AddProductToProductSet(AddProductToProductSetRequest) returns (google.protobuf.Empty) { option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/productSets/*}:addProduct" body: "*" }; + option (google.api.method_signature) = "name,product"; } // Removes a Product from the specified ProductSet. - rpc RemoveProductFromProductSet(RemoveProductFromProductSetRequest) - returns (google.protobuf.Empty) { + rpc RemoveProductFromProductSet(RemoveProductFromProductSetRequest) returns (google.protobuf.Empty) { option (google.api.http) = { post: "/v1/{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 @@ -286,30 +294,34 @@ service ProductSearch { // Possible errors: // // * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. - rpc ListProductsInProductSet(ListProductsInProductSetRequest) - returns (ListProductsInProductSetResponse) { + rpc ListProductsInProductSet(ListProductsInProductSetRequest) returns (ListProductsInProductSetResponse) { option (google.api.http) = { get: "/v1/{name=projects/*/locations/*/productSets/*}/products" }; + option (google.api.method_signature) = "name"; } // Asynchronous API that imports a list of reference images to specified // product sets based on a list of image information. // - // The [google.longrunning.Operation][google.longrunning.Operation] API can be - // used to keep track of the progress and results of the request. + // 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) // `Operation.response` contains `ImportProductSetsResponse`. (results) // // The input source of this method is a csv file on Google Cloud Storage. // For the format of the csv file please see // [ImportProductSetsGcsSource.csv_file_uri][google.cloud.vision.v1.ImportProductSetsGcsSource.csv_file_uri]. - rpc ImportProductSets(ImportProductSetsRequest) - returns (google.longrunning.Operation) { + rpc ImportProductSets(ImportProductSetsRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{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 @@ -333,20 +345,29 @@ service ProductSearch { // 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. + // 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) { + rpc PurgeProducts(PurgeProductsRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{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 @@ -374,13 +395,11 @@ message Product { // characters long. string description = 3; - // The category for the product identified by the reference image. This should + // Immutable. 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; + 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. @@ -402,6 +421,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: @@ -420,18 +444,23 @@ 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: @@ -441,34 +470,37 @@ 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 @@ -479,11 +511,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; @@ -504,18 +541,23 @@ 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. @@ -527,22 +569,32 @@ 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 @@ -553,10 +605,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; @@ -577,17 +634,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. @@ -598,24 +660,34 @@ 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; - - // The reference image to create. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vision.googleapis.com/Product" + } + ]; + + // 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 @@ -626,11 +698,16 @@ 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; @@ -656,61 +733,96 @@ 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; @@ -757,17 +869,15 @@ message ImportProductSetsGcsSource { // `product-display-name` column refers to // [display_name][google.cloud.vision.v1.Product.display_name], the // `product-category` column refers to - // [product_category][google.cloud.vision.v1.Product.product_category], and - // the `labels` column refers to - // [product_labels][google.cloud.vision.v1.Product.product_labels]. + // [product_category][google.cloud.vision.v1.Product.product_category], and the + // `labels` column refers to [product_labels][google.cloud.vision.v1.Product.product_labels]. // // The `image-id` column is optional but must be unique if provided. If it is // empty, the system will automatically assign a unique id to the image. // // The `product-display-name` column is optional. If it is empty, the system - // sets the [display_name][google.cloud.vision.v1.Product.display_name] field - // for the product to a space (" "). You can update the `display_name` later - // by using the API. + // sets the [display_name][google.cloud.vision.v1.Product.display_name] field for the product to a + // space (" "). You can update the `display_name` later by using the API. // // If a `Product` with the specified `product-id` already exists, then the // system ignores the `product-display-name`, `product-category`, and `labels` @@ -810,22 +920,25 @@ 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. // // This message is returned by the -// [google.longrunning.Operations.GetOperation][google.longrunning.Operations.GetOperation] -// method in the returned -// [google.longrunning.Operation.response][google.longrunning.Operation.response] -// field. +// [google.longrunning.Operations.GetOperation][google.longrunning.Operations.GetOperation] method in the returned +// [google.longrunning.Operation.response][google.longrunning.Operation.response] field. message ImportProductSetsResponse { // The list of reference_images that are imported successfully. repeated ReferenceImage reference_images = 1; @@ -872,8 +985,7 @@ message BatchOperationMetadata { google.protobuf.Timestamp submit_time = 2; // The time when the batch request is finished and - // [google.longrunning.Operation.done][google.longrunning.Operation.done] is - // set to true. + // [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true. google.protobuf.Timestamp end_time = 3; } @@ -897,10 +1009,15 @@ message PurgeProductsRequest { bool delete_orphan_products = 3; } - // The project and location in which the Products should be deleted. + // Required. The project and location in which the Products should be deleted. // // 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 default value is false. Override this value to true to actually perform // the purge. diff --git a/google-api-grpc/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/text_annotation.proto b/google-api-grpc/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/text_annotation.proto index 09459b90e69d..97f9c8fa9c2e 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/text_annotation.proto +++ b/google-api-grpc/proto-google-cloud-vision-v1/src/main/proto/google/cloud/vision/v1/text_annotation.proto @@ -17,8 +17,8 @@ syntax = "proto3"; package google.cloud.vision.v1; -import "google/api/annotations.proto"; import "google/cloud/vision/v1/geometry.proto"; +import "google/api/annotations.proto"; option cc_enable_arenas = true; option go_package = "google.golang.org/genproto/googleapis/cloud/vision/v1;vision"; @@ -32,9 +32,8 @@ option objc_class_prefix = "GCVN"; // TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol // Each structural component, starting from Page, may further have their own // properties. Properties describe detected languages, breaks etc.. Please refer -// to the -// [TextAnnotation.TextProperty][google.cloud.vision.v1.TextAnnotation.TextProperty] -// message definition below for more detail. +// to the [TextAnnotation.TextProperty][google.cloud.vision.v1.TextAnnotation.TextProperty] message definition below for more +// detail. message TextAnnotation { // Detected language for a structural component. message DetectedLanguage { diff --git a/google-cloud-clients/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorClient.java b/google-cloud-clients/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorClient.java index c68d2be0f886..151c8943ed6f 100644 --- a/google-cloud-clients/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorClient.java +++ b/google-cloud-clients/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorClient.java @@ -176,7 +176,7 @@ public final OperationsClient getOperationsClient() { * } * * - * @param requests Individual image annotation requests for this batch. + * @param requests Required. Individual image annotation requests for this batch. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchAnnotateImagesResponse batchAnnotateImages( @@ -251,7 +251,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 */ @@ -339,7 +339,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 */ @@ -475,7 +475,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-clients/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchClient.java b/google-cloud-clients/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchClient.java index f26efc6d3bb9..91083b46050a 100644 --- a/google-cloud-clients/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchClient.java +++ b/google-cloud-clients/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchClient.java @@ -403,9 +403,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 @@ -444,9 +444,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 @@ -543,7 +543,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 */ @@ -574,7 +574,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 */ @@ -694,7 +694,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 */ @@ -722,7 +722,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 */ @@ -805,7 +805,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`. @@ -894,7 +894,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 */ @@ -921,7 +921,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 */ @@ -1003,9 +1003,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 @@ -1044,9 +1044,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 @@ -1144,7 +1144,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 */ @@ -1175,7 +1175,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 */ @@ -1294,7 +1294,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 */ @@ -1322,7 +1322,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 */ @@ -1411,8 +1411,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`. @@ -1511,7 +1511,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 */ @@ -1539,7 +1539,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 */ @@ -1633,10 +1633,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 @@ -1686,10 +1686,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 @@ -1808,7 +1808,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 @@ -1840,7 +1840,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 @@ -1927,7 +1927,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 */ @@ -1959,7 +1959,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 */ @@ -2084,7 +2084,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 @@ -2115,7 +2115,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 @@ -2200,9 +2200,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 */ @@ -2237,9 +2237,9 @@ public final void addProductToProductSet(ProductSetName name, ProductName 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 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 */ @@ -2328,9 +2328,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 */ @@ -2358,9 +2358,9 @@ public final void removeProductFromProductSet(ProductSetName name, ProductName p * } * * - * @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 */ @@ -2441,7 +2441,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 */ @@ -2473,7 +2473,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 */ @@ -2605,9 +2605,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( @@ -2647,9 +2647,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( @@ -2805,7 +2805,7 @@ public final UnaryCallable importProductSet * } * * - * @param parent The project and location in which the Products should be deleted. + * @param parent Required. The project and location in which the Products should be deleted. *

Format is `projects/PROJECT_ID/locations/LOC_ID`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -2855,7 +2855,7 @@ public final OperationFuture purgeProductsAsync( * } * * - * @param parent The project and location in which the Products should be deleted. + * @param parent Required. The project and location in which the Products should be deleted. *

Format is `projects/PROJECT_ID/locations/LOC_ID`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ diff --git a/google-cloud-clients/google-cloud-vision/synth.metadata b/google-cloud-clients/google-cloud-vision/synth.metadata index 1a43d0fc3453..7c87dad98108 100644 --- a/google-cloud-clients/google-cloud-vision/synth.metadata +++ b/google-cloud-clients/google-cloud-vision/synth.metadata @@ -1,19 +1,18 @@ { - "updateTime": "2019-09-13T08:00:44.505635Z", + "updateTime": "2019-09-19T08:05:36.428891Z", "sources": [ { "generator": { "name": "artman", - "version": "0.36.2", - "dockerImage": "googleapis/artman@sha256:0e6f3a668cd68afc768ecbe08817cf6e56a0e64fcbdb1c58c3b97492d12418a1" + "version": "0.36.3", + "dockerImage": "googleapis/artman@sha256:66ca01f27ef7dc50fbfb7743b67028115a6a8acf43b2d82f9fc826de008adac4" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "dc88acb2ced136067d3ed2356b6a87ca7f017a96", - "internalRef": "268735517" + "sha": "23f6c4d8d49ef3f1aaa45768869d8616efe4a307" } } ],