From e8d00a55c0fa2e9c4f742c8443d51bfccfad3ee0 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Wed, 24 Jun 2020 17:47:45 -0700 Subject: [PATCH 01/25] Integrate Python GAPIC Microgenerator in googleapis. This PR uses using documentai as an example. Depends on https://github.com/googleapis/gapic-generator-python/pull/402 PiperOrigin-RevId: 309824146 Source-Author: Google APIs Source-Date: Mon May 4 15:06:44 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: e0f9d9e1f9de890db765be46f45ca8490723e3eb Source-Link: https://github.com/googleapis/googleapis/commit/e0f9d9e1f9de890db765be46f45ca8490723e3eb --- google/cloud/vision_v1/gapic/enums.py | 6 +- .../vision_v1/gapic/image_annotator_client.py | 11 +- .../vision_v1/gapic/product_search_client.py | 114 +-- .../image_annotator_grpc_transport.py | 11 +- .../product_search_grpc_transport.py | 68 +- google/cloud/vision_v1/proto/geometry_pb2.py | 63 +- .../vision_v1/proto/image_annotator_pb2.py | 664 +++++++------ .../vision_v1/proto/product_search_pb2.py | 119 +-- .../proto/product_search_service_pb2.py | 767 ++++++++------- .../vision_v1/proto/text_annotation_pb2.py | 190 ++-- .../vision_v1/proto/web_detection_pb2.py | 101 +- google/cloud/vision_v1p1beta1/gapic/enums.py | 2 +- .../vision_v1p1beta1/proto/geometry_pb2.py | 52 +- .../proto/image_annotator_pb2.py | 371 +++---- .../proto/text_annotation_pb2.py | 192 ++-- .../proto/web_detection_pb2.py | 99 +- google/cloud/vision_v1p2beta1/gapic/enums.py | 6 +- .../vision_v1p2beta1/proto/geometry_pb2.py | 64 +- .../proto/image_annotator_pb2.py | 532 +++++----- .../proto/text_annotation_pb2.py | 190 ++-- .../proto/web_detection_pb2.py | 99 +- google/cloud/vision_v1p3beta1/gapic/enums.py | 6 +- .../gapic/image_annotator_client.py | 15 +- .../gapic/image_annotator_client_config.py | 4 +- .../gapic/product_search_client.py | 905 +++++++++--------- .../gapic/product_search_client_config.py | 40 +- .../image_annotator_grpc_transport.py | 8 +- .../product_search_grpc_transport.py | 240 ++--- .../vision_v1p3beta1/proto/geometry_pb2.py | 77 +- .../proto/image_annotator_pb2.py | 552 ++++++----- .../proto/product_search_pb2.py | 91 +- .../proto/product_search_service_pb2.py | 755 +++++++-------- .../proto/text_annotation_pb2.py | 190 ++-- .../proto/web_detection_pb2.py | 99 +- google/cloud/vision_v1p4beta1/gapic/enums.py | 6 +- .../gapic/image_annotator_client.py | 11 +- .../gapic/product_search_client.py | 896 ++++++++--------- .../gapic/product_search_client_config.py | 40 +- .../image_annotator_grpc_transport.py | 11 +- .../product_search_grpc_transport.py | 214 ++--- .../cloud/vision_v1p4beta1/proto/face_pb2.py | 59 +- .../vision_v1p4beta1/proto/geometry_pb2.py | 64 +- .../proto/image_annotator_pb2.py | 644 +++++++------ .../proto/product_search_pb2.py | 119 +-- .../proto/product_search_service_pb2.py | 790 ++++++++------- .../proto/text_annotation_pb2.py | 190 ++-- .../proto/web_detection_pb2.py | 101 +- synth.metadata | 32 +- .../test_image_annotator_client_v1p3beta1.py | 14 +- .../test_product_search_client_v1p3beta1.py | 363 ++++--- .../test_product_search_client_v1p4beta1.py | 362 +++---- 51 files changed, 5461 insertions(+), 5158 deletions(-) diff --git a/google/cloud/vision_v1/gapic/enums.py b/google/cloud/vision_v1/gapic/enums.py index 80aa4fce..911d2e7c 100644 --- a/google/cloud/vision_v1/gapic/enums.py +++ b/google/cloud/vision_v1/gapic/enums.py @@ -181,9 +181,9 @@ class Type(enum.IntEnum): LANDMARK_DETECTION (int): Run landmark detection. LOGO_DETECTION (int): Run logo detection. LABEL_DETECTION (int): Run label detection. - TEXT_DETECTION (int): Run text detection / optical character recognition (OCR). Text detection - is optimized for areas of text within a larger image; if the image is a - document, use ``DOCUMENT_TEXT_DETECTION`` instead. + TEXT_DETECTION (int): Run text detection / optical character recognition (OCR). Text + detection is optimized for areas of text within a larger image; if the + image is a document, use ``DOCUMENT_TEXT_DETECTION`` instead. DOCUMENT_TEXT_DETECTION (int): Run dense text document OCR. Takes precedence when both ``DOCUMENT_TEXT_DETECTION`` and ``TEXT_DETECTION`` are present. SAFE_SEARCH_DETECTION (int): Run Safe Search to detect potentially unsafe diff --git a/google/cloud/vision_v1/gapic/image_annotator_client.py b/google/cloud/vision_v1/gapic/image_annotator_client.py index a8512a4d..9ba03fd5 100644 --- a/google/cloud/vision_v1/gapic/image_annotator_client.py +++ b/google/cloud/vision_v1/gapic/image_annotator_client.py @@ -381,7 +381,8 @@ def async_batch_annotate_images( metadata=None, ): """ - Run asynchronous image detection and annotation for a list of images. + Run asynchronous image detection and annotation for a list of + images. Progress and results can be retrieved through the ``google.longrunning.Operations`` interface. ``Operation.metadata`` @@ -500,10 +501,10 @@ def async_batch_annotate_files( metadata=None, ): """ - Run asynchronous image detection and annotation for a list of generic - files, such as PDF files, which may contain multiple pages and multiple - images per page. Progress and results can be retrieved through the - ``google.longrunning.Operations`` interface. ``Operation.metadata`` + Run asynchronous image detection and annotation for a list of + generic files, such as PDF files, which may contain multiple pages and + multiple images per page. Progress and results can be retrieved through + the ``google.longrunning.Operations`` interface. ``Operation.metadata`` contains ``OperationMetadata`` (metadata). ``Operation.response`` contains ``AsyncBatchAnnotateFilesResponse`` (results). diff --git a/google/cloud/vision_v1/gapic/product_search_client.py b/google/cloud/vision_v1/gapic/product_search_client.py index f2794d69..cbe53d62 100644 --- a/google/cloud/vision_v1/gapic/product_search_client.py +++ b/google/cloud/vision_v1/gapic/product_search_client.py @@ -49,8 +49,8 @@ class ProductSearchClient(object): """ - Manages Products and ProductSets of reference images for use in product - search. It uses the following resource model: + 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`` resources, named ``projects/*/locations/*/productSets/*``, which acts as a way to put @@ -259,7 +259,7 @@ def create_product_set( Possible errors: - - Returns INVALID\_ARGUMENT if display\_name is missing, or is longer + - Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. Example: @@ -282,9 +282,9 @@ def create_product_set( If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.vision_v1.types.ProductSet` - product_set_id (str): 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 + product_set_id (str): 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 character ``/``. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will @@ -349,7 +349,7 @@ def list_product_sets( Possible errors: - - Returns INVALID\_ARGUMENT if page\_size is greater than 100, or less + - Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. Example: @@ -458,7 +458,7 @@ def get_product_set( Possible errors: - - Returns NOT\_FOUND if the ProductSet does not exist. + - Returns NOT_FOUND if the ProductSet does not exist. Example: >>> from google.cloud import vision_v1 @@ -531,13 +531,13 @@ def update_product_set( metadata=None, ): """ - Makes changes to a ProductSet resource. Only display\_name can be + Makes changes to a ProductSet resource. Only display_name can be updated currently. Possible errors: - - Returns NOT\_FOUND if the ProductSet does not exist. - - Returns INVALID\_ARGUMENT if display\_name is present in update\_mask + - Returns NOT_FOUND if the ProductSet does not exist. + - Returns INVALID_ARGUMENT if display_name is present in update_mask but missing from the request or longer than 4096 characters. Example: @@ -555,9 +555,9 @@ def update_product_set( If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.vision_v1.types.ProductSet` - update_mask (Union[dict, ~google.cloud.vision_v1.types.FieldMask]): The ``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``. + update_mask (Union[dict, ~google.cloud.vision_v1.types.FieldMask]): The ``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``. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.vision_v1.types.FieldMask` @@ -697,11 +697,11 @@ def create_product( Possible errors: - - Returns INVALID\_ARGUMENT if display\_name is missing or longer than + - Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. - - Returns INVALID\_ARGUMENT if description is longer than 4096 + - Returns INVALID_ARGUMENT if description is longer than 4096 characters. - - Returns INVALID\_ARGUMENT if product\_category is missing or invalid. + - Returns INVALID_ARGUMENT if product_category is missing or invalid. Example: >>> from google.cloud import vision_v1 @@ -723,9 +723,9 @@ def create_product( If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.vision_v1.types.Product` - product_id (str): 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 + product_id (str): 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 ``/``. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will @@ -790,7 +790,7 @@ def list_products( Possible errors: - - Returns INVALID\_ARGUMENT if page\_size is greater than 100 or less + - Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. Example: @@ -900,7 +900,7 @@ def get_product( Possible errors: - - Returns NOT\_FOUND if the Product does not exist. + - Returns NOT_FOUND if the Product does not exist. Example: >>> from google.cloud import vision_v1 @@ -980,13 +980,13 @@ def update_product( Possible errors: - - Returns NOT\_FOUND if the Product does not exist. - - Returns INVALID\_ARGUMENT if display\_name is present in update\_mask + - Returns NOT_FOUND if the Product does not exist. + - Returns INVALID_ARGUMENT if display_name is present in update_mask but is missing from the request or longer than 4096 characters. - - Returns INVALID\_ARGUMENT if description is present in update\_mask - but is longer than 4096 characters. - - Returns INVALID\_ARGUMENT if product\_category is present in - update\_mask. + - Returns INVALID_ARGUMENT if description is present in update_mask but + is longer than 4096 characters. + - Returns INVALID_ARGUMENT if product_category is present in + update_mask. Example: >>> from google.cloud import vision_v1 @@ -1004,9 +1004,10 @@ def update_product( If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.vision_v1.types.Product` - update_mask (Union[dict, ~google.cloud.vision_v1.types.FieldMask]): The ``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``. + update_mask (Union[dict, ~google.cloud.vision_v1.types.FieldMask]): The ``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``. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.vision_v1.types.FieldMask` @@ -1146,7 +1147,7 @@ def create_reference_image( The ``bounding_poly`` field is optional. If ``bounding_poly`` is not specified, the system will try to detect regions of interest in the - image that are compatible with the product\_category on the parent + image that are compatible with the product_category on the parent product. If it is specified, detection is ALWAYS skipped. The system converts polygons into non-rotated rectangles. @@ -1155,13 +1156,13 @@ def create_reference_image( Possible errors: - - Returns INVALID\_ARGUMENT if the image\_uri is missing or longer than + - Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. - - Returns INVALID\_ARGUMENT if the product does not exist. - - Returns INVALID\_ARGUMENT if bounding\_poly is not provided, and - nothing compatible with the parent product's product\_category is + - Returns INVALID_ARGUMENT if the product does not exist. + - 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 + - Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. Example: @@ -1177,8 +1178,8 @@ def create_reference_image( >>> response = client.create_reference_image(parent, reference_image) Args: - parent (str): Required. Resource name of the product in which to create the reference - image. + parent (str): Required. Resource name of the product in which to create the + reference image. Format is ``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID``. reference_image (Union[dict, ~google.cloud.vision_v1.types.ReferenceImage]): Required. The reference image to create. @@ -1186,10 +1187,10 @@ def create_reference_image( If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.vision_v1.types.ReferenceImage` - reference_image_id (str): 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 contain the character ``/``. + reference_image_id (str): 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 contain the character ``/``. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -1331,8 +1332,8 @@ def list_reference_images( Possible errors: - - Returns NOT\_FOUND if the parent product does not exist. - - Returns INVALID\_ARGUMENT if the page\_size is greater than 100, or + - 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. Example: @@ -1357,7 +1358,8 @@ def list_reference_images( ... pass Args: - parent (str): Required. Resource name of the product containing the reference images. + parent (str): Required. Resource name of the product containing the reference + images. Format is ``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID``. page_size (int): The maximum number of resources contained in the @@ -1441,7 +1443,7 @@ def get_reference_image( Possible errors: - - Returns NOT\_FOUND if the specified image does not exist. + - Returns NOT_FOUND if the specified image does not exist. Example: >>> from google.cloud import vision_v1 @@ -1515,14 +1517,14 @@ def add_product_to_product_set( metadata=None, ): """ - Adds a Product to the specified ProductSet. If the Product is already - present, no change is made. + Adds a Product to the specified ProductSet. If the Product is + already present, no change is made. One Product can be added to at most 100 ProductSets. Possible errors: - - Returns NOT\_FOUND if the Product or the ProductSet doesn't exist. + - Returns NOT_FOUND if the Product or the ProductSet doesn't exist. Example: >>> from google.cloud import vision_v1 @@ -1684,7 +1686,7 @@ def list_products_in_product_set( Possible errors: - - Returns INVALID\_ARGUMENT if page\_size is greater than 100 or less + - Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. Example: @@ -1793,8 +1795,8 @@ def import_product_sets( metadata=None, ): """ - Asynchronous API that imports a list of reference images to specified - product sets based on a list of image information. + Asynchronous API that imports a list of reference images to + specified product sets based on a list of image information. The ``google.longrunning.Operation`` API can be used to keep track of the progress and results of the request. ``Operation.metadata`` contains @@ -1901,8 +1903,8 @@ def purge_products( metadata=None, ): """ - Asynchronous API to delete all Products in a ProductSet or all Products - that are in no ProductSet. + Asynchronous API to delete all Products in a ProductSet or all + Products that are in no ProductSet. If a Product is a member of the specified ProductSet in addition to other ProductSets, the Product will still be deleted. @@ -1953,7 +1955,7 @@ def purge_products( If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.vision_v1.types.ProductSetPurgeConfig` - delete_orphan_products (bool): If delete\_orphan\_products is true, all Products that are not in any + delete_orphan_products (bool): If delete_orphan_products is true, all Products that are not in any ProductSet will be deleted. force (bool): The default value is false. Override this value to true to actually perform the purge. diff --git a/google/cloud/vision_v1/gapic/transports/image_annotator_grpc_transport.py b/google/cloud/vision_v1/gapic/transports/image_annotator_grpc_transport.py index 5c6f0de4..cb0029c1 100644 --- a/google/cloud/vision_v1/gapic/transports/image_annotator_grpc_transport.py +++ b/google/cloud/vision_v1/gapic/transports/image_annotator_grpc_transport.py @@ -154,7 +154,8 @@ def batch_annotate_files(self): def async_batch_annotate_images(self): """Return the gRPC stub for :meth:`ImageAnnotatorClient.async_batch_annotate_images`. - Run asynchronous image detection and annotation for a list of images. + Run asynchronous image detection and annotation for a list of + images. Progress and results can be retrieved through the ``google.longrunning.Operations`` interface. ``Operation.metadata`` @@ -176,10 +177,10 @@ def async_batch_annotate_images(self): def async_batch_annotate_files(self): """Return the gRPC stub for :meth:`ImageAnnotatorClient.async_batch_annotate_files`. - Run asynchronous image detection and annotation for a list of generic - files, such as PDF files, which may contain multiple pages and multiple - images per page. Progress and results can be retrieved through the - ``google.longrunning.Operations`` interface. ``Operation.metadata`` + Run asynchronous image detection and annotation for a list of + generic files, such as PDF files, which may contain multiple pages and + multiple images per page. Progress and results can be retrieved through + the ``google.longrunning.Operations`` interface. ``Operation.metadata`` contains ``OperationMetadata`` (metadata). ``Operation.response`` contains ``AsyncBatchAnnotateFilesResponse`` (results). diff --git a/google/cloud/vision_v1/gapic/transports/product_search_grpc_transport.py b/google/cloud/vision_v1/gapic/transports/product_search_grpc_transport.py index 61324c3c..8d1c957b 100644 --- a/google/cloud/vision_v1/gapic/transports/product_search_grpc_transport.py +++ b/google/cloud/vision_v1/gapic/transports/product_search_grpc_transport.py @@ -128,7 +128,7 @@ def create_product_set(self): Possible errors: - - Returns INVALID\_ARGUMENT if display\_name is missing, or is longer + - Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. Returns: @@ -146,7 +146,7 @@ def list_product_sets(self): Possible errors: - - Returns INVALID\_ARGUMENT if page\_size is greater than 100, or less + - Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. Returns: @@ -164,7 +164,7 @@ def get_product_set(self): Possible errors: - - Returns NOT\_FOUND if the ProductSet does not exist. + - Returns NOT_FOUND if the ProductSet does not exist. Returns: Callable: A callable which accepts the appropriate @@ -177,13 +177,13 @@ def get_product_set(self): def update_product_set(self): """Return the gRPC stub for :meth:`ProductSearchClient.update_product_set`. - Makes changes to a ProductSet resource. Only display\_name can be + Makes changes to a ProductSet resource. Only display_name can be updated currently. Possible errors: - - Returns NOT\_FOUND if the ProductSet does not exist. - - Returns INVALID\_ARGUMENT if display\_name is present in update\_mask + - Returns NOT_FOUND if the ProductSet does not exist. + - Returns INVALID_ARGUMENT if display_name is present in update_mask but missing from the request or longer than 4096 characters. Returns: @@ -217,11 +217,11 @@ def create_product(self): Possible errors: - - Returns INVALID\_ARGUMENT if display\_name is missing or longer than + - Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. - - Returns INVALID\_ARGUMENT if description is longer than 4096 + - Returns INVALID_ARGUMENT if description is longer than 4096 characters. - - Returns INVALID\_ARGUMENT if product\_category is missing or invalid. + - Returns INVALID_ARGUMENT if product_category is missing or invalid. Returns: Callable: A callable which accepts the appropriate @@ -238,7 +238,7 @@ def list_products(self): Possible errors: - - Returns INVALID\_ARGUMENT if page\_size is greater than 100 or less + - Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. Returns: @@ -256,7 +256,7 @@ def get_product(self): Possible errors: - - Returns NOT\_FOUND if the Product does not exist. + - Returns NOT_FOUND if the Product does not exist. Returns: Callable: A callable which accepts the appropriate @@ -277,13 +277,13 @@ def update_product(self): Possible errors: - - Returns NOT\_FOUND if the Product does not exist. - - Returns INVALID\_ARGUMENT if display\_name is present in update\_mask + - Returns NOT_FOUND if the Product does not exist. + - Returns INVALID_ARGUMENT if display_name is present in update_mask but is missing from the request or longer than 4096 characters. - - Returns INVALID\_ARGUMENT if description is present in update\_mask - but is longer than 4096 characters. - - Returns INVALID\_ARGUMENT if product\_category is present in - update\_mask. + - Returns INVALID_ARGUMENT if description is present in update_mask but + is longer than 4096 characters. + - Returns INVALID_ARGUMENT if product_category is present in + update_mask. Returns: Callable: A callable which accepts the appropriate @@ -317,7 +317,7 @@ def create_reference_image(self): The ``bounding_poly`` field is optional. If ``bounding_poly`` is not specified, the system will try to detect regions of interest in the - image that are compatible with the product\_category on the parent + image that are compatible with the product_category on the parent product. If it is specified, detection is ALWAYS skipped. The system converts polygons into non-rotated rectangles. @@ -326,13 +326,13 @@ def create_reference_image(self): Possible errors: - - Returns INVALID\_ARGUMENT if the image\_uri is missing or longer than + - Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. - - Returns INVALID\_ARGUMENT if the product does not exist. - - Returns INVALID\_ARGUMENT if bounding\_poly is not provided, and - nothing compatible with the parent product's product\_category is + - Returns INVALID_ARGUMENT if the product does not exist. + - 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 + - Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. Returns: @@ -369,8 +369,8 @@ def list_reference_images(self): Possible errors: - - Returns NOT\_FOUND if the parent product does not exist. - - Returns INVALID\_ARGUMENT if the page\_size is greater than 100, or + - 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. Returns: @@ -388,7 +388,7 @@ def get_reference_image(self): Possible errors: - - Returns NOT\_FOUND if the specified image does not exist. + - Returns NOT_FOUND if the specified image does not exist. Returns: Callable: A callable which accepts the appropriate @@ -401,14 +401,14 @@ def get_reference_image(self): def add_product_to_product_set(self): """Return the gRPC stub for :meth:`ProductSearchClient.add_product_to_product_set`. - Adds a Product to the specified ProductSet. If the Product is already - present, no change is made. + Adds a Product to the specified ProductSet. If the Product is + already present, no change is made. One Product can be added to at most 100 ProductSets. Possible errors: - - Returns NOT\_FOUND if the Product or the ProductSet doesn't exist. + - Returns NOT_FOUND if the Product or the ProductSet doesn't exist. Returns: Callable: A callable which accepts the appropriate @@ -440,7 +440,7 @@ def list_products_in_product_set(self): Possible errors: - - Returns INVALID\_ARGUMENT if page\_size is greater than 100 or less + - Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. Returns: @@ -454,8 +454,8 @@ def list_products_in_product_set(self): def import_product_sets(self): """Return the gRPC stub for :meth:`ProductSearchClient.import_product_sets`. - Asynchronous API that imports a list of reference images to specified - product sets based on a list of image information. + Asynchronous API that imports a list of reference images to + specified product sets based on a list of image information. The ``google.longrunning.Operation`` API can be used to keep track of the progress and results of the request. ``Operation.metadata`` contains @@ -477,8 +477,8 @@ def import_product_sets(self): def purge_products(self): """Return the gRPC stub for :meth:`ProductSearchClient.purge_products`. - Asynchronous API to delete all Products in a ProductSet or all Products - that are in no ProductSet. + Asynchronous API to delete all Products in a ProductSet or all + Products that are in no ProductSet. If a Product is a member of the specified ProductSet in addition to other ProductSets, the Product will still be deleted. diff --git a/google/cloud/vision_v1/proto/geometry_pb2.py b/google/cloud/vision_v1/proto/geometry_pb2.py index 58881e7f..83897b74 100644 --- a/google/cloud/vision_v1/proto/geometry_pb2.py +++ b/google/cloud/vision_v1/proto/geometry_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1/proto/geometry.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -22,12 +19,8 @@ name="google/cloud/vision_v1/proto/geometry.proto", package="google.cloud.vision.v1", syntax="proto3", - serialized_options=_b( - "\n\032com.google.cloud.vision.v1B\rGeometryProtoP\001Z\n\x10\x66\x64_bounding_poly\x18\x02 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly\x12\x42\n\tlandmarks\x18\x03 \x03(\x0b\x32/.google.cloud.vision.v1.FaceAnnotation.Landmark\x12\x12\n\nroll_angle\x18\x04 \x01(\x02\x12\x11\n\tpan_angle\x18\x05 \x01(\x02\x12\x12\n\ntilt_angle\x18\x06 \x01(\x02\x12\x1c\n\x14\x64\x65tection_confidence\x18\x07 \x01(\x02\x12\x1e\n\x16landmarking_confidence\x18\x08 \x01(\x02\x12:\n\x0ejoy_likelihood\x18\t \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x12=\n\x11sorrow_likelihood\x18\n \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x12<\n\x10\x61nger_likelihood\x18\x0b \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x12?\n\x13surprise_likelihood\x18\x0c \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x12\x44\n\x18under_exposed_likelihood\x18\r \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x12>\n\x12\x62lurred_likelihood\x18\x0e \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x12?\n\x13headwear_likelihood\x18\x0f \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x1a\xb9\x07\n\x08Landmark\x12\x42\n\x04type\x18\x03 \x01(\x0e\x32\x34.google.cloud.vision.v1.FaceAnnotation.Landmark.Type\x12\x32\n\x08position\x18\x04 \x01(\x0b\x32 .google.cloud.vision.v1.Position"\xb4\x06\n\x04Type\x12\x14\n\x10UNKNOWN_LANDMARK\x10\x00\x12\x0c\n\x08LEFT_EYE\x10\x01\x12\r\n\tRIGHT_EYE\x10\x02\x12\x18\n\x14LEFT_OF_LEFT_EYEBROW\x10\x03\x12\x19\n\x15RIGHT_OF_LEFT_EYEBROW\x10\x04\x12\x19\n\x15LEFT_OF_RIGHT_EYEBROW\x10\x05\x12\x1a\n\x16RIGHT_OF_RIGHT_EYEBROW\x10\x06\x12\x19\n\x15MIDPOINT_BETWEEN_EYES\x10\x07\x12\x0c\n\x08NOSE_TIP\x10\x08\x12\r\n\tUPPER_LIP\x10\t\x12\r\n\tLOWER_LIP\x10\n\x12\x0e\n\nMOUTH_LEFT\x10\x0b\x12\x0f\n\x0bMOUTH_RIGHT\x10\x0c\x12\x10\n\x0cMOUTH_CENTER\x10\r\x12\x15\n\x11NOSE_BOTTOM_RIGHT\x10\x0e\x12\x14\n\x10NOSE_BOTTOM_LEFT\x10\x0f\x12\x16\n\x12NOSE_BOTTOM_CENTER\x10\x10\x12\x19\n\x15LEFT_EYE_TOP_BOUNDARY\x10\x11\x12\x19\n\x15LEFT_EYE_RIGHT_CORNER\x10\x12\x12\x1c\n\x18LEFT_EYE_BOTTOM_BOUNDARY\x10\x13\x12\x18\n\x14LEFT_EYE_LEFT_CORNER\x10\x14\x12\x1a\n\x16RIGHT_EYE_TOP_BOUNDARY\x10\x15\x12\x1a\n\x16RIGHT_EYE_RIGHT_CORNER\x10\x16\x12\x1d\n\x19RIGHT_EYE_BOTTOM_BOUNDARY\x10\x17\x12\x19\n\x15RIGHT_EYE_LEFT_CORNER\x10\x18\x12\x1f\n\x1bLEFT_EYEBROW_UPPER_MIDPOINT\x10\x19\x12 \n\x1cRIGHT_EYEBROW_UPPER_MIDPOINT\x10\x1a\x12\x14\n\x10LEFT_EAR_TRAGION\x10\x1b\x12\x15\n\x11RIGHT_EAR_TRAGION\x10\x1c\x12\x12\n\x0eLEFT_EYE_PUPIL\x10\x1d\x12\x13\n\x0fRIGHT_EYE_PUPIL\x10\x1e\x12\x15\n\x11\x46OREHEAD_GLABELLA\x10\x1f\x12\x11\n\rCHIN_GNATHION\x10 \x12\x14\n\x10\x43HIN_LEFT_GONION\x10!\x12\x15\n\x11\x43HIN_RIGHT_GONION\x10""4\n\x0cLocationInfo\x12$\n\x07lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng"=\n\x08Property\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x14\n\x0cuint64_value\x18\x03 \x01(\x04"\xab\x02\n\x10\x45ntityAnnotation\x12\x0b\n\x03mid\x18\x01 \x01(\t\x12\x0e\n\x06locale\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\r\n\x05score\x18\x04 \x01(\x02\x12\x16\n\nconfidence\x18\x05 \x01(\x02\x42\x02\x18\x01\x12\x12\n\ntopicality\x18\x06 \x01(\x02\x12;\n\rbounding_poly\x18\x07 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly\x12\x37\n\tlocations\x18\x08 \x03(\x0b\x32$.google.cloud.vision.v1.LocationInfo\x12\x34\n\nproperties\x18\t \x03(\x0b\x32 .google.cloud.vision.v1.Property"\x99\x01\n\x19LocalizedObjectAnnotation\x12\x0b\n\x03mid\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\r\n\x05score\x18\x04 \x01(\x02\x12;\n\rbounding_poly\x18\x05 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly"\xb8\x03\n\x14SafeSearchAnnotation\x12\x31\n\x05\x61\x64ult\x18\x01 \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x12\x31\n\x05spoof\x18\x02 \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x12\x33\n\x07medical\x18\x03 \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x12\x34\n\x08violence\x18\x04 \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x12\x30\n\x04racy\x18\t \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x12\x18\n\x10\x61\x64ult_confidence\x18\x10 \x01(\x02\x12\x18\n\x10spoof_confidence\x18\x12 \x01(\x02\x12\x1a\n\x12medical_confidence\x18\x14 \x01(\x02\x12\x1b\n\x13violence_confidence\x18\x16 \x01(\x02\x12\x17\n\x0fracy_confidence\x18\x18 \x01(\x02\x12\x17\n\x0fnsfw_confidence\x18\x1a \x01(\x02"a\n\x0bLatLongRect\x12(\n\x0bmin_lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng\x12(\n\x0bmax_lat_lng\x18\x02 \x01(\x0b\x32\x13.google.type.LatLng"U\n\tColorInfo\x12!\n\x05\x63olor\x18\x01 \x01(\x0b\x32\x12.google.type.Color\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x16\n\x0epixel_fraction\x18\x03 \x01(\x02"M\n\x18\x44ominantColorsAnnotation\x12\x31\n\x06\x63olors\x18\x01 \x03(\x0b\x32!.google.cloud.vision.v1.ColorInfo"\\\n\x0fImageProperties\x12I\n\x0f\x64ominant_colors\x18\x01 \x01(\x0b\x32\x30.google.cloud.vision.v1.DominantColorsAnnotation"x\n\x08\x43ropHint\x12;\n\rbounding_poly\x18\x01 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12\x1b\n\x13importance_fraction\x18\x03 \x01(\x02"K\n\x13\x43ropHintsAnnotation\x12\x34\n\ncrop_hints\x18\x01 \x03(\x0b\x32 .google.cloud.vision.v1.CropHint"(\n\x0f\x43ropHintsParams\x12\x15\n\raspect_ratios\x18\x01 \x03(\x02"1\n\x12WebDetectionParams\x12\x1b\n\x13include_geo_results\x18\x02 \x01(\x08"\xbc\x02\n\x0cImageContext\x12:\n\rlat_long_rect\x18\x01 \x01(\x0b\x32#.google.cloud.vision.v1.LatLongRect\x12\x16\n\x0elanguage_hints\x18\x02 \x03(\t\x12\x42\n\x11\x63rop_hints_params\x18\x04 \x01(\x0b\x32\'.google.cloud.vision.v1.CropHintsParams\x12J\n\x15product_search_params\x18\x05 \x01(\x0b\x32+.google.cloud.vision.v1.ProductSearchParams\x12H\n\x14web_detection_params\x18\x06 \x01(\x0b\x32*.google.cloud.vision.v1.WebDetectionParams"\xb4\x01\n\x14\x41nnotateImageRequest\x12,\n\x05image\x18\x01 \x01(\x0b\x32\x1d.google.cloud.vision.v1.Image\x12\x31\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32\x1f.google.cloud.vision.v1.Feature\x12;\n\rimage_context\x18\x03 \x01(\x0b\x32$.google.cloud.vision.v1.ImageContext":\n\x16ImageAnnotationContext\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x13\n\x0bpage_number\x18\x02 \x01(\x05"\xe4\x07\n\x15\x41nnotateImageResponse\x12@\n\x10\x66\x61\x63\x65_annotations\x18\x01 \x03(\x0b\x32&.google.cloud.vision.v1.FaceAnnotation\x12\x46\n\x14landmark_annotations\x18\x02 \x03(\x0b\x32(.google.cloud.vision.v1.EntityAnnotation\x12\x42\n\x10logo_annotations\x18\x03 \x03(\x0b\x32(.google.cloud.vision.v1.EntityAnnotation\x12\x43\n\x11label_annotations\x18\x04 \x03(\x0b\x32(.google.cloud.vision.v1.EntityAnnotation\x12W\n\x1clocalized_object_annotations\x18\x16 \x03(\x0b\x32\x31.google.cloud.vision.v1.LocalizedObjectAnnotation\x12\x42\n\x10text_annotations\x18\x05 \x03(\x0b\x32(.google.cloud.vision.v1.EntityAnnotation\x12\x44\n\x14\x66ull_text_annotation\x18\x0c \x01(\x0b\x32&.google.cloud.vision.v1.TextAnnotation\x12L\n\x16safe_search_annotation\x18\x06 \x01(\x0b\x32,.google.cloud.vision.v1.SafeSearchAnnotation\x12L\n\x1bimage_properties_annotation\x18\x08 \x01(\x0b\x32\'.google.cloud.vision.v1.ImageProperties\x12J\n\x15\x63rop_hints_annotation\x18\x0b \x01(\x0b\x32+.google.cloud.vision.v1.CropHintsAnnotation\x12;\n\rweb_detection\x18\r \x01(\x0b\x32$.google.cloud.vision.v1.WebDetection\x12L\n\x16product_search_results\x18\x0e \x01(\x0b\x32,.google.cloud.vision.v1.ProductSearchResults\x12!\n\x05\x65rror\x18\t \x01(\x0b\x32\x12.google.rpc.Status\x12?\n\x07\x63ontext\x18\x15 \x01(\x0b\x32..google.cloud.vision.v1.ImageAnnotationContext"q\n\x1a\x42\x61tchAnnotateImagesRequest\x12\x43\n\x08requests\x18\x01 \x03(\x0b\x32,.google.cloud.vision.v1.AnnotateImageRequestB\x03\xe0\x41\x02\x12\x0e\n\x06parent\x18\x04 \x01(\t"_\n\x1b\x42\x61tchAnnotateImagesResponse\x12@\n\tresponses\x18\x01 \x03(\x0b\x32-.google.cloud.vision.v1.AnnotateImageResponse"\xcf\x01\n\x13\x41nnotateFileRequest\x12\x39\n\x0cinput_config\x18\x01 \x01(\x0b\x32#.google.cloud.vision.v1.InputConfig\x12\x31\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32\x1f.google.cloud.vision.v1.Feature\x12;\n\rimage_context\x18\x03 \x01(\x0b\x32$.google.cloud.vision.v1.ImageContext\x12\r\n\x05pages\x18\x04 \x03(\x05"\xcb\x01\n\x14\x41nnotateFileResponse\x12\x39\n\x0cinput_config\x18\x01 \x01(\x0b\x32#.google.cloud.vision.v1.InputConfig\x12@\n\tresponses\x18\x02 \x03(\x0b\x32-.google.cloud.vision.v1.AnnotateImageResponse\x12\x13\n\x0btotal_pages\x18\x03 \x01(\x05\x12!\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x12.google.rpc.Status"o\n\x19\x42\x61tchAnnotateFilesRequest\x12\x42\n\x08requests\x18\x01 \x03(\x0b\x32+.google.cloud.vision.v1.AnnotateFileRequestB\x03\xe0\x41\x02\x12\x0e\n\x06parent\x18\x03 \x01(\t"]\n\x1a\x42\x61tchAnnotateFilesResponse\x12?\n\tresponses\x18\x01 \x03(\x0b\x32,.google.cloud.vision.v1.AnnotateFileResponse"\x82\x02\n\x18\x41syncAnnotateFileRequest\x12\x39\n\x0cinput_config\x18\x01 \x01(\x0b\x32#.google.cloud.vision.v1.InputConfig\x12\x31\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32\x1f.google.cloud.vision.v1.Feature\x12;\n\rimage_context\x18\x03 \x01(\x0b\x32$.google.cloud.vision.v1.ImageContext\x12;\n\routput_config\x18\x04 \x01(\x0b\x32$.google.cloud.vision.v1.OutputConfig"X\n\x19\x41syncAnnotateFileResponse\x12;\n\routput_config\x18\x01 \x01(\x0b\x32$.google.cloud.vision.v1.OutputConfig"\xb8\x01\n\x1f\x41syncBatchAnnotateImagesRequest\x12\x43\n\x08requests\x18\x01 \x03(\x0b\x32,.google.cloud.vision.v1.AnnotateImageRequestB\x03\xe0\x41\x02\x12@\n\routput_config\x18\x02 \x01(\x0b\x32$.google.cloud.vision.v1.OutputConfigB\x03\xe0\x41\x02\x12\x0e\n\x06parent\x18\x04 \x01(\t"_\n AsyncBatchAnnotateImagesResponse\x12;\n\routput_config\x18\x01 \x01(\x0b\x32$.google.cloud.vision.v1.OutputConfig"y\n\x1e\x41syncBatchAnnotateFilesRequest\x12G\n\x08requests\x18\x01 \x03(\x0b\x32\x30.google.cloud.vision.v1.AsyncAnnotateFileRequestB\x03\xe0\x41\x02\x12\x0e\n\x06parent\x18\x04 \x01(\t"g\n\x1f\x41syncBatchAnnotateFilesResponse\x12\x44\n\tresponses\x18\x01 \x03(\x0b\x32\x31.google.cloud.vision.v1.AsyncAnnotateFileResponse"h\n\x0bInputConfig\x12\x35\n\ngcs_source\x18\x01 \x01(\x0b\x32!.google.cloud.vision.v1.GcsSource\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\x0c\x12\x11\n\tmime_type\x18\x02 \x01(\t"c\n\x0cOutputConfig\x12?\n\x0fgcs_destination\x18\x01 \x01(\x0b\x32&.google.cloud.vision.v1.GcsDestination\x12\x12\n\nbatch_size\x18\x02 \x01(\x05"\x18\n\tGcsSource\x12\x0b\n\x03uri\x18\x01 \x01(\t"\x1d\n\x0eGcsDestination\x12\x0b\n\x03uri\x18\x01 \x01(\t"\x88\x02\n\x11OperationMetadata\x12>\n\x05state\x18\x01 \x01(\x0e\x32/.google.cloud.vision.v1.OperationMetadata.State\x12/\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"Q\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x43REATED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x08\n\x04\x44ONE\x10\x03\x12\r\n\tCANCELLED\x10\x04*e\n\nLikelihood\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x11\n\rVERY_UNLIKELY\x10\x01\x12\x0c\n\x08UNLIKELY\x10\x02\x12\x0c\n\x08POSSIBLE\x10\x03\x12\n\n\x06LIKELY\x10\x04\x12\x0f\n\x0bVERY_LIKELY\x10\x05\x32\xf5\n\n\x0eImageAnnotator\x12\x93\x02\n\x13\x42\x61tchAnnotateImages\x12\x32.google.cloud.vision.v1.BatchAnnotateImagesRequest\x1a\x33.google.cloud.vision.v1.BatchAnnotateImagesResponse"\x92\x01\x82\xd3\xe4\x93\x02\x80\x01"\x13/v1/images:annotate:\x01*Z8"3/v1/{parent=projects/*/locations/*}/images:annotate:\x01*Z,"\'/v1/{parent=projects/*}/images:annotate:\x01*\xda\x41\x08requests\x12\x8c\x02\n\x12\x42\x61tchAnnotateFiles\x12\x31.google.cloud.vision.v1.BatchAnnotateFilesRequest\x1a\x32.google.cloud.vision.v1.BatchAnnotateFilesResponse"\x8e\x01\x82\xd3\xe4\x93\x02}"\x12/v1/files:annotate:\x01*Z7"2/v1/{parent=projects/*/locations/*}/files:annotate:\x01*Z+"&/v1/{parent=projects/*}/files:annotate:\x01*\xda\x41\x08requests\x12\xeb\x02\n\x18\x41syncBatchAnnotateImages\x12\x37.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest\x1a\x1d.google.longrunning.Operation"\xf6\x01\x82\xd3\xe4\x93\x02\x9e\x01"\x1d/v1/images:asyncBatchAnnotate:\x01*ZB"=/v1/{parent=projects/*/locations/*}/images:asyncBatchAnnotate:\x01*Z6"1/v1/{parent=projects/*}/images:asyncBatchAnnotate:\x01*\xda\x41\x16requests,output_config\xca\x41\x35\n AsyncBatchAnnotateImagesResponse\x12\x11OperationMetadata\x12\xd7\x02\n\x17\x41syncBatchAnnotateFiles\x12\x36.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest\x1a\x1d.google.longrunning.Operation"\xe4\x01\x82\xd3\xe4\x93\x02\x9b\x01"\x1c/v1/files:asyncBatchAnnotate:\x01*ZA"\n\x10\x66\x64_bounding_poly\x18\x02 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly\x12\x42\n\tlandmarks\x18\x03 \x03(\x0b\x32/.google.cloud.vision.v1.FaceAnnotation.Landmark\x12\x12\n\nroll_angle\x18\x04 \x01(\x02\x12\x11\n\tpan_angle\x18\x05 \x01(\x02\x12\x12\n\ntilt_angle\x18\x06 \x01(\x02\x12\x1c\n\x14\x64\x65tection_confidence\x18\x07 \x01(\x02\x12\x1e\n\x16landmarking_confidence\x18\x08 \x01(\x02\x12:\n\x0ejoy_likelihood\x18\t \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x12=\n\x11sorrow_likelihood\x18\n \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x12<\n\x10\x61nger_likelihood\x18\x0b \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x12?\n\x13surprise_likelihood\x18\x0c \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x12\x44\n\x18under_exposed_likelihood\x18\r \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x12>\n\x12\x62lurred_likelihood\x18\x0e \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x12?\n\x13headwear_likelihood\x18\x0f \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x1a\xb9\x07\n\x08Landmark\x12\x42\n\x04type\x18\x03 \x01(\x0e\x32\x34.google.cloud.vision.v1.FaceAnnotation.Landmark.Type\x12\x32\n\x08position\x18\x04 \x01(\x0b\x32 .google.cloud.vision.v1.Position"\xb4\x06\n\x04Type\x12\x14\n\x10UNKNOWN_LANDMARK\x10\x00\x12\x0c\n\x08LEFT_EYE\x10\x01\x12\r\n\tRIGHT_EYE\x10\x02\x12\x18\n\x14LEFT_OF_LEFT_EYEBROW\x10\x03\x12\x19\n\x15RIGHT_OF_LEFT_EYEBROW\x10\x04\x12\x19\n\x15LEFT_OF_RIGHT_EYEBROW\x10\x05\x12\x1a\n\x16RIGHT_OF_RIGHT_EYEBROW\x10\x06\x12\x19\n\x15MIDPOINT_BETWEEN_EYES\x10\x07\x12\x0c\n\x08NOSE_TIP\x10\x08\x12\r\n\tUPPER_LIP\x10\t\x12\r\n\tLOWER_LIP\x10\n\x12\x0e\n\nMOUTH_LEFT\x10\x0b\x12\x0f\n\x0bMOUTH_RIGHT\x10\x0c\x12\x10\n\x0cMOUTH_CENTER\x10\r\x12\x15\n\x11NOSE_BOTTOM_RIGHT\x10\x0e\x12\x14\n\x10NOSE_BOTTOM_LEFT\x10\x0f\x12\x16\n\x12NOSE_BOTTOM_CENTER\x10\x10\x12\x19\n\x15LEFT_EYE_TOP_BOUNDARY\x10\x11\x12\x19\n\x15LEFT_EYE_RIGHT_CORNER\x10\x12\x12\x1c\n\x18LEFT_EYE_BOTTOM_BOUNDARY\x10\x13\x12\x18\n\x14LEFT_EYE_LEFT_CORNER\x10\x14\x12\x1a\n\x16RIGHT_EYE_TOP_BOUNDARY\x10\x15\x12\x1a\n\x16RIGHT_EYE_RIGHT_CORNER\x10\x16\x12\x1d\n\x19RIGHT_EYE_BOTTOM_BOUNDARY\x10\x17\x12\x19\n\x15RIGHT_EYE_LEFT_CORNER\x10\x18\x12\x1f\n\x1bLEFT_EYEBROW_UPPER_MIDPOINT\x10\x19\x12 \n\x1cRIGHT_EYEBROW_UPPER_MIDPOINT\x10\x1a\x12\x14\n\x10LEFT_EAR_TRAGION\x10\x1b\x12\x15\n\x11RIGHT_EAR_TRAGION\x10\x1c\x12\x12\n\x0eLEFT_EYE_PUPIL\x10\x1d\x12\x13\n\x0fRIGHT_EYE_PUPIL\x10\x1e\x12\x15\n\x11\x46OREHEAD_GLABELLA\x10\x1f\x12\x11\n\rCHIN_GNATHION\x10 \x12\x14\n\x10\x43HIN_LEFT_GONION\x10!\x12\x15\n\x11\x43HIN_RIGHT_GONION\x10""4\n\x0cLocationInfo\x12$\n\x07lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng"=\n\x08Property\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x14\n\x0cuint64_value\x18\x03 \x01(\x04"\xab\x02\n\x10\x45ntityAnnotation\x12\x0b\n\x03mid\x18\x01 \x01(\t\x12\x0e\n\x06locale\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\r\n\x05score\x18\x04 \x01(\x02\x12\x16\n\nconfidence\x18\x05 \x01(\x02\x42\x02\x18\x01\x12\x12\n\ntopicality\x18\x06 \x01(\x02\x12;\n\rbounding_poly\x18\x07 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly\x12\x37\n\tlocations\x18\x08 \x03(\x0b\x32$.google.cloud.vision.v1.LocationInfo\x12\x34\n\nproperties\x18\t \x03(\x0b\x32 .google.cloud.vision.v1.Property"\x99\x01\n\x19LocalizedObjectAnnotation\x12\x0b\n\x03mid\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\r\n\x05score\x18\x04 \x01(\x02\x12;\n\rbounding_poly\x18\x05 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly"\xb8\x03\n\x14SafeSearchAnnotation\x12\x31\n\x05\x61\x64ult\x18\x01 \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x12\x31\n\x05spoof\x18\x02 \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x12\x33\n\x07medical\x18\x03 \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x12\x34\n\x08violence\x18\x04 \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x12\x30\n\x04racy\x18\t \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x12\x18\n\x10\x61\x64ult_confidence\x18\x10 \x01(\x02\x12\x18\n\x10spoof_confidence\x18\x12 \x01(\x02\x12\x1a\n\x12medical_confidence\x18\x14 \x01(\x02\x12\x1b\n\x13violence_confidence\x18\x16 \x01(\x02\x12\x17\n\x0fracy_confidence\x18\x18 \x01(\x02\x12\x17\n\x0fnsfw_confidence\x18\x1a \x01(\x02"a\n\x0bLatLongRect\x12(\n\x0bmin_lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng\x12(\n\x0bmax_lat_lng\x18\x02 \x01(\x0b\x32\x13.google.type.LatLng"U\n\tColorInfo\x12!\n\x05\x63olor\x18\x01 \x01(\x0b\x32\x12.google.type.Color\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x16\n\x0epixel_fraction\x18\x03 \x01(\x02"M\n\x18\x44ominantColorsAnnotation\x12\x31\n\x06\x63olors\x18\x01 \x03(\x0b\x32!.google.cloud.vision.v1.ColorInfo"\\\n\x0fImageProperties\x12I\n\x0f\x64ominant_colors\x18\x01 \x01(\x0b\x32\x30.google.cloud.vision.v1.DominantColorsAnnotation"x\n\x08\x43ropHint\x12;\n\rbounding_poly\x18\x01 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12\x1b\n\x13importance_fraction\x18\x03 \x01(\x02"K\n\x13\x43ropHintsAnnotation\x12\x34\n\ncrop_hints\x18\x01 \x03(\x0b\x32 .google.cloud.vision.v1.CropHint"(\n\x0f\x43ropHintsParams\x12\x15\n\raspect_ratios\x18\x01 \x03(\x02"1\n\x12WebDetectionParams\x12\x1b\n\x13include_geo_results\x18\x02 \x01(\x08"\xbc\x02\n\x0cImageContext\x12:\n\rlat_long_rect\x18\x01 \x01(\x0b\x32#.google.cloud.vision.v1.LatLongRect\x12\x16\n\x0elanguage_hints\x18\x02 \x03(\t\x12\x42\n\x11\x63rop_hints_params\x18\x04 \x01(\x0b\x32\'.google.cloud.vision.v1.CropHintsParams\x12J\n\x15product_search_params\x18\x05 \x01(\x0b\x32+.google.cloud.vision.v1.ProductSearchParams\x12H\n\x14web_detection_params\x18\x06 \x01(\x0b\x32*.google.cloud.vision.v1.WebDetectionParams"\xb4\x01\n\x14\x41nnotateImageRequest\x12,\n\x05image\x18\x01 \x01(\x0b\x32\x1d.google.cloud.vision.v1.Image\x12\x31\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32\x1f.google.cloud.vision.v1.Feature\x12;\n\rimage_context\x18\x03 \x01(\x0b\x32$.google.cloud.vision.v1.ImageContext":\n\x16ImageAnnotationContext\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x13\n\x0bpage_number\x18\x02 \x01(\x05"\xe4\x07\n\x15\x41nnotateImageResponse\x12@\n\x10\x66\x61\x63\x65_annotations\x18\x01 \x03(\x0b\x32&.google.cloud.vision.v1.FaceAnnotation\x12\x46\n\x14landmark_annotations\x18\x02 \x03(\x0b\x32(.google.cloud.vision.v1.EntityAnnotation\x12\x42\n\x10logo_annotations\x18\x03 \x03(\x0b\x32(.google.cloud.vision.v1.EntityAnnotation\x12\x43\n\x11label_annotations\x18\x04 \x03(\x0b\x32(.google.cloud.vision.v1.EntityAnnotation\x12W\n\x1clocalized_object_annotations\x18\x16 \x03(\x0b\x32\x31.google.cloud.vision.v1.LocalizedObjectAnnotation\x12\x42\n\x10text_annotations\x18\x05 \x03(\x0b\x32(.google.cloud.vision.v1.EntityAnnotation\x12\x44\n\x14\x66ull_text_annotation\x18\x0c \x01(\x0b\x32&.google.cloud.vision.v1.TextAnnotation\x12L\n\x16safe_search_annotation\x18\x06 \x01(\x0b\x32,.google.cloud.vision.v1.SafeSearchAnnotation\x12L\n\x1bimage_properties_annotation\x18\x08 \x01(\x0b\x32\'.google.cloud.vision.v1.ImageProperties\x12J\n\x15\x63rop_hints_annotation\x18\x0b \x01(\x0b\x32+.google.cloud.vision.v1.CropHintsAnnotation\x12;\n\rweb_detection\x18\r \x01(\x0b\x32$.google.cloud.vision.v1.WebDetection\x12L\n\x16product_search_results\x18\x0e \x01(\x0b\x32,.google.cloud.vision.v1.ProductSearchResults\x12!\n\x05\x65rror\x18\t \x01(\x0b\x32\x12.google.rpc.Status\x12?\n\x07\x63ontext\x18\x15 \x01(\x0b\x32..google.cloud.vision.v1.ImageAnnotationContext"q\n\x1a\x42\x61tchAnnotateImagesRequest\x12\x43\n\x08requests\x18\x01 \x03(\x0b\x32,.google.cloud.vision.v1.AnnotateImageRequestB\x03\xe0\x41\x02\x12\x0e\n\x06parent\x18\x04 \x01(\t"_\n\x1b\x42\x61tchAnnotateImagesResponse\x12@\n\tresponses\x18\x01 \x03(\x0b\x32-.google.cloud.vision.v1.AnnotateImageResponse"\xcf\x01\n\x13\x41nnotateFileRequest\x12\x39\n\x0cinput_config\x18\x01 \x01(\x0b\x32#.google.cloud.vision.v1.InputConfig\x12\x31\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32\x1f.google.cloud.vision.v1.Feature\x12;\n\rimage_context\x18\x03 \x01(\x0b\x32$.google.cloud.vision.v1.ImageContext\x12\r\n\x05pages\x18\x04 \x03(\x05"\xcb\x01\n\x14\x41nnotateFileResponse\x12\x39\n\x0cinput_config\x18\x01 \x01(\x0b\x32#.google.cloud.vision.v1.InputConfig\x12@\n\tresponses\x18\x02 \x03(\x0b\x32-.google.cloud.vision.v1.AnnotateImageResponse\x12\x13\n\x0btotal_pages\x18\x03 \x01(\x05\x12!\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x12.google.rpc.Status"o\n\x19\x42\x61tchAnnotateFilesRequest\x12\x42\n\x08requests\x18\x01 \x03(\x0b\x32+.google.cloud.vision.v1.AnnotateFileRequestB\x03\xe0\x41\x02\x12\x0e\n\x06parent\x18\x03 \x01(\t"]\n\x1a\x42\x61tchAnnotateFilesResponse\x12?\n\tresponses\x18\x01 \x03(\x0b\x32,.google.cloud.vision.v1.AnnotateFileResponse"\x82\x02\n\x18\x41syncAnnotateFileRequest\x12\x39\n\x0cinput_config\x18\x01 \x01(\x0b\x32#.google.cloud.vision.v1.InputConfig\x12\x31\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32\x1f.google.cloud.vision.v1.Feature\x12;\n\rimage_context\x18\x03 \x01(\x0b\x32$.google.cloud.vision.v1.ImageContext\x12;\n\routput_config\x18\x04 \x01(\x0b\x32$.google.cloud.vision.v1.OutputConfig"X\n\x19\x41syncAnnotateFileResponse\x12;\n\routput_config\x18\x01 \x01(\x0b\x32$.google.cloud.vision.v1.OutputConfig"\xb8\x01\n\x1f\x41syncBatchAnnotateImagesRequest\x12\x43\n\x08requests\x18\x01 \x03(\x0b\x32,.google.cloud.vision.v1.AnnotateImageRequestB\x03\xe0\x41\x02\x12@\n\routput_config\x18\x02 \x01(\x0b\x32$.google.cloud.vision.v1.OutputConfigB\x03\xe0\x41\x02\x12\x0e\n\x06parent\x18\x04 \x01(\t"_\n AsyncBatchAnnotateImagesResponse\x12;\n\routput_config\x18\x01 \x01(\x0b\x32$.google.cloud.vision.v1.OutputConfig"y\n\x1e\x41syncBatchAnnotateFilesRequest\x12G\n\x08requests\x18\x01 \x03(\x0b\x32\x30.google.cloud.vision.v1.AsyncAnnotateFileRequestB\x03\xe0\x41\x02\x12\x0e\n\x06parent\x18\x04 \x01(\t"g\n\x1f\x41syncBatchAnnotateFilesResponse\x12\x44\n\tresponses\x18\x01 \x03(\x0b\x32\x31.google.cloud.vision.v1.AsyncAnnotateFileResponse"h\n\x0bInputConfig\x12\x35\n\ngcs_source\x18\x01 \x01(\x0b\x32!.google.cloud.vision.v1.GcsSource\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\x0c\x12\x11\n\tmime_type\x18\x02 \x01(\t"c\n\x0cOutputConfig\x12?\n\x0fgcs_destination\x18\x01 \x01(\x0b\x32&.google.cloud.vision.v1.GcsDestination\x12\x12\n\nbatch_size\x18\x02 \x01(\x05"\x18\n\tGcsSource\x12\x0b\n\x03uri\x18\x01 \x01(\t"\x1d\n\x0eGcsDestination\x12\x0b\n\x03uri\x18\x01 \x01(\t"\x88\x02\n\x11OperationMetadata\x12>\n\x05state\x18\x01 \x01(\x0e\x32/.google.cloud.vision.v1.OperationMetadata.State\x12/\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"Q\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x43REATED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x08\n\x04\x44ONE\x10\x03\x12\r\n\tCANCELLED\x10\x04*e\n\nLikelihood\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x11\n\rVERY_UNLIKELY\x10\x01\x12\x0c\n\x08UNLIKELY\x10\x02\x12\x0c\n\x08POSSIBLE\x10\x03\x12\n\n\x06LIKELY\x10\x04\x12\x0f\n\x0bVERY_LIKELY\x10\x05\x32\xf5\n\n\x0eImageAnnotator\x12\x93\x02\n\x13\x42\x61tchAnnotateImages\x12\x32.google.cloud.vision.v1.BatchAnnotateImagesRequest\x1a\x33.google.cloud.vision.v1.BatchAnnotateImagesResponse"\x92\x01\x82\xd3\xe4\x93\x02\x80\x01"\x13/v1/images:annotate:\x01*Z8"3/v1/{parent=projects/*/locations/*}/images:annotate:\x01*Z,"\'/v1/{parent=projects/*}/images:annotate:\x01*\xda\x41\x08requests\x12\x8c\x02\n\x12\x42\x61tchAnnotateFiles\x12\x31.google.cloud.vision.v1.BatchAnnotateFilesRequest\x1a\x32.google.cloud.vision.v1.BatchAnnotateFilesResponse"\x8e\x01\x82\xd3\xe4\x93\x02}"\x12/v1/files:annotate:\x01*Z7"2/v1/{parent=projects/*/locations/*}/files:annotate:\x01*Z+"&/v1/{parent=projects/*}/files:annotate:\x01*\xda\x41\x08requests\x12\xeb\x02\n\x18\x41syncBatchAnnotateImages\x12\x37.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest\x1a\x1d.google.longrunning.Operation"\xf6\x01\x82\xd3\xe4\x93\x02\x9e\x01"\x1d/v1/images:asyncBatchAnnotate:\x01*ZB"=/v1/{parent=projects/*/locations/*}/images:asyncBatchAnnotate:\x01*Z6"1/v1/{parent=projects/*}/images:asyncBatchAnnotate:\x01*\xda\x41\x16requests,output_config\xca\x41\x35\n AsyncBatchAnnotateImagesResponse\x12\x11OperationMetadata\x12\xd7\x02\n\x17\x41syncBatchAnnotateFiles\x12\x36.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest\x1a\x1d.google.longrunning.Operation"\xe4\x01\x82\xd3\xe4\x93\x02\x9b\x01"\x1c/v1/files:asyncBatchAnnotate:\x01*ZA"`__. crop_hints_params: Parameters for crop hints annotation request. @@ -4284,19 +4318,21 @@ Parameters for web detection. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ImageContext) - ), + }, ) _sym_db.RegisterMessage(ImageContext) AnnotateImageRequest = _reflection.GeneratedProtocolMessageType( "AnnotateImageRequest", (_message.Message,), - dict( - DESCRIPTOR=_ANNOTATEIMAGEREQUEST, - __module__="google.cloud.vision_v1.proto.image_annotator_pb2", - __doc__="""Request for performing Google Cloud Vision API tasks over a user- - provided image, with user-requested features, and with context + { + "DESCRIPTOR": _ANNOTATEIMAGEREQUEST, + "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", + "__doc__": """Request for performing Google Cloud Vision API tasks over + a user-provided image, with user-requested features, and with context information. + + Attributes: image: The image to be processed. @@ -4306,18 +4342,20 @@ Additional context that may accompany the image. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1.AnnotateImageRequest) - ), + }, ) _sym_db.RegisterMessage(AnnotateImageRequest) ImageAnnotationContext = _reflection.GeneratedProtocolMessageType( "ImageAnnotationContext", (_message.Message,), - dict( - DESCRIPTOR=_IMAGEANNOTATIONCONTEXT, - __module__="google.cloud.vision_v1.proto.image_annotator_pb2", - __doc__="""If an image was produced from a file (e.g. a PDF), this message gives - information about the source of that image. + { + "DESCRIPTOR": _IMAGEANNOTATIONCONTEXT, + "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", + "__doc__": """If an image was produced from a file (e.g. a PDF), this + message gives information about the source of that image. + + Attributes: uri: The URI of the file used to produce the image. @@ -4326,17 +4364,19 @@ number within the file used to produce the image. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1.ImageAnnotationContext) - ), + }, ) _sym_db.RegisterMessage(ImageAnnotationContext) AnnotateImageResponse = _reflection.GeneratedProtocolMessageType( "AnnotateImageResponse", (_message.Message,), - dict( - DESCRIPTOR=_ANNOTATEIMAGERESPONSE, - __module__="google.cloud.vision_v1.proto.image_annotator_pb2", - __doc__="""Response to an image annotation request. + { + "DESCRIPTOR": _ANNOTATEIMAGERESPONSE, + "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", + "__doc__": """Response to an image annotation request. + + Attributes: face_annotations: If present, face detection has completed successfully. @@ -4375,18 +4415,20 @@ where this image comes from. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1.AnnotateImageResponse) - ), + }, ) _sym_db.RegisterMessage(AnnotateImageResponse) BatchAnnotateImagesRequest = _reflection.GeneratedProtocolMessageType( "BatchAnnotateImagesRequest", (_message.Message,), - dict( - DESCRIPTOR=_BATCHANNOTATEIMAGESREQUEST, - __module__="google.cloud.vision_v1.proto.image_annotator_pb2", - __doc__="""Multiple image annotation requests are batched into a single service - call. + { + "DESCRIPTOR": _BATCHANNOTATEIMAGESREQUEST, + "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", + "__doc__": """Multiple image annotation requests are batched into a + single service call. + + Attributes: requests: Required. Individual image annotation requests for this batch. @@ -4399,34 +4441,39 @@ Union. Example: ``projects/project-A/locations/eu``. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1.BatchAnnotateImagesRequest) - ), + }, ) _sym_db.RegisterMessage(BatchAnnotateImagesRequest) BatchAnnotateImagesResponse = _reflection.GeneratedProtocolMessageType( "BatchAnnotateImagesResponse", (_message.Message,), - dict( - DESCRIPTOR=_BATCHANNOTATEIMAGESRESPONSE, - __module__="google.cloud.vision_v1.proto.image_annotator_pb2", - __doc__="""Response to a batch image annotation request. + { + "DESCRIPTOR": _BATCHANNOTATEIMAGESRESPONSE, + "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", + "__doc__": """Response to a batch image annotation request. + + Attributes: responses: Individual responses to image annotation requests within the batch. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1.BatchAnnotateImagesResponse) - ), + }, ) _sym_db.RegisterMessage(BatchAnnotateImagesResponse) AnnotateFileRequest = _reflection.GeneratedProtocolMessageType( "AnnotateFileRequest", (_message.Message,), - dict( - DESCRIPTOR=_ANNOTATEFILEREQUEST, - __module__="google.cloud.vision_v1.proto.image_annotator_pb2", - __doc__="""A request to annotate one single file, e.g. a PDF, TIFF or GIF file. + { + "DESCRIPTOR": _ANNOTATEFILEREQUEST, + "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", + "__doc__": """A request to annotate one single file, e.g. a PDF, TIFF or + GIF file. + + Attributes: input_config: Required. Information about the input file. @@ -4447,18 +4494,20 @@ file. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1.AnnotateFileRequest) - ), + }, ) _sym_db.RegisterMessage(AnnotateFileRequest) AnnotateFileResponse = _reflection.GeneratedProtocolMessageType( "AnnotateFileResponse", (_message.Message,), - dict( - DESCRIPTOR=_ANNOTATEFILERESPONSE, - __module__="google.cloud.vision_v1.proto.image_annotator_pb2", - __doc__="""Response to a single file annotation request. A file may contain one - or more images, which individually have their own responses. + { + "DESCRIPTOR": _ANNOTATEFILERESPONSE, + "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", + "__doc__": """Response to a single file annotation request. A file may + contain one or more images, which individually have their own responses. + + Attributes: input_config: Information about the file for which this response is @@ -4473,17 +4522,20 @@ The ``responses`` field will not be set in this case. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1.AnnotateFileResponse) - ), + }, ) _sym_db.RegisterMessage(AnnotateFileResponse) BatchAnnotateFilesRequest = _reflection.GeneratedProtocolMessageType( "BatchAnnotateFilesRequest", (_message.Message,), - dict( - DESCRIPTOR=_BATCHANNOTATEFILESREQUEST, - __module__="google.cloud.vision_v1.proto.image_annotator_pb2", - __doc__="""A list of requests to annotate files using the BatchAnnotateFiles API. + { + "DESCRIPTOR": _BATCHANNOTATEFILESREQUEST, + "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", + "__doc__": """A list of requests to annotate files using the + BatchAnnotateFiles API. + + Attributes: requests: Required. The list of file annotation requests. Right now we @@ -4498,17 +4550,19 @@ Union. Example: ``projects/project-A/locations/eu``. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1.BatchAnnotateFilesRequest) - ), + }, ) _sym_db.RegisterMessage(BatchAnnotateFilesRequest) BatchAnnotateFilesResponse = _reflection.GeneratedProtocolMessageType( "BatchAnnotateFilesResponse", (_message.Message,), - dict( - DESCRIPTOR=_BATCHANNOTATEFILESRESPONSE, - __module__="google.cloud.vision_v1.proto.image_annotator_pb2", - __doc__="""A list of file annotation responses. + { + "DESCRIPTOR": _BATCHANNOTATEFILESRESPONSE, + "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", + "__doc__": """A list of file annotation responses. + + Attributes: responses: The list of file annotation responses, each response @@ -4516,17 +4570,19 @@ BatchAnnotateFilesRequest. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1.BatchAnnotateFilesResponse) - ), + }, ) _sym_db.RegisterMessage(BatchAnnotateFilesResponse) AsyncAnnotateFileRequest = _reflection.GeneratedProtocolMessageType( "AsyncAnnotateFileRequest", (_message.Message,), - dict( - DESCRIPTOR=_ASYNCANNOTATEFILEREQUEST, - __module__="google.cloud.vision_v1.proto.image_annotator_pb2", - __doc__="""An offline file annotation request. + { + "DESCRIPTOR": _ASYNCANNOTATEFILEREQUEST, + "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", + "__doc__": """An offline file annotation request. + + Attributes: input_config: Required. Information about the input file. @@ -4536,44 +4592,48 @@ Additional context that may accompany the image(s) in the file. output_config: - Required. The desired output location and metadata (e.g. - format). + Required. The desired output location and metadata + (e.g. format). """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1.AsyncAnnotateFileRequest) - ), + }, ) _sym_db.RegisterMessage(AsyncAnnotateFileRequest) AsyncAnnotateFileResponse = _reflection.GeneratedProtocolMessageType( "AsyncAnnotateFileResponse", (_message.Message,), - dict( - DESCRIPTOR=_ASYNCANNOTATEFILERESPONSE, - __module__="google.cloud.vision_v1.proto.image_annotator_pb2", - __doc__="""The response for a single offline file annotation request. + { + "DESCRIPTOR": _ASYNCANNOTATEFILERESPONSE, + "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", + "__doc__": """The response for a single offline file annotation request. + + Attributes: output_config: The output location and metadata from AsyncAnnotateFileRequest. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1.AsyncAnnotateFileResponse) - ), + }, ) _sym_db.RegisterMessage(AsyncAnnotateFileResponse) AsyncBatchAnnotateImagesRequest = _reflection.GeneratedProtocolMessageType( "AsyncBatchAnnotateImagesRequest", (_message.Message,), - dict( - DESCRIPTOR=_ASYNCBATCHANNOTATEIMAGESREQUEST, - __module__="google.cloud.vision_v1.proto.image_annotator_pb2", - __doc__="""Request for async image annotation for a list of images. + { + "DESCRIPTOR": _ASYNCBATCHANNOTATEIMAGESREQUEST, + "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", + "__doc__": """Request for async image annotation for a list of images. + + Attributes: requests: Required. Individual image annotation requests for this batch. output_config: - Required. The desired output location and metadata (e.g. - format). + Required. The desired output location and metadata + (e.g. format). parent: Optional. Target project and location to make a call. Format: ``projects/{project-id}/locations/{location-id}``. If no @@ -4583,35 +4643,39 @@ Union. Example: ``projects/project-A/locations/eu``. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest) - ), + }, ) _sym_db.RegisterMessage(AsyncBatchAnnotateImagesRequest) AsyncBatchAnnotateImagesResponse = _reflection.GeneratedProtocolMessageType( "AsyncBatchAnnotateImagesResponse", (_message.Message,), - dict( - DESCRIPTOR=_ASYNCBATCHANNOTATEIMAGESRESPONSE, - __module__="google.cloud.vision_v1.proto.image_annotator_pb2", - __doc__="""Response to an async batch image annotation request. + { + "DESCRIPTOR": _ASYNCBATCHANNOTATEIMAGESRESPONSE, + "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", + "__doc__": """Response to an async batch image annotation request. + + Attributes: output_config: The output location and metadata from AsyncBatchAnnotateImagesRequest. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse) - ), + }, ) _sym_db.RegisterMessage(AsyncBatchAnnotateImagesResponse) AsyncBatchAnnotateFilesRequest = _reflection.GeneratedProtocolMessageType( "AsyncBatchAnnotateFilesRequest", (_message.Message,), - dict( - DESCRIPTOR=_ASYNCBATCHANNOTATEFILESREQUEST, - __module__="google.cloud.vision_v1.proto.image_annotator_pb2", - __doc__="""Multiple async file annotation requests are batched into a single - service call. + { + "DESCRIPTOR": _ASYNCBATCHANNOTATEFILESREQUEST, + "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", + "__doc__": """Multiple async file annotation requests are batched into a + single service call. + + Attributes: requests: Required. Individual async file annotation requests for this @@ -4625,34 +4689,38 @@ Union. Example: ``projects/project-A/locations/eu``. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest) - ), + }, ) _sym_db.RegisterMessage(AsyncBatchAnnotateFilesRequest) AsyncBatchAnnotateFilesResponse = _reflection.GeneratedProtocolMessageType( "AsyncBatchAnnotateFilesResponse", (_message.Message,), - dict( - DESCRIPTOR=_ASYNCBATCHANNOTATEFILESRESPONSE, - __module__="google.cloud.vision_v1.proto.image_annotator_pb2", - __doc__="""Response to an async batch file annotation request. + { + "DESCRIPTOR": _ASYNCBATCHANNOTATEFILESRESPONSE, + "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", + "__doc__": """Response to an async batch file annotation request. + + Attributes: responses: The list of file annotation responses, one for each request in AsyncBatchAnnotateFilesRequest. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse) - ), + }, ) _sym_db.RegisterMessage(AsyncBatchAnnotateFilesResponse) InputConfig = _reflection.GeneratedProtocolMessageType( "InputConfig", (_message.Message,), - dict( - DESCRIPTOR=_INPUTCONFIG, - __module__="google.cloud.vision_v1.proto.image_annotator_pb2", - __doc__="""The desired input location and metadata. + { + "DESCRIPTOR": _INPUTCONFIG, + "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", + "__doc__": """The desired input location and metadata. + + Attributes: gcs_source: The Google Cloud Storage location to read the input from. @@ -4664,22 +4732,24 @@ requests. It does not work for AsyncBatchAnnotateFiles requests. mime_type: - The type of the file. Currently only "application/pdf", - "image/tiff" and "image/gif" are supported. Wildcards are not + The type of the file. Currently only “application/pdf”, + “image/tiff” and “image/gif” are supported. Wildcards are not supported. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1.InputConfig) - ), + }, ) _sym_db.RegisterMessage(InputConfig) OutputConfig = _reflection.GeneratedProtocolMessageType( "OutputConfig", (_message.Message,), - dict( - DESCRIPTOR=_OUTPUTCONFIG, - __module__="google.cloud.vision_v1.proto.image_annotator_pb2", - __doc__="""The desired output location and metadata. + { + "DESCRIPTOR": _OUTPUTCONFIG, + "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", + "__doc__": """The desired output location and metadata. + + Attributes: gcs_destination: The Google Cloud Storage location to write the output(s) to. @@ -4690,22 +4760,25 @@ pdf file with 100 pages, 100 response protos will be generated. If ``batch_size`` = 20, then 5 json files each containing 20 response protos will be written under the prefix - ``gcs_destination``.\ ``uri``. Currently, batch\_size only + ``gcs_destination``.\ ``uri``. Currently, batch_size only applies to GcsDestination, with potential future support for other output configurations. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1.OutputConfig) - ), + }, ) _sym_db.RegisterMessage(OutputConfig) GcsSource = _reflection.GeneratedProtocolMessageType( "GcsSource", (_message.Message,), - dict( - DESCRIPTOR=_GCSSOURCE, - __module__="google.cloud.vision_v1.proto.image_annotator_pb2", - __doc__="""The Google Cloud Storage location where the input will be read from. + { + "DESCRIPTOR": _GCSSOURCE, + "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", + "__doc__": """The Google Cloud Storage location where the input will be + read from. + + Attributes: uri: Google Cloud Storage URI for the input file. This must only be @@ -4713,17 +4786,20 @@ supported. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1.GcsSource) - ), + }, ) _sym_db.RegisterMessage(GcsSource) GcsDestination = _reflection.GeneratedProtocolMessageType( "GcsDestination", (_message.Message,), - dict( - DESCRIPTOR=_GCSDESTINATION, - __module__="google.cloud.vision_v1.proto.image_annotator_pb2", - __doc__="""The Google Cloud Storage location where the output will be written to. + { + "DESCRIPTOR": _GCSDESTINATION, + "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", + "__doc__": """The Google Cloud Storage location where the output will be + written to. + + Attributes: uri: Google Cloud Storage URI prefix where the results will be @@ -4735,7 +4811,7 @@ uri prefix you provide. Examples: - File Prefix: gs://bucket-name/here/filenameprefix The output files will be created in gs://bucket-name/here/ and the names of the - output files will begin with "filenameprefix". - + output files will begin with “filenameprefix”. - Directory Prefix: gs://bucket-name/some/location/ The output files will be created in gs://bucket-name/some/location/ and the names of the output files could be anything because @@ -4747,17 +4823,19 @@ multiple sharded files. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1.GcsDestination) - ), + }, ) _sym_db.RegisterMessage(GcsDestination) OperationMetadata = _reflection.GeneratedProtocolMessageType( "OperationMetadata", (_message.Message,), - dict( - DESCRIPTOR=_OPERATIONMETADATA, - __module__="google.cloud.vision_v1.proto.image_annotator_pb2", - __doc__="""Contains metadata for the BatchAnnotateImages operation. + { + "DESCRIPTOR": _OPERATIONMETADATA, + "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", + "__doc__": """Contains metadata for the BatchAnnotateImages operation. + + Attributes: state: Current state of the batch operation. @@ -4767,7 +4845,7 @@ The time when the operation result was last updated. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1.OperationMetadata) - ), + }, ) _sym_db.RegisterMessage(OperationMetadata) @@ -4785,9 +4863,7 @@ full_name="google.cloud.vision.v1.ImageAnnotator", file=DESCRIPTOR, index=0, - serialized_options=_b( - "\312A\025vision.googleapis.com\322A[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-vision" - ), + serialized_options=b"\312A\025vision.googleapis.com\322A[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-vision", serialized_start=8376, serialized_end=9773, methods=[ @@ -4798,9 +4874,7 @@ containing_service=None, input_type=_BATCHANNOTATEIMAGESREQUEST, output_type=_BATCHANNOTATEIMAGESRESPONSE, - serialized_options=_b( - '\202\323\344\223\002\200\001"\023/v1/images:annotate:\001*Z8"3/v1/{parent=projects/*/locations/*}/images:annotate:\001*Z,"\'/v1/{parent=projects/*}/images:annotate:\001*\332A\010requests' - ), + serialized_options=b'\202\323\344\223\002\200\001"\023/v1/images:annotate:\001*Z8"3/v1/{parent=projects/*/locations/*}/images:annotate:\001*Z,"\'/v1/{parent=projects/*}/images:annotate:\001*\332A\010requests', ), _descriptor.MethodDescriptor( name="BatchAnnotateFiles", @@ -4809,9 +4883,7 @@ containing_service=None, input_type=_BATCHANNOTATEFILESREQUEST, output_type=_BATCHANNOTATEFILESRESPONSE, - serialized_options=_b( - '\202\323\344\223\002}"\022/v1/files:annotate:\001*Z7"2/v1/{parent=projects/*/locations/*}/files:annotate:\001*Z+"&/v1/{parent=projects/*}/files:annotate:\001*\332A\010requests' - ), + serialized_options=b'\202\323\344\223\002}"\022/v1/files:annotate:\001*Z7"2/v1/{parent=projects/*/locations/*}/files:annotate:\001*Z+"&/v1/{parent=projects/*}/files:annotate:\001*\332A\010requests', ), _descriptor.MethodDescriptor( name="AsyncBatchAnnotateImages", @@ -4820,9 +4892,7 @@ containing_service=None, input_type=_ASYNCBATCHANNOTATEIMAGESREQUEST, output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - serialized_options=_b( - '\202\323\344\223\002\236\001"\035/v1/images:asyncBatchAnnotate:\001*ZB"=/v1/{parent=projects/*/locations/*}/images:asyncBatchAnnotate:\001*Z6"1/v1/{parent=projects/*}/images:asyncBatchAnnotate:\001*\332A\026requests,output_config\312A5\n AsyncBatchAnnotateImagesResponse\022\021OperationMetadata' - ), + serialized_options=b'\202\323\344\223\002\236\001"\035/v1/images:asyncBatchAnnotate:\001*ZB"=/v1/{parent=projects/*/locations/*}/images:asyncBatchAnnotate:\001*Z6"1/v1/{parent=projects/*}/images:asyncBatchAnnotate:\001*\332A\026requests,output_config\312A5\n AsyncBatchAnnotateImagesResponse\022\021OperationMetadata', ), _descriptor.MethodDescriptor( name="AsyncBatchAnnotateFiles", @@ -4831,9 +4901,7 @@ containing_service=None, input_type=_ASYNCBATCHANNOTATEFILESREQUEST, output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - serialized_options=_b( - '\202\323\344\223\002\233\001"\034/v1/files:asyncBatchAnnotate:\001*ZA""//v1/{parent=projects/*/locations/*}/productSets:\x0bproduct_set\xda\x41!parent,product_set,product_set_id\x12\xb4\x01\n\x0fListProductSets\x12..google.cloud.vision.v1.ListProductSetsRequest\x1a/.google.cloud.vision.v1.ListProductSetsResponse"@\x82\xd3\xe4\x93\x02\x31\x12//v1/{parent=projects/*/locations/*}/productSets\xda\x41\x06parent\x12\xa1\x01\n\rGetProductSet\x12,.google.cloud.vision.v1.GetProductSetRequest\x1a".google.cloud.vision.v1.ProductSet">\x82\xd3\xe4\x93\x02\x31\x12//v1/{name=projects/*/locations/*/productSets/*}\xda\x41\x04name\x12\xd3\x01\n\x10UpdateProductSet\x12/.google.cloud.vision.v1.UpdateProductSetRequest\x1a".google.cloud.vision.v1.ProductSet"j\x82\xd3\xe4\x93\x02J2;/v1/{product_set.name=projects/*/locations/*/productSets/*}:\x0bproduct_set\xda\x41\x17product_set,update_mask\x12\x9b\x01\n\x10\x44\x65leteProductSet\x12/.google.cloud.vision.v1.DeleteProductSetRequest\x1a\x16.google.protobuf.Empty">\x82\xd3\xe4\x93\x02\x31*//v1/{name=projects/*/locations/*/productSets/*}\xda\x41\x04name\x12\xb9\x01\n\rCreateProduct\x12,.google.cloud.vision.v1.CreateProductRequest\x1a\x1f.google.cloud.vision.v1.Product"Y\x82\xd3\xe4\x93\x02\x37",/v1/{parent=projects/*/locations/*}/products:\x07product\xda\x41\x19parent,product,product_id\x12\xa8\x01\n\x0cListProducts\x12+.google.cloud.vision.v1.ListProductsRequest\x1a,.google.cloud.vision.v1.ListProductsResponse"=\x82\xd3\xe4\x93\x02.\x12,/v1/{parent=projects/*/locations/*}/products\xda\x41\x06parent\x12\x95\x01\n\nGetProduct\x12).google.cloud.vision.v1.GetProductRequest\x1a\x1f.google.cloud.vision.v1.Product";\x82\xd3\xe4\x93\x02.\x12,/v1/{name=projects/*/locations/*/products/*}\xda\x41\x04name\x12\xbb\x01\n\rUpdateProduct\x12,.google.cloud.vision.v1.UpdateProductRequest\x1a\x1f.google.cloud.vision.v1.Product"[\x82\xd3\xe4\x93\x02?24/v1/{product.name=projects/*/locations/*/products/*}:\x07product\xda\x41\x13product,update_mask\x12\x92\x01\n\rDeleteProduct\x12,.google.cloud.vision.v1.DeleteProductRequest\x1a\x16.google.protobuf.Empty";\x82\xd3\xe4\x93\x02.*,/v1/{name=projects/*/locations/*/products/*}\xda\x41\x04name\x12\xf9\x01\n\x14\x43reateReferenceImage\x12\x33.google.cloud.vision.v1.CreateReferenceImageRequest\x1a&.google.cloud.vision.v1.ReferenceImage"\x83\x01\x82\xd3\xe4\x93\x02Q">/v1/{parent=projects/*/locations/*/products/*}/referenceImages:\x0freference_image\xda\x41)parent,reference_image,reference_image_id\x12\xb2\x01\n\x14\x44\x65leteReferenceImage\x12\x33.google.cloud.vision.v1.DeleteReferenceImageRequest\x1a\x16.google.protobuf.Empty"M\x82\xd3\xe4\x93\x02@*>/v1/{name=projects/*/locations/*/products/*/referenceImages/*}\xda\x41\x04name\x12\xcf\x01\n\x13ListReferenceImages\x12\x32.google.cloud.vision.v1.ListReferenceImagesRequest\x1a\x33.google.cloud.vision.v1.ListReferenceImagesResponse"O\x82\xd3\xe4\x93\x02@\x12>/v1/{parent=projects/*/locations/*/products/*}/referenceImages\xda\x41\x06parent\x12\xbc\x01\n\x11GetReferenceImage\x12\x30.google.cloud.vision.v1.GetReferenceImageRequest\x1a&.google.cloud.vision.v1.ReferenceImage"M\x82\xd3\xe4\x93\x02@\x12>/v1/{name=projects/*/locations/*/products/*/referenceImages/*}\xda\x41\x04name\x12\xbd\x01\n\x16\x41\x64\x64ProductToProductSet\x12\x35.google.cloud.vision.v1.AddProductToProductSetRequest\x1a\x16.google.protobuf.Empty"T\x82\xd3\xe4\x93\x02?":/v1/{name=projects/*/locations/*/productSets/*}:addProduct:\x01*\xda\x41\x0cname,product\x12\xca\x01\n\x1bRemoveProductFromProductSet\x12:.google.cloud.vision.v1.RemoveProductFromProductSetRequest\x1a\x16.google.protobuf.Empty"W\x82\xd3\xe4\x93\x02\x42"=/v1/{name=projects/*/locations/*/productSets/*}:removeProduct:\x01*\xda\x41\x0cname,product\x12\xd6\x01\n\x18ListProductsInProductSet\x12\x37.google.cloud.vision.v1.ListProductsInProductSetRequest\x1a\x38.google.cloud.vision.v1.ListProductsInProductSetResponse"G\x82\xd3\xe4\x93\x02:\x12\x38/v1/{name=projects/*/locations/*/productSets/*}/products\xda\x41\x04name\x12\xf4\x01\n\x11ImportProductSets\x12\x30.google.cloud.vision.v1.ImportProductSetsRequest\x1a\x1d.google.longrunning.Operation"\x8d\x01\x82\xd3\xe4\x93\x02;"6/v1/{parent=projects/*/locations/*}/productSets:import:\x01*\xda\x41\x13parent,input_config\xca\x41\x33\n\x19ImportProductSetsResponse\x12\x16\x42\x61tchOperationMetadata\x12\xd6\x01\n\rPurgeProducts\x12,.google.cloud.vision.v1.PurgeProductsRequest\x1a\x1d.google.longrunning.Operation"x\x82\xd3\xe4\x93\x02\x37"2/v1/{parent=projects/*/locations/*}/products:purge:\x01*\xda\x41\x06parent\xca\x41/\n\x15google.protobuf.Empty\x12\x16\x42\x61tchOperationMetadata\x1av\xca\x41\x15vision.googleapis.com\xd2\x41[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-visionB\x81\x01\n\x1a\x63om.google.cloud.vision.v1B\x19ProductSearchServiceProtoP\x01Z"//v1/{parent=projects/*/locations/*}/productSets:\x0bproduct_set\xda\x41!parent,product_set,product_set_id\x12\xb4\x01\n\x0fListProductSets\x12..google.cloud.vision.v1.ListProductSetsRequest\x1a/.google.cloud.vision.v1.ListProductSetsResponse"@\x82\xd3\xe4\x93\x02\x31\x12//v1/{parent=projects/*/locations/*}/productSets\xda\x41\x06parent\x12\xa1\x01\n\rGetProductSet\x12,.google.cloud.vision.v1.GetProductSetRequest\x1a".google.cloud.vision.v1.ProductSet">\x82\xd3\xe4\x93\x02\x31\x12//v1/{name=projects/*/locations/*/productSets/*}\xda\x41\x04name\x12\xd3\x01\n\x10UpdateProductSet\x12/.google.cloud.vision.v1.UpdateProductSetRequest\x1a".google.cloud.vision.v1.ProductSet"j\x82\xd3\xe4\x93\x02J2;/v1/{product_set.name=projects/*/locations/*/productSets/*}:\x0bproduct_set\xda\x41\x17product_set,update_mask\x12\x9b\x01\n\x10\x44\x65leteProductSet\x12/.google.cloud.vision.v1.DeleteProductSetRequest\x1a\x16.google.protobuf.Empty">\x82\xd3\xe4\x93\x02\x31*//v1/{name=projects/*/locations/*/productSets/*}\xda\x41\x04name\x12\xb9\x01\n\rCreateProduct\x12,.google.cloud.vision.v1.CreateProductRequest\x1a\x1f.google.cloud.vision.v1.Product"Y\x82\xd3\xe4\x93\x02\x37",/v1/{parent=projects/*/locations/*}/products:\x07product\xda\x41\x19parent,product,product_id\x12\xa8\x01\n\x0cListProducts\x12+.google.cloud.vision.v1.ListProductsRequest\x1a,.google.cloud.vision.v1.ListProductsResponse"=\x82\xd3\xe4\x93\x02.\x12,/v1/{parent=projects/*/locations/*}/products\xda\x41\x06parent\x12\x95\x01\n\nGetProduct\x12).google.cloud.vision.v1.GetProductRequest\x1a\x1f.google.cloud.vision.v1.Product";\x82\xd3\xe4\x93\x02.\x12,/v1/{name=projects/*/locations/*/products/*}\xda\x41\x04name\x12\xbb\x01\n\rUpdateProduct\x12,.google.cloud.vision.v1.UpdateProductRequest\x1a\x1f.google.cloud.vision.v1.Product"[\x82\xd3\xe4\x93\x02?24/v1/{product.name=projects/*/locations/*/products/*}:\x07product\xda\x41\x13product,update_mask\x12\x92\x01\n\rDeleteProduct\x12,.google.cloud.vision.v1.DeleteProductRequest\x1a\x16.google.protobuf.Empty";\x82\xd3\xe4\x93\x02.*,/v1/{name=projects/*/locations/*/products/*}\xda\x41\x04name\x12\xf9\x01\n\x14\x43reateReferenceImage\x12\x33.google.cloud.vision.v1.CreateReferenceImageRequest\x1a&.google.cloud.vision.v1.ReferenceImage"\x83\x01\x82\xd3\xe4\x93\x02Q">/v1/{parent=projects/*/locations/*/products/*}/referenceImages:\x0freference_image\xda\x41)parent,reference_image,reference_image_id\x12\xb2\x01\n\x14\x44\x65leteReferenceImage\x12\x33.google.cloud.vision.v1.DeleteReferenceImageRequest\x1a\x16.google.protobuf.Empty"M\x82\xd3\xe4\x93\x02@*>/v1/{name=projects/*/locations/*/products/*/referenceImages/*}\xda\x41\x04name\x12\xcf\x01\n\x13ListReferenceImages\x12\x32.google.cloud.vision.v1.ListReferenceImagesRequest\x1a\x33.google.cloud.vision.v1.ListReferenceImagesResponse"O\x82\xd3\xe4\x93\x02@\x12>/v1/{parent=projects/*/locations/*/products/*}/referenceImages\xda\x41\x06parent\x12\xbc\x01\n\x11GetReferenceImage\x12\x30.google.cloud.vision.v1.GetReferenceImageRequest\x1a&.google.cloud.vision.v1.ReferenceImage"M\x82\xd3\xe4\x93\x02@\x12>/v1/{name=projects/*/locations/*/products/*/referenceImages/*}\xda\x41\x04name\x12\xbd\x01\n\x16\x41\x64\x64ProductToProductSet\x12\x35.google.cloud.vision.v1.AddProductToProductSetRequest\x1a\x16.google.protobuf.Empty"T\x82\xd3\xe4\x93\x02?":/v1/{name=projects/*/locations/*/productSets/*}:addProduct:\x01*\xda\x41\x0cname,product\x12\xca\x01\n\x1bRemoveProductFromProductSet\x12:.google.cloud.vision.v1.RemoveProductFromProductSetRequest\x1a\x16.google.protobuf.Empty"W\x82\xd3\xe4\x93\x02\x42"=/v1/{name=projects/*/locations/*/productSets/*}:removeProduct:\x01*\xda\x41\x0cname,product\x12\xd6\x01\n\x18ListProductsInProductSet\x12\x37.google.cloud.vision.v1.ListProductsInProductSetRequest\x1a\x38.google.cloud.vision.v1.ListProductsInProductSetResponse"G\x82\xd3\xe4\x93\x02:\x12\x38/v1/{name=projects/*/locations/*/productSets/*}/products\xda\x41\x04name\x12\xf4\x01\n\x11ImportProductSets\x12\x30.google.cloud.vision.v1.ImportProductSetsRequest\x1a\x1d.google.longrunning.Operation"\x8d\x01\x82\xd3\xe4\x93\x02;"6/v1/{parent=projects/*/locations/*}/productSets:import:\x01*\xda\x41\x13parent,input_config\xca\x41\x33\n\x19ImportProductSetsResponse\x12\x16\x42\x61tchOperationMetadata\x12\xd6\x01\n\rPurgeProducts\x12,.google.cloud.vision.v1.PurgeProductsRequest\x1a\x1d.google.longrunning.Operation"x\x82\xd3\xe4\x93\x02\x37"2/v1/{parent=projects/*/locations/*}/products:purge:\x01*\xda\x41\x06parent\xca\x41/\n\x15google.protobuf.Empty\x12\x16\x42\x61tchOperationMetadata\x1av\xca\x41\x15vision.googleapis.com\xd2\x41[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-visionB\x81\x01\n\x1a\x63om.google.cloud.vision.v1B\x19ProductSearchServiceProtoP\x01Z"//v1/{parent=projects/*/locations/*}/productSets:\013product_set\332A!parent,product_set,product_set_id' - ), + serialized_options=b'\202\323\344\223\002>"//v1/{parent=projects/*/locations/*}/productSets:\013product_set\332A!parent,product_set,product_set_id', ), _descriptor.MethodDescriptor( name="ListProductSets", @@ -3069,9 +3094,7 @@ containing_service=None, input_type=_LISTPRODUCTSETSREQUEST, output_type=_LISTPRODUCTSETSRESPONSE, - serialized_options=_b( - "\202\323\344\223\0021\022//v1/{parent=projects/*/locations/*}/productSets\332A\006parent" - ), + serialized_options=b"\202\323\344\223\0021\022//v1/{parent=projects/*/locations/*}/productSets\332A\006parent", ), _descriptor.MethodDescriptor( name="GetProductSet", @@ -3080,9 +3103,7 @@ containing_service=None, input_type=_GETPRODUCTSETREQUEST, output_type=_PRODUCTSET, - serialized_options=_b( - "\202\323\344\223\0021\022//v1/{name=projects/*/locations/*/productSets/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\0021\022//v1/{name=projects/*/locations/*/productSets/*}\332A\004name", ), _descriptor.MethodDescriptor( name="UpdateProductSet", @@ -3091,9 +3112,7 @@ containing_service=None, input_type=_UPDATEPRODUCTSETREQUEST, output_type=_PRODUCTSET, - serialized_options=_b( - "\202\323\344\223\002J2;/v1/{product_set.name=projects/*/locations/*/productSets/*}:\013product_set\332A\027product_set,update_mask" - ), + serialized_options=b"\202\323\344\223\002J2;/v1/{product_set.name=projects/*/locations/*/productSets/*}:\013product_set\332A\027product_set,update_mask", ), _descriptor.MethodDescriptor( name="DeleteProductSet", @@ -3102,9 +3121,7 @@ containing_service=None, input_type=_DELETEPRODUCTSETREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - "\202\323\344\223\0021*//v1/{name=projects/*/locations/*/productSets/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\0021*//v1/{name=projects/*/locations/*/productSets/*}\332A\004name", ), _descriptor.MethodDescriptor( name="CreateProduct", @@ -3113,9 +3130,7 @@ containing_service=None, input_type=_CREATEPRODUCTREQUEST, output_type=_PRODUCT, - serialized_options=_b( - '\202\323\344\223\0027",/v1/{parent=projects/*/locations/*}/products:\007product\332A\031parent,product,product_id' - ), + serialized_options=b'\202\323\344\223\0027",/v1/{parent=projects/*/locations/*}/products:\007product\332A\031parent,product,product_id', ), _descriptor.MethodDescriptor( name="ListProducts", @@ -3124,9 +3139,7 @@ containing_service=None, input_type=_LISTPRODUCTSREQUEST, output_type=_LISTPRODUCTSRESPONSE, - serialized_options=_b( - "\202\323\344\223\002.\022,/v1/{parent=projects/*/locations/*}/products\332A\006parent" - ), + serialized_options=b"\202\323\344\223\002.\022,/v1/{parent=projects/*/locations/*}/products\332A\006parent", ), _descriptor.MethodDescriptor( name="GetProduct", @@ -3135,9 +3148,7 @@ containing_service=None, input_type=_GETPRODUCTREQUEST, output_type=_PRODUCT, - serialized_options=_b( - "\202\323\344\223\002.\022,/v1/{name=projects/*/locations/*/products/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\002.\022,/v1/{name=projects/*/locations/*/products/*}\332A\004name", ), _descriptor.MethodDescriptor( name="UpdateProduct", @@ -3146,9 +3157,7 @@ containing_service=None, input_type=_UPDATEPRODUCTREQUEST, output_type=_PRODUCT, - serialized_options=_b( - "\202\323\344\223\002?24/v1/{product.name=projects/*/locations/*/products/*}:\007product\332A\023product,update_mask" - ), + serialized_options=b"\202\323\344\223\002?24/v1/{product.name=projects/*/locations/*/products/*}:\007product\332A\023product,update_mask", ), _descriptor.MethodDescriptor( name="DeleteProduct", @@ -3157,9 +3166,7 @@ containing_service=None, input_type=_DELETEPRODUCTREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - "\202\323\344\223\002.*,/v1/{name=projects/*/locations/*/products/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\002.*,/v1/{name=projects/*/locations/*/products/*}\332A\004name", ), _descriptor.MethodDescriptor( name="CreateReferenceImage", @@ -3168,9 +3175,7 @@ containing_service=None, input_type=_CREATEREFERENCEIMAGEREQUEST, output_type=_REFERENCEIMAGE, - serialized_options=_b( - '\202\323\344\223\002Q">/v1/{parent=projects/*/locations/*/products/*}/referenceImages:\017reference_image\332A)parent,reference_image,reference_image_id' - ), + serialized_options=b'\202\323\344\223\002Q">/v1/{parent=projects/*/locations/*/products/*}/referenceImages:\017reference_image\332A)parent,reference_image,reference_image_id', ), _descriptor.MethodDescriptor( name="DeleteReferenceImage", @@ -3179,9 +3184,7 @@ containing_service=None, input_type=_DELETEREFERENCEIMAGEREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - "\202\323\344\223\002@*>/v1/{name=projects/*/locations/*/products/*/referenceImages/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\002@*>/v1/{name=projects/*/locations/*/products/*/referenceImages/*}\332A\004name", ), _descriptor.MethodDescriptor( name="ListReferenceImages", @@ -3190,9 +3193,7 @@ containing_service=None, input_type=_LISTREFERENCEIMAGESREQUEST, output_type=_LISTREFERENCEIMAGESRESPONSE, - serialized_options=_b( - "\202\323\344\223\002@\022>/v1/{parent=projects/*/locations/*/products/*}/referenceImages\332A\006parent" - ), + serialized_options=b"\202\323\344\223\002@\022>/v1/{parent=projects/*/locations/*/products/*}/referenceImages\332A\006parent", ), _descriptor.MethodDescriptor( name="GetReferenceImage", @@ -3201,9 +3202,7 @@ containing_service=None, input_type=_GETREFERENCEIMAGEREQUEST, output_type=_REFERENCEIMAGE, - serialized_options=_b( - "\202\323\344\223\002@\022>/v1/{name=projects/*/locations/*/products/*/referenceImages/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\002@\022>/v1/{name=projects/*/locations/*/products/*/referenceImages/*}\332A\004name", ), _descriptor.MethodDescriptor( name="AddProductToProductSet", @@ -3212,9 +3211,7 @@ containing_service=None, input_type=_ADDPRODUCTTOPRODUCTSETREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - '\202\323\344\223\002?":/v1/{name=projects/*/locations/*/productSets/*}:addProduct:\001*\332A\014name,product' - ), + serialized_options=b'\202\323\344\223\002?":/v1/{name=projects/*/locations/*/productSets/*}:addProduct:\001*\332A\014name,product', ), _descriptor.MethodDescriptor( name="RemoveProductFromProductSet", @@ -3223,9 +3220,7 @@ containing_service=None, input_type=_REMOVEPRODUCTFROMPRODUCTSETREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - '\202\323\344\223\002B"=/v1/{name=projects/*/locations/*/productSets/*}:removeProduct:\001*\332A\014name,product' - ), + serialized_options=b'\202\323\344\223\002B"=/v1/{name=projects/*/locations/*/productSets/*}:removeProduct:\001*\332A\014name,product', ), _descriptor.MethodDescriptor( name="ListProductsInProductSet", @@ -3234,9 +3229,7 @@ containing_service=None, input_type=_LISTPRODUCTSINPRODUCTSETREQUEST, output_type=_LISTPRODUCTSINPRODUCTSETRESPONSE, - serialized_options=_b( - "\202\323\344\223\002:\0228/v1/{name=projects/*/locations/*/productSets/*}/products\332A\004name" - ), + serialized_options=b"\202\323\344\223\002:\0228/v1/{name=projects/*/locations/*/productSets/*}/products\332A\004name", ), _descriptor.MethodDescriptor( name="ImportProductSets", @@ -3245,9 +3238,7 @@ containing_service=None, input_type=_IMPORTPRODUCTSETSREQUEST, output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - serialized_options=_b( - '\202\323\344\223\002;"6/v1/{parent=projects/*/locations/*}/productSets:import:\001*\332A\023parent,input_config\312A3\n\031ImportProductSetsResponse\022\026BatchOperationMetadata' - ), + serialized_options=b'\202\323\344\223\002;"6/v1/{parent=projects/*/locations/*}/productSets:import:\001*\332A\023parent,input_config\312A3\n\031ImportProductSetsResponse\022\026BatchOperationMetadata', ), _descriptor.MethodDescriptor( name="PurgeProducts", @@ -3256,9 +3247,7 @@ containing_service=None, input_type=_PURGEPRODUCTSREQUEST, output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - serialized_options=_b( - '\202\323\344\223\0027"2/v1/{parent=projects/*/locations/*}/products:purge:\001*\332A\006parent\312A/\n\025google.protobuf.Empty\022\026BatchOperationMetadata' - ), + serialized_options=b'\202\323\344\223\0027"2/v1/{parent=projects/*/locations/*}/products:purge:\001*\332A\006parent\312A/\n\025google.protobuf.Empty\022\026BatchOperationMetadata', ), ], ) diff --git a/google/cloud/vision_v1/proto/text_annotation_pb2.py b/google/cloud/vision_v1/proto/text_annotation_pb2.py index 2f416448..057fa606 100644 --- a/google/cloud/vision_v1/proto/text_annotation_pb2.py +++ b/google/cloud/vision_v1/proto/text_annotation_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1/proto/text_annotation.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -25,12 +22,8 @@ name="google/cloud/vision_v1/proto/text_annotation.proto", package="google.cloud.vision.v1", syntax="proto3", - serialized_options=_b( - "\n\032com.google.cloud.vision.v1B\023TextAnnotationProtoP\001Z.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType\x12\x11\n\tis_prefix\x18\x02 \x01(\x08"c\n\tBreakType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05SPACE\x10\x01\x12\x0e\n\nSURE_SPACE\x10\x02\x12\x12\n\x0e\x45OL_SURE_SPACE\x10\x03\x12\n\n\x06HYPHEN\x10\x04\x12\x0e\n\nLINE_BREAK\x10\x05\x1a\xb1\x01\n\x0cTextProperty\x12S\n\x12\x64\x65tected_languages\x18\x01 \x03(\x0b\x32\x37.google.cloud.vision.v1.TextAnnotation.DetectedLanguage\x12L\n\x0e\x64\x65tected_break\x18\x02 \x01(\x0b\x32\x34.google.cloud.vision.v1.TextAnnotation.DetectedBreak"\xaf\x01\n\x04Page\x12\x45\n\x08property\x18\x01 \x01(\x0b\x32\x33.google.cloud.vision.v1.TextAnnotation.TextProperty\x12\r\n\x05width\x18\x02 \x01(\x05\x12\x0e\n\x06height\x18\x03 \x01(\x05\x12-\n\x06\x62locks\x18\x04 \x03(\x0b\x32\x1d.google.cloud.vision.v1.Block\x12\x12\n\nconfidence\x18\x05 \x01(\x02"\xe6\x02\n\x05\x42lock\x12\x45\n\x08property\x18\x01 \x01(\x0b\x32\x33.google.cloud.vision.v1.TextAnnotation.TextProperty\x12:\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly\x12\x35\n\nparagraphs\x18\x03 \x03(\x0b\x32!.google.cloud.vision.v1.Paragraph\x12;\n\nblock_type\x18\x04 \x01(\x0e\x32\'.google.cloud.vision.v1.Block.BlockType\x12\x12\n\nconfidence\x18\x05 \x01(\x02"R\n\tBlockType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04TEXT\x10\x01\x12\t\n\x05TABLE\x10\x02\x12\x0b\n\x07PICTURE\x10\x03\x12\t\n\x05RULER\x10\x04\x12\x0b\n\x07\x42\x41RCODE\x10\x05"\xcf\x01\n\tParagraph\x12\x45\n\x08property\x18\x01 \x01(\x0b\x32\x33.google.cloud.vision.v1.TextAnnotation.TextProperty\x12:\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly\x12+\n\x05words\x18\x03 \x03(\x0b\x32\x1c.google.cloud.vision.v1.Word\x12\x12\n\nconfidence\x18\x04 \x01(\x02"\xce\x01\n\x04Word\x12\x45\n\x08property\x18\x01 \x01(\x0b\x32\x33.google.cloud.vision.v1.TextAnnotation.TextProperty\x12:\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly\x12/\n\x07symbols\x18\x03 \x03(\x0b\x32\x1e.google.cloud.vision.v1.Symbol\x12\x12\n\nconfidence\x18\x04 \x01(\x02"\xad\x01\n\x06Symbol\x12\x45\n\x08property\x18\x01 \x01(\x0b\x32\x33.google.cloud.vision.v1.TextAnnotation.TextProperty\x12:\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly\x12\x0c\n\x04text\x18\x03 \x01(\t\x12\x12\n\nconfidence\x18\x04 \x01(\x02\x42{\n\x1a\x63om.google.cloud.vision.v1B\x13TextAnnotationProtoP\x01Z.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType\x12\x11\n\tis_prefix\x18\x02 \x01(\x08"c\n\tBreakType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05SPACE\x10\x01\x12\x0e\n\nSURE_SPACE\x10\x02\x12\x12\n\x0e\x45OL_SURE_SPACE\x10\x03\x12\n\n\x06HYPHEN\x10\x04\x12\x0e\n\nLINE_BREAK\x10\x05\x1a\xb1\x01\n\x0cTextProperty\x12S\n\x12\x64\x65tected_languages\x18\x01 \x03(\x0b\x32\x37.google.cloud.vision.v1.TextAnnotation.DetectedLanguage\x12L\n\x0e\x64\x65tected_break\x18\x02 \x01(\x0b\x32\x34.google.cloud.vision.v1.TextAnnotation.DetectedBreak"\xaf\x01\n\x04Page\x12\x45\n\x08property\x18\x01 \x01(\x0b\x32\x33.google.cloud.vision.v1.TextAnnotation.TextProperty\x12\r\n\x05width\x18\x02 \x01(\x05\x12\x0e\n\x06height\x18\x03 \x01(\x05\x12-\n\x06\x62locks\x18\x04 \x03(\x0b\x32\x1d.google.cloud.vision.v1.Block\x12\x12\n\nconfidence\x18\x05 \x01(\x02"\xe6\x02\n\x05\x42lock\x12\x45\n\x08property\x18\x01 \x01(\x0b\x32\x33.google.cloud.vision.v1.TextAnnotation.TextProperty\x12:\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly\x12\x35\n\nparagraphs\x18\x03 \x03(\x0b\x32!.google.cloud.vision.v1.Paragraph\x12;\n\nblock_type\x18\x04 \x01(\x0e\x32\'.google.cloud.vision.v1.Block.BlockType\x12\x12\n\nconfidence\x18\x05 \x01(\x02"R\n\tBlockType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04TEXT\x10\x01\x12\t\n\x05TABLE\x10\x02\x12\x0b\n\x07PICTURE\x10\x03\x12\t\n\x05RULER\x10\x04\x12\x0b\n\x07\x42\x41RCODE\x10\x05"\xcf\x01\n\tParagraph\x12\x45\n\x08property\x18\x01 \x01(\x0b\x32\x33.google.cloud.vision.v1.TextAnnotation.TextProperty\x12:\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly\x12+\n\x05words\x18\x03 \x03(\x0b\x32\x1c.google.cloud.vision.v1.Word\x12\x12\n\nconfidence\x18\x04 \x01(\x02"\xce\x01\n\x04Word\x12\x45\n\x08property\x18\x01 \x01(\x0b\x32\x33.google.cloud.vision.v1.TextAnnotation.TextProperty\x12:\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly\x12/\n\x07symbols\x18\x03 \x03(\x0b\x32\x1e.google.cloud.vision.v1.Symbol\x12\x12\n\nconfidence\x18\x04 \x01(\x02"\xad\x01\n\x06Symbol\x12\x45\n\x08property\x18\x01 \x01(\x0b\x32\x33.google.cloud.vision.v1.TextAnnotation.TextProperty\x12:\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly\x12\x0c\n\x04text\x18\x03 \x01(\t\x12\x12\n\nconfidence\x18\x04 \x01(\x02\x42{\n\x1a\x63om.google.cloud.vision.v1B\x13TextAnnotationProtoP\x01Z 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. + "DESCRIPTOR": _TEXTANNOTATION, + "__module__": "google.cloud.vision_v1.proto.text_annotation_pb2", + "__doc__": """TextAnnotation contains a structured representation of OCR + extracted text. The hierarchy of an OCR extracted text structure is like + this: 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. + + Attributes: pages: List of pages detected by OCR. @@ -956,7 +958,7 @@ UTF-8 text detected on the pages. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1.TextAnnotation) - ), + }, ) _sym_db.RegisterMessage(TextAnnotation) _sym_db.RegisterMessage(TextAnnotation.DetectedLanguage) @@ -966,10 +968,12 @@ Page = _reflection.GeneratedProtocolMessageType( "Page", (_message.Message,), - dict( - DESCRIPTOR=_PAGE, - __module__="google.cloud.vision_v1.proto.text_annotation_pb2", - __doc__="""Detected page from OCR. + { + "DESCRIPTOR": _PAGE, + "__module__": "google.cloud.vision_v1.proto.text_annotation_pb2", + "__doc__": """Detected page from OCR. + + Attributes: property: Additional information detected on the page. @@ -985,17 +989,19 @@ Confidence of the OCR results on the page. Range [0, 1]. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1.Page) - ), + }, ) _sym_db.RegisterMessage(Page) Block = _reflection.GeneratedProtocolMessageType( "Block", (_message.Message,), - dict( - DESCRIPTOR=_BLOCK, - __module__="google.cloud.vision_v1.proto.text_annotation_pb2", - __doc__="""Logical element on the page. + { + "DESCRIPTOR": _BLOCK, + "__module__": "google.cloud.vision_v1.proto.text_annotation_pb2", + "__doc__": """Logical element on the page. + + Attributes: property: Additional information detected for the block. @@ -1004,12 +1010,12 @@ of top-left, top-right, bottom-right, bottom-left. When a rotation of the bounding box is detected the rotation is represented as around the top-left corner as defined when the - text is read in the 'natural' orientation. For example: - + text is read in the ‘natural’ orientation. For example: - when the text is horizontal it might look like: :: - 0----1 | | 3----2 - when it's rotated 180 + 0----1 | | 3----2 - when it’s rotated 180 degrees around the top-left corner it becomes: :: - 2----3 | | 1----0 and the vertex order will - still be (0, 1, 2, 3). + 2----3 | | 1----0 and the vertex order + will still be (0, 1, 2, 3). paragraphs: List of paragraphs in this block (if this blocks is of type text). @@ -1019,18 +1025,20 @@ Confidence of the OCR results on the block. Range [0, 1]. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1.Block) - ), + }, ) _sym_db.RegisterMessage(Block) Paragraph = _reflection.GeneratedProtocolMessageType( "Paragraph", (_message.Message,), - dict( - DESCRIPTOR=_PARAGRAPH, - __module__="google.cloud.vision_v1.proto.text_annotation_pb2", - __doc__="""Structural unit of text representing a number of words in certain - order. + { + "DESCRIPTOR": _PARAGRAPH, + "__module__": "google.cloud.vision_v1.proto.text_annotation_pb2", + "__doc__": """Structural unit of text representing a number of words in + certain order. + + Attributes: property: Additional information detected for the paragraph. @@ -1039,28 +1047,30 @@ order of top-left, top-right, bottom-right, bottom-left. When a rotation of the bounding box is detected the rotation is represented as around the top-left corner as defined when the - text is read in the 'natural' orientation. For example: \* - when the text is horizontal it might look like: 0----1 \| \| 3 - ----2 \* when it's rotated 180 degrees around the top-left - corner it becomes: 2----3 \| \| 1----0 and the vertex order - will still be (0, 1, 2, 3). + text is read in the ‘natural’ orientation. For example: \* + when the text is horizontal it might look like: 0—-1 \| \| + 3—-2 \* when it’s rotated 180 degrees around the top-left + corner it becomes: 2—-3 \| \| 1—-0 and the vertex order will + still be (0, 1, 2, 3). words: List of all words in this paragraph. confidence: Confidence of the OCR results for the paragraph. Range [0, 1]. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1.Paragraph) - ), + }, ) _sym_db.RegisterMessage(Paragraph) Word = _reflection.GeneratedProtocolMessageType( "Word", (_message.Message,), - dict( - DESCRIPTOR=_WORD, - __module__="google.cloud.vision_v1.proto.text_annotation_pb2", - __doc__="""A word representation. + { + "DESCRIPTOR": _WORD, + "__module__": "google.cloud.vision_v1.proto.text_annotation_pb2", + "__doc__": """A word representation. + + Attributes: property: Additional information detected for the word. @@ -1069,11 +1079,11 @@ of top-left, top-right, bottom-right, bottom-left. When a rotation of the bounding box is detected the rotation is represented as around the top-left corner as defined when the - text is read in the 'natural' orientation. For example: \* - when the text is horizontal it might look like: 0----1 \| \| 3 - ----2 \* when it's rotated 180 degrees around the top-left - corner it becomes: 2----3 \| \| 1----0 and the vertex order - will still be (0, 1, 2, 3). + text is read in the ‘natural’ orientation. For example: \* + when the text is horizontal it might look like: 0—-1 \| \| + 3—-2 \* when it’s rotated 180 degrees around the top-left + corner it becomes: 2—-3 \| \| 1—-0 and the vertex order will + still be (0, 1, 2, 3). symbols: List of symbols in the word. The order of the symbols follows the natural reading order. @@ -1081,17 +1091,19 @@ Confidence of the OCR results for the word. Range [0, 1]. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1.Word) - ), + }, ) _sym_db.RegisterMessage(Word) Symbol = _reflection.GeneratedProtocolMessageType( "Symbol", (_message.Message,), - dict( - DESCRIPTOR=_SYMBOL, - __module__="google.cloud.vision_v1.proto.text_annotation_pb2", - __doc__="""A single symbol representation. + { + "DESCRIPTOR": _SYMBOL, + "__module__": "google.cloud.vision_v1.proto.text_annotation_pb2", + "__doc__": """A single symbol representation. + + Attributes: property: Additional information detected for the symbol. @@ -1100,18 +1112,18 @@ of top-left, top-right, bottom-right, bottom-left. When a rotation of the bounding box is detected the rotation is represented as around the top-left corner as defined when the - text is read in the 'natural' orientation. For example: \* - when the text is horizontal it might look like: 0----1 \| \| 3 - ----2 \* when it's rotated 180 degrees around the top-left - corner it becomes: 2----3 \| \| 1----0 and the vertex order - will still be (0, 1, 2, 3). + text is read in the ‘natural’ orientation. For example: \* + when the text is horizontal it might look like: 0—-1 \| \| + 3—-2 \* when it’s rotated 180 degrees around the top-left + corner it becomes: 2—-3 \| \| 1—-0 and the vertex order will + still be (0, 1, 2, 3). text: The actual UTF-8 representation of the symbol. confidence: Confidence of the OCR results for the symbol. Range [0, 1]. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1.Symbol) - ), + }, ) _sym_db.RegisterMessage(Symbol) diff --git a/google/cloud/vision_v1/proto/web_detection_pb2.py b/google/cloud/vision_v1/proto/web_detection_pb2.py index 27473281..3ad99512 100644 --- a/google/cloud/vision_v1/proto/web_detection_pb2.py +++ b/google/cloud/vision_v1/proto/web_detection_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1/proto/web_detection.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -22,12 +19,8 @@ name="google/cloud/vision_v1/proto/web_detection.proto", package="google.cloud.vision.v1", syntax="proto3", - serialized_options=_b( - "\n\032com.google.cloud.vision.v1B\021WebDetectionProtoP\001Z\n\tlocations\x18\x08 \x03(\x0b\x32+.google.cloud.vision.v1p1beta1.LocationInfo\x12;\n\nproperties\x18\t \x03(\x0b\x32\'.google.cloud.vision.v1p1beta1.Property"\xbc\x02\n\x14SafeSearchAnnotation\x12\x38\n\x05\x61\x64ult\x18\x01 \x01(\x0e\x32).google.cloud.vision.v1p1beta1.Likelihood\x12\x38\n\x05spoof\x18\x02 \x01(\x0e\x32).google.cloud.vision.v1p1beta1.Likelihood\x12:\n\x07medical\x18\x03 \x01(\x0e\x32).google.cloud.vision.v1p1beta1.Likelihood\x12;\n\x08violence\x18\x04 \x01(\x0e\x32).google.cloud.vision.v1p1beta1.Likelihood\x12\x37\n\x04racy\x18\t \x01(\x0e\x32).google.cloud.vision.v1p1beta1.Likelihood"a\n\x0bLatLongRect\x12(\n\x0bmin_lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng\x12(\n\x0bmax_lat_lng\x18\x02 \x01(\x0b\x32\x13.google.type.LatLng"U\n\tColorInfo\x12!\n\x05\x63olor\x18\x01 \x01(\x0b\x32\x12.google.type.Color\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x16\n\x0epixel_fraction\x18\x03 \x01(\x02"T\n\x18\x44ominantColorsAnnotation\x12\x38\n\x06\x63olors\x18\x01 \x03(\x0b\x32(.google.cloud.vision.v1p1beta1.ColorInfo"c\n\x0fImageProperties\x12P\n\x0f\x64ominant_colors\x18\x01 \x01(\x0b\x32\x37.google.cloud.vision.v1p1beta1.DominantColorsAnnotation"\x7f\n\x08\x43ropHint\x12\x42\n\rbounding_poly\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p1beta1.BoundingPoly\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12\x1b\n\x13importance_fraction\x18\x03 \x01(\x02"R\n\x13\x43ropHintsAnnotation\x12;\n\ncrop_hints\x18\x01 \x03(\x0b\x32\'.google.cloud.vision.v1p1beta1.CropHint"(\n\x0f\x43ropHintsParams\x12\x15\n\raspect_ratios\x18\x01 \x03(\x02"1\n\x12WebDetectionParams\x12\x1b\n\x13include_geo_results\x18\x02 \x01(\x08"\x85\x02\n\x0cImageContext\x12\x41\n\rlat_long_rect\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p1beta1.LatLongRect\x12\x16\n\x0elanguage_hints\x18\x02 \x03(\t\x12I\n\x11\x63rop_hints_params\x18\x04 \x01(\x0b\x32..google.cloud.vision.v1p1beta1.CropHintsParams\x12O\n\x14web_detection_params\x18\x06 \x01(\x0b\x32\x31.google.cloud.vision.v1p1beta1.WebDetectionParams"\xc9\x01\n\x14\x41nnotateImageRequest\x12\x33\n\x05image\x18\x01 \x01(\x0b\x32$.google.cloud.vision.v1p1beta1.Image\x12\x38\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32&.google.cloud.vision.v1p1beta1.Feature\x12\x42\n\rimage_context\x18\x03 \x01(\x0b\x32+.google.cloud.vision.v1p1beta1.ImageContext"\xc2\x06\n\x15\x41nnotateImageResponse\x12G\n\x10\x66\x61\x63\x65_annotations\x18\x01 \x03(\x0b\x32-.google.cloud.vision.v1p1beta1.FaceAnnotation\x12M\n\x14landmark_annotations\x18\x02 \x03(\x0b\x32/.google.cloud.vision.v1p1beta1.EntityAnnotation\x12I\n\x10logo_annotations\x18\x03 \x03(\x0b\x32/.google.cloud.vision.v1p1beta1.EntityAnnotation\x12J\n\x11label_annotations\x18\x04 \x03(\x0b\x32/.google.cloud.vision.v1p1beta1.EntityAnnotation\x12I\n\x10text_annotations\x18\x05 \x03(\x0b\x32/.google.cloud.vision.v1p1beta1.EntityAnnotation\x12K\n\x14\x66ull_text_annotation\x18\x0c \x01(\x0b\x32-.google.cloud.vision.v1p1beta1.TextAnnotation\x12S\n\x16safe_search_annotation\x18\x06 \x01(\x0b\x32\x33.google.cloud.vision.v1p1beta1.SafeSearchAnnotation\x12S\n\x1bimage_properties_annotation\x18\x08 \x01(\x0b\x32..google.cloud.vision.v1p1beta1.ImageProperties\x12Q\n\x15\x63rop_hints_annotation\x18\x0b \x01(\x0b\x32\x32.google.cloud.vision.v1p1beta1.CropHintsAnnotation\x12\x42\n\rweb_detection\x18\r \x01(\x0b\x32+.google.cloud.vision.v1p1beta1.WebDetection\x12!\n\x05\x65rror\x18\t \x01(\x0b\x32\x12.google.rpc.Status"h\n\x1a\x42\x61tchAnnotateImagesRequest\x12J\n\x08requests\x18\x01 \x03(\x0b\x32\x33.google.cloud.vision.v1p1beta1.AnnotateImageRequestB\x03\xe0\x41\x02"f\n\x1b\x42\x61tchAnnotateImagesResponse\x12G\n\tresponses\x18\x01 \x03(\x0b\x32\x34.google.cloud.vision.v1p1beta1.AnnotateImageResponse*e\n\nLikelihood\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x11\n\rVERY_UNLIKELY\x10\x01\x12\x0c\n\x08UNLIKELY\x10\x02\x12\x0c\n\x08POSSIBLE\x10\x03\x12\n\n\x06LIKELY\x10\x04\x12\x0f\n\x0bVERY_LIKELY\x10\x05\x32\xc9\x02\n\x0eImageAnnotator\x12\xbe\x01\n\x13\x42\x61tchAnnotateImages\x12\x39.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest\x1a:.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse"0\x82\xd3\xe4\x93\x02\x1f"\x1a/v1p1beta1/images:annotate:\x01*\xda\x41\x08requests\x1av\xca\x41\x15vision.googleapis.com\xd2\x41[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-visionB\x82\x01\n!com.google.cloud.vision.v1p1beta1B\x13ImageAnnotatorProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p1beta1;vision\xf8\x01\x01\x62\x06proto3' - ), + serialized_options=b"\n!com.google.cloud.vision.v1p1beta1B\023ImageAnnotatorProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p1beta1;vision\370\001\001", + serialized_pb=b'\n9google/cloud/vision_v1p1beta1/proto/image_annotator.proto\x12\x1dgoogle.cloud.vision.v1p1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x32google/cloud/vision_v1p1beta1/proto/geometry.proto\x1a\x39google/cloud/vision_v1p1beta1/proto/text_annotation.proto\x1a\x37google/cloud/vision_v1p1beta1/proto/web_detection.proto\x1a\x17google/rpc/status.proto\x1a\x17google/type/color.proto\x1a\x18google/type/latlng.proto"\xe1\x02\n\x07\x46\x65\x61ture\x12\x39\n\x04type\x18\x01 \x01(\x0e\x32+.google.cloud.vision.v1p1beta1.Feature.Type\x12\x13\n\x0bmax_results\x18\x02 \x01(\x05\x12\r\n\x05model\x18\x03 \x01(\t"\xf6\x01\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x46\x41\x43\x45_DETECTION\x10\x01\x12\x16\n\x12LANDMARK_DETECTION\x10\x02\x12\x12\n\x0eLOGO_DETECTION\x10\x03\x12\x13\n\x0fLABEL_DETECTION\x10\x04\x12\x12\n\x0eTEXT_DETECTION\x10\x05\x12\x1b\n\x17\x44OCUMENT_TEXT_DETECTION\x10\x0b\x12\x19\n\x15SAFE_SEARCH_DETECTION\x10\x06\x12\x14\n\x10IMAGE_PROPERTIES\x10\x07\x12\x0e\n\nCROP_HINTS\x10\t\x12\x11\n\rWEB_DETECTION\x10\n"7\n\x0bImageSource\x12\x15\n\rgcs_image_uri\x18\x01 \x01(\t\x12\x11\n\timage_uri\x18\x02 \x01(\t"T\n\x05Image\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\x0c\x12:\n\x06source\x18\x02 \x01(\x0b\x32*.google.cloud.vision.v1p1beta1.ImageSource"\x9b\x0e\n\x0e\x46\x61\x63\x65\x41nnotation\x12\x42\n\rbounding_poly\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p1beta1.BoundingPoly\x12\x45\n\x10\x66\x64_bounding_poly\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p1beta1.BoundingPoly\x12I\n\tlandmarks\x18\x03 \x03(\x0b\x32\x36.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark\x12\x12\n\nroll_angle\x18\x04 \x01(\x02\x12\x11\n\tpan_angle\x18\x05 \x01(\x02\x12\x12\n\ntilt_angle\x18\x06 \x01(\x02\x12\x1c\n\x14\x64\x65tection_confidence\x18\x07 \x01(\x02\x12\x1e\n\x16landmarking_confidence\x18\x08 \x01(\x02\x12\x41\n\x0ejoy_likelihood\x18\t \x01(\x0e\x32).google.cloud.vision.v1p1beta1.Likelihood\x12\x44\n\x11sorrow_likelihood\x18\n \x01(\x0e\x32).google.cloud.vision.v1p1beta1.Likelihood\x12\x43\n\x10\x61nger_likelihood\x18\x0b \x01(\x0e\x32).google.cloud.vision.v1p1beta1.Likelihood\x12\x46\n\x13surprise_likelihood\x18\x0c \x01(\x0e\x32).google.cloud.vision.v1p1beta1.Likelihood\x12K\n\x18under_exposed_likelihood\x18\r \x01(\x0e\x32).google.cloud.vision.v1p1beta1.Likelihood\x12\x45\n\x12\x62lurred_likelihood\x18\x0e \x01(\x0e\x32).google.cloud.vision.v1p1beta1.Likelihood\x12\x46\n\x13headwear_likelihood\x18\x0f \x01(\x0e\x32).google.cloud.vision.v1p1beta1.Likelihood\x1a\xc7\x07\n\x08Landmark\x12I\n\x04type\x18\x03 \x01(\x0e\x32;.google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type\x12\x39\n\x08position\x18\x04 \x01(\x0b\x32\'.google.cloud.vision.v1p1beta1.Position"\xb4\x06\n\x04Type\x12\x14\n\x10UNKNOWN_LANDMARK\x10\x00\x12\x0c\n\x08LEFT_EYE\x10\x01\x12\r\n\tRIGHT_EYE\x10\x02\x12\x18\n\x14LEFT_OF_LEFT_EYEBROW\x10\x03\x12\x19\n\x15RIGHT_OF_LEFT_EYEBROW\x10\x04\x12\x19\n\x15LEFT_OF_RIGHT_EYEBROW\x10\x05\x12\x1a\n\x16RIGHT_OF_RIGHT_EYEBROW\x10\x06\x12\x19\n\x15MIDPOINT_BETWEEN_EYES\x10\x07\x12\x0c\n\x08NOSE_TIP\x10\x08\x12\r\n\tUPPER_LIP\x10\t\x12\r\n\tLOWER_LIP\x10\n\x12\x0e\n\nMOUTH_LEFT\x10\x0b\x12\x0f\n\x0bMOUTH_RIGHT\x10\x0c\x12\x10\n\x0cMOUTH_CENTER\x10\r\x12\x15\n\x11NOSE_BOTTOM_RIGHT\x10\x0e\x12\x14\n\x10NOSE_BOTTOM_LEFT\x10\x0f\x12\x16\n\x12NOSE_BOTTOM_CENTER\x10\x10\x12\x19\n\x15LEFT_EYE_TOP_BOUNDARY\x10\x11\x12\x19\n\x15LEFT_EYE_RIGHT_CORNER\x10\x12\x12\x1c\n\x18LEFT_EYE_BOTTOM_BOUNDARY\x10\x13\x12\x18\n\x14LEFT_EYE_LEFT_CORNER\x10\x14\x12\x1a\n\x16RIGHT_EYE_TOP_BOUNDARY\x10\x15\x12\x1a\n\x16RIGHT_EYE_RIGHT_CORNER\x10\x16\x12\x1d\n\x19RIGHT_EYE_BOTTOM_BOUNDARY\x10\x17\x12\x19\n\x15RIGHT_EYE_LEFT_CORNER\x10\x18\x12\x1f\n\x1bLEFT_EYEBROW_UPPER_MIDPOINT\x10\x19\x12 \n\x1cRIGHT_EYEBROW_UPPER_MIDPOINT\x10\x1a\x12\x14\n\x10LEFT_EAR_TRAGION\x10\x1b\x12\x15\n\x11RIGHT_EAR_TRAGION\x10\x1c\x12\x12\n\x0eLEFT_EYE_PUPIL\x10\x1d\x12\x13\n\x0fRIGHT_EYE_PUPIL\x10\x1e\x12\x15\n\x11\x46OREHEAD_GLABELLA\x10\x1f\x12\x11\n\rCHIN_GNATHION\x10 \x12\x14\n\x10\x43HIN_LEFT_GONION\x10!\x12\x15\n\x11\x43HIN_RIGHT_GONION\x10""4\n\x0cLocationInfo\x12$\n\x07lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng"=\n\x08Property\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x14\n\x0cuint64_value\x18\x03 \x01(\x04"\xbc\x02\n\x10\x45ntityAnnotation\x12\x0b\n\x03mid\x18\x01 \x01(\t\x12\x0e\n\x06locale\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\r\n\x05score\x18\x04 \x01(\x02\x12\x12\n\nconfidence\x18\x05 \x01(\x02\x12\x12\n\ntopicality\x18\x06 \x01(\x02\x12\x42\n\rbounding_poly\x18\x07 \x01(\x0b\x32+.google.cloud.vision.v1p1beta1.BoundingPoly\x12>\n\tlocations\x18\x08 \x03(\x0b\x32+.google.cloud.vision.v1p1beta1.LocationInfo\x12;\n\nproperties\x18\t \x03(\x0b\x32\'.google.cloud.vision.v1p1beta1.Property"\xbc\x02\n\x14SafeSearchAnnotation\x12\x38\n\x05\x61\x64ult\x18\x01 \x01(\x0e\x32).google.cloud.vision.v1p1beta1.Likelihood\x12\x38\n\x05spoof\x18\x02 \x01(\x0e\x32).google.cloud.vision.v1p1beta1.Likelihood\x12:\n\x07medical\x18\x03 \x01(\x0e\x32).google.cloud.vision.v1p1beta1.Likelihood\x12;\n\x08violence\x18\x04 \x01(\x0e\x32).google.cloud.vision.v1p1beta1.Likelihood\x12\x37\n\x04racy\x18\t \x01(\x0e\x32).google.cloud.vision.v1p1beta1.Likelihood"a\n\x0bLatLongRect\x12(\n\x0bmin_lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng\x12(\n\x0bmax_lat_lng\x18\x02 \x01(\x0b\x32\x13.google.type.LatLng"U\n\tColorInfo\x12!\n\x05\x63olor\x18\x01 \x01(\x0b\x32\x12.google.type.Color\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x16\n\x0epixel_fraction\x18\x03 \x01(\x02"T\n\x18\x44ominantColorsAnnotation\x12\x38\n\x06\x63olors\x18\x01 \x03(\x0b\x32(.google.cloud.vision.v1p1beta1.ColorInfo"c\n\x0fImageProperties\x12P\n\x0f\x64ominant_colors\x18\x01 \x01(\x0b\x32\x37.google.cloud.vision.v1p1beta1.DominantColorsAnnotation"\x7f\n\x08\x43ropHint\x12\x42\n\rbounding_poly\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p1beta1.BoundingPoly\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12\x1b\n\x13importance_fraction\x18\x03 \x01(\x02"R\n\x13\x43ropHintsAnnotation\x12;\n\ncrop_hints\x18\x01 \x03(\x0b\x32\'.google.cloud.vision.v1p1beta1.CropHint"(\n\x0f\x43ropHintsParams\x12\x15\n\raspect_ratios\x18\x01 \x03(\x02"1\n\x12WebDetectionParams\x12\x1b\n\x13include_geo_results\x18\x02 \x01(\x08"\x85\x02\n\x0cImageContext\x12\x41\n\rlat_long_rect\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p1beta1.LatLongRect\x12\x16\n\x0elanguage_hints\x18\x02 \x03(\t\x12I\n\x11\x63rop_hints_params\x18\x04 \x01(\x0b\x32..google.cloud.vision.v1p1beta1.CropHintsParams\x12O\n\x14web_detection_params\x18\x06 \x01(\x0b\x32\x31.google.cloud.vision.v1p1beta1.WebDetectionParams"\xc9\x01\n\x14\x41nnotateImageRequest\x12\x33\n\x05image\x18\x01 \x01(\x0b\x32$.google.cloud.vision.v1p1beta1.Image\x12\x38\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32&.google.cloud.vision.v1p1beta1.Feature\x12\x42\n\rimage_context\x18\x03 \x01(\x0b\x32+.google.cloud.vision.v1p1beta1.ImageContext"\xc2\x06\n\x15\x41nnotateImageResponse\x12G\n\x10\x66\x61\x63\x65_annotations\x18\x01 \x03(\x0b\x32-.google.cloud.vision.v1p1beta1.FaceAnnotation\x12M\n\x14landmark_annotations\x18\x02 \x03(\x0b\x32/.google.cloud.vision.v1p1beta1.EntityAnnotation\x12I\n\x10logo_annotations\x18\x03 \x03(\x0b\x32/.google.cloud.vision.v1p1beta1.EntityAnnotation\x12J\n\x11label_annotations\x18\x04 \x03(\x0b\x32/.google.cloud.vision.v1p1beta1.EntityAnnotation\x12I\n\x10text_annotations\x18\x05 \x03(\x0b\x32/.google.cloud.vision.v1p1beta1.EntityAnnotation\x12K\n\x14\x66ull_text_annotation\x18\x0c \x01(\x0b\x32-.google.cloud.vision.v1p1beta1.TextAnnotation\x12S\n\x16safe_search_annotation\x18\x06 \x01(\x0b\x32\x33.google.cloud.vision.v1p1beta1.SafeSearchAnnotation\x12S\n\x1bimage_properties_annotation\x18\x08 \x01(\x0b\x32..google.cloud.vision.v1p1beta1.ImageProperties\x12Q\n\x15\x63rop_hints_annotation\x18\x0b \x01(\x0b\x32\x32.google.cloud.vision.v1p1beta1.CropHintsAnnotation\x12\x42\n\rweb_detection\x18\r \x01(\x0b\x32+.google.cloud.vision.v1p1beta1.WebDetection\x12!\n\x05\x65rror\x18\t \x01(\x0b\x32\x12.google.rpc.Status"h\n\x1a\x42\x61tchAnnotateImagesRequest\x12J\n\x08requests\x18\x01 \x03(\x0b\x32\x33.google.cloud.vision.v1p1beta1.AnnotateImageRequestB\x03\xe0\x41\x02"f\n\x1b\x42\x61tchAnnotateImagesResponse\x12G\n\tresponses\x18\x01 \x03(\x0b\x32\x34.google.cloud.vision.v1p1beta1.AnnotateImageResponse*e\n\nLikelihood\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x11\n\rVERY_UNLIKELY\x10\x01\x12\x0c\n\x08UNLIKELY\x10\x02\x12\x0c\n\x08POSSIBLE\x10\x03\x12\n\n\x06LIKELY\x10\x04\x12\x0f\n\x0bVERY_LIKELY\x10\x05\x32\xc9\x02\n\x0eImageAnnotator\x12\xbe\x01\n\x13\x42\x61tchAnnotateImages\x12\x39.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest\x1a:.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse"0\x82\xd3\xe4\x93\x02\x1f"\x1a/v1p1beta1/images:annotate:\x01*\xda\x41\x08requests\x1av\xca\x41\x15vision.googleapis.com\xd2\x41[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-visionB\x82\x01\n!com.google.cloud.vision.v1p1beta1B\x13ImageAnnotatorProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p1beta1;vision\xf8\x01\x01\x62\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, google_dot_api_dot_client__pb2.DESCRIPTOR, @@ -452,7 +445,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -491,7 +484,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -509,7 +502,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -548,7 +541,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b(""), + default_value=b"", message_type=None, enum_type=None, containing_type=None, @@ -991,7 +984,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1009,7 +1002,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1066,7 +1059,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1084,7 +1077,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1102,7 +1095,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -2155,7 +2148,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ) ], @@ -2351,14 +2344,16 @@ Feature = _reflection.GeneratedProtocolMessageType( "Feature", (_message.Message,), - dict( - DESCRIPTOR=_FEATURE, - __module__="google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", - __doc__="""Users describe the type of Google Cloud Vision API tasks to perform - over images by using *Feature*\ s. Each Feature indicates a type of - image detection task to perform. Features encode the Cloud Vision API - vertical to operate on and the number of top-scoring results to - return. + { + "DESCRIPTOR": _FEATURE, + "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", + "__doc__": """Users describe the type of Google Cloud Vision API tasks + to perform over images by using *Feature*\ s. Each Feature indicates a + type of image detection task to perform. Features encode the Cloud + Vision API vertical to operate on and the number of top-scoring results + to return. + + Attributes: type: The feature type. @@ -2366,20 +2361,23 @@ Maximum number of results of this type. model: Model to use for the feature. Supported values: - "builtin/stable" (the default if unset) and "builtin/latest". + “builtin/stable” (the default if unset) and “builtin/latest”. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.Feature) - ), + }, ) _sym_db.RegisterMessage(Feature) ImageSource = _reflection.GeneratedProtocolMessageType( "ImageSource", (_message.Message,), - dict( - DESCRIPTOR=_IMAGESOURCE, - __module__="google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", - __doc__="""External image source (Google Cloud Storage image location). + { + "DESCRIPTOR": _IMAGESOURCE, + "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", + "__doc__": """External image source (Google Cloud Storage image + location). + + Attributes: gcs_image_uri: NOTE: For new code ``image_uri`` below is preferred. Google @@ -2401,17 +2399,20 @@ ``image_uri`` takes precedence. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.ImageSource) - ), + }, ) _sym_db.RegisterMessage(ImageSource) Image = _reflection.GeneratedProtocolMessageType( "Image", (_message.Message,), - dict( - DESCRIPTOR=_IMAGE, - __module__="google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", - __doc__="""Client image to perform Google Cloud Vision API tasks over. + { + "DESCRIPTOR": _IMAGE, + "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", + "__doc__": """Client image to perform Google Cloud Vision API tasks + over. + + Attributes: content: Image content, represented as a stream of bytes. Note: as with @@ -2424,21 +2425,23 @@ request. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.Image) - ), + }, ) _sym_db.RegisterMessage(Image) FaceAnnotation = _reflection.GeneratedProtocolMessageType( "FaceAnnotation", (_message.Message,), - dict( - Landmark=_reflection.GeneratedProtocolMessageType( + { + "Landmark": _reflection.GeneratedProtocolMessageType( "Landmark", (_message.Message,), - dict( - DESCRIPTOR=_FACEANNOTATION_LANDMARK, - __module__="google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", - __doc__="""A face-specific landmark (for example, a face feature). + { + "DESCRIPTOR": _FACEANNOTATION_LANDMARK, + "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", + "__doc__": """A face-specific landmark (for example, a face feature). + + Attributes: type: Face landmark type. @@ -2446,16 +2449,19 @@ Face landmark position. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark) - ), - ), - DESCRIPTOR=_FACEANNOTATION, - __module__="google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", - __doc__="""A face annotation object contains the results of face detection. + }, + ), + "DESCRIPTOR": _FACEANNOTATION, + "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", + "__doc__": """A face annotation object contains the results of face + detection. + + Attributes: bounding_poly: The bounding polygon around the face. The coordinates of the - bounding box are in the original image's scale, as returned in - ``ImageParams``. The bounding box is computed to "frame" the + bounding box are in the original image’s scale, as returned in + ``ImageParams``. The bounding box is computed to “frame” the face in accordance with human expectations. It is based on the landmarker results. Note that one or more x and/or y coordinates may not be generated in the ``BoundingPoly`` (the @@ -2465,7 +2471,7 @@ The ``fd_bounding_poly`` bounding polygon is tighter than the ``boundingPoly``, and encloses only the skin part of the face. Typically, it is used to eliminate the face from any image - analysis that detects the "amount of skin" visible in an + analysis that detects the “amount of skin” visible in an image. It is not based on the landmarker results, only on the initial face detection, hence the fd (face detection) prefix. landmarks: @@ -2480,7 +2486,7 @@ perpendicular to the image. Range [-180,180]. tilt_angle: Pitch angle, which indicates the upwards/downwards angle that - the face is pointing relative to the image's horizontal plane. + the face is pointing relative to the image’s horizontal plane. Range [-180,180]. detection_confidence: Detection confidence. Range [0, 1]. @@ -2502,7 +2508,7 @@ Headwear likelihood. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.FaceAnnotation) - ), + }, ) _sym_db.RegisterMessage(FaceAnnotation) _sym_db.RegisterMessage(FaceAnnotation.Landmark) @@ -2510,26 +2516,31 @@ LocationInfo = _reflection.GeneratedProtocolMessageType( "LocationInfo", (_message.Message,), - dict( - DESCRIPTOR=_LOCATIONINFO, - __module__="google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", - __doc__="""Detected entity location information. + { + "DESCRIPTOR": _LOCATIONINFO, + "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", + "__doc__": """Detected entity location information. + + Attributes: lat_lng: lat/long location coordinates. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.LocationInfo) - ), + }, ) _sym_db.RegisterMessage(LocationInfo) Property = _reflection.GeneratedProtocolMessageType( "Property", (_message.Message,), - dict( - DESCRIPTOR=_PROPERTY, - __module__="google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", - __doc__="""A ``Property`` consists of a user-supplied name/value pair. + { + "DESCRIPTOR": _PROPERTY, + "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", + "__doc__": """A ``Property`` consists of a user-supplied name/value + pair. + + Attributes: name: Name of the property. @@ -2539,17 +2550,19 @@ Value of numeric properties. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.Property) - ), + }, ) _sym_db.RegisterMessage(Property) EntityAnnotation = _reflection.GeneratedProtocolMessageType( "EntityAnnotation", (_message.Message,), - dict( - DESCRIPTOR=_ENTITYANNOTATION, - __module__="google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", - __doc__="""Set of detected entity features. + { + "DESCRIPTOR": _ENTITYANNOTATION, + "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", + "__doc__": """Set of detected entity features. + + Attributes: mid: Opaque entity ID. Some IDs may be available in `Google @@ -2565,13 +2578,13 @@ Overall score of the result. Range [0, 1]. confidence: The accuracy of the entity detection in an image. For example, - for an image in which the "Eiffel Tower" entity is detected, + for an image in which the “Eiffel Tower” entity is detected, this field represents the confidence that there is a tower in the query image. Range [0, 1]. topicality: The relevancy of the ICA (Image Content Annotation) label to - the image. For example, the relevancy of "tower" is likely - higher to an image containing the detected "Eiffel Tower" than + the image. For example, the relevancy of “tower” is likely + higher to an image containing the detected “Eiffel Tower” than to an image containing a detected distant towering building, even though the confidence that there is a tower in each image may be the same. Range [0, 1]. @@ -2591,19 +2604,21 @@ entity. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.EntityAnnotation) - ), + }, ) _sym_db.RegisterMessage(EntityAnnotation) SafeSearchAnnotation = _reflection.GeneratedProtocolMessageType( "SafeSearchAnnotation", (_message.Message,), - dict( - DESCRIPTOR=_SAFESEARCHANNOTATION, - __module__="google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", - __doc__="""Set of features pertaining to the image, computed by computer vision - methods over safe-search verticals (for example, adult, spoof, - medical, violence). + { + "DESCRIPTOR": _SAFESEARCHANNOTATION, + "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", + "__doc__": """Set of features pertaining to the image, computed by + computer vision methods over safe-search verticals (for example, adult, + spoof, medical, violence). + + Attributes: adult: Represents the adult content likelihood for the image. Adult @@ -2611,7 +2626,7 @@ images or cartoons, or sexual activities. spoof: Spoof likelihood. The likelihood that an modification was made - to the image's canonical version to make it appear funny or + to the image’s canonical version to make it appear funny or offensive. medical: Likelihood that this is a medical image. @@ -2624,17 +2639,19 @@ poses, or close-ups of sensitive body areas. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.SafeSearchAnnotation) - ), + }, ) _sym_db.RegisterMessage(SafeSearchAnnotation) LatLongRect = _reflection.GeneratedProtocolMessageType( "LatLongRect", (_message.Message,), - dict( - DESCRIPTOR=_LATLONGRECT, - __module__="google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", - __doc__="""Rectangle determined by min and max ``LatLng`` pairs. + { + "DESCRIPTOR": _LATLONGRECT, + "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", + "__doc__": """Rectangle determined by min and max ``LatLng`` pairs. + + Attributes: min_lat_lng: Min lat/long pair. @@ -2642,18 +2659,20 @@ Max lat/long pair. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.LatLongRect) - ), + }, ) _sym_db.RegisterMessage(LatLongRect) ColorInfo = _reflection.GeneratedProtocolMessageType( "ColorInfo", (_message.Message,), - dict( - DESCRIPTOR=_COLORINFO, - __module__="google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", - __doc__="""Color information consists of RGB channels, score, and the fraction of - the image that the color occupies in the image. + { + "DESCRIPTOR": _COLORINFO, + "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", + "__doc__": """Color information consists of RGB channels, score, and the + fraction of the image that the color occupies in the image. + + Attributes: color: RGB components of the color. @@ -2664,54 +2683,60 @@ in range [0, 1]. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.ColorInfo) - ), + }, ) _sym_db.RegisterMessage(ColorInfo) DominantColorsAnnotation = _reflection.GeneratedProtocolMessageType( "DominantColorsAnnotation", (_message.Message,), - dict( - DESCRIPTOR=_DOMINANTCOLORSANNOTATION, - __module__="google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", - __doc__="""Set of dominant colors and their corresponding scores. + { + "DESCRIPTOR": _DOMINANTCOLORSANNOTATION, + "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", + "__doc__": """Set of dominant colors and their corresponding scores. + + Attributes: colors: RGB color values with their score and pixel fraction. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.DominantColorsAnnotation) - ), + }, ) _sym_db.RegisterMessage(DominantColorsAnnotation) ImageProperties = _reflection.GeneratedProtocolMessageType( "ImageProperties", (_message.Message,), - dict( - DESCRIPTOR=_IMAGEPROPERTIES, - __module__="google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", - __doc__="""Stores image properties, such as dominant colors. + { + "DESCRIPTOR": _IMAGEPROPERTIES, + "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", + "__doc__": """Stores image properties, such as dominant colors. + + Attributes: dominant_colors: If present, dominant colors completed successfully. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.ImageProperties) - ), + }, ) _sym_db.RegisterMessage(ImageProperties) CropHint = _reflection.GeneratedProtocolMessageType( "CropHint", (_message.Message,), - dict( - DESCRIPTOR=_CROPHINT, - __module__="google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", - __doc__="""Single crop hint that is used to generate a new crop when serving an - image. + { + "DESCRIPTOR": _CROPHINT, + "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", + "__doc__": """Single crop hint that is used to generate a new crop when + serving an image. + + Attributes: bounding_poly: The bounding polygon for the crop region. The coordinates of - the bounding box are in the original image's scale, as + the bounding box are in the original image’s scale, as returned in ``ImageParams``. confidence: Confidence of this being a salient region. Range [0, 1]. @@ -2720,34 +2745,38 @@ the original image. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.CropHint) - ), + }, ) _sym_db.RegisterMessage(CropHint) CropHintsAnnotation = _reflection.GeneratedProtocolMessageType( "CropHintsAnnotation", (_message.Message,), - dict( - DESCRIPTOR=_CROPHINTSANNOTATION, - __module__="google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", - __doc__="""Set of crop hints that are used to generate new crops when serving - images. + { + "DESCRIPTOR": _CROPHINTSANNOTATION, + "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", + "__doc__": """Set of crop hints that are used to generate new crops when + serving images. + + Attributes: crop_hints: Crop hint results. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.CropHintsAnnotation) - ), + }, ) _sym_db.RegisterMessage(CropHintsAnnotation) CropHintsParams = _reflection.GeneratedProtocolMessageType( "CropHintsParams", (_message.Message,), - dict( - DESCRIPTOR=_CROPHINTSPARAMS, - __module__="google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", - __doc__="""Parameters for crop hints annotation request. + { + "DESCRIPTOR": _CROPHINTSPARAMS, + "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", + "__doc__": """Parameters for crop hints annotation request. + + Attributes: aspect_ratios: Aspect ratios in floats, representing the ratio of the width @@ -2758,47 +2787,51 @@ 16; any aspect ratios provided after the 16th are ignored. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.CropHintsParams) - ), + }, ) _sym_db.RegisterMessage(CropHintsParams) WebDetectionParams = _reflection.GeneratedProtocolMessageType( "WebDetectionParams", (_message.Message,), - dict( - DESCRIPTOR=_WEBDETECTIONPARAMS, - __module__="google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", - __doc__="""Parameters for web detection request. + { + "DESCRIPTOR": _WEBDETECTIONPARAMS, + "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", + "__doc__": """Parameters for web detection request. + + Attributes: include_geo_results: Whether to include results derived from the geo information in the image. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.WebDetectionParams) - ), + }, ) _sym_db.RegisterMessage(WebDetectionParams) ImageContext = _reflection.GeneratedProtocolMessageType( "ImageContext", (_message.Message,), - dict( - DESCRIPTOR=_IMAGECONTEXT, - __module__="google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", - __doc__="""Image context and/or feature-specific parameters. + { + "DESCRIPTOR": _IMAGECONTEXT, + "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", + "__doc__": """Image context and/or feature-specific parameters. + + Attributes: lat_long_rect: lat/long rectangle that specifies the location of the image. language_hints: - List of languages to use for TEXT\_DETECTION. In most cases, - an empty value yields the best results since it enables - automatic language detection. For languages based on the Latin - alphabet, setting ``language_hints`` is not needed. In rare - cases, when the language of the text in the image is known, - setting a hint will help get better results (although it will - be a significant hindrance if the hint is wrong). Text - detection returns an error if one or more of the specified - languages is not one of the `supported languages + List of languages to use for TEXT_DETECTION. In most cases, an + empty value yields the best results since it enables automatic + language detection. For languages based on the Latin alphabet, + setting ``language_hints`` is not needed. In rare cases, when + the language of the text in the image is known, setting a hint + will help get better results (although it will be a + significant hindrance if the hint is wrong). Text detection + returns an error if one or more of the specified languages is + not one of the `supported languages `__. crop_hints_params: Parameters for crop hints annotation request. @@ -2806,18 +2839,20 @@ Parameters for web detection. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.ImageContext) - ), + }, ) _sym_db.RegisterMessage(ImageContext) AnnotateImageRequest = _reflection.GeneratedProtocolMessageType( "AnnotateImageRequest", (_message.Message,), - dict( - DESCRIPTOR=_ANNOTATEIMAGEREQUEST, - __module__="google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", - __doc__="""Request for performing Google Cloud Vision API tasks over a user- - provided image, with user-requested features. + { + "DESCRIPTOR": _ANNOTATEIMAGEREQUEST, + "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", + "__doc__": """Request for performing Google Cloud Vision API tasks over + a user-provided image, with user-requested features. + + Attributes: image: The image to be processed. @@ -2827,17 +2862,19 @@ Additional context that may accompany the image. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.AnnotateImageRequest) - ), + }, ) _sym_db.RegisterMessage(AnnotateImageRequest) AnnotateImageResponse = _reflection.GeneratedProtocolMessageType( "AnnotateImageResponse", (_message.Message,), - dict( - DESCRIPTOR=_ANNOTATEIMAGERESPONSE, - __module__="google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", - __doc__="""Response to an image annotation request. + { + "DESCRIPTOR": _ANNOTATEIMAGERESPONSE, + "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", + "__doc__": """Response to an image annotation request. + + Attributes: face_annotations: If present, face detection has completed successfully. @@ -2867,41 +2904,45 @@ even when ``error`` is set. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.AnnotateImageResponse) - ), + }, ) _sym_db.RegisterMessage(AnnotateImageResponse) BatchAnnotateImagesRequest = _reflection.GeneratedProtocolMessageType( "BatchAnnotateImagesRequest", (_message.Message,), - dict( - DESCRIPTOR=_BATCHANNOTATEIMAGESREQUEST, - __module__="google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", - __doc__="""Multiple image annotation requests are batched into a single service - call. + { + "DESCRIPTOR": _BATCHANNOTATEIMAGESREQUEST, + "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", + "__doc__": """Multiple image annotation requests are batched into a + single service call. + + Attributes: requests: Required. Individual image annotation requests for this batch. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest) - ), + }, ) _sym_db.RegisterMessage(BatchAnnotateImagesRequest) BatchAnnotateImagesResponse = _reflection.GeneratedProtocolMessageType( "BatchAnnotateImagesResponse", (_message.Message,), - dict( - DESCRIPTOR=_BATCHANNOTATEIMAGESRESPONSE, - __module__="google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", - __doc__="""Response to a batch image annotation request. + { + "DESCRIPTOR": _BATCHANNOTATEIMAGESRESPONSE, + "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", + "__doc__": """Response to a batch image annotation request. + + Attributes: responses: Individual responses to image annotation requests within the batch. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse) - ), + }, ) _sym_db.RegisterMessage(BatchAnnotateImagesResponse) @@ -2914,9 +2955,7 @@ full_name="google.cloud.vision.v1p1beta1.ImageAnnotator", file=DESCRIPTOR, index=0, - serialized_options=_b( - "\312A\025vision.googleapis.com\322A[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-vision" - ), + serialized_options=b"\312A\025vision.googleapis.com\322A[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-vision", serialized_start=5798, serialized_end=6127, methods=[ @@ -2927,9 +2966,7 @@ containing_service=None, input_type=_BATCHANNOTATEIMAGESREQUEST, output_type=_BATCHANNOTATEIMAGESRESPONSE, - serialized_options=_b( - '\202\323\344\223\002\037"\032/v1p1beta1/images:annotate:\001*\332A\010requests' - ), + serialized_options=b'\202\323\344\223\002\037"\032/v1p1beta1/images:annotate:\001*\332A\010requests', ) ], ) diff --git a/google/cloud/vision_v1p1beta1/proto/text_annotation_pb2.py b/google/cloud/vision_v1p1beta1/proto/text_annotation_pb2.py index 30cc2112..812332b3 100644 --- a/google/cloud/vision_v1p1beta1/proto/text_annotation_pb2.py +++ b/google/cloud/vision_v1p1beta1/proto/text_annotation_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1p1beta1/proto/text_annotation.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -25,12 +22,8 @@ name="google/cloud/vision_v1p1beta1/proto/text_annotation.proto", package="google.cloud.vision.v1p1beta1", syntax="proto3", - serialized_options=_b( - "\n!com.google.cloud.vision.v1p1beta1B\023TextAnnotationProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p1beta1;vision\370\001\001" - ), - serialized_pb=_b( - '\n9google/cloud/vision_v1p1beta1/proto/text_annotation.proto\x12\x1dgoogle.cloud.vision.v1p1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x32google/cloud/vision_v1p1beta1/proto/geometry.proto"\xb2\x04\n\x0eTextAnnotation\x12\x32\n\x05pages\x18\x01 \x03(\x0b\x32#.google.cloud.vision.v1p1beta1.Page\x12\x0c\n\x04text\x18\x02 \x01(\t\x1a=\n\x10\x44\x65tectedLanguage\x12\x15\n\rlanguage_code\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x1a\xdc\x01\n\rDetectedBreak\x12S\n\x04type\x18\x01 \x01(\x0e\x32\x45.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType\x12\x11\n\tis_prefix\x18\x02 \x01(\x08"c\n\tBreakType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05SPACE\x10\x01\x12\x0e\n\nSURE_SPACE\x10\x02\x12\x12\n\x0e\x45OL_SURE_SPACE\x10\x03\x12\n\n\x06HYPHEN\x10\x04\x12\x0e\n\nLINE_BREAK\x10\x05\x1a\xbf\x01\n\x0cTextProperty\x12Z\n\x12\x64\x65tected_languages\x18\x01 \x03(\x0b\x32>.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage\x12S\n\x0e\x64\x65tected_break\x18\x02 \x01(\x0b\x32;.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak"\xbd\x01\n\x04Page\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty\x12\r\n\x05width\x18\x02 \x01(\x05\x12\x0e\n\x06height\x18\x03 \x01(\x05\x12\x34\n\x06\x62locks\x18\x04 \x03(\x0b\x32$.google.cloud.vision.v1p1beta1.Block\x12\x12\n\nconfidence\x18\x05 \x01(\x02"\x82\x03\n\x05\x42lock\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p1beta1.BoundingPoly\x12<\n\nparagraphs\x18\x03 \x03(\x0b\x32(.google.cloud.vision.v1p1beta1.Paragraph\x12\x42\n\nblock_type\x18\x04 \x01(\x0e\x32..google.cloud.vision.v1p1beta1.Block.BlockType\x12\x12\n\nconfidence\x18\x05 \x01(\x02"R\n\tBlockType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04TEXT\x10\x01\x12\t\n\x05TABLE\x10\x02\x12\x0b\n\x07PICTURE\x10\x03\x12\t\n\x05RULER\x10\x04\x12\x0b\n\x07\x42\x41RCODE\x10\x05"\xe4\x01\n\tParagraph\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p1beta1.BoundingPoly\x12\x32\n\x05words\x18\x03 \x03(\x0b\x32#.google.cloud.vision.v1p1beta1.Word\x12\x12\n\nconfidence\x18\x04 \x01(\x02"\xe3\x01\n\x04Word\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p1beta1.BoundingPoly\x12\x36\n\x07symbols\x18\x03 \x03(\x0b\x32%.google.cloud.vision.v1p1beta1.Symbol\x12\x12\n\nconfidence\x18\x04 \x01(\x02"\xbb\x01\n\x06Symbol\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p1beta1.BoundingPoly\x12\x0c\n\x04text\x18\x03 \x01(\t\x12\x12\n\nconfidence\x18\x04 \x01(\x02\x42\x82\x01\n!com.google.cloud.vision.v1p1beta1B\x13TextAnnotationProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p1beta1;vision\xf8\x01\x01\x62\x06proto3' - ), + serialized_options=b"\n!com.google.cloud.vision.v1p1beta1B\023TextAnnotationProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p1beta1;vision\370\001\001", + serialized_pb=b'\n9google/cloud/vision_v1p1beta1/proto/text_annotation.proto\x12\x1dgoogle.cloud.vision.v1p1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x32google/cloud/vision_v1p1beta1/proto/geometry.proto"\xb2\x04\n\x0eTextAnnotation\x12\x32\n\x05pages\x18\x01 \x03(\x0b\x32#.google.cloud.vision.v1p1beta1.Page\x12\x0c\n\x04text\x18\x02 \x01(\t\x1a=\n\x10\x44\x65tectedLanguage\x12\x15\n\rlanguage_code\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x1a\xdc\x01\n\rDetectedBreak\x12S\n\x04type\x18\x01 \x01(\x0e\x32\x45.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType\x12\x11\n\tis_prefix\x18\x02 \x01(\x08"c\n\tBreakType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05SPACE\x10\x01\x12\x0e\n\nSURE_SPACE\x10\x02\x12\x12\n\x0e\x45OL_SURE_SPACE\x10\x03\x12\n\n\x06HYPHEN\x10\x04\x12\x0e\n\nLINE_BREAK\x10\x05\x1a\xbf\x01\n\x0cTextProperty\x12Z\n\x12\x64\x65tected_languages\x18\x01 \x03(\x0b\x32>.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage\x12S\n\x0e\x64\x65tected_break\x18\x02 \x01(\x0b\x32;.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak"\xbd\x01\n\x04Page\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty\x12\r\n\x05width\x18\x02 \x01(\x05\x12\x0e\n\x06height\x18\x03 \x01(\x05\x12\x34\n\x06\x62locks\x18\x04 \x03(\x0b\x32$.google.cloud.vision.v1p1beta1.Block\x12\x12\n\nconfidence\x18\x05 \x01(\x02"\x82\x03\n\x05\x42lock\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p1beta1.BoundingPoly\x12<\n\nparagraphs\x18\x03 \x03(\x0b\x32(.google.cloud.vision.v1p1beta1.Paragraph\x12\x42\n\nblock_type\x18\x04 \x01(\x0e\x32..google.cloud.vision.v1p1beta1.Block.BlockType\x12\x12\n\nconfidence\x18\x05 \x01(\x02"R\n\tBlockType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04TEXT\x10\x01\x12\t\n\x05TABLE\x10\x02\x12\x0b\n\x07PICTURE\x10\x03\x12\t\n\x05RULER\x10\x04\x12\x0b\n\x07\x42\x41RCODE\x10\x05"\xe4\x01\n\tParagraph\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p1beta1.BoundingPoly\x12\x32\n\x05words\x18\x03 \x03(\x0b\x32#.google.cloud.vision.v1p1beta1.Word\x12\x12\n\nconfidence\x18\x04 \x01(\x02"\xe3\x01\n\x04Word\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p1beta1.BoundingPoly\x12\x36\n\x07symbols\x18\x03 \x03(\x0b\x32%.google.cloud.vision.v1p1beta1.Symbol\x12\x12\n\nconfidence\x18\x04 \x01(\x02"\xbb\x01\n\x06Symbol\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p1beta1.BoundingPoly\x12\x0c\n\x04text\x18\x03 \x01(\t\x12\x12\n\nconfidence\x18\x04 \x01(\x02\x42\x82\x01\n!com.google.cloud.vision.v1p1beta1B\x13TextAnnotationProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p1beta1;vision\xf8\x01\x01\x62\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, google_dot_cloud_dot_vision__v1p1beta1_dot_proto_dot_geometry__pb2.DESCRIPTOR, @@ -119,7 +112,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -305,7 +298,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -792,7 +785,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -888,32 +881,36 @@ TextAnnotation = _reflection.GeneratedProtocolMessageType( "TextAnnotation", (_message.Message,), - dict( - DetectedLanguage=_reflection.GeneratedProtocolMessageType( + { + "DetectedLanguage": _reflection.GeneratedProtocolMessageType( "DetectedLanguage", (_message.Message,), - dict( - DESCRIPTOR=_TEXTANNOTATION_DETECTEDLANGUAGE, - __module__="google.cloud.vision_v1p1beta1.proto.text_annotation_pb2", - __doc__="""Detected language for a structural component. + { + "DESCRIPTOR": _TEXTANNOTATION_DETECTEDLANGUAGE, + "__module__": "google.cloud.vision_v1p1beta1.proto.text_annotation_pb2", + "__doc__": """Detected language for a structural component. + + Attributes: language_code: - The BCP-47 language code, such as "en-US" or "sr-Latn". For + The BCP-47 language code, such as “en-US” or “sr-Latn”. For more information, see http://www.unicode.org/reports/tr35/#Uni - code\_locale\_identifier. + code_locale_identifier. confidence: Confidence of detected language. Range [0, 1]. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage) - ), + }, ), - DetectedBreak=_reflection.GeneratedProtocolMessageType( + "DetectedBreak": _reflection.GeneratedProtocolMessageType( "DetectedBreak", (_message.Message,), - dict( - DESCRIPTOR=_TEXTANNOTATION_DETECTEDBREAK, - __module__="google.cloud.vision_v1p1beta1.proto.text_annotation_pb2", - __doc__="""Detected start or end of a structural component. + { + "DESCRIPTOR": _TEXTANNOTATION_DETECTEDBREAK, + "__module__": "google.cloud.vision_v1p1beta1.proto.text_annotation_pb2", + "__doc__": """Detected start or end of a structural component. + + Attributes: type: Detected break type. @@ -921,15 +918,18 @@ True if break prepends the element. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak) - ), + }, ), - TextProperty=_reflection.GeneratedProtocolMessageType( + "TextProperty": _reflection.GeneratedProtocolMessageType( "TextProperty", (_message.Message,), - dict( - DESCRIPTOR=_TEXTANNOTATION_TEXTPROPERTY, - __module__="google.cloud.vision_v1p1beta1.proto.text_annotation_pb2", - __doc__="""Additional information detected on the structural component. + { + "DESCRIPTOR": _TEXTANNOTATION_TEXTPROPERTY, + "__module__": "google.cloud.vision_v1p1beta1.proto.text_annotation_pb2", + "__doc__": """Additional information detected on the structural + component. + + Attributes: detected_languages: A list of detected languages together with confidence. @@ -937,18 +937,20 @@ Detected start or end of a text segment. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty) - ), + }, ), - DESCRIPTOR=_TEXTANNOTATION, - __module__="google.cloud.vision_v1p1beta1.proto.text_annotation_pb2", - __doc__="""TextAnnotation contains a structured representation of OCR extracted - text. The hierarchy of an OCR extracted text structure is like this: - 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. - v1p1beta1.TextAnnotation.TextProperty] message definition below for - more detail. + "DESCRIPTOR": _TEXTANNOTATION, + "__module__": "google.cloud.vision_v1p1beta1.proto.text_annotation_pb2", + "__doc__": """TextAnnotation contains a structured representation of OCR + extracted text. The hierarchy of an OCR extracted text structure is like + this: 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.v1p1beta1.TextAnnotation.TextProperty] + message definition below for more detail. + + Attributes: pages: List of pages detected by OCR. @@ -956,7 +958,7 @@ UTF-8 text detected on the pages. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.TextAnnotation) - ), + }, ) _sym_db.RegisterMessage(TextAnnotation) _sym_db.RegisterMessage(TextAnnotation.DetectedLanguage) @@ -966,10 +968,12 @@ Page = _reflection.GeneratedProtocolMessageType( "Page", (_message.Message,), - dict( - DESCRIPTOR=_PAGE, - __module__="google.cloud.vision_v1p1beta1.proto.text_annotation_pb2", - __doc__="""Detected page from OCR. + { + "DESCRIPTOR": _PAGE, + "__module__": "google.cloud.vision_v1p1beta1.proto.text_annotation_pb2", + "__doc__": """Detected page from OCR. + + Attributes: property: Additional information detected on the page. @@ -983,17 +987,19 @@ Confidence of the OCR results on the page. Range [0, 1]. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.Page) - ), + }, ) _sym_db.RegisterMessage(Page) Block = _reflection.GeneratedProtocolMessageType( "Block", (_message.Message,), - dict( - DESCRIPTOR=_BLOCK, - __module__="google.cloud.vision_v1p1beta1.proto.text_annotation_pb2", - __doc__="""Logical element on the page. + { + "DESCRIPTOR": _BLOCK, + "__module__": "google.cloud.vision_v1p1beta1.proto.text_annotation_pb2", + "__doc__": """Logical element on the page. + + Attributes: property: Additional information detected for the block. @@ -1002,11 +1008,11 @@ of top-left, top-right, bottom-right, bottom-left. When a rotation of the bounding box is detected the rotation is represented as around the top-left corner as defined when the - text is read in the 'natural' orientation. For example: \* - when the text is horizontal it might look like: 0----1 \| \| 3 - ----2 \* when it's rotated 180 degrees around the top-left - corner it becomes: 2----3 \| \| 1----0 and the vertice order - will still be (0, 1, 2, 3). + text is read in the ‘natural’ orientation. For example: \* + when the text is horizontal it might look like: 0—-1 \| \| + 3—-2 \* when it’s rotated 180 degrees around the top-left + corner it becomes: 2—-3 \| \| 1—-0 and the vertice order will + still be (0, 1, 2, 3). paragraphs: List of paragraphs in this block (if this blocks is of type text). @@ -1016,18 +1022,20 @@ Confidence of the OCR results on the block. Range [0, 1]. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.Block) - ), + }, ) _sym_db.RegisterMessage(Block) Paragraph = _reflection.GeneratedProtocolMessageType( "Paragraph", (_message.Message,), - dict( - DESCRIPTOR=_PARAGRAPH, - __module__="google.cloud.vision_v1p1beta1.proto.text_annotation_pb2", - __doc__="""Structural unit of text representing a number of words in certain - order. + { + "DESCRIPTOR": _PARAGRAPH, + "__module__": "google.cloud.vision_v1p1beta1.proto.text_annotation_pb2", + "__doc__": """Structural unit of text representing a number of words in + certain order. + + Attributes: property: Additional information detected for the paragraph. @@ -1036,28 +1044,30 @@ order of top-left, top-right, bottom-right, bottom-left. When a rotation of the bounding box is detected the rotation is represented as around the top-left corner as defined when the - text is read in the 'natural' orientation. For example: \* - when the text is horizontal it might look like: 0----1 \| \| 3 - ----2 \* when it's rotated 180 degrees around the top-left - corner it becomes: 2----3 \| \| 1----0 and the vertice order - will still be (0, 1, 2, 3). + text is read in the ‘natural’ orientation. For example: \* + when the text is horizontal it might look like: 0—-1 \| \| + 3—-2 \* when it’s rotated 180 degrees around the top-left + corner it becomes: 2—-3 \| \| 1—-0 and the vertice order will + still be (0, 1, 2, 3). words: List of words in this paragraph. confidence: Confidence of the OCR results for the paragraph. Range [0, 1]. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.Paragraph) - ), + }, ) _sym_db.RegisterMessage(Paragraph) Word = _reflection.GeneratedProtocolMessageType( "Word", (_message.Message,), - dict( - DESCRIPTOR=_WORD, - __module__="google.cloud.vision_v1p1beta1.proto.text_annotation_pb2", - __doc__="""A word representation. + { + "DESCRIPTOR": _WORD, + "__module__": "google.cloud.vision_v1p1beta1.proto.text_annotation_pb2", + "__doc__": """A word representation. + + Attributes: property: Additional information detected for the word. @@ -1066,11 +1076,11 @@ of top-left, top-right, bottom-right, bottom-left. When a rotation of the bounding box is detected the rotation is represented as around the top-left corner as defined when the - text is read in the 'natural' orientation. For example: \* - when the text is horizontal it might look like: 0----1 \| \| 3 - ----2 \* when it's rotated 180 degrees around the top-left - corner it becomes: 2----3 \| \| 1----0 and the vertice order - will still be (0, 1, 2, 3). + text is read in the ‘natural’ orientation. For example: \* + when the text is horizontal it might look like: 0—-1 \| \| + 3—-2 \* when it’s rotated 180 degrees around the top-left + corner it becomes: 2—-3 \| \| 1—-0 and the vertice order will + still be (0, 1, 2, 3). symbols: List of symbols in the word. The order of the symbols follows the natural reading order. @@ -1078,17 +1088,19 @@ Confidence of the OCR results for the word. Range [0, 1]. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.Word) - ), + }, ) _sym_db.RegisterMessage(Word) Symbol = _reflection.GeneratedProtocolMessageType( "Symbol", (_message.Message,), - dict( - DESCRIPTOR=_SYMBOL, - __module__="google.cloud.vision_v1p1beta1.proto.text_annotation_pb2", - __doc__="""A single symbol representation. + { + "DESCRIPTOR": _SYMBOL, + "__module__": "google.cloud.vision_v1p1beta1.proto.text_annotation_pb2", + "__doc__": """A single symbol representation. + + Attributes: property: Additional information detected for the symbol. @@ -1097,18 +1109,18 @@ of top-left, top-right, bottom-right, bottom-left. When a rotation of the bounding box is detected the rotation is represented as around the top-left corner as defined when the - text is read in the 'natural' orientation. For example: \* - when the text is horizontal it might look like: 0----1 \| \| 3 - ----2 \* when it's rotated 180 degrees around the top-left - corner it becomes: 2----3 \| \| 1----0 and the vertice order - will still be (0, 1, 2, 3). + text is read in the ‘natural’ orientation. For example: \* + when the text is horizontal it might look like: 0—-1 \| \| + 3—-2 \* when it’s rotated 180 degrees around the top-left + corner it becomes: 2—-3 \| \| 1—-0 and the vertice order will + still be (0, 1, 2, 3). text: The actual UTF-8 representation of the symbol. confidence: Confidence of the OCR results for the symbol. Range [0, 1]. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.Symbol) - ), + }, ) _sym_db.RegisterMessage(Symbol) diff --git a/google/cloud/vision_v1p1beta1/proto/web_detection_pb2.py b/google/cloud/vision_v1p1beta1/proto/web_detection_pb2.py index e7aaf585..172e7201 100644 --- a/google/cloud/vision_v1p1beta1/proto/web_detection_pb2.py +++ b/google/cloud/vision_v1p1beta1/proto/web_detection_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1p1beta1/proto/web_detection.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -22,12 +19,8 @@ name="google/cloud/vision_v1p1beta1/proto/web_detection.proto", package="google.cloud.vision.v1p1beta1", syntax="proto3", - serialized_options=_b( - "\n!com.google.cloud.vision.v1p1beta1B\021WebDetectionProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p1beta1;vision\370\001\001" - ), - serialized_pb=_b( - '\n7google/cloud/vision_v1p1beta1/proto/web_detection.proto\x12\x1dgoogle.cloud.vision.v1p1beta1\x1a\x1cgoogle/api/annotations.proto"\x8c\x07\n\x0cWebDetection\x12K\n\x0cweb_entities\x18\x01 \x03(\x0b\x32\x35.google.cloud.vision.v1p1beta1.WebDetection.WebEntity\x12R\n\x14\x66ull_matching_images\x18\x02 \x03(\x0b\x32\x34.google.cloud.vision.v1p1beta1.WebDetection.WebImage\x12U\n\x17partial_matching_images\x18\x03 \x03(\x0b\x32\x34.google.cloud.vision.v1p1beta1.WebDetection.WebImage\x12W\n\x1apages_with_matching_images\x18\x04 \x03(\x0b\x32\x33.google.cloud.vision.v1p1beta1.WebDetection.WebPage\x12U\n\x17visually_similar_images\x18\x06 \x03(\x0b\x32\x34.google.cloud.vision.v1p1beta1.WebDetection.WebImage\x12O\n\x11\x62\x65st_guess_labels\x18\x08 \x03(\x0b\x32\x34.google.cloud.vision.v1p1beta1.WebDetection.WebLabel\x1a\x42\n\tWebEntity\x12\x11\n\tentity_id\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x1a&\n\x08WebImage\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x1a\xe4\x01\n\x07WebPage\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x12\n\npage_title\x18\x03 \x01(\t\x12R\n\x14\x66ull_matching_images\x18\x04 \x03(\x0b\x32\x34.google.cloud.vision.v1p1beta1.WebDetection.WebImage\x12U\n\x17partial_matching_images\x18\x05 \x03(\x0b\x32\x34.google.cloud.vision.v1p1beta1.WebDetection.WebImage\x1a\x30\n\x08WebLabel\x12\r\n\x05label\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x02 \x01(\tB\x80\x01\n!com.google.cloud.vision.v1p1beta1B\x11WebDetectionProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p1beta1;vision\xf8\x01\x01\x62\x06proto3' - ), + serialized_options=b"\n!com.google.cloud.vision.v1p1beta1B\021WebDetectionProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p1beta1;vision\370\001\001", + serialized_pb=b'\n7google/cloud/vision_v1p1beta1/proto/web_detection.proto\x12\x1dgoogle.cloud.vision.v1p1beta1\x1a\x1cgoogle/api/annotations.proto"\x8c\x07\n\x0cWebDetection\x12K\n\x0cweb_entities\x18\x01 \x03(\x0b\x32\x35.google.cloud.vision.v1p1beta1.WebDetection.WebEntity\x12R\n\x14\x66ull_matching_images\x18\x02 \x03(\x0b\x32\x34.google.cloud.vision.v1p1beta1.WebDetection.WebImage\x12U\n\x17partial_matching_images\x18\x03 \x03(\x0b\x32\x34.google.cloud.vision.v1p1beta1.WebDetection.WebImage\x12W\n\x1apages_with_matching_images\x18\x04 \x03(\x0b\x32\x33.google.cloud.vision.v1p1beta1.WebDetection.WebPage\x12U\n\x17visually_similar_images\x18\x06 \x03(\x0b\x32\x34.google.cloud.vision.v1p1beta1.WebDetection.WebImage\x12O\n\x11\x62\x65st_guess_labels\x18\x08 \x03(\x0b\x32\x34.google.cloud.vision.v1p1beta1.WebDetection.WebLabel\x1a\x42\n\tWebEntity\x12\x11\n\tentity_id\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x1a&\n\x08WebImage\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x1a\xe4\x01\n\x07WebPage\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x12\n\npage_title\x18\x03 \x01(\t\x12R\n\x14\x66ull_matching_images\x18\x04 \x03(\x0b\x32\x34.google.cloud.vision.v1p1beta1.WebDetection.WebImage\x12U\n\x17partial_matching_images\x18\x05 \x03(\x0b\x32\x34.google.cloud.vision.v1p1beta1.WebDetection.WebImage\x1a\x30\n\x08WebLabel\x12\r\n\x05label\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x02 \x01(\tB\x80\x01\n!com.google.cloud.vision.v1p1beta1B\x11WebDetectionProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p1beta1;vision\xf8\x01\x01\x62\x06proto3', dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR], ) @@ -48,7 +41,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -84,7 +77,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -122,7 +115,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -178,7 +171,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -214,7 +207,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -288,7 +281,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -306,7 +299,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -491,14 +484,16 @@ WebDetection = _reflection.GeneratedProtocolMessageType( "WebDetection", (_message.Message,), - dict( - WebEntity=_reflection.GeneratedProtocolMessageType( + { + "WebEntity": _reflection.GeneratedProtocolMessageType( "WebEntity", (_message.Message,), - dict( - DESCRIPTOR=_WEBDETECTION_WEBENTITY, - __module__="google.cloud.vision_v1p1beta1.proto.web_detection_pb2", - __doc__="""Entity deduced from similar images on the Internet. + { + "DESCRIPTOR": _WEBDETECTION_WEBENTITY, + "__module__": "google.cloud.vision_v1p1beta1.proto.web_detection_pb2", + "__doc__": """Entity deduced from similar images on the Internet. + + Attributes: entity_id: Opaque entity ID. @@ -509,15 +504,17 @@ Canonical description of the entity, in English. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.WebDetection.WebEntity) - ), + }, ), - WebImage=_reflection.GeneratedProtocolMessageType( + "WebImage": _reflection.GeneratedProtocolMessageType( "WebImage", (_message.Message,), - dict( - DESCRIPTOR=_WEBDETECTION_WEBIMAGE, - __module__="google.cloud.vision_v1p1beta1.proto.web_detection_pb2", - __doc__="""Metadata for online images. + { + "DESCRIPTOR": _WEBDETECTION_WEBIMAGE, + "__module__": "google.cloud.vision_v1p1beta1.proto.web_detection_pb2", + "__doc__": """Metadata for online images. + + Attributes: url: The result image URL. @@ -525,15 +522,17 @@ (Deprecated) Overall relevancy score for the image. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.WebDetection.WebImage) - ), + }, ), - WebPage=_reflection.GeneratedProtocolMessageType( + "WebPage": _reflection.GeneratedProtocolMessageType( "WebPage", (_message.Message,), - dict( - DESCRIPTOR=_WEBDETECTION_WEBPAGE, - __module__="google.cloud.vision_v1p1beta1.proto.web_detection_pb2", - __doc__="""Metadata for web pages. + { + "DESCRIPTOR": _WEBDETECTION_WEBPAGE, + "__module__": "google.cloud.vision_v1p1beta1.proto.web_detection_pb2", + "__doc__": """Metadata for web pages. + + Attributes: url: The result web page URL. @@ -551,29 +550,33 @@ crops. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.WebDetection.WebPage) - ), + }, ), - WebLabel=_reflection.GeneratedProtocolMessageType( + "WebLabel": _reflection.GeneratedProtocolMessageType( "WebLabel", (_message.Message,), - dict( - DESCRIPTOR=_WEBDETECTION_WEBLABEL, - __module__="google.cloud.vision_v1p1beta1.proto.web_detection_pb2", - __doc__="""Label to provide extra metadata for the web detection. + { + "DESCRIPTOR": _WEBDETECTION_WEBLABEL, + "__module__": "google.cloud.vision_v1p1beta1.proto.web_detection_pb2", + "__doc__": """Label to provide extra metadata for the web detection. + + Attributes: label: Label for extra metadata. language_code: - The BCP-47 language code for ``label``, such as "en-US" or - "sr-Latn". For more information, see http://www.unicode.org/re - ports/tr35/#Unicode\_locale\_identifier. + The BCP-47 language code for ``label``, such as “en-US” or + “sr-Latn”. For more information, see http://www.unicode.org/re + ports/tr35/#Unicode_locale_identifier. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.WebDetection.WebLabel) - ), + }, ), - DESCRIPTOR=_WEBDETECTION, - __module__="google.cloud.vision_v1p1beta1.proto.web_detection_pb2", - __doc__="""Relevant information for the image from the Internet. + "DESCRIPTOR": _WEBDETECTION, + "__module__": "google.cloud.vision_v1p1beta1.proto.web_detection_pb2", + "__doc__": """Relevant information for the image from the Internet. + + Attributes: web_entities: Deduced entities from similar images on the Internet. @@ -593,7 +596,7 @@ Best guess text labels for the request image. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p1beta1.WebDetection) - ), + }, ) _sym_db.RegisterMessage(WebDetection) _sym_db.RegisterMessage(WebDetection.WebEntity) diff --git a/google/cloud/vision_v1p2beta1/gapic/enums.py b/google/cloud/vision_v1p2beta1/gapic/enums.py index cda4f64c..2bc57b08 100644 --- a/google/cloud/vision_v1p2beta1/gapic/enums.py +++ b/google/cloud/vision_v1p2beta1/gapic/enums.py @@ -158,9 +158,9 @@ class Type(enum.IntEnum): LANDMARK_DETECTION (int): Run landmark detection. LOGO_DETECTION (int): Run logo detection. LABEL_DETECTION (int): Run label detection. - TEXT_DETECTION (int): Run text detection / optical character recognition (OCR). Text detection - is optimized for areas of text within a larger image; if the image is a - document, use ``DOCUMENT_TEXT_DETECTION`` instead. + TEXT_DETECTION (int): Run text detection / optical character recognition (OCR). Text + detection is optimized for areas of text within a larger image; if the + image is a document, use ``DOCUMENT_TEXT_DETECTION`` instead. DOCUMENT_TEXT_DETECTION (int): Run dense text document OCR. Takes precedence when both ``DOCUMENT_TEXT_DETECTION`` and ``TEXT_DETECTION`` are present. SAFE_SEARCH_DETECTION (int): Run Safe Search to detect potentially unsafe diff --git a/google/cloud/vision_v1p2beta1/proto/geometry_pb2.py b/google/cloud/vision_v1p2beta1/proto/geometry_pb2.py index dabb8f83..279c42d7 100644 --- a/google/cloud/vision_v1p2beta1/proto/geometry_pb2.py +++ b/google/cloud/vision_v1p2beta1/proto/geometry_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1p2beta1/proto/geometry.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -19,12 +16,8 @@ name="google/cloud/vision_v1p2beta1/proto/geometry.proto", package="google.cloud.vision.v1p2beta1", syntax="proto3", - serialized_options=_b( - "\n!com.google.cloud.vision.v1p2beta1B\rGeometryProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision\370\001\001" - ), - serialized_pb=_b( - '\n2google/cloud/vision_v1p2beta1/proto/geometry.proto\x12\x1dgoogle.cloud.vision.v1p2beta1"\x1e\n\x06Vertex\x12\t\n\x01x\x18\x01 \x01(\x05\x12\t\n\x01y\x18\x02 \x01(\x05"(\n\x10NormalizedVertex\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02"\x95\x01\n\x0c\x42oundingPoly\x12\x37\n\x08vertices\x18\x01 \x03(\x0b\x32%.google.cloud.vision.v1p2beta1.Vertex\x12L\n\x13normalized_vertices\x18\x02 \x03(\x0b\x32/.google.cloud.vision.v1p2beta1.NormalizedVertex"+\n\x08Position\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02\x12\t\n\x01z\x18\x03 \x01(\x02\x42|\n!com.google.cloud.vision.v1p2beta1B\rGeometryProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision\xf8\x01\x01\x62\x06proto3' - ), + serialized_options=b"\n!com.google.cloud.vision.v1p2beta1B\rGeometryProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision\370\001\001", + serialized_pb=b'\n2google/cloud/vision_v1p2beta1/proto/geometry.proto\x12\x1dgoogle.cloud.vision.v1p2beta1"\x1e\n\x06Vertex\x12\t\n\x01x\x18\x01 \x01(\x05\x12\t\n\x01y\x18\x02 \x01(\x05"(\n\x10NormalizedVertex\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02"\x95\x01\n\x0c\x42oundingPoly\x12\x37\n\x08vertices\x18\x01 \x03(\x0b\x32%.google.cloud.vision.v1p2beta1.Vertex\x12L\n\x13normalized_vertices\x18\x02 \x03(\x0b\x32/.google.cloud.vision.v1p2beta1.NormalizedVertex"+\n\x08Position\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02\x12\t\n\x01z\x18\x03 \x01(\x02\x42|\n!com.google.cloud.vision.v1p2beta1B\rGeometryProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision\xf8\x01\x01\x62\x06proto3', ) @@ -284,42 +277,48 @@ Vertex = _reflection.GeneratedProtocolMessageType( "Vertex", (_message.Message,), - dict( - DESCRIPTOR=_VERTEX, - __module__="google.cloud.vision_v1p2beta1.proto.geometry_pb2", - __doc__="""X coordinate. + { + "DESCRIPTOR": _VERTEX, + "__module__": "google.cloud.vision_v1p2beta1.proto.geometry_pb2", + "__doc__": """X coordinate. + + Attributes: y: Y coordinate. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Vertex) - ), + }, ) _sym_db.RegisterMessage(Vertex) NormalizedVertex = _reflection.GeneratedProtocolMessageType( "NormalizedVertex", (_message.Message,), - dict( - DESCRIPTOR=_NORMALIZEDVERTEX, - __module__="google.cloud.vision_v1p2beta1.proto.geometry_pb2", - __doc__="""X coordinate. + { + "DESCRIPTOR": _NORMALIZEDVERTEX, + "__module__": "google.cloud.vision_v1p2beta1.proto.geometry_pb2", + "__doc__": """X coordinate. + + Attributes: y: Y coordinate. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.NormalizedVertex) - ), + }, ) _sym_db.RegisterMessage(NormalizedVertex) BoundingPoly = _reflection.GeneratedProtocolMessageType( "BoundingPoly", (_message.Message,), - dict( - DESCRIPTOR=_BOUNDINGPOLY, - __module__="google.cloud.vision_v1p2beta1.proto.geometry_pb2", - __doc__="""A bounding polygon for the detected image annotation. + { + "DESCRIPTOR": _BOUNDINGPOLY, + "__module__": "google.cloud.vision_v1p2beta1.proto.geometry_pb2", + "__doc__": """A bounding polygon for the detected image annotation. + + Attributes: vertices: The bounding polygon vertices. @@ -327,19 +326,22 @@ The bounding polygon normalized vertices. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.BoundingPoly) - ), + }, ) _sym_db.RegisterMessage(BoundingPoly) Position = _reflection.GeneratedProtocolMessageType( "Position", (_message.Message,), - dict( - DESCRIPTOR=_POSITION, - __module__="google.cloud.vision_v1p2beta1.proto.geometry_pb2", - __doc__="""A 3D position in the image, used primarily for Face detection - landmarks. A valid Position must have both x and y coordinates. The - position coordinates are in the same scale as the original image. + { + "DESCRIPTOR": _POSITION, + "__module__": "google.cloud.vision_v1p2beta1.proto.geometry_pb2", + "__doc__": """A 3D position in the image, used primarily for Face + detection landmarks. A valid Position must have both x and y + coordinates. The position coordinates are in the same scale as the + original image. + + Attributes: x: X coordinate. @@ -349,7 +351,7 @@ Z coordinate (or depth). """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Position) - ), + }, ) _sym_db.RegisterMessage(Position) diff --git a/google/cloud/vision_v1p2beta1/proto/image_annotator_pb2.py b/google/cloud/vision_v1p2beta1/proto/image_annotator_pb2.py index ce174bfe..f38ac950 100644 --- a/google/cloud/vision_v1p2beta1/proto/image_annotator_pb2.py +++ b/google/cloud/vision_v1p2beta1/proto/image_annotator_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1p2beta1/proto/image_annotator.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message @@ -41,12 +38,8 @@ name="google/cloud/vision_v1p2beta1/proto/image_annotator.proto", package="google.cloud.vision.v1p2beta1", syntax="proto3", - serialized_options=_b( - "\n!com.google.cloud.vision.v1p2beta1B\023ImageAnnotatorProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision\370\001\001" - ), - serialized_pb=_b( - '\n9google/cloud/vision_v1p2beta1/proto/image_annotator.proto\x12\x1dgoogle.cloud.vision.v1p2beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x32google/cloud/vision_v1p2beta1/proto/geometry.proto\x1a\x39google/cloud/vision_v1p2beta1/proto/text_annotation.proto\x1a\x37google/cloud/vision_v1p2beta1/proto/web_detection.proto\x1a#google/longrunning/operations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a\x17google/type/color.proto\x1a\x18google/type/latlng.proto"\xe1\x02\n\x07\x46\x65\x61ture\x12\x39\n\x04type\x18\x01 \x01(\x0e\x32+.google.cloud.vision.v1p2beta1.Feature.Type\x12\x13\n\x0bmax_results\x18\x02 \x01(\x05\x12\r\n\x05model\x18\x03 \x01(\t"\xf6\x01\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x46\x41\x43\x45_DETECTION\x10\x01\x12\x16\n\x12LANDMARK_DETECTION\x10\x02\x12\x12\n\x0eLOGO_DETECTION\x10\x03\x12\x13\n\x0fLABEL_DETECTION\x10\x04\x12\x12\n\x0eTEXT_DETECTION\x10\x05\x12\x1b\n\x17\x44OCUMENT_TEXT_DETECTION\x10\x0b\x12\x19\n\x15SAFE_SEARCH_DETECTION\x10\x06\x12\x14\n\x10IMAGE_PROPERTIES\x10\x07\x12\x0e\n\nCROP_HINTS\x10\t\x12\x11\n\rWEB_DETECTION\x10\n"7\n\x0bImageSource\x12\x15\n\rgcs_image_uri\x18\x01 \x01(\t\x12\x11\n\timage_uri\x18\x02 \x01(\t"T\n\x05Image\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\x0c\x12:\n\x06source\x18\x02 \x01(\x0b\x32*.google.cloud.vision.v1p2beta1.ImageSource"\x9b\x0e\n\x0e\x46\x61\x63\x65\x41nnotation\x12\x42\n\rbounding_poly\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.BoundingPoly\x12\x45\n\x10\x66\x64_bounding_poly\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.BoundingPoly\x12I\n\tlandmarks\x18\x03 \x03(\x0b\x32\x36.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark\x12\x12\n\nroll_angle\x18\x04 \x01(\x02\x12\x11\n\tpan_angle\x18\x05 \x01(\x02\x12\x12\n\ntilt_angle\x18\x06 \x01(\x02\x12\x1c\n\x14\x64\x65tection_confidence\x18\x07 \x01(\x02\x12\x1e\n\x16landmarking_confidence\x18\x08 \x01(\x02\x12\x41\n\x0ejoy_likelihood\x18\t \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12\x44\n\x11sorrow_likelihood\x18\n \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12\x43\n\x10\x61nger_likelihood\x18\x0b \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12\x46\n\x13surprise_likelihood\x18\x0c \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12K\n\x18under_exposed_likelihood\x18\r \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12\x45\n\x12\x62lurred_likelihood\x18\x0e \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12\x46\n\x13headwear_likelihood\x18\x0f \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x1a\xc7\x07\n\x08Landmark\x12I\n\x04type\x18\x03 \x01(\x0e\x32;.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type\x12\x39\n\x08position\x18\x04 \x01(\x0b\x32\'.google.cloud.vision.v1p2beta1.Position"\xb4\x06\n\x04Type\x12\x14\n\x10UNKNOWN_LANDMARK\x10\x00\x12\x0c\n\x08LEFT_EYE\x10\x01\x12\r\n\tRIGHT_EYE\x10\x02\x12\x18\n\x14LEFT_OF_LEFT_EYEBROW\x10\x03\x12\x19\n\x15RIGHT_OF_LEFT_EYEBROW\x10\x04\x12\x19\n\x15LEFT_OF_RIGHT_EYEBROW\x10\x05\x12\x1a\n\x16RIGHT_OF_RIGHT_EYEBROW\x10\x06\x12\x19\n\x15MIDPOINT_BETWEEN_EYES\x10\x07\x12\x0c\n\x08NOSE_TIP\x10\x08\x12\r\n\tUPPER_LIP\x10\t\x12\r\n\tLOWER_LIP\x10\n\x12\x0e\n\nMOUTH_LEFT\x10\x0b\x12\x0f\n\x0bMOUTH_RIGHT\x10\x0c\x12\x10\n\x0cMOUTH_CENTER\x10\r\x12\x15\n\x11NOSE_BOTTOM_RIGHT\x10\x0e\x12\x14\n\x10NOSE_BOTTOM_LEFT\x10\x0f\x12\x16\n\x12NOSE_BOTTOM_CENTER\x10\x10\x12\x19\n\x15LEFT_EYE_TOP_BOUNDARY\x10\x11\x12\x19\n\x15LEFT_EYE_RIGHT_CORNER\x10\x12\x12\x1c\n\x18LEFT_EYE_BOTTOM_BOUNDARY\x10\x13\x12\x18\n\x14LEFT_EYE_LEFT_CORNER\x10\x14\x12\x1a\n\x16RIGHT_EYE_TOP_BOUNDARY\x10\x15\x12\x1a\n\x16RIGHT_EYE_RIGHT_CORNER\x10\x16\x12\x1d\n\x19RIGHT_EYE_BOTTOM_BOUNDARY\x10\x17\x12\x19\n\x15RIGHT_EYE_LEFT_CORNER\x10\x18\x12\x1f\n\x1bLEFT_EYEBROW_UPPER_MIDPOINT\x10\x19\x12 \n\x1cRIGHT_EYEBROW_UPPER_MIDPOINT\x10\x1a\x12\x14\n\x10LEFT_EAR_TRAGION\x10\x1b\x12\x15\n\x11RIGHT_EAR_TRAGION\x10\x1c\x12\x12\n\x0eLEFT_EYE_PUPIL\x10\x1d\x12\x13\n\x0fRIGHT_EYE_PUPIL\x10\x1e\x12\x15\n\x11\x46OREHEAD_GLABELLA\x10\x1f\x12\x11\n\rCHIN_GNATHION\x10 \x12\x14\n\x10\x43HIN_LEFT_GONION\x10!\x12\x15\n\x11\x43HIN_RIGHT_GONION\x10""4\n\x0cLocationInfo\x12$\n\x07lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng"=\n\x08Property\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x14\n\x0cuint64_value\x18\x03 \x01(\x04"\xbc\x02\n\x10\x45ntityAnnotation\x12\x0b\n\x03mid\x18\x01 \x01(\t\x12\x0e\n\x06locale\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\r\n\x05score\x18\x04 \x01(\x02\x12\x12\n\nconfidence\x18\x05 \x01(\x02\x12\x12\n\ntopicality\x18\x06 \x01(\x02\x12\x42\n\rbounding_poly\x18\x07 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.BoundingPoly\x12>\n\tlocations\x18\x08 \x03(\x0b\x32+.google.cloud.vision.v1p2beta1.LocationInfo\x12;\n\nproperties\x18\t \x03(\x0b\x32\'.google.cloud.vision.v1p2beta1.Property"\xbc\x02\n\x14SafeSearchAnnotation\x12\x38\n\x05\x61\x64ult\x18\x01 \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12\x38\n\x05spoof\x18\x02 \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12:\n\x07medical\x18\x03 \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12;\n\x08violence\x18\x04 \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12\x37\n\x04racy\x18\t \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood"a\n\x0bLatLongRect\x12(\n\x0bmin_lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng\x12(\n\x0bmax_lat_lng\x18\x02 \x01(\x0b\x32\x13.google.type.LatLng"U\n\tColorInfo\x12!\n\x05\x63olor\x18\x01 \x01(\x0b\x32\x12.google.type.Color\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x16\n\x0epixel_fraction\x18\x03 \x01(\x02"T\n\x18\x44ominantColorsAnnotation\x12\x38\n\x06\x63olors\x18\x01 \x03(\x0b\x32(.google.cloud.vision.v1p2beta1.ColorInfo"c\n\x0fImageProperties\x12P\n\x0f\x64ominant_colors\x18\x01 \x01(\x0b\x32\x37.google.cloud.vision.v1p2beta1.DominantColorsAnnotation"\x7f\n\x08\x43ropHint\x12\x42\n\rbounding_poly\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.BoundingPoly\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12\x1b\n\x13importance_fraction\x18\x03 \x01(\x02"R\n\x13\x43ropHintsAnnotation\x12;\n\ncrop_hints\x18\x01 \x03(\x0b\x32\'.google.cloud.vision.v1p2beta1.CropHint"(\n\x0f\x43ropHintsParams\x12\x15\n\raspect_ratios\x18\x01 \x03(\x02"1\n\x12WebDetectionParams\x12\x1b\n\x13include_geo_results\x18\x02 \x01(\x08"\x85\x02\n\x0cImageContext\x12\x41\n\rlat_long_rect\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p2beta1.LatLongRect\x12\x16\n\x0elanguage_hints\x18\x02 \x03(\t\x12I\n\x11\x63rop_hints_params\x18\x04 \x01(\x0b\x32..google.cloud.vision.v1p2beta1.CropHintsParams\x12O\n\x14web_detection_params\x18\x06 \x01(\x0b\x32\x31.google.cloud.vision.v1p2beta1.WebDetectionParams"\xc9\x01\n\x14\x41nnotateImageRequest\x12\x33\n\x05image\x18\x01 \x01(\x0b\x32$.google.cloud.vision.v1p2beta1.Image\x12\x38\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32&.google.cloud.vision.v1p2beta1.Feature\x12\x42\n\rimage_context\x18\x03 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.ImageContext":\n\x16ImageAnnotationContext\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x13\n\x0bpage_number\x18\x02 \x01(\x05"\x8a\x07\n\x15\x41nnotateImageResponse\x12G\n\x10\x66\x61\x63\x65_annotations\x18\x01 \x03(\x0b\x32-.google.cloud.vision.v1p2beta1.FaceAnnotation\x12M\n\x14landmark_annotations\x18\x02 \x03(\x0b\x32/.google.cloud.vision.v1p2beta1.EntityAnnotation\x12I\n\x10logo_annotations\x18\x03 \x03(\x0b\x32/.google.cloud.vision.v1p2beta1.EntityAnnotation\x12J\n\x11label_annotations\x18\x04 \x03(\x0b\x32/.google.cloud.vision.v1p2beta1.EntityAnnotation\x12I\n\x10text_annotations\x18\x05 \x03(\x0b\x32/.google.cloud.vision.v1p2beta1.EntityAnnotation\x12K\n\x14\x66ull_text_annotation\x18\x0c \x01(\x0b\x32-.google.cloud.vision.v1p2beta1.TextAnnotation\x12S\n\x16safe_search_annotation\x18\x06 \x01(\x0b\x32\x33.google.cloud.vision.v1p2beta1.SafeSearchAnnotation\x12S\n\x1bimage_properties_annotation\x18\x08 \x01(\x0b\x32..google.cloud.vision.v1p2beta1.ImageProperties\x12Q\n\x15\x63rop_hints_annotation\x18\x0b \x01(\x0b\x32\x32.google.cloud.vision.v1p2beta1.CropHintsAnnotation\x12\x42\n\rweb_detection\x18\r \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.WebDetection\x12!\n\x05\x65rror\x18\t \x01(\x0b\x32\x12.google.rpc.Status\x12\x46\n\x07\x63ontext\x18\x15 \x01(\x0b\x32\x35.google.cloud.vision.v1p2beta1.ImageAnnotationContext"\xa1\x01\n\x14\x41nnotateFileResponse\x12@\n\x0cinput_config\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p2beta1.InputConfig\x12G\n\tresponses\x18\x02 \x03(\x0b\x32\x34.google.cloud.vision.v1p2beta1.AnnotateImageResponse"h\n\x1a\x42\x61tchAnnotateImagesRequest\x12J\n\x08requests\x18\x01 \x03(\x0b\x32\x33.google.cloud.vision.v1p2beta1.AnnotateImageRequestB\x03\xe0\x41\x02"f\n\x1b\x42\x61tchAnnotateImagesResponse\x12G\n\tresponses\x18\x01 \x03(\x0b\x32\x34.google.cloud.vision.v1p2beta1.AnnotateImageResponse"\x9e\x02\n\x18\x41syncAnnotateFileRequest\x12@\n\x0cinput_config\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p2beta1.InputConfig\x12\x38\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32&.google.cloud.vision.v1p2beta1.Feature\x12\x42\n\rimage_context\x18\x03 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.ImageContext\x12\x42\n\routput_config\x18\x04 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.OutputConfig"_\n\x19\x41syncAnnotateFileResponse\x12\x42\n\routput_config\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.OutputConfig"p\n\x1e\x41syncBatchAnnotateFilesRequest\x12N\n\x08requests\x18\x01 \x03(\x0b\x32\x37.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequestB\x03\xe0\x41\x02"n\n\x1f\x41syncBatchAnnotateFilesResponse\x12K\n\tresponses\x18\x01 \x03(\x0b\x32\x38.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse"^\n\x0bInputConfig\x12<\n\ngcs_source\x18\x01 \x01(\x0b\x32(.google.cloud.vision.v1p2beta1.GcsSource\x12\x11\n\tmime_type\x18\x02 \x01(\t"j\n\x0cOutputConfig\x12\x46\n\x0fgcs_destination\x18\x01 \x01(\x0b\x32-.google.cloud.vision.v1p2beta1.GcsDestination\x12\x12\n\nbatch_size\x18\x02 \x01(\x05"\x18\n\tGcsSource\x12\x0b\n\x03uri\x18\x01 \x01(\t"\x1d\n\x0eGcsDestination\x12\x0b\n\x03uri\x18\x01 \x01(\t"\x8f\x02\n\x11OperationMetadata\x12\x45\n\x05state\x18\x01 \x01(\x0e\x32\x36.google.cloud.vision.v1p2beta1.OperationMetadata.State\x12/\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"Q\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x43REATED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x08\n\x04\x44ONE\x10\x03\x12\r\n\tCANCELLED\x10\x04*e\n\nLikelihood\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x11\n\rVERY_UNLIKELY\x10\x01\x12\x0c\n\x08UNLIKELY\x10\x02\x12\x0c\n\x08POSSIBLE\x10\x03\x12\n\n\x06LIKELY\x10\x04\x12\x0f\n\x0bVERY_LIKELY\x10\x05\x32\xb5\x04\n\x0eImageAnnotator\x12\xbe\x01\n\x13\x42\x61tchAnnotateImages\x12\x39.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest\x1a:.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse"0\x82\xd3\xe4\x93\x02\x1f"\x1a/v1p2beta1/images:annotate:\x01*\xda\x41\x08requests\x12\xe9\x01\n\x17\x41syncBatchAnnotateFiles\x12=.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest\x1a\x1d.google.longrunning.Operation"p\x82\xd3\xe4\x93\x02("#/v1p2beta1/files:asyncBatchAnnotate:\x01*\xda\x41\x08requests\xca\x41\x34\n\x1f\x41syncBatchAnnotateFilesResponse\x12\x11OperationMetadata\x1av\xca\x41\x15vision.googleapis.com\xd2\x41[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-visionB\x82\x01\n!com.google.cloud.vision.v1p2beta1B\x13ImageAnnotatorProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision\xf8\x01\x01\x62\x06proto3' - ), + serialized_options=b"\n!com.google.cloud.vision.v1p2beta1B\023ImageAnnotatorProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision\370\001\001", + serialized_pb=b'\n9google/cloud/vision_v1p2beta1/proto/image_annotator.proto\x12\x1dgoogle.cloud.vision.v1p2beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x32google/cloud/vision_v1p2beta1/proto/geometry.proto\x1a\x39google/cloud/vision_v1p2beta1/proto/text_annotation.proto\x1a\x37google/cloud/vision_v1p2beta1/proto/web_detection.proto\x1a#google/longrunning/operations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a\x17google/type/color.proto\x1a\x18google/type/latlng.proto"\xe1\x02\n\x07\x46\x65\x61ture\x12\x39\n\x04type\x18\x01 \x01(\x0e\x32+.google.cloud.vision.v1p2beta1.Feature.Type\x12\x13\n\x0bmax_results\x18\x02 \x01(\x05\x12\r\n\x05model\x18\x03 \x01(\t"\xf6\x01\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x46\x41\x43\x45_DETECTION\x10\x01\x12\x16\n\x12LANDMARK_DETECTION\x10\x02\x12\x12\n\x0eLOGO_DETECTION\x10\x03\x12\x13\n\x0fLABEL_DETECTION\x10\x04\x12\x12\n\x0eTEXT_DETECTION\x10\x05\x12\x1b\n\x17\x44OCUMENT_TEXT_DETECTION\x10\x0b\x12\x19\n\x15SAFE_SEARCH_DETECTION\x10\x06\x12\x14\n\x10IMAGE_PROPERTIES\x10\x07\x12\x0e\n\nCROP_HINTS\x10\t\x12\x11\n\rWEB_DETECTION\x10\n"7\n\x0bImageSource\x12\x15\n\rgcs_image_uri\x18\x01 \x01(\t\x12\x11\n\timage_uri\x18\x02 \x01(\t"T\n\x05Image\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\x0c\x12:\n\x06source\x18\x02 \x01(\x0b\x32*.google.cloud.vision.v1p2beta1.ImageSource"\x9b\x0e\n\x0e\x46\x61\x63\x65\x41nnotation\x12\x42\n\rbounding_poly\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.BoundingPoly\x12\x45\n\x10\x66\x64_bounding_poly\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.BoundingPoly\x12I\n\tlandmarks\x18\x03 \x03(\x0b\x32\x36.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark\x12\x12\n\nroll_angle\x18\x04 \x01(\x02\x12\x11\n\tpan_angle\x18\x05 \x01(\x02\x12\x12\n\ntilt_angle\x18\x06 \x01(\x02\x12\x1c\n\x14\x64\x65tection_confidence\x18\x07 \x01(\x02\x12\x1e\n\x16landmarking_confidence\x18\x08 \x01(\x02\x12\x41\n\x0ejoy_likelihood\x18\t \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12\x44\n\x11sorrow_likelihood\x18\n \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12\x43\n\x10\x61nger_likelihood\x18\x0b \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12\x46\n\x13surprise_likelihood\x18\x0c \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12K\n\x18under_exposed_likelihood\x18\r \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12\x45\n\x12\x62lurred_likelihood\x18\x0e \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12\x46\n\x13headwear_likelihood\x18\x0f \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x1a\xc7\x07\n\x08Landmark\x12I\n\x04type\x18\x03 \x01(\x0e\x32;.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type\x12\x39\n\x08position\x18\x04 \x01(\x0b\x32\'.google.cloud.vision.v1p2beta1.Position"\xb4\x06\n\x04Type\x12\x14\n\x10UNKNOWN_LANDMARK\x10\x00\x12\x0c\n\x08LEFT_EYE\x10\x01\x12\r\n\tRIGHT_EYE\x10\x02\x12\x18\n\x14LEFT_OF_LEFT_EYEBROW\x10\x03\x12\x19\n\x15RIGHT_OF_LEFT_EYEBROW\x10\x04\x12\x19\n\x15LEFT_OF_RIGHT_EYEBROW\x10\x05\x12\x1a\n\x16RIGHT_OF_RIGHT_EYEBROW\x10\x06\x12\x19\n\x15MIDPOINT_BETWEEN_EYES\x10\x07\x12\x0c\n\x08NOSE_TIP\x10\x08\x12\r\n\tUPPER_LIP\x10\t\x12\r\n\tLOWER_LIP\x10\n\x12\x0e\n\nMOUTH_LEFT\x10\x0b\x12\x0f\n\x0bMOUTH_RIGHT\x10\x0c\x12\x10\n\x0cMOUTH_CENTER\x10\r\x12\x15\n\x11NOSE_BOTTOM_RIGHT\x10\x0e\x12\x14\n\x10NOSE_BOTTOM_LEFT\x10\x0f\x12\x16\n\x12NOSE_BOTTOM_CENTER\x10\x10\x12\x19\n\x15LEFT_EYE_TOP_BOUNDARY\x10\x11\x12\x19\n\x15LEFT_EYE_RIGHT_CORNER\x10\x12\x12\x1c\n\x18LEFT_EYE_BOTTOM_BOUNDARY\x10\x13\x12\x18\n\x14LEFT_EYE_LEFT_CORNER\x10\x14\x12\x1a\n\x16RIGHT_EYE_TOP_BOUNDARY\x10\x15\x12\x1a\n\x16RIGHT_EYE_RIGHT_CORNER\x10\x16\x12\x1d\n\x19RIGHT_EYE_BOTTOM_BOUNDARY\x10\x17\x12\x19\n\x15RIGHT_EYE_LEFT_CORNER\x10\x18\x12\x1f\n\x1bLEFT_EYEBROW_UPPER_MIDPOINT\x10\x19\x12 \n\x1cRIGHT_EYEBROW_UPPER_MIDPOINT\x10\x1a\x12\x14\n\x10LEFT_EAR_TRAGION\x10\x1b\x12\x15\n\x11RIGHT_EAR_TRAGION\x10\x1c\x12\x12\n\x0eLEFT_EYE_PUPIL\x10\x1d\x12\x13\n\x0fRIGHT_EYE_PUPIL\x10\x1e\x12\x15\n\x11\x46OREHEAD_GLABELLA\x10\x1f\x12\x11\n\rCHIN_GNATHION\x10 \x12\x14\n\x10\x43HIN_LEFT_GONION\x10!\x12\x15\n\x11\x43HIN_RIGHT_GONION\x10""4\n\x0cLocationInfo\x12$\n\x07lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng"=\n\x08Property\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x14\n\x0cuint64_value\x18\x03 \x01(\x04"\xbc\x02\n\x10\x45ntityAnnotation\x12\x0b\n\x03mid\x18\x01 \x01(\t\x12\x0e\n\x06locale\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\r\n\x05score\x18\x04 \x01(\x02\x12\x12\n\nconfidence\x18\x05 \x01(\x02\x12\x12\n\ntopicality\x18\x06 \x01(\x02\x12\x42\n\rbounding_poly\x18\x07 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.BoundingPoly\x12>\n\tlocations\x18\x08 \x03(\x0b\x32+.google.cloud.vision.v1p2beta1.LocationInfo\x12;\n\nproperties\x18\t \x03(\x0b\x32\'.google.cloud.vision.v1p2beta1.Property"\xbc\x02\n\x14SafeSearchAnnotation\x12\x38\n\x05\x61\x64ult\x18\x01 \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12\x38\n\x05spoof\x18\x02 \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12:\n\x07medical\x18\x03 \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12;\n\x08violence\x18\x04 \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12\x37\n\x04racy\x18\t \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood"a\n\x0bLatLongRect\x12(\n\x0bmin_lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng\x12(\n\x0bmax_lat_lng\x18\x02 \x01(\x0b\x32\x13.google.type.LatLng"U\n\tColorInfo\x12!\n\x05\x63olor\x18\x01 \x01(\x0b\x32\x12.google.type.Color\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x16\n\x0epixel_fraction\x18\x03 \x01(\x02"T\n\x18\x44ominantColorsAnnotation\x12\x38\n\x06\x63olors\x18\x01 \x03(\x0b\x32(.google.cloud.vision.v1p2beta1.ColorInfo"c\n\x0fImageProperties\x12P\n\x0f\x64ominant_colors\x18\x01 \x01(\x0b\x32\x37.google.cloud.vision.v1p2beta1.DominantColorsAnnotation"\x7f\n\x08\x43ropHint\x12\x42\n\rbounding_poly\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.BoundingPoly\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12\x1b\n\x13importance_fraction\x18\x03 \x01(\x02"R\n\x13\x43ropHintsAnnotation\x12;\n\ncrop_hints\x18\x01 \x03(\x0b\x32\'.google.cloud.vision.v1p2beta1.CropHint"(\n\x0f\x43ropHintsParams\x12\x15\n\raspect_ratios\x18\x01 \x03(\x02"1\n\x12WebDetectionParams\x12\x1b\n\x13include_geo_results\x18\x02 \x01(\x08"\x85\x02\n\x0cImageContext\x12\x41\n\rlat_long_rect\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p2beta1.LatLongRect\x12\x16\n\x0elanguage_hints\x18\x02 \x03(\t\x12I\n\x11\x63rop_hints_params\x18\x04 \x01(\x0b\x32..google.cloud.vision.v1p2beta1.CropHintsParams\x12O\n\x14web_detection_params\x18\x06 \x01(\x0b\x32\x31.google.cloud.vision.v1p2beta1.WebDetectionParams"\xc9\x01\n\x14\x41nnotateImageRequest\x12\x33\n\x05image\x18\x01 \x01(\x0b\x32$.google.cloud.vision.v1p2beta1.Image\x12\x38\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32&.google.cloud.vision.v1p2beta1.Feature\x12\x42\n\rimage_context\x18\x03 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.ImageContext":\n\x16ImageAnnotationContext\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x13\n\x0bpage_number\x18\x02 \x01(\x05"\x8a\x07\n\x15\x41nnotateImageResponse\x12G\n\x10\x66\x61\x63\x65_annotations\x18\x01 \x03(\x0b\x32-.google.cloud.vision.v1p2beta1.FaceAnnotation\x12M\n\x14landmark_annotations\x18\x02 \x03(\x0b\x32/.google.cloud.vision.v1p2beta1.EntityAnnotation\x12I\n\x10logo_annotations\x18\x03 \x03(\x0b\x32/.google.cloud.vision.v1p2beta1.EntityAnnotation\x12J\n\x11label_annotations\x18\x04 \x03(\x0b\x32/.google.cloud.vision.v1p2beta1.EntityAnnotation\x12I\n\x10text_annotations\x18\x05 \x03(\x0b\x32/.google.cloud.vision.v1p2beta1.EntityAnnotation\x12K\n\x14\x66ull_text_annotation\x18\x0c \x01(\x0b\x32-.google.cloud.vision.v1p2beta1.TextAnnotation\x12S\n\x16safe_search_annotation\x18\x06 \x01(\x0b\x32\x33.google.cloud.vision.v1p2beta1.SafeSearchAnnotation\x12S\n\x1bimage_properties_annotation\x18\x08 \x01(\x0b\x32..google.cloud.vision.v1p2beta1.ImageProperties\x12Q\n\x15\x63rop_hints_annotation\x18\x0b \x01(\x0b\x32\x32.google.cloud.vision.v1p2beta1.CropHintsAnnotation\x12\x42\n\rweb_detection\x18\r \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.WebDetection\x12!\n\x05\x65rror\x18\t \x01(\x0b\x32\x12.google.rpc.Status\x12\x46\n\x07\x63ontext\x18\x15 \x01(\x0b\x32\x35.google.cloud.vision.v1p2beta1.ImageAnnotationContext"\xa1\x01\n\x14\x41nnotateFileResponse\x12@\n\x0cinput_config\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p2beta1.InputConfig\x12G\n\tresponses\x18\x02 \x03(\x0b\x32\x34.google.cloud.vision.v1p2beta1.AnnotateImageResponse"h\n\x1a\x42\x61tchAnnotateImagesRequest\x12J\n\x08requests\x18\x01 \x03(\x0b\x32\x33.google.cloud.vision.v1p2beta1.AnnotateImageRequestB\x03\xe0\x41\x02"f\n\x1b\x42\x61tchAnnotateImagesResponse\x12G\n\tresponses\x18\x01 \x03(\x0b\x32\x34.google.cloud.vision.v1p2beta1.AnnotateImageResponse"\x9e\x02\n\x18\x41syncAnnotateFileRequest\x12@\n\x0cinput_config\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p2beta1.InputConfig\x12\x38\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32&.google.cloud.vision.v1p2beta1.Feature\x12\x42\n\rimage_context\x18\x03 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.ImageContext\x12\x42\n\routput_config\x18\x04 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.OutputConfig"_\n\x19\x41syncAnnotateFileResponse\x12\x42\n\routput_config\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.OutputConfig"p\n\x1e\x41syncBatchAnnotateFilesRequest\x12N\n\x08requests\x18\x01 \x03(\x0b\x32\x37.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequestB\x03\xe0\x41\x02"n\n\x1f\x41syncBatchAnnotateFilesResponse\x12K\n\tresponses\x18\x01 \x03(\x0b\x32\x38.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse"^\n\x0bInputConfig\x12<\n\ngcs_source\x18\x01 \x01(\x0b\x32(.google.cloud.vision.v1p2beta1.GcsSource\x12\x11\n\tmime_type\x18\x02 \x01(\t"j\n\x0cOutputConfig\x12\x46\n\x0fgcs_destination\x18\x01 \x01(\x0b\x32-.google.cloud.vision.v1p2beta1.GcsDestination\x12\x12\n\nbatch_size\x18\x02 \x01(\x05"\x18\n\tGcsSource\x12\x0b\n\x03uri\x18\x01 \x01(\t"\x1d\n\x0eGcsDestination\x12\x0b\n\x03uri\x18\x01 \x01(\t"\x8f\x02\n\x11OperationMetadata\x12\x45\n\x05state\x18\x01 \x01(\x0e\x32\x36.google.cloud.vision.v1p2beta1.OperationMetadata.State\x12/\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"Q\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x43REATED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x08\n\x04\x44ONE\x10\x03\x12\r\n\tCANCELLED\x10\x04*e\n\nLikelihood\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x11\n\rVERY_UNLIKELY\x10\x01\x12\x0c\n\x08UNLIKELY\x10\x02\x12\x0c\n\x08POSSIBLE\x10\x03\x12\n\n\x06LIKELY\x10\x04\x12\x0f\n\x0bVERY_LIKELY\x10\x05\x32\xb5\x04\n\x0eImageAnnotator\x12\xbe\x01\n\x13\x42\x61tchAnnotateImages\x12\x39.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest\x1a:.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse"0\x82\xd3\xe4\x93\x02\x1f"\x1a/v1p2beta1/images:annotate:\x01*\xda\x41\x08requests\x12\xe9\x01\n\x17\x41syncBatchAnnotateFiles\x12=.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest\x1a\x1d.google.longrunning.Operation"p\x82\xd3\xe4\x93\x02("#/v1p2beta1/files:asyncBatchAnnotate:\x01*\xda\x41\x08requests\xca\x41\x34\n\x1f\x41syncBatchAnnotateFilesResponse\x12\x11OperationMetadata\x1av\xca\x41\x15vision.googleapis.com\xd2\x41[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-visionB\x82\x01\n!com.google.cloud.vision.v1p2beta1B\x13ImageAnnotatorProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision\xf8\x01\x01\x62\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, google_dot_api_dot_client__pb2.DESCRIPTOR, @@ -491,7 +484,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -530,7 +523,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -548,7 +541,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -587,7 +580,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b(""), + default_value=b"", message_type=None, enum_type=None, containing_type=None, @@ -1030,7 +1023,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1048,7 +1041,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1105,7 +1098,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1123,7 +1116,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1141,7 +1134,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1969,7 +1962,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -2326,7 +2319,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ) ], @@ -2536,7 +2529,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ) ], @@ -2626,7 +2619,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -2722,7 +2715,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -2761,7 +2754,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -3040,12 +3033,14 @@ Feature = _reflection.GeneratedProtocolMessageType( "Feature", (_message.Message,), - dict( - DESCRIPTOR=_FEATURE, - __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - __doc__="""The type of Google Cloud Vision API detection to perform, and the - maximum number of results to return for that type. Multiple + { + "DESCRIPTOR": _FEATURE, + "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + "__doc__": """The type of Google Cloud Vision API detection to perform, + and the maximum number of results to return for that type. Multiple ``Feature`` objects can be specified in the ``features`` list. + + Attributes: type: The feature type. @@ -3055,21 +3050,23 @@ ``CROP_HINTS``. model: Model to use for the feature. Supported values: - "builtin/stable" (the default if unset) and "builtin/latest". + “builtin/stable” (the default if unset) and “builtin/latest”. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Feature) - ), + }, ) _sym_db.RegisterMessage(Feature) ImageSource = _reflection.GeneratedProtocolMessageType( "ImageSource", (_message.Message,), - dict( - DESCRIPTOR=_IMAGESOURCE, - __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - __doc__="""External image source (Google Cloud Storage or web URL image - location). + { + "DESCRIPTOR": _IMAGESOURCE, + "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + "__doc__": """External image source (Google Cloud Storage or web URL + image location). + + Attributes: gcs_image_uri: \ **Use ``image_uri`` instead.** The Google Cloud Storage URI @@ -3086,7 +3083,7 @@ more info. 2. A publicly-accessible image HTTP/HTTPS URL. When fetching images from HTTP/HTTPS URLs, Google cannot guarantee that the request will be completed. Your request - may fail if the specified host denies the request (e.g. due + may fail if the specified host denies the request (e.g. due to request throttling or DOS prevention), or if Google throttles requests to the site for abuse prevention. You should not depend on externally-hosted images for production @@ -3094,17 +3091,20 @@ are specified, ``image_uri`` takes precedence. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.ImageSource) - ), + }, ) _sym_db.RegisterMessage(ImageSource) Image = _reflection.GeneratedProtocolMessageType( "Image", (_message.Message,), - dict( - DESCRIPTOR=_IMAGE, - __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - __doc__="""Client image to perform Google Cloud Vision API tasks over. + { + "DESCRIPTOR": _IMAGE, + "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + "__doc__": """Client image to perform Google Cloud Vision API tasks + over. + + Attributes: content: Image content, represented as a stream of bytes. Note: As with @@ -3117,21 +3117,23 @@ the image annotation request. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Image) - ), + }, ) _sym_db.RegisterMessage(Image) FaceAnnotation = _reflection.GeneratedProtocolMessageType( "FaceAnnotation", (_message.Message,), - dict( - Landmark=_reflection.GeneratedProtocolMessageType( + { + "Landmark": _reflection.GeneratedProtocolMessageType( "Landmark", (_message.Message,), - dict( - DESCRIPTOR=_FACEANNOTATION_LANDMARK, - __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - __doc__="""A face-specific landmark (for example, a face feature). + { + "DESCRIPTOR": _FACEANNOTATION_LANDMARK, + "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + "__doc__": """A face-specific landmark (for example, a face feature). + + Attributes: type: Face landmark type. @@ -3139,16 +3141,19 @@ Face landmark position. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark) - ), - ), - DESCRIPTOR=_FACEANNOTATION, - __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - __doc__="""A face annotation object contains the results of face detection. + }, + ), + "DESCRIPTOR": _FACEANNOTATION, + "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + "__doc__": """A face annotation object contains the results of face + detection. + + Attributes: bounding_poly: The bounding polygon around the face. The coordinates of the - bounding box are in the original image's scale, as returned in - ``ImageParams``. The bounding box is computed to "frame" the + bounding box are in the original image’s scale, as returned in + ``ImageParams``. The bounding box is computed to “frame” the face in accordance with human expectations. It is based on the landmarker results. Note that one or more x and/or y coordinates may not be generated in the ``BoundingPoly`` (the @@ -3158,7 +3163,7 @@ The ``fd_bounding_poly`` bounding polygon is tighter than the ``boundingPoly``, and encloses only the skin part of the face. Typically, it is used to eliminate the face from any image - analysis that detects the "amount of skin" visible in an + analysis that detects the “amount of skin” visible in an image. It is not based on the landmarker results, only on the initial face detection, hence the fd (face detection) prefix. landmarks: @@ -3173,7 +3178,7 @@ perpendicular to the image. Range [-180,180]. tilt_angle: Pitch angle, which indicates the upwards/downwards angle that - the face is pointing relative to the image's horizontal plane. + the face is pointing relative to the image’s horizontal plane. Range [-180,180]. detection_confidence: Detection confidence. Range [0, 1]. @@ -3195,7 +3200,7 @@ Headwear likelihood. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.FaceAnnotation) - ), + }, ) _sym_db.RegisterMessage(FaceAnnotation) _sym_db.RegisterMessage(FaceAnnotation.Landmark) @@ -3203,26 +3208,31 @@ LocationInfo = _reflection.GeneratedProtocolMessageType( "LocationInfo", (_message.Message,), - dict( - DESCRIPTOR=_LOCATIONINFO, - __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - __doc__="""Detected entity location information. + { + "DESCRIPTOR": _LOCATIONINFO, + "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + "__doc__": """Detected entity location information. + + Attributes: lat_lng: lat/long location coordinates. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.LocationInfo) - ), + }, ) _sym_db.RegisterMessage(LocationInfo) Property = _reflection.GeneratedProtocolMessageType( "Property", (_message.Message,), - dict( - DESCRIPTOR=_PROPERTY, - __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - __doc__="""A ``Property`` consists of a user-supplied name/value pair. + { + "DESCRIPTOR": _PROPERTY, + "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + "__doc__": """A ``Property`` consists of a user-supplied name/value + pair. + + Attributes: name: Name of the property. @@ -3232,17 +3242,19 @@ Value of numeric properties. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Property) - ), + }, ) _sym_db.RegisterMessage(Property) EntityAnnotation = _reflection.GeneratedProtocolMessageType( "EntityAnnotation", (_message.Message,), - dict( - DESCRIPTOR=_ENTITYANNOTATION, - __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - __doc__="""Set of detected entity features. + { + "DESCRIPTOR": _ENTITYANNOTATION, + "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + "__doc__": """Set of detected entity features. + + Attributes: mid: Opaque entity ID. Some IDs may be available in `Google @@ -3259,13 +3271,13 @@ confidence: \ **Deprecated. Use ``score`` instead.** The accuracy of the entity detection in an image. For example, for an image in - which the "Eiffel Tower" entity is detected, this field + which the “Eiffel Tower” entity is detected, this field represents the confidence that there is a tower in the query image. Range [0, 1]. topicality: The relevancy of the ICA (Image Content Annotation) label to - the image. For example, the relevancy of "tower" is likely - higher to an image containing the detected "Eiffel Tower" than + the image. For example, the relevancy of “tower” is likely + higher to an image containing the detected “Eiffel Tower” than to an image containing a detected distant towering building, even though the confidence that there is a tower in each image may be the same. Range [0, 1]. @@ -3285,19 +3297,21 @@ entity. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.EntityAnnotation) - ), + }, ) _sym_db.RegisterMessage(EntityAnnotation) SafeSearchAnnotation = _reflection.GeneratedProtocolMessageType( "SafeSearchAnnotation", (_message.Message,), - dict( - DESCRIPTOR=_SAFESEARCHANNOTATION, - __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - __doc__="""Set of features pertaining to the image, computed by computer vision - methods over safe-search verticals (for example, adult, spoof, - medical, violence). + { + "DESCRIPTOR": _SAFESEARCHANNOTATION, + "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + "__doc__": """Set of features pertaining to the image, computed by + computer vision methods over safe-search verticals (for example, adult, + spoof, medical, violence). + + Attributes: adult: Represents the adult content likelihood for the image. Adult @@ -3305,7 +3319,7 @@ images or cartoons, or sexual activities. spoof: Spoof likelihood. The likelihood that an modification was made - to the image's canonical version to make it appear funny or + to the image’s canonical version to make it appear funny or offensive. medical: Likelihood that this is a medical image. @@ -3318,17 +3332,19 @@ poses, or close-ups of sensitive body areas. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.SafeSearchAnnotation) - ), + }, ) _sym_db.RegisterMessage(SafeSearchAnnotation) LatLongRect = _reflection.GeneratedProtocolMessageType( "LatLongRect", (_message.Message,), - dict( - DESCRIPTOR=_LATLONGRECT, - __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - __doc__="""Rectangle determined by min and max ``LatLng`` pairs. + { + "DESCRIPTOR": _LATLONGRECT, + "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + "__doc__": """Rectangle determined by min and max ``LatLng`` pairs. + + Attributes: min_lat_lng: Min lat/long pair. @@ -3336,18 +3352,20 @@ Max lat/long pair. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.LatLongRect) - ), + }, ) _sym_db.RegisterMessage(LatLongRect) ColorInfo = _reflection.GeneratedProtocolMessageType( "ColorInfo", (_message.Message,), - dict( - DESCRIPTOR=_COLORINFO, - __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - __doc__="""Color information consists of RGB channels, score, and the fraction of - the image that the color occupies in the image. + { + "DESCRIPTOR": _COLORINFO, + "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + "__doc__": """Color information consists of RGB channels, score, and the + fraction of the image that the color occupies in the image. + + Attributes: color: RGB components of the color. @@ -3358,54 +3376,60 @@ in range [0, 1]. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.ColorInfo) - ), + }, ) _sym_db.RegisterMessage(ColorInfo) DominantColorsAnnotation = _reflection.GeneratedProtocolMessageType( "DominantColorsAnnotation", (_message.Message,), - dict( - DESCRIPTOR=_DOMINANTCOLORSANNOTATION, - __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - __doc__="""Set of dominant colors and their corresponding scores. + { + "DESCRIPTOR": _DOMINANTCOLORSANNOTATION, + "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + "__doc__": """Set of dominant colors and their corresponding scores. + + Attributes: colors: RGB color values with their score and pixel fraction. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.DominantColorsAnnotation) - ), + }, ) _sym_db.RegisterMessage(DominantColorsAnnotation) ImageProperties = _reflection.GeneratedProtocolMessageType( "ImageProperties", (_message.Message,), - dict( - DESCRIPTOR=_IMAGEPROPERTIES, - __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - __doc__="""Stores image properties, such as dominant colors. + { + "DESCRIPTOR": _IMAGEPROPERTIES, + "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + "__doc__": """Stores image properties, such as dominant colors. + + Attributes: dominant_colors: If present, dominant colors completed successfully. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.ImageProperties) - ), + }, ) _sym_db.RegisterMessage(ImageProperties) CropHint = _reflection.GeneratedProtocolMessageType( "CropHint", (_message.Message,), - dict( - DESCRIPTOR=_CROPHINT, - __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - __doc__="""Single crop hint that is used to generate a new crop when serving an - image. + { + "DESCRIPTOR": _CROPHINT, + "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + "__doc__": """Single crop hint that is used to generate a new crop when + serving an image. + + Attributes: bounding_poly: The bounding polygon for the crop region. The coordinates of - the bounding box are in the original image's scale, as + the bounding box are in the original image’s scale, as returned in ``ImageParams``. confidence: Confidence of this being a salient region. Range [0, 1]. @@ -3414,34 +3438,38 @@ the original image. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.CropHint) - ), + }, ) _sym_db.RegisterMessage(CropHint) CropHintsAnnotation = _reflection.GeneratedProtocolMessageType( "CropHintsAnnotation", (_message.Message,), - dict( - DESCRIPTOR=_CROPHINTSANNOTATION, - __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - __doc__="""Set of crop hints that are used to generate new crops when serving - images. + { + "DESCRIPTOR": _CROPHINTSANNOTATION, + "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + "__doc__": """Set of crop hints that are used to generate new crops when + serving images. + + Attributes: crop_hints: Crop hint results. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.CropHintsAnnotation) - ), + }, ) _sym_db.RegisterMessage(CropHintsAnnotation) CropHintsParams = _reflection.GeneratedProtocolMessageType( "CropHintsParams", (_message.Message,), - dict( - DESCRIPTOR=_CROPHINTSPARAMS, - __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - __doc__="""Parameters for crop hints annotation request. + { + "DESCRIPTOR": _CROPHINTSPARAMS, + "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + "__doc__": """Parameters for crop hints annotation request. + + Attributes: aspect_ratios: Aspect ratios in floats, representing the ratio of the width @@ -3452,47 +3480,51 @@ 16; any aspect ratios provided after the 16th are ignored. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.CropHintsParams) - ), + }, ) _sym_db.RegisterMessage(CropHintsParams) WebDetectionParams = _reflection.GeneratedProtocolMessageType( "WebDetectionParams", (_message.Message,), - dict( - DESCRIPTOR=_WEBDETECTIONPARAMS, - __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - __doc__="""Parameters for web detection request. + { + "DESCRIPTOR": _WEBDETECTIONPARAMS, + "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + "__doc__": """Parameters for web detection request. + + Attributes: include_geo_results: Whether to include results derived from the geo information in the image. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.WebDetectionParams) - ), + }, ) _sym_db.RegisterMessage(WebDetectionParams) ImageContext = _reflection.GeneratedProtocolMessageType( "ImageContext", (_message.Message,), - dict( - DESCRIPTOR=_IMAGECONTEXT, - __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - __doc__="""Image context and/or feature-specific parameters. + { + "DESCRIPTOR": _IMAGECONTEXT, + "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + "__doc__": """Image context and/or feature-specific parameters. + + Attributes: lat_long_rect: Not used. language_hints: - List of languages to use for TEXT\_DETECTION. In most cases, - an empty value yields the best results since it enables - automatic language detection. For languages based on the Latin - alphabet, setting ``language_hints`` is not needed. In rare - cases, when the language of the text in the image is known, - setting a hint will help get better results (although it will - be a significant hindrance if the hint is wrong). Text - detection returns an error if one or more of the specified - languages is not one of the `supported languages + List of languages to use for TEXT_DETECTION. In most cases, an + empty value yields the best results since it enables automatic + language detection. For languages based on the Latin alphabet, + setting ``language_hints`` is not needed. In rare cases, when + the language of the text in the image is known, setting a hint + will help get better results (although it will be a + significant hindrance if the hint is wrong). Text detection + returns an error if one or more of the specified languages is + not one of the `supported languages `__. crop_hints_params: Parameters for crop hints annotation request. @@ -3500,18 +3532,20 @@ Parameters for web detection. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.ImageContext) - ), + }, ) _sym_db.RegisterMessage(ImageContext) AnnotateImageRequest = _reflection.GeneratedProtocolMessageType( "AnnotateImageRequest", (_message.Message,), - dict( - DESCRIPTOR=_ANNOTATEIMAGEREQUEST, - __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - __doc__="""Request for performing Google Cloud Vision API tasks over a user- - provided image, with user-requested features. + { + "DESCRIPTOR": _ANNOTATEIMAGEREQUEST, + "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + "__doc__": """Request for performing Google Cloud Vision API tasks over + a user-provided image, with user-requested features. + + Attributes: image: The image to be processed. @@ -3521,18 +3555,20 @@ Additional context that may accompany the image. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.AnnotateImageRequest) - ), + }, ) _sym_db.RegisterMessage(AnnotateImageRequest) ImageAnnotationContext = _reflection.GeneratedProtocolMessageType( "ImageAnnotationContext", (_message.Message,), - dict( - DESCRIPTOR=_IMAGEANNOTATIONCONTEXT, - __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - __doc__="""If an image was produced from a file (e.g. a PDF), this message gives - information about the source of that image. + { + "DESCRIPTOR": _IMAGEANNOTATIONCONTEXT, + "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + "__doc__": """If an image was produced from a file (e.g. a PDF), this + message gives information about the source of that image. + + Attributes: uri: The URI of the file used to produce the image. @@ -3541,17 +3577,19 @@ number within the file used to produce the image. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.ImageAnnotationContext) - ), + }, ) _sym_db.RegisterMessage(ImageAnnotationContext) AnnotateImageResponse = _reflection.GeneratedProtocolMessageType( "AnnotateImageResponse", (_message.Message,), - dict( - DESCRIPTOR=_ANNOTATEIMAGERESPONSE, - __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - __doc__="""Response to an image annotation request. + { + "DESCRIPTOR": _ANNOTATEIMAGERESPONSE, + "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + "__doc__": """Response to an image annotation request. + + Attributes: face_annotations: If present, face detection has completed successfully. @@ -3584,18 +3622,20 @@ where this image comes from. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.AnnotateImageResponse) - ), + }, ) _sym_db.RegisterMessage(AnnotateImageResponse) AnnotateFileResponse = _reflection.GeneratedProtocolMessageType( "AnnotateFileResponse", (_message.Message,), - dict( - DESCRIPTOR=_ANNOTATEFILERESPONSE, - __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - __doc__="""Response to a single file annotation request. A file may contain one - or more images, which individually have their own responses. + { + "DESCRIPTOR": _ANNOTATEFILERESPONSE, + "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + "__doc__": """Response to a single file annotation request. A file may + contain one or more images, which individually have their own responses. + + Attributes: input_config: Information about the file for which this response is @@ -3604,51 +3644,57 @@ Individual responses to images found within the file. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.AnnotateFileResponse) - ), + }, ) _sym_db.RegisterMessage(AnnotateFileResponse) BatchAnnotateImagesRequest = _reflection.GeneratedProtocolMessageType( "BatchAnnotateImagesRequest", (_message.Message,), - dict( - DESCRIPTOR=_BATCHANNOTATEIMAGESREQUEST, - __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - __doc__="""Multiple image annotation requests are batched into a single service - call. + { + "DESCRIPTOR": _BATCHANNOTATEIMAGESREQUEST, + "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + "__doc__": """Multiple image annotation requests are batched into a + single service call. + + Attributes: requests: Required. Individual image annotation requests for this batch. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest) - ), + }, ) _sym_db.RegisterMessage(BatchAnnotateImagesRequest) BatchAnnotateImagesResponse = _reflection.GeneratedProtocolMessageType( "BatchAnnotateImagesResponse", (_message.Message,), - dict( - DESCRIPTOR=_BATCHANNOTATEIMAGESRESPONSE, - __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - __doc__="""Response to a batch image annotation request. + { + "DESCRIPTOR": _BATCHANNOTATEIMAGESRESPONSE, + "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + "__doc__": """Response to a batch image annotation request. + + Attributes: responses: Individual responses to image annotation requests within the batch. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse) - ), + }, ) _sym_db.RegisterMessage(BatchAnnotateImagesResponse) AsyncAnnotateFileRequest = _reflection.GeneratedProtocolMessageType( "AsyncAnnotateFileRequest", (_message.Message,), - dict( - DESCRIPTOR=_ASYNCANNOTATEFILEREQUEST, - __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - __doc__="""An offline file annotation request. + { + "DESCRIPTOR": _ASYNCANNOTATEFILEREQUEST, + "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + "__doc__": """An offline file annotation request. + + Attributes: input_config: Required. Information about the input file. @@ -3658,92 +3704,102 @@ Additional context that may accompany the image(s) in the file. output_config: - Required. The desired output location and metadata (e.g. - format). + Required. The desired output location and metadata + (e.g. format). """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest) - ), + }, ) _sym_db.RegisterMessage(AsyncAnnotateFileRequest) AsyncAnnotateFileResponse = _reflection.GeneratedProtocolMessageType( "AsyncAnnotateFileResponse", (_message.Message,), - dict( - DESCRIPTOR=_ASYNCANNOTATEFILERESPONSE, - __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - __doc__="""The response for a single offline file annotation request. + { + "DESCRIPTOR": _ASYNCANNOTATEFILERESPONSE, + "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + "__doc__": """The response for a single offline file annotation request. + + Attributes: output_config: The output location and metadata from AsyncAnnotateFileRequest. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse) - ), + }, ) _sym_db.RegisterMessage(AsyncAnnotateFileResponse) AsyncBatchAnnotateFilesRequest = _reflection.GeneratedProtocolMessageType( "AsyncBatchAnnotateFilesRequest", (_message.Message,), - dict( - DESCRIPTOR=_ASYNCBATCHANNOTATEFILESREQUEST, - __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - __doc__="""Multiple async file annotation requests are batched into a single - service call. + { + "DESCRIPTOR": _ASYNCBATCHANNOTATEFILESREQUEST, + "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + "__doc__": """Multiple async file annotation requests are batched into a + single service call. + + Attributes: requests: Required. Individual async file annotation requests for this batch. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest) - ), + }, ) _sym_db.RegisterMessage(AsyncBatchAnnotateFilesRequest) AsyncBatchAnnotateFilesResponse = _reflection.GeneratedProtocolMessageType( "AsyncBatchAnnotateFilesResponse", (_message.Message,), - dict( - DESCRIPTOR=_ASYNCBATCHANNOTATEFILESRESPONSE, - __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - __doc__="""Response to an async batch file annotation request. + { + "DESCRIPTOR": _ASYNCBATCHANNOTATEFILESRESPONSE, + "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + "__doc__": """Response to an async batch file annotation request. + + Attributes: responses: The list of file annotation responses, one for each request in AsyncBatchAnnotateFilesRequest. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse) - ), + }, ) _sym_db.RegisterMessage(AsyncBatchAnnotateFilesResponse) InputConfig = _reflection.GeneratedProtocolMessageType( "InputConfig", (_message.Message,), - dict( - DESCRIPTOR=_INPUTCONFIG, - __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - __doc__="""The desired input location and metadata. + { + "DESCRIPTOR": _INPUTCONFIG, + "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + "__doc__": """The desired input location and metadata. + + Attributes: gcs_source: The Google Cloud Storage location to read the input from. mime_type: - The type of the file. Currently only "application/pdf" and - "image/tiff" are supported. Wildcards are not supported. + The type of the file. Currently only “application/pdf” and + “image/tiff” are supported. Wildcards are not supported. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.InputConfig) - ), + }, ) _sym_db.RegisterMessage(InputConfig) OutputConfig = _reflection.GeneratedProtocolMessageType( "OutputConfig", (_message.Message,), - dict( - DESCRIPTOR=_OUTPUTCONFIG, - __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - __doc__="""The desired output location and metadata. + { + "DESCRIPTOR": _OUTPUTCONFIG, + "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + "__doc__": """The desired output location and metadata. + + Attributes: gcs_destination: The Google Cloud Storage location to write the output(s) to. @@ -3754,39 +3810,45 @@ 100 pages, 100 response protos will be generated. If ``batch_size`` = 20, then 5 json files each containing 20 response protos will be written under the prefix - ``gcs_destination``.\ ``uri``. Currently, batch\_size only + ``gcs_destination``.\ ``uri``. Currently, batch_size only applies to GcsDestination, with potential future support for other output configurations. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.OutputConfig) - ), + }, ) _sym_db.RegisterMessage(OutputConfig) GcsSource = _reflection.GeneratedProtocolMessageType( "GcsSource", (_message.Message,), - dict( - DESCRIPTOR=_GCSSOURCE, - __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - __doc__="""The Google Cloud Storage location where the input will be read from. + { + "DESCRIPTOR": _GCSSOURCE, + "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + "__doc__": """The Google Cloud Storage location where the input will be + read from. + + Attributes: uri: Google Cloud Storage URI for the input file. This must only be a GCS object. Wildcards are not currently supported. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.GcsSource) - ), + }, ) _sym_db.RegisterMessage(GcsSource) GcsDestination = _reflection.GeneratedProtocolMessageType( "GcsDestination", (_message.Message,), - dict( - DESCRIPTOR=_GCSDESTINATION, - __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - __doc__="""The Google Cloud Storage location where the output will be written to. + { + "DESCRIPTOR": _GCSDESTINATION, + "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + "__doc__": """The Google Cloud Storage location where the output will be + written to. + + Attributes: uri: Google Cloud Storage URI where the results will be stored. @@ -3802,17 +3864,19 @@ is too large and overflows into multiple sharded files. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.GcsDestination) - ), + }, ) _sym_db.RegisterMessage(GcsDestination) OperationMetadata = _reflection.GeneratedProtocolMessageType( "OperationMetadata", (_message.Message,), - dict( - DESCRIPTOR=_OPERATIONMETADATA, - __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - __doc__="""Contains metadata for the BatchAnnotateImages operation. + { + "DESCRIPTOR": _OPERATIONMETADATA, + "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", + "__doc__": """Contains metadata for the BatchAnnotateImages operation. + + Attributes: state: Current state of the batch operation. @@ -3822,7 +3886,7 @@ The time when the operation result was last updated. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.OperationMetadata) - ), + }, ) _sym_db.RegisterMessage(OperationMetadata) @@ -3836,9 +3900,7 @@ full_name="google.cloud.vision.v1p2beta1.ImageAnnotator", file=DESCRIPTOR, index=0, - serialized_options=_b( - "\312A\025vision.googleapis.com\322A[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-vision" - ), + serialized_options=b"\312A\025vision.googleapis.com\322A[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-vision", serialized_start=7311, serialized_end=7876, methods=[ @@ -3849,9 +3911,7 @@ containing_service=None, input_type=_BATCHANNOTATEIMAGESREQUEST, output_type=_BATCHANNOTATEIMAGESRESPONSE, - serialized_options=_b( - '\202\323\344\223\002\037"\032/v1p2beta1/images:annotate:\001*\332A\010requests' - ), + serialized_options=b'\202\323\344\223\002\037"\032/v1p2beta1/images:annotate:\001*\332A\010requests', ), _descriptor.MethodDescriptor( name="AsyncBatchAnnotateFiles", @@ -3860,9 +3920,7 @@ containing_service=None, input_type=_ASYNCBATCHANNOTATEFILESREQUEST, output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - serialized_options=_b( - '\202\323\344\223\002("#/v1p2beta1/files:asyncBatchAnnotate:\001*\332A\010requests\312A4\n\037AsyncBatchAnnotateFilesResponse\022\021OperationMetadata' - ), + serialized_options=b'\202\323\344\223\002("#/v1p2beta1/files:asyncBatchAnnotate:\001*\332A\010requests\312A4\n\037AsyncBatchAnnotateFilesResponse\022\021OperationMetadata', ), ], ) diff --git a/google/cloud/vision_v1p2beta1/proto/text_annotation_pb2.py b/google/cloud/vision_v1p2beta1/proto/text_annotation_pb2.py index 929ffde8..443c134f 100644 --- a/google/cloud/vision_v1p2beta1/proto/text_annotation_pb2.py +++ b/google/cloud/vision_v1p2beta1/proto/text_annotation_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1p2beta1/proto/text_annotation.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -25,12 +22,8 @@ name="google/cloud/vision_v1p2beta1/proto/text_annotation.proto", package="google.cloud.vision.v1p2beta1", syntax="proto3", - serialized_options=_b( - "\n!com.google.cloud.vision.v1p2beta1B\023TextAnnotationProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision\370\001\001" - ), - serialized_pb=_b( - '\n9google/cloud/vision_v1p2beta1/proto/text_annotation.proto\x12\x1dgoogle.cloud.vision.v1p2beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x32google/cloud/vision_v1p2beta1/proto/geometry.proto"\xb2\x04\n\x0eTextAnnotation\x12\x32\n\x05pages\x18\x01 \x03(\x0b\x32#.google.cloud.vision.v1p2beta1.Page\x12\x0c\n\x04text\x18\x02 \x01(\t\x1a=\n\x10\x44\x65tectedLanguage\x12\x15\n\rlanguage_code\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x1a\xdc\x01\n\rDetectedBreak\x12S\n\x04type\x18\x01 \x01(\x0e\x32\x45.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType\x12\x11\n\tis_prefix\x18\x02 \x01(\x08"c\n\tBreakType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05SPACE\x10\x01\x12\x0e\n\nSURE_SPACE\x10\x02\x12\x12\n\x0e\x45OL_SURE_SPACE\x10\x03\x12\n\n\x06HYPHEN\x10\x04\x12\x0e\n\nLINE_BREAK\x10\x05\x1a\xbf\x01\n\x0cTextProperty\x12Z\n\x12\x64\x65tected_languages\x18\x01 \x03(\x0b\x32>.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage\x12S\n\x0e\x64\x65tected_break\x18\x02 \x01(\x0b\x32;.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak"\xbd\x01\n\x04Page\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty\x12\r\n\x05width\x18\x02 \x01(\x05\x12\x0e\n\x06height\x18\x03 \x01(\x05\x12\x34\n\x06\x62locks\x18\x04 \x03(\x0b\x32$.google.cloud.vision.v1p2beta1.Block\x12\x12\n\nconfidence\x18\x05 \x01(\x02"\x82\x03\n\x05\x42lock\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.BoundingPoly\x12<\n\nparagraphs\x18\x03 \x03(\x0b\x32(.google.cloud.vision.v1p2beta1.Paragraph\x12\x42\n\nblock_type\x18\x04 \x01(\x0e\x32..google.cloud.vision.v1p2beta1.Block.BlockType\x12\x12\n\nconfidence\x18\x05 \x01(\x02"R\n\tBlockType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04TEXT\x10\x01\x12\t\n\x05TABLE\x10\x02\x12\x0b\n\x07PICTURE\x10\x03\x12\t\n\x05RULER\x10\x04\x12\x0b\n\x07\x42\x41RCODE\x10\x05"\xe4\x01\n\tParagraph\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.BoundingPoly\x12\x32\n\x05words\x18\x03 \x03(\x0b\x32#.google.cloud.vision.v1p2beta1.Word\x12\x12\n\nconfidence\x18\x04 \x01(\x02"\xe3\x01\n\x04Word\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.BoundingPoly\x12\x36\n\x07symbols\x18\x03 \x03(\x0b\x32%.google.cloud.vision.v1p2beta1.Symbol\x12\x12\n\nconfidence\x18\x04 \x01(\x02"\xbb\x01\n\x06Symbol\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.BoundingPoly\x12\x0c\n\x04text\x18\x03 \x01(\t\x12\x12\n\nconfidence\x18\x04 \x01(\x02\x42\x82\x01\n!com.google.cloud.vision.v1p2beta1B\x13TextAnnotationProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision\xf8\x01\x01\x62\x06proto3' - ), + serialized_options=b"\n!com.google.cloud.vision.v1p2beta1B\023TextAnnotationProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision\370\001\001", + serialized_pb=b'\n9google/cloud/vision_v1p2beta1/proto/text_annotation.proto\x12\x1dgoogle.cloud.vision.v1p2beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x32google/cloud/vision_v1p2beta1/proto/geometry.proto"\xb2\x04\n\x0eTextAnnotation\x12\x32\n\x05pages\x18\x01 \x03(\x0b\x32#.google.cloud.vision.v1p2beta1.Page\x12\x0c\n\x04text\x18\x02 \x01(\t\x1a=\n\x10\x44\x65tectedLanguage\x12\x15\n\rlanguage_code\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x1a\xdc\x01\n\rDetectedBreak\x12S\n\x04type\x18\x01 \x01(\x0e\x32\x45.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType\x12\x11\n\tis_prefix\x18\x02 \x01(\x08"c\n\tBreakType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05SPACE\x10\x01\x12\x0e\n\nSURE_SPACE\x10\x02\x12\x12\n\x0e\x45OL_SURE_SPACE\x10\x03\x12\n\n\x06HYPHEN\x10\x04\x12\x0e\n\nLINE_BREAK\x10\x05\x1a\xbf\x01\n\x0cTextProperty\x12Z\n\x12\x64\x65tected_languages\x18\x01 \x03(\x0b\x32>.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage\x12S\n\x0e\x64\x65tected_break\x18\x02 \x01(\x0b\x32;.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak"\xbd\x01\n\x04Page\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty\x12\r\n\x05width\x18\x02 \x01(\x05\x12\x0e\n\x06height\x18\x03 \x01(\x05\x12\x34\n\x06\x62locks\x18\x04 \x03(\x0b\x32$.google.cloud.vision.v1p2beta1.Block\x12\x12\n\nconfidence\x18\x05 \x01(\x02"\x82\x03\n\x05\x42lock\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.BoundingPoly\x12<\n\nparagraphs\x18\x03 \x03(\x0b\x32(.google.cloud.vision.v1p2beta1.Paragraph\x12\x42\n\nblock_type\x18\x04 \x01(\x0e\x32..google.cloud.vision.v1p2beta1.Block.BlockType\x12\x12\n\nconfidence\x18\x05 \x01(\x02"R\n\tBlockType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04TEXT\x10\x01\x12\t\n\x05TABLE\x10\x02\x12\x0b\n\x07PICTURE\x10\x03\x12\t\n\x05RULER\x10\x04\x12\x0b\n\x07\x42\x41RCODE\x10\x05"\xe4\x01\n\tParagraph\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.BoundingPoly\x12\x32\n\x05words\x18\x03 \x03(\x0b\x32#.google.cloud.vision.v1p2beta1.Word\x12\x12\n\nconfidence\x18\x04 \x01(\x02"\xe3\x01\n\x04Word\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.BoundingPoly\x12\x36\n\x07symbols\x18\x03 \x03(\x0b\x32%.google.cloud.vision.v1p2beta1.Symbol\x12\x12\n\nconfidence\x18\x04 \x01(\x02"\xbb\x01\n\x06Symbol\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.BoundingPoly\x12\x0c\n\x04text\x18\x03 \x01(\t\x12\x12\n\nconfidence\x18\x04 \x01(\x02\x42\x82\x01\n!com.google.cloud.vision.v1p2beta1B\x13TextAnnotationProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision\xf8\x01\x01\x62\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_geometry__pb2.DESCRIPTOR, @@ -119,7 +112,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -305,7 +298,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -792,7 +785,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -888,32 +881,36 @@ TextAnnotation = _reflection.GeneratedProtocolMessageType( "TextAnnotation", (_message.Message,), - dict( - DetectedLanguage=_reflection.GeneratedProtocolMessageType( + { + "DetectedLanguage": _reflection.GeneratedProtocolMessageType( "DetectedLanguage", (_message.Message,), - dict( - DESCRIPTOR=_TEXTANNOTATION_DETECTEDLANGUAGE, - __module__="google.cloud.vision_v1p2beta1.proto.text_annotation_pb2", - __doc__="""Detected language for a structural component. + { + "DESCRIPTOR": _TEXTANNOTATION_DETECTEDLANGUAGE, + "__module__": "google.cloud.vision_v1p2beta1.proto.text_annotation_pb2", + "__doc__": """Detected language for a structural component. + + Attributes: language_code: - The BCP-47 language code, such as "en-US" or "sr-Latn". For + The BCP-47 language code, such as “en-US” or “sr-Latn”. For more information, see http://www.unicode.org/reports/tr35/#Uni - code\_locale\_identifier. + code_locale_identifier. confidence: Confidence of detected language. Range [0, 1]. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage) - ), + }, ), - DetectedBreak=_reflection.GeneratedProtocolMessageType( + "DetectedBreak": _reflection.GeneratedProtocolMessageType( "DetectedBreak", (_message.Message,), - dict( - DESCRIPTOR=_TEXTANNOTATION_DETECTEDBREAK, - __module__="google.cloud.vision_v1p2beta1.proto.text_annotation_pb2", - __doc__="""Detected start or end of a structural component. + { + "DESCRIPTOR": _TEXTANNOTATION_DETECTEDBREAK, + "__module__": "google.cloud.vision_v1p2beta1.proto.text_annotation_pb2", + "__doc__": """Detected start or end of a structural component. + + Attributes: type: Detected break type. @@ -921,15 +918,18 @@ True if break prepends the element. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak) - ), + }, ), - TextProperty=_reflection.GeneratedProtocolMessageType( + "TextProperty": _reflection.GeneratedProtocolMessageType( "TextProperty", (_message.Message,), - dict( - DESCRIPTOR=_TEXTANNOTATION_TEXTPROPERTY, - __module__="google.cloud.vision_v1p2beta1.proto.text_annotation_pb2", - __doc__="""Additional information detected on the structural component. + { + "DESCRIPTOR": _TEXTANNOTATION_TEXTPROPERTY, + "__module__": "google.cloud.vision_v1p2beta1.proto.text_annotation_pb2", + "__doc__": """Additional information detected on the structural + component. + + Attributes: detected_languages: A list of detected languages together with confidence. @@ -937,18 +937,20 @@ Detected start or end of a text segment. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty) - ), + }, ), - DESCRIPTOR=_TEXTANNOTATION, - __module__="google.cloud.vision_v1p2beta1.proto.text_annotation_pb2", - __doc__="""TextAnnotation contains a structured representation of OCR extracted - text. The hierarchy of an OCR extracted text structure is like this: - 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. - v1p2beta1.TextAnnotation.TextProperty] message definition below for - more detail. + "DESCRIPTOR": _TEXTANNOTATION, + "__module__": "google.cloud.vision_v1p2beta1.proto.text_annotation_pb2", + "__doc__": """TextAnnotation contains a structured representation of OCR + extracted text. The hierarchy of an OCR extracted text structure is like + this: 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.v1p2beta1.TextAnnotation.TextProperty] + message definition below for more detail. + + Attributes: pages: List of pages detected by OCR. @@ -956,7 +958,7 @@ UTF-8 text detected on the pages. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.TextAnnotation) - ), + }, ) _sym_db.RegisterMessage(TextAnnotation) _sym_db.RegisterMessage(TextAnnotation.DetectedLanguage) @@ -966,10 +968,12 @@ Page = _reflection.GeneratedProtocolMessageType( "Page", (_message.Message,), - dict( - DESCRIPTOR=_PAGE, - __module__="google.cloud.vision_v1p2beta1.proto.text_annotation_pb2", - __doc__="""Detected page from OCR. + { + "DESCRIPTOR": _PAGE, + "__module__": "google.cloud.vision_v1p2beta1.proto.text_annotation_pb2", + "__doc__": """Detected page from OCR. + + Attributes: property: Additional information detected on the page. @@ -985,17 +989,19 @@ Confidence of the OCR results on the page. Range [0, 1]. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Page) - ), + }, ) _sym_db.RegisterMessage(Page) Block = _reflection.GeneratedProtocolMessageType( "Block", (_message.Message,), - dict( - DESCRIPTOR=_BLOCK, - __module__="google.cloud.vision_v1p2beta1.proto.text_annotation_pb2", - __doc__="""Logical element on the page. + { + "DESCRIPTOR": _BLOCK, + "__module__": "google.cloud.vision_v1p2beta1.proto.text_annotation_pb2", + "__doc__": """Logical element on the page. + + Attributes: property: Additional information detected for the block. @@ -1004,12 +1010,12 @@ of top-left, top-right, bottom-right, bottom-left. When a rotation of the bounding box is detected the rotation is represented as around the top-left corner as defined when the - text is read in the 'natural' orientation. For example: - + text is read in the ‘natural’ orientation. For example: - when the text is horizontal it might look like: :: - 0----1 | | 3----2 - when it's rotated 180 + 0----1 | | 3----2 - when it’s rotated 180 degrees around the top-left corner it becomes: :: - 2----3 | | 1----0 and the vertice order will - still be (0, 1, 2, 3). + 2----3 | | 1----0 and the vertice order + will still be (0, 1, 2, 3). paragraphs: List of paragraphs in this block (if this blocks is of type text). @@ -1019,18 +1025,20 @@ Confidence of the OCR results on the block. Range [0, 1]. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Block) - ), + }, ) _sym_db.RegisterMessage(Block) Paragraph = _reflection.GeneratedProtocolMessageType( "Paragraph", (_message.Message,), - dict( - DESCRIPTOR=_PARAGRAPH, - __module__="google.cloud.vision_v1p2beta1.proto.text_annotation_pb2", - __doc__="""Structural unit of text representing a number of words in certain - order. + { + "DESCRIPTOR": _PARAGRAPH, + "__module__": "google.cloud.vision_v1p2beta1.proto.text_annotation_pb2", + "__doc__": """Structural unit of text representing a number of words in + certain order. + + Attributes: property: Additional information detected for the paragraph. @@ -1039,28 +1047,30 @@ order of top-left, top-right, bottom-right, bottom-left. When a rotation of the bounding box is detected the rotation is represented as around the top-left corner as defined when the - text is read in the 'natural' orientation. For example: \* - when the text is horizontal it might look like: 0----1 \| \| 3 - ----2 \* when it's rotated 180 degrees around the top-left - corner it becomes: 2----3 \| \| 1----0 and the vertice order - will still be (0, 1, 2, 3). + text is read in the ‘natural’ orientation. For example: \* + when the text is horizontal it might look like: 0—-1 \| \| + 3—-2 \* when it’s rotated 180 degrees around the top-left + corner it becomes: 2—-3 \| \| 1—-0 and the vertice order will + still be (0, 1, 2, 3). words: List of words in this paragraph. confidence: Confidence of the OCR results for the paragraph. Range [0, 1]. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Paragraph) - ), + }, ) _sym_db.RegisterMessage(Paragraph) Word = _reflection.GeneratedProtocolMessageType( "Word", (_message.Message,), - dict( - DESCRIPTOR=_WORD, - __module__="google.cloud.vision_v1p2beta1.proto.text_annotation_pb2", - __doc__="""A word representation. + { + "DESCRIPTOR": _WORD, + "__module__": "google.cloud.vision_v1p2beta1.proto.text_annotation_pb2", + "__doc__": """A word representation. + + Attributes: property: Additional information detected for the word. @@ -1069,11 +1079,11 @@ of top-left, top-right, bottom-right, bottom-left. When a rotation of the bounding box is detected the rotation is represented as around the top-left corner as defined when the - text is read in the 'natural' orientation. For example: \* - when the text is horizontal it might look like: 0----1 \| \| 3 - ----2 \* when it's rotated 180 degrees around the top-left - corner it becomes: 2----3 \| \| 1----0 and the vertice order - will still be (0, 1, 2, 3). + text is read in the ‘natural’ orientation. For example: \* + when the text is horizontal it might look like: 0—-1 \| \| + 3—-2 \* when it’s rotated 180 degrees around the top-left + corner it becomes: 2—-3 \| \| 1—-0 and the vertice order will + still be (0, 1, 2, 3). symbols: List of symbols in the word. The order of the symbols follows the natural reading order. @@ -1081,17 +1091,19 @@ Confidence of the OCR results for the word. Range [0, 1]. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Word) - ), + }, ) _sym_db.RegisterMessage(Word) Symbol = _reflection.GeneratedProtocolMessageType( "Symbol", (_message.Message,), - dict( - DESCRIPTOR=_SYMBOL, - __module__="google.cloud.vision_v1p2beta1.proto.text_annotation_pb2", - __doc__="""A single symbol representation. + { + "DESCRIPTOR": _SYMBOL, + "__module__": "google.cloud.vision_v1p2beta1.proto.text_annotation_pb2", + "__doc__": """A single symbol representation. + + Attributes: property: Additional information detected for the symbol. @@ -1100,18 +1112,18 @@ of top-left, top-right, bottom-right, bottom-left. When a rotation of the bounding box is detected the rotation is represented as around the top-left corner as defined when the - text is read in the 'natural' orientation. For example: \* - when the text is horizontal it might look like: 0----1 \| \| 3 - ----2 \* when it's rotated 180 degrees around the top-left - corner it becomes: 2----3 \| \| 1----0 and the vertice order - will still be (0, 1, 2, 3). + text is read in the ‘natural’ orientation. For example: \* + when the text is horizontal it might look like: 0—-1 \| \| + 3—-2 \* when it’s rotated 180 degrees around the top-left + corner it becomes: 2—-3 \| \| 1—-0 and the vertice order will + still be (0, 1, 2, 3). text: The actual UTF-8 representation of the symbol. confidence: Confidence of the OCR results for the symbol. Range [0, 1]. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.Symbol) - ), + }, ) _sym_db.RegisterMessage(Symbol) diff --git a/google/cloud/vision_v1p2beta1/proto/web_detection_pb2.py b/google/cloud/vision_v1p2beta1/proto/web_detection_pb2.py index eec9bd1c..c63958bc 100644 --- a/google/cloud/vision_v1p2beta1/proto/web_detection_pb2.py +++ b/google/cloud/vision_v1p2beta1/proto/web_detection_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1p2beta1/proto/web_detection.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -22,12 +19,8 @@ name="google/cloud/vision_v1p2beta1/proto/web_detection.proto", package="google.cloud.vision.v1p2beta1", syntax="proto3", - serialized_options=_b( - "\n!com.google.cloud.vision.v1p2beta1B\021WebDetectionProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision\370\001\001" - ), - serialized_pb=_b( - '\n7google/cloud/vision_v1p2beta1/proto/web_detection.proto\x12\x1dgoogle.cloud.vision.v1p2beta1\x1a\x1cgoogle/api/annotations.proto"\x8c\x07\n\x0cWebDetection\x12K\n\x0cweb_entities\x18\x01 \x03(\x0b\x32\x35.google.cloud.vision.v1p2beta1.WebDetection.WebEntity\x12R\n\x14\x66ull_matching_images\x18\x02 \x03(\x0b\x32\x34.google.cloud.vision.v1p2beta1.WebDetection.WebImage\x12U\n\x17partial_matching_images\x18\x03 \x03(\x0b\x32\x34.google.cloud.vision.v1p2beta1.WebDetection.WebImage\x12W\n\x1apages_with_matching_images\x18\x04 \x03(\x0b\x32\x33.google.cloud.vision.v1p2beta1.WebDetection.WebPage\x12U\n\x17visually_similar_images\x18\x06 \x03(\x0b\x32\x34.google.cloud.vision.v1p2beta1.WebDetection.WebImage\x12O\n\x11\x62\x65st_guess_labels\x18\x08 \x03(\x0b\x32\x34.google.cloud.vision.v1p2beta1.WebDetection.WebLabel\x1a\x42\n\tWebEntity\x12\x11\n\tentity_id\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x1a&\n\x08WebImage\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x1a\xe4\x01\n\x07WebPage\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x12\n\npage_title\x18\x03 \x01(\t\x12R\n\x14\x66ull_matching_images\x18\x04 \x03(\x0b\x32\x34.google.cloud.vision.v1p2beta1.WebDetection.WebImage\x12U\n\x17partial_matching_images\x18\x05 \x03(\x0b\x32\x34.google.cloud.vision.v1p2beta1.WebDetection.WebImage\x1a\x30\n\x08WebLabel\x12\r\n\x05label\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x02 \x01(\tB\x80\x01\n!com.google.cloud.vision.v1p2beta1B\x11WebDetectionProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision\xf8\x01\x01\x62\x06proto3' - ), + serialized_options=b"\n!com.google.cloud.vision.v1p2beta1B\021WebDetectionProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision\370\001\001", + serialized_pb=b'\n7google/cloud/vision_v1p2beta1/proto/web_detection.proto\x12\x1dgoogle.cloud.vision.v1p2beta1\x1a\x1cgoogle/api/annotations.proto"\x8c\x07\n\x0cWebDetection\x12K\n\x0cweb_entities\x18\x01 \x03(\x0b\x32\x35.google.cloud.vision.v1p2beta1.WebDetection.WebEntity\x12R\n\x14\x66ull_matching_images\x18\x02 \x03(\x0b\x32\x34.google.cloud.vision.v1p2beta1.WebDetection.WebImage\x12U\n\x17partial_matching_images\x18\x03 \x03(\x0b\x32\x34.google.cloud.vision.v1p2beta1.WebDetection.WebImage\x12W\n\x1apages_with_matching_images\x18\x04 \x03(\x0b\x32\x33.google.cloud.vision.v1p2beta1.WebDetection.WebPage\x12U\n\x17visually_similar_images\x18\x06 \x03(\x0b\x32\x34.google.cloud.vision.v1p2beta1.WebDetection.WebImage\x12O\n\x11\x62\x65st_guess_labels\x18\x08 \x03(\x0b\x32\x34.google.cloud.vision.v1p2beta1.WebDetection.WebLabel\x1a\x42\n\tWebEntity\x12\x11\n\tentity_id\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x1a&\n\x08WebImage\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x1a\xe4\x01\n\x07WebPage\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x12\n\npage_title\x18\x03 \x01(\t\x12R\n\x14\x66ull_matching_images\x18\x04 \x03(\x0b\x32\x34.google.cloud.vision.v1p2beta1.WebDetection.WebImage\x12U\n\x17partial_matching_images\x18\x05 \x03(\x0b\x32\x34.google.cloud.vision.v1p2beta1.WebDetection.WebImage\x1a\x30\n\x08WebLabel\x12\r\n\x05label\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x02 \x01(\tB\x80\x01\n!com.google.cloud.vision.v1p2beta1B\x11WebDetectionProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision\xf8\x01\x01\x62\x06proto3', dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR], ) @@ -48,7 +41,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -84,7 +77,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -122,7 +115,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -178,7 +171,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -214,7 +207,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -288,7 +281,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -306,7 +299,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -491,14 +484,16 @@ WebDetection = _reflection.GeneratedProtocolMessageType( "WebDetection", (_message.Message,), - dict( - WebEntity=_reflection.GeneratedProtocolMessageType( + { + "WebEntity": _reflection.GeneratedProtocolMessageType( "WebEntity", (_message.Message,), - dict( - DESCRIPTOR=_WEBDETECTION_WEBENTITY, - __module__="google.cloud.vision_v1p2beta1.proto.web_detection_pb2", - __doc__="""Entity deduced from similar images on the Internet. + { + "DESCRIPTOR": _WEBDETECTION_WEBENTITY, + "__module__": "google.cloud.vision_v1p2beta1.proto.web_detection_pb2", + "__doc__": """Entity deduced from similar images on the Internet. + + Attributes: entity_id: Opaque entity ID. @@ -509,15 +504,17 @@ Canonical description of the entity, in English. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.WebDetection.WebEntity) - ), + }, ), - WebImage=_reflection.GeneratedProtocolMessageType( + "WebImage": _reflection.GeneratedProtocolMessageType( "WebImage", (_message.Message,), - dict( - DESCRIPTOR=_WEBDETECTION_WEBIMAGE, - __module__="google.cloud.vision_v1p2beta1.proto.web_detection_pb2", - __doc__="""Metadata for online images. + { + "DESCRIPTOR": _WEBDETECTION_WEBIMAGE, + "__module__": "google.cloud.vision_v1p2beta1.proto.web_detection_pb2", + "__doc__": """Metadata for online images. + + Attributes: url: The result image URL. @@ -525,15 +522,17 @@ (Deprecated) Overall relevancy score for the image. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.WebDetection.WebImage) - ), + }, ), - WebPage=_reflection.GeneratedProtocolMessageType( + "WebPage": _reflection.GeneratedProtocolMessageType( "WebPage", (_message.Message,), - dict( - DESCRIPTOR=_WEBDETECTION_WEBPAGE, - __module__="google.cloud.vision_v1p2beta1.proto.web_detection_pb2", - __doc__="""Metadata for web pages. + { + "DESCRIPTOR": _WEBDETECTION_WEBPAGE, + "__module__": "google.cloud.vision_v1p2beta1.proto.web_detection_pb2", + "__doc__": """Metadata for web pages. + + Attributes: url: The result web page URL. @@ -551,29 +550,33 @@ crops. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.WebDetection.WebPage) - ), + }, ), - WebLabel=_reflection.GeneratedProtocolMessageType( + "WebLabel": _reflection.GeneratedProtocolMessageType( "WebLabel", (_message.Message,), - dict( - DESCRIPTOR=_WEBDETECTION_WEBLABEL, - __module__="google.cloud.vision_v1p2beta1.proto.web_detection_pb2", - __doc__="""Label to provide extra metadata for the web detection. + { + "DESCRIPTOR": _WEBDETECTION_WEBLABEL, + "__module__": "google.cloud.vision_v1p2beta1.proto.web_detection_pb2", + "__doc__": """Label to provide extra metadata for the web detection. + + Attributes: label: Label for extra metadata. language_code: - The BCP-47 language code for ``label``, such as "en-US" or - "sr-Latn". For more information, see http://www.unicode.org/re - ports/tr35/#Unicode\_locale\_identifier. + The BCP-47 language code for ``label``, such as “en-US” or + “sr-Latn”. For more information, see http://www.unicode.org/re + ports/tr35/#Unicode_locale_identifier. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.WebDetection.WebLabel) - ), + }, ), - DESCRIPTOR=_WEBDETECTION, - __module__="google.cloud.vision_v1p2beta1.proto.web_detection_pb2", - __doc__="""Relevant information for the image from the Internet. + "DESCRIPTOR": _WEBDETECTION, + "__module__": "google.cloud.vision_v1p2beta1.proto.web_detection_pb2", + "__doc__": """Relevant information for the image from the Internet. + + Attributes: web_entities: Deduced entities from similar images on the Internet. @@ -593,7 +596,7 @@ Best guess text labels for the request image. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p2beta1.WebDetection) - ), + }, ) _sym_db.RegisterMessage(WebDetection) _sym_db.RegisterMessage(WebDetection.WebEntity) diff --git a/google/cloud/vision_v1p3beta1/gapic/enums.py b/google/cloud/vision_v1p3beta1/gapic/enums.py index 8755caa9..e62bb24b 100644 --- a/google/cloud/vision_v1p3beta1/gapic/enums.py +++ b/google/cloud/vision_v1p3beta1/gapic/enums.py @@ -211,9 +211,9 @@ class Type(enum.IntEnum): LANDMARK_DETECTION (int): Run landmark detection. LOGO_DETECTION (int): Run logo detection. LABEL_DETECTION (int): Run label detection. - TEXT_DETECTION (int): Run text detection / optical character recognition (OCR). Text detection - is optimized for areas of text within a larger image; if the image is a - document, use ``DOCUMENT_TEXT_DETECTION`` instead. + TEXT_DETECTION (int): Run text detection / optical character recognition (OCR). Text + detection is optimized for areas of text within a larger image; if the + image is a document, use ``DOCUMENT_TEXT_DETECTION`` instead. DOCUMENT_TEXT_DETECTION (int): Run dense text document OCR. Takes precedence when both ``DOCUMENT_TEXT_DETECTION`` and ``TEXT_DETECTION`` are present. SAFE_SEARCH_DETECTION (int): Run Safe Search to detect potentially unsafe diff --git a/google/cloud/vision_v1p3beta1/gapic/image_annotator_client.py b/google/cloud/vision_v1p3beta1/gapic/image_annotator_client.py index 88155cbb..ab8cc88c 100644 --- a/google/cloud/vision_v1p3beta1/gapic/image_annotator_client.py +++ b/google/cloud/vision_v1p3beta1/gapic/image_annotator_client.py @@ -195,7 +195,7 @@ def __init__( # Service calls def batch_annotate_images( self, - requests, + requests=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None, @@ -208,10 +208,7 @@ def batch_annotate_images( >>> >>> client = vision_v1p3beta1.ImageAnnotatorClient() >>> - >>> # TODO: Initialize `requests`: - >>> requests = [] - >>> - >>> response = client.batch_annotate_images(requests) + >>> response = client.batch_annotate_images() Args: requests (list[Union[dict, ~google.cloud.vision_v1p3beta1.types.AnnotateImageRequest]]): Individual image annotation requests for this batch. @@ -261,10 +258,10 @@ def async_batch_annotate_files( metadata=None, ): """ - Run asynchronous image detection and annotation for a list of generic - files, such as PDF files, which may contain multiple pages and multiple - images per page. Progress and results can be retrieved through the - ``google.longrunning.Operations`` interface. ``Operation.metadata`` + Run asynchronous image detection and annotation for a list of + generic files, such as PDF files, which may contain multiple pages and + multiple images per page. Progress and results can be retrieved through + the ``google.longrunning.Operations`` interface. ``Operation.metadata`` contains ``OperationMetadata`` (metadata). ``Operation.response`` contains ``AsyncBatchAnnotateFilesResponse`` (results). diff --git a/google/cloud/vision_v1p3beta1/gapic/image_annotator_client_config.py b/google/cloud/vision_v1p3beta1/gapic/image_annotator_client_config.py index 41adece1..3aff6946 100644 --- a/google/cloud/vision_v1p3beta1/gapic/image_annotator_client_config.py +++ b/google/cloud/vision_v1p3beta1/gapic/image_annotator_client_config.py @@ -10,9 +10,9 @@ "initial_retry_delay_millis": 100, "retry_delay_multiplier": 1.3, "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 60000, + "initial_rpc_timeout_millis": 20000, "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, + "max_rpc_timeout_millis": 20000, "total_timeout_millis": 600000, } }, diff --git a/google/cloud/vision_v1p3beta1/gapic/product_search_client.py b/google/cloud/vision_v1p3beta1/gapic/product_search_client.py index 3a9551e0..b8b20db1 100644 --- a/google/cloud/vision_v1p3beta1/gapic/product_search_client.py +++ b/google/cloud/vision_v1p3beta1/gapic/product_search_client.py @@ -48,8 +48,8 @@ class ProductSearchClient(object): """ - Manages Products and ProductSets of reference images for use in product - search. It uses the following resource model: + 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`` resources, named ``projects/*/locations/*/productSets/*``, which acts as a way to put @@ -244,11 +244,349 @@ def __init__( self._inner_api_calls = {} # Service calls + def delete_product_set( + self, + name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): + """ + Permanently deletes a ProductSet. All Products and ReferenceImages + in the ProductSet will be deleted. + + The actual image files are not deleted from Google Cloud Storage. + + Possible errors: + + - Returns NOT_FOUND if the ProductSet does not exist. + + Example: + >>> from google.cloud import vision_v1p3beta1 + >>> + >>> client = vision_v1p3beta1.ProductSearchClient() + >>> + >>> name = client.product_set_path('[PROJECT]', '[LOCATION]', '[PRODUCT_SET]') + >>> + >>> client.delete_product_set(name) + + Args: + name (str): Required. Resource name of the ProductSet to delete. + + Format is: + ``projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`` + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will + be retried using a default configuration. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if "delete_product_set" not in self._inner_api_calls: + self._inner_api_calls[ + "delete_product_set" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.delete_product_set, + default_retry=self._method_configs["DeleteProductSet"].retry, + default_timeout=self._method_configs["DeleteProductSet"].timeout, + client_info=self._client_info, + ) + + request = product_search_service_pb2.DeleteProductSetRequest(name=name) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [("name", name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( + routing_header + ) + metadata.append(routing_metadata) + + self._inner_api_calls["delete_product_set"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + + def delete_product( + self, + name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): + """ + Permanently deletes a product and its reference images. + + Metadata of the product and all its images will be deleted right away, + but search queries against ProductSets containing the product may still + work until all related caches are refreshed. + + Possible errors: + + - Returns NOT_FOUND if the product does not exist. + + Example: + >>> from google.cloud import vision_v1p3beta1 + >>> + >>> client = vision_v1p3beta1.ProductSearchClient() + >>> + >>> name = client.product_path('[PROJECT]', '[LOCATION]', '[PRODUCT]') + >>> + >>> client.delete_product(name) + + Args: + name (str): Required. Resource name of product to delete. + + Format is: ``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`` + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will + be retried using a default configuration. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if "delete_product" not in self._inner_api_calls: + self._inner_api_calls[ + "delete_product" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.delete_product, + default_retry=self._method_configs["DeleteProduct"].retry, + default_timeout=self._method_configs["DeleteProduct"].timeout, + client_info=self._client_info, + ) + + request = product_search_service_pb2.DeleteProductRequest(name=name) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [("name", name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( + routing_header + ) + metadata.append(routing_metadata) + + self._inner_api_calls["delete_product"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + + def delete_reference_image( + self, + name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): + """ + Permanently deletes a reference image. + + The image metadata will be deleted right away, but search queries + against ProductSets containing the image may still work until all + related caches are refreshed. + + The actual image files are not deleted from Google Cloud Storage. + + Possible errors: + + - Returns NOT_FOUND if the reference image does not exist. + + Example: + >>> from google.cloud import vision_v1p3beta1 + >>> + >>> client = vision_v1p3beta1.ProductSearchClient() + >>> + >>> name = client.reference_image_path('[PROJECT]', '[LOCATION]', '[PRODUCT]', '[REFERENCE_IMAGE]') + >>> + >>> client.delete_reference_image(name) + + Args: + name (str): Required. The resource name of the reference image to delete. + + Format is: + + ``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`` + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will + be retried using a default configuration. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if "delete_reference_image" not in self._inner_api_calls: + self._inner_api_calls[ + "delete_reference_image" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.delete_reference_image, + default_retry=self._method_configs["DeleteReferenceImage"].retry, + default_timeout=self._method_configs["DeleteReferenceImage"].timeout, + client_info=self._client_info, + ) + + request = product_search_service_pb2.DeleteReferenceImageRequest(name=name) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [("name", name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( + routing_header + ) + metadata.append(routing_metadata) + + self._inner_api_calls["delete_reference_image"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + + def import_product_sets( + self, + parent, + input_config, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): + """ + Asynchronous API that imports a list of reference images to + specified product sets based on a list of image information. + + The ``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``. + + Example: + >>> from google.cloud import vision_v1p3beta1 + >>> + >>> client = vision_v1p3beta1.ProductSearchClient() + >>> + >>> parent = client.location_path('[PROJECT]', '[LOCATION]') + >>> + >>> # TODO: Initialize `input_config`: + >>> input_config = {} + >>> + >>> response = client.import_product_sets(parent, input_config) + >>> + >>> def callback(operation_future): + ... # Handle result. + ... result = operation_future.result() + >>> + >>> response.add_done_callback(callback) + >>> + >>> # Handle metadata. + >>> metadata = response.metadata() + + Args: + parent (str): Required. The project in which the ProductSets should be imported. + + Format is ``projects/PROJECT_ID/locations/LOC_ID``. + input_config (Union[dict, ~google.cloud.vision_v1p3beta1.types.ImportProductSetsInputConfig]): Required. The input content for the list of requests. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.cloud.vision_v1p3beta1.types.ImportProductSetsInputConfig` + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will + be retried using a default configuration. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.cloud.vision_v1p3beta1.types._OperationFuture` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if "import_product_sets" not in self._inner_api_calls: + self._inner_api_calls[ + "import_product_sets" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.import_product_sets, + default_retry=self._method_configs["ImportProductSets"].retry, + default_timeout=self._method_configs["ImportProductSets"].timeout, + client_info=self._client_info, + ) + + request = product_search_service_pb2.ImportProductSetsRequest( + parent=parent, input_config=input_config + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [("parent", parent)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( + routing_header + ) + metadata.append(routing_metadata) + + operation = self._inner_api_calls["import_product_sets"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + return google.api_core.operation.from_gapic( + operation, + self.transport._operations_client, + product_search_service_pb2.ImportProductSetsResponse, + metadata_type=product_search_service_pb2.BatchOperationMetadata, + ) + def create_product_set( self, parent, product_set, - product_set_id, + product_set_id=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None, @@ -258,7 +596,7 @@ def create_product_set( Possible errors: - - Returns INVALID\_ARGUMENT if display\_name is missing, or is longer + - Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. Example: @@ -271,10 +609,7 @@ def create_product_set( >>> # TODO: Initialize `product_set`: >>> product_set = {} >>> - >>> # TODO: Initialize `product_set_id`: - >>> product_set_id = '' - >>> - >>> response = client.create_product_set(parent, product_set, product_set_id) + >>> response = client.create_product_set(parent, product_set) Args: parent (str): Required. The project in which the ProductSet should be created. @@ -284,9 +619,9 @@ def create_product_set( If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.vision_v1p3beta1.types.ProductSet` - product_set_id (str): 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 + product_set_id (str): 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 character ``/``. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will @@ -351,7 +686,7 @@ def list_product_sets( Possible errors: - - Returns INVALID\_ARGUMENT if page\_size is greater than 100, or less + - Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. Example: @@ -460,7 +795,7 @@ def get_product_set( Possible errors: - - Returns NOT\_FOUND if the ProductSet does not exist. + - Returns NOT_FOUND if the ProductSet does not exist. Example: >>> from google.cloud import vision_v1p3beta1 @@ -527,19 +862,19 @@ def get_product_set( def update_product_set( self, product_set, - update_mask, + update_mask=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None, ): """ - Makes changes to a ProductSet resource. Only display\_name can be + Makes changes to a ProductSet resource. Only display_name can be updated currently. Possible errors: - - Returns NOT\_FOUND if the ProductSet does not exist. - - Returns INVALID\_ARGUMENT if display\_name is present in update\_mask + - Returns NOT_FOUND if the ProductSet does not exist. + - Returns INVALID_ARGUMENT if display_name is present in update_mask but missing from the request or longer than 4096 characters. Example: @@ -550,19 +885,16 @@ def update_product_set( >>> # TODO: Initialize `product_set`: >>> product_set = {} >>> - >>> # TODO: Initialize `update_mask`: - >>> update_mask = {} - >>> - >>> response = client.update_product_set(product_set, update_mask) + >>> response = client.update_product_set(product_set) Args: product_set (Union[dict, ~google.cloud.vision_v1p3beta1.types.ProductSet]): Required. The ProductSet resource which replaces the one on the server. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.vision_v1p3beta1.types.ProductSet` - update_mask (Union[dict, ~google.cloud.vision_v1p3beta1.types.FieldMask]): The ``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``. + update_mask (Union[dict, ~google.cloud.vision_v1p3beta1.types.FieldMask]): The ``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``. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.vision_v1p3beta1.types.FieldMask` @@ -616,87 +948,11 @@ def update_product_set( request, retry=retry, timeout=timeout, metadata=metadata ) - def delete_product_set( - self, - name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None, - ): - """ - Permanently deletes a ProductSet. All Products and ReferenceImages in - the ProductSet will be deleted. - - The actual image files are not deleted from Google Cloud Storage. - - Possible errors: - - - Returns NOT\_FOUND if the ProductSet does not exist. - - Example: - >>> from google.cloud import vision_v1p3beta1 - >>> - >>> client = vision_v1p3beta1.ProductSearchClient() - >>> - >>> name = client.product_set_path('[PROJECT]', '[LOCATION]', '[PRODUCT_SET]') - >>> - >>> client.delete_product_set(name) - - Args: - name (str): Required. Resource name of the ProductSet to delete. - - Format is: - ``projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`` - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will - be retried using a default configuration. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if "delete_product_set" not in self._inner_api_calls: - self._inner_api_calls[ - "delete_product_set" - ] = google.api_core.gapic_v1.method.wrap_method( - self.transport.delete_product_set, - default_retry=self._method_configs["DeleteProductSet"].retry, - default_timeout=self._method_configs["DeleteProductSet"].timeout, - client_info=self._client_info, - ) - - request = product_search_service_pb2.DeleteProductSetRequest(name=name) - if metadata is None: - metadata = [] - metadata = list(metadata) - try: - routing_header = [("name", name)] - except AttributeError: - pass - else: - routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( - routing_header - ) - metadata.append(routing_metadata) - - self._inner_api_calls["delete_product_set"]( - request, retry=retry, timeout=timeout, metadata=metadata - ) - def create_product( self, parent, product, - product_id, + product_id=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None, @@ -706,11 +962,11 @@ def create_product( Possible errors: - - Returns INVALID\_ARGUMENT if display\_name is missing or longer than + - Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. - - Returns INVALID\_ARGUMENT if description is longer than 4096 + - Returns INVALID_ARGUMENT if description is longer than 4096 characters. - - Returns INVALID\_ARGUMENT if product\_category is missing or invalid. + - Returns INVALID_ARGUMENT if product_category is missing or invalid. Example: >>> from google.cloud import vision_v1p3beta1 @@ -722,10 +978,7 @@ def create_product( >>> # TODO: Initialize `product`: >>> product = {} >>> - >>> # TODO: Initialize `product_id`: - >>> product_id = '' - >>> - >>> response = client.create_product(parent, product, product_id) + >>> response = client.create_product(parent, product) Args: parent (str): Required. The project in which the Product should be created. @@ -735,9 +988,9 @@ def create_product( If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.vision_v1p3beta1.types.Product` - product_id (str): 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 + product_id (str): 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 ``/``. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will @@ -802,7 +1055,7 @@ def list_products( Possible errors: - - Returns INVALID\_ARGUMENT if page\_size is greater than 100 or less + - Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. Example: @@ -912,7 +1165,7 @@ def get_product( Possible errors: - - Returns NOT\_FOUND if the Product does not exist. + - Returns NOT_FOUND if the Product does not exist. Example: >>> from google.cloud import vision_v1p3beta1 @@ -923,108 +1176,10 @@ def get_product( >>> >>> response = client.get_product(name) - Args: - name (str): Required. Resource name of the Product to get. - - Format is: ``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`` - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will - be retried using a default configuration. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.cloud.vision_v1p3beta1.types.Product` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if "get_product" not in self._inner_api_calls: - self._inner_api_calls[ - "get_product" - ] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_product, - default_retry=self._method_configs["GetProduct"].retry, - default_timeout=self._method_configs["GetProduct"].timeout, - client_info=self._client_info, - ) - - request = product_search_service_pb2.GetProductRequest(name=name) - if metadata is None: - metadata = [] - metadata = list(metadata) - try: - routing_header = [("name", name)] - except AttributeError: - pass - else: - routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( - routing_header - ) - metadata.append(routing_metadata) - - return self._inner_api_calls["get_product"]( - request, retry=retry, timeout=timeout, metadata=metadata - ) - - def update_product( - self, - product, - update_mask, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None, - ): - """ - Makes changes to a Product resource. Only display\_name, description and - labels can be updated right now. - - If labels are updated, the change will not be reflected in queries until - the next index time. - - Possible errors: - - - Returns NOT\_FOUND if the Product does not exist. - - Returns INVALID\_ARGUMENT if display\_name is present in update\_mask - but is missing from the request or longer than 4096 characters. - - Returns INVALID\_ARGUMENT if description is present in update\_mask - but is longer than 4096 characters. - - Returns INVALID\_ARGUMENT if product\_category is present in - update\_mask. - - Example: - >>> from google.cloud import vision_v1p3beta1 - >>> - >>> client = vision_v1p3beta1.ProductSearchClient() - >>> - >>> # TODO: Initialize `product`: - >>> product = {} - >>> - >>> # TODO: Initialize `update_mask`: - >>> update_mask = {} - >>> - >>> response = client.update_product(product, update_mask) - - Args: - product (Union[dict, ~google.cloud.vision_v1p3beta1.types.Product]): Required. The Product resource which replaces the one on the server. - product.name is immutable. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.cloud.vision_v1p3beta1.types.Product` - update_mask (Union[dict, ~google.cloud.vision_v1p3beta1.types.FieldMask]): The ``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``. + Args: + name (str): Required. Resource name of the Product to get. - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.cloud.vision_v1p3beta1.types.FieldMask` + Format is: ``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`` retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -1045,24 +1200,22 @@ def update_product( ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if "update_product" not in self._inner_api_calls: + if "get_product" not in self._inner_api_calls: self._inner_api_calls[ - "update_product" + "get_product" ] = google.api_core.gapic_v1.method.wrap_method( - self.transport.update_product, - default_retry=self._method_configs["UpdateProduct"].retry, - default_timeout=self._method_configs["UpdateProduct"].timeout, + self.transport.get_product, + default_retry=self._method_configs["GetProduct"].retry, + default_timeout=self._method_configs["GetProduct"].timeout, client_info=self._client_info, ) - request = product_search_service_pb2.UpdateProductRequest( - product=product, update_mask=update_mask - ) + request = product_search_service_pb2.GetProductRequest(name=name) if metadata is None: metadata = [] metadata = list(metadata) try: - routing_header = [("product.name", product.name)] + routing_header = [("name", name)] except AttributeError: pass else: @@ -1071,41 +1224,58 @@ def update_product( ) metadata.append(routing_metadata) - return self._inner_api_calls["update_product"]( + return self._inner_api_calls["get_product"]( request, retry=retry, timeout=timeout, metadata=metadata ) - def delete_product( + def update_product( self, - name, + product, + update_mask=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None, ): """ - Permanently deletes a product and its reference images. + Makes changes to a Product resource. Only display_name, description + and labels can be updated right now. - Metadata of the product and all its images will be deleted right away, - but search queries against ProductSets containing the product may still - work until all related caches are refreshed. + If labels are updated, the change will not be reflected in queries until + the next index time. Possible errors: - - Returns NOT\_FOUND if the product does not exist. + - Returns NOT_FOUND if the Product does not exist. + - Returns INVALID_ARGUMENT if display_name is present in update_mask + but is missing from the request or longer than 4096 characters. + - Returns INVALID_ARGUMENT if description is present in update_mask but + is longer than 4096 characters. + - Returns INVALID_ARGUMENT if product_category is present in + update_mask. Example: >>> from google.cloud import vision_v1p3beta1 >>> >>> client = vision_v1p3beta1.ProductSearchClient() >>> - >>> name = client.product_path('[PROJECT]', '[LOCATION]', '[PRODUCT]') + >>> # TODO: Initialize `product`: + >>> product = {} >>> - >>> client.delete_product(name) + >>> response = client.update_product(product) Args: - name (str): Required. Resource name of product to delete. + product (Union[dict, ~google.cloud.vision_v1p3beta1.types.Product]): Required. The Product resource which replaces the one on the server. + product.name is immutable. - Format is: ``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`` + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.cloud.vision_v1p3beta1.types.Product` + update_mask (Union[dict, ~google.cloud.vision_v1p3beta1.types.FieldMask]): The ``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``. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.cloud.vision_v1p3beta1.types.FieldMask` retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -1115,6 +1285,9 @@ def delete_product( metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata that is provided to the method. + Returns: + A :class:`~google.cloud.vision_v1p3beta1.types.Product` instance. + Raises: google.api_core.exceptions.GoogleAPICallError: If the request failed for any reason. @@ -1123,22 +1296,24 @@ def delete_product( ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if "delete_product" not in self._inner_api_calls: + if "update_product" not in self._inner_api_calls: self._inner_api_calls[ - "delete_product" + "update_product" ] = google.api_core.gapic_v1.method.wrap_method( - self.transport.delete_product, - default_retry=self._method_configs["DeleteProduct"].retry, - default_timeout=self._method_configs["DeleteProduct"].timeout, + self.transport.update_product, + default_retry=self._method_configs["UpdateProduct"].retry, + default_timeout=self._method_configs["UpdateProduct"].timeout, client_info=self._client_info, ) - request = product_search_service_pb2.DeleteProductRequest(name=name) + request = product_search_service_pb2.UpdateProductRequest( + product=product, update_mask=update_mask + ) if metadata is None: metadata = [] metadata = list(metadata) try: - routing_header = [("name", name)] + routing_header = [("product.name", product.name)] except AttributeError: pass else: @@ -1147,7 +1322,7 @@ def delete_product( ) metadata.append(routing_metadata) - self._inner_api_calls["delete_product"]( + return self._inner_api_calls["update_product"]( request, retry=retry, timeout=timeout, metadata=metadata ) @@ -1155,7 +1330,7 @@ def create_reference_image( self, parent, reference_image, - reference_image_id, + reference_image_id=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None, @@ -1165,7 +1340,7 @@ def create_reference_image( The ``bounding_poly`` field is optional. If ``bounding_poly`` is not specified, the system will try to detect regions of interest in the - image that are compatible with the product\_category on the parent + image that are compatible with the product_category on the parent product. If it is specified, detection is ALWAYS skipped. The system converts polygons into non-rotated rectangles. @@ -1174,13 +1349,13 @@ def create_reference_image( Possible errors: - - Returns INVALID\_ARGUMENT if the image\_uri is missing or longer than + - Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. - - Returns INVALID\_ARGUMENT if the product does not exist. - - Returns INVALID\_ARGUMENT if bounding\_poly is not provided, and - nothing compatible with the parent product's product\_category is + - Returns INVALID_ARGUMENT if the product does not exist. + - 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 + - Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. Example: @@ -1193,14 +1368,11 @@ def create_reference_image( >>> # TODO: Initialize `reference_image`: >>> reference_image = {} >>> - >>> # TODO: Initialize `reference_image_id`: - >>> reference_image_id = '' - >>> - >>> response = client.create_reference_image(parent, reference_image, reference_image_id) + >>> response = client.create_reference_image(parent, reference_image) Args: - parent (str): Required. Resource name of the product in which to create the reference - image. + parent (str): Required. Resource name of the product in which to create the + reference image. Format is ``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID``. reference_image (Union[dict, ~google.cloud.vision_v1p3beta1.types.ReferenceImage]): Required. The reference image to create. @@ -1208,10 +1380,10 @@ def create_reference_image( If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.vision_v1p3beta1.types.ReferenceImage` - reference_image_id (str): 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 contain the character ``/``. + reference_image_id (str): 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 contain the character ``/``. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -1264,86 +1436,6 @@ def create_reference_image( request, retry=retry, timeout=timeout, metadata=metadata ) - def delete_reference_image( - self, - name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None, - ): - """ - Permanently deletes a reference image. - - The image metadata will be deleted right away, but search queries - against ProductSets containing the image may still work until all - related caches are refreshed. - - The actual image files are not deleted from Google Cloud Storage. - - Possible errors: - - - Returns NOT\_FOUND if the reference image does not exist. - - Example: - >>> from google.cloud import vision_v1p3beta1 - >>> - >>> client = vision_v1p3beta1.ProductSearchClient() - >>> - >>> name = client.reference_image_path('[PROJECT]', '[LOCATION]', '[PRODUCT]', '[REFERENCE_IMAGE]') - >>> - >>> client.delete_reference_image(name) - - Args: - name (str): Required. The resource name of the reference image to delete. - - Format is: - - ``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`` - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will - be retried using a default configuration. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if "delete_reference_image" not in self._inner_api_calls: - self._inner_api_calls[ - "delete_reference_image" - ] = google.api_core.gapic_v1.method.wrap_method( - self.transport.delete_reference_image, - default_retry=self._method_configs["DeleteReferenceImage"].retry, - default_timeout=self._method_configs["DeleteReferenceImage"].timeout, - client_info=self._client_info, - ) - - request = product_search_service_pb2.DeleteReferenceImageRequest(name=name) - if metadata is None: - metadata = [] - metadata = list(metadata) - try: - routing_header = [("name", name)] - except AttributeError: - pass - else: - routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( - routing_header - ) - metadata.append(routing_metadata) - - self._inner_api_calls["delete_reference_image"]( - request, retry=retry, timeout=timeout, metadata=metadata - ) - def list_reference_images( self, parent, @@ -1357,8 +1449,8 @@ def list_reference_images( Possible errors: - - Returns NOT\_FOUND if the parent product does not exist. - - Returns INVALID\_ARGUMENT if the page\_size is greater than 100, or + - 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. Example: @@ -1383,7 +1475,8 @@ def list_reference_images( ... pass Args: - parent (str): Required. Resource name of the product containing the reference images. + parent (str): Required. Resource name of the product containing the reference + images. Format is ``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID``. page_size (int): The maximum number of resources contained in the @@ -1467,7 +1560,7 @@ def get_reference_image( Possible errors: - - Returns NOT\_FOUND if the specified image does not exist. + - Returns NOT_FOUND if the specified image does not exist. Example: >>> from google.cloud import vision_v1p3beta1 @@ -1541,14 +1634,14 @@ def add_product_to_product_set( metadata=None, ): """ - Adds a Product to the specified ProductSet. If the Product is already - present, no change is made. + Adds a Product to the specified ProductSet. If the Product is + already present, no change is made. One Product can be added to at most 100 ProductSets. Possible errors: - - Returns NOT\_FOUND if the Product or the ProductSet doesn't exist. + - Returns NOT_FOUND if the Product or the ProductSet doesn't exist. Example: >>> from google.cloud import vision_v1p3beta1 @@ -1556,9 +1649,7 @@ def add_product_to_product_set( >>> client = vision_v1p3beta1.ProductSearchClient() >>> >>> name = client.product_set_path('[PROJECT]', '[LOCATION]', '[PRODUCT_SET]') - >>> - >>> # TODO: Initialize `product`: - >>> product = '' + >>> product = client.product_path('[PROJECT]', '[LOCATION]', '[PRODUCT]') >>> >>> client.add_product_to_product_set(name, product) @@ -1631,7 +1722,7 @@ def remove_product_from_product_set( Possible errors: - - Returns NOT\_FOUND If the Product is not found under the ProductSet. + - Returns NOT_FOUND If the Product is not found under the ProductSet. Example: >>> from google.cloud import vision_v1p3beta1 @@ -1639,9 +1730,7 @@ def remove_product_from_product_set( >>> client = vision_v1p3beta1.ProductSearchClient() >>> >>> name = client.product_set_path('[PROJECT]', '[LOCATION]', '[PRODUCT_SET]') - >>> - >>> # TODO: Initialize `product`: - >>> product = '' + >>> product = client.product_path('[PROJECT]', '[LOCATION]', '[PRODUCT]') >>> >>> client.remove_product_from_product_set(name, product) @@ -1718,7 +1807,7 @@ def list_products_in_product_set( Possible errors: - - Returns INVALID\_ARGUMENT if page\_size is greater than 100 or less + - Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. Example: @@ -1817,109 +1906,3 @@ def list_products_in_product_set( response_token_field="next_page_token", ) return iterator - - def import_product_sets( - self, - parent, - input_config, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None, - ): - """ - Asynchronous API that imports a list of reference images to specified - product sets based on a list of image information. - - The ``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``. - - Example: - >>> from google.cloud import vision_v1p3beta1 - >>> - >>> client = vision_v1p3beta1.ProductSearchClient() - >>> - >>> parent = client.location_path('[PROJECT]', '[LOCATION]') - >>> - >>> # TODO: Initialize `input_config`: - >>> input_config = {} - >>> - >>> response = client.import_product_sets(parent, input_config) - >>> - >>> def callback(operation_future): - ... # Handle result. - ... result = operation_future.result() - >>> - >>> response.add_done_callback(callback) - >>> - >>> # Handle metadata. - >>> metadata = response.metadata() - - Args: - parent (str): Required. The project in which the ProductSets should be imported. - - Format is ``projects/PROJECT_ID/locations/LOC_ID``. - input_config (Union[dict, ~google.cloud.vision_v1p3beta1.types.ImportProductSetsInputConfig]): Required. The input content for the list of requests. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.cloud.vision_v1p3beta1.types.ImportProductSetsInputConfig` - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will - be retried using a default configuration. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.cloud.vision_v1p3beta1.types._OperationFuture` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if "import_product_sets" not in self._inner_api_calls: - self._inner_api_calls[ - "import_product_sets" - ] = google.api_core.gapic_v1.method.wrap_method( - self.transport.import_product_sets, - default_retry=self._method_configs["ImportProductSets"].retry, - default_timeout=self._method_configs["ImportProductSets"].timeout, - client_info=self._client_info, - ) - - request = product_search_service_pb2.ImportProductSetsRequest( - parent=parent, input_config=input_config - ) - if metadata is None: - metadata = [] - metadata = list(metadata) - try: - routing_header = [("parent", parent)] - except AttributeError: - pass - else: - routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( - routing_header - ) - metadata.append(routing_metadata) - - operation = self._inner_api_calls["import_product_sets"]( - request, retry=retry, timeout=timeout, metadata=metadata - ) - return google.api_core.operation.from_gapic( - operation, - self.transport._operations_client, - product_search_service_pb2.ImportProductSetsResponse, - metadata_type=product_search_service_pb2.BatchOperationMetadata, - ) diff --git a/google/cloud/vision_v1p3beta1/gapic/product_search_client_config.py b/google/cloud/vision_v1p3beta1/gapic/product_search_client_config.py index 9c732f92..a4e2f32c 100644 --- a/google/cloud/vision_v1p3beta1/gapic/product_search_client_config.py +++ b/google/cloud/vision_v1p3beta1/gapic/product_search_client_config.py @@ -17,6 +17,26 @@ } }, "methods": { + "DeleteProductSet": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default", + }, + "DeleteProduct": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default", + }, + "DeleteReferenceImage": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default", + }, + "ImportProductSets": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default", + }, "CreateProductSet": { "timeout_millis": 60000, "retry_codes_name": "non_idempotent", @@ -37,11 +57,6 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default", }, - "DeleteProductSet": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", - }, "CreateProduct": { "timeout_millis": 60000, "retry_codes_name": "non_idempotent", @@ -62,21 +77,11 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default", }, - "DeleteProduct": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", - }, "CreateReferenceImage": { "timeout_millis": 60000, "retry_codes_name": "non_idempotent", "retry_params_name": "default", }, - "DeleteReferenceImage": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", - }, "ListReferenceImages": { "timeout_millis": 60000, "retry_codes_name": "idempotent", @@ -102,11 +107,6 @@ "retry_codes_name": "idempotent", "retry_params_name": "default", }, - "ImportProductSets": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", - }, }, } } diff --git a/google/cloud/vision_v1p3beta1/gapic/transports/image_annotator_grpc_transport.py b/google/cloud/vision_v1p3beta1/gapic/transports/image_annotator_grpc_transport.py index 926c3a5c..bb566d5c 100644 --- a/google/cloud/vision_v1p3beta1/gapic/transports/image_annotator_grpc_transport.py +++ b/google/cloud/vision_v1p3beta1/gapic/transports/image_annotator_grpc_transport.py @@ -135,10 +135,10 @@ def batch_annotate_images(self): def async_batch_annotate_files(self): """Return the gRPC stub for :meth:`ImageAnnotatorClient.async_batch_annotate_files`. - Run asynchronous image detection and annotation for a list of generic - files, such as PDF files, which may contain multiple pages and multiple - images per page. Progress and results can be retrieved through the - ``google.longrunning.Operations`` interface. ``Operation.metadata`` + Run asynchronous image detection and annotation for a list of + generic files, such as PDF files, which may contain multiple pages and + multiple images per page. Progress and results can be retrieved through + the ``google.longrunning.Operations`` interface. ``Operation.metadata`` contains ``OperationMetadata`` (metadata). ``Operation.response`` contains ``AsyncBatchAnnotateFilesResponse`` (results). diff --git a/google/cloud/vision_v1p3beta1/gapic/transports/product_search_grpc_transport.py b/google/cloud/vision_v1p3beta1/gapic/transports/product_search_grpc_transport.py index 302033b2..c73f6320 100644 --- a/google/cloud/vision_v1p3beta1/gapic/transports/product_search_grpc_transport.py +++ b/google/cloud/vision_v1p3beta1/gapic/transports/product_search_grpc_transport.py @@ -120,6 +120,93 @@ def channel(self): """ return self._channel + @property + def delete_product_set(self): + """Return the gRPC stub for :meth:`ProductSearchClient.delete_product_set`. + + Permanently deletes a ProductSet. All Products and ReferenceImages + in the ProductSet will be deleted. + + The actual image files are not deleted from Google Cloud Storage. + + Possible errors: + + - Returns NOT_FOUND if the ProductSet does not exist. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs["product_search_stub"].DeleteProductSet + + @property + def delete_product(self): + """Return the gRPC stub for :meth:`ProductSearchClient.delete_product`. + + Permanently deletes a product and its reference images. + + Metadata of the product and all its images will be deleted right away, + but search queries against ProductSets containing the product may still + work until all related caches are refreshed. + + Possible errors: + + - Returns NOT_FOUND if the product does not exist. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs["product_search_stub"].DeleteProduct + + @property + def delete_reference_image(self): + """Return the gRPC stub for :meth:`ProductSearchClient.delete_reference_image`. + + Permanently deletes a reference image. + + The image metadata will be deleted right away, but search queries + against ProductSets containing the image may still work until all + related caches are refreshed. + + The actual image files are not deleted from Google Cloud Storage. + + Possible errors: + + - Returns NOT_FOUND if the reference image does not exist. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs["product_search_stub"].DeleteReferenceImage + + @property + def import_product_sets(self): + """Return the gRPC stub for :meth:`ProductSearchClient.import_product_sets`. + + Asynchronous API that imports a list of reference images to + specified product sets based on a list of image information. + + The ``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``. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs["product_search_stub"].ImportProductSets + @property def create_product_set(self): """Return the gRPC stub for :meth:`ProductSearchClient.create_product_set`. @@ -128,7 +215,7 @@ def create_product_set(self): Possible errors: - - Returns INVALID\_ARGUMENT if display\_name is missing, or is longer + - Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. Returns: @@ -146,7 +233,7 @@ def list_product_sets(self): Possible errors: - - Returns INVALID\_ARGUMENT if page\_size is greater than 100, or less + - Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. Returns: @@ -164,7 +251,7 @@ def get_product_set(self): Possible errors: - - Returns NOT\_FOUND if the ProductSet does not exist. + - Returns NOT_FOUND if the ProductSet does not exist. Returns: Callable: A callable which accepts the appropriate @@ -177,13 +264,13 @@ def get_product_set(self): def update_product_set(self): """Return the gRPC stub for :meth:`ProductSearchClient.update_product_set`. - Makes changes to a ProductSet resource. Only display\_name can be + Makes changes to a ProductSet resource. Only display_name can be updated currently. Possible errors: - - Returns NOT\_FOUND if the ProductSet does not exist. - - Returns INVALID\_ARGUMENT if display\_name is present in update\_mask + - Returns NOT_FOUND if the ProductSet does not exist. + - Returns INVALID_ARGUMENT if display_name is present in update_mask but missing from the request or longer than 4096 characters. Returns: @@ -193,26 +280,6 @@ def update_product_set(self): """ return self._stubs["product_search_stub"].UpdateProductSet - @property - def delete_product_set(self): - """Return the gRPC stub for :meth:`ProductSearchClient.delete_product_set`. - - Permanently deletes a ProductSet. All Products and ReferenceImages in - the ProductSet will be deleted. - - The actual image files are not deleted from Google Cloud Storage. - - Possible errors: - - - Returns NOT\_FOUND if the ProductSet does not exist. - - Returns: - Callable: A callable which accepts the appropriate - deserialized request object and returns a - deserialized response object. - """ - return self._stubs["product_search_stub"].DeleteProductSet - @property def create_product(self): """Return the gRPC stub for :meth:`ProductSearchClient.create_product`. @@ -221,11 +288,11 @@ def create_product(self): Possible errors: - - Returns INVALID\_ARGUMENT if display\_name is missing or longer than + - Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. - - Returns INVALID\_ARGUMENT if description is longer than 4096 + - Returns INVALID_ARGUMENT if description is longer than 4096 characters. - - Returns INVALID\_ARGUMENT if product\_category is missing or invalid. + - Returns INVALID_ARGUMENT if product_category is missing or invalid. Returns: Callable: A callable which accepts the appropriate @@ -242,7 +309,7 @@ def list_products(self): Possible errors: - - Returns INVALID\_ARGUMENT if page\_size is greater than 100 or less + - Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. Returns: @@ -260,7 +327,7 @@ def get_product(self): Possible errors: - - Returns NOT\_FOUND if the Product does not exist. + - Returns NOT_FOUND if the Product does not exist. Returns: Callable: A callable which accepts the appropriate @@ -273,21 +340,21 @@ def get_product(self): def update_product(self): """Return the gRPC stub for :meth:`ProductSearchClient.update_product`. - Makes changes to a Product resource. Only display\_name, description and - labels can be updated right now. + Makes changes to a Product resource. Only display_name, description + and labels can be updated right now. If labels are updated, the change will not be reflected in queries until the next index time. Possible errors: - - Returns NOT\_FOUND if the Product does not exist. - - Returns INVALID\_ARGUMENT if display\_name is present in update\_mask + - Returns NOT_FOUND if the Product does not exist. + - Returns INVALID_ARGUMENT if display_name is present in update_mask but is missing from the request or longer than 4096 characters. - - Returns INVALID\_ARGUMENT if description is present in update\_mask - but is longer than 4096 characters. - - Returns INVALID\_ARGUMENT if product\_category is present in - update\_mask. + - Returns INVALID_ARGUMENT if description is present in update_mask but + is longer than 4096 characters. + - Returns INVALID_ARGUMENT if product_category is present in + update_mask. Returns: Callable: A callable which accepts the appropriate @@ -296,27 +363,6 @@ def update_product(self): """ return self._stubs["product_search_stub"].UpdateProduct - @property - def delete_product(self): - """Return the gRPC stub for :meth:`ProductSearchClient.delete_product`. - - Permanently deletes a product and its reference images. - - Metadata of the product and all its images will be deleted right away, - but search queries against ProductSets containing the product may still - work until all related caches are refreshed. - - Possible errors: - - - Returns NOT\_FOUND if the product does not exist. - - Returns: - Callable: A callable which accepts the appropriate - deserialized request object and returns a - deserialized response object. - """ - return self._stubs["product_search_stub"].DeleteProduct - @property def create_reference_image(self): """Return the gRPC stub for :meth:`ProductSearchClient.create_reference_image`. @@ -325,7 +371,7 @@ def create_reference_image(self): The ``bounding_poly`` field is optional. If ``bounding_poly`` is not specified, the system will try to detect regions of interest in the - image that are compatible with the product\_category on the parent + image that are compatible with the product_category on the parent product. If it is specified, detection is ALWAYS skipped. The system converts polygons into non-rotated rectangles. @@ -334,13 +380,13 @@ def create_reference_image(self): Possible errors: - - Returns INVALID\_ARGUMENT if the image\_uri is missing or longer than + - Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. - - Returns INVALID\_ARGUMENT if the product does not exist. - - Returns INVALID\_ARGUMENT if bounding\_poly is not provided, and - nothing compatible with the parent product's product\_category is + - Returns INVALID_ARGUMENT if the product does not exist. + - 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 + - Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. Returns: @@ -350,29 +396,6 @@ def create_reference_image(self): """ return self._stubs["product_search_stub"].CreateReferenceImage - @property - def delete_reference_image(self): - """Return the gRPC stub for :meth:`ProductSearchClient.delete_reference_image`. - - Permanently deletes a reference image. - - The image metadata will be deleted right away, but search queries - against ProductSets containing the image may still work until all - related caches are refreshed. - - The actual image files are not deleted from Google Cloud Storage. - - Possible errors: - - - Returns NOT\_FOUND if the reference image does not exist. - - Returns: - Callable: A callable which accepts the appropriate - deserialized request object and returns a - deserialized response object. - """ - return self._stubs["product_search_stub"].DeleteReferenceImage - @property def list_reference_images(self): """Return the gRPC stub for :meth:`ProductSearchClient.list_reference_images`. @@ -381,8 +404,8 @@ def list_reference_images(self): Possible errors: - - Returns NOT\_FOUND if the parent product does not exist. - - Returns INVALID\_ARGUMENT if the page\_size is greater than 100, or + - 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. Returns: @@ -400,7 +423,7 @@ def get_reference_image(self): Possible errors: - - Returns NOT\_FOUND if the specified image does not exist. + - Returns NOT_FOUND if the specified image does not exist. Returns: Callable: A callable which accepts the appropriate @@ -413,14 +436,14 @@ def get_reference_image(self): def add_product_to_product_set(self): """Return the gRPC stub for :meth:`ProductSearchClient.add_product_to_product_set`. - Adds a Product to the specified ProductSet. If the Product is already - present, no change is made. + Adds a Product to the specified ProductSet. If the Product is + already present, no change is made. One Product can be added to at most 100 ProductSets. Possible errors: - - Returns NOT\_FOUND if the Product or the ProductSet doesn't exist. + - Returns NOT_FOUND if the Product or the ProductSet doesn't exist. Returns: Callable: A callable which accepts the appropriate @@ -437,7 +460,7 @@ def remove_product_from_product_set(self): Possible errors: - - Returns NOT\_FOUND If the Product is not found under the ProductSet. + - Returns NOT_FOUND If the Product is not found under the ProductSet. Returns: Callable: A callable which accepts the appropriate @@ -456,7 +479,7 @@ def list_products_in_product_set(self): Possible errors: - - Returns INVALID\_ARGUMENT if page\_size is greater than 100 or less + - Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. Returns: @@ -465,26 +488,3 @@ def list_products_in_product_set(self): deserialized response object. """ return self._stubs["product_search_stub"].ListProductsInProductSet - - @property - def import_product_sets(self): - """Return the gRPC stub for :meth:`ProductSearchClient.import_product_sets`. - - Asynchronous API that imports a list of reference images to specified - product sets based on a list of image information. - - The ``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``. - - Returns: - Callable: A callable which accepts the appropriate - deserialized request object and returns a - deserialized response object. - """ - return self._stubs["product_search_stub"].ImportProductSets diff --git a/google/cloud/vision_v1p3beta1/proto/geometry_pb2.py b/google/cloud/vision_v1p3beta1/proto/geometry_pb2.py index c4a3bd43..dd583fc1 100644 --- a/google/cloud/vision_v1p3beta1/proto/geometry_pb2.py +++ b/google/cloud/vision_v1p3beta1/proto/geometry_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1p3beta1/proto/geometry.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -22,12 +19,8 @@ name="google/cloud/vision_v1p3beta1/proto/geometry.proto", package="google.cloud.vision.v1p3beta1", syntax="proto3", - serialized_options=_b( - "\n!com.google.cloud.vision.v1p3beta1B\rGeometryProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\370\001\001" - ), - serialized_pb=_b( - '\n2google/cloud/vision_v1p3beta1/proto/geometry.proto\x12\x1dgoogle.cloud.vision.v1p3beta1\x1a\x1cgoogle/api/annotations.proto"\x1e\n\x06Vertex\x12\t\n\x01x\x18\x01 \x01(\x05\x12\t\n\x01y\x18\x02 \x01(\x05"(\n\x10NormalizedVertex\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02"\x95\x01\n\x0c\x42oundingPoly\x12\x37\n\x08vertices\x18\x01 \x03(\x0b\x32%.google.cloud.vision.v1p3beta1.Vertex\x12L\n\x13normalized_vertices\x18\x02 \x03(\x0b\x32/.google.cloud.vision.v1p3beta1.NormalizedVertex"[\n\x16NormalizedBoundingPoly\x12\x41\n\x08vertices\x18\x01 \x03(\x0b\x32/.google.cloud.vision.v1p3beta1.NormalizedVertex"+\n\x08Position\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02\x12\t\n\x01z\x18\x03 \x01(\x02\x42|\n!com.google.cloud.vision.v1p3beta1B\rGeometryProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\xf8\x01\x01\x62\x06proto3' - ), + serialized_options=b"\n!com.google.cloud.vision.v1p3beta1B\rGeometryProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\370\001\001", + serialized_pb=b'\n2google/cloud/vision_v1p3beta1/proto/geometry.proto\x12\x1dgoogle.cloud.vision.v1p3beta1\x1a\x1cgoogle/api/annotations.proto"\x1e\n\x06Vertex\x12\t\n\x01x\x18\x01 \x01(\x05\x12\t\n\x01y\x18\x02 \x01(\x05"(\n\x10NormalizedVertex\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02"\x95\x01\n\x0c\x42oundingPoly\x12\x37\n\x08vertices\x18\x01 \x03(\x0b\x32%.google.cloud.vision.v1p3beta1.Vertex\x12L\n\x13normalized_vertices\x18\x02 \x03(\x0b\x32/.google.cloud.vision.v1p3beta1.NormalizedVertex"[\n\x16NormalizedBoundingPoly\x12\x41\n\x08vertices\x18\x01 \x03(\x0b\x32/.google.cloud.vision.v1p3beta1.NormalizedVertex"+\n\x08Position\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02\x12\t\n\x01z\x18\x03 \x01(\x02\x42|\n!com.google.cloud.vision.v1p3beta1B\rGeometryProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\xf8\x01\x01\x62\x06proto3', dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR], ) @@ -329,42 +322,48 @@ Vertex = _reflection.GeneratedProtocolMessageType( "Vertex", (_message.Message,), - dict( - DESCRIPTOR=_VERTEX, - __module__="google.cloud.vision_v1p3beta1.proto.geometry_pb2", - __doc__="""X coordinate. + { + "DESCRIPTOR": _VERTEX, + "__module__": "google.cloud.vision_v1p3beta1.proto.geometry_pb2", + "__doc__": """X coordinate. + + Attributes: y: Y coordinate. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Vertex) - ), + }, ) _sym_db.RegisterMessage(Vertex) NormalizedVertex = _reflection.GeneratedProtocolMessageType( "NormalizedVertex", (_message.Message,), - dict( - DESCRIPTOR=_NORMALIZEDVERTEX, - __module__="google.cloud.vision_v1p3beta1.proto.geometry_pb2", - __doc__="""X coordinate. + { + "DESCRIPTOR": _NORMALIZEDVERTEX, + "__module__": "google.cloud.vision_v1p3beta1.proto.geometry_pb2", + "__doc__": """X coordinate. + + Attributes: y: Y coordinate. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.NormalizedVertex) - ), + }, ) _sym_db.RegisterMessage(NormalizedVertex) BoundingPoly = _reflection.GeneratedProtocolMessageType( "BoundingPoly", (_message.Message,), - dict( - DESCRIPTOR=_BOUNDINGPOLY, - __module__="google.cloud.vision_v1p3beta1.proto.geometry_pb2", - __doc__="""A bounding polygon for the detected image annotation. + { + "DESCRIPTOR": _BOUNDINGPOLY, + "__module__": "google.cloud.vision_v1p3beta1.proto.geometry_pb2", + "__doc__": """A bounding polygon for the detected image annotation. + + Attributes: vertices: The bounding polygon vertices. @@ -372,35 +371,41 @@ The bounding polygon normalized vertices. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.BoundingPoly) - ), + }, ) _sym_db.RegisterMessage(BoundingPoly) NormalizedBoundingPoly = _reflection.GeneratedProtocolMessageType( "NormalizedBoundingPoly", (_message.Message,), - dict( - DESCRIPTOR=_NORMALIZEDBOUNDINGPOLY, - __module__="google.cloud.vision_v1p3beta1.proto.geometry_pb2", - __doc__="""A normalized bounding polygon around a portion of an image. + { + "DESCRIPTOR": _NORMALIZEDBOUNDINGPOLY, + "__module__": "google.cloud.vision_v1p3beta1.proto.geometry_pb2", + "__doc__": """A normalized bounding polygon around a portion of an + image. + + Attributes: vertices: Normalized vertices of the bounding polygon. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.NormalizedBoundingPoly) - ), + }, ) _sym_db.RegisterMessage(NormalizedBoundingPoly) Position = _reflection.GeneratedProtocolMessageType( "Position", (_message.Message,), - dict( - DESCRIPTOR=_POSITION, - __module__="google.cloud.vision_v1p3beta1.proto.geometry_pb2", - __doc__="""A 3D position in the image, used primarily for Face detection - landmarks. A valid Position must have both x and y coordinates. The - position coordinates are in the same scale as the original image. + { + "DESCRIPTOR": _POSITION, + "__module__": "google.cloud.vision_v1p3beta1.proto.geometry_pb2", + "__doc__": """A 3D position in the image, used primarily for Face + detection landmarks. A valid Position must have both x and y + coordinates. The position coordinates are in the same scale as the + original image. + + Attributes: x: X coordinate. @@ -410,7 +415,7 @@ Z coordinate (or depth). """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Position) - ), + }, ) _sym_db.RegisterMessage(Position) diff --git a/google/cloud/vision_v1p3beta1/proto/image_annotator_pb2.py b/google/cloud/vision_v1p3beta1/proto/image_annotator_pb2.py index 1e023200..61933942 100644 --- a/google/cloud/vision_v1p3beta1/proto/image_annotator_pb2.py +++ b/google/cloud/vision_v1p3beta1/proto/image_annotator_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1p3beta1/proto/image_annotator.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message @@ -44,12 +41,8 @@ name="google/cloud/vision_v1p3beta1/proto/image_annotator.proto", package="google.cloud.vision.v1p3beta1", syntax="proto3", - serialized_options=_b( - "\n!com.google.cloud.vision.v1p3beta1B\023ImageAnnotatorProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\370\001\001" - ), - serialized_pb=_b( - '\n9google/cloud/vision_v1p3beta1/proto/image_annotator.proto\x12\x1dgoogle.cloud.vision.v1p3beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x32google/cloud/vision_v1p3beta1/proto/geometry.proto\x1a\x38google/cloud/vision_v1p3beta1/proto/product_search.proto\x1a\x39google/cloud/vision_v1p3beta1/proto/text_annotation.proto\x1a\x37google/cloud/vision_v1p3beta1/proto/web_detection.proto\x1a#google/longrunning/operations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a\x17google/type/color.proto\x1a\x18google/type/latlng.proto"\x8e\x03\n\x07\x46\x65\x61ture\x12\x39\n\x04type\x18\x01 \x01(\x0e\x32+.google.cloud.vision.v1p3beta1.Feature.Type\x12\x13\n\x0bmax_results\x18\x02 \x01(\x05\x12\r\n\x05model\x18\x03 \x01(\t"\xa3\x02\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x46\x41\x43\x45_DETECTION\x10\x01\x12\x16\n\x12LANDMARK_DETECTION\x10\x02\x12\x12\n\x0eLOGO_DETECTION\x10\x03\x12\x13\n\x0fLABEL_DETECTION\x10\x04\x12\x12\n\x0eTEXT_DETECTION\x10\x05\x12\x1b\n\x17\x44OCUMENT_TEXT_DETECTION\x10\x0b\x12\x19\n\x15SAFE_SEARCH_DETECTION\x10\x06\x12\x14\n\x10IMAGE_PROPERTIES\x10\x07\x12\x0e\n\nCROP_HINTS\x10\t\x12\x11\n\rWEB_DETECTION\x10\n\x12\x12\n\x0ePRODUCT_SEARCH\x10\x0c\x12\x17\n\x13OBJECT_LOCALIZATION\x10\x13"7\n\x0bImageSource\x12\x15\n\rgcs_image_uri\x18\x01 \x01(\t\x12\x11\n\timage_uri\x18\x02 \x01(\t"T\n\x05Image\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\x0c\x12:\n\x06source\x18\x02 \x01(\x0b\x32*.google.cloud.vision.v1p3beta1.ImageSource"\x9b\x0e\n\x0e\x46\x61\x63\x65\x41nnotation\x12\x42\n\rbounding_poly\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\x12\x45\n\x10\x66\x64_bounding_poly\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\x12I\n\tlandmarks\x18\x03 \x03(\x0b\x32\x36.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark\x12\x12\n\nroll_angle\x18\x04 \x01(\x02\x12\x11\n\tpan_angle\x18\x05 \x01(\x02\x12\x12\n\ntilt_angle\x18\x06 \x01(\x02\x12\x1c\n\x14\x64\x65tection_confidence\x18\x07 \x01(\x02\x12\x1e\n\x16landmarking_confidence\x18\x08 \x01(\x02\x12\x41\n\x0ejoy_likelihood\x18\t \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12\x44\n\x11sorrow_likelihood\x18\n \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12\x43\n\x10\x61nger_likelihood\x18\x0b \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12\x46\n\x13surprise_likelihood\x18\x0c \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12K\n\x18under_exposed_likelihood\x18\r \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12\x45\n\x12\x62lurred_likelihood\x18\x0e \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12\x46\n\x13headwear_likelihood\x18\x0f \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x1a\xc7\x07\n\x08Landmark\x12I\n\x04type\x18\x03 \x01(\x0e\x32;.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type\x12\x39\n\x08position\x18\x04 \x01(\x0b\x32\'.google.cloud.vision.v1p3beta1.Position"\xb4\x06\n\x04Type\x12\x14\n\x10UNKNOWN_LANDMARK\x10\x00\x12\x0c\n\x08LEFT_EYE\x10\x01\x12\r\n\tRIGHT_EYE\x10\x02\x12\x18\n\x14LEFT_OF_LEFT_EYEBROW\x10\x03\x12\x19\n\x15RIGHT_OF_LEFT_EYEBROW\x10\x04\x12\x19\n\x15LEFT_OF_RIGHT_EYEBROW\x10\x05\x12\x1a\n\x16RIGHT_OF_RIGHT_EYEBROW\x10\x06\x12\x19\n\x15MIDPOINT_BETWEEN_EYES\x10\x07\x12\x0c\n\x08NOSE_TIP\x10\x08\x12\r\n\tUPPER_LIP\x10\t\x12\r\n\tLOWER_LIP\x10\n\x12\x0e\n\nMOUTH_LEFT\x10\x0b\x12\x0f\n\x0bMOUTH_RIGHT\x10\x0c\x12\x10\n\x0cMOUTH_CENTER\x10\r\x12\x15\n\x11NOSE_BOTTOM_RIGHT\x10\x0e\x12\x14\n\x10NOSE_BOTTOM_LEFT\x10\x0f\x12\x16\n\x12NOSE_BOTTOM_CENTER\x10\x10\x12\x19\n\x15LEFT_EYE_TOP_BOUNDARY\x10\x11\x12\x19\n\x15LEFT_EYE_RIGHT_CORNER\x10\x12\x12\x1c\n\x18LEFT_EYE_BOTTOM_BOUNDARY\x10\x13\x12\x18\n\x14LEFT_EYE_LEFT_CORNER\x10\x14\x12\x1a\n\x16RIGHT_EYE_TOP_BOUNDARY\x10\x15\x12\x1a\n\x16RIGHT_EYE_RIGHT_CORNER\x10\x16\x12\x1d\n\x19RIGHT_EYE_BOTTOM_BOUNDARY\x10\x17\x12\x19\n\x15RIGHT_EYE_LEFT_CORNER\x10\x18\x12\x1f\n\x1bLEFT_EYEBROW_UPPER_MIDPOINT\x10\x19\x12 \n\x1cRIGHT_EYEBROW_UPPER_MIDPOINT\x10\x1a\x12\x14\n\x10LEFT_EAR_TRAGION\x10\x1b\x12\x15\n\x11RIGHT_EAR_TRAGION\x10\x1c\x12\x12\n\x0eLEFT_EYE_PUPIL\x10\x1d\x12\x13\n\x0fRIGHT_EYE_PUPIL\x10\x1e\x12\x15\n\x11\x46OREHEAD_GLABELLA\x10\x1f\x12\x11\n\rCHIN_GNATHION\x10 \x12\x14\n\x10\x43HIN_LEFT_GONION\x10!\x12\x15\n\x11\x43HIN_RIGHT_GONION\x10""4\n\x0cLocationInfo\x12$\n\x07lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng"=\n\x08Property\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x14\n\x0cuint64_value\x18\x03 \x01(\x04"\xbc\x02\n\x10\x45ntityAnnotation\x12\x0b\n\x03mid\x18\x01 \x01(\t\x12\x0e\n\x06locale\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\r\n\x05score\x18\x04 \x01(\x02\x12\x12\n\nconfidence\x18\x05 \x01(\x02\x12\x12\n\ntopicality\x18\x06 \x01(\x02\x12\x42\n\rbounding_poly\x18\x07 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\x12>\n\tlocations\x18\x08 \x03(\x0b\x32+.google.cloud.vision.v1p3beta1.LocationInfo\x12;\n\nproperties\x18\t \x03(\x0b\x32\'.google.cloud.vision.v1p3beta1.Property"\xa0\x01\n\x19LocalizedObjectAnnotation\x12\x0b\n\x03mid\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\r\n\x05score\x18\x04 \x01(\x02\x12\x42\n\rbounding_poly\x18\x05 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly"\xbc\x02\n\x14SafeSearchAnnotation\x12\x38\n\x05\x61\x64ult\x18\x01 \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12\x38\n\x05spoof\x18\x02 \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12:\n\x07medical\x18\x03 \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12;\n\x08violence\x18\x04 \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12\x37\n\x04racy\x18\t \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood"a\n\x0bLatLongRect\x12(\n\x0bmin_lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng\x12(\n\x0bmax_lat_lng\x18\x02 \x01(\x0b\x32\x13.google.type.LatLng"U\n\tColorInfo\x12!\n\x05\x63olor\x18\x01 \x01(\x0b\x32\x12.google.type.Color\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x16\n\x0epixel_fraction\x18\x03 \x01(\x02"T\n\x18\x44ominantColorsAnnotation\x12\x38\n\x06\x63olors\x18\x01 \x03(\x0b\x32(.google.cloud.vision.v1p3beta1.ColorInfo"c\n\x0fImageProperties\x12P\n\x0f\x64ominant_colors\x18\x01 \x01(\x0b\x32\x37.google.cloud.vision.v1p3beta1.DominantColorsAnnotation"\x7f\n\x08\x43ropHint\x12\x42\n\rbounding_poly\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12\x1b\n\x13importance_fraction\x18\x03 \x01(\x02"R\n\x13\x43ropHintsAnnotation\x12;\n\ncrop_hints\x18\x01 \x03(\x0b\x32\'.google.cloud.vision.v1p3beta1.CropHint"(\n\x0f\x43ropHintsParams\x12\x15\n\raspect_ratios\x18\x01 \x03(\x02"1\n\x12WebDetectionParams\x12\x1b\n\x13include_geo_results\x18\x02 \x01(\x08"\xd8\x02\n\x0cImageContext\x12\x41\n\rlat_long_rect\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p3beta1.LatLongRect\x12\x16\n\x0elanguage_hints\x18\x02 \x03(\t\x12I\n\x11\x63rop_hints_params\x18\x04 \x01(\x0b\x32..google.cloud.vision.v1p3beta1.CropHintsParams\x12Q\n\x15product_search_params\x18\x05 \x01(\x0b\x32\x32.google.cloud.vision.v1p3beta1.ProductSearchParams\x12O\n\x14web_detection_params\x18\x06 \x01(\x0b\x32\x31.google.cloud.vision.v1p3beta1.WebDetectionParams"\xc9\x01\n\x14\x41nnotateImageRequest\x12\x33\n\x05image\x18\x01 \x01(\x0b\x32$.google.cloud.vision.v1p3beta1.Image\x12\x38\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32&.google.cloud.vision.v1p3beta1.Feature\x12\x42\n\rimage_context\x18\x03 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.ImageContext":\n\x16ImageAnnotationContext\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x13\n\x0bpage_number\x18\x02 \x01(\x05"\xbf\x08\n\x15\x41nnotateImageResponse\x12G\n\x10\x66\x61\x63\x65_annotations\x18\x01 \x03(\x0b\x32-.google.cloud.vision.v1p3beta1.FaceAnnotation\x12M\n\x14landmark_annotations\x18\x02 \x03(\x0b\x32/.google.cloud.vision.v1p3beta1.EntityAnnotation\x12I\n\x10logo_annotations\x18\x03 \x03(\x0b\x32/.google.cloud.vision.v1p3beta1.EntityAnnotation\x12J\n\x11label_annotations\x18\x04 \x03(\x0b\x32/.google.cloud.vision.v1p3beta1.EntityAnnotation\x12^\n\x1clocalized_object_annotations\x18\x16 \x03(\x0b\x32\x38.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation\x12I\n\x10text_annotations\x18\x05 \x03(\x0b\x32/.google.cloud.vision.v1p3beta1.EntityAnnotation\x12K\n\x14\x66ull_text_annotation\x18\x0c \x01(\x0b\x32-.google.cloud.vision.v1p3beta1.TextAnnotation\x12S\n\x16safe_search_annotation\x18\x06 \x01(\x0b\x32\x33.google.cloud.vision.v1p3beta1.SafeSearchAnnotation\x12S\n\x1bimage_properties_annotation\x18\x08 \x01(\x0b\x32..google.cloud.vision.v1p3beta1.ImageProperties\x12Q\n\x15\x63rop_hints_annotation\x18\x0b \x01(\x0b\x32\x32.google.cloud.vision.v1p3beta1.CropHintsAnnotation\x12\x42\n\rweb_detection\x18\r \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.WebDetection\x12S\n\x16product_search_results\x18\x0e \x01(\x0b\x32\x33.google.cloud.vision.v1p3beta1.ProductSearchResults\x12!\n\x05\x65rror\x18\t \x01(\x0b\x32\x12.google.rpc.Status\x12\x46\n\x07\x63ontext\x18\x15 \x01(\x0b\x32\x35.google.cloud.vision.v1p3beta1.ImageAnnotationContext"\xa1\x01\n\x14\x41nnotateFileResponse\x12@\n\x0cinput_config\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p3beta1.InputConfig\x12G\n\tresponses\x18\x02 \x03(\x0b\x32\x34.google.cloud.vision.v1p3beta1.AnnotateImageResponse"c\n\x1a\x42\x61tchAnnotateImagesRequest\x12\x45\n\x08requests\x18\x01 \x03(\x0b\x32\x33.google.cloud.vision.v1p3beta1.AnnotateImageRequest"f\n\x1b\x42\x61tchAnnotateImagesResponse\x12G\n\tresponses\x18\x01 \x03(\x0b\x32\x34.google.cloud.vision.v1p3beta1.AnnotateImageResponse"\x9e\x02\n\x18\x41syncAnnotateFileRequest\x12@\n\x0cinput_config\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p3beta1.InputConfig\x12\x38\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32&.google.cloud.vision.v1p3beta1.Feature\x12\x42\n\rimage_context\x18\x03 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.ImageContext\x12\x42\n\routput_config\x18\x04 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.OutputConfig"_\n\x19\x41syncAnnotateFileResponse\x12\x42\n\routput_config\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.OutputConfig"p\n\x1e\x41syncBatchAnnotateFilesRequest\x12N\n\x08requests\x18\x01 \x03(\x0b\x32\x37.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequestB\x03\xe0\x41\x02"n\n\x1f\x41syncBatchAnnotateFilesResponse\x12K\n\tresponses\x18\x01 \x03(\x0b\x32\x38.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse"^\n\x0bInputConfig\x12<\n\ngcs_source\x18\x01 \x01(\x0b\x32(.google.cloud.vision.v1p3beta1.GcsSource\x12\x11\n\tmime_type\x18\x02 \x01(\t"j\n\x0cOutputConfig\x12\x46\n\x0fgcs_destination\x18\x01 \x01(\x0b\x32-.google.cloud.vision.v1p3beta1.GcsDestination\x12\x12\n\nbatch_size\x18\x02 \x01(\x05"\x18\n\tGcsSource\x12\x0b\n\x03uri\x18\x01 \x01(\t"\x1d\n\x0eGcsDestination\x12\x0b\n\x03uri\x18\x01 \x01(\t"\x8f\x02\n\x11OperationMetadata\x12\x45\n\x05state\x18\x01 \x01(\x0e\x32\x36.google.cloud.vision.v1p3beta1.OperationMetadata.State\x12/\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"Q\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x43REATED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x08\n\x04\x44ONE\x10\x03\x12\r\n\tCANCELLED\x10\x04*e\n\nLikelihood\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x11\n\rVERY_UNLIKELY\x10\x01\x12\x0c\n\x08UNLIKELY\x10\x02\x12\x0c\n\x08POSSIBLE\x10\x03\x12\n\n\x06LIKELY\x10\x04\x12\x0f\n\x0bVERY_LIKELY\x10\x05\x32\xb5\x04\n\x0eImageAnnotator\x12\xbe\x01\n\x13\x42\x61tchAnnotateImages\x12\x39.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest\x1a:.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse"0\x82\xd3\xe4\x93\x02\x1f"\x1a/v1p3beta1/images:annotate:\x01*\xda\x41\x08requests\x12\xe9\x01\n\x17\x41syncBatchAnnotateFiles\x12=.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest\x1a\x1d.google.longrunning.Operation"p\x82\xd3\xe4\x93\x02("#/v1p3beta1/files:asyncBatchAnnotate:\x01*\xda\x41\x08requests\xca\x41\x34\n\x1f\x41syncBatchAnnotateFilesResponse\x12\x11OperationMetadata\x1av\xca\x41\x15vision.googleapis.com\xd2\x41[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-visionB\x82\x01\n!com.google.cloud.vision.v1p3beta1B\x13ImageAnnotatorProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\xf8\x01\x01\x62\x06proto3' - ), + serialized_options=b"\n!com.google.cloud.vision.v1p3beta1B\023ImageAnnotatorProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\370\001\001", + serialized_pb=b'\n9google/cloud/vision_v1p3beta1/proto/image_annotator.proto\x12\x1dgoogle.cloud.vision.v1p3beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x32google/cloud/vision_v1p3beta1/proto/geometry.proto\x1a\x38google/cloud/vision_v1p3beta1/proto/product_search.proto\x1a\x39google/cloud/vision_v1p3beta1/proto/text_annotation.proto\x1a\x37google/cloud/vision_v1p3beta1/proto/web_detection.proto\x1a#google/longrunning/operations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a\x17google/type/color.proto\x1a\x18google/type/latlng.proto"\x8e\x03\n\x07\x46\x65\x61ture\x12\x39\n\x04type\x18\x01 \x01(\x0e\x32+.google.cloud.vision.v1p3beta1.Feature.Type\x12\x13\n\x0bmax_results\x18\x02 \x01(\x05\x12\r\n\x05model\x18\x03 \x01(\t"\xa3\x02\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x46\x41\x43\x45_DETECTION\x10\x01\x12\x16\n\x12LANDMARK_DETECTION\x10\x02\x12\x12\n\x0eLOGO_DETECTION\x10\x03\x12\x13\n\x0fLABEL_DETECTION\x10\x04\x12\x12\n\x0eTEXT_DETECTION\x10\x05\x12\x1b\n\x17\x44OCUMENT_TEXT_DETECTION\x10\x0b\x12\x19\n\x15SAFE_SEARCH_DETECTION\x10\x06\x12\x14\n\x10IMAGE_PROPERTIES\x10\x07\x12\x0e\n\nCROP_HINTS\x10\t\x12\x11\n\rWEB_DETECTION\x10\n\x12\x12\n\x0ePRODUCT_SEARCH\x10\x0c\x12\x17\n\x13OBJECT_LOCALIZATION\x10\x13"7\n\x0bImageSource\x12\x15\n\rgcs_image_uri\x18\x01 \x01(\t\x12\x11\n\timage_uri\x18\x02 \x01(\t"T\n\x05Image\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\x0c\x12:\n\x06source\x18\x02 \x01(\x0b\x32*.google.cloud.vision.v1p3beta1.ImageSource"\x9b\x0e\n\x0e\x46\x61\x63\x65\x41nnotation\x12\x42\n\rbounding_poly\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\x12\x45\n\x10\x66\x64_bounding_poly\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\x12I\n\tlandmarks\x18\x03 \x03(\x0b\x32\x36.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark\x12\x12\n\nroll_angle\x18\x04 \x01(\x02\x12\x11\n\tpan_angle\x18\x05 \x01(\x02\x12\x12\n\ntilt_angle\x18\x06 \x01(\x02\x12\x1c\n\x14\x64\x65tection_confidence\x18\x07 \x01(\x02\x12\x1e\n\x16landmarking_confidence\x18\x08 \x01(\x02\x12\x41\n\x0ejoy_likelihood\x18\t \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12\x44\n\x11sorrow_likelihood\x18\n \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12\x43\n\x10\x61nger_likelihood\x18\x0b \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12\x46\n\x13surprise_likelihood\x18\x0c \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12K\n\x18under_exposed_likelihood\x18\r \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12\x45\n\x12\x62lurred_likelihood\x18\x0e \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12\x46\n\x13headwear_likelihood\x18\x0f \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x1a\xc7\x07\n\x08Landmark\x12I\n\x04type\x18\x03 \x01(\x0e\x32;.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type\x12\x39\n\x08position\x18\x04 \x01(\x0b\x32\'.google.cloud.vision.v1p3beta1.Position"\xb4\x06\n\x04Type\x12\x14\n\x10UNKNOWN_LANDMARK\x10\x00\x12\x0c\n\x08LEFT_EYE\x10\x01\x12\r\n\tRIGHT_EYE\x10\x02\x12\x18\n\x14LEFT_OF_LEFT_EYEBROW\x10\x03\x12\x19\n\x15RIGHT_OF_LEFT_EYEBROW\x10\x04\x12\x19\n\x15LEFT_OF_RIGHT_EYEBROW\x10\x05\x12\x1a\n\x16RIGHT_OF_RIGHT_EYEBROW\x10\x06\x12\x19\n\x15MIDPOINT_BETWEEN_EYES\x10\x07\x12\x0c\n\x08NOSE_TIP\x10\x08\x12\r\n\tUPPER_LIP\x10\t\x12\r\n\tLOWER_LIP\x10\n\x12\x0e\n\nMOUTH_LEFT\x10\x0b\x12\x0f\n\x0bMOUTH_RIGHT\x10\x0c\x12\x10\n\x0cMOUTH_CENTER\x10\r\x12\x15\n\x11NOSE_BOTTOM_RIGHT\x10\x0e\x12\x14\n\x10NOSE_BOTTOM_LEFT\x10\x0f\x12\x16\n\x12NOSE_BOTTOM_CENTER\x10\x10\x12\x19\n\x15LEFT_EYE_TOP_BOUNDARY\x10\x11\x12\x19\n\x15LEFT_EYE_RIGHT_CORNER\x10\x12\x12\x1c\n\x18LEFT_EYE_BOTTOM_BOUNDARY\x10\x13\x12\x18\n\x14LEFT_EYE_LEFT_CORNER\x10\x14\x12\x1a\n\x16RIGHT_EYE_TOP_BOUNDARY\x10\x15\x12\x1a\n\x16RIGHT_EYE_RIGHT_CORNER\x10\x16\x12\x1d\n\x19RIGHT_EYE_BOTTOM_BOUNDARY\x10\x17\x12\x19\n\x15RIGHT_EYE_LEFT_CORNER\x10\x18\x12\x1f\n\x1bLEFT_EYEBROW_UPPER_MIDPOINT\x10\x19\x12 \n\x1cRIGHT_EYEBROW_UPPER_MIDPOINT\x10\x1a\x12\x14\n\x10LEFT_EAR_TRAGION\x10\x1b\x12\x15\n\x11RIGHT_EAR_TRAGION\x10\x1c\x12\x12\n\x0eLEFT_EYE_PUPIL\x10\x1d\x12\x13\n\x0fRIGHT_EYE_PUPIL\x10\x1e\x12\x15\n\x11\x46OREHEAD_GLABELLA\x10\x1f\x12\x11\n\rCHIN_GNATHION\x10 \x12\x14\n\x10\x43HIN_LEFT_GONION\x10!\x12\x15\n\x11\x43HIN_RIGHT_GONION\x10""4\n\x0cLocationInfo\x12$\n\x07lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng"=\n\x08Property\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x14\n\x0cuint64_value\x18\x03 \x01(\x04"\xbc\x02\n\x10\x45ntityAnnotation\x12\x0b\n\x03mid\x18\x01 \x01(\t\x12\x0e\n\x06locale\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\r\n\x05score\x18\x04 \x01(\x02\x12\x12\n\nconfidence\x18\x05 \x01(\x02\x12\x12\n\ntopicality\x18\x06 \x01(\x02\x12\x42\n\rbounding_poly\x18\x07 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\x12>\n\tlocations\x18\x08 \x03(\x0b\x32+.google.cloud.vision.v1p3beta1.LocationInfo\x12;\n\nproperties\x18\t \x03(\x0b\x32\'.google.cloud.vision.v1p3beta1.Property"\xa0\x01\n\x19LocalizedObjectAnnotation\x12\x0b\n\x03mid\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\r\n\x05score\x18\x04 \x01(\x02\x12\x42\n\rbounding_poly\x18\x05 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly"\xbc\x02\n\x14SafeSearchAnnotation\x12\x38\n\x05\x61\x64ult\x18\x01 \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12\x38\n\x05spoof\x18\x02 \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12:\n\x07medical\x18\x03 \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12;\n\x08violence\x18\x04 \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12\x37\n\x04racy\x18\t \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood"a\n\x0bLatLongRect\x12(\n\x0bmin_lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng\x12(\n\x0bmax_lat_lng\x18\x02 \x01(\x0b\x32\x13.google.type.LatLng"U\n\tColorInfo\x12!\n\x05\x63olor\x18\x01 \x01(\x0b\x32\x12.google.type.Color\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x16\n\x0epixel_fraction\x18\x03 \x01(\x02"T\n\x18\x44ominantColorsAnnotation\x12\x38\n\x06\x63olors\x18\x01 \x03(\x0b\x32(.google.cloud.vision.v1p3beta1.ColorInfo"c\n\x0fImageProperties\x12P\n\x0f\x64ominant_colors\x18\x01 \x01(\x0b\x32\x37.google.cloud.vision.v1p3beta1.DominantColorsAnnotation"\x7f\n\x08\x43ropHint\x12\x42\n\rbounding_poly\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12\x1b\n\x13importance_fraction\x18\x03 \x01(\x02"R\n\x13\x43ropHintsAnnotation\x12;\n\ncrop_hints\x18\x01 \x03(\x0b\x32\'.google.cloud.vision.v1p3beta1.CropHint"(\n\x0f\x43ropHintsParams\x12\x15\n\raspect_ratios\x18\x01 \x03(\x02"1\n\x12WebDetectionParams\x12\x1b\n\x13include_geo_results\x18\x02 \x01(\x08"\xd8\x02\n\x0cImageContext\x12\x41\n\rlat_long_rect\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p3beta1.LatLongRect\x12\x16\n\x0elanguage_hints\x18\x02 \x03(\t\x12I\n\x11\x63rop_hints_params\x18\x04 \x01(\x0b\x32..google.cloud.vision.v1p3beta1.CropHintsParams\x12Q\n\x15product_search_params\x18\x05 \x01(\x0b\x32\x32.google.cloud.vision.v1p3beta1.ProductSearchParams\x12O\n\x14web_detection_params\x18\x06 \x01(\x0b\x32\x31.google.cloud.vision.v1p3beta1.WebDetectionParams"\xc9\x01\n\x14\x41nnotateImageRequest\x12\x33\n\x05image\x18\x01 \x01(\x0b\x32$.google.cloud.vision.v1p3beta1.Image\x12\x38\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32&.google.cloud.vision.v1p3beta1.Feature\x12\x42\n\rimage_context\x18\x03 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.ImageContext":\n\x16ImageAnnotationContext\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x13\n\x0bpage_number\x18\x02 \x01(\x05"\xbf\x08\n\x15\x41nnotateImageResponse\x12G\n\x10\x66\x61\x63\x65_annotations\x18\x01 \x03(\x0b\x32-.google.cloud.vision.v1p3beta1.FaceAnnotation\x12M\n\x14landmark_annotations\x18\x02 \x03(\x0b\x32/.google.cloud.vision.v1p3beta1.EntityAnnotation\x12I\n\x10logo_annotations\x18\x03 \x03(\x0b\x32/.google.cloud.vision.v1p3beta1.EntityAnnotation\x12J\n\x11label_annotations\x18\x04 \x03(\x0b\x32/.google.cloud.vision.v1p3beta1.EntityAnnotation\x12^\n\x1clocalized_object_annotations\x18\x16 \x03(\x0b\x32\x38.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation\x12I\n\x10text_annotations\x18\x05 \x03(\x0b\x32/.google.cloud.vision.v1p3beta1.EntityAnnotation\x12K\n\x14\x66ull_text_annotation\x18\x0c \x01(\x0b\x32-.google.cloud.vision.v1p3beta1.TextAnnotation\x12S\n\x16safe_search_annotation\x18\x06 \x01(\x0b\x32\x33.google.cloud.vision.v1p3beta1.SafeSearchAnnotation\x12S\n\x1bimage_properties_annotation\x18\x08 \x01(\x0b\x32..google.cloud.vision.v1p3beta1.ImageProperties\x12Q\n\x15\x63rop_hints_annotation\x18\x0b \x01(\x0b\x32\x32.google.cloud.vision.v1p3beta1.CropHintsAnnotation\x12\x42\n\rweb_detection\x18\r \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.WebDetection\x12S\n\x16product_search_results\x18\x0e \x01(\x0b\x32\x33.google.cloud.vision.v1p3beta1.ProductSearchResults\x12!\n\x05\x65rror\x18\t \x01(\x0b\x32\x12.google.rpc.Status\x12\x46\n\x07\x63ontext\x18\x15 \x01(\x0b\x32\x35.google.cloud.vision.v1p3beta1.ImageAnnotationContext"\xa1\x01\n\x14\x41nnotateFileResponse\x12@\n\x0cinput_config\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p3beta1.InputConfig\x12G\n\tresponses\x18\x02 \x03(\x0b\x32\x34.google.cloud.vision.v1p3beta1.AnnotateImageResponse"c\n\x1a\x42\x61tchAnnotateImagesRequest\x12\x45\n\x08requests\x18\x01 \x03(\x0b\x32\x33.google.cloud.vision.v1p3beta1.AnnotateImageRequest"f\n\x1b\x42\x61tchAnnotateImagesResponse\x12G\n\tresponses\x18\x01 \x03(\x0b\x32\x34.google.cloud.vision.v1p3beta1.AnnotateImageResponse"\x9e\x02\n\x18\x41syncAnnotateFileRequest\x12@\n\x0cinput_config\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p3beta1.InputConfig\x12\x38\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32&.google.cloud.vision.v1p3beta1.Feature\x12\x42\n\rimage_context\x18\x03 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.ImageContext\x12\x42\n\routput_config\x18\x04 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.OutputConfig"_\n\x19\x41syncAnnotateFileResponse\x12\x42\n\routput_config\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.OutputConfig"p\n\x1e\x41syncBatchAnnotateFilesRequest\x12N\n\x08requests\x18\x01 \x03(\x0b\x32\x37.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequestB\x03\xe0\x41\x02"n\n\x1f\x41syncBatchAnnotateFilesResponse\x12K\n\tresponses\x18\x01 \x03(\x0b\x32\x38.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse"^\n\x0bInputConfig\x12<\n\ngcs_source\x18\x01 \x01(\x0b\x32(.google.cloud.vision.v1p3beta1.GcsSource\x12\x11\n\tmime_type\x18\x02 \x01(\t"j\n\x0cOutputConfig\x12\x46\n\x0fgcs_destination\x18\x01 \x01(\x0b\x32-.google.cloud.vision.v1p3beta1.GcsDestination\x12\x12\n\nbatch_size\x18\x02 \x01(\x05"\x18\n\tGcsSource\x12\x0b\n\x03uri\x18\x01 \x01(\t"\x1d\n\x0eGcsDestination\x12\x0b\n\x03uri\x18\x01 \x01(\t"\x8f\x02\n\x11OperationMetadata\x12\x45\n\x05state\x18\x01 \x01(\x0e\x32\x36.google.cloud.vision.v1p3beta1.OperationMetadata.State\x12/\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"Q\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x43REATED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x08\n\x04\x44ONE\x10\x03\x12\r\n\tCANCELLED\x10\x04*e\n\nLikelihood\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x11\n\rVERY_UNLIKELY\x10\x01\x12\x0c\n\x08UNLIKELY\x10\x02\x12\x0c\n\x08POSSIBLE\x10\x03\x12\n\n\x06LIKELY\x10\x04\x12\x0f\n\x0bVERY_LIKELY\x10\x05\x32\xb5\x04\n\x0eImageAnnotator\x12\xbe\x01\n\x13\x42\x61tchAnnotateImages\x12\x39.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest\x1a:.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse"0\x82\xd3\xe4\x93\x02\x1f"\x1a/v1p3beta1/images:annotate:\x01*\xda\x41\x08requests\x12\xe9\x01\n\x17\x41syncBatchAnnotateFiles\x12=.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest\x1a\x1d.google.longrunning.Operation"p\x82\xd3\xe4\x93\x02("#/v1p3beta1/files:asyncBatchAnnotate:\x01*\xda\x41\x08requests\xca\x41\x34\n\x1f\x41syncBatchAnnotateFilesResponse\x12\x11OperationMetadata\x1av\xca\x41\x15vision.googleapis.com\xd2\x41[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-visionB\x82\x01\n!com.google.cloud.vision.v1p3beta1B\x13ImageAnnotatorProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\xf8\x01\x01\x62\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, google_dot_api_dot_client__pb2.DESCRIPTOR, @@ -509,7 +502,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -548,7 +541,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -566,7 +559,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -605,7 +598,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b(""), + default_value=b"", message_type=None, enum_type=None, containing_type=None, @@ -1048,7 +1041,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1066,7 +1059,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1123,7 +1116,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1141,7 +1134,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1159,7 +1152,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1306,7 +1299,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1324,7 +1317,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1342,7 +1335,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -2116,7 +2109,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -2719,7 +2712,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ) ], @@ -2809,7 +2802,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -2905,7 +2898,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -2944,7 +2937,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -3244,12 +3237,14 @@ Feature = _reflection.GeneratedProtocolMessageType( "Feature", (_message.Message,), - dict( - DESCRIPTOR=_FEATURE, - __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - __doc__="""The type of Google Cloud Vision API detection to perform, and the - maximum number of results to return for that type. Multiple + { + "DESCRIPTOR": _FEATURE, + "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + "__doc__": """The type of Google Cloud Vision API detection to perform, + and the maximum number of results to return for that type. Multiple ``Feature`` objects can be specified in the ``features`` list. + + Attributes: type: The feature type. @@ -3259,21 +3254,23 @@ ``CROP_HINTS``. model: Model to use for the feature. Supported values: - "builtin/stable" (the default if unset) and "builtin/latest". + “builtin/stable” (the default if unset) and “builtin/latest”. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Feature) - ), + }, ) _sym_db.RegisterMessage(Feature) ImageSource = _reflection.GeneratedProtocolMessageType( "ImageSource", (_message.Message,), - dict( - DESCRIPTOR=_IMAGESOURCE, - __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - __doc__="""External image source (Google Cloud Storage or web URL image - location). + { + "DESCRIPTOR": _IMAGESOURCE, + "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + "__doc__": """External image source (Google Cloud Storage or web URL + image location). + + Attributes: gcs_image_uri: \ **Use ``image_uri`` instead.** The Google Cloud Storage URI @@ -3290,7 +3287,7 @@ more info. 2. A publicly-accessible image HTTP/HTTPS URL. When fetching images from HTTP/HTTPS URLs, Google cannot guarantee that the request will be completed. Your request - may fail if the specified host denies the request (e.g. due + may fail if the specified host denies the request (e.g. due to request throttling or DOS prevention), or if Google throttles requests to the site for abuse prevention. You should not depend on externally-hosted images for production @@ -3298,17 +3295,20 @@ are specified, ``image_uri`` takes precedence. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ImageSource) - ), + }, ) _sym_db.RegisterMessage(ImageSource) Image = _reflection.GeneratedProtocolMessageType( "Image", (_message.Message,), - dict( - DESCRIPTOR=_IMAGE, - __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - __doc__="""Client image to perform Google Cloud Vision API tasks over. + { + "DESCRIPTOR": _IMAGE, + "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + "__doc__": """Client image to perform Google Cloud Vision API tasks + over. + + Attributes: content: Image content, represented as a stream of bytes. Note: As with @@ -3321,21 +3321,23 @@ the image annotation request. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Image) - ), + }, ) _sym_db.RegisterMessage(Image) FaceAnnotation = _reflection.GeneratedProtocolMessageType( "FaceAnnotation", (_message.Message,), - dict( - Landmark=_reflection.GeneratedProtocolMessageType( + { + "Landmark": _reflection.GeneratedProtocolMessageType( "Landmark", (_message.Message,), - dict( - DESCRIPTOR=_FACEANNOTATION_LANDMARK, - __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - __doc__="""A face-specific landmark (for example, a face feature). + { + "DESCRIPTOR": _FACEANNOTATION_LANDMARK, + "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + "__doc__": """A face-specific landmark (for example, a face feature). + + Attributes: type: Face landmark type. @@ -3343,16 +3345,19 @@ Face landmark position. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark) - ), - ), - DESCRIPTOR=_FACEANNOTATION, - __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - __doc__="""A face annotation object contains the results of face detection. + }, + ), + "DESCRIPTOR": _FACEANNOTATION, + "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + "__doc__": """A face annotation object contains the results of face + detection. + + Attributes: bounding_poly: The bounding polygon around the face. The coordinates of the - bounding box are in the original image's scale, as returned in - ``ImageParams``. The bounding box is computed to "frame" the + bounding box are in the original image’s scale, as returned in + ``ImageParams``. The bounding box is computed to “frame” the face in accordance with human expectations. It is based on the landmarker results. Note that one or more x and/or y coordinates may not be generated in the ``BoundingPoly`` (the @@ -3362,7 +3367,7 @@ The ``fd_bounding_poly`` bounding polygon is tighter than the ``boundingPoly``, and encloses only the skin part of the face. Typically, it is used to eliminate the face from any image - analysis that detects the "amount of skin" visible in an + analysis that detects the “amount of skin” visible in an image. It is not based on the landmarker results, only on the initial face detection, hence the fd (face detection) prefix. landmarks: @@ -3377,7 +3382,7 @@ perpendicular to the image. Range [-180,180]. tilt_angle: Pitch angle, which indicates the upwards/downwards angle that - the face is pointing relative to the image's horizontal plane. + the face is pointing relative to the image’s horizontal plane. Range [-180,180]. detection_confidence: Detection confidence. Range [0, 1]. @@ -3399,7 +3404,7 @@ Headwear likelihood. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.FaceAnnotation) - ), + }, ) _sym_db.RegisterMessage(FaceAnnotation) _sym_db.RegisterMessage(FaceAnnotation.Landmark) @@ -3407,26 +3412,31 @@ LocationInfo = _reflection.GeneratedProtocolMessageType( "LocationInfo", (_message.Message,), - dict( - DESCRIPTOR=_LOCATIONINFO, - __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - __doc__="""Detected entity location information. + { + "DESCRIPTOR": _LOCATIONINFO, + "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + "__doc__": """Detected entity location information. + + Attributes: lat_lng: lat/long location coordinates. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.LocationInfo) - ), + }, ) _sym_db.RegisterMessage(LocationInfo) Property = _reflection.GeneratedProtocolMessageType( "Property", (_message.Message,), - dict( - DESCRIPTOR=_PROPERTY, - __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - __doc__="""A ``Property`` consists of a user-supplied name/value pair. + { + "DESCRIPTOR": _PROPERTY, + "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + "__doc__": """A ``Property`` consists of a user-supplied name/value + pair. + + Attributes: name: Name of the property. @@ -3436,17 +3446,19 @@ Value of numeric properties. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Property) - ), + }, ) _sym_db.RegisterMessage(Property) EntityAnnotation = _reflection.GeneratedProtocolMessageType( "EntityAnnotation", (_message.Message,), - dict( - DESCRIPTOR=_ENTITYANNOTATION, - __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - __doc__="""Set of detected entity features. + { + "DESCRIPTOR": _ENTITYANNOTATION, + "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + "__doc__": """Set of detected entity features. + + Attributes: mid: Opaque entity ID. Some IDs may be available in `Google @@ -3463,13 +3475,13 @@ confidence: \ **Deprecated. Use ``score`` instead.** The accuracy of the entity detection in an image. For example, for an image in - which the "Eiffel Tower" entity is detected, this field + which the “Eiffel Tower” entity is detected, this field represents the confidence that there is a tower in the query image. Range [0, 1]. topicality: The relevancy of the ICA (Image Content Annotation) label to - the image. For example, the relevancy of "tower" is likely - higher to an image containing the detected "Eiffel Tower" than + the image. For example, the relevancy of “tower” is likely + higher to an image containing the detected “Eiffel Tower” than to an image containing a detected distant towering building, even though the confidence that there is a tower in each image may be the same. Range [0, 1]. @@ -3489,24 +3501,26 @@ entity. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.EntityAnnotation) - ), + }, ) _sym_db.RegisterMessage(EntityAnnotation) LocalizedObjectAnnotation = _reflection.GeneratedProtocolMessageType( "LocalizedObjectAnnotation", (_message.Message,), - dict( - DESCRIPTOR=_LOCALIZEDOBJECTANNOTATION, - __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - __doc__="""Set of detected objects with bounding boxes. + { + "DESCRIPTOR": _LOCALIZEDOBJECTANNOTATION, + "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + "__doc__": """Set of detected objects with bounding boxes. + + Attributes: mid: Object ID that should align with EntityAnnotation mid. language_code: - The BCP-47 language code, such as "en-US" or "sr-Latn". For + The BCP-47 language code, such as “en-US” or “sr-Latn”. For more information, see http://www.unicode.org/reports/tr35/#Uni - code\_locale\_identifier. + code_locale_identifier. name: Object name, expressed in its ``language_code`` language. score: @@ -3516,19 +3530,21 @@ populated. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation) - ), + }, ) _sym_db.RegisterMessage(LocalizedObjectAnnotation) SafeSearchAnnotation = _reflection.GeneratedProtocolMessageType( "SafeSearchAnnotation", (_message.Message,), - dict( - DESCRIPTOR=_SAFESEARCHANNOTATION, - __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - __doc__="""Set of features pertaining to the image, computed by computer vision - methods over safe-search verticals (for example, adult, spoof, - medical, violence). + { + "DESCRIPTOR": _SAFESEARCHANNOTATION, + "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + "__doc__": """Set of features pertaining to the image, computed by + computer vision methods over safe-search verticals (for example, adult, + spoof, medical, violence). + + Attributes: adult: Represents the adult content likelihood for the image. Adult @@ -3536,7 +3552,7 @@ images or cartoons, or sexual activities. spoof: Spoof likelihood. The likelihood that an modification was made - to the image's canonical version to make it appear funny or + to the image’s canonical version to make it appear funny or offensive. medical: Likelihood that this is a medical image. @@ -3549,17 +3565,19 @@ poses, or close-ups of sensitive body areas. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.SafeSearchAnnotation) - ), + }, ) _sym_db.RegisterMessage(SafeSearchAnnotation) LatLongRect = _reflection.GeneratedProtocolMessageType( "LatLongRect", (_message.Message,), - dict( - DESCRIPTOR=_LATLONGRECT, - __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - __doc__="""Rectangle determined by min and max ``LatLng`` pairs. + { + "DESCRIPTOR": _LATLONGRECT, + "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + "__doc__": """Rectangle determined by min and max ``LatLng`` pairs. + + Attributes: min_lat_lng: Min lat/long pair. @@ -3567,18 +3585,20 @@ Max lat/long pair. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.LatLongRect) - ), + }, ) _sym_db.RegisterMessage(LatLongRect) ColorInfo = _reflection.GeneratedProtocolMessageType( "ColorInfo", (_message.Message,), - dict( - DESCRIPTOR=_COLORINFO, - __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - __doc__="""Color information consists of RGB channels, score, and the fraction of - the image that the color occupies in the image. + { + "DESCRIPTOR": _COLORINFO, + "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + "__doc__": """Color information consists of RGB channels, score, and the + fraction of the image that the color occupies in the image. + + Attributes: color: RGB components of the color. @@ -3589,54 +3609,60 @@ in range [0, 1]. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ColorInfo) - ), + }, ) _sym_db.RegisterMessage(ColorInfo) DominantColorsAnnotation = _reflection.GeneratedProtocolMessageType( "DominantColorsAnnotation", (_message.Message,), - dict( - DESCRIPTOR=_DOMINANTCOLORSANNOTATION, - __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - __doc__="""Set of dominant colors and their corresponding scores. + { + "DESCRIPTOR": _DOMINANTCOLORSANNOTATION, + "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + "__doc__": """Set of dominant colors and their corresponding scores. + + Attributes: colors: RGB color values with their score and pixel fraction. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.DominantColorsAnnotation) - ), + }, ) _sym_db.RegisterMessage(DominantColorsAnnotation) ImageProperties = _reflection.GeneratedProtocolMessageType( "ImageProperties", (_message.Message,), - dict( - DESCRIPTOR=_IMAGEPROPERTIES, - __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - __doc__="""Stores image properties, such as dominant colors. + { + "DESCRIPTOR": _IMAGEPROPERTIES, + "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + "__doc__": """Stores image properties, such as dominant colors. + + Attributes: dominant_colors: If present, dominant colors completed successfully. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ImageProperties) - ), + }, ) _sym_db.RegisterMessage(ImageProperties) CropHint = _reflection.GeneratedProtocolMessageType( "CropHint", (_message.Message,), - dict( - DESCRIPTOR=_CROPHINT, - __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - __doc__="""Single crop hint that is used to generate a new crop when serving an - image. + { + "DESCRIPTOR": _CROPHINT, + "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + "__doc__": """Single crop hint that is used to generate a new crop when + serving an image. + + Attributes: bounding_poly: The bounding polygon for the crop region. The coordinates of - the bounding box are in the original image's scale, as + the bounding box are in the original image’s scale, as returned in ``ImageParams``. confidence: Confidence of this being a salient region. Range [0, 1]. @@ -3645,34 +3671,38 @@ the original image. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.CropHint) - ), + }, ) _sym_db.RegisterMessage(CropHint) CropHintsAnnotation = _reflection.GeneratedProtocolMessageType( "CropHintsAnnotation", (_message.Message,), - dict( - DESCRIPTOR=_CROPHINTSANNOTATION, - __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - __doc__="""Set of crop hints that are used to generate new crops when serving - images. + { + "DESCRIPTOR": _CROPHINTSANNOTATION, + "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + "__doc__": """Set of crop hints that are used to generate new crops when + serving images. + + Attributes: crop_hints: Crop hint results. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.CropHintsAnnotation) - ), + }, ) _sym_db.RegisterMessage(CropHintsAnnotation) CropHintsParams = _reflection.GeneratedProtocolMessageType( "CropHintsParams", (_message.Message,), - dict( - DESCRIPTOR=_CROPHINTSPARAMS, - __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - __doc__="""Parameters for crop hints annotation request. + { + "DESCRIPTOR": _CROPHINTSPARAMS, + "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + "__doc__": """Parameters for crop hints annotation request. + + Attributes: aspect_ratios: Aspect ratios in floats, representing the ratio of the width @@ -3683,47 +3713,51 @@ 16; any aspect ratios provided after the 16th are ignored. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.CropHintsParams) - ), + }, ) _sym_db.RegisterMessage(CropHintsParams) WebDetectionParams = _reflection.GeneratedProtocolMessageType( "WebDetectionParams", (_message.Message,), - dict( - DESCRIPTOR=_WEBDETECTIONPARAMS, - __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - __doc__="""Parameters for web detection request. + { + "DESCRIPTOR": _WEBDETECTIONPARAMS, + "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + "__doc__": """Parameters for web detection request. + + Attributes: include_geo_results: Whether to include results derived from the geo information in the image. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.WebDetectionParams) - ), + }, ) _sym_db.RegisterMessage(WebDetectionParams) ImageContext = _reflection.GeneratedProtocolMessageType( "ImageContext", (_message.Message,), - dict( - DESCRIPTOR=_IMAGECONTEXT, - __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - __doc__="""Image context and/or feature-specific parameters. + { + "DESCRIPTOR": _IMAGECONTEXT, + "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + "__doc__": """Image context and/or feature-specific parameters. + + Attributes: lat_long_rect: Not used. language_hints: - List of languages to use for TEXT\_DETECTION. In most cases, - an empty value yields the best results since it enables - automatic language detection. For languages based on the Latin - alphabet, setting ``language_hints`` is not needed. In rare - cases, when the language of the text in the image is known, - setting a hint will help get better results (although it will - be a significant hindrance if the hint is wrong). Text - detection returns an error if one or more of the specified - languages is not one of the `supported languages + List of languages to use for TEXT_DETECTION. In most cases, an + empty value yields the best results since it enables automatic + language detection. For languages based on the Latin alphabet, + setting ``language_hints`` is not needed. In rare cases, when + the language of the text in the image is known, setting a hint + will help get better results (although it will be a + significant hindrance if the hint is wrong). Text detection + returns an error if one or more of the specified languages is + not one of the `supported languages `__. crop_hints_params: Parameters for crop hints annotation request. @@ -3733,18 +3767,20 @@ Parameters for web detection. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ImageContext) - ), + }, ) _sym_db.RegisterMessage(ImageContext) AnnotateImageRequest = _reflection.GeneratedProtocolMessageType( "AnnotateImageRequest", (_message.Message,), - dict( - DESCRIPTOR=_ANNOTATEIMAGEREQUEST, - __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - __doc__="""Request for performing Google Cloud Vision API tasks over a user- - provided image, with user-requested features. + { + "DESCRIPTOR": _ANNOTATEIMAGEREQUEST, + "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + "__doc__": """Request for performing Google Cloud Vision API tasks over + a user-provided image, with user-requested features. + + Attributes: image: The image to be processed. @@ -3754,18 +3790,20 @@ Additional context that may accompany the image. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.AnnotateImageRequest) - ), + }, ) _sym_db.RegisterMessage(AnnotateImageRequest) ImageAnnotationContext = _reflection.GeneratedProtocolMessageType( "ImageAnnotationContext", (_message.Message,), - dict( - DESCRIPTOR=_IMAGEANNOTATIONCONTEXT, - __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - __doc__="""If an image was produced from a file (e.g. a PDF), this message gives - information about the source of that image. + { + "DESCRIPTOR": _IMAGEANNOTATIONCONTEXT, + "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + "__doc__": """If an image was produced from a file (e.g. a PDF), this + message gives information about the source of that image. + + Attributes: uri: The URI of the file used to produce the image. @@ -3774,17 +3812,19 @@ number within the file used to produce the image. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ImageAnnotationContext) - ), + }, ) _sym_db.RegisterMessage(ImageAnnotationContext) AnnotateImageResponse = _reflection.GeneratedProtocolMessageType( "AnnotateImageResponse", (_message.Message,), - dict( - DESCRIPTOR=_ANNOTATEIMAGERESPONSE, - __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - __doc__="""Response to an image annotation request. + { + "DESCRIPTOR": _ANNOTATEIMAGERESPONSE, + "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + "__doc__": """Response to an image annotation request. + + Attributes: face_annotations: If present, face detection has completed successfully. @@ -3823,18 +3863,20 @@ where this image comes from. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.AnnotateImageResponse) - ), + }, ) _sym_db.RegisterMessage(AnnotateImageResponse) AnnotateFileResponse = _reflection.GeneratedProtocolMessageType( "AnnotateFileResponse", (_message.Message,), - dict( - DESCRIPTOR=_ANNOTATEFILERESPONSE, - __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - __doc__="""Response to a single file annotation request. A file may contain one - or more images, which individually have their own responses. + { + "DESCRIPTOR": _ANNOTATEFILERESPONSE, + "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + "__doc__": """Response to a single file annotation request. A file may + contain one or more images, which individually have their own responses. + + Attributes: input_config: Information about the file for which this response is @@ -3843,51 +3885,57 @@ Individual responses to images found within the file. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.AnnotateFileResponse) - ), + }, ) _sym_db.RegisterMessage(AnnotateFileResponse) BatchAnnotateImagesRequest = _reflection.GeneratedProtocolMessageType( "BatchAnnotateImagesRequest", (_message.Message,), - dict( - DESCRIPTOR=_BATCHANNOTATEIMAGESREQUEST, - __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - __doc__="""Multiple image annotation requests are batched into a single service - call. + { + "DESCRIPTOR": _BATCHANNOTATEIMAGESREQUEST, + "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + "__doc__": """Multiple image annotation requests are batched into a + single service call. + + Attributes: requests: Individual image annotation requests for this batch. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest) - ), + }, ) _sym_db.RegisterMessage(BatchAnnotateImagesRequest) BatchAnnotateImagesResponse = _reflection.GeneratedProtocolMessageType( "BatchAnnotateImagesResponse", (_message.Message,), - dict( - DESCRIPTOR=_BATCHANNOTATEIMAGESRESPONSE, - __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - __doc__="""Response to a batch image annotation request. + { + "DESCRIPTOR": _BATCHANNOTATEIMAGESRESPONSE, + "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + "__doc__": """Response to a batch image annotation request. + + Attributes: responses: Individual responses to image annotation requests within the batch. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse) - ), + }, ) _sym_db.RegisterMessage(BatchAnnotateImagesResponse) AsyncAnnotateFileRequest = _reflection.GeneratedProtocolMessageType( "AsyncAnnotateFileRequest", (_message.Message,), - dict( - DESCRIPTOR=_ASYNCANNOTATEFILEREQUEST, - __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - __doc__="""An offline file annotation request. + { + "DESCRIPTOR": _ASYNCANNOTATEFILEREQUEST, + "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + "__doc__": """An offline file annotation request. + + Attributes: input_config: Required. Information about the input file. @@ -3897,92 +3945,102 @@ Additional context that may accompany the image(s) in the file. output_config: - Required. The desired output location and metadata (e.g. - format). + Required. The desired output location and metadata + (e.g. format). """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest) - ), + }, ) _sym_db.RegisterMessage(AsyncAnnotateFileRequest) AsyncAnnotateFileResponse = _reflection.GeneratedProtocolMessageType( "AsyncAnnotateFileResponse", (_message.Message,), - dict( - DESCRIPTOR=_ASYNCANNOTATEFILERESPONSE, - __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - __doc__="""The response for a single offline file annotation request. + { + "DESCRIPTOR": _ASYNCANNOTATEFILERESPONSE, + "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + "__doc__": """The response for a single offline file annotation request. + + Attributes: output_config: The output location and metadata from AsyncAnnotateFileRequest. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse) - ), + }, ) _sym_db.RegisterMessage(AsyncAnnotateFileResponse) AsyncBatchAnnotateFilesRequest = _reflection.GeneratedProtocolMessageType( "AsyncBatchAnnotateFilesRequest", (_message.Message,), - dict( - DESCRIPTOR=_ASYNCBATCHANNOTATEFILESREQUEST, - __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - __doc__="""Multiple async file annotation requests are batched into a single - service call. + { + "DESCRIPTOR": _ASYNCBATCHANNOTATEFILESREQUEST, + "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + "__doc__": """Multiple async file annotation requests are batched into a + single service call. + + Attributes: requests: Required. Individual async file annotation requests for this batch. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest) - ), + }, ) _sym_db.RegisterMessage(AsyncBatchAnnotateFilesRequest) AsyncBatchAnnotateFilesResponse = _reflection.GeneratedProtocolMessageType( "AsyncBatchAnnotateFilesResponse", (_message.Message,), - dict( - DESCRIPTOR=_ASYNCBATCHANNOTATEFILESRESPONSE, - __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - __doc__="""Response to an async batch file annotation request. + { + "DESCRIPTOR": _ASYNCBATCHANNOTATEFILESRESPONSE, + "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + "__doc__": """Response to an async batch file annotation request. + + Attributes: responses: The list of file annotation responses, one for each request in AsyncBatchAnnotateFilesRequest. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse) - ), + }, ) _sym_db.RegisterMessage(AsyncBatchAnnotateFilesResponse) InputConfig = _reflection.GeneratedProtocolMessageType( "InputConfig", (_message.Message,), - dict( - DESCRIPTOR=_INPUTCONFIG, - __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - __doc__="""The desired input location and metadata. + { + "DESCRIPTOR": _INPUTCONFIG, + "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + "__doc__": """The desired input location and metadata. + + Attributes: gcs_source: The Google Cloud Storage location to read the input from. mime_type: - The type of the file. Currently only "application/pdf" and - "image/tiff" are supported. Wildcards are not supported. + The type of the file. Currently only “application/pdf” and + “image/tiff” are supported. Wildcards are not supported. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.InputConfig) - ), + }, ) _sym_db.RegisterMessage(InputConfig) OutputConfig = _reflection.GeneratedProtocolMessageType( "OutputConfig", (_message.Message,), - dict( - DESCRIPTOR=_OUTPUTCONFIG, - __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - __doc__="""The desired output location and metadata. + { + "DESCRIPTOR": _OUTPUTCONFIG, + "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + "__doc__": """The desired output location and metadata. + + Attributes: gcs_destination: The Google Cloud Storage location to write the output(s) to. @@ -3993,22 +4051,25 @@ pdf file with 100 pages, 100 response protos will be generated. If ``batch_size`` = 20, then 5 json files each containing 20 response protos will be written under the prefix - ``gcs_destination``.\ ``uri``. Currently, batch\_size only + ``gcs_destination``.\ ``uri``. Currently, batch_size only applies to GcsDestination, with potential future support for other output configurations. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.OutputConfig) - ), + }, ) _sym_db.RegisterMessage(OutputConfig) GcsSource = _reflection.GeneratedProtocolMessageType( "GcsSource", (_message.Message,), - dict( - DESCRIPTOR=_GCSSOURCE, - __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - __doc__="""The Google Cloud Storage location where the input will be read from. + { + "DESCRIPTOR": _GCSSOURCE, + "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + "__doc__": """The Google Cloud Storage location where the input will be + read from. + + Attributes: uri: Google Cloud Storage URI for the input file. This must only be @@ -4016,17 +4077,20 @@ supported. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.GcsSource) - ), + }, ) _sym_db.RegisterMessage(GcsSource) GcsDestination = _reflection.GeneratedProtocolMessageType( "GcsDestination", (_message.Message,), - dict( - DESCRIPTOR=_GCSDESTINATION, - __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - __doc__="""The Google Cloud Storage location where the output will be written to. + { + "DESCRIPTOR": _GCSDESTINATION, + "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + "__doc__": """The Google Cloud Storage location where the output will be + written to. + + Attributes: uri: Google Cloud Storage URI where the results will be stored. @@ -4042,17 +4106,19 @@ is too large and overflows into multiple sharded files. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.GcsDestination) - ), + }, ) _sym_db.RegisterMessage(GcsDestination) OperationMetadata = _reflection.GeneratedProtocolMessageType( "OperationMetadata", (_message.Message,), - dict( - DESCRIPTOR=_OPERATIONMETADATA, - __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - __doc__="""Contains metadata for the BatchAnnotateImages operation. + { + "DESCRIPTOR": _OPERATIONMETADATA, + "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", + "__doc__": """Contains metadata for the BatchAnnotateImages operation. + + Attributes: state: Current state of the batch operation. @@ -4062,7 +4128,7 @@ The time when the operation result was last updated. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.OperationMetadata) - ), + }, ) _sym_db.RegisterMessage(OperationMetadata) @@ -4075,9 +4141,7 @@ full_name="google.cloud.vision.v1p3beta1.ImageAnnotator", file=DESCRIPTOR, index=0, - serialized_options=_b( - "\312A\025vision.googleapis.com\322A[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-vision" - ), + serialized_options=b"\312A\025vision.googleapis.com\322A[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-vision", serialized_start=7836, serialized_end=8401, methods=[ @@ -4088,9 +4152,7 @@ containing_service=None, input_type=_BATCHANNOTATEIMAGESREQUEST, output_type=_BATCHANNOTATEIMAGESRESPONSE, - serialized_options=_b( - '\202\323\344\223\002\037"\032/v1p3beta1/images:annotate:\001*\332A\010requests' - ), + serialized_options=b'\202\323\344\223\002\037"\032/v1p3beta1/images:annotate:\001*\332A\010requests', ), _descriptor.MethodDescriptor( name="AsyncBatchAnnotateFiles", @@ -4099,9 +4161,7 @@ containing_service=None, input_type=_ASYNCBATCHANNOTATEFILESREQUEST, output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - serialized_options=_b( - '\202\323\344\223\002("#/v1p3beta1/files:asyncBatchAnnotate:\001*\332A\010requests\312A4\n\037AsyncBatchAnnotateFilesResponse\022\021OperationMetadata' - ), + serialized_options=b'\202\323\344\223\002("#/v1p3beta1/files:asyncBatchAnnotate:\001*\332A\010requests\312A4\n\037AsyncBatchAnnotateFilesResponse\022\021OperationMetadata', ), ], ) diff --git a/google/cloud/vision_v1p3beta1/proto/product_search_pb2.py b/google/cloud/vision_v1p3beta1/proto/product_search_pb2.py index fc451091..b8bebcf2 100644 --- a/google/cloud/vision_v1p3beta1/proto/product_search_pb2.py +++ b/google/cloud/vision_v1p3beta1/proto/product_search_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1p3beta1/proto/product_search.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message @@ -31,12 +28,8 @@ name="google/cloud/vision_v1p3beta1/proto/product_search.proto", package="google.cloud.vision.v1p3beta1", syntax="proto3", - serialized_options=_b( - "\n!com.google.cloud.vision.v1p3beta1B\022ProductSearchProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\370\001\001" - ), - serialized_pb=_b( - '\n8google/cloud/vision_v1p3beta1/proto/product_search.proto\x12\x1dgoogle.cloud.vision.v1p3beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x19google/api/resource.proto\x1a\x32google/cloud/vision_v1p3beta1/proto/geometry.proto\x1a@google/cloud/vision_v1p3beta1/proto/product_search_service.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xd9\x03\n\x13ProductSearchParams\x12\x14\n\x0c\x63\x61talog_name\x18\x01 \x01(\t\x12\x46\n\x08\x63\x61tegory\x18\x02 \x01(\x0e\x32\x34.google.cloud.vision.v1p3beta1.ProductSearchCategory\x12\x18\n\x10product_category\x18\x05 \x01(\t\x12W\n\x18normalized_bounding_poly\x18\x03 \x01(\x0b\x32\x35.google.cloud.vision.v1p3beta1.NormalizedBoundingPoly\x12\x42\n\rbounding_poly\x18\t \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\x12\x45\n\x04view\x18\x04 \x01(\x0e\x32\x37.google.cloud.vision.v1p3beta1.ProductSearchResultsView\x12:\n\x0bproduct_set\x18\x06 \x01(\tB%\xfa\x41"\n vision.googleapis.com/ProductSet\x12\x1a\n\x12product_categories\x18\x07 \x03(\t\x12\x0e\n\x06\x66ilter\x18\x08 \x01(\t"\xee\x03\n\x14ProductSearchResults\x12\x46\n\x08\x63\x61tegory\x18\x01 \x01(\x0e\x32\x34.google.cloud.vision.v1p3beta1.ProductSearchCategory\x12\x18\n\x10product_category\x18\x04 \x01(\t\x12.\n\nindex_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12Q\n\x08products\x18\x03 \x03(\x0b\x32?.google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo\x12K\n\x07results\x18\x05 \x03(\x0b\x32:.google.cloud.vision.v1p3beta1.ProductSearchResults.Result\x1a\x43\n\x0bProductInfo\x12\x12\n\nproduct_id\x18\x01 \x01(\t\x12\x11\n\timage_uri\x18\x02 \x01(\t\x12\r\n\x05score\x18\x03 \x01(\x02\x1a_\n\x06Result\x12\x37\n\x07product\x18\x01 \x01(\x0b\x32&.google.cloud.vision.v1p3beta1.Product\x12\r\n\x05score\x18\x02 \x01(\x02\x12\r\n\x05image\x18\x03 \x01(\t*U\n\x15ProductSearchCategory\x12\'\n#PRODUCT_SEARCH_CATEGORY_UNSPECIFIED\x10\x00\x12\t\n\x05SHOES\x10\x01\x12\x08\n\x04\x42\x41GS\x10\x02*/\n\x18ProductSearchResultsView\x12\t\n\x05\x42\x41SIC\x10\x00\x12\x08\n\x04\x46ULL\x10\x01\x42\x81\x01\n!com.google.cloud.vision.v1p3beta1B\x12ProductSearchProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\xf8\x01\x01\x62\x06proto3' - ), + serialized_options=b"\n!com.google.cloud.vision.v1p3beta1B\022ProductSearchProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\370\001\001", + serialized_pb=b'\n8google/cloud/vision_v1p3beta1/proto/product_search.proto\x12\x1dgoogle.cloud.vision.v1p3beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x19google/api/resource.proto\x1a\x32google/cloud/vision_v1p3beta1/proto/geometry.proto\x1a@google/cloud/vision_v1p3beta1/proto/product_search_service.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xd9\x03\n\x13ProductSearchParams\x12\x14\n\x0c\x63\x61talog_name\x18\x01 \x01(\t\x12\x46\n\x08\x63\x61tegory\x18\x02 \x01(\x0e\x32\x34.google.cloud.vision.v1p3beta1.ProductSearchCategory\x12\x18\n\x10product_category\x18\x05 \x01(\t\x12W\n\x18normalized_bounding_poly\x18\x03 \x01(\x0b\x32\x35.google.cloud.vision.v1p3beta1.NormalizedBoundingPoly\x12\x42\n\rbounding_poly\x18\t \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\x12\x45\n\x04view\x18\x04 \x01(\x0e\x32\x37.google.cloud.vision.v1p3beta1.ProductSearchResultsView\x12:\n\x0bproduct_set\x18\x06 \x01(\tB%\xfa\x41"\n vision.googleapis.com/ProductSet\x12\x1a\n\x12product_categories\x18\x07 \x03(\t\x12\x0e\n\x06\x66ilter\x18\x08 \x01(\t"\xee\x03\n\x14ProductSearchResults\x12\x46\n\x08\x63\x61tegory\x18\x01 \x01(\x0e\x32\x34.google.cloud.vision.v1p3beta1.ProductSearchCategory\x12\x18\n\x10product_category\x18\x04 \x01(\t\x12.\n\nindex_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12Q\n\x08products\x18\x03 \x03(\x0b\x32?.google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo\x12K\n\x07results\x18\x05 \x03(\x0b\x32:.google.cloud.vision.v1p3beta1.ProductSearchResults.Result\x1a\x43\n\x0bProductInfo\x12\x12\n\nproduct_id\x18\x01 \x01(\t\x12\x11\n\timage_uri\x18\x02 \x01(\t\x12\r\n\x05score\x18\x03 \x01(\x02\x1a_\n\x06Result\x12\x37\n\x07product\x18\x01 \x01(\x0b\x32&.google.cloud.vision.v1p3beta1.Product\x12\r\n\x05score\x18\x02 \x01(\x02\x12\r\n\x05image\x18\x03 \x01(\t*U\n\x15ProductSearchCategory\x12\'\n#PRODUCT_SEARCH_CATEGORY_UNSPECIFIED\x10\x00\x12\t\n\x05SHOES\x10\x01\x12\x08\n\x04\x42\x41GS\x10\x02*/\n\x18ProductSearchResultsView\x12\t\n\x05\x42\x41SIC\x10\x00\x12\x08\n\x04\x46ULL\x10\x01\x42\x81\x01\n!com.google.cloud.vision.v1p3beta1B\x12ProductSearchProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\xf8\x01\x01\x62\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, google_dot_api_dot_resource__pb2.DESCRIPTOR, @@ -118,7 +111,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -154,7 +147,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -226,13 +219,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b('\372A"\n vision.googleapis.com/ProductSet'), + serialized_options=b'\372A"\n vision.googleapis.com/ProductSet', file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -262,7 +255,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -301,7 +294,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -319,7 +312,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -411,7 +404,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -467,7 +460,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -581,10 +574,12 @@ ProductSearchParams = _reflection.GeneratedProtocolMessageType( "ProductSearchParams", (_message.Message,), - dict( - DESCRIPTOR=_PRODUCTSEARCHPARAMS, - __module__="google.cloud.vision_v1p3beta1.proto.product_search_pb2", - __doc__="""Parameters for a product search request. + { + "DESCRIPTOR": _PRODUCTSEARCHPARAMS, + "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_pb2", + "__doc__": """Parameters for a product search request. + + Attributes: catalog_name: The resource name of the catalog to search. Format is: @@ -616,32 +611,34 @@ /locations/LOC_ID/productSets/PRODUCT_SET_ID``. product_categories: The list of product categories to search in. Currently, we - only consider the first category, and either "homegoods" or - "apparel" should be specified. + only consider the first category, and either “homegoods” or + “apparel” should be specified. filter: The filtering expression. This can be used to restrict search results based on Product labels. We currently support an AND of OR of key-value expressions, where each expression within - an OR must have the same key. For example, "(color = red OR - color = blue) AND brand = Google" is acceptable, but not - "(color = red OR brand = Google)" or "color: red". + an OR must have the same key. For example, “(color = red OR + color = blue) AND brand = Google” is acceptable, but not + “(color = red OR brand = Google)” or “color: red”. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ProductSearchParams) - ), + }, ) _sym_db.RegisterMessage(ProductSearchParams) ProductSearchResults = _reflection.GeneratedProtocolMessageType( "ProductSearchResults", (_message.Message,), - dict( - ProductInfo=_reflection.GeneratedProtocolMessageType( + { + "ProductInfo": _reflection.GeneratedProtocolMessageType( "ProductInfo", (_message.Message,), - dict( - DESCRIPTOR=_PRODUCTSEARCHRESULTS_PRODUCTINFO, - __module__="google.cloud.vision_v1p3beta1.proto.product_search_pb2", - __doc__="""Information about a product. + { + "DESCRIPTOR": _PRODUCTSEARCHRESULTS_PRODUCTINFO, + "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_pb2", + "__doc__": """Information about a product. + + Attributes: product_id: Product ID. @@ -655,15 +652,17 @@ only if ``view`` is set to ``FULL`` in the request. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo) - ), + }, ), - Result=_reflection.GeneratedProtocolMessageType( + "Result": _reflection.GeneratedProtocolMessageType( "Result", (_message.Message,), - dict( - DESCRIPTOR=_PRODUCTSEARCHRESULTS_RESULT, - __module__="google.cloud.vision_v1p3beta1.proto.product_search_pb2", - __doc__="""Information about a product. + { + "DESCRIPTOR": _PRODUCTSEARCHRESULTS_RESULT, + "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_pb2", + "__doc__": """Information about a product. + + Attributes: product: The Product. @@ -676,11 +675,13 @@ closest match to the query. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ProductSearchResults.Result) - ), + }, ), - DESCRIPTOR=_PRODUCTSEARCHRESULTS, - __module__="google.cloud.vision_v1p3beta1.proto.product_search_pb2", - __doc__="""Results for a product search request. + "DESCRIPTOR": _PRODUCTSEARCHRESULTS, + "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_pb2", + "__doc__": """Results for a product search request. + + Attributes: category: Product category. [Deprecated] Use ``product_category``. @@ -696,7 +697,7 @@ List of results, one for each product match. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ProductSearchResults) - ), + }, ) _sym_db.RegisterMessage(ProductSearchResults) _sym_db.RegisterMessage(ProductSearchResults.ProductInfo) diff --git a/google/cloud/vision_v1p3beta1/proto/product_search_service_pb2.py b/google/cloud/vision_v1p3beta1/proto/product_search_service_pb2.py index 29bfd369..73267b65 100644 --- a/google/cloud/vision_v1p3beta1/proto/product_search_service_pb2.py +++ b/google/cloud/vision_v1p3beta1/proto/product_search_service_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1p3beta1/proto/product_search_service.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -35,12 +32,8 @@ name="google/cloud/vision_v1p3beta1/proto/product_search_service.proto", package="google.cloud.vision.v1p3beta1", syntax="proto3", - serialized_options=_b( - "\n!com.google.cloud.vision.v1p3beta1B\031ProductSearchServiceProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\370\001\001" - ), - serialized_pb=_b( - '\n@google/cloud/vision_v1p3beta1/proto/product_search_service.proto\x12\x1dgoogle.cloud.vision.v1p3beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x32google/cloud/vision_v1p3beta1/proto/geometry.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto"\xb2\x02\n\x07Product\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x1d\n\x10product_category\x18\x04 \x01(\tB\x03\xe0\x41\x05\x12G\n\x0eproduct_labels\x18\x05 \x03(\x0b\x32/.google.cloud.vision.v1p3beta1.Product.KeyValue\x1a&\n\x08KeyValue\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:^\xea\x41[\n\x1dvision.googleapis.com/Product\x12:projects/{project}/locations/{location}/products/{product}"\xfd\x01\n\nProductSet\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x33\n\nindex_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12,\n\x0bindex_error\x18\x04 \x01(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03:h\xea\x41\x65\n vision.googleapis.com/ProductSet\x12\x41projects/{project}/locations/{location}/productSets/{product_set}"\x85\x02\n\x0eReferenceImage\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x03uri\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12H\n\x0e\x62ounding_polys\x18\x03 \x03(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPolyB\x03\xe0\x41\x01:\x88\x01\xea\x41\x84\x01\n$vision.googleapis.com/ReferenceImage\x12\\projects/{project}/locations/{location}/products/{product}/referenceImages/{reference_image}"\xa3\x01\n\x14\x43reateProductRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12<\n\x07product\x18\x02 \x01(\x0b\x32&.google.cloud.vision.v1p3beta1.ProductB\x03\xe0\x41\x02\x12\x12\n\nproduct_id\x18\x03 \x01(\t"w\n\x13ListProductsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"i\n\x14ListProductsResponse\x12\x38\n\x08products\x18\x01 \x03(\x0b\x32&.google.cloud.vision.v1p3beta1.Product\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"H\n\x11GetProductRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product"\x85\x01\n\x14UpdateProductRequest\x12<\n\x07product\x18\x01 \x01(\x0b\x32&.google.cloud.vision.v1p3beta1.ProductB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"K\n\x14\x44\x65leteProductRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product"\xb1\x01\n\x17\x43reateProductSetRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x43\n\x0bproduct_set\x18\x02 \x01(\x0b\x32).google.cloud.vision.v1p3beta1.ProductSetB\x03\xe0\x41\x02\x12\x16\n\x0eproduct_set_id\x18\x03 \x01(\t"z\n\x16ListProductSetsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"s\n\x17ListProductSetsResponse\x12?\n\x0cproduct_sets\x18\x01 \x03(\x0b\x32).google.cloud.vision.v1p3beta1.ProductSet\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"N\n\x14GetProductSetRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41"\n vision.googleapis.com/ProductSet"\x8f\x01\n\x17UpdateProductSetRequest\x12\x43\n\x0bproduct_set\x18\x01 \x01(\x0b\x32).google.cloud.vision.v1p3beta1.ProductSetB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"Q\n\x17\x44\x65leteProductSetRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41"\n vision.googleapis.com/ProductSet"\xbd\x01\n\x1b\x43reateReferenceImageRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product\x12K\n\x0freference_image\x18\x02 \x01(\x0b\x32-.google.cloud.vision.v1p3beta1.ReferenceImageB\x03\xe0\x41\x02\x12\x1a\n\x12reference_image_id\x18\x03 \x01(\t"z\n\x1aListReferenceImagesRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"\x92\x01\n\x1bListReferenceImagesResponse\x12G\n\x10reference_images\x18\x01 \x03(\x0b\x32-.google.cloud.vision.v1p3beta1.ReferenceImage\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t"V\n\x18GetReferenceImageRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$vision.googleapis.com/ReferenceImage"Y\n\x1b\x44\x65leteReferenceImageRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$vision.googleapis.com/ReferenceImage"\x8f\x01\n\x1d\x41\x64\x64ProductToProductSetRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41"\n vision.googleapis.com/ProductSet\x12\x36\n\x07product\x18\x02 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product"\x94\x01\n"RemoveProductFromProductSetRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41"\n vision.googleapis.com/ProductSet\x12\x36\n\x07product\x18\x02 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product"\x80\x01\n\x1fListProductsInProductSetRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41"\n vision.googleapis.com/ProductSet\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"u\n ListProductsInProductSetResponse\x12\x38\n\x08products\x18\x01 \x03(\x0b\x32&.google.cloud.vision.v1p3beta1.Product\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"2\n\x1aImportProductSetsGcsSource\x12\x14\n\x0c\x63sv_file_uri\x18\x01 \x01(\t"y\n\x1cImportProductSetsInputConfig\x12O\n\ngcs_source\x18\x01 \x01(\x0b\x32\x39.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSourceH\x00\x42\x08\n\x06source"\xad\x01\n\x18ImportProductSetsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12V\n\x0cinput_config\x18\x02 \x01(\x0b\x32;.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfigB\x03\xe0\x41\x02"\x8a\x01\n\x19ImportProductSetsResponse\x12G\n\x10reference_images\x18\x01 \x03(\x0b\x32-.google.cloud.vision.v1p3beta1.ReferenceImage\x12$\n\x08statuses\x18\x02 \x03(\x0b\x32\x12.google.rpc.Status"\x9e\x02\n\x16\x42\x61tchOperationMetadata\x12J\n\x05state\x18\x01 \x01(\x0e\x32;.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State\x12/\n\x0bsubmit_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"Y\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0e\n\nPROCESSING\x10\x01\x12\x0e\n\nSUCCESSFUL\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x12\r\n\tCANCELLED\x10\x04\x32\xeb\x1e\n\rProductSearch\x12\xe6\x01\n\x10\x43reateProductSet\x12\x36.google.cloud.vision.v1p3beta1.CreateProductSetRequest\x1a).google.cloud.vision.v1p3beta1.ProductSet"o\x82\xd3\xe4\x93\x02\x45"6/v1p3beta1/{parent=projects/*/locations/*}/productSets:\x0bproduct_set\xda\x41!parent,product_set,product_set_id\x12\xc9\x01\n\x0fListProductSets\x12\x35.google.cloud.vision.v1p3beta1.ListProductSetsRequest\x1a\x36.google.cloud.vision.v1p3beta1.ListProductSetsResponse"G\x82\xd3\xe4\x93\x02\x38\x12\x36/v1p3beta1/{parent=projects/*/locations/*}/productSets\xda\x41\x06parent\x12\xb6\x01\n\rGetProductSet\x12\x33.google.cloud.vision.v1p3beta1.GetProductSetRequest\x1a).google.cloud.vision.v1p3beta1.ProductSet"E\x82\xd3\xe4\x93\x02\x38\x12\x36/v1p3beta1/{name=projects/*/locations/*/productSets/*}\xda\x41\x04name\x12\xe8\x01\n\x10UpdateProductSet\x12\x36.google.cloud.vision.v1p3beta1.UpdateProductSetRequest\x1a).google.cloud.vision.v1p3beta1.ProductSet"q\x82\xd3\xe4\x93\x02Q2B/v1p3beta1/{product_set.name=projects/*/locations/*/productSets/*}:\x0bproduct_set\xda\x41\x17product_set,update_mask\x12\xa9\x01\n\x10\x44\x65leteProductSet\x12\x36.google.cloud.vision.v1p3beta1.DeleteProductSetRequest\x1a\x16.google.protobuf.Empty"E\x82\xd3\xe4\x93\x02\x38*6/v1p3beta1/{name=projects/*/locations/*/productSets/*}\xda\x41\x04name\x12\xce\x01\n\rCreateProduct\x12\x33.google.cloud.vision.v1p3beta1.CreateProductRequest\x1a&.google.cloud.vision.v1p3beta1.Product"`\x82\xd3\xe4\x93\x02>"3/v1p3beta1/{parent=projects/*/locations/*}/products:\x07product\xda\x41\x19parent,product,product_id\x12\xbd\x01\n\x0cListProducts\x12\x32.google.cloud.vision.v1p3beta1.ListProductsRequest\x1a\x33.google.cloud.vision.v1p3beta1.ListProductsResponse"D\x82\xd3\xe4\x93\x02\x35\x12\x33/v1p3beta1/{parent=projects/*/locations/*}/products\xda\x41\x06parent\x12\xaa\x01\n\nGetProduct\x12\x30.google.cloud.vision.v1p3beta1.GetProductRequest\x1a&.google.cloud.vision.v1p3beta1.Product"B\x82\xd3\xe4\x93\x02\x35\x12\x33/v1p3beta1/{name=projects/*/locations/*/products/*}\xda\x41\x04name\x12\xd0\x01\n\rUpdateProduct\x12\x33.google.cloud.vision.v1p3beta1.UpdateProductRequest\x1a&.google.cloud.vision.v1p3beta1.Product"b\x82\xd3\xe4\x93\x02\x46\x32;/v1p3beta1/{product.name=projects/*/locations/*/products/*}:\x07product\xda\x41\x13product,update_mask\x12\xa0\x01\n\rDeleteProduct\x12\x33.google.cloud.vision.v1p3beta1.DeleteProductRequest\x1a\x16.google.protobuf.Empty"B\x82\xd3\xe4\x93\x02\x35*3/v1p3beta1/{name=projects/*/locations/*/products/*}\xda\x41\x04name\x12\x8e\x02\n\x14\x43reateReferenceImage\x12:.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest\x1a-.google.cloud.vision.v1p3beta1.ReferenceImage"\x8a\x01\x82\xd3\xe4\x93\x02X"E/v1p3beta1/{parent=projects/*/locations/*/products/*}/referenceImages:\x0freference_image\xda\x41)parent,reference_image,reference_image_id\x12\xc0\x01\n\x14\x44\x65leteReferenceImage\x12:.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest\x1a\x16.google.protobuf.Empty"T\x82\xd3\xe4\x93\x02G*E/v1p3beta1/{name=projects/*/locations/*/products/*/referenceImages/*}\xda\x41\x04name\x12\xe4\x01\n\x13ListReferenceImages\x12\x39.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest\x1a:.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse"V\x82\xd3\xe4\x93\x02G\x12\x45/v1p3beta1/{parent=projects/*/locations/*/products/*}/referenceImages\xda\x41\x06parent\x12\xd1\x01\n\x11GetReferenceImage\x12\x37.google.cloud.vision.v1p3beta1.GetReferenceImageRequest\x1a-.google.cloud.vision.v1p3beta1.ReferenceImage"T\x82\xd3\xe4\x93\x02G\x12\x45/v1p3beta1/{name=projects/*/locations/*/products/*/referenceImages/*}\xda\x41\x04name\x12\xcb\x01\n\x16\x41\x64\x64ProductToProductSet\x12<.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest\x1a\x16.google.protobuf.Empty"[\x82\xd3\xe4\x93\x02\x46"A/v1p3beta1/{name=projects/*/locations/*/productSets/*}:addProduct:\x01*\xda\x41\x0cname,product\x12\xd8\x01\n\x1bRemoveProductFromProductSet\x12\x41.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest\x1a\x16.google.protobuf.Empty"^\x82\xd3\xe4\x93\x02I"D/v1p3beta1/{name=projects/*/locations/*/productSets/*}:removeProduct:\x01*\xda\x41\x0cname,product\x12\xeb\x01\n\x18ListProductsInProductSet\x12>.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest\x1a?.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse"N\x82\xd3\xe4\x93\x02\x41\x12?/v1p3beta1/{name=projects/*/locations/*/productSets/*}/products\xda\x41\x04name\x12\x82\x02\n\x11ImportProductSets\x12\x37.google.cloud.vision.v1p3beta1.ImportProductSetsRequest\x1a\x1d.google.longrunning.Operation"\x94\x01\x82\xd3\xe4\x93\x02\x42"=/v1p3beta1/{parent=projects/*/locations/*}/productSets:import:\x01*\xda\x41\x13parent,input_config\xca\x41\x33\n\x19ImportProductSetsResponse\x12\x16\x42\x61tchOperationMetadata\x1av\xca\x41\x15vision.googleapis.com\xd2\x41[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-visionB\x88\x01\n!com.google.cloud.vision.v1p3beta1B\x19ProductSearchServiceProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\xf8\x01\x01\x62\x06proto3' - ), + serialized_options=b"\n!com.google.cloud.vision.v1p3beta1B\031ProductSearchServiceProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\370\001\001", + serialized_pb=b'\n@google/cloud/vision_v1p3beta1/proto/product_search_service.proto\x12\x1dgoogle.cloud.vision.v1p3beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x32google/cloud/vision_v1p3beta1/proto/geometry.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto"\xb2\x02\n\x07Product\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x1d\n\x10product_category\x18\x04 \x01(\tB\x03\xe0\x41\x05\x12G\n\x0eproduct_labels\x18\x05 \x03(\x0b\x32/.google.cloud.vision.v1p3beta1.Product.KeyValue\x1a&\n\x08KeyValue\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:^\xea\x41[\n\x1dvision.googleapis.com/Product\x12:projects/{project}/locations/{location}/products/{product}"\xfd\x01\n\nProductSet\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x33\n\nindex_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12,\n\x0bindex_error\x18\x04 \x01(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03:h\xea\x41\x65\n vision.googleapis.com/ProductSet\x12\x41projects/{project}/locations/{location}/productSets/{product_set}"\x85\x02\n\x0eReferenceImage\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x03uri\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12H\n\x0e\x62ounding_polys\x18\x03 \x03(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPolyB\x03\xe0\x41\x01:\x88\x01\xea\x41\x84\x01\n$vision.googleapis.com/ReferenceImage\x12\\projects/{project}/locations/{location}/products/{product}/referenceImages/{reference_image}"\xa3\x01\n\x14\x43reateProductRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12<\n\x07product\x18\x02 \x01(\x0b\x32&.google.cloud.vision.v1p3beta1.ProductB\x03\xe0\x41\x02\x12\x12\n\nproduct_id\x18\x03 \x01(\t"w\n\x13ListProductsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"i\n\x14ListProductsResponse\x12\x38\n\x08products\x18\x01 \x03(\x0b\x32&.google.cloud.vision.v1p3beta1.Product\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"H\n\x11GetProductRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product"\x85\x01\n\x14UpdateProductRequest\x12<\n\x07product\x18\x01 \x01(\x0b\x32&.google.cloud.vision.v1p3beta1.ProductB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"K\n\x14\x44\x65leteProductRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product"\xb1\x01\n\x17\x43reateProductSetRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x43\n\x0bproduct_set\x18\x02 \x01(\x0b\x32).google.cloud.vision.v1p3beta1.ProductSetB\x03\xe0\x41\x02\x12\x16\n\x0eproduct_set_id\x18\x03 \x01(\t"z\n\x16ListProductSetsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"s\n\x17ListProductSetsResponse\x12?\n\x0cproduct_sets\x18\x01 \x03(\x0b\x32).google.cloud.vision.v1p3beta1.ProductSet\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"N\n\x14GetProductSetRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41"\n vision.googleapis.com/ProductSet"\x8f\x01\n\x17UpdateProductSetRequest\x12\x43\n\x0bproduct_set\x18\x01 \x01(\x0b\x32).google.cloud.vision.v1p3beta1.ProductSetB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"Q\n\x17\x44\x65leteProductSetRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41"\n vision.googleapis.com/ProductSet"\xbd\x01\n\x1b\x43reateReferenceImageRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product\x12K\n\x0freference_image\x18\x02 \x01(\x0b\x32-.google.cloud.vision.v1p3beta1.ReferenceImageB\x03\xe0\x41\x02\x12\x1a\n\x12reference_image_id\x18\x03 \x01(\t"z\n\x1aListReferenceImagesRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"\x92\x01\n\x1bListReferenceImagesResponse\x12G\n\x10reference_images\x18\x01 \x03(\x0b\x32-.google.cloud.vision.v1p3beta1.ReferenceImage\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t"V\n\x18GetReferenceImageRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$vision.googleapis.com/ReferenceImage"Y\n\x1b\x44\x65leteReferenceImageRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$vision.googleapis.com/ReferenceImage"\x8f\x01\n\x1d\x41\x64\x64ProductToProductSetRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41"\n vision.googleapis.com/ProductSet\x12\x36\n\x07product\x18\x02 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product"\x94\x01\n"RemoveProductFromProductSetRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41"\n vision.googleapis.com/ProductSet\x12\x36\n\x07product\x18\x02 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product"\x80\x01\n\x1fListProductsInProductSetRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41"\n vision.googleapis.com/ProductSet\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"u\n ListProductsInProductSetResponse\x12\x38\n\x08products\x18\x01 \x03(\x0b\x32&.google.cloud.vision.v1p3beta1.Product\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"2\n\x1aImportProductSetsGcsSource\x12\x14\n\x0c\x63sv_file_uri\x18\x01 \x01(\t"y\n\x1cImportProductSetsInputConfig\x12O\n\ngcs_source\x18\x01 \x01(\x0b\x32\x39.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSourceH\x00\x42\x08\n\x06source"\xad\x01\n\x18ImportProductSetsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12V\n\x0cinput_config\x18\x02 \x01(\x0b\x32;.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfigB\x03\xe0\x41\x02"\x8a\x01\n\x19ImportProductSetsResponse\x12G\n\x10reference_images\x18\x01 \x03(\x0b\x32-.google.cloud.vision.v1p3beta1.ReferenceImage\x12$\n\x08statuses\x18\x02 \x03(\x0b\x32\x12.google.rpc.Status"\x9e\x02\n\x16\x42\x61tchOperationMetadata\x12J\n\x05state\x18\x01 \x01(\x0e\x32;.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State\x12/\n\x0bsubmit_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"Y\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0e\n\nPROCESSING\x10\x01\x12\x0e\n\nSUCCESSFUL\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x12\r\n\tCANCELLED\x10\x04\x32\xeb\x1e\n\rProductSearch\x12\xe6\x01\n\x10\x43reateProductSet\x12\x36.google.cloud.vision.v1p3beta1.CreateProductSetRequest\x1a).google.cloud.vision.v1p3beta1.ProductSet"o\x82\xd3\xe4\x93\x02\x45"6/v1p3beta1/{parent=projects/*/locations/*}/productSets:\x0bproduct_set\xda\x41!parent,product_set,product_set_id\x12\xc9\x01\n\x0fListProductSets\x12\x35.google.cloud.vision.v1p3beta1.ListProductSetsRequest\x1a\x36.google.cloud.vision.v1p3beta1.ListProductSetsResponse"G\x82\xd3\xe4\x93\x02\x38\x12\x36/v1p3beta1/{parent=projects/*/locations/*}/productSets\xda\x41\x06parent\x12\xb6\x01\n\rGetProductSet\x12\x33.google.cloud.vision.v1p3beta1.GetProductSetRequest\x1a).google.cloud.vision.v1p3beta1.ProductSet"E\x82\xd3\xe4\x93\x02\x38\x12\x36/v1p3beta1/{name=projects/*/locations/*/productSets/*}\xda\x41\x04name\x12\xe8\x01\n\x10UpdateProductSet\x12\x36.google.cloud.vision.v1p3beta1.UpdateProductSetRequest\x1a).google.cloud.vision.v1p3beta1.ProductSet"q\x82\xd3\xe4\x93\x02Q2B/v1p3beta1/{product_set.name=projects/*/locations/*/productSets/*}:\x0bproduct_set\xda\x41\x17product_set,update_mask\x12\xa9\x01\n\x10\x44\x65leteProductSet\x12\x36.google.cloud.vision.v1p3beta1.DeleteProductSetRequest\x1a\x16.google.protobuf.Empty"E\x82\xd3\xe4\x93\x02\x38*6/v1p3beta1/{name=projects/*/locations/*/productSets/*}\xda\x41\x04name\x12\xce\x01\n\rCreateProduct\x12\x33.google.cloud.vision.v1p3beta1.CreateProductRequest\x1a&.google.cloud.vision.v1p3beta1.Product"`\x82\xd3\xe4\x93\x02>"3/v1p3beta1/{parent=projects/*/locations/*}/products:\x07product\xda\x41\x19parent,product,product_id\x12\xbd\x01\n\x0cListProducts\x12\x32.google.cloud.vision.v1p3beta1.ListProductsRequest\x1a\x33.google.cloud.vision.v1p3beta1.ListProductsResponse"D\x82\xd3\xe4\x93\x02\x35\x12\x33/v1p3beta1/{parent=projects/*/locations/*}/products\xda\x41\x06parent\x12\xaa\x01\n\nGetProduct\x12\x30.google.cloud.vision.v1p3beta1.GetProductRequest\x1a&.google.cloud.vision.v1p3beta1.Product"B\x82\xd3\xe4\x93\x02\x35\x12\x33/v1p3beta1/{name=projects/*/locations/*/products/*}\xda\x41\x04name\x12\xd0\x01\n\rUpdateProduct\x12\x33.google.cloud.vision.v1p3beta1.UpdateProductRequest\x1a&.google.cloud.vision.v1p3beta1.Product"b\x82\xd3\xe4\x93\x02\x46\x32;/v1p3beta1/{product.name=projects/*/locations/*/products/*}:\x07product\xda\x41\x13product,update_mask\x12\xa0\x01\n\rDeleteProduct\x12\x33.google.cloud.vision.v1p3beta1.DeleteProductRequest\x1a\x16.google.protobuf.Empty"B\x82\xd3\xe4\x93\x02\x35*3/v1p3beta1/{name=projects/*/locations/*/products/*}\xda\x41\x04name\x12\x8e\x02\n\x14\x43reateReferenceImage\x12:.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest\x1a-.google.cloud.vision.v1p3beta1.ReferenceImage"\x8a\x01\x82\xd3\xe4\x93\x02X"E/v1p3beta1/{parent=projects/*/locations/*/products/*}/referenceImages:\x0freference_image\xda\x41)parent,reference_image,reference_image_id\x12\xc0\x01\n\x14\x44\x65leteReferenceImage\x12:.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest\x1a\x16.google.protobuf.Empty"T\x82\xd3\xe4\x93\x02G*E/v1p3beta1/{name=projects/*/locations/*/products/*/referenceImages/*}\xda\x41\x04name\x12\xe4\x01\n\x13ListReferenceImages\x12\x39.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest\x1a:.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse"V\x82\xd3\xe4\x93\x02G\x12\x45/v1p3beta1/{parent=projects/*/locations/*/products/*}/referenceImages\xda\x41\x06parent\x12\xd1\x01\n\x11GetReferenceImage\x12\x37.google.cloud.vision.v1p3beta1.GetReferenceImageRequest\x1a-.google.cloud.vision.v1p3beta1.ReferenceImage"T\x82\xd3\xe4\x93\x02G\x12\x45/v1p3beta1/{name=projects/*/locations/*/products/*/referenceImages/*}\xda\x41\x04name\x12\xcb\x01\n\x16\x41\x64\x64ProductToProductSet\x12<.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest\x1a\x16.google.protobuf.Empty"[\x82\xd3\xe4\x93\x02\x46"A/v1p3beta1/{name=projects/*/locations/*/productSets/*}:addProduct:\x01*\xda\x41\x0cname,product\x12\xd8\x01\n\x1bRemoveProductFromProductSet\x12\x41.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest\x1a\x16.google.protobuf.Empty"^\x82\xd3\xe4\x93\x02I"D/v1p3beta1/{name=projects/*/locations/*/productSets/*}:removeProduct:\x01*\xda\x41\x0cname,product\x12\xeb\x01\n\x18ListProductsInProductSet\x12>.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest\x1a?.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse"N\x82\xd3\xe4\x93\x02\x41\x12?/v1p3beta1/{name=projects/*/locations/*/productSets/*}/products\xda\x41\x04name\x12\x82\x02\n\x11ImportProductSets\x12\x37.google.cloud.vision.v1p3beta1.ImportProductSetsRequest\x1a\x1d.google.longrunning.Operation"\x94\x01\x82\xd3\xe4\x93\x02\x42"=/v1p3beta1/{parent=projects/*/locations/*}/productSets:import:\x01*\xda\x41\x13parent,input_config\xca\x41\x33\n\x19ImportProductSetsResponse\x12\x16\x42\x61tchOperationMetadata\x1av\xca\x41\x15vision.googleapis.com\xd2\x41[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-visionB\x88\x01\n!com.google.cloud.vision.v1p3beta1B\x19ProductSearchServiceProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\xf8\x01\x01\x62\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, google_dot_api_dot_client__pb2.DESCRIPTOR, @@ -106,7 +99,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -124,7 +117,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -162,7 +155,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -180,7 +173,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -198,7 +191,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -216,13 +209,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\005"), + serialized_options=b"\340A\005", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -247,9 +240,7 @@ extensions=[], nested_types=[_PRODUCT_KEYVALUE], enum_types=[], - serialized_options=_b( - "\352A[\n\035vision.googleapis.com/Product\022:projects/{project}/locations/{location}/products/{product}" - ), + serialized_options=b"\352A[\n\035vision.googleapis.com/Product\022:projects/{project}/locations/{location}/products/{product}", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -275,7 +266,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -293,7 +284,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -317,7 +308,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\003"), + serialized_options=b"\340A\003", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -335,16 +326,14 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\003"), + serialized_options=b"\340A\003", file=DESCRIPTOR, ), ], extensions=[], nested_types=[], enum_types=[], - serialized_options=_b( - "\352Ae\n vision.googleapis.com/ProductSet\022Aprojects/{project}/locations/{location}/productSets/{product_set}" - ), + serialized_options=b"\352Ae\n vision.googleapis.com/ProductSet\022Aprojects/{project}/locations/{location}/productSets/{product_set}", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -370,7 +359,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -388,13 +377,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -412,16 +401,14 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, ), ], extensions=[], nested_types=[], enum_types=[], - serialized_options=_b( - "\352A\204\001\n$vision.googleapis.com/ReferenceImage\022\\projects/{project}/locations/{location}/products/{product}/referenceImages/{reference_image}" - ), + serialized_options=b"\352A\204\001\n$vision.googleapis.com/ReferenceImage\022\\projects/{project}/locations/{location}/products/{product}/referenceImages/{reference_image}", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -447,15 +434,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A#\n!locations.googleapis.com/Location" - ), + serialized_options=b"\340A\002\372A#\n!locations.googleapis.com/Location", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -473,7 +458,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -485,7 +470,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -524,15 +509,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A#\n!locations.googleapis.com/Location" - ), + serialized_options=b"\340A\002\372A#\n!locations.googleapis.com/Location", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -562,7 +545,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -619,7 +602,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -658,15 +641,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A\037\n\035vision.googleapis.com/Product" - ), + serialized_options=b"\340A\002\372A\037\n\035vision.googleapis.com/Product", file=DESCRIPTOR, ) ], @@ -705,7 +686,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -756,15 +737,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A\037\n\035vision.googleapis.com/Product" - ), + serialized_options=b"\340A\002\372A\037\n\035vision.googleapis.com/Product", file=DESCRIPTOR, ) ], @@ -797,15 +776,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A#\n!locations.googleapis.com/Location" - ), + serialized_options=b"\340A\002\372A#\n!locations.googleapis.com/Location", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -823,7 +800,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -835,7 +812,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -874,15 +851,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A#\n!locations.googleapis.com/Location" - ), + serialized_options=b"\340A\002\372A#\n!locations.googleapis.com/Location", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -912,7 +887,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -969,7 +944,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1008,13 +983,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b('\340A\002\372A"\n vision.googleapis.com/ProductSet'), + serialized_options=b'\340A\002\372A"\n vision.googleapis.com/ProductSet', file=DESCRIPTOR, ) ], @@ -1053,7 +1028,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -1104,13 +1079,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b('\340A\002\372A"\n vision.googleapis.com/ProductSet'), + serialized_options=b'\340A\002\372A"\n vision.googleapis.com/ProductSet', file=DESCRIPTOR, ) ], @@ -1143,15 +1118,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A\037\n\035vision.googleapis.com/Product" - ), + serialized_options=b"\340A\002\372A\037\n\035vision.googleapis.com/Product", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -1169,7 +1142,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -1181,7 +1154,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1220,15 +1193,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A\037\n\035vision.googleapis.com/Product" - ), + serialized_options=b"\340A\002\372A\037\n\035vision.googleapis.com/Product", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -1258,7 +1229,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1333,7 +1304,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1372,15 +1343,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A&\n$vision.googleapis.com/ReferenceImage" - ), + serialized_options=b"\340A\002\372A&\n$vision.googleapis.com/ReferenceImage", file=DESCRIPTOR, ) ], @@ -1413,15 +1382,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A&\n$vision.googleapis.com/ReferenceImage" - ), + serialized_options=b"\340A\002\372A&\n$vision.googleapis.com/ReferenceImage", file=DESCRIPTOR, ) ], @@ -1454,13 +1421,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b('\340A\002\372A"\n vision.googleapis.com/ProductSet'), + serialized_options=b'\340A\002\372A"\n vision.googleapis.com/ProductSet', file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -1472,15 +1439,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A\037\n\035vision.googleapis.com/Product" - ), + serialized_options=b"\340A\002\372A\037\n\035vision.googleapis.com/Product", file=DESCRIPTOR, ), ], @@ -1513,13 +1478,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b('\340A\002\372A"\n vision.googleapis.com/ProductSet'), + serialized_options=b'\340A\002\372A"\n vision.googleapis.com/ProductSet', file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -1531,15 +1496,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A\037\n\035vision.googleapis.com/Product" - ), + serialized_options=b"\340A\002\372A\037\n\035vision.googleapis.com/Product", file=DESCRIPTOR, ), ], @@ -1572,13 +1535,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b('\340A\002\372A"\n vision.googleapis.com/ProductSet'), + serialized_options=b'\340A\002\372A"\n vision.googleapis.com/ProductSet', file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -1608,7 +1571,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1665,7 +1628,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1704,7 +1667,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1790,15 +1753,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A#\n!locations.googleapis.com/Location" - ), + serialized_options=b"\340A\002\372A#\n!locations.googleapis.com/Location", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -1816,7 +1777,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), ], @@ -2080,14 +2041,16 @@ Product = _reflection.GeneratedProtocolMessageType( "Product", (_message.Message,), - dict( - KeyValue=_reflection.GeneratedProtocolMessageType( + { + "KeyValue": _reflection.GeneratedProtocolMessageType( "KeyValue", (_message.Message,), - dict( - DESCRIPTOR=_PRODUCT_KEYVALUE, - __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", - __doc__="""A product label represented as a key-value pair. + { + "DESCRIPTOR": _PRODUCT_KEYVALUE, + "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + "__doc__": """A product label represented as a key-value pair. + + Attributes: key: The key of the label attached to the product. Cannot be empty @@ -2097,11 +2060,13 @@ empty and cannot exceed 128 bytes. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Product.KeyValue) - ), + }, ), - DESCRIPTOR=_PRODUCT, - __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", - __doc__="""A Product contains ReferenceImages. + "DESCRIPTOR": _PRODUCT, + "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + "__doc__": """A Product contains ReferenceImages. + + Attributes: name: The resource name of the product. Format is: @@ -2115,21 +2080,21 @@ at most 4096 characters long. product_category: Immutable. The category for the product identified by the - reference image. This should be either "homegoods-v2", - "apparel-v2", or "toys-v2". The legacy categories "homegoods", - "apparel", and "toys" are still supported, but these should + reference image. This should be either “homegoods-v2”, + “apparel-v2”, or “toys-v2”. The legacy categories “homegoods”, + “apparel”, and “toys” are still supported, but these should not be used for new products. product_labels: Key-value pairs that can be attached to a product. At query time, constraints can be specified based on the - product\_labels. Note that integer values can be provided as - strings, e.g. "1199". Only strings with integer values can + product_labels. Note that integer values can be provided as + strings, e.g. “1199”. Only strings with integer values can match a range-based restriction which is to be supported soon. Multiple values can be assigned to the same key. One product - may have up to 100 product\_labels. + may have up to 100 product_labels. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Product) - ), + }, ) _sym_db.RegisterMessage(Product) _sym_db.RegisterMessage(Product.KeyValue) @@ -2137,12 +2102,14 @@ ProductSet = _reflection.GeneratedProtocolMessageType( "ProductSet", (_message.Message,), - dict( - DESCRIPTOR=_PRODUCTSET, - __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", - __doc__="""A ProductSet contains Products. A ProductSet can contain a maximum of - 1 million reference images. If the limit is exceeded, periodic - indexing will fail. + { + "DESCRIPTOR": _PRODUCTSET, + "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + "__doc__": """A ProductSet contains Products. A ProductSet can contain a + maximum of 1 million reference images. If the limit is exceeded, + periodic indexing will fail. + + Attributes: name: The resource name of the ProductSet. Format is: ``projects/PR @@ -2162,18 +2129,20 @@ creating a ProductSet. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ProductSet) - ), + }, ) _sym_db.RegisterMessage(ProductSet) ReferenceImage = _reflection.GeneratedProtocolMessageType( "ReferenceImage", (_message.Message,), - dict( - DESCRIPTOR=_REFERENCEIMAGE, - __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", - __doc__="""A ``ReferenceImage`` represents a product image and its associated - metadata, such as bounding boxes. + { + "DESCRIPTOR": _REFERENCEIMAGE, + "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + "__doc__": """A ``ReferenceImage`` represents a product image and its + associated metadata, such as bounding boxes. + + Attributes: name: The resource name of the reference image. Format is: ``proje @@ -2190,20 +2159,22 @@ 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). + aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5 is not). """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ReferenceImage) - ), + }, ) _sym_db.RegisterMessage(ReferenceImage) CreateProductRequest = _reflection.GeneratedProtocolMessageType( "CreateProductRequest", (_message.Message,), - dict( - DESCRIPTOR=_CREATEPRODUCTREQUEST, - __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", - __doc__="""Request message for the ``CreateProduct`` method. + { + "DESCRIPTOR": _CREATEPRODUCTREQUEST, + "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + "__doc__": """Request message for the ``CreateProduct`` method. + + Attributes: parent: Required. The project in which the Product should be created. @@ -2214,21 +2185,23 @@ 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 ``/``. + ALREADY_EXISTS. Must be at most 128 characters long. It cannot + contain the character ``/``. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.CreateProductRequest) - ), + }, ) _sym_db.RegisterMessage(CreateProductRequest) ListProductsRequest = _reflection.GeneratedProtocolMessageType( "ListProductsRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTPRODUCTSREQUEST, - __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", - __doc__="""Request message for the ``ListProducts`` method. + { + "DESCRIPTOR": _LISTPRODUCTSREQUEST, + "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + "__doc__": """Request message for the ``ListProducts`` method. + + Attributes: parent: Required. The project OR ProductSet from which Products should @@ -2237,21 +2210,23 @@ The maximum number of items to return. Default 10, maximum 100. page_token: - The next\_page\_token returned from a previous List request, - if any. + The next_page_token returned from a previous List request, if + any. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ListProductsRequest) - ), + }, ) _sym_db.RegisterMessage(ListProductsRequest) ListProductsResponse = _reflection.GeneratedProtocolMessageType( "ListProductsResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTPRODUCTSRESPONSE, - __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", - __doc__="""Response message for the ``ListProducts`` method. + { + "DESCRIPTOR": _LISTPRODUCTSRESPONSE, + "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + "__doc__": """Response message for the ``ListProducts`` method. + + Attributes: products: List of products. @@ -2260,73 +2235,81 @@ are no more results in the list. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ListProductsResponse) - ), + }, ) _sym_db.RegisterMessage(ListProductsResponse) GetProductRequest = _reflection.GeneratedProtocolMessageType( "GetProductRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETPRODUCTREQUEST, - __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", - __doc__="""Request message for the ``GetProduct`` method. + { + "DESCRIPTOR": _GETPRODUCTREQUEST, + "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + "__doc__": """Request message for the ``GetProduct`` method. + + Attributes: name: Required. Resource name of the Product to get. Format is: ``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`` """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.GetProductRequest) - ), + }, ) _sym_db.RegisterMessage(GetProductRequest) UpdateProductRequest = _reflection.GeneratedProtocolMessageType( "UpdateProductRequest", (_message.Message,), - dict( - DESCRIPTOR=_UPDATEPRODUCTREQUEST, - __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", - __doc__="""Request message for the ``UpdateProduct`` method. + { + "DESCRIPTOR": _UPDATEPRODUCTREQUEST, + "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + "__doc__": """Request message for the ``UpdateProduct`` method. + + Attributes: product: Required. The Product resource which replaces the one on the server. product.name is immutable. update_mask: The [FieldMask][google.protobuf.FieldMask] that specifies - which fields to update. If update\_mask isn't specified, all + 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``. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.UpdateProductRequest) - ), + }, ) _sym_db.RegisterMessage(UpdateProductRequest) DeleteProductRequest = _reflection.GeneratedProtocolMessageType( "DeleteProductRequest", (_message.Message,), - dict( - DESCRIPTOR=_DELETEPRODUCTREQUEST, - __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", - __doc__="""Request message for the ``DeleteProduct`` method. + { + "DESCRIPTOR": _DELETEPRODUCTREQUEST, + "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + "__doc__": """Request message for the ``DeleteProduct`` method. + + Attributes: name: Required. Resource name of product to delete. Format is: ``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`` """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.DeleteProductRequest) - ), + }, ) _sym_db.RegisterMessage(DeleteProductRequest) CreateProductSetRequest = _reflection.GeneratedProtocolMessageType( "CreateProductSetRequest", (_message.Message,), - dict( - DESCRIPTOR=_CREATEPRODUCTSETREQUEST, - __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", - __doc__="""Request message for the ``CreateProductSet`` method. + { + "DESCRIPTOR": _CREATEPRODUCTSETREQUEST, + "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + "__doc__": """Request message for the ``CreateProductSet`` method. + + Attributes: parent: Required. The project in which the ProductSet should be @@ -2337,21 +2320,23 @@ 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 character ``/``. + ALREADY_EXISTS. Must be at most 128 characters long. It cannot + contain the character ``/``. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.CreateProductSetRequest) - ), + }, ) _sym_db.RegisterMessage(CreateProductSetRequest) ListProductSetsRequest = _reflection.GeneratedProtocolMessageType( "ListProductSetsRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTPRODUCTSETSREQUEST, - __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", - __doc__="""Request message for the ``ListProductSets`` method. + { + "DESCRIPTOR": _LISTPRODUCTSETSREQUEST, + "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + "__doc__": """Request message for the ``ListProductSets`` method. + + Attributes: parent: Required. The project from which ProductSets should be listed. @@ -2360,21 +2345,23 @@ The maximum number of items to return. Default 10, maximum 100. page_token: - The next\_page\_token returned from a previous List request, - if any. + The next_page_token returned from a previous List request, if + any. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ListProductSetsRequest) - ), + }, ) _sym_db.RegisterMessage(ListProductSetsRequest) ListProductSetsResponse = _reflection.GeneratedProtocolMessageType( "ListProductSetsResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTPRODUCTSETSRESPONSE, - __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", - __doc__="""Response message for the ``ListProductSets`` method. + { + "DESCRIPTOR": _LISTPRODUCTSETSRESPONSE, + "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + "__doc__": """Response message for the ``ListProductSets`` method. + + Attributes: product_sets: List of ProductSets. @@ -2383,17 +2370,19 @@ are no more results in the list. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ListProductSetsResponse) - ), + }, ) _sym_db.RegisterMessage(ListProductSetsResponse) GetProductSetRequest = _reflection.GeneratedProtocolMessageType( "GetProductSetRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETPRODUCTSETREQUEST, - __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", - __doc__="""Request message for the ``GetProductSet`` method. + { + "DESCRIPTOR": _GETPRODUCTSETREQUEST, + "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + "__doc__": """Request message for the ``GetProductSet`` method. + + Attributes: name: Required. Resource name of the ProductSet to get. Format is: @@ -2401,39 +2390,43 @@ _ID`` """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.GetProductSetRequest) - ), + }, ) _sym_db.RegisterMessage(GetProductSetRequest) UpdateProductSetRequest = _reflection.GeneratedProtocolMessageType( "UpdateProductSetRequest", (_message.Message,), - dict( - DESCRIPTOR=_UPDATEPRODUCTSETREQUEST, - __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", - __doc__="""Request message for the ``UpdateProductSet`` method. + { + "DESCRIPTOR": _UPDATEPRODUCTSETREQUEST, + "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + "__doc__": """Request message for the ``UpdateProductSet`` method. + + Attributes: product_set: Required. The ProductSet resource which replaces the one on the server. update_mask: The [FieldMask][google.protobuf.FieldMask] that specifies - which fields to update. If update\_mask isn't specified, all + which fields to update. If update_mask isn’t specified, all mutable fields are to be updated. Valid mask path is ``display_name``. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.UpdateProductSetRequest) - ), + }, ) _sym_db.RegisterMessage(UpdateProductSetRequest) DeleteProductSetRequest = _reflection.GeneratedProtocolMessageType( "DeleteProductSetRequest", (_message.Message,), - dict( - DESCRIPTOR=_DELETEPRODUCTSETREQUEST, - __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", - __doc__="""Request message for the ``DeleteProductSet`` method. + { + "DESCRIPTOR": _DELETEPRODUCTSETREQUEST, + "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + "__doc__": """Request message for the ``DeleteProductSet`` method. + + Attributes: name: Required. Resource name of the ProductSet to delete. Format @@ -2441,17 +2434,19 @@ _SET_ID`` """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.DeleteProductSetRequest) - ), + }, ) _sym_db.RegisterMessage(DeleteProductSetRequest) CreateReferenceImageRequest = _reflection.GeneratedProtocolMessageType( "CreateReferenceImageRequest", (_message.Message,), - dict( - DESCRIPTOR=_CREATEREFERENCEIMAGEREQUEST, - __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", - __doc__="""Request message for the ``CreateReferenceImage`` method. + { + "DESCRIPTOR": _CREATEREFERENCEIMAGEREQUEST, + "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + "__doc__": """Request message for the ``CreateReferenceImage`` method. + + Attributes: parent: Required. Resource name of the product in which to create the @@ -2464,21 +2459,23 @@ 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 contain the character ``/``. + with code ALREADY_EXISTS. Must be at most 128 characters long. + It cannot contain the character ``/``. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.CreateReferenceImageRequest) - ), + }, ) _sym_db.RegisterMessage(CreateReferenceImageRequest) ListReferenceImagesRequest = _reflection.GeneratedProtocolMessageType( "ListReferenceImagesRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTREFERENCEIMAGESREQUEST, - __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", - __doc__="""Request message for the ``ListReferenceImages`` method. + { + "DESCRIPTOR": _LISTREFERENCEIMAGESREQUEST, + "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + "__doc__": """Request message for the ``ListReferenceImages`` method. + + Attributes: parent: Required. Resource name of the product containing the @@ -2494,17 +2491,19 @@ not specified. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ListReferenceImagesRequest) - ), + }, ) _sym_db.RegisterMessage(ListReferenceImagesRequest) ListReferenceImagesResponse = _reflection.GeneratedProtocolMessageType( "ListReferenceImagesResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTREFERENCEIMAGESRESPONSE, - __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", - __doc__="""Response message for the ``ListReferenceImages`` method. + { + "DESCRIPTOR": _LISTREFERENCEIMAGESRESPONSE, + "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + "__doc__": """Response message for the ``ListReferenceImages`` method. + + Attributes: reference_images: The list of reference images. @@ -2512,21 +2511,23 @@ The maximum number of items to return. Default 10, maximum 100. next_page_token: - The next\_page\_token returned from a previous List request, - if any. + The next_page_token returned from a previous List request, if + any. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ListReferenceImagesResponse) - ), + }, ) _sym_db.RegisterMessage(ListReferenceImagesResponse) GetReferenceImageRequest = _reflection.GeneratedProtocolMessageType( "GetReferenceImageRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETREFERENCEIMAGEREQUEST, - __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", - __doc__="""Request message for the ``GetReferenceImage`` method. + { + "DESCRIPTOR": _GETREFERENCEIMAGEREQUEST, + "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + "__doc__": """Request message for the ``GetReferenceImage`` method. + + Attributes: name: Required. The resource name of the ReferenceImage to get. @@ -2534,17 +2535,19 @@ ODUCT_ID/referenceImages/IMAGE_ID``. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.GetReferenceImageRequest) - ), + }, ) _sym_db.RegisterMessage(GetReferenceImageRequest) DeleteReferenceImageRequest = _reflection.GeneratedProtocolMessageType( "DeleteReferenceImageRequest", (_message.Message,), - dict( - DESCRIPTOR=_DELETEREFERENCEIMAGEREQUEST, - __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", - __doc__="""Request message for the ``DeleteReferenceImage`` method. + { + "DESCRIPTOR": _DELETEREFERENCEIMAGEREQUEST, + "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + "__doc__": """Request message for the ``DeleteReferenceImage`` method. + + Attributes: name: Required. The resource name of the reference image to delete. @@ -2552,17 +2555,19 @@ ODUCT_ID/referenceImages/IMAGE_ID`` """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest) - ), + }, ) _sym_db.RegisterMessage(DeleteReferenceImageRequest) AddProductToProductSetRequest = _reflection.GeneratedProtocolMessageType( "AddProductToProductSetRequest", (_message.Message,), - dict( - DESCRIPTOR=_ADDPRODUCTTOPRODUCTSETREQUEST, - __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", - __doc__="""Request message for the ``AddProductToProductSet`` method. + { + "DESCRIPTOR": _ADDPRODUCTTOPRODUCTSETREQUEST, + "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + "__doc__": """Request message for the ``AddProductToProductSet`` method. + + Attributes: name: Required. The resource name for the ProductSet to modify. @@ -2574,17 +2579,20 @@ ``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`` """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.AddProductToProductSetRequest) - ), + }, ) _sym_db.RegisterMessage(AddProductToProductSetRequest) RemoveProductFromProductSetRequest = _reflection.GeneratedProtocolMessageType( "RemoveProductFromProductSetRequest", (_message.Message,), - dict( - DESCRIPTOR=_REMOVEPRODUCTFROMPRODUCTSETREQUEST, - __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", - __doc__="""Request message for the ``RemoveProductFromProductSet`` method. + { + "DESCRIPTOR": _REMOVEPRODUCTFROMPRODUCTSETREQUEST, + "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + "__doc__": """Request message for the ``RemoveProductFromProductSet`` + method. + + Attributes: name: Required. The resource name for the ProductSet to modify. @@ -2596,17 +2604,20 @@ ``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`` """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest) - ), + }, ) _sym_db.RegisterMessage(RemoveProductFromProductSetRequest) ListProductsInProductSetRequest = _reflection.GeneratedProtocolMessageType( "ListProductsInProductSetRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTPRODUCTSINPRODUCTSETREQUEST, - __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", - __doc__="""Request message for the ``ListProductsInProductSet`` method. + { + "DESCRIPTOR": _LISTPRODUCTSINPRODUCTSETREQUEST, + "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + "__doc__": """Request message for the ``ListProductsInProductSet`` + method. + + Attributes: name: Required. The ProductSet resource for which to retrieve @@ -2616,21 +2627,24 @@ The maximum number of items to return. Default 10, maximum 100. page_token: - The next\_page\_token returned from a previous List request, - if any. + The next_page_token returned from a previous List request, if + any. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest) - ), + }, ) _sym_db.RegisterMessage(ListProductsInProductSetRequest) ListProductsInProductSetResponse = _reflection.GeneratedProtocolMessageType( "ListProductsInProductSetResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTPRODUCTSINPRODUCTSETRESPONSE, - __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", - __doc__="""Response message for the ``ListProductsInProductSet`` method. + { + "DESCRIPTOR": _LISTPRODUCTSINPRODUCTSETRESPONSE, + "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + "__doc__": """Response message for the ``ListProductsInProductSet`` + method. + + Attributes: products: The list of Products. @@ -2639,73 +2653,76 @@ are no more results in the list. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse) - ), + }, ) _sym_db.RegisterMessage(ListProductsInProductSetResponse) ImportProductSetsGcsSource = _reflection.GeneratedProtocolMessageType( "ImportProductSetsGcsSource", (_message.Message,), - dict( - DESCRIPTOR=_IMPORTPRODUCTSETSGCSSOURCE, - __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", - __doc__="""The Google Cloud Storage location for a csv file which preserves a - list of ImportProductSetRequests in each line. + { + "DESCRIPTOR": _IMPORTPRODUCTSETSGCSSOURCE, + "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + "__doc__": """The Google Cloud Storage location for a csv file which + preserves a list of ImportProductSetRequests in each line. + + Attributes: csv_file_uri: The Google Cloud Storage URI of the input csv file. The URI must start with ``gs://``. The format of the input csv file should be one image per line. In each line, there are 6 - columns. 1. image\_uri 2, image\_id 3. product\_set\_id 4. - product\_id 5, product\_category 6, product\_display\_name 7, - labels 8. bounding\_poly Columns 1, 3, 4, and 5 are required, + columns. 1. image_uri 2, image_id 3. product_set_id 4. + product_id 5, product_category 6, product_display_name 7, + labels 8. bounding_poly Columns 1, 3, 4, and 5 are required, other columns are optional. A new ProductSet/Product with the same id will be created on the fly if the ProductSet/Product - specified by product\_set\_id/product\_id does not exist. The - image\_id field is optional but has to be unique if provided. + specified by product_set_id/product_id does not exist. The + image_id field is optional but has to be unique if provided. If it is empty, we will automatically assign an unique id to - the image. The product\_display\_name field is optional. If - it is empty, a space (" ") is used as the place holder for the - product display\_name, which can be updated later through the - realtime API. If the Product with product\_id already exists, - the fields product\_display\_name, product\_category and - labels are ignored. If a Product doesn't exist and needs to - be created on the fly, the product\_display\_name field refers - to [Product.display\_name][google.cloud.vision.v1p3beta1.Produ - ct.display\_name], the product\_category field refers to [Prod - uct.product\_category][google.cloud.vision.v1p3beta1.Product.p - roduct\_category], and the labels field refers to - [Product.labels][]. Labels (optional) should be a line - containing a list of comma-separated key-value pairs, with the - format "key\_1=value\_1,key\_2=value\_2,...,key\_n=value\_n". - The bounding\_poly (optional) field is used to identify one - region of interest from the image in the same manner as - CreateReferenceImage. If no bounding\_poly is specified, the + the image. The product_display_name field is optional. If it + is empty, a space (" ") is used as the place holder for the + product display_name, which can be updated later through the + realtime API. If the Product with product_id already exists, + the fields product_display_name, product_category and labels + are ignored. If a Product doesn’t exist and needs to be + created on the fly, the product_display_name field refers to [ + Product.display_name][google.cloud.vision.v1p3beta1.Product.di + splay_name], the product_category field refers to [Product.pro + duct_category][google.cloud.vision.v1p3beta1.Product.product_c + ategory], and the labels field refers to [Product.labels][]. + Labels (optional) should be a line containing a list of comma- + separated key-value pairs, with the format + “key_1=value_1,key_2=value_2,…,key_n=value_n”. The + bounding_poly (optional) field is used to identify one region + of interest from the image in the same manner as + CreateReferenceImage. If no bounding_poly is specified, the system will try to detect regions of interest automatically. Note that the pipeline will resize the image if the image resolution is too large to process (above 20MP). Also note - that at most one bounding\_poly is allowed per line. If the + that at most one bounding_poly is allowed per line. If the image contains multiple regions of interest, the csv should - contain one line per region of interest. The bounding\_poly + contain one line per region of interest. The bounding_poly column should contain an even number of comma-separated - numbers, with the format - "p1\_x,p1\_y,p2\_x,p2\_y,...,pn\_x,pn\_y". Nonnegative - integers should be used for absolute bounding polygons, and - float values in [0, 1] should be used for normalized bounding - polygons. + numbers, with the format “p1_x,p1_y,p2_x,p2_y,…,pn_x,pn_y”. + Nonnegative integers should be used for absolute bounding + polygons, and float values in [0, 1] should be used for + normalized bounding polygons. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource) - ), + }, ) _sym_db.RegisterMessage(ImportProductSetsGcsSource) ImportProductSetsInputConfig = _reflection.GeneratedProtocolMessageType( "ImportProductSetsInputConfig", (_message.Message,), - dict( - DESCRIPTOR=_IMPORTPRODUCTSETSINPUTCONFIG, - __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", - __doc__="""The input content for the ``ImportProductSets`` method. + { + "DESCRIPTOR": _IMPORTPRODUCTSETSINPUTCONFIG, + "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + "__doc__": """The input content for the ``ImportProductSets`` method. + + Attributes: source: The source of the input. @@ -2714,17 +2731,19 @@ preserves a list of ImportProductSetRequests in each line. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig) - ), + }, ) _sym_db.RegisterMessage(ImportProductSetsInputConfig) ImportProductSetsRequest = _reflection.GeneratedProtocolMessageType( "ImportProductSetsRequest", (_message.Message,), - dict( - DESCRIPTOR=_IMPORTPRODUCTSETSREQUEST, - __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", - __doc__="""Request message for the ``ImportProductSets`` method. + { + "DESCRIPTOR": _IMPORTPRODUCTSETSREQUEST, + "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + "__doc__": """Request message for the ``ImportProductSets`` method. + + Attributes: parent: Required. The project in which the ProductSets should be @@ -2733,24 +2752,28 @@ Required. The input content for the list of requests. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ImportProductSetsRequest) - ), + }, ) _sym_db.RegisterMessage(ImportProductSetsRequest) ImportProductSetsResponse = _reflection.GeneratedProtocolMessageType( "ImportProductSetsResponse", (_message.Message,), - dict( - DESCRIPTOR=_IMPORTPRODUCTSETSRESPONSE, - __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", - __doc__="""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.l - ongrunning.Operation.response][google.longrunning.Operation.response] + { + "DESCRIPTOR": _IMPORTPRODUCTSETSRESPONSE, + "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + "__doc__": """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. + + Attributes: reference_images: - The list of reference\_images that are imported successfully. + The list of reference_images that are imported successfully. statuses: The rpc status for each ImportProductSet request, including both successes and errors. The number of statuses here @@ -2759,20 +2782,24 @@ line of the csv, starting from line 0. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.ImportProductSetsResponse) - ), + }, ) _sym_db.RegisterMessage(ImportProductSetsResponse) BatchOperationMetadata = _reflection.GeneratedProtocolMessageType( "BatchOperationMetadata", (_message.Message,), - dict( - DESCRIPTOR=_BATCHOPERATIONMETADATA, - __module__="google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", - __doc__="""Metadata for the batch operations such as the current state. This is - included in the ``metadata`` field of the ``Operation`` returned by - the ``GetOperation`` call of the ``google::longrunning::Operations`` + { + "DESCRIPTOR": _BATCHOPERATIONMETADATA, + "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", + "__doc__": """Metadata for the batch operations such as the current + state. + + This is included in the ``metadata`` field of the ``Operation`` returned + by the ``GetOperation`` call of the ``google::longrunning::Operations`` service. + + Attributes: state: The current state of the batch operation. @@ -2784,7 +2811,7 @@ set to true. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.BatchOperationMetadata) - ), + }, ) _sym_db.RegisterMessage(BatchOperationMetadata) @@ -2828,9 +2855,7 @@ full_name="google.cloud.vision.v1p3beta1.ProductSearch", file=DESCRIPTOR, index=0, - serialized_options=_b( - "\312A\025vision.googleapis.com\322A[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-vision" - ), + serialized_options=b"\312A\025vision.googleapis.com\322A[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-vision", serialized_start=4637, serialized_end=8584, methods=[ @@ -2841,9 +2866,7 @@ containing_service=None, input_type=_CREATEPRODUCTSETREQUEST, output_type=_PRODUCTSET, - serialized_options=_b( - '\202\323\344\223\002E"6/v1p3beta1/{parent=projects/*/locations/*}/productSets:\013product_set\332A!parent,product_set,product_set_id' - ), + serialized_options=b'\202\323\344\223\002E"6/v1p3beta1/{parent=projects/*/locations/*}/productSets:\013product_set\332A!parent,product_set,product_set_id', ), _descriptor.MethodDescriptor( name="ListProductSets", @@ -2852,9 +2875,7 @@ containing_service=None, input_type=_LISTPRODUCTSETSREQUEST, output_type=_LISTPRODUCTSETSRESPONSE, - serialized_options=_b( - "\202\323\344\223\0028\0226/v1p3beta1/{parent=projects/*/locations/*}/productSets\332A\006parent" - ), + serialized_options=b"\202\323\344\223\0028\0226/v1p3beta1/{parent=projects/*/locations/*}/productSets\332A\006parent", ), _descriptor.MethodDescriptor( name="GetProductSet", @@ -2863,9 +2884,7 @@ containing_service=None, input_type=_GETPRODUCTSETREQUEST, output_type=_PRODUCTSET, - serialized_options=_b( - "\202\323\344\223\0028\0226/v1p3beta1/{name=projects/*/locations/*/productSets/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\0028\0226/v1p3beta1/{name=projects/*/locations/*/productSets/*}\332A\004name", ), _descriptor.MethodDescriptor( name="UpdateProductSet", @@ -2874,9 +2893,7 @@ containing_service=None, input_type=_UPDATEPRODUCTSETREQUEST, output_type=_PRODUCTSET, - serialized_options=_b( - "\202\323\344\223\002Q2B/v1p3beta1/{product_set.name=projects/*/locations/*/productSets/*}:\013product_set\332A\027product_set,update_mask" - ), + serialized_options=b"\202\323\344\223\002Q2B/v1p3beta1/{product_set.name=projects/*/locations/*/productSets/*}:\013product_set\332A\027product_set,update_mask", ), _descriptor.MethodDescriptor( name="DeleteProductSet", @@ -2885,9 +2902,7 @@ containing_service=None, input_type=_DELETEPRODUCTSETREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - "\202\323\344\223\0028*6/v1p3beta1/{name=projects/*/locations/*/productSets/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\0028*6/v1p3beta1/{name=projects/*/locations/*/productSets/*}\332A\004name", ), _descriptor.MethodDescriptor( name="CreateProduct", @@ -2896,9 +2911,7 @@ containing_service=None, input_type=_CREATEPRODUCTREQUEST, output_type=_PRODUCT, - serialized_options=_b( - '\202\323\344\223\002>"3/v1p3beta1/{parent=projects/*/locations/*}/products:\007product\332A\031parent,product,product_id' - ), + serialized_options=b'\202\323\344\223\002>"3/v1p3beta1/{parent=projects/*/locations/*}/products:\007product\332A\031parent,product,product_id', ), _descriptor.MethodDescriptor( name="ListProducts", @@ -2907,9 +2920,7 @@ containing_service=None, input_type=_LISTPRODUCTSREQUEST, output_type=_LISTPRODUCTSRESPONSE, - serialized_options=_b( - "\202\323\344\223\0025\0223/v1p3beta1/{parent=projects/*/locations/*}/products\332A\006parent" - ), + serialized_options=b"\202\323\344\223\0025\0223/v1p3beta1/{parent=projects/*/locations/*}/products\332A\006parent", ), _descriptor.MethodDescriptor( name="GetProduct", @@ -2918,9 +2929,7 @@ containing_service=None, input_type=_GETPRODUCTREQUEST, output_type=_PRODUCT, - serialized_options=_b( - "\202\323\344\223\0025\0223/v1p3beta1/{name=projects/*/locations/*/products/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\0025\0223/v1p3beta1/{name=projects/*/locations/*/products/*}\332A\004name", ), _descriptor.MethodDescriptor( name="UpdateProduct", @@ -2929,9 +2938,7 @@ containing_service=None, input_type=_UPDATEPRODUCTREQUEST, output_type=_PRODUCT, - serialized_options=_b( - "\202\323\344\223\002F2;/v1p3beta1/{product.name=projects/*/locations/*/products/*}:\007product\332A\023product,update_mask" - ), + serialized_options=b"\202\323\344\223\002F2;/v1p3beta1/{product.name=projects/*/locations/*/products/*}:\007product\332A\023product,update_mask", ), _descriptor.MethodDescriptor( name="DeleteProduct", @@ -2940,9 +2947,7 @@ containing_service=None, input_type=_DELETEPRODUCTREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - "\202\323\344\223\0025*3/v1p3beta1/{name=projects/*/locations/*/products/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\0025*3/v1p3beta1/{name=projects/*/locations/*/products/*}\332A\004name", ), _descriptor.MethodDescriptor( name="CreateReferenceImage", @@ -2951,9 +2956,7 @@ containing_service=None, input_type=_CREATEREFERENCEIMAGEREQUEST, output_type=_REFERENCEIMAGE, - serialized_options=_b( - '\202\323\344\223\002X"E/v1p3beta1/{parent=projects/*/locations/*/products/*}/referenceImages:\017reference_image\332A)parent,reference_image,reference_image_id' - ), + serialized_options=b'\202\323\344\223\002X"E/v1p3beta1/{parent=projects/*/locations/*/products/*}/referenceImages:\017reference_image\332A)parent,reference_image,reference_image_id', ), _descriptor.MethodDescriptor( name="DeleteReferenceImage", @@ -2962,9 +2965,7 @@ containing_service=None, input_type=_DELETEREFERENCEIMAGEREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - "\202\323\344\223\002G*E/v1p3beta1/{name=projects/*/locations/*/products/*/referenceImages/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\002G*E/v1p3beta1/{name=projects/*/locations/*/products/*/referenceImages/*}\332A\004name", ), _descriptor.MethodDescriptor( name="ListReferenceImages", @@ -2973,9 +2974,7 @@ containing_service=None, input_type=_LISTREFERENCEIMAGESREQUEST, output_type=_LISTREFERENCEIMAGESRESPONSE, - serialized_options=_b( - "\202\323\344\223\002G\022E/v1p3beta1/{parent=projects/*/locations/*/products/*}/referenceImages\332A\006parent" - ), + serialized_options=b"\202\323\344\223\002G\022E/v1p3beta1/{parent=projects/*/locations/*/products/*}/referenceImages\332A\006parent", ), _descriptor.MethodDescriptor( name="GetReferenceImage", @@ -2984,9 +2983,7 @@ containing_service=None, input_type=_GETREFERENCEIMAGEREQUEST, output_type=_REFERENCEIMAGE, - serialized_options=_b( - "\202\323\344\223\002G\022E/v1p3beta1/{name=projects/*/locations/*/products/*/referenceImages/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\002G\022E/v1p3beta1/{name=projects/*/locations/*/products/*/referenceImages/*}\332A\004name", ), _descriptor.MethodDescriptor( name="AddProductToProductSet", @@ -2995,9 +2992,7 @@ containing_service=None, input_type=_ADDPRODUCTTOPRODUCTSETREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - '\202\323\344\223\002F"A/v1p3beta1/{name=projects/*/locations/*/productSets/*}:addProduct:\001*\332A\014name,product' - ), + serialized_options=b'\202\323\344\223\002F"A/v1p3beta1/{name=projects/*/locations/*/productSets/*}:addProduct:\001*\332A\014name,product', ), _descriptor.MethodDescriptor( name="RemoveProductFromProductSet", @@ -3006,9 +3001,7 @@ containing_service=None, input_type=_REMOVEPRODUCTFROMPRODUCTSETREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - '\202\323\344\223\002I"D/v1p3beta1/{name=projects/*/locations/*/productSets/*}:removeProduct:\001*\332A\014name,product' - ), + serialized_options=b'\202\323\344\223\002I"D/v1p3beta1/{name=projects/*/locations/*/productSets/*}:removeProduct:\001*\332A\014name,product', ), _descriptor.MethodDescriptor( name="ListProductsInProductSet", @@ -3017,9 +3010,7 @@ containing_service=None, input_type=_LISTPRODUCTSINPRODUCTSETREQUEST, output_type=_LISTPRODUCTSINPRODUCTSETRESPONSE, - serialized_options=_b( - "\202\323\344\223\002A\022?/v1p3beta1/{name=projects/*/locations/*/productSets/*}/products\332A\004name" - ), + serialized_options=b"\202\323\344\223\002A\022?/v1p3beta1/{name=projects/*/locations/*/productSets/*}/products\332A\004name", ), _descriptor.MethodDescriptor( name="ImportProductSets", @@ -3028,9 +3019,7 @@ containing_service=None, input_type=_IMPORTPRODUCTSETSREQUEST, output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - serialized_options=_b( - '\202\323\344\223\002B"=/v1p3beta1/{parent=projects/*/locations/*}/productSets:import:\001*\332A\023parent,input_config\312A3\n\031ImportProductSetsResponse\022\026BatchOperationMetadata' - ), + serialized_options=b'\202\323\344\223\002B"=/v1p3beta1/{parent=projects/*/locations/*}/productSets:import:\001*\332A\023parent,input_config\312A3\n\031ImportProductSetsResponse\022\026BatchOperationMetadata', ), ], ) diff --git a/google/cloud/vision_v1p3beta1/proto/text_annotation_pb2.py b/google/cloud/vision_v1p3beta1/proto/text_annotation_pb2.py index 5eb13ce9..497cd653 100644 --- a/google/cloud/vision_v1p3beta1/proto/text_annotation_pb2.py +++ b/google/cloud/vision_v1p3beta1/proto/text_annotation_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1p3beta1/proto/text_annotation.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -25,12 +22,8 @@ name="google/cloud/vision_v1p3beta1/proto/text_annotation.proto", package="google.cloud.vision.v1p3beta1", syntax="proto3", - serialized_options=_b( - "\n!com.google.cloud.vision.v1p3beta1B\023TextAnnotationProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\370\001\001" - ), - serialized_pb=_b( - '\n9google/cloud/vision_v1p3beta1/proto/text_annotation.proto\x12\x1dgoogle.cloud.vision.v1p3beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x32google/cloud/vision_v1p3beta1/proto/geometry.proto"\xb2\x04\n\x0eTextAnnotation\x12\x32\n\x05pages\x18\x01 \x03(\x0b\x32#.google.cloud.vision.v1p3beta1.Page\x12\x0c\n\x04text\x18\x02 \x01(\t\x1a=\n\x10\x44\x65tectedLanguage\x12\x15\n\rlanguage_code\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x1a\xdc\x01\n\rDetectedBreak\x12S\n\x04type\x18\x01 \x01(\x0e\x32\x45.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType\x12\x11\n\tis_prefix\x18\x02 \x01(\x08"c\n\tBreakType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05SPACE\x10\x01\x12\x0e\n\nSURE_SPACE\x10\x02\x12\x12\n\x0e\x45OL_SURE_SPACE\x10\x03\x12\n\n\x06HYPHEN\x10\x04\x12\x0e\n\nLINE_BREAK\x10\x05\x1a\xbf\x01\n\x0cTextProperty\x12Z\n\x12\x64\x65tected_languages\x18\x01 \x03(\x0b\x32>.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage\x12S\n\x0e\x64\x65tected_break\x18\x02 \x01(\x0b\x32;.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak"\xbd\x01\n\x04Page\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty\x12\r\n\x05width\x18\x02 \x01(\x05\x12\x0e\n\x06height\x18\x03 \x01(\x05\x12\x34\n\x06\x62locks\x18\x04 \x03(\x0b\x32$.google.cloud.vision.v1p3beta1.Block\x12\x12\n\nconfidence\x18\x05 \x01(\x02"\x82\x03\n\x05\x42lock\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\x12<\n\nparagraphs\x18\x03 \x03(\x0b\x32(.google.cloud.vision.v1p3beta1.Paragraph\x12\x42\n\nblock_type\x18\x04 \x01(\x0e\x32..google.cloud.vision.v1p3beta1.Block.BlockType\x12\x12\n\nconfidence\x18\x05 \x01(\x02"R\n\tBlockType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04TEXT\x10\x01\x12\t\n\x05TABLE\x10\x02\x12\x0b\n\x07PICTURE\x10\x03\x12\t\n\x05RULER\x10\x04\x12\x0b\n\x07\x42\x41RCODE\x10\x05"\xe4\x01\n\tParagraph\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\x12\x32\n\x05words\x18\x03 \x03(\x0b\x32#.google.cloud.vision.v1p3beta1.Word\x12\x12\n\nconfidence\x18\x04 \x01(\x02"\xe3\x01\n\x04Word\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\x12\x36\n\x07symbols\x18\x03 \x03(\x0b\x32%.google.cloud.vision.v1p3beta1.Symbol\x12\x12\n\nconfidence\x18\x04 \x01(\x02"\xbb\x01\n\x06Symbol\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\x12\x0c\n\x04text\x18\x03 \x01(\t\x12\x12\n\nconfidence\x18\x04 \x01(\x02\x42\x82\x01\n!com.google.cloud.vision.v1p3beta1B\x13TextAnnotationProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\xf8\x01\x01\x62\x06proto3' - ), + serialized_options=b"\n!com.google.cloud.vision.v1p3beta1B\023TextAnnotationProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\370\001\001", + serialized_pb=b'\n9google/cloud/vision_v1p3beta1/proto/text_annotation.proto\x12\x1dgoogle.cloud.vision.v1p3beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x32google/cloud/vision_v1p3beta1/proto/geometry.proto"\xb2\x04\n\x0eTextAnnotation\x12\x32\n\x05pages\x18\x01 \x03(\x0b\x32#.google.cloud.vision.v1p3beta1.Page\x12\x0c\n\x04text\x18\x02 \x01(\t\x1a=\n\x10\x44\x65tectedLanguage\x12\x15\n\rlanguage_code\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x1a\xdc\x01\n\rDetectedBreak\x12S\n\x04type\x18\x01 \x01(\x0e\x32\x45.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType\x12\x11\n\tis_prefix\x18\x02 \x01(\x08"c\n\tBreakType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05SPACE\x10\x01\x12\x0e\n\nSURE_SPACE\x10\x02\x12\x12\n\x0e\x45OL_SURE_SPACE\x10\x03\x12\n\n\x06HYPHEN\x10\x04\x12\x0e\n\nLINE_BREAK\x10\x05\x1a\xbf\x01\n\x0cTextProperty\x12Z\n\x12\x64\x65tected_languages\x18\x01 \x03(\x0b\x32>.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage\x12S\n\x0e\x64\x65tected_break\x18\x02 \x01(\x0b\x32;.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak"\xbd\x01\n\x04Page\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty\x12\r\n\x05width\x18\x02 \x01(\x05\x12\x0e\n\x06height\x18\x03 \x01(\x05\x12\x34\n\x06\x62locks\x18\x04 \x03(\x0b\x32$.google.cloud.vision.v1p3beta1.Block\x12\x12\n\nconfidence\x18\x05 \x01(\x02"\x82\x03\n\x05\x42lock\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\x12<\n\nparagraphs\x18\x03 \x03(\x0b\x32(.google.cloud.vision.v1p3beta1.Paragraph\x12\x42\n\nblock_type\x18\x04 \x01(\x0e\x32..google.cloud.vision.v1p3beta1.Block.BlockType\x12\x12\n\nconfidence\x18\x05 \x01(\x02"R\n\tBlockType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04TEXT\x10\x01\x12\t\n\x05TABLE\x10\x02\x12\x0b\n\x07PICTURE\x10\x03\x12\t\n\x05RULER\x10\x04\x12\x0b\n\x07\x42\x41RCODE\x10\x05"\xe4\x01\n\tParagraph\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\x12\x32\n\x05words\x18\x03 \x03(\x0b\x32#.google.cloud.vision.v1p3beta1.Word\x12\x12\n\nconfidence\x18\x04 \x01(\x02"\xe3\x01\n\x04Word\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\x12\x36\n\x07symbols\x18\x03 \x03(\x0b\x32%.google.cloud.vision.v1p3beta1.Symbol\x12\x12\n\nconfidence\x18\x04 \x01(\x02"\xbb\x01\n\x06Symbol\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\x12\x0c\n\x04text\x18\x03 \x01(\t\x12\x12\n\nconfidence\x18\x04 \x01(\x02\x42\x82\x01\n!com.google.cloud.vision.v1p3beta1B\x13TextAnnotationProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\xf8\x01\x01\x62\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_geometry__pb2.DESCRIPTOR, @@ -119,7 +112,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -305,7 +298,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -792,7 +785,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -888,32 +881,36 @@ TextAnnotation = _reflection.GeneratedProtocolMessageType( "TextAnnotation", (_message.Message,), - dict( - DetectedLanguage=_reflection.GeneratedProtocolMessageType( + { + "DetectedLanguage": _reflection.GeneratedProtocolMessageType( "DetectedLanguage", (_message.Message,), - dict( - DESCRIPTOR=_TEXTANNOTATION_DETECTEDLANGUAGE, - __module__="google.cloud.vision_v1p3beta1.proto.text_annotation_pb2", - __doc__="""Detected language for a structural component. + { + "DESCRIPTOR": _TEXTANNOTATION_DETECTEDLANGUAGE, + "__module__": "google.cloud.vision_v1p3beta1.proto.text_annotation_pb2", + "__doc__": """Detected language for a structural component. + + Attributes: language_code: - The BCP-47 language code, such as "en-US" or "sr-Latn". For + The BCP-47 language code, such as “en-US” or “sr-Latn”. For more information, see http://www.unicode.org/reports/tr35/#Uni - code\_locale\_identifier. + code_locale_identifier. confidence: Confidence of detected language. Range [0, 1]. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage) - ), + }, ), - DetectedBreak=_reflection.GeneratedProtocolMessageType( + "DetectedBreak": _reflection.GeneratedProtocolMessageType( "DetectedBreak", (_message.Message,), - dict( - DESCRIPTOR=_TEXTANNOTATION_DETECTEDBREAK, - __module__="google.cloud.vision_v1p3beta1.proto.text_annotation_pb2", - __doc__="""Detected start or end of a structural component. + { + "DESCRIPTOR": _TEXTANNOTATION_DETECTEDBREAK, + "__module__": "google.cloud.vision_v1p3beta1.proto.text_annotation_pb2", + "__doc__": """Detected start or end of a structural component. + + Attributes: type: Detected break type. @@ -921,15 +918,18 @@ True if break prepends the element. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak) - ), + }, ), - TextProperty=_reflection.GeneratedProtocolMessageType( + "TextProperty": _reflection.GeneratedProtocolMessageType( "TextProperty", (_message.Message,), - dict( - DESCRIPTOR=_TEXTANNOTATION_TEXTPROPERTY, - __module__="google.cloud.vision_v1p3beta1.proto.text_annotation_pb2", - __doc__="""Additional information detected on the structural component. + { + "DESCRIPTOR": _TEXTANNOTATION_TEXTPROPERTY, + "__module__": "google.cloud.vision_v1p3beta1.proto.text_annotation_pb2", + "__doc__": """Additional information detected on the structural + component. + + Attributes: detected_languages: A list of detected languages together with confidence. @@ -937,18 +937,20 @@ Detected start or end of a text segment. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty) - ), + }, ), - DESCRIPTOR=_TEXTANNOTATION, - __module__="google.cloud.vision_v1p3beta1.proto.text_annotation_pb2", - __doc__="""TextAnnotation contains a structured representation of OCR extracted - text. The hierarchy of an OCR extracted text structure is like this: - 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. - v1p3beta1.TextAnnotation.TextProperty] message definition below for - more detail. + "DESCRIPTOR": _TEXTANNOTATION, + "__module__": "google.cloud.vision_v1p3beta1.proto.text_annotation_pb2", + "__doc__": """TextAnnotation contains a structured representation of OCR + extracted text. The hierarchy of an OCR extracted text structure is like + this: 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.v1p3beta1.TextAnnotation.TextProperty] + message definition below for more detail. + + Attributes: pages: List of pages detected by OCR. @@ -956,7 +958,7 @@ UTF-8 text detected on the pages. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.TextAnnotation) - ), + }, ) _sym_db.RegisterMessage(TextAnnotation) _sym_db.RegisterMessage(TextAnnotation.DetectedLanguage) @@ -966,10 +968,12 @@ Page = _reflection.GeneratedProtocolMessageType( "Page", (_message.Message,), - dict( - DESCRIPTOR=_PAGE, - __module__="google.cloud.vision_v1p3beta1.proto.text_annotation_pb2", - __doc__="""Detected page from OCR. + { + "DESCRIPTOR": _PAGE, + "__module__": "google.cloud.vision_v1p3beta1.proto.text_annotation_pb2", + "__doc__": """Detected page from OCR. + + Attributes: property: Additional information detected on the page. @@ -985,17 +989,19 @@ Confidence of the OCR results on the page. Range [0, 1]. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Page) - ), + }, ) _sym_db.RegisterMessage(Page) Block = _reflection.GeneratedProtocolMessageType( "Block", (_message.Message,), - dict( - DESCRIPTOR=_BLOCK, - __module__="google.cloud.vision_v1p3beta1.proto.text_annotation_pb2", - __doc__="""Logical element on the page. + { + "DESCRIPTOR": _BLOCK, + "__module__": "google.cloud.vision_v1p3beta1.proto.text_annotation_pb2", + "__doc__": """Logical element on the page. + + Attributes: property: Additional information detected for the block. @@ -1004,12 +1010,12 @@ of top-left, top-right, bottom-right, bottom-left. When a rotation of the bounding box is detected the rotation is represented as around the top-left corner as defined when the - text is read in the 'natural' orientation. For example: - + text is read in the ‘natural’ orientation. For example: - when the text is horizontal it might look like: :: - 0----1 | | 3----2 - when it's rotated 180 + 0----1 | | 3----2 - when it’s rotated 180 degrees around the top-left corner it becomes: :: - 2----3 | | 1----0 and the vertice order will - still be (0, 1, 2, 3). + 2----3 | | 1----0 and the vertice order + will still be (0, 1, 2, 3). paragraphs: List of paragraphs in this block (if this blocks is of type text). @@ -1019,18 +1025,20 @@ Confidence of the OCR results on the block. Range [0, 1]. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Block) - ), + }, ) _sym_db.RegisterMessage(Block) Paragraph = _reflection.GeneratedProtocolMessageType( "Paragraph", (_message.Message,), - dict( - DESCRIPTOR=_PARAGRAPH, - __module__="google.cloud.vision_v1p3beta1.proto.text_annotation_pb2", - __doc__="""Structural unit of text representing a number of words in certain - order. + { + "DESCRIPTOR": _PARAGRAPH, + "__module__": "google.cloud.vision_v1p3beta1.proto.text_annotation_pb2", + "__doc__": """Structural unit of text representing a number of words in + certain order. + + Attributes: property: Additional information detected for the paragraph. @@ -1039,28 +1047,30 @@ order of top-left, top-right, bottom-right, bottom-left. When a rotation of the bounding box is detected the rotation is represented as around the top-left corner as defined when the - text is read in the 'natural' orientation. For example: \* - when the text is horizontal it might look like: 0----1 \| \| 3 - ----2 \* when it's rotated 180 degrees around the top-left - corner it becomes: 2----3 \| \| 1----0 and the vertice order - will still be (0, 1, 2, 3). + text is read in the ‘natural’ orientation. For example: \* + when the text is horizontal it might look like: 0—-1 \| \| + 3—-2 \* when it’s rotated 180 degrees around the top-left + corner it becomes: 2—-3 \| \| 1—-0 and the vertice order will + still be (0, 1, 2, 3). words: List of words in this paragraph. confidence: Confidence of the OCR results for the paragraph. Range [0, 1]. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Paragraph) - ), + }, ) _sym_db.RegisterMessage(Paragraph) Word = _reflection.GeneratedProtocolMessageType( "Word", (_message.Message,), - dict( - DESCRIPTOR=_WORD, - __module__="google.cloud.vision_v1p3beta1.proto.text_annotation_pb2", - __doc__="""A word representation. + { + "DESCRIPTOR": _WORD, + "__module__": "google.cloud.vision_v1p3beta1.proto.text_annotation_pb2", + "__doc__": """A word representation. + + Attributes: property: Additional information detected for the word. @@ -1069,11 +1079,11 @@ of top-left, top-right, bottom-right, bottom-left. When a rotation of the bounding box is detected the rotation is represented as around the top-left corner as defined when the - text is read in the 'natural' orientation. For example: \* - when the text is horizontal it might look like: 0----1 \| \| 3 - ----2 \* when it's rotated 180 degrees around the top-left - corner it becomes: 2----3 \| \| 1----0 and the vertice order - will still be (0, 1, 2, 3). + text is read in the ‘natural’ orientation. For example: \* + when the text is horizontal it might look like: 0—-1 \| \| + 3—-2 \* when it’s rotated 180 degrees around the top-left + corner it becomes: 2—-3 \| \| 1—-0 and the vertice order will + still be (0, 1, 2, 3). symbols: List of symbols in the word. The order of the symbols follows the natural reading order. @@ -1081,17 +1091,19 @@ Confidence of the OCR results for the word. Range [0, 1]. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Word) - ), + }, ) _sym_db.RegisterMessage(Word) Symbol = _reflection.GeneratedProtocolMessageType( "Symbol", (_message.Message,), - dict( - DESCRIPTOR=_SYMBOL, - __module__="google.cloud.vision_v1p3beta1.proto.text_annotation_pb2", - __doc__="""A single symbol representation. + { + "DESCRIPTOR": _SYMBOL, + "__module__": "google.cloud.vision_v1p3beta1.proto.text_annotation_pb2", + "__doc__": """A single symbol representation. + + Attributes: property: Additional information detected for the symbol. @@ -1100,18 +1112,18 @@ of top-left, top-right, bottom-right, bottom-left. When a rotation of the bounding box is detected the rotation is represented as around the top-left corner as defined when the - text is read in the 'natural' orientation. For example: \* - when the text is horizontal it might look like: 0----1 \| \| 3 - ----2 \* when it's rotated 180 degrees around the top-left - corner it becomes: 2----3 \| \| 1----0 and the vertice order - will still be (0, 1, 2, 3). + text is read in the ‘natural’ orientation. For example: \* + when the text is horizontal it might look like: 0—-1 \| \| + 3—-2 \* when it’s rotated 180 degrees around the top-left + corner it becomes: 2—-3 \| \| 1—-0 and the vertice order will + still be (0, 1, 2, 3). text: The actual UTF-8 representation of the symbol. confidence: Confidence of the OCR results for the symbol. Range [0, 1]. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.Symbol) - ), + }, ) _sym_db.RegisterMessage(Symbol) diff --git a/google/cloud/vision_v1p3beta1/proto/web_detection_pb2.py b/google/cloud/vision_v1p3beta1/proto/web_detection_pb2.py index df70f6b8..b082e5b5 100644 --- a/google/cloud/vision_v1p3beta1/proto/web_detection_pb2.py +++ b/google/cloud/vision_v1p3beta1/proto/web_detection_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1p3beta1/proto/web_detection.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -22,12 +19,8 @@ name="google/cloud/vision_v1p3beta1/proto/web_detection.proto", package="google.cloud.vision.v1p3beta1", syntax="proto3", - serialized_options=_b( - "\n!com.google.cloud.vision.v1p3beta1B\021WebDetectionProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\370\001\001" - ), - serialized_pb=_b( - '\n7google/cloud/vision_v1p3beta1/proto/web_detection.proto\x12\x1dgoogle.cloud.vision.v1p3beta1\x1a\x1cgoogle/api/annotations.proto"\x8c\x07\n\x0cWebDetection\x12K\n\x0cweb_entities\x18\x01 \x03(\x0b\x32\x35.google.cloud.vision.v1p3beta1.WebDetection.WebEntity\x12R\n\x14\x66ull_matching_images\x18\x02 \x03(\x0b\x32\x34.google.cloud.vision.v1p3beta1.WebDetection.WebImage\x12U\n\x17partial_matching_images\x18\x03 \x03(\x0b\x32\x34.google.cloud.vision.v1p3beta1.WebDetection.WebImage\x12W\n\x1apages_with_matching_images\x18\x04 \x03(\x0b\x32\x33.google.cloud.vision.v1p3beta1.WebDetection.WebPage\x12U\n\x17visually_similar_images\x18\x06 \x03(\x0b\x32\x34.google.cloud.vision.v1p3beta1.WebDetection.WebImage\x12O\n\x11\x62\x65st_guess_labels\x18\x08 \x03(\x0b\x32\x34.google.cloud.vision.v1p3beta1.WebDetection.WebLabel\x1a\x42\n\tWebEntity\x12\x11\n\tentity_id\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x1a&\n\x08WebImage\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x1a\xe4\x01\n\x07WebPage\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x12\n\npage_title\x18\x03 \x01(\t\x12R\n\x14\x66ull_matching_images\x18\x04 \x03(\x0b\x32\x34.google.cloud.vision.v1p3beta1.WebDetection.WebImage\x12U\n\x17partial_matching_images\x18\x05 \x03(\x0b\x32\x34.google.cloud.vision.v1p3beta1.WebDetection.WebImage\x1a\x30\n\x08WebLabel\x12\r\n\x05label\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x02 \x01(\tB\x80\x01\n!com.google.cloud.vision.v1p3beta1B\x11WebDetectionProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\xf8\x01\x01\x62\x06proto3' - ), + serialized_options=b"\n!com.google.cloud.vision.v1p3beta1B\021WebDetectionProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\370\001\001", + serialized_pb=b'\n7google/cloud/vision_v1p3beta1/proto/web_detection.proto\x12\x1dgoogle.cloud.vision.v1p3beta1\x1a\x1cgoogle/api/annotations.proto"\x8c\x07\n\x0cWebDetection\x12K\n\x0cweb_entities\x18\x01 \x03(\x0b\x32\x35.google.cloud.vision.v1p3beta1.WebDetection.WebEntity\x12R\n\x14\x66ull_matching_images\x18\x02 \x03(\x0b\x32\x34.google.cloud.vision.v1p3beta1.WebDetection.WebImage\x12U\n\x17partial_matching_images\x18\x03 \x03(\x0b\x32\x34.google.cloud.vision.v1p3beta1.WebDetection.WebImage\x12W\n\x1apages_with_matching_images\x18\x04 \x03(\x0b\x32\x33.google.cloud.vision.v1p3beta1.WebDetection.WebPage\x12U\n\x17visually_similar_images\x18\x06 \x03(\x0b\x32\x34.google.cloud.vision.v1p3beta1.WebDetection.WebImage\x12O\n\x11\x62\x65st_guess_labels\x18\x08 \x03(\x0b\x32\x34.google.cloud.vision.v1p3beta1.WebDetection.WebLabel\x1a\x42\n\tWebEntity\x12\x11\n\tentity_id\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x1a&\n\x08WebImage\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x1a\xe4\x01\n\x07WebPage\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x12\n\npage_title\x18\x03 \x01(\t\x12R\n\x14\x66ull_matching_images\x18\x04 \x03(\x0b\x32\x34.google.cloud.vision.v1p3beta1.WebDetection.WebImage\x12U\n\x17partial_matching_images\x18\x05 \x03(\x0b\x32\x34.google.cloud.vision.v1p3beta1.WebDetection.WebImage\x1a\x30\n\x08WebLabel\x12\r\n\x05label\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x02 \x01(\tB\x80\x01\n!com.google.cloud.vision.v1p3beta1B\x11WebDetectionProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\xf8\x01\x01\x62\x06proto3', dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR], ) @@ -48,7 +41,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -84,7 +77,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -122,7 +115,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -178,7 +171,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -214,7 +207,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -288,7 +281,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -306,7 +299,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -491,14 +484,16 @@ WebDetection = _reflection.GeneratedProtocolMessageType( "WebDetection", (_message.Message,), - dict( - WebEntity=_reflection.GeneratedProtocolMessageType( + { + "WebEntity": _reflection.GeneratedProtocolMessageType( "WebEntity", (_message.Message,), - dict( - DESCRIPTOR=_WEBDETECTION_WEBENTITY, - __module__="google.cloud.vision_v1p3beta1.proto.web_detection_pb2", - __doc__="""Entity deduced from similar images on the Internet. + { + "DESCRIPTOR": _WEBDETECTION_WEBENTITY, + "__module__": "google.cloud.vision_v1p3beta1.proto.web_detection_pb2", + "__doc__": """Entity deduced from similar images on the Internet. + + Attributes: entity_id: Opaque entity ID. @@ -509,15 +504,17 @@ Canonical description of the entity, in English. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.WebDetection.WebEntity) - ), + }, ), - WebImage=_reflection.GeneratedProtocolMessageType( + "WebImage": _reflection.GeneratedProtocolMessageType( "WebImage", (_message.Message,), - dict( - DESCRIPTOR=_WEBDETECTION_WEBIMAGE, - __module__="google.cloud.vision_v1p3beta1.proto.web_detection_pb2", - __doc__="""Metadata for online images. + { + "DESCRIPTOR": _WEBDETECTION_WEBIMAGE, + "__module__": "google.cloud.vision_v1p3beta1.proto.web_detection_pb2", + "__doc__": """Metadata for online images. + + Attributes: url: The result image URL. @@ -525,15 +522,17 @@ (Deprecated) Overall relevancy score for the image. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.WebDetection.WebImage) - ), + }, ), - WebPage=_reflection.GeneratedProtocolMessageType( + "WebPage": _reflection.GeneratedProtocolMessageType( "WebPage", (_message.Message,), - dict( - DESCRIPTOR=_WEBDETECTION_WEBPAGE, - __module__="google.cloud.vision_v1p3beta1.proto.web_detection_pb2", - __doc__="""Metadata for web pages. + { + "DESCRIPTOR": _WEBDETECTION_WEBPAGE, + "__module__": "google.cloud.vision_v1p3beta1.proto.web_detection_pb2", + "__doc__": """Metadata for web pages. + + Attributes: url: The result web page URL. @@ -551,29 +550,33 @@ crops. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.WebDetection.WebPage) - ), + }, ), - WebLabel=_reflection.GeneratedProtocolMessageType( + "WebLabel": _reflection.GeneratedProtocolMessageType( "WebLabel", (_message.Message,), - dict( - DESCRIPTOR=_WEBDETECTION_WEBLABEL, - __module__="google.cloud.vision_v1p3beta1.proto.web_detection_pb2", - __doc__="""Label to provide extra metadata for the web detection. + { + "DESCRIPTOR": _WEBDETECTION_WEBLABEL, + "__module__": "google.cloud.vision_v1p3beta1.proto.web_detection_pb2", + "__doc__": """Label to provide extra metadata for the web detection. + + Attributes: label: Label for extra metadata. language_code: - The BCP-47 language code for ``label``, such as "en-US" or - "sr-Latn". For more information, see http://www.unicode.org/re - ports/tr35/#Unicode\_locale\_identifier. + The BCP-47 language code for ``label``, such as “en-US” or + “sr-Latn”. For more information, see http://www.unicode.org/re + ports/tr35/#Unicode_locale_identifier. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.WebDetection.WebLabel) - ), + }, ), - DESCRIPTOR=_WEBDETECTION, - __module__="google.cloud.vision_v1p3beta1.proto.web_detection_pb2", - __doc__="""Relevant information for the image from the Internet. + "DESCRIPTOR": _WEBDETECTION, + "__module__": "google.cloud.vision_v1p3beta1.proto.web_detection_pb2", + "__doc__": """Relevant information for the image from the Internet. + + Attributes: web_entities: Deduced entities from similar images on the Internet. @@ -593,7 +596,7 @@ Best guess text labels for the request image. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p3beta1.WebDetection) - ), + }, ) _sym_db.RegisterMessage(WebDetection) _sym_db.RegisterMessage(WebDetection.WebEntity) diff --git a/google/cloud/vision_v1p4beta1/gapic/enums.py b/google/cloud/vision_v1p4beta1/gapic/enums.py index 80aa4fce..911d2e7c 100644 --- a/google/cloud/vision_v1p4beta1/gapic/enums.py +++ b/google/cloud/vision_v1p4beta1/gapic/enums.py @@ -181,9 +181,9 @@ class Type(enum.IntEnum): LANDMARK_DETECTION (int): Run landmark detection. LOGO_DETECTION (int): Run logo detection. LABEL_DETECTION (int): Run label detection. - TEXT_DETECTION (int): Run text detection / optical character recognition (OCR). Text detection - is optimized for areas of text within a larger image; if the image is a - document, use ``DOCUMENT_TEXT_DETECTION`` instead. + TEXT_DETECTION (int): Run text detection / optical character recognition (OCR). Text + detection is optimized for areas of text within a larger image; if the + image is a document, use ``DOCUMENT_TEXT_DETECTION`` instead. DOCUMENT_TEXT_DETECTION (int): Run dense text document OCR. Takes precedence when both ``DOCUMENT_TEXT_DETECTION`` and ``TEXT_DETECTION`` are present. SAFE_SEARCH_DETECTION (int): Run Safe Search to detect potentially unsafe diff --git a/google/cloud/vision_v1p4beta1/gapic/image_annotator_client.py b/google/cloud/vision_v1p4beta1/gapic/image_annotator_client.py index 9ebb7733..851152ae 100644 --- a/google/cloud/vision_v1p4beta1/gapic/image_annotator_client.py +++ b/google/cloud/vision_v1p4beta1/gapic/image_annotator_client.py @@ -329,7 +329,8 @@ def async_batch_annotate_images( metadata=None, ): """ - Run asynchronous image detection and annotation for a list of images. + Run asynchronous image detection and annotation for a list of + images. Progress and results can be retrieved through the ``google.longrunning.Operations`` interface. ``Operation.metadata`` @@ -424,10 +425,10 @@ def async_batch_annotate_files( metadata=None, ): """ - Run asynchronous image detection and annotation for a list of generic - files, such as PDF files, which may contain multiple pages and multiple - images per page. Progress and results can be retrieved through the - ``google.longrunning.Operations`` interface. ``Operation.metadata`` + Run asynchronous image detection and annotation for a list of + generic files, such as PDF files, which may contain multiple pages and + multiple images per page. Progress and results can be retrieved through + the ``google.longrunning.Operations`` interface. ``Operation.metadata`` contains ``OperationMetadata`` (metadata). ``Operation.response`` contains ``AsyncBatchAnnotateFilesResponse`` (results). diff --git a/google/cloud/vision_v1p4beta1/gapic/product_search_client.py b/google/cloud/vision_v1p4beta1/gapic/product_search_client.py index 96663d8a..4af60631 100644 --- a/google/cloud/vision_v1p4beta1/gapic/product_search_client.py +++ b/google/cloud/vision_v1p4beta1/gapic/product_search_client.py @@ -49,8 +49,8 @@ class ProductSearchClient(object): """ - Manages Products and ProductSets of reference images for use in product - search. It uses the following resource model: + 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`` resources, named ``projects/*/locations/*/productSets/*``, which acts as a way to put @@ -245,11 +245,337 @@ def __init__( self._inner_api_calls = {} # Service calls + def delete_product_set( + self, + name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): + """ + Permanently deletes a ProductSet. Products and ReferenceImages in the + ProductSet are not deleted. + + The actual image files are not deleted from Google Cloud Storage. + + Example: + >>> from google.cloud import vision_v1p4beta1 + >>> + >>> client = vision_v1p4beta1.ProductSearchClient() + >>> + >>> name = client.product_set_path('[PROJECT]', '[LOCATION]', '[PRODUCT_SET]') + >>> + >>> client.delete_product_set(name) + + Args: + name (str): Required. Resource name of the ProductSet to delete. + + Format is: + ``projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`` + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will + be retried using a default configuration. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if "delete_product_set" not in self._inner_api_calls: + self._inner_api_calls[ + "delete_product_set" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.delete_product_set, + default_retry=self._method_configs["DeleteProductSet"].retry, + default_timeout=self._method_configs["DeleteProductSet"].timeout, + client_info=self._client_info, + ) + + request = product_search_service_pb2.DeleteProductSetRequest(name=name) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [("name", name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( + routing_header + ) + metadata.append(routing_metadata) + + self._inner_api_calls["delete_product_set"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + + def delete_product( + self, + name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): + """ + Permanently deletes a product and its reference images. + + Metadata of the product and all its images will be deleted right away, but + search queries against ProductSets containing the product may still work + until all related caches are refreshed. + + Example: + >>> from google.cloud import vision_v1p4beta1 + >>> + >>> client = vision_v1p4beta1.ProductSearchClient() + >>> + >>> name = client.product_path('[PROJECT]', '[LOCATION]', '[PRODUCT]') + >>> + >>> client.delete_product(name) + + Args: + name (str): Required. Resource name of product to delete. + + Format is: ``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`` + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will + be retried using a default configuration. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if "delete_product" not in self._inner_api_calls: + self._inner_api_calls[ + "delete_product" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.delete_product, + default_retry=self._method_configs["DeleteProduct"].retry, + default_timeout=self._method_configs["DeleteProduct"].timeout, + client_info=self._client_info, + ) + + request = product_search_service_pb2.DeleteProductRequest(name=name) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [("name", name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( + routing_header + ) + metadata.append(routing_metadata) + + self._inner_api_calls["delete_product"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + + def delete_reference_image( + self, + name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): + """ + Permanently deletes a reference image. + + The image metadata will be deleted right away, but search queries + against ProductSets containing the image may still work until all related + caches are refreshed. + + The actual image files are not deleted from Google Cloud Storage. + + Example: + >>> from google.cloud import vision_v1p4beta1 + >>> + >>> client = vision_v1p4beta1.ProductSearchClient() + >>> + >>> name = client.reference_image_path('[PROJECT]', '[LOCATION]', '[PRODUCT]', '[REFERENCE_IMAGE]') + >>> + >>> client.delete_reference_image(name) + + Args: + name (str): Required. The resource name of the reference image to delete. + + Format is: + + ``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`` + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will + be retried using a default configuration. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if "delete_reference_image" not in self._inner_api_calls: + self._inner_api_calls[ + "delete_reference_image" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.delete_reference_image, + default_retry=self._method_configs["DeleteReferenceImage"].retry, + default_timeout=self._method_configs["DeleteReferenceImage"].timeout, + client_info=self._client_info, + ) + + request = product_search_service_pb2.DeleteReferenceImageRequest(name=name) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [("name", name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( + routing_header + ) + metadata.append(routing_metadata) + + self._inner_api_calls["delete_reference_image"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + + def import_product_sets( + self, + parent, + input_config, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): + """ + Asynchronous API that imports a list of reference images to + specified product sets based on a list of image information. + + The ``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``. + + Example: + >>> from google.cloud import vision_v1p4beta1 + >>> + >>> client = vision_v1p4beta1.ProductSearchClient() + >>> + >>> parent = client.location_path('[PROJECT]', '[LOCATION]') + >>> + >>> # TODO: Initialize `input_config`: + >>> input_config = {} + >>> + >>> response = client.import_product_sets(parent, input_config) + >>> + >>> def callback(operation_future): + ... # Handle result. + ... result = operation_future.result() + >>> + >>> response.add_done_callback(callback) + >>> + >>> # Handle metadata. + >>> metadata = response.metadata() + + Args: + parent (str): Required. The project in which the ProductSets should be imported. + + Format is ``projects/PROJECT_ID/locations/LOC_ID``. + input_config (Union[dict, ~google.cloud.vision_v1p4beta1.types.ImportProductSetsInputConfig]): Required. The input content for the list of requests. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.cloud.vision_v1p4beta1.types.ImportProductSetsInputConfig` + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will + be retried using a default configuration. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.cloud.vision_v1p4beta1.types._OperationFuture` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if "import_product_sets" not in self._inner_api_calls: + self._inner_api_calls[ + "import_product_sets" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.import_product_sets, + default_retry=self._method_configs["ImportProductSets"].retry, + default_timeout=self._method_configs["ImportProductSets"].timeout, + client_info=self._client_info, + ) + + request = product_search_service_pb2.ImportProductSetsRequest( + parent=parent, input_config=input_config + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [("parent", parent)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( + routing_header + ) + metadata.append(routing_metadata) + + operation = self._inner_api_calls["import_product_sets"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + return google.api_core.operation.from_gapic( + operation, + self.transport._operations_client, + product_search_service_pb2.ImportProductSetsResponse, + metadata_type=product_search_service_pb2.BatchOperationMetadata, + ) + def create_product_set( self, parent, product_set, - product_set_id, + product_set_id=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None, @@ -259,7 +585,7 @@ def create_product_set( Possible errors: - - Returns INVALID\_ARGUMENT if display\_name is missing, or is longer + - Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. Example: @@ -272,10 +598,7 @@ def create_product_set( >>> # TODO: Initialize `product_set`: >>> product_set = {} >>> - >>> # TODO: Initialize `product_set_id`: - >>> product_set_id = '' - >>> - >>> response = client.create_product_set(parent, product_set, product_set_id) + >>> response = client.create_product_set(parent, product_set) Args: parent (str): Required. The project in which the ProductSet should be created. @@ -285,9 +608,9 @@ def create_product_set( If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.vision_v1p4beta1.types.ProductSet` - product_set_id (str): 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 + product_set_id (str): 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 character ``/``. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will @@ -352,7 +675,7 @@ def list_product_sets( Possible errors: - - Returns INVALID\_ARGUMENT if page\_size is greater than 100, or less + - Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. Example: @@ -461,7 +784,7 @@ def get_product_set( Possible errors: - - Returns NOT\_FOUND if the ProductSet does not exist. + - Returns NOT_FOUND if the ProductSet does not exist. Example: >>> from google.cloud import vision_v1p4beta1 @@ -528,19 +851,19 @@ def get_product_set( def update_product_set( self, product_set, - update_mask, + update_mask=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None, ): """ - Makes changes to a ProductSet resource. Only display\_name can be + Makes changes to a ProductSet resource. Only display_name can be updated currently. Possible errors: - - Returns NOT\_FOUND if the ProductSet does not exist. - - Returns INVALID\_ARGUMENT if display\_name is present in update\_mask + - Returns NOT_FOUND if the ProductSet does not exist. + - Returns INVALID_ARGUMENT if display_name is present in update_mask but missing from the request or longer than 4096 characters. Example: @@ -551,19 +874,16 @@ def update_product_set( >>> # TODO: Initialize `product_set`: >>> product_set = {} >>> - >>> # TODO: Initialize `update_mask`: - >>> update_mask = {} - >>> - >>> response = client.update_product_set(product_set, update_mask) + >>> response = client.update_product_set(product_set) Args: product_set (Union[dict, ~google.cloud.vision_v1p4beta1.types.ProductSet]): Required. The ProductSet resource which replaces the one on the server. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.vision_v1p4beta1.types.ProductSet` - update_mask (Union[dict, ~google.cloud.vision_v1p4beta1.types.FieldMask]): The ``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``. + update_mask (Union[dict, ~google.cloud.vision_v1p4beta1.types.FieldMask]): The ``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``. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.vision_v1p4beta1.types.FieldMask` @@ -617,83 +937,11 @@ def update_product_set( request, retry=retry, timeout=timeout, metadata=metadata ) - def delete_product_set( - self, - name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None, - ): - """ - Permanently deletes a ProductSet. Products and ReferenceImages in the - ProductSet are not deleted. - - The actual image files are not deleted from Google Cloud Storage. - - Example: - >>> from google.cloud import vision_v1p4beta1 - >>> - >>> client = vision_v1p4beta1.ProductSearchClient() - >>> - >>> name = client.product_set_path('[PROJECT]', '[LOCATION]', '[PRODUCT_SET]') - >>> - >>> client.delete_product_set(name) - - Args: - name (str): Required. Resource name of the ProductSet to delete. - - Format is: - ``projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`` - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will - be retried using a default configuration. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if "delete_product_set" not in self._inner_api_calls: - self._inner_api_calls[ - "delete_product_set" - ] = google.api_core.gapic_v1.method.wrap_method( - self.transport.delete_product_set, - default_retry=self._method_configs["DeleteProductSet"].retry, - default_timeout=self._method_configs["DeleteProductSet"].timeout, - client_info=self._client_info, - ) - - request = product_search_service_pb2.DeleteProductSetRequest(name=name) - if metadata is None: - metadata = [] - metadata = list(metadata) - try: - routing_header = [("name", name)] - except AttributeError: - pass - else: - routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( - routing_header - ) - metadata.append(routing_metadata) - - self._inner_api_calls["delete_product_set"]( - request, retry=retry, timeout=timeout, metadata=metadata - ) - def create_product( self, parent, product, - product_id, + product_id=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None, @@ -703,11 +951,11 @@ def create_product( Possible errors: - - Returns INVALID\_ARGUMENT if display\_name is missing or longer than + - Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. - - Returns INVALID\_ARGUMENT if description is longer than 4096 + - Returns INVALID_ARGUMENT if description is longer than 4096 characters. - - Returns INVALID\_ARGUMENT if product\_category is missing or invalid. + - Returns INVALID_ARGUMENT if product_category is missing or invalid. Example: >>> from google.cloud import vision_v1p4beta1 @@ -719,10 +967,7 @@ def create_product( >>> # TODO: Initialize `product`: >>> product = {} >>> - >>> # TODO: Initialize `product_id`: - >>> product_id = '' - >>> - >>> response = client.create_product(parent, product, product_id) + >>> response = client.create_product(parent, product) Args: parent (str): Required. The project in which the Product should be created. @@ -732,9 +977,9 @@ def create_product( If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.vision_v1p4beta1.types.Product` - product_id (str): 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 + product_id (str): 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 ``/``. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will @@ -799,7 +1044,7 @@ def list_products( Possible errors: - - Returns INVALID\_ARGUMENT if page\_size is greater than 100 or less + - Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. Example: @@ -909,7 +1154,7 @@ def get_product( Possible errors: - - Returns NOT\_FOUND if the Product does not exist. + - Returns NOT_FOUND if the Product does not exist. Example: >>> from google.cloud import vision_v1p4beta1 @@ -975,7 +1220,7 @@ def get_product( def update_product( self, product, - update_mask, + update_mask=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None, @@ -984,121 +1229,42 @@ def update_product( Makes changes to a Product resource. Only the ``display_name``, ``description``, and ``labels`` fields can be updated right now. - If labels are updated, the change will not be reflected in queries until - the next index time. - - Possible errors: - - - Returns NOT\_FOUND if the Product does not exist. - - Returns INVALID\_ARGUMENT if display\_name is present in update\_mask - but is missing from the request or longer than 4096 characters. - - Returns INVALID\_ARGUMENT if description is present in update\_mask - but is longer than 4096 characters. - - Returns INVALID\_ARGUMENT if product\_category is present in - update\_mask. - - Example: - >>> from google.cloud import vision_v1p4beta1 - >>> - >>> client = vision_v1p4beta1.ProductSearchClient() - >>> - >>> # TODO: Initialize `product`: - >>> product = {} - >>> - >>> # TODO: Initialize `update_mask`: - >>> update_mask = {} - >>> - >>> response = client.update_product(product, update_mask) - - Args: - product (Union[dict, ~google.cloud.vision_v1p4beta1.types.Product]): Required. The Product resource which replaces the one on the server. - product.name is immutable. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.cloud.vision_v1p4beta1.types.Product` - update_mask (Union[dict, ~google.cloud.vision_v1p4beta1.types.FieldMask]): The ``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``. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.cloud.vision_v1p4beta1.types.FieldMask` - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will - be retried using a default configuration. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.cloud.vision_v1p4beta1.types.Product` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if "update_product" not in self._inner_api_calls: - self._inner_api_calls[ - "update_product" - ] = google.api_core.gapic_v1.method.wrap_method( - self.transport.update_product, - default_retry=self._method_configs["UpdateProduct"].retry, - default_timeout=self._method_configs["UpdateProduct"].timeout, - client_info=self._client_info, - ) - - request = product_search_service_pb2.UpdateProductRequest( - product=product, update_mask=update_mask - ) - if metadata is None: - metadata = [] - metadata = list(metadata) - try: - routing_header = [("product.name", product.name)] - except AttributeError: - pass - else: - routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( - routing_header - ) - metadata.append(routing_metadata) - - return self._inner_api_calls["update_product"]( - request, retry=retry, timeout=timeout, metadata=metadata - ) - - def delete_product( - self, - name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None, - ): - """ - Permanently deletes a product and its reference images. - - Metadata of the product and all its images will be deleted right away, but - search queries against ProductSets containing the product may still work - until all related caches are refreshed. + If labels are updated, the change will not be reflected in queries until + the next index time. + + Possible errors: + + - Returns NOT_FOUND if the Product does not exist. + - Returns INVALID_ARGUMENT if display_name is present in update_mask + but is missing from the request or longer than 4096 characters. + - Returns INVALID_ARGUMENT if description is present in update_mask but + is longer than 4096 characters. + - Returns INVALID_ARGUMENT if product_category is present in + update_mask. Example: >>> from google.cloud import vision_v1p4beta1 >>> >>> client = vision_v1p4beta1.ProductSearchClient() >>> - >>> name = client.product_path('[PROJECT]', '[LOCATION]', '[PRODUCT]') + >>> # TODO: Initialize `product`: + >>> product = {} >>> - >>> client.delete_product(name) + >>> response = client.update_product(product) Args: - name (str): Required. Resource name of product to delete. + product (Union[dict, ~google.cloud.vision_v1p4beta1.types.Product]): Required. The Product resource which replaces the one on the server. + product.name is immutable. - Format is: ``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`` + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.cloud.vision_v1p4beta1.types.Product` + update_mask (Union[dict, ~google.cloud.vision_v1p4beta1.types.FieldMask]): The ``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``. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.cloud.vision_v1p4beta1.types.FieldMask` retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -1108,6 +1274,9 @@ def delete_product( metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata that is provided to the method. + Returns: + A :class:`~google.cloud.vision_v1p4beta1.types.Product` instance. + Raises: google.api_core.exceptions.GoogleAPICallError: If the request failed for any reason. @@ -1116,22 +1285,24 @@ def delete_product( ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if "delete_product" not in self._inner_api_calls: + if "update_product" not in self._inner_api_calls: self._inner_api_calls[ - "delete_product" + "update_product" ] = google.api_core.gapic_v1.method.wrap_method( - self.transport.delete_product, - default_retry=self._method_configs["DeleteProduct"].retry, - default_timeout=self._method_configs["DeleteProduct"].timeout, + self.transport.update_product, + default_retry=self._method_configs["UpdateProduct"].retry, + default_timeout=self._method_configs["UpdateProduct"].timeout, client_info=self._client_info, ) - request = product_search_service_pb2.DeleteProductRequest(name=name) + request = product_search_service_pb2.UpdateProductRequest( + product=product, update_mask=update_mask + ) if metadata is None: metadata = [] metadata = list(metadata) try: - routing_header = [("name", name)] + routing_header = [("product.name", product.name)] except AttributeError: pass else: @@ -1140,7 +1311,7 @@ def delete_product( ) metadata.append(routing_metadata) - self._inner_api_calls["delete_product"]( + return self._inner_api_calls["update_product"]( request, retry=retry, timeout=timeout, metadata=metadata ) @@ -1148,7 +1319,7 @@ def create_reference_image( self, parent, reference_image, - reference_image_id, + reference_image_id=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None, @@ -1158,7 +1329,7 @@ def create_reference_image( The ``bounding_poly`` field is optional. If ``bounding_poly`` is not specified, the system will try to detect regions of interest in the - image that are compatible with the product\_category on the parent + image that are compatible with the product_category on the parent product. If it is specified, detection is ALWAYS skipped. The system converts polygons into non-rotated rectangles. @@ -1167,13 +1338,13 @@ def create_reference_image( Possible errors: - - Returns INVALID\_ARGUMENT if the image\_uri is missing or longer than + - Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. - - Returns INVALID\_ARGUMENT if the product does not exist. - - Returns INVALID\_ARGUMENT if bounding\_poly is not provided, and - nothing compatible with the parent product's product\_category is + - Returns INVALID_ARGUMENT if the product does not exist. + - 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 + - Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. Example: @@ -1186,14 +1357,11 @@ def create_reference_image( >>> # TODO: Initialize `reference_image`: >>> reference_image = {} >>> - >>> # TODO: Initialize `reference_image_id`: - >>> reference_image_id = '' - >>> - >>> response = client.create_reference_image(parent, reference_image, reference_image_id) + >>> response = client.create_reference_image(parent, reference_image) Args: - parent (str): Required. Resource name of the product in which to create the reference - image. + parent (str): Required. Resource name of the product in which to create the + reference image. Format is ``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID``. reference_image (Union[dict, ~google.cloud.vision_v1p4beta1.types.ReferenceImage]): Required. The reference image to create. @@ -1201,10 +1369,10 @@ def create_reference_image( If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.vision_v1p4beta1.types.ReferenceImage` - reference_image_id (str): 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 contain the character ``/``. + reference_image_id (str): 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 contain the character ``/``. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -1257,82 +1425,6 @@ def create_reference_image( request, retry=retry, timeout=timeout, metadata=metadata ) - def delete_reference_image( - self, - name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None, - ): - """ - Permanently deletes a reference image. - - The image metadata will be deleted right away, but search queries - against ProductSets containing the image may still work until all related - caches are refreshed. - - The actual image files are not deleted from Google Cloud Storage. - - Example: - >>> from google.cloud import vision_v1p4beta1 - >>> - >>> client = vision_v1p4beta1.ProductSearchClient() - >>> - >>> name = client.reference_image_path('[PROJECT]', '[LOCATION]', '[PRODUCT]', '[REFERENCE_IMAGE]') - >>> - >>> client.delete_reference_image(name) - - Args: - name (str): Required. The resource name of the reference image to delete. - - Format is: - - ``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`` - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will - be retried using a default configuration. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if "delete_reference_image" not in self._inner_api_calls: - self._inner_api_calls[ - "delete_reference_image" - ] = google.api_core.gapic_v1.method.wrap_method( - self.transport.delete_reference_image, - default_retry=self._method_configs["DeleteReferenceImage"].retry, - default_timeout=self._method_configs["DeleteReferenceImage"].timeout, - client_info=self._client_info, - ) - - request = product_search_service_pb2.DeleteReferenceImageRequest(name=name) - if metadata is None: - metadata = [] - metadata = list(metadata) - try: - routing_header = [("name", name)] - except AttributeError: - pass - else: - routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( - routing_header - ) - metadata.append(routing_metadata) - - self._inner_api_calls["delete_reference_image"]( - request, retry=retry, timeout=timeout, metadata=metadata - ) - def list_reference_images( self, parent, @@ -1346,8 +1438,8 @@ def list_reference_images( Possible errors: - - Returns NOT\_FOUND if the parent product does not exist. - - Returns INVALID\_ARGUMENT if the page\_size is greater than 100, or + - 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. Example: @@ -1372,7 +1464,8 @@ def list_reference_images( ... pass Args: - parent (str): Required. Resource name of the product containing the reference images. + parent (str): Required. Resource name of the product containing the reference + images. Format is ``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID``. page_size (int): The maximum number of resources contained in the @@ -1456,7 +1549,7 @@ def get_reference_image( Possible errors: - - Returns NOT\_FOUND if the specified image does not exist. + - Returns NOT_FOUND if the specified image does not exist. Example: >>> from google.cloud import vision_v1p4beta1 @@ -1530,14 +1623,14 @@ def add_product_to_product_set( metadata=None, ): """ - Adds a Product to the specified ProductSet. If the Product is already - present, no change is made. + Adds a Product to the specified ProductSet. If the Product is + already present, no change is made. One Product can be added to at most 100 ProductSets. Possible errors: - - Returns NOT\_FOUND if the Product or the ProductSet doesn't exist. + - Returns NOT_FOUND if the Product or the ProductSet doesn't exist. Example: >>> from google.cloud import vision_v1p4beta1 @@ -1545,9 +1638,7 @@ def add_product_to_product_set( >>> client = vision_v1p4beta1.ProductSearchClient() >>> >>> name = client.product_set_path('[PROJECT]', '[LOCATION]', '[PRODUCT_SET]') - >>> - >>> # TODO: Initialize `product`: - >>> product = '' + >>> product = client.product_path('[PROJECT]', '[LOCATION]', '[PRODUCT]') >>> >>> client.add_product_to_product_set(name, product) @@ -1624,9 +1715,7 @@ def remove_product_from_product_set( >>> client = vision_v1p4beta1.ProductSearchClient() >>> >>> name = client.product_set_path('[PROJECT]', '[LOCATION]', '[PRODUCT_SET]') - >>> - >>> # TODO: Initialize `product`: - >>> product = '' + >>> product = client.product_path('[PROJECT]', '[LOCATION]', '[PRODUCT]') >>> >>> client.remove_product_from_product_set(name, product) @@ -1703,7 +1792,7 @@ def list_products_in_product_set( Possible errors: - - Returns INVALID\_ARGUMENT if page\_size is greater than 100 or less + - Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. Example: @@ -1803,125 +1892,19 @@ def list_products_in_product_set( ) return iterator - def import_product_sets( - self, - parent, - input_config, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None, - ): - """ - Asynchronous API that imports a list of reference images to specified - product sets based on a list of image information. - - The ``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``. - - Example: - >>> from google.cloud import vision_v1p4beta1 - >>> - >>> client = vision_v1p4beta1.ProductSearchClient() - >>> - >>> parent = client.location_path('[PROJECT]', '[LOCATION]') - >>> - >>> # TODO: Initialize `input_config`: - >>> input_config = {} - >>> - >>> response = client.import_product_sets(parent, input_config) - >>> - >>> def callback(operation_future): - ... # Handle result. - ... result = operation_future.result() - >>> - >>> response.add_done_callback(callback) - >>> - >>> # Handle metadata. - >>> metadata = response.metadata() - - Args: - parent (str): Required. The project in which the ProductSets should be imported. - - Format is ``projects/PROJECT_ID/locations/LOC_ID``. - input_config (Union[dict, ~google.cloud.vision_v1p4beta1.types.ImportProductSetsInputConfig]): Required. The input content for the list of requests. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.cloud.vision_v1p4beta1.types.ImportProductSetsInputConfig` - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will - be retried using a default configuration. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.cloud.vision_v1p4beta1.types._OperationFuture` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if "import_product_sets" not in self._inner_api_calls: - self._inner_api_calls[ - "import_product_sets" - ] = google.api_core.gapic_v1.method.wrap_method( - self.transport.import_product_sets, - default_retry=self._method_configs["ImportProductSets"].retry, - default_timeout=self._method_configs["ImportProductSets"].timeout, - client_info=self._client_info, - ) - - request = product_search_service_pb2.ImportProductSetsRequest( - parent=parent, input_config=input_config - ) - if metadata is None: - metadata = [] - metadata = list(metadata) - try: - routing_header = [("parent", parent)] - except AttributeError: - pass - else: - routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( - routing_header - ) - metadata.append(routing_metadata) - - operation = self._inner_api_calls["import_product_sets"]( - request, retry=retry, timeout=timeout, metadata=metadata - ) - return google.api_core.operation.from_gapic( - operation, - self.transport._operations_client, - product_search_service_pb2.ImportProductSetsResponse, - metadata_type=product_search_service_pb2.BatchOperationMetadata, - ) - def purge_products( self, + parent, product_set_purge_config=None, delete_orphan_products=None, - parent=None, force=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None, ): """ - Asynchronous API to delete all Products in a ProductSet or all Products - that are in no ProductSet. + Asynchronous API to delete all Products in a ProductSet or all + Products that are in no ProductSet. If a Product is a member of the specified ProductSet in addition to other ProductSets, the Product will still be deleted. @@ -1950,19 +1933,30 @@ def purge_products( >>> >>> client = vision_v1p4beta1.ProductSearchClient() >>> - >>> response = client.purge_products() + >>> parent = client.location_path('[PROJECT]', '[LOCATION]') + >>> + >>> response = client.purge_products(parent) + >>> + >>> def callback(operation_future): + ... # Handle result. + ... result = operation_future.result() + >>> + >>> response.add_done_callback(callback) + >>> + >>> # Handle metadata. + >>> metadata = response.metadata() Args: + parent (str): Required. The project and location in which the Products should be + deleted. + + Format is ``projects/PROJECT_ID/locations/LOC_ID``. product_set_purge_config (Union[dict, ~google.cloud.vision_v1p4beta1.types.ProductSetPurgeConfig]): Specify which ProductSet contains the Products to be deleted. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.vision_v1p4beta1.types.ProductSetPurgeConfig` - delete_orphan_products (bool): If delete\_orphan\_products is true, all Products that are not in any + delete_orphan_products (bool): If delete_orphan_products is true, all Products that are not in any ProductSet will be deleted. - parent (str): Required. The project and location in which the Products should be - deleted. - - Format is ``projects/PROJECT_ID/locations/LOC_ID``. force (bool): The default value is false. Override this value to true to actually perform the purge. retry (Optional[google.api_core.retry.Retry]): A retry object used @@ -1975,7 +1969,7 @@ def purge_products( that is provided to the method. Returns: - A :class:`~google.cloud.vision_v1p4beta1.types.Operation` instance. + A :class:`~google.cloud.vision_v1p4beta1.types._OperationFuture` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -2003,9 +1997,9 @@ def purge_products( ) request = product_search_service_pb2.PurgeProductsRequest( + parent=parent, product_set_purge_config=product_set_purge_config, delete_orphan_products=delete_orphan_products, - parent=parent, force=force, ) if metadata is None: @@ -2021,6 +2015,12 @@ def purge_products( ) metadata.append(routing_metadata) - return self._inner_api_calls["purge_products"]( + operation = self._inner_api_calls["purge_products"]( request, retry=retry, timeout=timeout, metadata=metadata ) + return google.api_core.operation.from_gapic( + operation, + self.transport._operations_client, + empty_pb2.Empty, + metadata_type=product_search_service_pb2.BatchOperationMetadata, + ) diff --git a/google/cloud/vision_v1p4beta1/gapic/product_search_client_config.py b/google/cloud/vision_v1p4beta1/gapic/product_search_client_config.py index 8b8f4f67..82d1973a 100644 --- a/google/cloud/vision_v1p4beta1/gapic/product_search_client_config.py +++ b/google/cloud/vision_v1p4beta1/gapic/product_search_client_config.py @@ -17,6 +17,26 @@ } }, "methods": { + "DeleteProductSet": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default", + }, + "DeleteProduct": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default", + }, + "DeleteReferenceImage": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default", + }, + "ImportProductSets": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default", + }, "CreateProductSet": { "timeout_millis": 60000, "retry_codes_name": "non_idempotent", @@ -37,11 +57,6 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default", }, - "DeleteProductSet": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", - }, "CreateProduct": { "timeout_millis": 60000, "retry_codes_name": "non_idempotent", @@ -62,21 +77,11 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default", }, - "DeleteProduct": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", - }, "CreateReferenceImage": { "timeout_millis": 60000, "retry_codes_name": "non_idempotent", "retry_params_name": "default", }, - "DeleteReferenceImage": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", - }, "ListReferenceImages": { "timeout_millis": 60000, "retry_codes_name": "idempotent", @@ -102,11 +107,6 @@ "retry_codes_name": "idempotent", "retry_params_name": "default", }, - "ImportProductSets": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", - }, "PurgeProducts": { "timeout_millis": 60000, "retry_codes_name": "non_idempotent", diff --git a/google/cloud/vision_v1p4beta1/gapic/transports/image_annotator_grpc_transport.py b/google/cloud/vision_v1p4beta1/gapic/transports/image_annotator_grpc_transport.py index 35eea305..c6ef4d24 100644 --- a/google/cloud/vision_v1p4beta1/gapic/transports/image_annotator_grpc_transport.py +++ b/google/cloud/vision_v1p4beta1/gapic/transports/image_annotator_grpc_transport.py @@ -154,7 +154,8 @@ def batch_annotate_files(self): def async_batch_annotate_images(self): """Return the gRPC stub for :meth:`ImageAnnotatorClient.async_batch_annotate_images`. - Run asynchronous image detection and annotation for a list of images. + Run asynchronous image detection and annotation for a list of + images. Progress and results can be retrieved through the ``google.longrunning.Operations`` interface. ``Operation.metadata`` @@ -176,10 +177,10 @@ def async_batch_annotate_images(self): def async_batch_annotate_files(self): """Return the gRPC stub for :meth:`ImageAnnotatorClient.async_batch_annotate_files`. - Run asynchronous image detection and annotation for a list of generic - files, such as PDF files, which may contain multiple pages and multiple - images per page. Progress and results can be retrieved through the - ``google.longrunning.Operations`` interface. ``Operation.metadata`` + Run asynchronous image detection and annotation for a list of + generic files, such as PDF files, which may contain multiple pages and + multiple images per page. Progress and results can be retrieved through + the ``google.longrunning.Operations`` interface. ``Operation.metadata`` contains ``OperationMetadata`` (metadata). ``Operation.response`` contains ``AsyncBatchAnnotateFilesResponse`` (results). diff --git a/google/cloud/vision_v1p4beta1/gapic/transports/product_search_grpc_transport.py b/google/cloud/vision_v1p4beta1/gapic/transports/product_search_grpc_transport.py index 00bf1156..850ff842 100644 --- a/google/cloud/vision_v1p4beta1/gapic/transports/product_search_grpc_transport.py +++ b/google/cloud/vision_v1p4beta1/gapic/transports/product_search_grpc_transport.py @@ -120,6 +120,81 @@ def channel(self): """ return self._channel + @property + def delete_product_set(self): + """Return the gRPC stub for :meth:`ProductSearchClient.delete_product_set`. + + Permanently deletes a ProductSet. Products and ReferenceImages in the + ProductSet are not deleted. + + The actual image files are not deleted from Google Cloud Storage. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs["product_search_stub"].DeleteProductSet + + @property + def delete_product(self): + """Return the gRPC stub for :meth:`ProductSearchClient.delete_product`. + + Permanently deletes a product and its reference images. + + Metadata of the product and all its images will be deleted right away, but + search queries against ProductSets containing the product may still work + until all related caches are refreshed. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs["product_search_stub"].DeleteProduct + + @property + def delete_reference_image(self): + """Return the gRPC stub for :meth:`ProductSearchClient.delete_reference_image`. + + Permanently deletes a reference image. + + The image metadata will be deleted right away, but search queries + against ProductSets containing the image may still work until all related + caches are refreshed. + + The actual image files are not deleted from Google Cloud Storage. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs["product_search_stub"].DeleteReferenceImage + + @property + def import_product_sets(self): + """Return the gRPC stub for :meth:`ProductSearchClient.import_product_sets`. + + Asynchronous API that imports a list of reference images to + specified product sets based on a list of image information. + + The ``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``. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs["product_search_stub"].ImportProductSets + @property def create_product_set(self): """Return the gRPC stub for :meth:`ProductSearchClient.create_product_set`. @@ -128,7 +203,7 @@ def create_product_set(self): Possible errors: - - Returns INVALID\_ARGUMENT if display\_name is missing, or is longer + - Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters. Returns: @@ -146,7 +221,7 @@ def list_product_sets(self): Possible errors: - - Returns INVALID\_ARGUMENT if page\_size is greater than 100, or less + - Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1. Returns: @@ -164,7 +239,7 @@ def get_product_set(self): Possible errors: - - Returns NOT\_FOUND if the ProductSet does not exist. + - Returns NOT_FOUND if the ProductSet does not exist. Returns: Callable: A callable which accepts the appropriate @@ -177,13 +252,13 @@ def get_product_set(self): def update_product_set(self): """Return the gRPC stub for :meth:`ProductSearchClient.update_product_set`. - Makes changes to a ProductSet resource. Only display\_name can be + Makes changes to a ProductSet resource. Only display_name can be updated currently. Possible errors: - - Returns NOT\_FOUND if the ProductSet does not exist. - - Returns INVALID\_ARGUMENT if display\_name is present in update\_mask + - Returns NOT_FOUND if the ProductSet does not exist. + - Returns INVALID_ARGUMENT if display_name is present in update_mask but missing from the request or longer than 4096 characters. Returns: @@ -193,22 +268,6 @@ def update_product_set(self): """ return self._stubs["product_search_stub"].UpdateProductSet - @property - def delete_product_set(self): - """Return the gRPC stub for :meth:`ProductSearchClient.delete_product_set`. - - Permanently deletes a ProductSet. Products and ReferenceImages in the - ProductSet are not deleted. - - The actual image files are not deleted from Google Cloud Storage. - - Returns: - Callable: A callable which accepts the appropriate - deserialized request object and returns a - deserialized response object. - """ - return self._stubs["product_search_stub"].DeleteProductSet - @property def create_product(self): """Return the gRPC stub for :meth:`ProductSearchClient.create_product`. @@ -217,11 +276,11 @@ def create_product(self): Possible errors: - - Returns INVALID\_ARGUMENT if display\_name is missing or longer than + - Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. - - Returns INVALID\_ARGUMENT if description is longer than 4096 + - Returns INVALID_ARGUMENT if description is longer than 4096 characters. - - Returns INVALID\_ARGUMENT if product\_category is missing or invalid. + - Returns INVALID_ARGUMENT if product_category is missing or invalid. Returns: Callable: A callable which accepts the appropriate @@ -238,7 +297,7 @@ def list_products(self): Possible errors: - - Returns INVALID\_ARGUMENT if page\_size is greater than 100 or less + - Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. Returns: @@ -256,7 +315,7 @@ def get_product(self): Possible errors: - - Returns NOT\_FOUND if the Product does not exist. + - Returns NOT_FOUND if the Product does not exist. Returns: Callable: A callable which accepts the appropriate @@ -277,13 +336,13 @@ def update_product(self): Possible errors: - - Returns NOT\_FOUND if the Product does not exist. - - Returns INVALID\_ARGUMENT if display\_name is present in update\_mask + - Returns NOT_FOUND if the Product does not exist. + - Returns INVALID_ARGUMENT if display_name is present in update_mask but is missing from the request or longer than 4096 characters. - - Returns INVALID\_ARGUMENT if description is present in update\_mask - but is longer than 4096 characters. - - Returns INVALID\_ARGUMENT if product\_category is present in - update\_mask. + - Returns INVALID_ARGUMENT if description is present in update_mask but + is longer than 4096 characters. + - Returns INVALID_ARGUMENT if product_category is present in + update_mask. Returns: Callable: A callable which accepts the appropriate @@ -292,23 +351,6 @@ def update_product(self): """ return self._stubs["product_search_stub"].UpdateProduct - @property - def delete_product(self): - """Return the gRPC stub for :meth:`ProductSearchClient.delete_product`. - - Permanently deletes a product and its reference images. - - Metadata of the product and all its images will be deleted right away, but - search queries against ProductSets containing the product may still work - until all related caches are refreshed. - - Returns: - Callable: A callable which accepts the appropriate - deserialized request object and returns a - deserialized response object. - """ - return self._stubs["product_search_stub"].DeleteProduct - @property def create_reference_image(self): """Return the gRPC stub for :meth:`ProductSearchClient.create_reference_image`. @@ -317,7 +359,7 @@ def create_reference_image(self): The ``bounding_poly`` field is optional. If ``bounding_poly`` is not specified, the system will try to detect regions of interest in the - image that are compatible with the product\_category on the parent + image that are compatible with the product_category on the parent product. If it is specified, detection is ALWAYS skipped. The system converts polygons into non-rotated rectangles. @@ -326,13 +368,13 @@ def create_reference_image(self): Possible errors: - - Returns INVALID\_ARGUMENT if the image\_uri is missing or longer than + - Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. - - Returns INVALID\_ARGUMENT if the product does not exist. - - Returns INVALID\_ARGUMENT if bounding\_poly is not provided, and - nothing compatible with the parent product's product\_category is + - Returns INVALID_ARGUMENT if the product does not exist. + - 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 + - Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. Returns: @@ -342,25 +384,6 @@ def create_reference_image(self): """ return self._stubs["product_search_stub"].CreateReferenceImage - @property - def delete_reference_image(self): - """Return the gRPC stub for :meth:`ProductSearchClient.delete_reference_image`. - - Permanently deletes a reference image. - - The image metadata will be deleted right away, but search queries - against ProductSets containing the image may still work until all related - caches are refreshed. - - The actual image files are not deleted from Google Cloud Storage. - - Returns: - Callable: A callable which accepts the appropriate - deserialized request object and returns a - deserialized response object. - """ - return self._stubs["product_search_stub"].DeleteReferenceImage - @property def list_reference_images(self): """Return the gRPC stub for :meth:`ProductSearchClient.list_reference_images`. @@ -369,8 +392,8 @@ def list_reference_images(self): Possible errors: - - Returns NOT\_FOUND if the parent product does not exist. - - Returns INVALID\_ARGUMENT if the page\_size is greater than 100, or + - 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. Returns: @@ -388,7 +411,7 @@ def get_reference_image(self): Possible errors: - - Returns NOT\_FOUND if the specified image does not exist. + - Returns NOT_FOUND if the specified image does not exist. Returns: Callable: A callable which accepts the appropriate @@ -401,14 +424,14 @@ def get_reference_image(self): def add_product_to_product_set(self): """Return the gRPC stub for :meth:`ProductSearchClient.add_product_to_product_set`. - Adds a Product to the specified ProductSet. If the Product is already - present, no change is made. + Adds a Product to the specified ProductSet. If the Product is + already present, no change is made. One Product can be added to at most 100 ProductSets. Possible errors: - - Returns NOT\_FOUND if the Product or the ProductSet doesn't exist. + - Returns NOT_FOUND if the Product or the ProductSet doesn't exist. Returns: Callable: A callable which accepts the appropriate @@ -440,7 +463,7 @@ def list_products_in_product_set(self): Possible errors: - - Returns INVALID\_ARGUMENT if page\_size is greater than 100 or less + - Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. Returns: @@ -450,35 +473,12 @@ def list_products_in_product_set(self): """ return self._stubs["product_search_stub"].ListProductsInProductSet - @property - def import_product_sets(self): - """Return the gRPC stub for :meth:`ProductSearchClient.import_product_sets`. - - Asynchronous API that imports a list of reference images to specified - product sets based on a list of image information. - - The ``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``. - - Returns: - Callable: A callable which accepts the appropriate - deserialized request object and returns a - deserialized response object. - """ - return self._stubs["product_search_stub"].ImportProductSets - @property def purge_products(self): """Return the gRPC stub for :meth:`ProductSearchClient.purge_products`. - Asynchronous API to delete all Products in a ProductSet or all Products - that are in no ProductSet. + Asynchronous API to delete all Products in a ProductSet or all + Products that are in no ProductSet. If a Product is a member of the specified ProductSet in addition to other ProductSets, the Product will still be deleted. diff --git a/google/cloud/vision_v1p4beta1/proto/face_pb2.py b/google/cloud/vision_v1p4beta1/proto/face_pb2.py index 5632853b..fdb49b71 100644 --- a/google/cloud/vision_v1p4beta1/proto/face_pb2.py +++ b/google/cloud/vision_v1p4beta1/proto/face_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1p4beta1/proto/face.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -25,12 +22,8 @@ name="google/cloud/vision_v1p4beta1/proto/face.proto", package="google.cloud.vision.v1p4beta1", syntax="proto3", - serialized_options=_b( - "\n!com.google.cloud.vision.v1p4beta1B\016CelebrityProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision\370\001\001\242\002\004GCVN" - ), - serialized_pb=_b( - '\n.google/cloud/vision_v1p4beta1/proto/face.proto\x12\x1dgoogle.cloud.vision.v1p4beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x32google/cloud/vision_v1p4beta1/proto/geometry.proto".\n\x15\x46\x61\x63\x65RecognitionParams\x12\x15\n\rcelebrity_set\x18\x01 \x03(\t"D\n\tCelebrity\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t"h\n\x15\x46\x61\x63\x65RecognitionResult\x12;\n\tcelebrity\x18\x01 \x01(\x0b\x32(.google.cloud.vision.v1p4beta1.Celebrity\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x42\x84\x01\n!com.google.cloud.vision.v1p4beta1B\x0e\x43\x65lebrityProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision\xf8\x01\x01\xa2\x02\x04GCVNb\x06proto3' - ), + serialized_options=b"\n!com.google.cloud.vision.v1p4beta1B\016CelebrityProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision\370\001\001\242\002\004GCVN", + serialized_pb=b'\n.google/cloud/vision_v1p4beta1/proto/face.proto\x12\x1dgoogle.cloud.vision.v1p4beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x32google/cloud/vision_v1p4beta1/proto/geometry.proto".\n\x15\x46\x61\x63\x65RecognitionParams\x12\x15\n\rcelebrity_set\x18\x01 \x03(\t"D\n\tCelebrity\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t"h\n\x15\x46\x61\x63\x65RecognitionResult\x12;\n\tcelebrity\x18\x01 \x01(\x0b\x32(.google.cloud.vision.v1p4beta1.Celebrity\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x42\x84\x01\n!com.google.cloud.vision.v1p4beta1B\x0e\x43\x65lebrityProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision\xf8\x01\x01\xa2\x02\x04GCVNb\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, google_dot_cloud_dot_vision__v1p4beta1_dot_proto_dot_geometry__pb2.DESCRIPTOR, @@ -93,7 +86,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -111,7 +104,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -129,7 +122,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -217,52 +210,58 @@ FaceRecognitionParams = _reflection.GeneratedProtocolMessageType( "FaceRecognitionParams", (_message.Message,), - dict( - DESCRIPTOR=_FACERECOGNITIONPARAMS, - __module__="google.cloud.vision_v1p4beta1.proto.face_pb2", - __doc__="""Parameters for a celebrity recognition request. + { + "DESCRIPTOR": _FACERECOGNITIONPARAMS, + "__module__": "google.cloud.vision_v1p4beta1.proto.face_pb2", + "__doc__": """Parameters for a celebrity recognition request. + + Attributes: celebrity_set: The resource names for one or more [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity set is preloaded and can be specified as - "builtin/default". If this is specified, the algorithm will + “builtin/default”. If this is specified, the algorithm will try to match the faces detected in the input image to the Celebrities in the CelebritySets. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.FaceRecognitionParams) - ), + }, ) _sym_db.RegisterMessage(FaceRecognitionParams) Celebrity = _reflection.GeneratedProtocolMessageType( "Celebrity", (_message.Message,), - dict( - DESCRIPTOR=_CELEBRITY, - __module__="google.cloud.vision_v1p4beta1.proto.face_pb2", - __doc__="""A Celebrity is a group of Faces with an identity. + { + "DESCRIPTOR": _CELEBRITY, + "__module__": "google.cloud.vision_v1p4beta1.proto.face_pb2", + "__doc__": """A Celebrity is a group of Faces with an identity. + + Attributes: name: The resource name of the preloaded Celebrity. Has the format ``builtin/{mid}``. display_name: - The Celebrity's display name. + The Celebrity’s display name. description: - The Celebrity's description. + The Celebrity’s description. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.Celebrity) - ), + }, ) _sym_db.RegisterMessage(Celebrity) FaceRecognitionResult = _reflection.GeneratedProtocolMessageType( "FaceRecognitionResult", (_message.Message,), - dict( - DESCRIPTOR=_FACERECOGNITIONRESULT, - __module__="google.cloud.vision_v1p4beta1.proto.face_pb2", - __doc__="""Information about a face's identity. + { + "DESCRIPTOR": _FACERECOGNITIONRESULT, + "__module__": "google.cloud.vision_v1p4beta1.proto.face_pb2", + "__doc__": """Information about a face’s identity. + + Attributes: celebrity: The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that @@ -271,7 +270,7 @@ Recognition confidence. Range [0, 1]. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.FaceRecognitionResult) - ), + }, ) _sym_db.RegisterMessage(FaceRecognitionResult) diff --git a/google/cloud/vision_v1p4beta1/proto/geometry_pb2.py b/google/cloud/vision_v1p4beta1/proto/geometry_pb2.py index b9633070..94d25a93 100644 --- a/google/cloud/vision_v1p4beta1/proto/geometry_pb2.py +++ b/google/cloud/vision_v1p4beta1/proto/geometry_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1p4beta1/proto/geometry.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -22,12 +19,8 @@ name="google/cloud/vision_v1p4beta1/proto/geometry.proto", package="google.cloud.vision.v1p4beta1", syntax="proto3", - serialized_options=_b( - "\n!com.google.cloud.vision.v1p4beta1B\rGeometryProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision\370\001\001\242\002\004GCVN" - ), - serialized_pb=_b( - '\n2google/cloud/vision_v1p4beta1/proto/geometry.proto\x12\x1dgoogle.cloud.vision.v1p4beta1\x1a\x1cgoogle/api/annotations.proto"\x1e\n\x06Vertex\x12\t\n\x01x\x18\x01 \x01(\x05\x12\t\n\x01y\x18\x02 \x01(\x05"(\n\x10NormalizedVertex\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02"\x95\x01\n\x0c\x42oundingPoly\x12\x37\n\x08vertices\x18\x01 \x03(\x0b\x32%.google.cloud.vision.v1p4beta1.Vertex\x12L\n\x13normalized_vertices\x18\x02 \x03(\x0b\x32/.google.cloud.vision.v1p4beta1.NormalizedVertex"+\n\x08Position\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02\x12\t\n\x01z\x18\x03 \x01(\x02\x42\x83\x01\n!com.google.cloud.vision.v1p4beta1B\rGeometryProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision\xf8\x01\x01\xa2\x02\x04GCVNb\x06proto3' - ), + serialized_options=b"\n!com.google.cloud.vision.v1p4beta1B\rGeometryProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision\370\001\001\242\002\004GCVN", + serialized_pb=b'\n2google/cloud/vision_v1p4beta1/proto/geometry.proto\x12\x1dgoogle.cloud.vision.v1p4beta1\x1a\x1cgoogle/api/annotations.proto"\x1e\n\x06Vertex\x12\t\n\x01x\x18\x01 \x01(\x05\x12\t\n\x01y\x18\x02 \x01(\x05"(\n\x10NormalizedVertex\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02"\x95\x01\n\x0c\x42oundingPoly\x12\x37\n\x08vertices\x18\x01 \x03(\x0b\x32%.google.cloud.vision.v1p4beta1.Vertex\x12L\n\x13normalized_vertices\x18\x02 \x03(\x0b\x32/.google.cloud.vision.v1p4beta1.NormalizedVertex"+\n\x08Position\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02\x12\t\n\x01z\x18\x03 \x01(\x02\x42\x83\x01\n!com.google.cloud.vision.v1p4beta1B\rGeometryProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision\xf8\x01\x01\xa2\x02\x04GCVNb\x06proto3', dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR], ) @@ -288,42 +281,48 @@ Vertex = _reflection.GeneratedProtocolMessageType( "Vertex", (_message.Message,), - dict( - DESCRIPTOR=_VERTEX, - __module__="google.cloud.vision_v1p4beta1.proto.geometry_pb2", - __doc__="""X coordinate. + { + "DESCRIPTOR": _VERTEX, + "__module__": "google.cloud.vision_v1p4beta1.proto.geometry_pb2", + "__doc__": """X coordinate. + + Attributes: y: Y coordinate. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.Vertex) - ), + }, ) _sym_db.RegisterMessage(Vertex) NormalizedVertex = _reflection.GeneratedProtocolMessageType( "NormalizedVertex", (_message.Message,), - dict( - DESCRIPTOR=_NORMALIZEDVERTEX, - __module__="google.cloud.vision_v1p4beta1.proto.geometry_pb2", - __doc__="""X coordinate. + { + "DESCRIPTOR": _NORMALIZEDVERTEX, + "__module__": "google.cloud.vision_v1p4beta1.proto.geometry_pb2", + "__doc__": """X coordinate. + + Attributes: y: Y coordinate. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.NormalizedVertex) - ), + }, ) _sym_db.RegisterMessage(NormalizedVertex) BoundingPoly = _reflection.GeneratedProtocolMessageType( "BoundingPoly", (_message.Message,), - dict( - DESCRIPTOR=_BOUNDINGPOLY, - __module__="google.cloud.vision_v1p4beta1.proto.geometry_pb2", - __doc__="""A bounding polygon for the detected image annotation. + { + "DESCRIPTOR": _BOUNDINGPOLY, + "__module__": "google.cloud.vision_v1p4beta1.proto.geometry_pb2", + "__doc__": """A bounding polygon for the detected image annotation. + + Attributes: vertices: The bounding polygon vertices. @@ -331,19 +330,22 @@ The bounding polygon normalized vertices. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.BoundingPoly) - ), + }, ) _sym_db.RegisterMessage(BoundingPoly) Position = _reflection.GeneratedProtocolMessageType( "Position", (_message.Message,), - dict( - DESCRIPTOR=_POSITION, - __module__="google.cloud.vision_v1p4beta1.proto.geometry_pb2", - __doc__="""A 3D position in the image, used primarily for Face detection - landmarks. A valid Position must have both x and y coordinates. The - position coordinates are in the same scale as the original image. + { + "DESCRIPTOR": _POSITION, + "__module__": "google.cloud.vision_v1p4beta1.proto.geometry_pb2", + "__doc__": """A 3D position in the image, used primarily for Face + detection landmarks. A valid Position must have both x and y + coordinates. The position coordinates are in the same scale as the + original image. + + Attributes: x: X coordinate. @@ -353,7 +355,7 @@ Z coordinate (or depth). """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.Position) - ), + }, ) _sym_db.RegisterMessage(Position) diff --git a/google/cloud/vision_v1p4beta1/proto/image_annotator_pb2.py b/google/cloud/vision_v1p4beta1/proto/image_annotator_pb2.py index 61d99e14..14ee6367 100644 --- a/google/cloud/vision_v1p4beta1/proto/image_annotator_pb2.py +++ b/google/cloud/vision_v1p4beta1/proto/image_annotator_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1p4beta1/proto/image_annotator.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message @@ -48,12 +45,8 @@ name="google/cloud/vision_v1p4beta1/proto/image_annotator.proto", package="google.cloud.vision.v1p4beta1", syntax="proto3", - serialized_options=_b( - "\n!com.google.cloud.vision.v1p4beta1B\023ImageAnnotatorProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision\370\001\001\242\002\004GCVN" - ), - serialized_pb=_b( - '\n9google/cloud/vision_v1p4beta1/proto/image_annotator.proto\x12\x1dgoogle.cloud.vision.v1p4beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a.google/cloud/vision_v1p4beta1/proto/face.proto\x1a\x32google/cloud/vision_v1p4beta1/proto/geometry.proto\x1a\x38google/cloud/vision_v1p4beta1/proto/product_search.proto\x1a\x39google/cloud/vision_v1p4beta1/proto/text_annotation.proto\x1a\x37google/cloud/vision_v1p4beta1/proto/web_detection.proto\x1a#google/longrunning/operations.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a\x17google/type/color.proto\x1a\x18google/type/latlng.proto"\x8e\x03\n\x07\x46\x65\x61ture\x12\x39\n\x04type\x18\x01 \x01(\x0e\x32+.google.cloud.vision.v1p4beta1.Feature.Type\x12\x13\n\x0bmax_results\x18\x02 \x01(\x05\x12\r\n\x05model\x18\x03 \x01(\t"\xa3\x02\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x46\x41\x43\x45_DETECTION\x10\x01\x12\x16\n\x12LANDMARK_DETECTION\x10\x02\x12\x12\n\x0eLOGO_DETECTION\x10\x03\x12\x13\n\x0fLABEL_DETECTION\x10\x04\x12\x12\n\x0eTEXT_DETECTION\x10\x05\x12\x1b\n\x17\x44OCUMENT_TEXT_DETECTION\x10\x0b\x12\x19\n\x15SAFE_SEARCH_DETECTION\x10\x06\x12\x14\n\x10IMAGE_PROPERTIES\x10\x07\x12\x0e\n\nCROP_HINTS\x10\t\x12\x11\n\rWEB_DETECTION\x10\n\x12\x12\n\x0ePRODUCT_SEARCH\x10\x0c\x12\x17\n\x13OBJECT_LOCALIZATION\x10\x13"7\n\x0bImageSource\x12\x15\n\rgcs_image_uri\x18\x01 \x01(\t\x12\x11\n\timage_uri\x18\x02 \x01(\t"T\n\x05Image\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\x0c\x12:\n\x06source\x18\x02 \x01(\x0b\x32*.google.cloud.vision.v1p4beta1.ImageSource"\xed\x0e\n\x0e\x46\x61\x63\x65\x41nnotation\x12\x42\n\rbounding_poly\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.BoundingPoly\x12\x45\n\x10\x66\x64_bounding_poly\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.BoundingPoly\x12I\n\tlandmarks\x18\x03 \x03(\x0b\x32\x36.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark\x12\x12\n\nroll_angle\x18\x04 \x01(\x02\x12\x11\n\tpan_angle\x18\x05 \x01(\x02\x12\x12\n\ntilt_angle\x18\x06 \x01(\x02\x12\x1c\n\x14\x64\x65tection_confidence\x18\x07 \x01(\x02\x12\x1e\n\x16landmarking_confidence\x18\x08 \x01(\x02\x12\x41\n\x0ejoy_likelihood\x18\t \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood\x12\x44\n\x11sorrow_likelihood\x18\n \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood\x12\x43\n\x10\x61nger_likelihood\x18\x0b \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood\x12\x46\n\x13surprise_likelihood\x18\x0c \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood\x12K\n\x18under_exposed_likelihood\x18\r \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood\x12\x45\n\x12\x62lurred_likelihood\x18\x0e \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood\x12\x46\n\x13headwear_likelihood\x18\x0f \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood\x12P\n\x12recognition_result\x18\x10 \x03(\x0b\x32\x34.google.cloud.vision.v1p4beta1.FaceRecognitionResult\x1a\xc7\x07\n\x08Landmark\x12I\n\x04type\x18\x03 \x01(\x0e\x32;.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type\x12\x39\n\x08position\x18\x04 \x01(\x0b\x32\'.google.cloud.vision.v1p4beta1.Position"\xb4\x06\n\x04Type\x12\x14\n\x10UNKNOWN_LANDMARK\x10\x00\x12\x0c\n\x08LEFT_EYE\x10\x01\x12\r\n\tRIGHT_EYE\x10\x02\x12\x18\n\x14LEFT_OF_LEFT_EYEBROW\x10\x03\x12\x19\n\x15RIGHT_OF_LEFT_EYEBROW\x10\x04\x12\x19\n\x15LEFT_OF_RIGHT_EYEBROW\x10\x05\x12\x1a\n\x16RIGHT_OF_RIGHT_EYEBROW\x10\x06\x12\x19\n\x15MIDPOINT_BETWEEN_EYES\x10\x07\x12\x0c\n\x08NOSE_TIP\x10\x08\x12\r\n\tUPPER_LIP\x10\t\x12\r\n\tLOWER_LIP\x10\n\x12\x0e\n\nMOUTH_LEFT\x10\x0b\x12\x0f\n\x0bMOUTH_RIGHT\x10\x0c\x12\x10\n\x0cMOUTH_CENTER\x10\r\x12\x15\n\x11NOSE_BOTTOM_RIGHT\x10\x0e\x12\x14\n\x10NOSE_BOTTOM_LEFT\x10\x0f\x12\x16\n\x12NOSE_BOTTOM_CENTER\x10\x10\x12\x19\n\x15LEFT_EYE_TOP_BOUNDARY\x10\x11\x12\x19\n\x15LEFT_EYE_RIGHT_CORNER\x10\x12\x12\x1c\n\x18LEFT_EYE_BOTTOM_BOUNDARY\x10\x13\x12\x18\n\x14LEFT_EYE_LEFT_CORNER\x10\x14\x12\x1a\n\x16RIGHT_EYE_TOP_BOUNDARY\x10\x15\x12\x1a\n\x16RIGHT_EYE_RIGHT_CORNER\x10\x16\x12\x1d\n\x19RIGHT_EYE_BOTTOM_BOUNDARY\x10\x17\x12\x19\n\x15RIGHT_EYE_LEFT_CORNER\x10\x18\x12\x1f\n\x1bLEFT_EYEBROW_UPPER_MIDPOINT\x10\x19\x12 \n\x1cRIGHT_EYEBROW_UPPER_MIDPOINT\x10\x1a\x12\x14\n\x10LEFT_EAR_TRAGION\x10\x1b\x12\x15\n\x11RIGHT_EAR_TRAGION\x10\x1c\x12\x12\n\x0eLEFT_EYE_PUPIL\x10\x1d\x12\x13\n\x0fRIGHT_EYE_PUPIL\x10\x1e\x12\x15\n\x11\x46OREHEAD_GLABELLA\x10\x1f\x12\x11\n\rCHIN_GNATHION\x10 \x12\x14\n\x10\x43HIN_LEFT_GONION\x10!\x12\x15\n\x11\x43HIN_RIGHT_GONION\x10""4\n\x0cLocationInfo\x12$\n\x07lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng"=\n\x08Property\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x14\n\x0cuint64_value\x18\x03 \x01(\x04"\xc0\x02\n\x10\x45ntityAnnotation\x12\x0b\n\x03mid\x18\x01 \x01(\t\x12\x0e\n\x06locale\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\r\n\x05score\x18\x04 \x01(\x02\x12\x16\n\nconfidence\x18\x05 \x01(\x02\x42\x02\x18\x01\x12\x12\n\ntopicality\x18\x06 \x01(\x02\x12\x42\n\rbounding_poly\x18\x07 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.BoundingPoly\x12>\n\tlocations\x18\x08 \x03(\x0b\x32+.google.cloud.vision.v1p4beta1.LocationInfo\x12;\n\nproperties\x18\t \x03(\x0b\x32\'.google.cloud.vision.v1p4beta1.Property"\xa0\x01\n\x19LocalizedObjectAnnotation\x12\x0b\n\x03mid\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\r\n\x05score\x18\x04 \x01(\x02\x12\x42\n\rbounding_poly\x18\x05 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.BoundingPoly"\xbc\x02\n\x14SafeSearchAnnotation\x12\x38\n\x05\x61\x64ult\x18\x01 \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood\x12\x38\n\x05spoof\x18\x02 \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood\x12:\n\x07medical\x18\x03 \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood\x12;\n\x08violence\x18\x04 \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood\x12\x37\n\x04racy\x18\t \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood"a\n\x0bLatLongRect\x12(\n\x0bmin_lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng\x12(\n\x0bmax_lat_lng\x18\x02 \x01(\x0b\x32\x13.google.type.LatLng"U\n\tColorInfo\x12!\n\x05\x63olor\x18\x01 \x01(\x0b\x32\x12.google.type.Color\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x16\n\x0epixel_fraction\x18\x03 \x01(\x02"T\n\x18\x44ominantColorsAnnotation\x12\x38\n\x06\x63olors\x18\x01 \x03(\x0b\x32(.google.cloud.vision.v1p4beta1.ColorInfo"c\n\x0fImageProperties\x12P\n\x0f\x64ominant_colors\x18\x01 \x01(\x0b\x32\x37.google.cloud.vision.v1p4beta1.DominantColorsAnnotation"\x7f\n\x08\x43ropHint\x12\x42\n\rbounding_poly\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.BoundingPoly\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12\x1b\n\x13importance_fraction\x18\x03 \x01(\x02"R\n\x13\x43ropHintsAnnotation\x12;\n\ncrop_hints\x18\x01 \x03(\x0b\x32\'.google.cloud.vision.v1p4beta1.CropHint"(\n\x0f\x43ropHintsParams\x12\x15\n\raspect_ratios\x18\x01 \x03(\x02"1\n\x12WebDetectionParams\x12\x1b\n\x13include_geo_results\x18\x02 \x01(\x08"\xaf\x03\n\x0cImageContext\x12\x41\n\rlat_long_rect\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p4beta1.LatLongRect\x12\x16\n\x0elanguage_hints\x18\x02 \x03(\t\x12I\n\x11\x63rop_hints_params\x18\x04 \x01(\x0b\x32..google.cloud.vision.v1p4beta1.CropHintsParams\x12U\n\x17\x66\x61\x63\x65_recognition_params\x18\n \x01(\x0b\x32\x34.google.cloud.vision.v1p4beta1.FaceRecognitionParams\x12Q\n\x15product_search_params\x18\x05 \x01(\x0b\x32\x32.google.cloud.vision.v1p4beta1.ProductSearchParams\x12O\n\x14web_detection_params\x18\x06 \x01(\x0b\x32\x31.google.cloud.vision.v1p4beta1.WebDetectionParams"\xc9\x01\n\x14\x41nnotateImageRequest\x12\x33\n\x05image\x18\x01 \x01(\x0b\x32$.google.cloud.vision.v1p4beta1.Image\x12\x38\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32&.google.cloud.vision.v1p4beta1.Feature\x12\x42\n\rimage_context\x18\x03 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.ImageContext":\n\x16ImageAnnotationContext\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x13\n\x0bpage_number\x18\x02 \x01(\x05"\xbf\x08\n\x15\x41nnotateImageResponse\x12G\n\x10\x66\x61\x63\x65_annotations\x18\x01 \x03(\x0b\x32-.google.cloud.vision.v1p4beta1.FaceAnnotation\x12M\n\x14landmark_annotations\x18\x02 \x03(\x0b\x32/.google.cloud.vision.v1p4beta1.EntityAnnotation\x12I\n\x10logo_annotations\x18\x03 \x03(\x0b\x32/.google.cloud.vision.v1p4beta1.EntityAnnotation\x12J\n\x11label_annotations\x18\x04 \x03(\x0b\x32/.google.cloud.vision.v1p4beta1.EntityAnnotation\x12^\n\x1clocalized_object_annotations\x18\x16 \x03(\x0b\x32\x38.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation\x12I\n\x10text_annotations\x18\x05 \x03(\x0b\x32/.google.cloud.vision.v1p4beta1.EntityAnnotation\x12K\n\x14\x66ull_text_annotation\x18\x0c \x01(\x0b\x32-.google.cloud.vision.v1p4beta1.TextAnnotation\x12S\n\x16safe_search_annotation\x18\x06 \x01(\x0b\x32\x33.google.cloud.vision.v1p4beta1.SafeSearchAnnotation\x12S\n\x1bimage_properties_annotation\x18\x08 \x01(\x0b\x32..google.cloud.vision.v1p4beta1.ImageProperties\x12Q\n\x15\x63rop_hints_annotation\x18\x0b \x01(\x0b\x32\x32.google.cloud.vision.v1p4beta1.CropHintsAnnotation\x12\x42\n\rweb_detection\x18\r \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.WebDetection\x12S\n\x16product_search_results\x18\x0e \x01(\x0b\x32\x33.google.cloud.vision.v1p4beta1.ProductSearchResults\x12!\n\x05\x65rror\x18\t \x01(\x0b\x32\x12.google.rpc.Status\x12\x46\n\x07\x63ontext\x18\x15 \x01(\x0b\x32\x35.google.cloud.vision.v1p4beta1.ImageAnnotationContext"h\n\x1a\x42\x61tchAnnotateImagesRequest\x12J\n\x08requests\x18\x01 \x03(\x0b\x32\x33.google.cloud.vision.v1p4beta1.AnnotateImageRequestB\x03\xe0\x41\x02"f\n\x1b\x42\x61tchAnnotateImagesResponse\x12G\n\tresponses\x18\x01 \x03(\x0b\x32\x34.google.cloud.vision.v1p4beta1.AnnotateImageResponse"\xe4\x01\n\x13\x41nnotateFileRequest\x12@\n\x0cinput_config\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p4beta1.InputConfig\x12\x38\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32&.google.cloud.vision.v1p4beta1.Feature\x12\x42\n\rimage_context\x18\x03 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.ImageContext\x12\r\n\x05pages\x18\x04 \x03(\x05"\xd9\x01\n\x14\x41nnotateFileResponse\x12@\n\x0cinput_config\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p4beta1.InputConfig\x12G\n\tresponses\x18\x02 \x03(\x0b\x32\x34.google.cloud.vision.v1p4beta1.AnnotateImageResponse\x12\x13\n\x0btotal_pages\x18\x03 \x01(\x05\x12!\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x12.google.rpc.Status"f\n\x19\x42\x61tchAnnotateFilesRequest\x12I\n\x08requests\x18\x01 \x03(\x0b\x32\x32.google.cloud.vision.v1p4beta1.AnnotateFileRequestB\x03\xe0\x41\x02"d\n\x1a\x42\x61tchAnnotateFilesResponse\x12\x46\n\tresponses\x18\x01 \x03(\x0b\x32\x33.google.cloud.vision.v1p4beta1.AnnotateFileResponse"\x9e\x02\n\x18\x41syncAnnotateFileRequest\x12@\n\x0cinput_config\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p4beta1.InputConfig\x12\x38\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32&.google.cloud.vision.v1p4beta1.Feature\x12\x42\n\rimage_context\x18\x03 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.ImageContext\x12\x42\n\routput_config\x18\x04 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.OutputConfig"_\n\x19\x41syncAnnotateFileResponse\x12\x42\n\routput_config\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.OutputConfig"\xb6\x01\n\x1f\x41syncBatchAnnotateImagesRequest\x12J\n\x08requests\x18\x01 \x03(\x0b\x32\x33.google.cloud.vision.v1p4beta1.AnnotateImageRequestB\x03\xe0\x41\x02\x12G\n\routput_config\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.OutputConfigB\x03\xe0\x41\x02"f\n AsyncBatchAnnotateImagesResponse\x12\x42\n\routput_config\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.OutputConfig"p\n\x1e\x41syncBatchAnnotateFilesRequest\x12N\n\x08requests\x18\x01 \x03(\x0b\x32\x37.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestB\x03\xe0\x41\x02"n\n\x1f\x41syncBatchAnnotateFilesResponse\x12K\n\tresponses\x18\x01 \x03(\x0b\x32\x38.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse"o\n\x0bInputConfig\x12<\n\ngcs_source\x18\x01 \x01(\x0b\x32(.google.cloud.vision.v1p4beta1.GcsSource\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\x0c\x12\x11\n\tmime_type\x18\x02 \x01(\t"j\n\x0cOutputConfig\x12\x46\n\x0fgcs_destination\x18\x01 \x01(\x0b\x32-.google.cloud.vision.v1p4beta1.GcsDestination\x12\x12\n\nbatch_size\x18\x02 \x01(\x05"\x18\n\tGcsSource\x12\x0b\n\x03uri\x18\x01 \x01(\t"\x1d\n\x0eGcsDestination\x12\x0b\n\x03uri\x18\x01 \x01(\t"\x8f\x02\n\x11OperationMetadata\x12\x45\n\x05state\x18\x01 \x01(\x0e\x32\x36.google.cloud.vision.v1p4beta1.OperationMetadata.State\x12/\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"Q\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x43REATED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x08\n\x04\x44ONE\x10\x03\x12\r\n\tCANCELLED\x10\x04*e\n\nLikelihood\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x11\n\rVERY_UNLIKELY\x10\x01\x12\x0c\n\x08UNLIKELY\x10\x02\x12\x0c\n\x08POSSIBLE\x10\x03\x12\n\n\x06LIKELY\x10\x04\x12\x0f\n\x0bVERY_LIKELY\x10\x05\x32\xf1\x07\n\x0eImageAnnotator\x12\xbe\x01\n\x13\x42\x61tchAnnotateImages\x12\x39.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest\x1a:.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse"0\x82\xd3\xe4\x93\x02\x1f"\x1a/v1p4beta1/images:annotate:\x01*\xda\x41\x08requests\x12\xba\x01\n\x12\x42\x61tchAnnotateFiles\x12\x38.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest\x1a\x39.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse"/\x82\xd3\xe4\x93\x02\x1e"\x19/v1p4beta1/files:annotate:\x01*\xda\x41\x08requests\x12\xfc\x01\n\x18\x41syncBatchAnnotateImages\x12>.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest\x1a\x1d.google.longrunning.Operation"\x80\x01\x82\xd3\xe4\x93\x02)"$/v1p4beta1/images:asyncBatchAnnotate:\x01*\xda\x41\x16requests,output_config\xca\x41\x35\n AsyncBatchAnnotateImagesResponse\x12\x11OperationMetadata\x12\xe9\x01\n\x17\x41syncBatchAnnotateFiles\x12=.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest\x1a\x1d.google.longrunning.Operation"p\x82\xd3\xe4\x93\x02("#/v1p4beta1/files:asyncBatchAnnotate:\x01*\xda\x41\x08requests\xca\x41\x34\n\x1f\x41syncBatchAnnotateFilesResponse\x12\x11OperationMetadata\x1av\xca\x41\x15vision.googleapis.com\xd2\x41[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-visionB\x89\x01\n!com.google.cloud.vision.v1p4beta1B\x13ImageAnnotatorProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision\xf8\x01\x01\xa2\x02\x04GCVNb\x06proto3' - ), + serialized_options=b"\n!com.google.cloud.vision.v1p4beta1B\023ImageAnnotatorProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision\370\001\001\242\002\004GCVN", + serialized_pb=b'\n9google/cloud/vision_v1p4beta1/proto/image_annotator.proto\x12\x1dgoogle.cloud.vision.v1p4beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a.google/cloud/vision_v1p4beta1/proto/face.proto\x1a\x32google/cloud/vision_v1p4beta1/proto/geometry.proto\x1a\x38google/cloud/vision_v1p4beta1/proto/product_search.proto\x1a\x39google/cloud/vision_v1p4beta1/proto/text_annotation.proto\x1a\x37google/cloud/vision_v1p4beta1/proto/web_detection.proto\x1a#google/longrunning/operations.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a\x17google/type/color.proto\x1a\x18google/type/latlng.proto"\x8e\x03\n\x07\x46\x65\x61ture\x12\x39\n\x04type\x18\x01 \x01(\x0e\x32+.google.cloud.vision.v1p4beta1.Feature.Type\x12\x13\n\x0bmax_results\x18\x02 \x01(\x05\x12\r\n\x05model\x18\x03 \x01(\t"\xa3\x02\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x46\x41\x43\x45_DETECTION\x10\x01\x12\x16\n\x12LANDMARK_DETECTION\x10\x02\x12\x12\n\x0eLOGO_DETECTION\x10\x03\x12\x13\n\x0fLABEL_DETECTION\x10\x04\x12\x12\n\x0eTEXT_DETECTION\x10\x05\x12\x1b\n\x17\x44OCUMENT_TEXT_DETECTION\x10\x0b\x12\x19\n\x15SAFE_SEARCH_DETECTION\x10\x06\x12\x14\n\x10IMAGE_PROPERTIES\x10\x07\x12\x0e\n\nCROP_HINTS\x10\t\x12\x11\n\rWEB_DETECTION\x10\n\x12\x12\n\x0ePRODUCT_SEARCH\x10\x0c\x12\x17\n\x13OBJECT_LOCALIZATION\x10\x13"7\n\x0bImageSource\x12\x15\n\rgcs_image_uri\x18\x01 \x01(\t\x12\x11\n\timage_uri\x18\x02 \x01(\t"T\n\x05Image\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\x0c\x12:\n\x06source\x18\x02 \x01(\x0b\x32*.google.cloud.vision.v1p4beta1.ImageSource"\xed\x0e\n\x0e\x46\x61\x63\x65\x41nnotation\x12\x42\n\rbounding_poly\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.BoundingPoly\x12\x45\n\x10\x66\x64_bounding_poly\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.BoundingPoly\x12I\n\tlandmarks\x18\x03 \x03(\x0b\x32\x36.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark\x12\x12\n\nroll_angle\x18\x04 \x01(\x02\x12\x11\n\tpan_angle\x18\x05 \x01(\x02\x12\x12\n\ntilt_angle\x18\x06 \x01(\x02\x12\x1c\n\x14\x64\x65tection_confidence\x18\x07 \x01(\x02\x12\x1e\n\x16landmarking_confidence\x18\x08 \x01(\x02\x12\x41\n\x0ejoy_likelihood\x18\t \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood\x12\x44\n\x11sorrow_likelihood\x18\n \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood\x12\x43\n\x10\x61nger_likelihood\x18\x0b \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood\x12\x46\n\x13surprise_likelihood\x18\x0c \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood\x12K\n\x18under_exposed_likelihood\x18\r \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood\x12\x45\n\x12\x62lurred_likelihood\x18\x0e \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood\x12\x46\n\x13headwear_likelihood\x18\x0f \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood\x12P\n\x12recognition_result\x18\x10 \x03(\x0b\x32\x34.google.cloud.vision.v1p4beta1.FaceRecognitionResult\x1a\xc7\x07\n\x08Landmark\x12I\n\x04type\x18\x03 \x01(\x0e\x32;.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type\x12\x39\n\x08position\x18\x04 \x01(\x0b\x32\'.google.cloud.vision.v1p4beta1.Position"\xb4\x06\n\x04Type\x12\x14\n\x10UNKNOWN_LANDMARK\x10\x00\x12\x0c\n\x08LEFT_EYE\x10\x01\x12\r\n\tRIGHT_EYE\x10\x02\x12\x18\n\x14LEFT_OF_LEFT_EYEBROW\x10\x03\x12\x19\n\x15RIGHT_OF_LEFT_EYEBROW\x10\x04\x12\x19\n\x15LEFT_OF_RIGHT_EYEBROW\x10\x05\x12\x1a\n\x16RIGHT_OF_RIGHT_EYEBROW\x10\x06\x12\x19\n\x15MIDPOINT_BETWEEN_EYES\x10\x07\x12\x0c\n\x08NOSE_TIP\x10\x08\x12\r\n\tUPPER_LIP\x10\t\x12\r\n\tLOWER_LIP\x10\n\x12\x0e\n\nMOUTH_LEFT\x10\x0b\x12\x0f\n\x0bMOUTH_RIGHT\x10\x0c\x12\x10\n\x0cMOUTH_CENTER\x10\r\x12\x15\n\x11NOSE_BOTTOM_RIGHT\x10\x0e\x12\x14\n\x10NOSE_BOTTOM_LEFT\x10\x0f\x12\x16\n\x12NOSE_BOTTOM_CENTER\x10\x10\x12\x19\n\x15LEFT_EYE_TOP_BOUNDARY\x10\x11\x12\x19\n\x15LEFT_EYE_RIGHT_CORNER\x10\x12\x12\x1c\n\x18LEFT_EYE_BOTTOM_BOUNDARY\x10\x13\x12\x18\n\x14LEFT_EYE_LEFT_CORNER\x10\x14\x12\x1a\n\x16RIGHT_EYE_TOP_BOUNDARY\x10\x15\x12\x1a\n\x16RIGHT_EYE_RIGHT_CORNER\x10\x16\x12\x1d\n\x19RIGHT_EYE_BOTTOM_BOUNDARY\x10\x17\x12\x19\n\x15RIGHT_EYE_LEFT_CORNER\x10\x18\x12\x1f\n\x1bLEFT_EYEBROW_UPPER_MIDPOINT\x10\x19\x12 \n\x1cRIGHT_EYEBROW_UPPER_MIDPOINT\x10\x1a\x12\x14\n\x10LEFT_EAR_TRAGION\x10\x1b\x12\x15\n\x11RIGHT_EAR_TRAGION\x10\x1c\x12\x12\n\x0eLEFT_EYE_PUPIL\x10\x1d\x12\x13\n\x0fRIGHT_EYE_PUPIL\x10\x1e\x12\x15\n\x11\x46OREHEAD_GLABELLA\x10\x1f\x12\x11\n\rCHIN_GNATHION\x10 \x12\x14\n\x10\x43HIN_LEFT_GONION\x10!\x12\x15\n\x11\x43HIN_RIGHT_GONION\x10""4\n\x0cLocationInfo\x12$\n\x07lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng"=\n\x08Property\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x14\n\x0cuint64_value\x18\x03 \x01(\x04"\xc0\x02\n\x10\x45ntityAnnotation\x12\x0b\n\x03mid\x18\x01 \x01(\t\x12\x0e\n\x06locale\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\r\n\x05score\x18\x04 \x01(\x02\x12\x16\n\nconfidence\x18\x05 \x01(\x02\x42\x02\x18\x01\x12\x12\n\ntopicality\x18\x06 \x01(\x02\x12\x42\n\rbounding_poly\x18\x07 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.BoundingPoly\x12>\n\tlocations\x18\x08 \x03(\x0b\x32+.google.cloud.vision.v1p4beta1.LocationInfo\x12;\n\nproperties\x18\t \x03(\x0b\x32\'.google.cloud.vision.v1p4beta1.Property"\xa0\x01\n\x19LocalizedObjectAnnotation\x12\x0b\n\x03mid\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\r\n\x05score\x18\x04 \x01(\x02\x12\x42\n\rbounding_poly\x18\x05 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.BoundingPoly"\xbc\x02\n\x14SafeSearchAnnotation\x12\x38\n\x05\x61\x64ult\x18\x01 \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood\x12\x38\n\x05spoof\x18\x02 \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood\x12:\n\x07medical\x18\x03 \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood\x12;\n\x08violence\x18\x04 \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood\x12\x37\n\x04racy\x18\t \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood"a\n\x0bLatLongRect\x12(\n\x0bmin_lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng\x12(\n\x0bmax_lat_lng\x18\x02 \x01(\x0b\x32\x13.google.type.LatLng"U\n\tColorInfo\x12!\n\x05\x63olor\x18\x01 \x01(\x0b\x32\x12.google.type.Color\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x16\n\x0epixel_fraction\x18\x03 \x01(\x02"T\n\x18\x44ominantColorsAnnotation\x12\x38\n\x06\x63olors\x18\x01 \x03(\x0b\x32(.google.cloud.vision.v1p4beta1.ColorInfo"c\n\x0fImageProperties\x12P\n\x0f\x64ominant_colors\x18\x01 \x01(\x0b\x32\x37.google.cloud.vision.v1p4beta1.DominantColorsAnnotation"\x7f\n\x08\x43ropHint\x12\x42\n\rbounding_poly\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.BoundingPoly\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12\x1b\n\x13importance_fraction\x18\x03 \x01(\x02"R\n\x13\x43ropHintsAnnotation\x12;\n\ncrop_hints\x18\x01 \x03(\x0b\x32\'.google.cloud.vision.v1p4beta1.CropHint"(\n\x0f\x43ropHintsParams\x12\x15\n\raspect_ratios\x18\x01 \x03(\x02"1\n\x12WebDetectionParams\x12\x1b\n\x13include_geo_results\x18\x02 \x01(\x08"\xaf\x03\n\x0cImageContext\x12\x41\n\rlat_long_rect\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p4beta1.LatLongRect\x12\x16\n\x0elanguage_hints\x18\x02 \x03(\t\x12I\n\x11\x63rop_hints_params\x18\x04 \x01(\x0b\x32..google.cloud.vision.v1p4beta1.CropHintsParams\x12U\n\x17\x66\x61\x63\x65_recognition_params\x18\n \x01(\x0b\x32\x34.google.cloud.vision.v1p4beta1.FaceRecognitionParams\x12Q\n\x15product_search_params\x18\x05 \x01(\x0b\x32\x32.google.cloud.vision.v1p4beta1.ProductSearchParams\x12O\n\x14web_detection_params\x18\x06 \x01(\x0b\x32\x31.google.cloud.vision.v1p4beta1.WebDetectionParams"\xc9\x01\n\x14\x41nnotateImageRequest\x12\x33\n\x05image\x18\x01 \x01(\x0b\x32$.google.cloud.vision.v1p4beta1.Image\x12\x38\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32&.google.cloud.vision.v1p4beta1.Feature\x12\x42\n\rimage_context\x18\x03 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.ImageContext":\n\x16ImageAnnotationContext\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x13\n\x0bpage_number\x18\x02 \x01(\x05"\xbf\x08\n\x15\x41nnotateImageResponse\x12G\n\x10\x66\x61\x63\x65_annotations\x18\x01 \x03(\x0b\x32-.google.cloud.vision.v1p4beta1.FaceAnnotation\x12M\n\x14landmark_annotations\x18\x02 \x03(\x0b\x32/.google.cloud.vision.v1p4beta1.EntityAnnotation\x12I\n\x10logo_annotations\x18\x03 \x03(\x0b\x32/.google.cloud.vision.v1p4beta1.EntityAnnotation\x12J\n\x11label_annotations\x18\x04 \x03(\x0b\x32/.google.cloud.vision.v1p4beta1.EntityAnnotation\x12^\n\x1clocalized_object_annotations\x18\x16 \x03(\x0b\x32\x38.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation\x12I\n\x10text_annotations\x18\x05 \x03(\x0b\x32/.google.cloud.vision.v1p4beta1.EntityAnnotation\x12K\n\x14\x66ull_text_annotation\x18\x0c \x01(\x0b\x32-.google.cloud.vision.v1p4beta1.TextAnnotation\x12S\n\x16safe_search_annotation\x18\x06 \x01(\x0b\x32\x33.google.cloud.vision.v1p4beta1.SafeSearchAnnotation\x12S\n\x1bimage_properties_annotation\x18\x08 \x01(\x0b\x32..google.cloud.vision.v1p4beta1.ImageProperties\x12Q\n\x15\x63rop_hints_annotation\x18\x0b \x01(\x0b\x32\x32.google.cloud.vision.v1p4beta1.CropHintsAnnotation\x12\x42\n\rweb_detection\x18\r \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.WebDetection\x12S\n\x16product_search_results\x18\x0e \x01(\x0b\x32\x33.google.cloud.vision.v1p4beta1.ProductSearchResults\x12!\n\x05\x65rror\x18\t \x01(\x0b\x32\x12.google.rpc.Status\x12\x46\n\x07\x63ontext\x18\x15 \x01(\x0b\x32\x35.google.cloud.vision.v1p4beta1.ImageAnnotationContext"h\n\x1a\x42\x61tchAnnotateImagesRequest\x12J\n\x08requests\x18\x01 \x03(\x0b\x32\x33.google.cloud.vision.v1p4beta1.AnnotateImageRequestB\x03\xe0\x41\x02"f\n\x1b\x42\x61tchAnnotateImagesResponse\x12G\n\tresponses\x18\x01 \x03(\x0b\x32\x34.google.cloud.vision.v1p4beta1.AnnotateImageResponse"\xe4\x01\n\x13\x41nnotateFileRequest\x12@\n\x0cinput_config\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p4beta1.InputConfig\x12\x38\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32&.google.cloud.vision.v1p4beta1.Feature\x12\x42\n\rimage_context\x18\x03 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.ImageContext\x12\r\n\x05pages\x18\x04 \x03(\x05"\xd9\x01\n\x14\x41nnotateFileResponse\x12@\n\x0cinput_config\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p4beta1.InputConfig\x12G\n\tresponses\x18\x02 \x03(\x0b\x32\x34.google.cloud.vision.v1p4beta1.AnnotateImageResponse\x12\x13\n\x0btotal_pages\x18\x03 \x01(\x05\x12!\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x12.google.rpc.Status"f\n\x19\x42\x61tchAnnotateFilesRequest\x12I\n\x08requests\x18\x01 \x03(\x0b\x32\x32.google.cloud.vision.v1p4beta1.AnnotateFileRequestB\x03\xe0\x41\x02"d\n\x1a\x42\x61tchAnnotateFilesResponse\x12\x46\n\tresponses\x18\x01 \x03(\x0b\x32\x33.google.cloud.vision.v1p4beta1.AnnotateFileResponse"\x9e\x02\n\x18\x41syncAnnotateFileRequest\x12@\n\x0cinput_config\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p4beta1.InputConfig\x12\x38\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32&.google.cloud.vision.v1p4beta1.Feature\x12\x42\n\rimage_context\x18\x03 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.ImageContext\x12\x42\n\routput_config\x18\x04 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.OutputConfig"_\n\x19\x41syncAnnotateFileResponse\x12\x42\n\routput_config\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.OutputConfig"\xb6\x01\n\x1f\x41syncBatchAnnotateImagesRequest\x12J\n\x08requests\x18\x01 \x03(\x0b\x32\x33.google.cloud.vision.v1p4beta1.AnnotateImageRequestB\x03\xe0\x41\x02\x12G\n\routput_config\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.OutputConfigB\x03\xe0\x41\x02"f\n AsyncBatchAnnotateImagesResponse\x12\x42\n\routput_config\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.OutputConfig"p\n\x1e\x41syncBatchAnnotateFilesRequest\x12N\n\x08requests\x18\x01 \x03(\x0b\x32\x37.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestB\x03\xe0\x41\x02"n\n\x1f\x41syncBatchAnnotateFilesResponse\x12K\n\tresponses\x18\x01 \x03(\x0b\x32\x38.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse"o\n\x0bInputConfig\x12<\n\ngcs_source\x18\x01 \x01(\x0b\x32(.google.cloud.vision.v1p4beta1.GcsSource\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\x0c\x12\x11\n\tmime_type\x18\x02 \x01(\t"j\n\x0cOutputConfig\x12\x46\n\x0fgcs_destination\x18\x01 \x01(\x0b\x32-.google.cloud.vision.v1p4beta1.GcsDestination\x12\x12\n\nbatch_size\x18\x02 \x01(\x05"\x18\n\tGcsSource\x12\x0b\n\x03uri\x18\x01 \x01(\t"\x1d\n\x0eGcsDestination\x12\x0b\n\x03uri\x18\x01 \x01(\t"\x8f\x02\n\x11OperationMetadata\x12\x45\n\x05state\x18\x01 \x01(\x0e\x32\x36.google.cloud.vision.v1p4beta1.OperationMetadata.State\x12/\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"Q\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x43REATED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x08\n\x04\x44ONE\x10\x03\x12\r\n\tCANCELLED\x10\x04*e\n\nLikelihood\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x11\n\rVERY_UNLIKELY\x10\x01\x12\x0c\n\x08UNLIKELY\x10\x02\x12\x0c\n\x08POSSIBLE\x10\x03\x12\n\n\x06LIKELY\x10\x04\x12\x0f\n\x0bVERY_LIKELY\x10\x05\x32\xf1\x07\n\x0eImageAnnotator\x12\xbe\x01\n\x13\x42\x61tchAnnotateImages\x12\x39.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest\x1a:.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse"0\x82\xd3\xe4\x93\x02\x1f"\x1a/v1p4beta1/images:annotate:\x01*\xda\x41\x08requests\x12\xba\x01\n\x12\x42\x61tchAnnotateFiles\x12\x38.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest\x1a\x39.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse"/\x82\xd3\xe4\x93\x02\x1e"\x19/v1p4beta1/files:annotate:\x01*\xda\x41\x08requests\x12\xfc\x01\n\x18\x41syncBatchAnnotateImages\x12>.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest\x1a\x1d.google.longrunning.Operation"\x80\x01\x82\xd3\xe4\x93\x02)"$/v1p4beta1/images:asyncBatchAnnotate:\x01*\xda\x41\x16requests,output_config\xca\x41\x35\n AsyncBatchAnnotateImagesResponse\x12\x11OperationMetadata\x12\xe9\x01\n\x17\x41syncBatchAnnotateFiles\x12=.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest\x1a\x1d.google.longrunning.Operation"p\x82\xd3\xe4\x93\x02("#/v1p4beta1/files:asyncBatchAnnotate:\x01*\xda\x41\x08requests\xca\x41\x34\n\x1f\x41syncBatchAnnotateFilesResponse\x12\x11OperationMetadata\x1av\xca\x41\x15vision.googleapis.com\xd2\x41[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-visionB\x89\x01\n!com.google.cloud.vision.v1p4beta1B\x13ImageAnnotatorProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision\xf8\x01\x01\xa2\x02\x04GCVNb\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, google_dot_api_dot_client__pb2.DESCRIPTOR, @@ -515,7 +508,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -554,7 +547,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -572,7 +565,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -611,7 +604,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b(""), + default_value=b"", message_type=None, enum_type=None, containing_type=None, @@ -1072,7 +1065,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1090,7 +1083,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1147,7 +1140,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1165,7 +1158,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1183,7 +1176,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1225,7 +1218,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\030\001"), + serialized_options=b"\030\001", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -1330,7 +1323,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1348,7 +1341,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1366,7 +1359,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -2158,7 +2151,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -2494,7 +2487,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ) ], @@ -2758,7 +2751,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ) ], @@ -2968,7 +2961,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -2986,7 +2979,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), ], @@ -3064,7 +3057,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ) ], @@ -3154,7 +3147,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b(""), + default_value=b"", message_type=None, enum_type=None, containing_type=None, @@ -3172,7 +3165,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -3268,7 +3261,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -3307,7 +3300,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -3651,12 +3644,14 @@ Feature = _reflection.GeneratedProtocolMessageType( "Feature", (_message.Message,), - dict( - DESCRIPTOR=_FEATURE, - __module__="google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - __doc__="""The type of Google Cloud Vision API detection to perform, and the - maximum number of results to return for that type. Multiple + { + "DESCRIPTOR": _FEATURE, + "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", + "__doc__": """The type of Google Cloud Vision API detection to perform, + and the maximum number of results to return for that type. Multiple ``Feature`` objects can be specified in the ``features`` list. + + Attributes: type: The feature type. @@ -3666,21 +3661,23 @@ ``CROP_HINTS``. model: Model to use for the feature. Supported values: - "builtin/stable" (the default if unset) and "builtin/latest". + “builtin/stable” (the default if unset) and “builtin/latest”. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.Feature) - ), + }, ) _sym_db.RegisterMessage(Feature) ImageSource = _reflection.GeneratedProtocolMessageType( "ImageSource", (_message.Message,), - dict( - DESCRIPTOR=_IMAGESOURCE, - __module__="google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - __doc__="""External image source (Google Cloud Storage or web URL image - location). + { + "DESCRIPTOR": _IMAGESOURCE, + "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", + "__doc__": """External image source (Google Cloud Storage or web URL + image location). + + Attributes: gcs_image_uri: \ **Use ``image_uri`` instead.** The Google Cloud Storage URI @@ -3697,7 +3694,7 @@ more info. 2. A publicly-accessible image HTTP/HTTPS URL. When fetching images from HTTP/HTTPS URLs, Google cannot guarantee that the request will be completed. Your request - may fail if the specified host denies the request (e.g. due + may fail if the specified host denies the request (e.g. due to request throttling or DOS prevention), or if Google throttles requests to the site for abuse prevention. You should not depend on externally-hosted images for production @@ -3705,17 +3702,20 @@ are specified, ``image_uri`` takes precedence. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ImageSource) - ), + }, ) _sym_db.RegisterMessage(ImageSource) Image = _reflection.GeneratedProtocolMessageType( "Image", (_message.Message,), - dict( - DESCRIPTOR=_IMAGE, - __module__="google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - __doc__="""Client image to perform Google Cloud Vision API tasks over. + { + "DESCRIPTOR": _IMAGE, + "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", + "__doc__": """Client image to perform Google Cloud Vision API tasks + over. + + Attributes: content: Image content, represented as a stream of bytes. Note: As with @@ -3728,21 +3728,23 @@ the image annotation request. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.Image) - ), + }, ) _sym_db.RegisterMessage(Image) FaceAnnotation = _reflection.GeneratedProtocolMessageType( "FaceAnnotation", (_message.Message,), - dict( - Landmark=_reflection.GeneratedProtocolMessageType( + { + "Landmark": _reflection.GeneratedProtocolMessageType( "Landmark", (_message.Message,), - dict( - DESCRIPTOR=_FACEANNOTATION_LANDMARK, - __module__="google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - __doc__="""A face-specific landmark (for example, a face feature). + { + "DESCRIPTOR": _FACEANNOTATION_LANDMARK, + "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", + "__doc__": """A face-specific landmark (for example, a face feature). + + Attributes: type: Face landmark type. @@ -3750,16 +3752,19 @@ Face landmark position. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark) - ), - ), - DESCRIPTOR=_FACEANNOTATION, - __module__="google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - __doc__="""A face annotation object contains the results of face detection. + }, + ), + "DESCRIPTOR": _FACEANNOTATION, + "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", + "__doc__": """A face annotation object contains the results of face + detection. + + Attributes: bounding_poly: The bounding polygon around the face. The coordinates of the - bounding box are in the original image's scale. The bounding - box is computed to "frame" the face in accordance with human + bounding box are in the original image’s scale. The bounding + box is computed to “frame” the face in accordance with human expectations. It is based on the landmarker results. Note that one or more x and/or y coordinates may not be generated in the ``BoundingPoly`` (the polygon will be unbounded) if only a @@ -3768,7 +3773,7 @@ The ``fd_bounding_poly`` bounding polygon is tighter than the ``boundingPoly``, and encloses only the skin part of the face. Typically, it is used to eliminate the face from any image - analysis that detects the "amount of skin" visible in an + analysis that detects the “amount of skin” visible in an image. It is not based on the landmarker results, only on the initial face detection, hence the fd (face detection) prefix. landmarks: @@ -3783,7 +3788,7 @@ perpendicular to the image. Range [-180,180]. tilt_angle: Pitch angle, which indicates the upwards/downwards angle that - the face is pointing relative to the image's horizontal plane. + the face is pointing relative to the image’s horizontal plane. Range [-180,180]. detection_confidence: Detection confidence. Range [0, 1]. @@ -3805,15 +3810,15 @@ Headwear likelihood. recognition_result: Additional recognition information. Only computed if - image\_context.face\_recognition\_params is provided, **and** - a match is found to a + image_context.face_recognition_params is provided, **and** a + match is found to a [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] in the input [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]. This field is sorted in order of decreasing confidence values. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.FaceAnnotation) - ), + }, ) _sym_db.RegisterMessage(FaceAnnotation) _sym_db.RegisterMessage(FaceAnnotation.Landmark) @@ -3821,26 +3826,31 @@ LocationInfo = _reflection.GeneratedProtocolMessageType( "LocationInfo", (_message.Message,), - dict( - DESCRIPTOR=_LOCATIONINFO, - __module__="google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - __doc__="""Detected entity location information. + { + "DESCRIPTOR": _LOCATIONINFO, + "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", + "__doc__": """Detected entity location information. + + Attributes: lat_lng: lat/long location coordinates. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.LocationInfo) - ), + }, ) _sym_db.RegisterMessage(LocationInfo) Property = _reflection.GeneratedProtocolMessageType( "Property", (_message.Message,), - dict( - DESCRIPTOR=_PROPERTY, - __module__="google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - __doc__="""A ``Property`` consists of a user-supplied name/value pair. + { + "DESCRIPTOR": _PROPERTY, + "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", + "__doc__": """A ``Property`` consists of a user-supplied name/value + pair. + + Attributes: name: Name of the property. @@ -3850,17 +3860,19 @@ Value of numeric properties. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.Property) - ), + }, ) _sym_db.RegisterMessage(Property) EntityAnnotation = _reflection.GeneratedProtocolMessageType( "EntityAnnotation", (_message.Message,), - dict( - DESCRIPTOR=_ENTITYANNOTATION, - __module__="google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - __doc__="""Set of detected entity features. + { + "DESCRIPTOR": _ENTITYANNOTATION, + "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", + "__doc__": """Set of detected entity features. + + Attributes: mid: Opaque entity ID. Some IDs may be available in `Google @@ -3877,13 +3889,13 @@ confidence: \ **Deprecated. Use ``score`` instead.** The accuracy of the entity detection in an image. For example, for an image in - which the "Eiffel Tower" entity is detected, this field + which the “Eiffel Tower” entity is detected, this field represents the confidence that there is a tower in the query image. Range [0, 1]. topicality: The relevancy of the ICA (Image Content Annotation) label to - the image. For example, the relevancy of "tower" is likely - higher to an image containing the detected "Eiffel Tower" than + the image. For example, the relevancy of “tower” is likely + higher to an image containing the detected “Eiffel Tower” than to an image containing a detected distant towering building, even though the confidence that there is a tower in each image may be the same. Range [0, 1]. @@ -3903,24 +3915,26 @@ entity. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.EntityAnnotation) - ), + }, ) _sym_db.RegisterMessage(EntityAnnotation) LocalizedObjectAnnotation = _reflection.GeneratedProtocolMessageType( "LocalizedObjectAnnotation", (_message.Message,), - dict( - DESCRIPTOR=_LOCALIZEDOBJECTANNOTATION, - __module__="google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - __doc__="""Set of detected objects with bounding boxes. + { + "DESCRIPTOR": _LOCALIZEDOBJECTANNOTATION, + "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", + "__doc__": """Set of detected objects with bounding boxes. + + Attributes: mid: Object ID that should align with EntityAnnotation mid. language_code: - The BCP-47 language code, such as "en-US" or "sr-Latn". For + The BCP-47 language code, such as “en-US” or “sr-Latn”. For more information, see http://www.unicode.org/reports/tr35/#Uni - code\_locale\_identifier. + code_locale_identifier. name: Object name, expressed in its ``language_code`` language. score: @@ -3930,19 +3944,21 @@ populated. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation) - ), + }, ) _sym_db.RegisterMessage(LocalizedObjectAnnotation) SafeSearchAnnotation = _reflection.GeneratedProtocolMessageType( "SafeSearchAnnotation", (_message.Message,), - dict( - DESCRIPTOR=_SAFESEARCHANNOTATION, - __module__="google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - __doc__="""Set of features pertaining to the image, computed by computer vision - methods over safe-search verticals (for example, adult, spoof, - medical, violence). + { + "DESCRIPTOR": _SAFESEARCHANNOTATION, + "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", + "__doc__": """Set of features pertaining to the image, computed by + computer vision methods over safe-search verticals (for example, adult, + spoof, medical, violence). + + Attributes: adult: Represents the adult content likelihood for the image. Adult @@ -3950,7 +3966,7 @@ images or cartoons, or sexual activities. spoof: Spoof likelihood. The likelihood that an modification was made - to the image's canonical version to make it appear funny or + to the image’s canonical version to make it appear funny or offensive. medical: Likelihood that this is a medical image. @@ -3963,17 +3979,19 @@ poses, or close-ups of sensitive body areas. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.SafeSearchAnnotation) - ), + }, ) _sym_db.RegisterMessage(SafeSearchAnnotation) LatLongRect = _reflection.GeneratedProtocolMessageType( "LatLongRect", (_message.Message,), - dict( - DESCRIPTOR=_LATLONGRECT, - __module__="google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - __doc__="""Rectangle determined by min and max ``LatLng`` pairs. + { + "DESCRIPTOR": _LATLONGRECT, + "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", + "__doc__": """Rectangle determined by min and max ``LatLng`` pairs. + + Attributes: min_lat_lng: Min lat/long pair. @@ -3981,18 +3999,20 @@ Max lat/long pair. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.LatLongRect) - ), + }, ) _sym_db.RegisterMessage(LatLongRect) ColorInfo = _reflection.GeneratedProtocolMessageType( "ColorInfo", (_message.Message,), - dict( - DESCRIPTOR=_COLORINFO, - __module__="google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - __doc__="""Color information consists of RGB channels, score, and the fraction of - the image that the color occupies in the image. + { + "DESCRIPTOR": _COLORINFO, + "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", + "__doc__": """Color information consists of RGB channels, score, and the + fraction of the image that the color occupies in the image. + + Attributes: color: RGB components of the color. @@ -4003,54 +4023,60 @@ in range [0, 1]. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ColorInfo) - ), + }, ) _sym_db.RegisterMessage(ColorInfo) DominantColorsAnnotation = _reflection.GeneratedProtocolMessageType( "DominantColorsAnnotation", (_message.Message,), - dict( - DESCRIPTOR=_DOMINANTCOLORSANNOTATION, - __module__="google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - __doc__="""Set of dominant colors and their corresponding scores. + { + "DESCRIPTOR": _DOMINANTCOLORSANNOTATION, + "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", + "__doc__": """Set of dominant colors and their corresponding scores. + + Attributes: colors: RGB color values with their score and pixel fraction. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.DominantColorsAnnotation) - ), + }, ) _sym_db.RegisterMessage(DominantColorsAnnotation) ImageProperties = _reflection.GeneratedProtocolMessageType( "ImageProperties", (_message.Message,), - dict( - DESCRIPTOR=_IMAGEPROPERTIES, - __module__="google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - __doc__="""Stores image properties, such as dominant colors. + { + "DESCRIPTOR": _IMAGEPROPERTIES, + "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", + "__doc__": """Stores image properties, such as dominant colors. + + Attributes: dominant_colors: If present, dominant colors completed successfully. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ImageProperties) - ), + }, ) _sym_db.RegisterMessage(ImageProperties) CropHint = _reflection.GeneratedProtocolMessageType( "CropHint", (_message.Message,), - dict( - DESCRIPTOR=_CROPHINT, - __module__="google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - __doc__="""Single crop hint that is used to generate a new crop when serving an - image. + { + "DESCRIPTOR": _CROPHINT, + "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", + "__doc__": """Single crop hint that is used to generate a new crop when + serving an image. + + Attributes: bounding_poly: The bounding polygon for the crop region. The coordinates of - the bounding box are in the original image's scale. + the bounding box are in the original image’s scale. confidence: Confidence of this being a salient region. Range [0, 1]. importance_fraction: @@ -4058,34 +4084,38 @@ the original image. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.CropHint) - ), + }, ) _sym_db.RegisterMessage(CropHint) CropHintsAnnotation = _reflection.GeneratedProtocolMessageType( "CropHintsAnnotation", (_message.Message,), - dict( - DESCRIPTOR=_CROPHINTSANNOTATION, - __module__="google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - __doc__="""Set of crop hints that are used to generate new crops when serving - images. + { + "DESCRIPTOR": _CROPHINTSANNOTATION, + "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", + "__doc__": """Set of crop hints that are used to generate new crops when + serving images. + + Attributes: crop_hints: Crop hint results. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.CropHintsAnnotation) - ), + }, ) _sym_db.RegisterMessage(CropHintsAnnotation) CropHintsParams = _reflection.GeneratedProtocolMessageType( "CropHintsParams", (_message.Message,), - dict( - DESCRIPTOR=_CROPHINTSPARAMS, - __module__="google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - __doc__="""Parameters for crop hints annotation request. + { + "DESCRIPTOR": _CROPHINTSPARAMS, + "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", + "__doc__": """Parameters for crop hints annotation request. + + Attributes: aspect_ratios: Aspect ratios in floats, representing the ratio of the width @@ -4096,47 +4126,51 @@ 16; any aspect ratios provided after the 16th are ignored. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.CropHintsParams) - ), + }, ) _sym_db.RegisterMessage(CropHintsParams) WebDetectionParams = _reflection.GeneratedProtocolMessageType( "WebDetectionParams", (_message.Message,), - dict( - DESCRIPTOR=_WEBDETECTIONPARAMS, - __module__="google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - __doc__="""Parameters for web detection request. + { + "DESCRIPTOR": _WEBDETECTIONPARAMS, + "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", + "__doc__": """Parameters for web detection request. + + Attributes: include_geo_results: Whether to include results derived from the geo information in the image. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.WebDetectionParams) - ), + }, ) _sym_db.RegisterMessage(WebDetectionParams) ImageContext = _reflection.GeneratedProtocolMessageType( "ImageContext", (_message.Message,), - dict( - DESCRIPTOR=_IMAGECONTEXT, - __module__="google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - __doc__="""Image context and/or feature-specific parameters. + { + "DESCRIPTOR": _IMAGECONTEXT, + "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", + "__doc__": """Image context and/or feature-specific parameters. + + Attributes: lat_long_rect: Not used. language_hints: - List of languages to use for TEXT\_DETECTION. In most cases, - an empty value yields the best results since it enables - automatic language detection. For languages based on the Latin - alphabet, setting ``language_hints`` is not needed. In rare - cases, when the language of the text in the image is known, - setting a hint will help get better results (although it will - be a significant hindrance if the hint is wrong). Text - detection returns an error if one or more of the specified - languages is not one of the `supported languages + List of languages to use for TEXT_DETECTION. In most cases, an + empty value yields the best results since it enables automatic + language detection. For languages based on the Latin alphabet, + setting ``language_hints`` is not needed. In rare cases, when + the language of the text in the image is known, setting a hint + will help get better results (although it will be a + significant hindrance if the hint is wrong). Text detection + returns an error if one or more of the specified languages is + not one of the `supported languages `__. crop_hints_params: Parameters for crop hints annotation request. @@ -4148,19 +4182,21 @@ Parameters for web detection. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ImageContext) - ), + }, ) _sym_db.RegisterMessage(ImageContext) AnnotateImageRequest = _reflection.GeneratedProtocolMessageType( "AnnotateImageRequest", (_message.Message,), - dict( - DESCRIPTOR=_ANNOTATEIMAGEREQUEST, - __module__="google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - __doc__="""Request for performing Google Cloud Vision API tasks over a user- - provided image, with user-requested features, and with context + { + "DESCRIPTOR": _ANNOTATEIMAGEREQUEST, + "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", + "__doc__": """Request for performing Google Cloud Vision API tasks over + a user-provided image, with user-requested features, and with context information. + + Attributes: image: The image to be processed. @@ -4170,18 +4206,20 @@ Additional context that may accompany the image. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.AnnotateImageRequest) - ), + }, ) _sym_db.RegisterMessage(AnnotateImageRequest) ImageAnnotationContext = _reflection.GeneratedProtocolMessageType( "ImageAnnotationContext", (_message.Message,), - dict( - DESCRIPTOR=_IMAGEANNOTATIONCONTEXT, - __module__="google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - __doc__="""If an image was produced from a file (e.g. a PDF), this message gives - information about the source of that image. + { + "DESCRIPTOR": _IMAGEANNOTATIONCONTEXT, + "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", + "__doc__": """If an image was produced from a file (e.g. a PDF), this + message gives information about the source of that image. + + Attributes: uri: The URI of the file used to produce the image. @@ -4190,17 +4228,19 @@ number within the file used to produce the image. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ImageAnnotationContext) - ), + }, ) _sym_db.RegisterMessage(ImageAnnotationContext) AnnotateImageResponse = _reflection.GeneratedProtocolMessageType( "AnnotateImageResponse", (_message.Message,), - dict( - DESCRIPTOR=_ANNOTATEIMAGERESPONSE, - __module__="google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - __doc__="""Response to an image annotation request. + { + "DESCRIPTOR": _ANNOTATEIMAGERESPONSE, + "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", + "__doc__": """Response to an image annotation request. + + Attributes: face_annotations: If present, face detection has completed successfully. @@ -4239,51 +4279,58 @@ where this image comes from. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.AnnotateImageResponse) - ), + }, ) _sym_db.RegisterMessage(AnnotateImageResponse) BatchAnnotateImagesRequest = _reflection.GeneratedProtocolMessageType( "BatchAnnotateImagesRequest", (_message.Message,), - dict( - DESCRIPTOR=_BATCHANNOTATEIMAGESREQUEST, - __module__="google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - __doc__="""Multiple image annotation requests are batched into a single service - call. + { + "DESCRIPTOR": _BATCHANNOTATEIMAGESREQUEST, + "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", + "__doc__": """Multiple image annotation requests are batched into a + single service call. + + Attributes: requests: Required. Individual image annotation requests for this batch. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest) - ), + }, ) _sym_db.RegisterMessage(BatchAnnotateImagesRequest) BatchAnnotateImagesResponse = _reflection.GeneratedProtocolMessageType( "BatchAnnotateImagesResponse", (_message.Message,), - dict( - DESCRIPTOR=_BATCHANNOTATEIMAGESRESPONSE, - __module__="google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - __doc__="""Response to a batch image annotation request. + { + "DESCRIPTOR": _BATCHANNOTATEIMAGESRESPONSE, + "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", + "__doc__": """Response to a batch image annotation request. + + Attributes: responses: Individual responses to image annotation requests within the batch. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse) - ), + }, ) _sym_db.RegisterMessage(BatchAnnotateImagesResponse) AnnotateFileRequest = _reflection.GeneratedProtocolMessageType( "AnnotateFileRequest", (_message.Message,), - dict( - DESCRIPTOR=_ANNOTATEFILEREQUEST, - __module__="google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - __doc__="""A request to annotate one single file, e.g. a PDF, TIFF or GIF file. + { + "DESCRIPTOR": _ANNOTATEFILEREQUEST, + "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", + "__doc__": """A request to annotate one single file, e.g. a PDF, TIFF or + GIF file. + + Attributes: input_config: Required. Information about the input file. @@ -4304,18 +4351,20 @@ file. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.AnnotateFileRequest) - ), + }, ) _sym_db.RegisterMessage(AnnotateFileRequest) AnnotateFileResponse = _reflection.GeneratedProtocolMessageType( "AnnotateFileResponse", (_message.Message,), - dict( - DESCRIPTOR=_ANNOTATEFILERESPONSE, - __module__="google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - __doc__="""Response to a single file annotation request. A file may contain one - or more images, which individually have their own responses. + { + "DESCRIPTOR": _ANNOTATEFILERESPONSE, + "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", + "__doc__": """Response to a single file annotation request. A file may + contain one or more images, which individually have their own responses. + + Attributes: input_config: Information about the file for which this response is @@ -4330,17 +4379,20 @@ The ``responses`` field will not be set in this case. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.AnnotateFileResponse) - ), + }, ) _sym_db.RegisterMessage(AnnotateFileResponse) BatchAnnotateFilesRequest = _reflection.GeneratedProtocolMessageType( "BatchAnnotateFilesRequest", (_message.Message,), - dict( - DESCRIPTOR=_BATCHANNOTATEFILESREQUEST, - __module__="google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - __doc__="""A list of requests to annotate files using the BatchAnnotateFiles API. + { + "DESCRIPTOR": _BATCHANNOTATEFILESREQUEST, + "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", + "__doc__": """A list of requests to annotate files using the + BatchAnnotateFiles API. + + Attributes: requests: Required. The list of file annotation requests. Right now we @@ -4348,17 +4400,19 @@ BatchAnnotateFilesRequest. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest) - ), + }, ) _sym_db.RegisterMessage(BatchAnnotateFilesRequest) BatchAnnotateFilesResponse = _reflection.GeneratedProtocolMessageType( "BatchAnnotateFilesResponse", (_message.Message,), - dict( - DESCRIPTOR=_BATCHANNOTATEFILESRESPONSE, - __module__="google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - __doc__="""A list of file annotation responses. + { + "DESCRIPTOR": _BATCHANNOTATEFILESRESPONSE, + "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", + "__doc__": """A list of file annotation responses. + + Attributes: responses: The list of file annotation responses, each response @@ -4366,17 +4420,19 @@ BatchAnnotateFilesRequest. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse) - ), + }, ) _sym_db.RegisterMessage(BatchAnnotateFilesResponse) AsyncAnnotateFileRequest = _reflection.GeneratedProtocolMessageType( "AsyncAnnotateFileRequest", (_message.Message,), - dict( - DESCRIPTOR=_ASYNCANNOTATEFILEREQUEST, - __module__="google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - __doc__="""An offline file annotation request. + { + "DESCRIPTOR": _ASYNCANNOTATEFILEREQUEST, + "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", + "__doc__": """An offline file annotation request. + + Attributes: input_config: Required. Information about the input file. @@ -4386,109 +4442,121 @@ Additional context that may accompany the image(s) in the file. output_config: - Required. The desired output location and metadata (e.g. - format). + Required. The desired output location and metadata + (e.g. format). """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest) - ), + }, ) _sym_db.RegisterMessage(AsyncAnnotateFileRequest) AsyncAnnotateFileResponse = _reflection.GeneratedProtocolMessageType( "AsyncAnnotateFileResponse", (_message.Message,), - dict( - DESCRIPTOR=_ASYNCANNOTATEFILERESPONSE, - __module__="google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - __doc__="""The response for a single offline file annotation request. + { + "DESCRIPTOR": _ASYNCANNOTATEFILERESPONSE, + "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", + "__doc__": """The response for a single offline file annotation request. + + Attributes: output_config: The output location and metadata from AsyncAnnotateFileRequest. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse) - ), + }, ) _sym_db.RegisterMessage(AsyncAnnotateFileResponse) AsyncBatchAnnotateImagesRequest = _reflection.GeneratedProtocolMessageType( "AsyncBatchAnnotateImagesRequest", (_message.Message,), - dict( - DESCRIPTOR=_ASYNCBATCHANNOTATEIMAGESREQUEST, - __module__="google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - __doc__="""Request for async image annotation for a list of images. + { + "DESCRIPTOR": _ASYNCBATCHANNOTATEIMAGESREQUEST, + "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", + "__doc__": """Request for async image annotation for a list of images. + + Attributes: requests: Required. Individual image annotation requests for this batch. output_config: - Required. The desired output location and metadata (e.g. - format). + Required. The desired output location and metadata + (e.g. format). """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest) - ), + }, ) _sym_db.RegisterMessage(AsyncBatchAnnotateImagesRequest) AsyncBatchAnnotateImagesResponse = _reflection.GeneratedProtocolMessageType( "AsyncBatchAnnotateImagesResponse", (_message.Message,), - dict( - DESCRIPTOR=_ASYNCBATCHANNOTATEIMAGESRESPONSE, - __module__="google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - __doc__="""Response to an async batch image annotation request. + { + "DESCRIPTOR": _ASYNCBATCHANNOTATEIMAGESRESPONSE, + "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", + "__doc__": """Response to an async batch image annotation request. + + Attributes: output_config: The output location and metadata from AsyncBatchAnnotateImagesRequest. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse) - ), + }, ) _sym_db.RegisterMessage(AsyncBatchAnnotateImagesResponse) AsyncBatchAnnotateFilesRequest = _reflection.GeneratedProtocolMessageType( "AsyncBatchAnnotateFilesRequest", (_message.Message,), - dict( - DESCRIPTOR=_ASYNCBATCHANNOTATEFILESREQUEST, - __module__="google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - __doc__="""Multiple async file annotation requests are batched into a single - service call. + { + "DESCRIPTOR": _ASYNCBATCHANNOTATEFILESREQUEST, + "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", + "__doc__": """Multiple async file annotation requests are batched into a + single service call. + + Attributes: requests: Required. Individual async file annotation requests for this batch. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest) - ), + }, ) _sym_db.RegisterMessage(AsyncBatchAnnotateFilesRequest) AsyncBatchAnnotateFilesResponse = _reflection.GeneratedProtocolMessageType( "AsyncBatchAnnotateFilesResponse", (_message.Message,), - dict( - DESCRIPTOR=_ASYNCBATCHANNOTATEFILESRESPONSE, - __module__="google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - __doc__="""Response to an async batch file annotation request. + { + "DESCRIPTOR": _ASYNCBATCHANNOTATEFILESRESPONSE, + "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", + "__doc__": """Response to an async batch file annotation request. + + Attributes: responses: The list of file annotation responses, one for each request in AsyncBatchAnnotateFilesRequest. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse) - ), + }, ) _sym_db.RegisterMessage(AsyncBatchAnnotateFilesResponse) InputConfig = _reflection.GeneratedProtocolMessageType( "InputConfig", (_message.Message,), - dict( - DESCRIPTOR=_INPUTCONFIG, - __module__="google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - __doc__="""The desired input location and metadata. + { + "DESCRIPTOR": _INPUTCONFIG, + "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", + "__doc__": """The desired input location and metadata. + + Attributes: gcs_source: The Google Cloud Storage location to read the input from. @@ -4500,22 +4568,24 @@ requests. It does not work for AsyncBatchAnnotateFiles requests. mime_type: - The type of the file. Currently only "application/pdf", - "image/tiff" and "image/gif" are supported. Wildcards are not + The type of the file. Currently only “application/pdf”, + “image/tiff” and “image/gif” are supported. Wildcards are not supported. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.InputConfig) - ), + }, ) _sym_db.RegisterMessage(InputConfig) OutputConfig = _reflection.GeneratedProtocolMessageType( "OutputConfig", (_message.Message,), - dict( - DESCRIPTOR=_OUTPUTCONFIG, - __module__="google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - __doc__="""The desired output location and metadata. + { + "DESCRIPTOR": _OUTPUTCONFIG, + "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", + "__doc__": """The desired output location and metadata. + + Attributes: gcs_destination: The Google Cloud Storage location to write the output(s) to. @@ -4526,22 +4596,25 @@ pdf file with 100 pages, 100 response protos will be generated. If ``batch_size`` = 20, then 5 json files each containing 20 response protos will be written under the prefix - ``gcs_destination``.\ ``uri``. Currently, batch\_size only + ``gcs_destination``.\ ``uri``. Currently, batch_size only applies to GcsDestination, with potential future support for other output configurations. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.OutputConfig) - ), + }, ) _sym_db.RegisterMessage(OutputConfig) GcsSource = _reflection.GeneratedProtocolMessageType( "GcsSource", (_message.Message,), - dict( - DESCRIPTOR=_GCSSOURCE, - __module__="google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - __doc__="""The Google Cloud Storage location where the input will be read from. + { + "DESCRIPTOR": _GCSSOURCE, + "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", + "__doc__": """The Google Cloud Storage location where the input will be + read from. + + Attributes: uri: Google Cloud Storage URI for the input file. This must only be @@ -4549,17 +4622,20 @@ supported. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.GcsSource) - ), + }, ) _sym_db.RegisterMessage(GcsSource) GcsDestination = _reflection.GeneratedProtocolMessageType( "GcsDestination", (_message.Message,), - dict( - DESCRIPTOR=_GCSDESTINATION, - __module__="google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - __doc__="""The Google Cloud Storage location where the output will be written to. + { + "DESCRIPTOR": _GCSDESTINATION, + "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", + "__doc__": """The Google Cloud Storage location where the output will be + written to. + + Attributes: uri: Google Cloud Storage URI prefix where the results will be @@ -4571,7 +4647,7 @@ uri prefix you provide. Examples: - File Prefix: gs://bucket-name/here/filenameprefix The output files will be created in gs://bucket-name/here/ and the names of the - output files will begin with "filenameprefix". - + output files will begin with “filenameprefix”. - Directory Prefix: gs://bucket-name/some/location/ The output files will be created in gs://bucket-name/some/location/ and the names of the output files could be anything because @@ -4583,17 +4659,19 @@ multiple sharded files. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.GcsDestination) - ), + }, ) _sym_db.RegisterMessage(GcsDestination) OperationMetadata = _reflection.GeneratedProtocolMessageType( "OperationMetadata", (_message.Message,), - dict( - DESCRIPTOR=_OPERATIONMETADATA, - __module__="google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - __doc__="""Contains metadata for the BatchAnnotateImages operation. + { + "DESCRIPTOR": _OPERATIONMETADATA, + "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", + "__doc__": """Contains metadata for the BatchAnnotateImages operation. + + Attributes: state: Current state of the batch operation. @@ -4603,7 +4681,7 @@ The time when the operation result was last updated. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.OperationMetadata) - ), + }, ) _sym_db.RegisterMessage(OperationMetadata) @@ -4621,9 +4699,7 @@ full_name="google.cloud.vision.v1p4beta1.ImageAnnotator", file=DESCRIPTOR, index=0, - serialized_options=_b( - "\312A\025vision.googleapis.com\322A[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-vision" - ), + serialized_options=b"\312A\025vision.googleapis.com\322A[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-vision", serialized_start=8895, serialized_end=9904, methods=[ @@ -4634,9 +4710,7 @@ containing_service=None, input_type=_BATCHANNOTATEIMAGESREQUEST, output_type=_BATCHANNOTATEIMAGESRESPONSE, - serialized_options=_b( - '\202\323\344\223\002\037"\032/v1p4beta1/images:annotate:\001*\332A\010requests' - ), + serialized_options=b'\202\323\344\223\002\037"\032/v1p4beta1/images:annotate:\001*\332A\010requests', ), _descriptor.MethodDescriptor( name="BatchAnnotateFiles", @@ -4645,9 +4719,7 @@ containing_service=None, input_type=_BATCHANNOTATEFILESREQUEST, output_type=_BATCHANNOTATEFILESRESPONSE, - serialized_options=_b( - '\202\323\344\223\002\036"\031/v1p4beta1/files:annotate:\001*\332A\010requests' - ), + serialized_options=b'\202\323\344\223\002\036"\031/v1p4beta1/files:annotate:\001*\332A\010requests', ), _descriptor.MethodDescriptor( name="AsyncBatchAnnotateImages", @@ -4656,9 +4728,7 @@ containing_service=None, input_type=_ASYNCBATCHANNOTATEIMAGESREQUEST, output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - serialized_options=_b( - '\202\323\344\223\002)"$/v1p4beta1/images:asyncBatchAnnotate:\001*\332A\026requests,output_config\312A5\n AsyncBatchAnnotateImagesResponse\022\021OperationMetadata' - ), + serialized_options=b'\202\323\344\223\002)"$/v1p4beta1/images:asyncBatchAnnotate:\001*\332A\026requests,output_config\312A5\n AsyncBatchAnnotateImagesResponse\022\021OperationMetadata', ), _descriptor.MethodDescriptor( name="AsyncBatchAnnotateFiles", @@ -4667,9 +4737,7 @@ containing_service=None, input_type=_ASYNCBATCHANNOTATEFILESREQUEST, output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - serialized_options=_b( - '\202\323\344\223\002("#/v1p4beta1/files:asyncBatchAnnotate:\001*\332A\010requests\312A4\n\037AsyncBatchAnnotateFilesResponse\022\021OperationMetadata' - ), + serialized_options=b'\202\323\344\223\002("#/v1p4beta1/files:asyncBatchAnnotate:\001*\332A\010requests\312A4\n\037AsyncBatchAnnotateFilesResponse\022\021OperationMetadata', ), ], ) diff --git a/google/cloud/vision_v1p4beta1/proto/product_search_pb2.py b/google/cloud/vision_v1p4beta1/proto/product_search_pb2.py index 10c74eb7..6a99c441 100644 --- a/google/cloud/vision_v1p4beta1/proto/product_search_pb2.py +++ b/google/cloud/vision_v1p4beta1/proto/product_search_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1p4beta1/proto/product_search.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -30,12 +27,8 @@ name="google/cloud/vision_v1p4beta1/proto/product_search.proto", package="google.cloud.vision.v1p4beta1", syntax="proto3", - serialized_options=_b( - "\n!com.google.cloud.vision.v1p4beta1B\022ProductSearchProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision\370\001\001\242\002\004GCVN" - ), - serialized_pb=_b( - '\n8google/cloud/vision_v1p4beta1/proto/product_search.proto\x12\x1dgoogle.cloud.vision.v1p4beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x19google/api/resource.proto\x1a\x32google/cloud/vision_v1p4beta1/proto/geometry.proto\x1a@google/cloud/vision_v1p4beta1/proto/product_search_service.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xc1\x01\n\x13ProductSearchParams\x12\x42\n\rbounding_poly\x18\t \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.BoundingPoly\x12:\n\x0bproduct_set\x18\x06 \x01(\tB%\xfa\x41"\n vision.googleapis.com/ProductSet\x12\x1a\n\x12product_categories\x18\x07 \x03(\t\x12\x0e\n\x06\x66ilter\x18\x08 \x01(\t"\xb2\x05\n\x14ProductSearchResults\x12.\n\nindex_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12K\n\x07results\x18\x05 \x03(\x0b\x32:.google.cloud.vision.v1p4beta1.ProductSearchResults.Result\x12\x62\n\x17product_grouped_results\x18\x06 \x03(\x0b\x32\x41.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult\x1a_\n\x06Result\x12\x37\n\x07product\x18\x01 \x01(\x0b\x32&.google.cloud.vision.v1p4beta1.Product\x12\r\n\x05score\x18\x02 \x01(\x02\x12\r\n\x05image\x18\x03 \x01(\t\x1aS\n\x10ObjectAnnotation\x12\x0b\n\x03mid\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\r\n\x05score\x18\x04 \x01(\x02\x1a\x82\x02\n\rGroupedResult\x12\x42\n\rbounding_poly\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.BoundingPoly\x12K\n\x07results\x18\x02 \x03(\x0b\x32:.google.cloud.vision.v1p4beta1.ProductSearchResults.Result\x12`\n\x12object_annotations\x18\x03 \x03(\x0b\x32\x44.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationB\x88\x01\n!com.google.cloud.vision.v1p4beta1B\x12ProductSearchProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision\xf8\x01\x01\xa2\x02\x04GCVNb\x06proto3' - ), + serialized_options=b"\n!com.google.cloud.vision.v1p4beta1B\022ProductSearchProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision\370\001\001\242\002\004GCVN", + serialized_pb=b'\n8google/cloud/vision_v1p4beta1/proto/product_search.proto\x12\x1dgoogle.cloud.vision.v1p4beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x19google/api/resource.proto\x1a\x32google/cloud/vision_v1p4beta1/proto/geometry.proto\x1a@google/cloud/vision_v1p4beta1/proto/product_search_service.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xc1\x01\n\x13ProductSearchParams\x12\x42\n\rbounding_poly\x18\t \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.BoundingPoly\x12:\n\x0bproduct_set\x18\x06 \x01(\tB%\xfa\x41"\n vision.googleapis.com/ProductSet\x12\x1a\n\x12product_categories\x18\x07 \x03(\t\x12\x0e\n\x06\x66ilter\x18\x08 \x01(\t"\xb2\x05\n\x14ProductSearchResults\x12.\n\nindex_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12K\n\x07results\x18\x05 \x03(\x0b\x32:.google.cloud.vision.v1p4beta1.ProductSearchResults.Result\x12\x62\n\x17product_grouped_results\x18\x06 \x03(\x0b\x32\x41.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult\x1a_\n\x06Result\x12\x37\n\x07product\x18\x01 \x01(\x0b\x32&.google.cloud.vision.v1p4beta1.Product\x12\r\n\x05score\x18\x02 \x01(\x02\x12\r\n\x05image\x18\x03 \x01(\t\x1aS\n\x10ObjectAnnotation\x12\x0b\n\x03mid\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\r\n\x05score\x18\x04 \x01(\x02\x1a\x82\x02\n\rGroupedResult\x12\x42\n\rbounding_poly\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.BoundingPoly\x12K\n\x07results\x18\x02 \x03(\x0b\x32:.google.cloud.vision.v1p4beta1.ProductSearchResults.Result\x12`\n\x12object_annotations\x18\x03 \x03(\x0b\x32\x44.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationB\x88\x01\n!com.google.cloud.vision.v1p4beta1B\x12ProductSearchProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision\xf8\x01\x01\xa2\x02\x04GCVNb\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, google_dot_api_dot_resource__pb2.DESCRIPTOR, @@ -80,13 +73,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b('\372A"\n vision.googleapis.com/ProductSet'), + serialized_options=b'\372A"\n vision.googleapis.com/ProductSet', file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -116,7 +109,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -191,7 +184,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -229,7 +222,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -247,7 +240,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -265,7 +258,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -497,10 +490,12 @@ ProductSearchParams = _reflection.GeneratedProtocolMessageType( "ProductSearchParams", (_message.Message,), - dict( - DESCRIPTOR=_PRODUCTSEARCHPARAMS, - __module__="google.cloud.vision_v1p4beta1.proto.product_search_pb2", - __doc__="""Parameters for a product search request. + { + "DESCRIPTOR": _PRODUCTSEARCHPARAMS, + "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_pb2", + "__doc__": """Parameters for a product search request. + + Attributes: bounding_poly: The bounding polygon around the area of interest in the image. @@ -512,40 +507,42 @@ /locations/LOC_ID/productSets/PRODUCT_SET_ID``. product_categories: The list of product categories to search in. Currently, we - only consider the first category, and either "homegoods-v2", - "apparel-v2", "toys-v2", "packagedgoods-v1", or "general-v1" - should be specified. The legacy categories "homegoods", - "apparel", and "toys" are still supported but will be - deprecated. For new products, please use "homegoods-v2", - "apparel-v2", or "toys-v2" for better product search accuracy. + only consider the first category, and either “homegoods-v2”, + “apparel-v2”, “toys-v2”, “packagedgoods-v1”, or “general-v1” + should be specified. The legacy categories “homegoods”, + “apparel”, and “toys” are still supported but will be + deprecated. For new products, please use “homegoods-v2”, + “apparel-v2”, or “toys-v2” for better product search accuracy. It is recommended to migrate existing products to these categories as well. filter: The filtering expression. This can be used to restrict search results based on Product labels. We currently support an AND of OR of key-value expressions, where each expression within - an OR must have the same key. An '=' should be used to connect - the key and value. For example, "(color = red OR color = - blue) AND brand = Google" is acceptable, but "(color = red OR - brand = Google)" is not acceptable. "color: red" is not - acceptable because it uses a ':' instead of an '='. + an OR must have the same key. An ‘=’ should be used to connect + the key and value. For example, “(color = red OR color = + blue) AND brand = Google” is acceptable, but “(color = red OR + brand = Google)” is not acceptable. “color: red” is not + acceptable because it uses a ‘:’ instead of an ‘=’. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ProductSearchParams) - ), + }, ) _sym_db.RegisterMessage(ProductSearchParams) ProductSearchResults = _reflection.GeneratedProtocolMessageType( "ProductSearchResults", (_message.Message,), - dict( - Result=_reflection.GeneratedProtocolMessageType( + { + "Result": _reflection.GeneratedProtocolMessageType( "Result", (_message.Message,), - dict( - DESCRIPTOR=_PRODUCTSEARCHRESULTS_RESULT, - __module__="google.cloud.vision_v1p4beta1.proto.product_search_pb2", - __doc__="""Information about a product. + { + "DESCRIPTOR": _PRODUCTSEARCHRESULTS_RESULT, + "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_pb2", + "__doc__": """Information about a product. + + Attributes: product: The Product. @@ -557,38 +554,42 @@ closest match to the query. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ProductSearchResults.Result) - ), + }, ), - ObjectAnnotation=_reflection.GeneratedProtocolMessageType( + "ObjectAnnotation": _reflection.GeneratedProtocolMessageType( "ObjectAnnotation", (_message.Message,), - dict( - DESCRIPTOR=_PRODUCTSEARCHRESULTS_OBJECTANNOTATION, - __module__="google.cloud.vision_v1p4beta1.proto.product_search_pb2", - __doc__="""Prediction for what the object in the bounding box is. + { + "DESCRIPTOR": _PRODUCTSEARCHRESULTS_OBJECTANNOTATION, + "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_pb2", + "__doc__": """Prediction for what the object in the bounding box is. + + Attributes: mid: Object ID that should align with EntityAnnotation mid. language_code: - The BCP-47 language code, such as "en-US" or "sr-Latn". For + The BCP-47 language code, such as “en-US” or “sr-Latn”. For more information, see http://www.unicode.org/reports/tr35/#Uni - code\_locale\_identifier. + code_locale_identifier. name: Object name, expressed in its ``language_code`` language. score: Score of the result. Range [0, 1]. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation) - ), + }, ), - GroupedResult=_reflection.GeneratedProtocolMessageType( + "GroupedResult": _reflection.GeneratedProtocolMessageType( "GroupedResult", (_message.Message,), - dict( - DESCRIPTOR=_PRODUCTSEARCHRESULTS_GROUPEDRESULT, - __module__="google.cloud.vision_v1p4beta1.proto.product_search_pb2", - __doc__="""Information about the products similar to a single product in a query - image. + { + "DESCRIPTOR": _PRODUCTSEARCHRESULTS_GROUPEDRESULT, + "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_pb2", + "__doc__": """Information about the products similar to a single product + in a query image. + + Attributes: bounding_poly: The bounding polygon around the product detected in the query @@ -600,11 +601,13 @@ box. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult) - ), + }, ), - DESCRIPTOR=_PRODUCTSEARCHRESULTS, - __module__="google.cloud.vision_v1p4beta1.proto.product_search_pb2", - __doc__="""Results for a product search request. + "DESCRIPTOR": _PRODUCTSEARCHRESULTS, + "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_pb2", + "__doc__": """Results for a product search request. + + Attributes: index_time: Timestamp of the index which provided these results. Products @@ -620,7 +623,7 @@ union of all the per-product results. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ProductSearchResults) - ), + }, ) _sym_db.RegisterMessage(ProductSearchResults) _sym_db.RegisterMessage(ProductSearchResults.Result) diff --git a/google/cloud/vision_v1p4beta1/proto/product_search_service_pb2.py b/google/cloud/vision_v1p4beta1/proto/product_search_service_pb2.py index 53b16dae..55422d7d 100644 --- a/google/cloud/vision_v1p4beta1/proto/product_search_service_pb2.py +++ b/google/cloud/vision_v1p4beta1/proto/product_search_service_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1p4beta1/proto/product_search_service.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -35,12 +32,8 @@ name="google/cloud/vision_v1p4beta1/proto/product_search_service.proto", package="google.cloud.vision.v1p4beta1", syntax="proto3", - serialized_options=_b( - "\n!com.google.cloud.vision.v1p4beta1B\031ProductSearchServiceProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision\370\001\001\242\002\004GCVN" - ), - serialized_pb=_b( - '\n@google/cloud/vision_v1p4beta1/proto/product_search_service.proto\x12\x1dgoogle.cloud.vision.v1p4beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x32google/cloud/vision_v1p4beta1/proto/geometry.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto"\xb2\x02\n\x07Product\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x1d\n\x10product_category\x18\x04 \x01(\tB\x03\xe0\x41\x05\x12G\n\x0eproduct_labels\x18\x05 \x03(\x0b\x32/.google.cloud.vision.v1p4beta1.Product.KeyValue\x1a&\n\x08KeyValue\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:^\xea\x41[\n\x1dvision.googleapis.com/Product\x12:projects/{project}/locations/{location}/products/{product}"\xfd\x01\n\nProductSet\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x33\n\nindex_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12,\n\x0bindex_error\x18\x04 \x01(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03:h\xea\x41\x65\n vision.googleapis.com/ProductSet\x12\x41projects/{project}/locations/{location}/productSets/{product_set}"\x85\x02\n\x0eReferenceImage\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x03uri\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12H\n\x0e\x62ounding_polys\x18\x03 \x03(\x0b\x32+.google.cloud.vision.v1p4beta1.BoundingPolyB\x03\xe0\x41\x01:\x88\x01\xea\x41\x84\x01\n$vision.googleapis.com/ReferenceImage\x12\\projects/{project}/locations/{location}/products/{product}/referenceImages/{reference_image}"\xa3\x01\n\x14\x43reateProductRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12<\n\x07product\x18\x02 \x01(\x0b\x32&.google.cloud.vision.v1p4beta1.ProductB\x03\xe0\x41\x02\x12\x12\n\nproduct_id\x18\x03 \x01(\t"w\n\x13ListProductsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"i\n\x14ListProductsResponse\x12\x38\n\x08products\x18\x01 \x03(\x0b\x32&.google.cloud.vision.v1p4beta1.Product\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"H\n\x11GetProductRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product"\x85\x01\n\x14UpdateProductRequest\x12<\n\x07product\x18\x01 \x01(\x0b\x32&.google.cloud.vision.v1p4beta1.ProductB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"K\n\x14\x44\x65leteProductRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product"\xb1\x01\n\x17\x43reateProductSetRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x43\n\x0bproduct_set\x18\x02 \x01(\x0b\x32).google.cloud.vision.v1p4beta1.ProductSetB\x03\xe0\x41\x02\x12\x16\n\x0eproduct_set_id\x18\x03 \x01(\t"z\n\x16ListProductSetsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"s\n\x17ListProductSetsResponse\x12?\n\x0cproduct_sets\x18\x01 \x03(\x0b\x32).google.cloud.vision.v1p4beta1.ProductSet\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"N\n\x14GetProductSetRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41"\n vision.googleapis.com/ProductSet"\x8f\x01\n\x17UpdateProductSetRequest\x12\x43\n\x0bproduct_set\x18\x01 \x01(\x0b\x32).google.cloud.vision.v1p4beta1.ProductSetB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"Q\n\x17\x44\x65leteProductSetRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41"\n vision.googleapis.com/ProductSet"\xbd\x01\n\x1b\x43reateReferenceImageRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product\x12K\n\x0freference_image\x18\x02 \x01(\x0b\x32-.google.cloud.vision.v1p4beta1.ReferenceImageB\x03\xe0\x41\x02\x12\x1a\n\x12reference_image_id\x18\x03 \x01(\t"z\n\x1aListReferenceImagesRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"\x92\x01\n\x1bListReferenceImagesResponse\x12G\n\x10reference_images\x18\x01 \x03(\x0b\x32-.google.cloud.vision.v1p4beta1.ReferenceImage\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t"V\n\x18GetReferenceImageRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$vision.googleapis.com/ReferenceImage"Y\n\x1b\x44\x65leteReferenceImageRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$vision.googleapis.com/ReferenceImage"\x8f\x01\n\x1d\x41\x64\x64ProductToProductSetRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41"\n vision.googleapis.com/ProductSet\x12\x36\n\x07product\x18\x02 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product"\x94\x01\n"RemoveProductFromProductSetRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41"\n vision.googleapis.com/ProductSet\x12\x36\n\x07product\x18\x02 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product"\x80\x01\n\x1fListProductsInProductSetRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41"\n vision.googleapis.com/ProductSet\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"u\n ListProductsInProductSetResponse\x12\x38\n\x08products\x18\x01 \x03(\x0b\x32&.google.cloud.vision.v1p4beta1.Product\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"2\n\x1aImportProductSetsGcsSource\x12\x14\n\x0c\x63sv_file_uri\x18\x01 \x01(\t"y\n\x1cImportProductSetsInputConfig\x12O\n\ngcs_source\x18\x01 \x01(\x0b\x32\x39.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSourceH\x00\x42\x08\n\x06source"\xad\x01\n\x18ImportProductSetsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12V\n\x0cinput_config\x18\x02 \x01(\x0b\x32;.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfigB\x03\xe0\x41\x02"\x8a\x01\n\x19ImportProductSetsResponse\x12G\n\x10reference_images\x18\x01 \x03(\x0b\x32-.google.cloud.vision.v1p4beta1.ReferenceImage\x12$\n\x08statuses\x18\x02 \x03(\x0b\x32\x12.google.rpc.Status"\x9e\x02\n\x16\x42\x61tchOperationMetadata\x12J\n\x05state\x18\x01 \x01(\x0e\x32;.google.cloud.vision.v1p4beta1.BatchOperationMetadata.State\x12/\n\x0bsubmit_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"Y\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0e\n\nPROCESSING\x10\x01\x12\x0e\n\nSUCCESSFUL\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x12\r\n\tCANCELLED\x10\x04"/\n\x15ProductSetPurgeConfig\x12\x16\n\x0eproduct_set_id\x18\x01 \x01(\t"\xe6\x01\n\x14PurgeProductsRequest\x12X\n\x18product_set_purge_config\x18\x02 \x01(\x0b\x32\x34.google.cloud.vision.v1p4beta1.ProductSetPurgeConfigH\x00\x12 \n\x16\x64\x65lete_orphan_products\x18\x03 \x01(\x08H\x00\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\r\n\x05\x66orce\x18\x04 \x01(\x08\x42\x08\n\x06target2\xd2 \n\rProductSearch\x12\xe6\x01\n\x10\x43reateProductSet\x12\x36.google.cloud.vision.v1p4beta1.CreateProductSetRequest\x1a).google.cloud.vision.v1p4beta1.ProductSet"o\x82\xd3\xe4\x93\x02\x45"6/v1p4beta1/{parent=projects/*/locations/*}/productSets:\x0bproduct_set\xda\x41!parent,product_set,product_set_id\x12\xc9\x01\n\x0fListProductSets\x12\x35.google.cloud.vision.v1p4beta1.ListProductSetsRequest\x1a\x36.google.cloud.vision.v1p4beta1.ListProductSetsResponse"G\x82\xd3\xe4\x93\x02\x38\x12\x36/v1p4beta1/{parent=projects/*/locations/*}/productSets\xda\x41\x06parent\x12\xb6\x01\n\rGetProductSet\x12\x33.google.cloud.vision.v1p4beta1.GetProductSetRequest\x1a).google.cloud.vision.v1p4beta1.ProductSet"E\x82\xd3\xe4\x93\x02\x38\x12\x36/v1p4beta1/{name=projects/*/locations/*/productSets/*}\xda\x41\x04name\x12\xe8\x01\n\x10UpdateProductSet\x12\x36.google.cloud.vision.v1p4beta1.UpdateProductSetRequest\x1a).google.cloud.vision.v1p4beta1.ProductSet"q\x82\xd3\xe4\x93\x02Q2B/v1p4beta1/{product_set.name=projects/*/locations/*/productSets/*}:\x0bproduct_set\xda\x41\x17product_set,update_mask\x12\xa9\x01\n\x10\x44\x65leteProductSet\x12\x36.google.cloud.vision.v1p4beta1.DeleteProductSetRequest\x1a\x16.google.protobuf.Empty"E\x82\xd3\xe4\x93\x02\x38*6/v1p4beta1/{name=projects/*/locations/*/productSets/*}\xda\x41\x04name\x12\xce\x01\n\rCreateProduct\x12\x33.google.cloud.vision.v1p4beta1.CreateProductRequest\x1a&.google.cloud.vision.v1p4beta1.Product"`\x82\xd3\xe4\x93\x02>"3/v1p4beta1/{parent=projects/*/locations/*}/products:\x07product\xda\x41\x19parent,product,product_id\x12\xbd\x01\n\x0cListProducts\x12\x32.google.cloud.vision.v1p4beta1.ListProductsRequest\x1a\x33.google.cloud.vision.v1p4beta1.ListProductsResponse"D\x82\xd3\xe4\x93\x02\x35\x12\x33/v1p4beta1/{parent=projects/*/locations/*}/products\xda\x41\x06parent\x12\xaa\x01\n\nGetProduct\x12\x30.google.cloud.vision.v1p4beta1.GetProductRequest\x1a&.google.cloud.vision.v1p4beta1.Product"B\x82\xd3\xe4\x93\x02\x35\x12\x33/v1p4beta1/{name=projects/*/locations/*/products/*}\xda\x41\x04name\x12\xd0\x01\n\rUpdateProduct\x12\x33.google.cloud.vision.v1p4beta1.UpdateProductRequest\x1a&.google.cloud.vision.v1p4beta1.Product"b\x82\xd3\xe4\x93\x02\x46\x32;/v1p4beta1/{product.name=projects/*/locations/*/products/*}:\x07product\xda\x41\x13product,update_mask\x12\xa0\x01\n\rDeleteProduct\x12\x33.google.cloud.vision.v1p4beta1.DeleteProductRequest\x1a\x16.google.protobuf.Empty"B\x82\xd3\xe4\x93\x02\x35*3/v1p4beta1/{name=projects/*/locations/*/products/*}\xda\x41\x04name\x12\x8e\x02\n\x14\x43reateReferenceImage\x12:.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest\x1a-.google.cloud.vision.v1p4beta1.ReferenceImage"\x8a\x01\x82\xd3\xe4\x93\x02X"E/v1p4beta1/{parent=projects/*/locations/*/products/*}/referenceImages:\x0freference_image\xda\x41)parent,reference_image,reference_image_id\x12\xc0\x01\n\x14\x44\x65leteReferenceImage\x12:.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest\x1a\x16.google.protobuf.Empty"T\x82\xd3\xe4\x93\x02G*E/v1p4beta1/{name=projects/*/locations/*/products/*/referenceImages/*}\xda\x41\x04name\x12\xe4\x01\n\x13ListReferenceImages\x12\x39.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest\x1a:.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse"V\x82\xd3\xe4\x93\x02G\x12\x45/v1p4beta1/{parent=projects/*/locations/*/products/*}/referenceImages\xda\x41\x06parent\x12\xd1\x01\n\x11GetReferenceImage\x12\x37.google.cloud.vision.v1p4beta1.GetReferenceImageRequest\x1a-.google.cloud.vision.v1p4beta1.ReferenceImage"T\x82\xd3\xe4\x93\x02G\x12\x45/v1p4beta1/{name=projects/*/locations/*/products/*/referenceImages/*}\xda\x41\x04name\x12\xcb\x01\n\x16\x41\x64\x64ProductToProductSet\x12<.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest\x1a\x16.google.protobuf.Empty"[\x82\xd3\xe4\x93\x02\x46"A/v1p4beta1/{name=projects/*/locations/*/productSets/*}:addProduct:\x01*\xda\x41\x0cname,product\x12\xd8\x01\n\x1bRemoveProductFromProductSet\x12\x41.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest\x1a\x16.google.protobuf.Empty"^\x82\xd3\xe4\x93\x02I"D/v1p4beta1/{name=projects/*/locations/*/productSets/*}:removeProduct:\x01*\xda\x41\x0cname,product\x12\xeb\x01\n\x18ListProductsInProductSet\x12>.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest\x1a?.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse"N\x82\xd3\xe4\x93\x02\x41\x12?/v1p4beta1/{name=projects/*/locations/*/productSets/*}/products\xda\x41\x04name\x12\x82\x02\n\x11ImportProductSets\x12\x37.google.cloud.vision.v1p4beta1.ImportProductSetsRequest\x1a\x1d.google.longrunning.Operation"\x94\x01\x82\xd3\xe4\x93\x02\x42"=/v1p4beta1/{parent=projects/*/locations/*}/productSets:import:\x01*\xda\x41\x13parent,input_config\xca\x41\x33\n\x19ImportProductSetsResponse\x12\x16\x42\x61tchOperationMetadata\x12\xe4\x01\n\rPurgeProducts\x12\x33.google.cloud.vision.v1p4beta1.PurgeProductsRequest\x1a\x1d.google.longrunning.Operation"\x7f\x82\xd3\xe4\x93\x02>"9/v1p4beta1/{parent=projects/*/locations/*}/products:purge:\x01*\xda\x41\x06parent\xca\x41/\n\x15google.protobuf.Empty\x12\x16\x42\x61tchOperationMetadata\x1av\xca\x41\x15vision.googleapis.com\xd2\x41[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-visionB\x8f\x01\n!com.google.cloud.vision.v1p4beta1B\x19ProductSearchServiceProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision\xf8\x01\x01\xa2\x02\x04GCVNb\x06proto3' - ), + serialized_options=b"\n!com.google.cloud.vision.v1p4beta1B\031ProductSearchServiceProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision\370\001\001\242\002\004GCVN", + serialized_pb=b'\n@google/cloud/vision_v1p4beta1/proto/product_search_service.proto\x12\x1dgoogle.cloud.vision.v1p4beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x32google/cloud/vision_v1p4beta1/proto/geometry.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto"\xb2\x02\n\x07Product\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x1d\n\x10product_category\x18\x04 \x01(\tB\x03\xe0\x41\x05\x12G\n\x0eproduct_labels\x18\x05 \x03(\x0b\x32/.google.cloud.vision.v1p4beta1.Product.KeyValue\x1a&\n\x08KeyValue\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:^\xea\x41[\n\x1dvision.googleapis.com/Product\x12:projects/{project}/locations/{location}/products/{product}"\xfd\x01\n\nProductSet\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x33\n\nindex_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12,\n\x0bindex_error\x18\x04 \x01(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03:h\xea\x41\x65\n vision.googleapis.com/ProductSet\x12\x41projects/{project}/locations/{location}/productSets/{product_set}"\x85\x02\n\x0eReferenceImage\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x03uri\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12H\n\x0e\x62ounding_polys\x18\x03 \x03(\x0b\x32+.google.cloud.vision.v1p4beta1.BoundingPolyB\x03\xe0\x41\x01:\x88\x01\xea\x41\x84\x01\n$vision.googleapis.com/ReferenceImage\x12\\projects/{project}/locations/{location}/products/{product}/referenceImages/{reference_image}"\xa3\x01\n\x14\x43reateProductRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12<\n\x07product\x18\x02 \x01(\x0b\x32&.google.cloud.vision.v1p4beta1.ProductB\x03\xe0\x41\x02\x12\x12\n\nproduct_id\x18\x03 \x01(\t"w\n\x13ListProductsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"i\n\x14ListProductsResponse\x12\x38\n\x08products\x18\x01 \x03(\x0b\x32&.google.cloud.vision.v1p4beta1.Product\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"H\n\x11GetProductRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product"\x85\x01\n\x14UpdateProductRequest\x12<\n\x07product\x18\x01 \x01(\x0b\x32&.google.cloud.vision.v1p4beta1.ProductB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"K\n\x14\x44\x65leteProductRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product"\xb1\x01\n\x17\x43reateProductSetRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x43\n\x0bproduct_set\x18\x02 \x01(\x0b\x32).google.cloud.vision.v1p4beta1.ProductSetB\x03\xe0\x41\x02\x12\x16\n\x0eproduct_set_id\x18\x03 \x01(\t"z\n\x16ListProductSetsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"s\n\x17ListProductSetsResponse\x12?\n\x0cproduct_sets\x18\x01 \x03(\x0b\x32).google.cloud.vision.v1p4beta1.ProductSet\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"N\n\x14GetProductSetRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41"\n vision.googleapis.com/ProductSet"\x8f\x01\n\x17UpdateProductSetRequest\x12\x43\n\x0bproduct_set\x18\x01 \x01(\x0b\x32).google.cloud.vision.v1p4beta1.ProductSetB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"Q\n\x17\x44\x65leteProductSetRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41"\n vision.googleapis.com/ProductSet"\xbd\x01\n\x1b\x43reateReferenceImageRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product\x12K\n\x0freference_image\x18\x02 \x01(\x0b\x32-.google.cloud.vision.v1p4beta1.ReferenceImageB\x03\xe0\x41\x02\x12\x1a\n\x12reference_image_id\x18\x03 \x01(\t"z\n\x1aListReferenceImagesRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"\x92\x01\n\x1bListReferenceImagesResponse\x12G\n\x10reference_images\x18\x01 \x03(\x0b\x32-.google.cloud.vision.v1p4beta1.ReferenceImage\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t"V\n\x18GetReferenceImageRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$vision.googleapis.com/ReferenceImage"Y\n\x1b\x44\x65leteReferenceImageRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$vision.googleapis.com/ReferenceImage"\x8f\x01\n\x1d\x41\x64\x64ProductToProductSetRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41"\n vision.googleapis.com/ProductSet\x12\x36\n\x07product\x18\x02 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product"\x94\x01\n"RemoveProductFromProductSetRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41"\n vision.googleapis.com/ProductSet\x12\x36\n\x07product\x18\x02 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product"\x80\x01\n\x1fListProductsInProductSetRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41"\n vision.googleapis.com/ProductSet\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"u\n ListProductsInProductSetResponse\x12\x38\n\x08products\x18\x01 \x03(\x0b\x32&.google.cloud.vision.v1p4beta1.Product\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"2\n\x1aImportProductSetsGcsSource\x12\x14\n\x0c\x63sv_file_uri\x18\x01 \x01(\t"y\n\x1cImportProductSetsInputConfig\x12O\n\ngcs_source\x18\x01 \x01(\x0b\x32\x39.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSourceH\x00\x42\x08\n\x06source"\xad\x01\n\x18ImportProductSetsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12V\n\x0cinput_config\x18\x02 \x01(\x0b\x32;.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfigB\x03\xe0\x41\x02"\x8a\x01\n\x19ImportProductSetsResponse\x12G\n\x10reference_images\x18\x01 \x03(\x0b\x32-.google.cloud.vision.v1p4beta1.ReferenceImage\x12$\n\x08statuses\x18\x02 \x03(\x0b\x32\x12.google.rpc.Status"\x9e\x02\n\x16\x42\x61tchOperationMetadata\x12J\n\x05state\x18\x01 \x01(\x0e\x32;.google.cloud.vision.v1p4beta1.BatchOperationMetadata.State\x12/\n\x0bsubmit_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"Y\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0e\n\nPROCESSING\x10\x01\x12\x0e\n\nSUCCESSFUL\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x12\r\n\tCANCELLED\x10\x04"/\n\x15ProductSetPurgeConfig\x12\x16\n\x0eproduct_set_id\x18\x01 \x01(\t"\xe6\x01\n\x14PurgeProductsRequest\x12X\n\x18product_set_purge_config\x18\x02 \x01(\x0b\x32\x34.google.cloud.vision.v1p4beta1.ProductSetPurgeConfigH\x00\x12 \n\x16\x64\x65lete_orphan_products\x18\x03 \x01(\x08H\x00\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\r\n\x05\x66orce\x18\x04 \x01(\x08\x42\x08\n\x06target2\xd2 \n\rProductSearch\x12\xe6\x01\n\x10\x43reateProductSet\x12\x36.google.cloud.vision.v1p4beta1.CreateProductSetRequest\x1a).google.cloud.vision.v1p4beta1.ProductSet"o\x82\xd3\xe4\x93\x02\x45"6/v1p4beta1/{parent=projects/*/locations/*}/productSets:\x0bproduct_set\xda\x41!parent,product_set,product_set_id\x12\xc9\x01\n\x0fListProductSets\x12\x35.google.cloud.vision.v1p4beta1.ListProductSetsRequest\x1a\x36.google.cloud.vision.v1p4beta1.ListProductSetsResponse"G\x82\xd3\xe4\x93\x02\x38\x12\x36/v1p4beta1/{parent=projects/*/locations/*}/productSets\xda\x41\x06parent\x12\xb6\x01\n\rGetProductSet\x12\x33.google.cloud.vision.v1p4beta1.GetProductSetRequest\x1a).google.cloud.vision.v1p4beta1.ProductSet"E\x82\xd3\xe4\x93\x02\x38\x12\x36/v1p4beta1/{name=projects/*/locations/*/productSets/*}\xda\x41\x04name\x12\xe8\x01\n\x10UpdateProductSet\x12\x36.google.cloud.vision.v1p4beta1.UpdateProductSetRequest\x1a).google.cloud.vision.v1p4beta1.ProductSet"q\x82\xd3\xe4\x93\x02Q2B/v1p4beta1/{product_set.name=projects/*/locations/*/productSets/*}:\x0bproduct_set\xda\x41\x17product_set,update_mask\x12\xa9\x01\n\x10\x44\x65leteProductSet\x12\x36.google.cloud.vision.v1p4beta1.DeleteProductSetRequest\x1a\x16.google.protobuf.Empty"E\x82\xd3\xe4\x93\x02\x38*6/v1p4beta1/{name=projects/*/locations/*/productSets/*}\xda\x41\x04name\x12\xce\x01\n\rCreateProduct\x12\x33.google.cloud.vision.v1p4beta1.CreateProductRequest\x1a&.google.cloud.vision.v1p4beta1.Product"`\x82\xd3\xe4\x93\x02>"3/v1p4beta1/{parent=projects/*/locations/*}/products:\x07product\xda\x41\x19parent,product,product_id\x12\xbd\x01\n\x0cListProducts\x12\x32.google.cloud.vision.v1p4beta1.ListProductsRequest\x1a\x33.google.cloud.vision.v1p4beta1.ListProductsResponse"D\x82\xd3\xe4\x93\x02\x35\x12\x33/v1p4beta1/{parent=projects/*/locations/*}/products\xda\x41\x06parent\x12\xaa\x01\n\nGetProduct\x12\x30.google.cloud.vision.v1p4beta1.GetProductRequest\x1a&.google.cloud.vision.v1p4beta1.Product"B\x82\xd3\xe4\x93\x02\x35\x12\x33/v1p4beta1/{name=projects/*/locations/*/products/*}\xda\x41\x04name\x12\xd0\x01\n\rUpdateProduct\x12\x33.google.cloud.vision.v1p4beta1.UpdateProductRequest\x1a&.google.cloud.vision.v1p4beta1.Product"b\x82\xd3\xe4\x93\x02\x46\x32;/v1p4beta1/{product.name=projects/*/locations/*/products/*}:\x07product\xda\x41\x13product,update_mask\x12\xa0\x01\n\rDeleteProduct\x12\x33.google.cloud.vision.v1p4beta1.DeleteProductRequest\x1a\x16.google.protobuf.Empty"B\x82\xd3\xe4\x93\x02\x35*3/v1p4beta1/{name=projects/*/locations/*/products/*}\xda\x41\x04name\x12\x8e\x02\n\x14\x43reateReferenceImage\x12:.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest\x1a-.google.cloud.vision.v1p4beta1.ReferenceImage"\x8a\x01\x82\xd3\xe4\x93\x02X"E/v1p4beta1/{parent=projects/*/locations/*/products/*}/referenceImages:\x0freference_image\xda\x41)parent,reference_image,reference_image_id\x12\xc0\x01\n\x14\x44\x65leteReferenceImage\x12:.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest\x1a\x16.google.protobuf.Empty"T\x82\xd3\xe4\x93\x02G*E/v1p4beta1/{name=projects/*/locations/*/products/*/referenceImages/*}\xda\x41\x04name\x12\xe4\x01\n\x13ListReferenceImages\x12\x39.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest\x1a:.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse"V\x82\xd3\xe4\x93\x02G\x12\x45/v1p4beta1/{parent=projects/*/locations/*/products/*}/referenceImages\xda\x41\x06parent\x12\xd1\x01\n\x11GetReferenceImage\x12\x37.google.cloud.vision.v1p4beta1.GetReferenceImageRequest\x1a-.google.cloud.vision.v1p4beta1.ReferenceImage"T\x82\xd3\xe4\x93\x02G\x12\x45/v1p4beta1/{name=projects/*/locations/*/products/*/referenceImages/*}\xda\x41\x04name\x12\xcb\x01\n\x16\x41\x64\x64ProductToProductSet\x12<.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest\x1a\x16.google.protobuf.Empty"[\x82\xd3\xe4\x93\x02\x46"A/v1p4beta1/{name=projects/*/locations/*/productSets/*}:addProduct:\x01*\xda\x41\x0cname,product\x12\xd8\x01\n\x1bRemoveProductFromProductSet\x12\x41.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest\x1a\x16.google.protobuf.Empty"^\x82\xd3\xe4\x93\x02I"D/v1p4beta1/{name=projects/*/locations/*/productSets/*}:removeProduct:\x01*\xda\x41\x0cname,product\x12\xeb\x01\n\x18ListProductsInProductSet\x12>.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest\x1a?.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse"N\x82\xd3\xe4\x93\x02\x41\x12?/v1p4beta1/{name=projects/*/locations/*/productSets/*}/products\xda\x41\x04name\x12\x82\x02\n\x11ImportProductSets\x12\x37.google.cloud.vision.v1p4beta1.ImportProductSetsRequest\x1a\x1d.google.longrunning.Operation"\x94\x01\x82\xd3\xe4\x93\x02\x42"=/v1p4beta1/{parent=projects/*/locations/*}/productSets:import:\x01*\xda\x41\x13parent,input_config\xca\x41\x33\n\x19ImportProductSetsResponse\x12\x16\x42\x61tchOperationMetadata\x12\xe4\x01\n\rPurgeProducts\x12\x33.google.cloud.vision.v1p4beta1.PurgeProductsRequest\x1a\x1d.google.longrunning.Operation"\x7f\x82\xd3\xe4\x93\x02>"9/v1p4beta1/{parent=projects/*/locations/*}/products:purge:\x01*\xda\x41\x06parent\xca\x41/\n\x15google.protobuf.Empty\x12\x16\x42\x61tchOperationMetadata\x1av\xca\x41\x15vision.googleapis.com\xd2\x41[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-visionB\x8f\x01\n!com.google.cloud.vision.v1p4beta1B\x19ProductSearchServiceProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision\xf8\x01\x01\xa2\x02\x04GCVNb\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, google_dot_api_dot_client__pb2.DESCRIPTOR, @@ -106,7 +99,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -124,7 +117,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -162,7 +155,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -180,7 +173,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -198,7 +191,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -216,13 +209,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\005"), + serialized_options=b"\340A\005", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -247,9 +240,7 @@ extensions=[], nested_types=[_PRODUCT_KEYVALUE], enum_types=[], - serialized_options=_b( - "\352A[\n\035vision.googleapis.com/Product\022:projects/{project}/locations/{location}/products/{product}" - ), + serialized_options=b"\352A[\n\035vision.googleapis.com/Product\022:projects/{project}/locations/{location}/products/{product}", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -275,7 +266,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -293,7 +284,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -317,7 +308,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\003"), + serialized_options=b"\340A\003", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -335,16 +326,14 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\003"), + serialized_options=b"\340A\003", file=DESCRIPTOR, ), ], extensions=[], nested_types=[], enum_types=[], - serialized_options=_b( - "\352Ae\n vision.googleapis.com/ProductSet\022Aprojects/{project}/locations/{location}/productSets/{product_set}" - ), + serialized_options=b"\352Ae\n vision.googleapis.com/ProductSet\022Aprojects/{project}/locations/{location}/productSets/{product_set}", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -370,7 +359,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -388,13 +377,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -412,16 +401,14 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, ), ], extensions=[], nested_types=[], enum_types=[], - serialized_options=_b( - "\352A\204\001\n$vision.googleapis.com/ReferenceImage\022\\projects/{project}/locations/{location}/products/{product}/referenceImages/{reference_image}" - ), + serialized_options=b"\352A\204\001\n$vision.googleapis.com/ReferenceImage\022\\projects/{project}/locations/{location}/products/{product}/referenceImages/{reference_image}", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -447,15 +434,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A#\n!locations.googleapis.com/Location" - ), + serialized_options=b"\340A\002\372A#\n!locations.googleapis.com/Location", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -473,7 +458,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -485,7 +470,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -524,15 +509,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A#\n!locations.googleapis.com/Location" - ), + serialized_options=b"\340A\002\372A#\n!locations.googleapis.com/Location", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -562,7 +545,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -619,7 +602,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -658,15 +641,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A\037\n\035vision.googleapis.com/Product" - ), + serialized_options=b"\340A\002\372A\037\n\035vision.googleapis.com/Product", file=DESCRIPTOR, ) ], @@ -705,7 +686,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -756,15 +737,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A\037\n\035vision.googleapis.com/Product" - ), + serialized_options=b"\340A\002\372A\037\n\035vision.googleapis.com/Product", file=DESCRIPTOR, ) ], @@ -797,15 +776,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A#\n!locations.googleapis.com/Location" - ), + serialized_options=b"\340A\002\372A#\n!locations.googleapis.com/Location", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -823,7 +800,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -835,7 +812,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -874,15 +851,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A#\n!locations.googleapis.com/Location" - ), + serialized_options=b"\340A\002\372A#\n!locations.googleapis.com/Location", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -912,7 +887,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -969,7 +944,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1008,13 +983,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b('\340A\002\372A"\n vision.googleapis.com/ProductSet'), + serialized_options=b'\340A\002\372A"\n vision.googleapis.com/ProductSet', file=DESCRIPTOR, ) ], @@ -1053,7 +1028,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -1104,13 +1079,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b('\340A\002\372A"\n vision.googleapis.com/ProductSet'), + serialized_options=b'\340A\002\372A"\n vision.googleapis.com/ProductSet', file=DESCRIPTOR, ) ], @@ -1143,15 +1118,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A\037\n\035vision.googleapis.com/Product" - ), + serialized_options=b"\340A\002\372A\037\n\035vision.googleapis.com/Product", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -1169,7 +1142,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -1181,7 +1154,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1220,15 +1193,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A\037\n\035vision.googleapis.com/Product" - ), + serialized_options=b"\340A\002\372A\037\n\035vision.googleapis.com/Product", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -1258,7 +1229,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1333,7 +1304,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1372,15 +1343,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A&\n$vision.googleapis.com/ReferenceImage" - ), + serialized_options=b"\340A\002\372A&\n$vision.googleapis.com/ReferenceImage", file=DESCRIPTOR, ) ], @@ -1413,15 +1382,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A&\n$vision.googleapis.com/ReferenceImage" - ), + serialized_options=b"\340A\002\372A&\n$vision.googleapis.com/ReferenceImage", file=DESCRIPTOR, ) ], @@ -1454,13 +1421,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b('\340A\002\372A"\n vision.googleapis.com/ProductSet'), + serialized_options=b'\340A\002\372A"\n vision.googleapis.com/ProductSet', file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -1472,15 +1439,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A\037\n\035vision.googleapis.com/Product" - ), + serialized_options=b"\340A\002\372A\037\n\035vision.googleapis.com/Product", file=DESCRIPTOR, ), ], @@ -1513,13 +1478,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b('\340A\002\372A"\n vision.googleapis.com/ProductSet'), + serialized_options=b'\340A\002\372A"\n vision.googleapis.com/ProductSet', file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -1531,15 +1496,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A\037\n\035vision.googleapis.com/Product" - ), + serialized_options=b"\340A\002\372A\037\n\035vision.googleapis.com/Product", file=DESCRIPTOR, ), ], @@ -1572,13 +1535,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b('\340A\002\372A"\n vision.googleapis.com/ProductSet'), + serialized_options=b'\340A\002\372A"\n vision.googleapis.com/ProductSet', file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -1608,7 +1571,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1665,7 +1628,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1704,7 +1667,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1790,15 +1753,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A#\n!locations.googleapis.com/Location" - ), + serialized_options=b"\340A\002\372A#\n!locations.googleapis.com/Location", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -1816,7 +1777,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), ], @@ -1981,7 +1942,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -2056,15 +2017,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A#\n!locations.googleapis.com/Location" - ), + serialized_options=b"\340A\002\372A#\n!locations.googleapis.com/Location", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -2239,14 +2198,16 @@ Product = _reflection.GeneratedProtocolMessageType( "Product", (_message.Message,), - dict( - KeyValue=_reflection.GeneratedProtocolMessageType( + { + "KeyValue": _reflection.GeneratedProtocolMessageType( "KeyValue", (_message.Message,), - dict( - DESCRIPTOR=_PRODUCT_KEYVALUE, - __module__="google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", - __doc__="""A product label represented as a key-value pair. + { + "DESCRIPTOR": _PRODUCT_KEYVALUE, + "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", + "__doc__": """A product label represented as a key-value pair. + + Attributes: key: The key of the label attached to the product. Cannot be empty @@ -2256,11 +2217,13 @@ empty and cannot exceed 128 bytes. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.Product.KeyValue) - ), + }, ), - DESCRIPTOR=_PRODUCT, - __module__="google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", - __doc__="""A Product contains ReferenceImages. + "DESCRIPTOR": _PRODUCT, + "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", + "__doc__": """A Product contains ReferenceImages. + + Attributes: name: The resource name of the product. Format is: @@ -2274,24 +2237,24 @@ at most 4096 characters long. product_category: Immutable. The category for the product identified by the - reference image. This should be either "homegoods-v2", - "apparel-v2", or "toys-v2". The legacy categories "homegoods", - "apparel", and "toys" are still supported, but these should + reference image. This should be either “homegoods-v2”, + “apparel-v2”, or “toys-v2”. The legacy categories “homegoods”, + “apparel”, and “toys” are still supported, but these should not be used for new products. product_labels: Key-value pairs that can be attached to a product. At query time, constraints can be specified based on the - product\_labels. Note that integer values can be provided as - strings, e.g. "1199". Only strings with integer values can + product_labels. Note that integer values can be provided as + strings, e.g. “1199”. Only strings with integer values can match a range-based restriction which is to be supported soon. Multiple values can be assigned to the same key. One product - may have up to 500 product\_labels. Notice that the total - number of distinct product\_labels over all products in one + may have up to 500 product_labels. Notice that the total + number of distinct product_labels over all products in one ProductSet cannot exceed 1M, otherwise the product search pipeline will refuse to work for that ProductSet. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.Product) - ), + }, ) _sym_db.RegisterMessage(Product) _sym_db.RegisterMessage(Product.KeyValue) @@ -2299,12 +2262,14 @@ ProductSet = _reflection.GeneratedProtocolMessageType( "ProductSet", (_message.Message,), - dict( - DESCRIPTOR=_PRODUCTSET, - __module__="google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", - __doc__="""A ProductSet contains Products. A ProductSet can contain a maximum of - 1 million reference images. If the limit is exceeded, periodic - indexing will fail. + { + "DESCRIPTOR": _PRODUCTSET, + "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", + "__doc__": """A ProductSet contains Products. A ProductSet can contain a + maximum of 1 million reference images. If the limit is exceeded, + periodic indexing will fail. + + Attributes: name: The resource name of the ProductSet. Format is: ``projects/PR @@ -2317,7 +2282,7 @@ Output only. The time at which this ProductSet was last indexed. Query results will reflect all updates before this time. If this ProductSet has never been indexed, this - timestamp is the default value "1970-01-01T00:00:00Z". This + timestamp is the default value “1970-01-01T00:00:00Z”. This field is ignored when creating a ProductSet. index_error: Output only. If there was an error with indexing the product @@ -2325,18 +2290,20 @@ creating a ProductSet. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ProductSet) - ), + }, ) _sym_db.RegisterMessage(ProductSet) ReferenceImage = _reflection.GeneratedProtocolMessageType( "ReferenceImage", (_message.Message,), - dict( - DESCRIPTOR=_REFERENCEIMAGE, - __module__="google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", - __doc__="""A ``ReferenceImage`` represents a product image and its associated - metadata, such as bounding boxes. + { + "DESCRIPTOR": _REFERENCEIMAGE, + "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", + "__doc__": """A ``ReferenceImage`` represents a product image and its + associated metadata, such as bounding boxes. + + Attributes: name: The resource name of the reference image. Format is: ``proje @@ -2353,20 +2320,22 @@ 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). + aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5 is not). """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ReferenceImage) - ), + }, ) _sym_db.RegisterMessage(ReferenceImage) CreateProductRequest = _reflection.GeneratedProtocolMessageType( "CreateProductRequest", (_message.Message,), - dict( - DESCRIPTOR=_CREATEPRODUCTREQUEST, - __module__="google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", - __doc__="""Request message for the ``CreateProduct`` method. + { + "DESCRIPTOR": _CREATEPRODUCTREQUEST, + "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", + "__doc__": """Request message for the ``CreateProduct`` method. + + Attributes: parent: Required. The project in which the Product should be created. @@ -2377,21 +2346,23 @@ 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 ``/``. + ALREADY_EXISTS. Must be at most 128 characters long. It cannot + contain the character ``/``. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.CreateProductRequest) - ), + }, ) _sym_db.RegisterMessage(CreateProductRequest) ListProductsRequest = _reflection.GeneratedProtocolMessageType( "ListProductsRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTPRODUCTSREQUEST, - __module__="google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", - __doc__="""Request message for the ``ListProducts`` method. + { + "DESCRIPTOR": _LISTPRODUCTSREQUEST, + "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", + "__doc__": """Request message for the ``ListProducts`` method. + + Attributes: parent: Required. The project OR ProductSet from which Products should @@ -2400,21 +2371,23 @@ The maximum number of items to return. Default 10, maximum 100. page_token: - The next\_page\_token returned from a previous List request, - if any. + The next_page_token returned from a previous List request, if + any. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ListProductsRequest) - ), + }, ) _sym_db.RegisterMessage(ListProductsRequest) ListProductsResponse = _reflection.GeneratedProtocolMessageType( "ListProductsResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTPRODUCTSRESPONSE, - __module__="google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", - __doc__="""Response message for the ``ListProducts`` method. + { + "DESCRIPTOR": _LISTPRODUCTSRESPONSE, + "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", + "__doc__": """Response message for the ``ListProducts`` method. + + Attributes: products: List of products. @@ -2423,73 +2396,81 @@ are no more results in the list. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ListProductsResponse) - ), + }, ) _sym_db.RegisterMessage(ListProductsResponse) GetProductRequest = _reflection.GeneratedProtocolMessageType( "GetProductRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETPRODUCTREQUEST, - __module__="google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", - __doc__="""Request message for the ``GetProduct`` method. + { + "DESCRIPTOR": _GETPRODUCTREQUEST, + "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", + "__doc__": """Request message for the ``GetProduct`` method. + + Attributes: name: Required. Resource name of the Product to get. Format is: ``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`` """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.GetProductRequest) - ), + }, ) _sym_db.RegisterMessage(GetProductRequest) UpdateProductRequest = _reflection.GeneratedProtocolMessageType( "UpdateProductRequest", (_message.Message,), - dict( - DESCRIPTOR=_UPDATEPRODUCTREQUEST, - __module__="google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", - __doc__="""Request message for the ``UpdateProduct`` method. + { + "DESCRIPTOR": _UPDATEPRODUCTREQUEST, + "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", + "__doc__": """Request message for the ``UpdateProduct`` method. + + Attributes: product: Required. The Product resource which replaces the one on the server. product.name is immutable. update_mask: The [FieldMask][google.protobuf.FieldMask] that specifies - which fields to update. If update\_mask isn't specified, all + 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``. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.UpdateProductRequest) - ), + }, ) _sym_db.RegisterMessage(UpdateProductRequest) DeleteProductRequest = _reflection.GeneratedProtocolMessageType( "DeleteProductRequest", (_message.Message,), - dict( - DESCRIPTOR=_DELETEPRODUCTREQUEST, - __module__="google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", - __doc__="""Request message for the ``DeleteProduct`` method. + { + "DESCRIPTOR": _DELETEPRODUCTREQUEST, + "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", + "__doc__": """Request message for the ``DeleteProduct`` method. + + Attributes: name: Required. Resource name of product to delete. Format is: ``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`` """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.DeleteProductRequest) - ), + }, ) _sym_db.RegisterMessage(DeleteProductRequest) CreateProductSetRequest = _reflection.GeneratedProtocolMessageType( "CreateProductSetRequest", (_message.Message,), - dict( - DESCRIPTOR=_CREATEPRODUCTSETREQUEST, - __module__="google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", - __doc__="""Request message for the ``CreateProductSet`` method. + { + "DESCRIPTOR": _CREATEPRODUCTSETREQUEST, + "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", + "__doc__": """Request message for the ``CreateProductSet`` method. + + Attributes: parent: Required. The project in which the ProductSet should be @@ -2500,21 +2481,23 @@ 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 character ``/``. + ALREADY_EXISTS. Must be at most 128 characters long. It cannot + contain the character ``/``. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.CreateProductSetRequest) - ), + }, ) _sym_db.RegisterMessage(CreateProductSetRequest) ListProductSetsRequest = _reflection.GeneratedProtocolMessageType( "ListProductSetsRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTPRODUCTSETSREQUEST, - __module__="google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", - __doc__="""Request message for the ``ListProductSets`` method. + { + "DESCRIPTOR": _LISTPRODUCTSETSREQUEST, + "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", + "__doc__": """Request message for the ``ListProductSets`` method. + + Attributes: parent: Required. The project from which ProductSets should be listed. @@ -2523,21 +2506,23 @@ The maximum number of items to return. Default 10, maximum 100. page_token: - The next\_page\_token returned from a previous List request, - if any. + The next_page_token returned from a previous List request, if + any. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ListProductSetsRequest) - ), + }, ) _sym_db.RegisterMessage(ListProductSetsRequest) ListProductSetsResponse = _reflection.GeneratedProtocolMessageType( "ListProductSetsResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTPRODUCTSETSRESPONSE, - __module__="google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", - __doc__="""Response message for the ``ListProductSets`` method. + { + "DESCRIPTOR": _LISTPRODUCTSETSRESPONSE, + "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", + "__doc__": """Response message for the ``ListProductSets`` method. + + Attributes: product_sets: List of ProductSets. @@ -2546,17 +2531,19 @@ are no more results in the list. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ListProductSetsResponse) - ), + }, ) _sym_db.RegisterMessage(ListProductSetsResponse) GetProductSetRequest = _reflection.GeneratedProtocolMessageType( "GetProductSetRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETPRODUCTSETREQUEST, - __module__="google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", - __doc__="""Request message for the ``GetProductSet`` method. + { + "DESCRIPTOR": _GETPRODUCTSETREQUEST, + "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", + "__doc__": """Request message for the ``GetProductSet`` method. + + Attributes: name: Required. Resource name of the ProductSet to get. Format is: @@ -2564,39 +2551,43 @@ _ID`` """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.GetProductSetRequest) - ), + }, ) _sym_db.RegisterMessage(GetProductSetRequest) UpdateProductSetRequest = _reflection.GeneratedProtocolMessageType( "UpdateProductSetRequest", (_message.Message,), - dict( - DESCRIPTOR=_UPDATEPRODUCTSETREQUEST, - __module__="google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", - __doc__="""Request message for the ``UpdateProductSet`` method. + { + "DESCRIPTOR": _UPDATEPRODUCTSETREQUEST, + "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", + "__doc__": """Request message for the ``UpdateProductSet`` method. + + Attributes: product_set: Required. The ProductSet resource which replaces the one on the server. update_mask: The [FieldMask][google.protobuf.FieldMask] that specifies - which fields to update. If update\_mask isn't specified, all + which fields to update. If update_mask isn’t specified, all mutable fields are to be updated. Valid mask path is ``display_name``. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.UpdateProductSetRequest) - ), + }, ) _sym_db.RegisterMessage(UpdateProductSetRequest) DeleteProductSetRequest = _reflection.GeneratedProtocolMessageType( "DeleteProductSetRequest", (_message.Message,), - dict( - DESCRIPTOR=_DELETEPRODUCTSETREQUEST, - __module__="google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", - __doc__="""Request message for the ``DeleteProductSet`` method. + { + "DESCRIPTOR": _DELETEPRODUCTSETREQUEST, + "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", + "__doc__": """Request message for the ``DeleteProductSet`` method. + + Attributes: name: Required. Resource name of the ProductSet to delete. Format @@ -2604,17 +2595,19 @@ _SET_ID`` """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.DeleteProductSetRequest) - ), + }, ) _sym_db.RegisterMessage(DeleteProductSetRequest) CreateReferenceImageRequest = _reflection.GeneratedProtocolMessageType( "CreateReferenceImageRequest", (_message.Message,), - dict( - DESCRIPTOR=_CREATEREFERENCEIMAGEREQUEST, - __module__="google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", - __doc__="""Request message for the ``CreateReferenceImage`` method. + { + "DESCRIPTOR": _CREATEREFERENCEIMAGEREQUEST, + "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", + "__doc__": """Request message for the ``CreateReferenceImage`` method. + + Attributes: parent: Required. Resource name of the product in which to create the @@ -2627,21 +2620,23 @@ 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 contain the character ``/``. + with code ALREADY_EXISTS. Must be at most 128 characters long. + It cannot contain the character ``/``. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.CreateReferenceImageRequest) - ), + }, ) _sym_db.RegisterMessage(CreateReferenceImageRequest) ListReferenceImagesRequest = _reflection.GeneratedProtocolMessageType( "ListReferenceImagesRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTREFERENCEIMAGESREQUEST, - __module__="google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", - __doc__="""Request message for the ``ListReferenceImages`` method. + { + "DESCRIPTOR": _LISTREFERENCEIMAGESREQUEST, + "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", + "__doc__": """Request message for the ``ListReferenceImages`` method. + + Attributes: parent: Required. Resource name of the product containing the @@ -2657,17 +2652,19 @@ not specified. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ListReferenceImagesRequest) - ), + }, ) _sym_db.RegisterMessage(ListReferenceImagesRequest) ListReferenceImagesResponse = _reflection.GeneratedProtocolMessageType( "ListReferenceImagesResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTREFERENCEIMAGESRESPONSE, - __module__="google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", - __doc__="""Response message for the ``ListReferenceImages`` method. + { + "DESCRIPTOR": _LISTREFERENCEIMAGESRESPONSE, + "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", + "__doc__": """Response message for the ``ListReferenceImages`` method. + + Attributes: reference_images: The list of reference images. @@ -2675,21 +2672,23 @@ The maximum number of items to return. Default 10, maximum 100. next_page_token: - The next\_page\_token returned from a previous List request, - if any. + The next_page_token returned from a previous List request, if + any. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ListReferenceImagesResponse) - ), + }, ) _sym_db.RegisterMessage(ListReferenceImagesResponse) GetReferenceImageRequest = _reflection.GeneratedProtocolMessageType( "GetReferenceImageRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETREFERENCEIMAGEREQUEST, - __module__="google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", - __doc__="""Request message for the ``GetReferenceImage`` method. + { + "DESCRIPTOR": _GETREFERENCEIMAGEREQUEST, + "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", + "__doc__": """Request message for the ``GetReferenceImage`` method. + + Attributes: name: Required. The resource name of the ReferenceImage to get. @@ -2697,17 +2696,19 @@ ODUCT_ID/referenceImages/IMAGE_ID``. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.GetReferenceImageRequest) - ), + }, ) _sym_db.RegisterMessage(GetReferenceImageRequest) DeleteReferenceImageRequest = _reflection.GeneratedProtocolMessageType( "DeleteReferenceImageRequest", (_message.Message,), - dict( - DESCRIPTOR=_DELETEREFERENCEIMAGEREQUEST, - __module__="google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", - __doc__="""Request message for the ``DeleteReferenceImage`` method. + { + "DESCRIPTOR": _DELETEREFERENCEIMAGEREQUEST, + "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", + "__doc__": """Request message for the ``DeleteReferenceImage`` method. + + Attributes: name: Required. The resource name of the reference image to delete. @@ -2715,17 +2716,19 @@ ODUCT_ID/referenceImages/IMAGE_ID`` """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest) - ), + }, ) _sym_db.RegisterMessage(DeleteReferenceImageRequest) AddProductToProductSetRequest = _reflection.GeneratedProtocolMessageType( "AddProductToProductSetRequest", (_message.Message,), - dict( - DESCRIPTOR=_ADDPRODUCTTOPRODUCTSETREQUEST, - __module__="google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", - __doc__="""Request message for the ``AddProductToProductSet`` method. + { + "DESCRIPTOR": _ADDPRODUCTTOPRODUCTSETREQUEST, + "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", + "__doc__": """Request message for the ``AddProductToProductSet`` method. + + Attributes: name: Required. The resource name for the ProductSet to modify. @@ -2737,17 +2740,20 @@ ``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`` """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.AddProductToProductSetRequest) - ), + }, ) _sym_db.RegisterMessage(AddProductToProductSetRequest) RemoveProductFromProductSetRequest = _reflection.GeneratedProtocolMessageType( "RemoveProductFromProductSetRequest", (_message.Message,), - dict( - DESCRIPTOR=_REMOVEPRODUCTFROMPRODUCTSETREQUEST, - __module__="google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", - __doc__="""Request message for the ``RemoveProductFromProductSet`` method. + { + "DESCRIPTOR": _REMOVEPRODUCTFROMPRODUCTSETREQUEST, + "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", + "__doc__": """Request message for the ``RemoveProductFromProductSet`` + method. + + Attributes: name: Required. The resource name for the ProductSet to modify. @@ -2759,17 +2765,20 @@ ``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`` """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest) - ), + }, ) _sym_db.RegisterMessage(RemoveProductFromProductSetRequest) ListProductsInProductSetRequest = _reflection.GeneratedProtocolMessageType( "ListProductsInProductSetRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTPRODUCTSINPRODUCTSETREQUEST, - __module__="google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", - __doc__="""Request message for the ``ListProductsInProductSet`` method. + { + "DESCRIPTOR": _LISTPRODUCTSINPRODUCTSETREQUEST, + "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", + "__doc__": """Request message for the ``ListProductsInProductSet`` + method. + + Attributes: name: Required. The ProductSet resource for which to retrieve @@ -2779,21 +2788,24 @@ The maximum number of items to return. Default 10, maximum 100. page_token: - The next\_page\_token returned from a previous List request, - if any. + The next_page_token returned from a previous List request, if + any. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest) - ), + }, ) _sym_db.RegisterMessage(ListProductsInProductSetRequest) ListProductsInProductSetResponse = _reflection.GeneratedProtocolMessageType( "ListProductsInProductSetResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTPRODUCTSINPRODUCTSETRESPONSE, - __module__="google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", - __doc__="""Response message for the ``ListProductsInProductSet`` method. + { + "DESCRIPTOR": _LISTPRODUCTSINPRODUCTSETRESPONSE, + "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", + "__doc__": """Response message for the ``ListProductsInProductSet`` + method. + + Attributes: products: The list of Products. @@ -2802,18 +2814,20 @@ are no more results in the list. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse) - ), + }, ) _sym_db.RegisterMessage(ListProductsInProductSetResponse) ImportProductSetsGcsSource = _reflection.GeneratedProtocolMessageType( "ImportProductSetsGcsSource", (_message.Message,), - dict( - DESCRIPTOR=_IMPORTPRODUCTSETSGCSSOURCE, - __module__="google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", - __doc__="""The Google Cloud Storage location for a csv file which preserves a - list of ImportProductSetRequests in each line. + { + "DESCRIPTOR": _IMPORTPRODUCTSETSGCSSOURCE, + "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", + "__doc__": """The Google Cloud Storage location for a csv file which + preserves a list of ImportProductSetRequests in each line. + + Attributes: csv_file_uri: The Google Cloud Storage URI of the input csv file. The URI @@ -2828,24 +2842,23 @@ id`` and ``product-id`` values does not exist, then the system will create a new ``ProductSet`` or ``Product`` for the image. In this case, the ``product-display-name`` column refers to [d - isplay\_name][google.cloud.vision.v1p4beta1.Product.display\_n - ame], the ``product-category`` column refers to [product\_cate - gory][google.cloud.vision.v1p4beta1.Product.product\_category] - , and the ``labels`` column refers to [product\_labels][google - .cloud.vision.v1p4beta1.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\_nam - e][google.cloud.vision.v1p4beta1.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`` columns. The ``labels`` column - (optional) is a line containing a list of comma-separated key- - value pairs, in the following format: :: - "key_1=value_1,key_2=value_2,...,key_n=value_n" The + isplay_name][google.cloud.vision.v1p4beta1.Product.display_nam + e], the ``product-category`` column refers to [product_categor + y][google.cloud.vision.v1p4beta1.Product.product_category], + and the ``labels`` column refers to [product_labels][google.cl + oud.vision.v1p4beta1.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.clou + d.vision.v1p4beta1.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`` columns. + The ``labels`` column (optional) is a line containing a list + of comma-separated key-value pairs, in the following format: + :: "key_1=value_1,key_2=value_2,...,key_n=value_n" The ``bounding-poly`` column (optional) identifies one region of interest from the image in the same manner as ``CreateReferenceImage``. If you do not specify the @@ -2856,25 +2869,26 @@ includes the same product information, and the ``bounding- poly`` values for each region of interest. The ``bounding- poly`` column must contain an even number of comma-separated - numbers, in the format - "p1\_x,p1\_y,p2\_x,p2\_y,...,pn\_x,pn\_y". Use non-negative - integers for absolute bounding polygons, and float values in - [0, 1] for normalized bounding polygons. The system will - resize the image if the image resolution is too large to - process (larger than 20MP). + numbers, in the format “p1_x,p1_y,p2_x,p2_y,…,pn_x,pn_y”. Use + non-negative integers for absolute bounding polygons, and + float values in [0, 1] for normalized bounding polygons. The + system will resize the image if the image resolution is too + large to process (larger than 20MP). """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource) - ), + }, ) _sym_db.RegisterMessage(ImportProductSetsGcsSource) ImportProductSetsInputConfig = _reflection.GeneratedProtocolMessageType( "ImportProductSetsInputConfig", (_message.Message,), - dict( - DESCRIPTOR=_IMPORTPRODUCTSETSINPUTCONFIG, - __module__="google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", - __doc__="""The input content for the ``ImportProductSets`` method. + { + "DESCRIPTOR": _IMPORTPRODUCTSETSINPUTCONFIG, + "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", + "__doc__": """The input content for the ``ImportProductSets`` method. + + Attributes: source: The source of the input. @@ -2883,17 +2897,19 @@ preserves a list of ImportProductSetRequests in each line. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig) - ), + }, ) _sym_db.RegisterMessage(ImportProductSetsInputConfig) ImportProductSetsRequest = _reflection.GeneratedProtocolMessageType( "ImportProductSetsRequest", (_message.Message,), - dict( - DESCRIPTOR=_IMPORTPRODUCTSETSREQUEST, - __module__="google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", - __doc__="""Request message for the ``ImportProductSets`` method. + { + "DESCRIPTOR": _IMPORTPRODUCTSETSREQUEST, + "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", + "__doc__": """Request message for the ``ImportProductSets`` method. + + Attributes: parent: Required. The project in which the ProductSets should be @@ -2902,24 +2918,28 @@ Required. The input content for the list of requests. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ImportProductSetsRequest) - ), + }, ) _sym_db.RegisterMessage(ImportProductSetsRequest) ImportProductSetsResponse = _reflection.GeneratedProtocolMessageType( "ImportProductSetsResponse", (_message.Message,), - dict( - DESCRIPTOR=_IMPORTPRODUCTSETSRESPONSE, - __module__="google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", - __doc__="""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.l - ongrunning.Operation.response][google.longrunning.Operation.response] + { + "DESCRIPTOR": _IMPORTPRODUCTSETSRESPONSE, + "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", + "__doc__": """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. + + Attributes: reference_images: - The list of reference\_images that are imported successfully. + The list of reference_images that are imported successfully. statuses: The rpc status for each ImportProductSet request, including both successes and errors. The number of statuses here @@ -2928,20 +2948,24 @@ line of the csv, starting from line 0. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ImportProductSetsResponse) - ), + }, ) _sym_db.RegisterMessage(ImportProductSetsResponse) BatchOperationMetadata = _reflection.GeneratedProtocolMessageType( "BatchOperationMetadata", (_message.Message,), - dict( - DESCRIPTOR=_BATCHOPERATIONMETADATA, - __module__="google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", - __doc__="""Metadata for the batch operations such as the current state. This is - included in the ``metadata`` field of the ``Operation`` returned by - the ``GetOperation`` call of the ``google::longrunning::Operations`` + { + "DESCRIPTOR": _BATCHOPERATIONMETADATA, + "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", + "__doc__": """Metadata for the batch operations such as the current + state. + + This is included in the ``metadata`` field of the ``Operation`` returned + by the ``GetOperation`` call of the ``google::longrunning::Operations`` service. + + Attributes: state: The current state of the batch operation. @@ -2953,43 +2977,47 @@ set to true. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.BatchOperationMetadata) - ), + }, ) _sym_db.RegisterMessage(BatchOperationMetadata) ProductSetPurgeConfig = _reflection.GeneratedProtocolMessageType( "ProductSetPurgeConfig", (_message.Message,), - dict( - DESCRIPTOR=_PRODUCTSETPURGECONFIG, - __module__="google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", - __doc__="""Config to control which ProductSet contains the Products to be - deleted. + { + "DESCRIPTOR": _PRODUCTSETPURGECONFIG, + "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", + "__doc__": """Config to control which ProductSet contains the Products + to be deleted. + + Attributes: product_set_id: The ProductSet that contains the Products to delete. If a - Product is a member of product\_set\_id in addition to other + Product is a member of product_set_id in addition to other ProductSets, the Product will still be deleted. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.ProductSetPurgeConfig) - ), + }, ) _sym_db.RegisterMessage(ProductSetPurgeConfig) PurgeProductsRequest = _reflection.GeneratedProtocolMessageType( "PurgeProductsRequest", (_message.Message,), - dict( - DESCRIPTOR=_PURGEPRODUCTSREQUEST, - __module__="google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", - __doc__="""Request message for the ``PurgeProducts`` method. + { + "DESCRIPTOR": _PURGEPRODUCTSREQUEST, + "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", + "__doc__": """Request message for the ``PurgeProducts`` method. + + Attributes: target: The Products to delete. product_set_purge_config: Specify which ProductSet contains the Products to be deleted. delete_orphan_products: - If delete\_orphan\_products is true, all Products that are not + If delete_orphan_products is true, all Products that are not in any ProductSet will be deleted. parent: Required. The project and location in which the Products @@ -3000,7 +3028,7 @@ actually perform the purge. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.PurgeProductsRequest) - ), + }, ) _sym_db.RegisterMessage(PurgeProductsRequest) @@ -3045,9 +3073,7 @@ full_name="google.cloud.vision.v1p4beta1.ProductSearch", file=DESCRIPTOR, index=0, - serialized_options=_b( - "\312A\025vision.googleapis.com\322A[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-vision" - ), + serialized_options=b"\312A\025vision.googleapis.com\322A[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-vision", serialized_start=4919, serialized_end=9097, methods=[ @@ -3058,9 +3084,7 @@ containing_service=None, input_type=_CREATEPRODUCTSETREQUEST, output_type=_PRODUCTSET, - serialized_options=_b( - '\202\323\344\223\002E"6/v1p4beta1/{parent=projects/*/locations/*}/productSets:\013product_set\332A!parent,product_set,product_set_id' - ), + serialized_options=b'\202\323\344\223\002E"6/v1p4beta1/{parent=projects/*/locations/*}/productSets:\013product_set\332A!parent,product_set,product_set_id', ), _descriptor.MethodDescriptor( name="ListProductSets", @@ -3069,9 +3093,7 @@ containing_service=None, input_type=_LISTPRODUCTSETSREQUEST, output_type=_LISTPRODUCTSETSRESPONSE, - serialized_options=_b( - "\202\323\344\223\0028\0226/v1p4beta1/{parent=projects/*/locations/*}/productSets\332A\006parent" - ), + serialized_options=b"\202\323\344\223\0028\0226/v1p4beta1/{parent=projects/*/locations/*}/productSets\332A\006parent", ), _descriptor.MethodDescriptor( name="GetProductSet", @@ -3080,9 +3102,7 @@ containing_service=None, input_type=_GETPRODUCTSETREQUEST, output_type=_PRODUCTSET, - serialized_options=_b( - "\202\323\344\223\0028\0226/v1p4beta1/{name=projects/*/locations/*/productSets/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\0028\0226/v1p4beta1/{name=projects/*/locations/*/productSets/*}\332A\004name", ), _descriptor.MethodDescriptor( name="UpdateProductSet", @@ -3091,9 +3111,7 @@ containing_service=None, input_type=_UPDATEPRODUCTSETREQUEST, output_type=_PRODUCTSET, - serialized_options=_b( - "\202\323\344\223\002Q2B/v1p4beta1/{product_set.name=projects/*/locations/*/productSets/*}:\013product_set\332A\027product_set,update_mask" - ), + serialized_options=b"\202\323\344\223\002Q2B/v1p4beta1/{product_set.name=projects/*/locations/*/productSets/*}:\013product_set\332A\027product_set,update_mask", ), _descriptor.MethodDescriptor( name="DeleteProductSet", @@ -3102,9 +3120,7 @@ containing_service=None, input_type=_DELETEPRODUCTSETREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - "\202\323\344\223\0028*6/v1p4beta1/{name=projects/*/locations/*/productSets/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\0028*6/v1p4beta1/{name=projects/*/locations/*/productSets/*}\332A\004name", ), _descriptor.MethodDescriptor( name="CreateProduct", @@ -3113,9 +3129,7 @@ containing_service=None, input_type=_CREATEPRODUCTREQUEST, output_type=_PRODUCT, - serialized_options=_b( - '\202\323\344\223\002>"3/v1p4beta1/{parent=projects/*/locations/*}/products:\007product\332A\031parent,product,product_id' - ), + serialized_options=b'\202\323\344\223\002>"3/v1p4beta1/{parent=projects/*/locations/*}/products:\007product\332A\031parent,product,product_id', ), _descriptor.MethodDescriptor( name="ListProducts", @@ -3124,9 +3138,7 @@ containing_service=None, input_type=_LISTPRODUCTSREQUEST, output_type=_LISTPRODUCTSRESPONSE, - serialized_options=_b( - "\202\323\344\223\0025\0223/v1p4beta1/{parent=projects/*/locations/*}/products\332A\006parent" - ), + serialized_options=b"\202\323\344\223\0025\0223/v1p4beta1/{parent=projects/*/locations/*}/products\332A\006parent", ), _descriptor.MethodDescriptor( name="GetProduct", @@ -3135,9 +3147,7 @@ containing_service=None, input_type=_GETPRODUCTREQUEST, output_type=_PRODUCT, - serialized_options=_b( - "\202\323\344\223\0025\0223/v1p4beta1/{name=projects/*/locations/*/products/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\0025\0223/v1p4beta1/{name=projects/*/locations/*/products/*}\332A\004name", ), _descriptor.MethodDescriptor( name="UpdateProduct", @@ -3146,9 +3156,7 @@ containing_service=None, input_type=_UPDATEPRODUCTREQUEST, output_type=_PRODUCT, - serialized_options=_b( - "\202\323\344\223\002F2;/v1p4beta1/{product.name=projects/*/locations/*/products/*}:\007product\332A\023product,update_mask" - ), + serialized_options=b"\202\323\344\223\002F2;/v1p4beta1/{product.name=projects/*/locations/*/products/*}:\007product\332A\023product,update_mask", ), _descriptor.MethodDescriptor( name="DeleteProduct", @@ -3157,9 +3165,7 @@ containing_service=None, input_type=_DELETEPRODUCTREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - "\202\323\344\223\0025*3/v1p4beta1/{name=projects/*/locations/*/products/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\0025*3/v1p4beta1/{name=projects/*/locations/*/products/*}\332A\004name", ), _descriptor.MethodDescriptor( name="CreateReferenceImage", @@ -3168,9 +3174,7 @@ containing_service=None, input_type=_CREATEREFERENCEIMAGEREQUEST, output_type=_REFERENCEIMAGE, - serialized_options=_b( - '\202\323\344\223\002X"E/v1p4beta1/{parent=projects/*/locations/*/products/*}/referenceImages:\017reference_image\332A)parent,reference_image,reference_image_id' - ), + serialized_options=b'\202\323\344\223\002X"E/v1p4beta1/{parent=projects/*/locations/*/products/*}/referenceImages:\017reference_image\332A)parent,reference_image,reference_image_id', ), _descriptor.MethodDescriptor( name="DeleteReferenceImage", @@ -3179,9 +3183,7 @@ containing_service=None, input_type=_DELETEREFERENCEIMAGEREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - "\202\323\344\223\002G*E/v1p4beta1/{name=projects/*/locations/*/products/*/referenceImages/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\002G*E/v1p4beta1/{name=projects/*/locations/*/products/*/referenceImages/*}\332A\004name", ), _descriptor.MethodDescriptor( name="ListReferenceImages", @@ -3190,9 +3192,7 @@ containing_service=None, input_type=_LISTREFERENCEIMAGESREQUEST, output_type=_LISTREFERENCEIMAGESRESPONSE, - serialized_options=_b( - "\202\323\344\223\002G\022E/v1p4beta1/{parent=projects/*/locations/*/products/*}/referenceImages\332A\006parent" - ), + serialized_options=b"\202\323\344\223\002G\022E/v1p4beta1/{parent=projects/*/locations/*/products/*}/referenceImages\332A\006parent", ), _descriptor.MethodDescriptor( name="GetReferenceImage", @@ -3201,9 +3201,7 @@ containing_service=None, input_type=_GETREFERENCEIMAGEREQUEST, output_type=_REFERENCEIMAGE, - serialized_options=_b( - "\202\323\344\223\002G\022E/v1p4beta1/{name=projects/*/locations/*/products/*/referenceImages/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\002G\022E/v1p4beta1/{name=projects/*/locations/*/products/*/referenceImages/*}\332A\004name", ), _descriptor.MethodDescriptor( name="AddProductToProductSet", @@ -3212,9 +3210,7 @@ containing_service=None, input_type=_ADDPRODUCTTOPRODUCTSETREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - '\202\323\344\223\002F"A/v1p4beta1/{name=projects/*/locations/*/productSets/*}:addProduct:\001*\332A\014name,product' - ), + serialized_options=b'\202\323\344\223\002F"A/v1p4beta1/{name=projects/*/locations/*/productSets/*}:addProduct:\001*\332A\014name,product', ), _descriptor.MethodDescriptor( name="RemoveProductFromProductSet", @@ -3223,9 +3219,7 @@ containing_service=None, input_type=_REMOVEPRODUCTFROMPRODUCTSETREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - '\202\323\344\223\002I"D/v1p4beta1/{name=projects/*/locations/*/productSets/*}:removeProduct:\001*\332A\014name,product' - ), + serialized_options=b'\202\323\344\223\002I"D/v1p4beta1/{name=projects/*/locations/*/productSets/*}:removeProduct:\001*\332A\014name,product', ), _descriptor.MethodDescriptor( name="ListProductsInProductSet", @@ -3234,9 +3228,7 @@ containing_service=None, input_type=_LISTPRODUCTSINPRODUCTSETREQUEST, output_type=_LISTPRODUCTSINPRODUCTSETRESPONSE, - serialized_options=_b( - "\202\323\344\223\002A\022?/v1p4beta1/{name=projects/*/locations/*/productSets/*}/products\332A\004name" - ), + serialized_options=b"\202\323\344\223\002A\022?/v1p4beta1/{name=projects/*/locations/*/productSets/*}/products\332A\004name", ), _descriptor.MethodDescriptor( name="ImportProductSets", @@ -3245,9 +3237,7 @@ containing_service=None, input_type=_IMPORTPRODUCTSETSREQUEST, output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - serialized_options=_b( - '\202\323\344\223\002B"=/v1p4beta1/{parent=projects/*/locations/*}/productSets:import:\001*\332A\023parent,input_config\312A3\n\031ImportProductSetsResponse\022\026BatchOperationMetadata' - ), + serialized_options=b'\202\323\344\223\002B"=/v1p4beta1/{parent=projects/*/locations/*}/productSets:import:\001*\332A\023parent,input_config\312A3\n\031ImportProductSetsResponse\022\026BatchOperationMetadata', ), _descriptor.MethodDescriptor( name="PurgeProducts", @@ -3256,9 +3246,7 @@ containing_service=None, input_type=_PURGEPRODUCTSREQUEST, output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - serialized_options=_b( - '\202\323\344\223\002>"9/v1p4beta1/{parent=projects/*/locations/*}/products:purge:\001*\332A\006parent\312A/\n\025google.protobuf.Empty\022\026BatchOperationMetadata' - ), + serialized_options=b'\202\323\344\223\002>"9/v1p4beta1/{parent=projects/*/locations/*}/products:purge:\001*\332A\006parent\312A/\n\025google.protobuf.Empty\022\026BatchOperationMetadata', ), ], ) diff --git a/google/cloud/vision_v1p4beta1/proto/text_annotation_pb2.py b/google/cloud/vision_v1p4beta1/proto/text_annotation_pb2.py index aa8abe22..55fdc822 100644 --- a/google/cloud/vision_v1p4beta1/proto/text_annotation_pb2.py +++ b/google/cloud/vision_v1p4beta1/proto/text_annotation_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1p4beta1/proto/text_annotation.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -25,12 +22,8 @@ name="google/cloud/vision_v1p4beta1/proto/text_annotation.proto", package="google.cloud.vision.v1p4beta1", syntax="proto3", - serialized_options=_b( - "\n!com.google.cloud.vision.v1p4beta1B\023TextAnnotationProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision\370\001\001\242\002\004GCVN" - ), - serialized_pb=_b( - '\n9google/cloud/vision_v1p4beta1/proto/text_annotation.proto\x12\x1dgoogle.cloud.vision.v1p4beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x32google/cloud/vision_v1p4beta1/proto/geometry.proto"\xb2\x04\n\x0eTextAnnotation\x12\x32\n\x05pages\x18\x01 \x03(\x0b\x32#.google.cloud.vision.v1p4beta1.Page\x12\x0c\n\x04text\x18\x02 \x01(\t\x1a=\n\x10\x44\x65tectedLanguage\x12\x15\n\rlanguage_code\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x1a\xdc\x01\n\rDetectedBreak\x12S\n\x04type\x18\x01 \x01(\x0e\x32\x45.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType\x12\x11\n\tis_prefix\x18\x02 \x01(\x08"c\n\tBreakType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05SPACE\x10\x01\x12\x0e\n\nSURE_SPACE\x10\x02\x12\x12\n\x0e\x45OL_SURE_SPACE\x10\x03\x12\n\n\x06HYPHEN\x10\x04\x12\x0e\n\nLINE_BREAK\x10\x05\x1a\xbf\x01\n\x0cTextProperty\x12Z\n\x12\x64\x65tected_languages\x18\x01 \x03(\x0b\x32>.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage\x12S\n\x0e\x64\x65tected_break\x18\x02 \x01(\x0b\x32;.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak"\xbd\x01\n\x04Page\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty\x12\r\n\x05width\x18\x02 \x01(\x05\x12\x0e\n\x06height\x18\x03 \x01(\x05\x12\x34\n\x06\x62locks\x18\x04 \x03(\x0b\x32$.google.cloud.vision.v1p4beta1.Block\x12\x12\n\nconfidence\x18\x05 \x01(\x02"\x82\x03\n\x05\x42lock\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.BoundingPoly\x12<\n\nparagraphs\x18\x03 \x03(\x0b\x32(.google.cloud.vision.v1p4beta1.Paragraph\x12\x42\n\nblock_type\x18\x04 \x01(\x0e\x32..google.cloud.vision.v1p4beta1.Block.BlockType\x12\x12\n\nconfidence\x18\x05 \x01(\x02"R\n\tBlockType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04TEXT\x10\x01\x12\t\n\x05TABLE\x10\x02\x12\x0b\n\x07PICTURE\x10\x03\x12\t\n\x05RULER\x10\x04\x12\x0b\n\x07\x42\x41RCODE\x10\x05"\xe4\x01\n\tParagraph\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.BoundingPoly\x12\x32\n\x05words\x18\x03 \x03(\x0b\x32#.google.cloud.vision.v1p4beta1.Word\x12\x12\n\nconfidence\x18\x04 \x01(\x02"\xe3\x01\n\x04Word\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.BoundingPoly\x12\x36\n\x07symbols\x18\x03 \x03(\x0b\x32%.google.cloud.vision.v1p4beta1.Symbol\x12\x12\n\nconfidence\x18\x04 \x01(\x02"\xbb\x01\n\x06Symbol\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.BoundingPoly\x12\x0c\n\x04text\x18\x03 \x01(\t\x12\x12\n\nconfidence\x18\x04 \x01(\x02\x42\x89\x01\n!com.google.cloud.vision.v1p4beta1B\x13TextAnnotationProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision\xf8\x01\x01\xa2\x02\x04GCVNb\x06proto3' - ), + serialized_options=b"\n!com.google.cloud.vision.v1p4beta1B\023TextAnnotationProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision\370\001\001\242\002\004GCVN", + serialized_pb=b'\n9google/cloud/vision_v1p4beta1/proto/text_annotation.proto\x12\x1dgoogle.cloud.vision.v1p4beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x32google/cloud/vision_v1p4beta1/proto/geometry.proto"\xb2\x04\n\x0eTextAnnotation\x12\x32\n\x05pages\x18\x01 \x03(\x0b\x32#.google.cloud.vision.v1p4beta1.Page\x12\x0c\n\x04text\x18\x02 \x01(\t\x1a=\n\x10\x44\x65tectedLanguage\x12\x15\n\rlanguage_code\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x1a\xdc\x01\n\rDetectedBreak\x12S\n\x04type\x18\x01 \x01(\x0e\x32\x45.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType\x12\x11\n\tis_prefix\x18\x02 \x01(\x08"c\n\tBreakType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05SPACE\x10\x01\x12\x0e\n\nSURE_SPACE\x10\x02\x12\x12\n\x0e\x45OL_SURE_SPACE\x10\x03\x12\n\n\x06HYPHEN\x10\x04\x12\x0e\n\nLINE_BREAK\x10\x05\x1a\xbf\x01\n\x0cTextProperty\x12Z\n\x12\x64\x65tected_languages\x18\x01 \x03(\x0b\x32>.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage\x12S\n\x0e\x64\x65tected_break\x18\x02 \x01(\x0b\x32;.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak"\xbd\x01\n\x04Page\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty\x12\r\n\x05width\x18\x02 \x01(\x05\x12\x0e\n\x06height\x18\x03 \x01(\x05\x12\x34\n\x06\x62locks\x18\x04 \x03(\x0b\x32$.google.cloud.vision.v1p4beta1.Block\x12\x12\n\nconfidence\x18\x05 \x01(\x02"\x82\x03\n\x05\x42lock\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.BoundingPoly\x12<\n\nparagraphs\x18\x03 \x03(\x0b\x32(.google.cloud.vision.v1p4beta1.Paragraph\x12\x42\n\nblock_type\x18\x04 \x01(\x0e\x32..google.cloud.vision.v1p4beta1.Block.BlockType\x12\x12\n\nconfidence\x18\x05 \x01(\x02"R\n\tBlockType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04TEXT\x10\x01\x12\t\n\x05TABLE\x10\x02\x12\x0b\n\x07PICTURE\x10\x03\x12\t\n\x05RULER\x10\x04\x12\x0b\n\x07\x42\x41RCODE\x10\x05"\xe4\x01\n\tParagraph\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.BoundingPoly\x12\x32\n\x05words\x18\x03 \x03(\x0b\x32#.google.cloud.vision.v1p4beta1.Word\x12\x12\n\nconfidence\x18\x04 \x01(\x02"\xe3\x01\n\x04Word\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.BoundingPoly\x12\x36\n\x07symbols\x18\x03 \x03(\x0b\x32%.google.cloud.vision.v1p4beta1.Symbol\x12\x12\n\nconfidence\x18\x04 \x01(\x02"\xbb\x01\n\x06Symbol\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.BoundingPoly\x12\x0c\n\x04text\x18\x03 \x01(\t\x12\x12\n\nconfidence\x18\x04 \x01(\x02\x42\x89\x01\n!com.google.cloud.vision.v1p4beta1B\x13TextAnnotationProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision\xf8\x01\x01\xa2\x02\x04GCVNb\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, google_dot_cloud_dot_vision__v1p4beta1_dot_proto_dot_geometry__pb2.DESCRIPTOR, @@ -119,7 +112,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -305,7 +298,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -792,7 +785,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -888,32 +881,36 @@ TextAnnotation = _reflection.GeneratedProtocolMessageType( "TextAnnotation", (_message.Message,), - dict( - DetectedLanguage=_reflection.GeneratedProtocolMessageType( + { + "DetectedLanguage": _reflection.GeneratedProtocolMessageType( "DetectedLanguage", (_message.Message,), - dict( - DESCRIPTOR=_TEXTANNOTATION_DETECTEDLANGUAGE, - __module__="google.cloud.vision_v1p4beta1.proto.text_annotation_pb2", - __doc__="""Detected language for a structural component. + { + "DESCRIPTOR": _TEXTANNOTATION_DETECTEDLANGUAGE, + "__module__": "google.cloud.vision_v1p4beta1.proto.text_annotation_pb2", + "__doc__": """Detected language for a structural component. + + Attributes: language_code: - The BCP-47 language code, such as "en-US" or "sr-Latn". For + The BCP-47 language code, such as “en-US” or “sr-Latn”. For more information, see http://www.unicode.org/reports/tr35/#Uni - code\_locale\_identifier. + code_locale_identifier. confidence: Confidence of detected language. Range [0, 1]. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage) - ), + }, ), - DetectedBreak=_reflection.GeneratedProtocolMessageType( + "DetectedBreak": _reflection.GeneratedProtocolMessageType( "DetectedBreak", (_message.Message,), - dict( - DESCRIPTOR=_TEXTANNOTATION_DETECTEDBREAK, - __module__="google.cloud.vision_v1p4beta1.proto.text_annotation_pb2", - __doc__="""Detected start or end of a structural component. + { + "DESCRIPTOR": _TEXTANNOTATION_DETECTEDBREAK, + "__module__": "google.cloud.vision_v1p4beta1.proto.text_annotation_pb2", + "__doc__": """Detected start or end of a structural component. + + Attributes: type: Detected break type. @@ -921,15 +918,18 @@ True if break prepends the element. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak) - ), + }, ), - TextProperty=_reflection.GeneratedProtocolMessageType( + "TextProperty": _reflection.GeneratedProtocolMessageType( "TextProperty", (_message.Message,), - dict( - DESCRIPTOR=_TEXTANNOTATION_TEXTPROPERTY, - __module__="google.cloud.vision_v1p4beta1.proto.text_annotation_pb2", - __doc__="""Additional information detected on the structural component. + { + "DESCRIPTOR": _TEXTANNOTATION_TEXTPROPERTY, + "__module__": "google.cloud.vision_v1p4beta1.proto.text_annotation_pb2", + "__doc__": """Additional information detected on the structural + component. + + Attributes: detected_languages: A list of detected languages together with confidence. @@ -937,18 +937,20 @@ Detected start or end of a text segment. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty) - ), + }, ), - DESCRIPTOR=_TEXTANNOTATION, - __module__="google.cloud.vision_v1p4beta1.proto.text_annotation_pb2", - __doc__="""TextAnnotation contains a structured representation of OCR extracted - text. The hierarchy of an OCR extracted text structure is like this: - 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. - v1p4beta1.TextAnnotation.TextProperty] message definition below for - more detail. + "DESCRIPTOR": _TEXTANNOTATION, + "__module__": "google.cloud.vision_v1p4beta1.proto.text_annotation_pb2", + "__doc__": """TextAnnotation contains a structured representation of OCR + extracted text. The hierarchy of an OCR extracted text structure is like + this: 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.v1p4beta1.TextAnnotation.TextProperty] + message definition below for more detail. + + Attributes: pages: List of pages detected by OCR. @@ -956,7 +958,7 @@ UTF-8 text detected on the pages. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.TextAnnotation) - ), + }, ) _sym_db.RegisterMessage(TextAnnotation) _sym_db.RegisterMessage(TextAnnotation.DetectedLanguage) @@ -966,10 +968,12 @@ Page = _reflection.GeneratedProtocolMessageType( "Page", (_message.Message,), - dict( - DESCRIPTOR=_PAGE, - __module__="google.cloud.vision_v1p4beta1.proto.text_annotation_pb2", - __doc__="""Detected page from OCR. + { + "DESCRIPTOR": _PAGE, + "__module__": "google.cloud.vision_v1p4beta1.proto.text_annotation_pb2", + "__doc__": """Detected page from OCR. + + Attributes: property: Additional information detected on the page. @@ -985,17 +989,19 @@ Confidence of the OCR results on the page. Range [0, 1]. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.Page) - ), + }, ) _sym_db.RegisterMessage(Page) Block = _reflection.GeneratedProtocolMessageType( "Block", (_message.Message,), - dict( - DESCRIPTOR=_BLOCK, - __module__="google.cloud.vision_v1p4beta1.proto.text_annotation_pb2", - __doc__="""Logical element on the page. + { + "DESCRIPTOR": _BLOCK, + "__module__": "google.cloud.vision_v1p4beta1.proto.text_annotation_pb2", + "__doc__": """Logical element on the page. + + Attributes: property: Additional information detected for the block. @@ -1004,12 +1010,12 @@ of top-left, top-right, bottom-right, bottom-left. When a rotation of the bounding box is detected the rotation is represented as around the top-left corner as defined when the - text is read in the 'natural' orientation. For example: - + text is read in the ‘natural’ orientation. For example: - when the text is horizontal it might look like: :: - 0----1 | | 3----2 - when it's rotated 180 + 0----1 | | 3----2 - when it’s rotated 180 degrees around the top-left corner it becomes: :: - 2----3 | | 1----0 and the vertex order will - still be (0, 1, 2, 3). + 2----3 | | 1----0 and the vertex order + will still be (0, 1, 2, 3). paragraphs: List of paragraphs in this block (if this blocks is of type text). @@ -1019,18 +1025,20 @@ Confidence of the OCR results on the block. Range [0, 1]. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.Block) - ), + }, ) _sym_db.RegisterMessage(Block) Paragraph = _reflection.GeneratedProtocolMessageType( "Paragraph", (_message.Message,), - dict( - DESCRIPTOR=_PARAGRAPH, - __module__="google.cloud.vision_v1p4beta1.proto.text_annotation_pb2", - __doc__="""Structural unit of text representing a number of words in certain - order. + { + "DESCRIPTOR": _PARAGRAPH, + "__module__": "google.cloud.vision_v1p4beta1.proto.text_annotation_pb2", + "__doc__": """Structural unit of text representing a number of words in + certain order. + + Attributes: property: Additional information detected for the paragraph. @@ -1039,28 +1047,30 @@ order of top-left, top-right, bottom-right, bottom-left. When a rotation of the bounding box is detected the rotation is represented as around the top-left corner as defined when the - text is read in the 'natural' orientation. For example: \* - when the text is horizontal it might look like: 0----1 \| \| 3 - ----2 \* when it's rotated 180 degrees around the top-left - corner it becomes: 2----3 \| \| 1----0 and the vertex order - will still be (0, 1, 2, 3). + text is read in the ‘natural’ orientation. For example: \* + when the text is horizontal it might look like: 0—-1 \| \| + 3—-2 \* when it’s rotated 180 degrees around the top-left + corner it becomes: 2—-3 \| \| 1—-0 and the vertex order will + still be (0, 1, 2, 3). words: List of all words in this paragraph. confidence: Confidence of the OCR results for the paragraph. Range [0, 1]. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.Paragraph) - ), + }, ) _sym_db.RegisterMessage(Paragraph) Word = _reflection.GeneratedProtocolMessageType( "Word", (_message.Message,), - dict( - DESCRIPTOR=_WORD, - __module__="google.cloud.vision_v1p4beta1.proto.text_annotation_pb2", - __doc__="""A word representation. + { + "DESCRIPTOR": _WORD, + "__module__": "google.cloud.vision_v1p4beta1.proto.text_annotation_pb2", + "__doc__": """A word representation. + + Attributes: property: Additional information detected for the word. @@ -1069,11 +1079,11 @@ of top-left, top-right, bottom-right, bottom-left. When a rotation of the bounding box is detected the rotation is represented as around the top-left corner as defined when the - text is read in the 'natural' orientation. For example: \* - when the text is horizontal it might look like: 0----1 \| \| 3 - ----2 \* when it's rotated 180 degrees around the top-left - corner it becomes: 2----3 \| \| 1----0 and the vertex order - will still be (0, 1, 2, 3). + text is read in the ‘natural’ orientation. For example: \* + when the text is horizontal it might look like: 0—-1 \| \| + 3—-2 \* when it’s rotated 180 degrees around the top-left + corner it becomes: 2—-3 \| \| 1—-0 and the vertex order will + still be (0, 1, 2, 3). symbols: List of symbols in the word. The order of the symbols follows the natural reading order. @@ -1081,17 +1091,19 @@ Confidence of the OCR results for the word. Range [0, 1]. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.Word) - ), + }, ) _sym_db.RegisterMessage(Word) Symbol = _reflection.GeneratedProtocolMessageType( "Symbol", (_message.Message,), - dict( - DESCRIPTOR=_SYMBOL, - __module__="google.cloud.vision_v1p4beta1.proto.text_annotation_pb2", - __doc__="""A single symbol representation. + { + "DESCRIPTOR": _SYMBOL, + "__module__": "google.cloud.vision_v1p4beta1.proto.text_annotation_pb2", + "__doc__": """A single symbol representation. + + Attributes: property: Additional information detected for the symbol. @@ -1100,18 +1112,18 @@ of top-left, top-right, bottom-right, bottom-left. When a rotation of the bounding box is detected the rotation is represented as around the top-left corner as defined when the - text is read in the 'natural' orientation. For example: \* - when the text is horizontal it might look like: 0----1 \| \| 3 - ----2 \* when it's rotated 180 degrees around the top-left - corner it becomes: 2----3 \| \| 1----0 and the vertex order - will still be (0, 1, 2, 3). + text is read in the ‘natural’ orientation. For example: \* + when the text is horizontal it might look like: 0—-1 \| \| + 3—-2 \* when it’s rotated 180 degrees around the top-left + corner it becomes: 2—-3 \| \| 1—-0 and the vertex order will + still be (0, 1, 2, 3). text: The actual UTF-8 representation of the symbol. confidence: Confidence of the OCR results for the symbol. Range [0, 1]. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.Symbol) - ), + }, ) _sym_db.RegisterMessage(Symbol) diff --git a/google/cloud/vision_v1p4beta1/proto/web_detection_pb2.py b/google/cloud/vision_v1p4beta1/proto/web_detection_pb2.py index 2503b1fe..2239a744 100644 --- a/google/cloud/vision_v1p4beta1/proto/web_detection_pb2.py +++ b/google/cloud/vision_v1p4beta1/proto/web_detection_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1p4beta1/proto/web_detection.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -22,12 +19,8 @@ name="google/cloud/vision_v1p4beta1/proto/web_detection.proto", package="google.cloud.vision.v1p4beta1", syntax="proto3", - serialized_options=_b( - "\n!com.google.cloud.vision.v1p4beta1B\021WebDetectionProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision\370\001\001\242\002\004GCVN" - ), - serialized_pb=_b( - '\n7google/cloud/vision_v1p4beta1/proto/web_detection.proto\x12\x1dgoogle.cloud.vision.v1p4beta1\x1a\x1cgoogle/api/annotations.proto"\x8c\x07\n\x0cWebDetection\x12K\n\x0cweb_entities\x18\x01 \x03(\x0b\x32\x35.google.cloud.vision.v1p4beta1.WebDetection.WebEntity\x12R\n\x14\x66ull_matching_images\x18\x02 \x03(\x0b\x32\x34.google.cloud.vision.v1p4beta1.WebDetection.WebImage\x12U\n\x17partial_matching_images\x18\x03 \x03(\x0b\x32\x34.google.cloud.vision.v1p4beta1.WebDetection.WebImage\x12W\n\x1apages_with_matching_images\x18\x04 \x03(\x0b\x32\x33.google.cloud.vision.v1p4beta1.WebDetection.WebPage\x12U\n\x17visually_similar_images\x18\x06 \x03(\x0b\x32\x34.google.cloud.vision.v1p4beta1.WebDetection.WebImage\x12O\n\x11\x62\x65st_guess_labels\x18\x08 \x03(\x0b\x32\x34.google.cloud.vision.v1p4beta1.WebDetection.WebLabel\x1a\x42\n\tWebEntity\x12\x11\n\tentity_id\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x1a&\n\x08WebImage\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x1a\xe4\x01\n\x07WebPage\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x12\n\npage_title\x18\x03 \x01(\t\x12R\n\x14\x66ull_matching_images\x18\x04 \x03(\x0b\x32\x34.google.cloud.vision.v1p4beta1.WebDetection.WebImage\x12U\n\x17partial_matching_images\x18\x05 \x03(\x0b\x32\x34.google.cloud.vision.v1p4beta1.WebDetection.WebImage\x1a\x30\n\x08WebLabel\x12\r\n\x05label\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x02 \x01(\tB\x87\x01\n!com.google.cloud.vision.v1p4beta1B\x11WebDetectionProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision\xf8\x01\x01\xa2\x02\x04GCVNb\x06proto3' - ), + serialized_options=b"\n!com.google.cloud.vision.v1p4beta1B\021WebDetectionProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision\370\001\001\242\002\004GCVN", + serialized_pb=b'\n7google/cloud/vision_v1p4beta1/proto/web_detection.proto\x12\x1dgoogle.cloud.vision.v1p4beta1\x1a\x1cgoogle/api/annotations.proto"\x8c\x07\n\x0cWebDetection\x12K\n\x0cweb_entities\x18\x01 \x03(\x0b\x32\x35.google.cloud.vision.v1p4beta1.WebDetection.WebEntity\x12R\n\x14\x66ull_matching_images\x18\x02 \x03(\x0b\x32\x34.google.cloud.vision.v1p4beta1.WebDetection.WebImage\x12U\n\x17partial_matching_images\x18\x03 \x03(\x0b\x32\x34.google.cloud.vision.v1p4beta1.WebDetection.WebImage\x12W\n\x1apages_with_matching_images\x18\x04 \x03(\x0b\x32\x33.google.cloud.vision.v1p4beta1.WebDetection.WebPage\x12U\n\x17visually_similar_images\x18\x06 \x03(\x0b\x32\x34.google.cloud.vision.v1p4beta1.WebDetection.WebImage\x12O\n\x11\x62\x65st_guess_labels\x18\x08 \x03(\x0b\x32\x34.google.cloud.vision.v1p4beta1.WebDetection.WebLabel\x1a\x42\n\tWebEntity\x12\x11\n\tentity_id\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x1a&\n\x08WebImage\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x1a\xe4\x01\n\x07WebPage\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x12\n\npage_title\x18\x03 \x01(\t\x12R\n\x14\x66ull_matching_images\x18\x04 \x03(\x0b\x32\x34.google.cloud.vision.v1p4beta1.WebDetection.WebImage\x12U\n\x17partial_matching_images\x18\x05 \x03(\x0b\x32\x34.google.cloud.vision.v1p4beta1.WebDetection.WebImage\x1a\x30\n\x08WebLabel\x12\r\n\x05label\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x02 \x01(\tB\x87\x01\n!com.google.cloud.vision.v1p4beta1B\x11WebDetectionProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision\xf8\x01\x01\xa2\x02\x04GCVNb\x06proto3', dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR], ) @@ -48,7 +41,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -84,7 +77,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -122,7 +115,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -178,7 +171,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -214,7 +207,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -288,7 +281,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -306,7 +299,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -491,14 +484,16 @@ WebDetection = _reflection.GeneratedProtocolMessageType( "WebDetection", (_message.Message,), - dict( - WebEntity=_reflection.GeneratedProtocolMessageType( + { + "WebEntity": _reflection.GeneratedProtocolMessageType( "WebEntity", (_message.Message,), - dict( - DESCRIPTOR=_WEBDETECTION_WEBENTITY, - __module__="google.cloud.vision_v1p4beta1.proto.web_detection_pb2", - __doc__="""Entity deduced from similar images on the Internet. + { + "DESCRIPTOR": _WEBDETECTION_WEBENTITY, + "__module__": "google.cloud.vision_v1p4beta1.proto.web_detection_pb2", + "__doc__": """Entity deduced from similar images on the Internet. + + Attributes: entity_id: Opaque entity ID. @@ -509,15 +504,17 @@ Canonical description of the entity, in English. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.WebDetection.WebEntity) - ), + }, ), - WebImage=_reflection.GeneratedProtocolMessageType( + "WebImage": _reflection.GeneratedProtocolMessageType( "WebImage", (_message.Message,), - dict( - DESCRIPTOR=_WEBDETECTION_WEBIMAGE, - __module__="google.cloud.vision_v1p4beta1.proto.web_detection_pb2", - __doc__="""Metadata for online images. + { + "DESCRIPTOR": _WEBDETECTION_WEBIMAGE, + "__module__": "google.cloud.vision_v1p4beta1.proto.web_detection_pb2", + "__doc__": """Metadata for online images. + + Attributes: url: The result image URL. @@ -525,15 +522,17 @@ (Deprecated) Overall relevancy score for the image. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.WebDetection.WebImage) - ), + }, ), - WebPage=_reflection.GeneratedProtocolMessageType( + "WebPage": _reflection.GeneratedProtocolMessageType( "WebPage", (_message.Message,), - dict( - DESCRIPTOR=_WEBDETECTION_WEBPAGE, - __module__="google.cloud.vision_v1p4beta1.proto.web_detection_pb2", - __doc__="""Metadata for web pages. + { + "DESCRIPTOR": _WEBDETECTION_WEBPAGE, + "__module__": "google.cloud.vision_v1p4beta1.proto.web_detection_pb2", + "__doc__": """Metadata for web pages. + + Attributes: url: The result web page URL. @@ -551,29 +550,33 @@ crops. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.WebDetection.WebPage) - ), + }, ), - WebLabel=_reflection.GeneratedProtocolMessageType( + "WebLabel": _reflection.GeneratedProtocolMessageType( "WebLabel", (_message.Message,), - dict( - DESCRIPTOR=_WEBDETECTION_WEBLABEL, - __module__="google.cloud.vision_v1p4beta1.proto.web_detection_pb2", - __doc__="""Label to provide extra metadata for the web detection. + { + "DESCRIPTOR": _WEBDETECTION_WEBLABEL, + "__module__": "google.cloud.vision_v1p4beta1.proto.web_detection_pb2", + "__doc__": """Label to provide extra metadata for the web detection. + + Attributes: label: Label for extra metadata. language_code: - The BCP-47 language code for ``label``, such as "en-US" or - "sr-Latn". For more information, see http://www.unicode.org/re - ports/tr35/#Unicode\_locale\_identifier. + The BCP-47 language code for ``label``, such as “en-US” or + “sr-Latn”. For more information, see http://www.unicode.org/re + ports/tr35/#Unicode_locale_identifier. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.WebDetection.WebLabel) - ), + }, ), - DESCRIPTOR=_WEBDETECTION, - __module__="google.cloud.vision_v1p4beta1.proto.web_detection_pb2", - __doc__="""Relevant information for the image from the Internet. + "DESCRIPTOR": _WEBDETECTION, + "__module__": "google.cloud.vision_v1p4beta1.proto.web_detection_pb2", + "__doc__": """Relevant information for the image from the Internet. + + Attributes: web_entities: Deduced entities from similar images on the Internet. @@ -590,11 +593,11 @@ visually_similar_images: The visually similar image results. best_guess_labels: - The service's best guess as to the topic of the request image. + The service’s best guess as to the topic of the request image. Inferred from similar images on the open web. """, # @@protoc_insertion_point(class_scope:google.cloud.vision.v1p4beta1.WebDetection) - ), + }, ) _sym_db.RegisterMessage(WebDetection) _sym_db.RegisterMessage(WebDetection.WebEntity) diff --git a/synth.metadata b/synth.metadata index a5dda203..2d0b8747 100644 --- a/synth.metadata +++ b/synth.metadata @@ -1,32 +1,25 @@ { "sources": [ - { - "generator": { - "name": "artman", - "version": "2.0.0", - "dockerImage": "googleapis/artman@sha256:b3b47805231a305d0f40c4bf069df20f6a2635574e6d4259fac651d3f9f6e098" - } - }, { "git": { "name": ".", - "remote": "git@github.com:googleapis/python-vision", - "sha": "e067d8a283aaba44d9da7147c9ded5c8ab0e536c" + "remote": "https://github.com/googleapis/python-vision.git", + "sha": "b33fa88e4f1e9cb2f6e029e6a34364fb6cdc1a96" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "756b174de4a122461993c1c583345533d819936d", - "internalRef": "308824110" + "sha": "e0f9d9e1f9de890db765be46f45ca8490723e3eb", + "internalRef": "309824146" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "01b6f23d24b27878b48667ce597876d66b59780e" + "sha": "04cb397eb7590ea1e6c10a39fca3d8fe0fb3d256" } } ], @@ -37,8 +30,7 @@ "apiName": "vision", "apiVersion": "v1", "language": "python", - "generator": "gapic", - "config": "google/cloud/vision/artman_vision_v1.yaml" + "generator": "bazel" } }, { @@ -47,8 +39,7 @@ "apiName": "vision", "apiVersion": "v1p1beta1", "language": "python", - "generator": "gapic", - "config": "google/cloud/vision/artman_vision_v1p1beta1.yaml" + "generator": "bazel" } }, { @@ -57,8 +48,7 @@ "apiName": "vision", "apiVersion": "v1p2beta1", "language": "python", - "generator": "gapic", - "config": "google/cloud/vision/artman_vision_v1p2beta1.yaml" + "generator": "bazel" } }, { @@ -67,8 +57,7 @@ "apiName": "vision", "apiVersion": "v1p3beta1", "language": "python", - "generator": "gapic", - "config": "google/cloud/vision/artman_vision_v1p3beta1.yaml" + "generator": "bazel" } }, { @@ -77,8 +66,7 @@ "apiName": "vision", "apiVersion": "v1p4beta1", "language": "python", - "generator": "gapic", - "config": "google/cloud/vision/artman_vision_v1p4beta1.yaml" + "generator": "bazel" } } ] diff --git a/tests/unit/gapic/v1p3beta1/test_image_annotator_client_v1p3beta1.py b/tests/unit/gapic/v1p3beta1/test_image_annotator_client_v1p3beta1.py index de5486ba..2bb87588 100644 --- a/tests/unit/gapic/v1p3beta1/test_image_annotator_client_v1p3beta1.py +++ b/tests/unit/gapic/v1p3beta1/test_image_annotator_client_v1p3beta1.py @@ -77,16 +77,11 @@ def test_batch_annotate_images(self): create_channel.return_value = channel client = vision_v1p3beta1.ImageAnnotatorClient() - # Setup Request - requests = [] - - response = client.batch_annotate_images(requests) + response = client.batch_annotate_images() assert expected_response == response assert len(channel.requests) == 1 - expected_request = image_annotator_pb2.BatchAnnotateImagesRequest( - requests=requests - ) + expected_request = image_annotator_pb2.BatchAnnotateImagesRequest() actual_request = channel.requests[0][1] assert expected_request == actual_request @@ -98,11 +93,8 @@ def test_batch_annotate_images_exception(self): create_channel.return_value = channel client = vision_v1p3beta1.ImageAnnotatorClient() - # Setup request - requests = [] - with pytest.raises(CustomException): - client.batch_annotate_images(requests) + client.batch_annotate_images() def test_async_batch_annotate_files(self): # Setup Expected Response diff --git a/tests/unit/gapic/v1p3beta1/test_product_search_client_v1p3beta1.py b/tests/unit/gapic/v1p3beta1/test_product_search_client_v1p3beta1.py index 7790314c..d2f5a7bb 100644 --- a/tests/unit/gapic/v1p3beta1/test_product_search_client_v1p3beta1.py +++ b/tests/unit/gapic/v1p3beta1/test_product_search_client_v1p3beta1.py @@ -25,7 +25,6 @@ from google.cloud.vision_v1p3beta1.proto import product_search_service_pb2 from google.longrunning import operations_pb2 from google.protobuf import empty_pb2 -from google.protobuf import field_mask_pb2 class MultiCallableStub(object): @@ -65,6 +64,161 @@ class CustomException(Exception): class TestProductSearchClient(object): + def test_delete_product_set(self): + channel = ChannelStub() + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = vision_v1p3beta1.ProductSearchClient() + + # Setup Request + name = client.product_set_path("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]") + + client.delete_product_set(name) + + assert len(channel.requests) == 1 + expected_request = product_search_service_pb2.DeleteProductSetRequest(name=name) + actual_request = channel.requests[0][1] + assert expected_request == actual_request + + def test_delete_product_set_exception(self): + # Mock the API response + channel = ChannelStub(responses=[CustomException()]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = vision_v1p3beta1.ProductSearchClient() + + # Setup request + name = client.product_set_path("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]") + + with pytest.raises(CustomException): + client.delete_product_set(name) + + def test_delete_product(self): + channel = ChannelStub() + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = vision_v1p3beta1.ProductSearchClient() + + # Setup Request + name = client.product_path("[PROJECT]", "[LOCATION]", "[PRODUCT]") + + client.delete_product(name) + + assert len(channel.requests) == 1 + expected_request = product_search_service_pb2.DeleteProductRequest(name=name) + actual_request = channel.requests[0][1] + assert expected_request == actual_request + + def test_delete_product_exception(self): + # Mock the API response + channel = ChannelStub(responses=[CustomException()]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = vision_v1p3beta1.ProductSearchClient() + + # Setup request + name = client.product_path("[PROJECT]", "[LOCATION]", "[PRODUCT]") + + with pytest.raises(CustomException): + client.delete_product(name) + + def test_delete_reference_image(self): + channel = ChannelStub() + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = vision_v1p3beta1.ProductSearchClient() + + # Setup Request + name = client.reference_image_path( + "[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]" + ) + + client.delete_reference_image(name) + + assert len(channel.requests) == 1 + expected_request = product_search_service_pb2.DeleteReferenceImageRequest( + name=name + ) + actual_request = channel.requests[0][1] + assert expected_request == actual_request + + def test_delete_reference_image_exception(self): + # Mock the API response + channel = ChannelStub(responses=[CustomException()]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = vision_v1p3beta1.ProductSearchClient() + + # Setup request + name = client.reference_image_path( + "[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]" + ) + + with pytest.raises(CustomException): + client.delete_reference_image(name) + + def test_import_product_sets(self): + # Setup Expected Response + expected_response = {} + expected_response = product_search_service_pb2.ImportProductSetsResponse( + **expected_response + ) + operation = operations_pb2.Operation( + name="operations/test_import_product_sets", done=True + ) + operation.response.Pack(expected_response) + + # Mock the API response + channel = ChannelStub(responses=[operation]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = vision_v1p3beta1.ProductSearchClient() + + # Setup Request + parent = client.location_path("[PROJECT]", "[LOCATION]") + input_config = {} + + response = client.import_product_sets(parent, input_config) + result = response.result() + assert expected_response == result + + assert len(channel.requests) == 1 + expected_request = product_search_service_pb2.ImportProductSetsRequest( + parent=parent, input_config=input_config + ) + actual_request = channel.requests[0][1] + assert expected_request == actual_request + + def test_import_product_sets_exception(self): + # Setup Response + error = status_pb2.Status() + operation = operations_pb2.Operation( + name="operations/test_import_product_sets_exception", done=True + ) + operation.error.CopyFrom(error) + + # Mock the API response + channel = ChannelStub(responses=[operation]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = vision_v1p3beta1.ProductSearchClient() + + # Setup Request + parent = client.location_path("[PROJECT]", "[LOCATION]") + input_config = {} + + response = client.import_product_sets(parent, input_config) + exception = response.exception() + assert exception.errors[0] == error + def test_create_product_set(self): # Setup Expected Response name = "name3373707" @@ -82,14 +236,13 @@ def test_create_product_set(self): # Setup Request parent = client.location_path("[PROJECT]", "[LOCATION]") product_set = {} - product_set_id = "productSetId4216680" - response = client.create_product_set(parent, product_set, product_set_id) + response = client.create_product_set(parent, product_set) assert expected_response == response assert len(channel.requests) == 1 expected_request = product_search_service_pb2.CreateProductSetRequest( - parent=parent, product_set=product_set, product_set_id=product_set_id + parent=parent, product_set=product_set ) actual_request = channel.requests[0][1] assert expected_request == actual_request @@ -105,10 +258,9 @@ def test_create_product_set_exception(self): # Setup request parent = client.location_path("[PROJECT]", "[LOCATION]") product_set = {} - product_set_id = "productSetId4216680" with pytest.raises(CustomException): - client.create_product_set(parent, product_set, product_set_id) + client.create_product_set(parent, product_set) def test_list_product_sets(self): # Setup Expected Response @@ -215,14 +367,13 @@ def test_update_product_set(self): # Setup Request product_set = {} - update_mask = {} - response = client.update_product_set(product_set, update_mask) + response = client.update_product_set(product_set) assert expected_response == response assert len(channel.requests) == 1 expected_request = product_search_service_pb2.UpdateProductSetRequest( - product_set=product_set, update_mask=update_mask + product_set=product_set ) actual_request = channel.requests[0][1] assert expected_request == actual_request @@ -237,41 +388,9 @@ def test_update_product_set_exception(self): # Setup request product_set = {} - update_mask = {} with pytest.raises(CustomException): - client.update_product_set(product_set, update_mask) - - def test_delete_product_set(self): - channel = ChannelStub() - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = vision_v1p3beta1.ProductSearchClient() - - # Setup Request - name = client.product_set_path("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]") - - client.delete_product_set(name) - - assert len(channel.requests) == 1 - expected_request = product_search_service_pb2.DeleteProductSetRequest(name=name) - actual_request = channel.requests[0][1] - assert expected_request == actual_request - - def test_delete_product_set_exception(self): - # Mock the API response - channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = vision_v1p3beta1.ProductSearchClient() - - # Setup request - name = client.product_set_path("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]") - - with pytest.raises(CustomException): - client.delete_product_set(name) + client.update_product_set(product_set) def test_create_product(self): # Setup Expected Response @@ -297,14 +416,13 @@ def test_create_product(self): # Setup Request parent = client.location_path("[PROJECT]", "[LOCATION]") product = {} - product_id = "productId1753008747" - response = client.create_product(parent, product, product_id) + response = client.create_product(parent, product) assert expected_response == response assert len(channel.requests) == 1 expected_request = product_search_service_pb2.CreateProductRequest( - parent=parent, product=product, product_id=product_id + parent=parent, product=product ) actual_request = channel.requests[0][1] assert expected_request == actual_request @@ -320,10 +438,9 @@ def test_create_product_exception(self): # Setup request parent = client.location_path("[PROJECT]", "[LOCATION]") product = {} - product_id = "productId1753008747" with pytest.raises(CustomException): - client.create_product(parent, product, product_id) + client.create_product(parent, product) def test_list_products(self): # Setup Expected Response @@ -439,14 +556,13 @@ def test_update_product(self): # Setup Request product = {} - update_mask = {} - response = client.update_product(product, update_mask) + response = client.update_product(product) assert expected_response == response assert len(channel.requests) == 1 expected_request = product_search_service_pb2.UpdateProductRequest( - product=product, update_mask=update_mask + product=product ) actual_request = channel.requests[0][1] assert expected_request == actual_request @@ -461,41 +577,9 @@ def test_update_product_exception(self): # Setup request product = {} - update_mask = {} - - with pytest.raises(CustomException): - client.update_product(product, update_mask) - - def test_delete_product(self): - channel = ChannelStub() - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = vision_v1p3beta1.ProductSearchClient() - - # Setup Request - name = client.product_path("[PROJECT]", "[LOCATION]", "[PRODUCT]") - - client.delete_product(name) - - assert len(channel.requests) == 1 - expected_request = product_search_service_pb2.DeleteProductRequest(name=name) - actual_request = channel.requests[0][1] - assert expected_request == actual_request - - def test_delete_product_exception(self): - # Mock the API response - channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = vision_v1p3beta1.ProductSearchClient() - - # Setup request - name = client.product_path("[PROJECT]", "[LOCATION]", "[PRODUCT]") with pytest.raises(CustomException): - client.delete_product(name) + client.update_product(product) def test_create_reference_image(self): # Setup Expected Response @@ -516,18 +600,13 @@ def test_create_reference_image(self): # Setup Request parent = client.product_path("[PROJECT]", "[LOCATION]", "[PRODUCT]") reference_image = {} - reference_image_id = "referenceImageId1946713331" - response = client.create_reference_image( - parent, reference_image, reference_image_id - ) + response = client.create_reference_image(parent, reference_image) assert expected_response == response assert len(channel.requests) == 1 expected_request = product_search_service_pb2.CreateReferenceImageRequest( - parent=parent, - reference_image=reference_image, - reference_image_id=reference_image_id, + parent=parent, reference_image=reference_image ) actual_request = channel.requests[0][1] assert expected_request == actual_request @@ -543,47 +622,9 @@ def test_create_reference_image_exception(self): # Setup request parent = client.product_path("[PROJECT]", "[LOCATION]", "[PRODUCT]") reference_image = {} - reference_image_id = "referenceImageId1946713331" with pytest.raises(CustomException): - client.create_reference_image(parent, reference_image, reference_image_id) - - def test_delete_reference_image(self): - channel = ChannelStub() - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = vision_v1p3beta1.ProductSearchClient() - - # Setup Request - name = client.reference_image_path( - "[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]" - ) - - client.delete_reference_image(name) - - assert len(channel.requests) == 1 - expected_request = product_search_service_pb2.DeleteReferenceImageRequest( - name=name - ) - actual_request = channel.requests[0][1] - assert expected_request == actual_request - - def test_delete_reference_image_exception(self): - # Mock the API response - channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = vision_v1p3beta1.ProductSearchClient() - - # Setup request - name = client.reference_image_path( - "[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]" - ) - - with pytest.raises(CustomException): - client.delete_reference_image(name) + client.create_reference_image(parent, reference_image) def test_list_reference_images(self): # Setup Expected Response @@ -693,7 +734,7 @@ def test_add_product_to_product_set(self): # Setup Request name = client.product_set_path("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]") - product = "product-309474065" + product = client.product_path("[PROJECT]", "[LOCATION]", "[PRODUCT]") client.add_product_to_product_set(name, product) @@ -714,7 +755,7 @@ def test_add_product_to_product_set_exception(self): # Setup request name = client.product_set_path("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]") - product = "product-309474065" + product = client.product_path("[PROJECT]", "[LOCATION]", "[PRODUCT]") with pytest.raises(CustomException): client.add_product_to_product_set(name, product) @@ -728,7 +769,7 @@ def test_remove_product_from_product_set(self): # Setup Request name = client.product_set_path("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]") - product = "product-309474065" + product = client.product_path("[PROJECT]", "[LOCATION]", "[PRODUCT]") client.remove_product_from_product_set(name, product) @@ -749,7 +790,7 @@ def test_remove_product_from_product_set_exception(self): # Setup request name = client.product_set_path("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]") - product = "product-309474065" + product = client.product_path("[PROJECT]", "[LOCATION]", "[PRODUCT]") with pytest.raises(CustomException): client.remove_product_from_product_set(name, product) @@ -800,59 +841,3 @@ def test_list_products_in_product_set_exception(self): paged_list_response = client.list_products_in_product_set(name) with pytest.raises(CustomException): list(paged_list_response) - - def test_import_product_sets(self): - # Setup Expected Response - expected_response = {} - expected_response = product_search_service_pb2.ImportProductSetsResponse( - **expected_response - ) - operation = operations_pb2.Operation( - name="operations/test_import_product_sets", done=True - ) - operation.response.Pack(expected_response) - - # Mock the API response - channel = ChannelStub(responses=[operation]) - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = vision_v1p3beta1.ProductSearchClient() - - # Setup Request - parent = client.location_path("[PROJECT]", "[LOCATION]") - input_config = {} - - response = client.import_product_sets(parent, input_config) - result = response.result() - assert expected_response == result - - assert len(channel.requests) == 1 - expected_request = product_search_service_pb2.ImportProductSetsRequest( - parent=parent, input_config=input_config - ) - actual_request = channel.requests[0][1] - assert expected_request == actual_request - - def test_import_product_sets_exception(self): - # Setup Response - error = status_pb2.Status() - operation = operations_pb2.Operation( - name="operations/test_import_product_sets_exception", done=True - ) - operation.error.CopyFrom(error) - - # Mock the API response - channel = ChannelStub(responses=[operation]) - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = vision_v1p3beta1.ProductSearchClient() - - # Setup Request - parent = client.location_path("[PROJECT]", "[LOCATION]") - input_config = {} - - response = client.import_product_sets(parent, input_config) - exception = response.exception() - assert exception.errors[0] == error diff --git a/tests/unit/gapic/v1p4beta1/test_product_search_client_v1p4beta1.py b/tests/unit/gapic/v1p4beta1/test_product_search_client_v1p4beta1.py index 35aad821..4a534f34 100644 --- a/tests/unit/gapic/v1p4beta1/test_product_search_client_v1p4beta1.py +++ b/tests/unit/gapic/v1p4beta1/test_product_search_client_v1p4beta1.py @@ -25,7 +25,6 @@ from google.cloud.vision_v1p4beta1.proto import product_search_service_pb2 from google.longrunning import operations_pb2 from google.protobuf import empty_pb2 -from google.protobuf import field_mask_pb2 class MultiCallableStub(object): @@ -65,6 +64,161 @@ class CustomException(Exception): class TestProductSearchClient(object): + def test_delete_product_set(self): + channel = ChannelStub() + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = vision_v1p4beta1.ProductSearchClient() + + # Setup Request + name = client.product_set_path("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]") + + client.delete_product_set(name) + + assert len(channel.requests) == 1 + expected_request = product_search_service_pb2.DeleteProductSetRequest(name=name) + actual_request = channel.requests[0][1] + assert expected_request == actual_request + + def test_delete_product_set_exception(self): + # Mock the API response + channel = ChannelStub(responses=[CustomException()]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = vision_v1p4beta1.ProductSearchClient() + + # Setup request + name = client.product_set_path("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]") + + with pytest.raises(CustomException): + client.delete_product_set(name) + + def test_delete_product(self): + channel = ChannelStub() + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = vision_v1p4beta1.ProductSearchClient() + + # Setup Request + name = client.product_path("[PROJECT]", "[LOCATION]", "[PRODUCT]") + + client.delete_product(name) + + assert len(channel.requests) == 1 + expected_request = product_search_service_pb2.DeleteProductRequest(name=name) + actual_request = channel.requests[0][1] + assert expected_request == actual_request + + def test_delete_product_exception(self): + # Mock the API response + channel = ChannelStub(responses=[CustomException()]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = vision_v1p4beta1.ProductSearchClient() + + # Setup request + name = client.product_path("[PROJECT]", "[LOCATION]", "[PRODUCT]") + + with pytest.raises(CustomException): + client.delete_product(name) + + def test_delete_reference_image(self): + channel = ChannelStub() + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = vision_v1p4beta1.ProductSearchClient() + + # Setup Request + name = client.reference_image_path( + "[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]" + ) + + client.delete_reference_image(name) + + assert len(channel.requests) == 1 + expected_request = product_search_service_pb2.DeleteReferenceImageRequest( + name=name + ) + actual_request = channel.requests[0][1] + assert expected_request == actual_request + + def test_delete_reference_image_exception(self): + # Mock the API response + channel = ChannelStub(responses=[CustomException()]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = vision_v1p4beta1.ProductSearchClient() + + # Setup request + name = client.reference_image_path( + "[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]" + ) + + with pytest.raises(CustomException): + client.delete_reference_image(name) + + def test_import_product_sets(self): + # Setup Expected Response + expected_response = {} + expected_response = product_search_service_pb2.ImportProductSetsResponse( + **expected_response + ) + operation = operations_pb2.Operation( + name="operations/test_import_product_sets", done=True + ) + operation.response.Pack(expected_response) + + # Mock the API response + channel = ChannelStub(responses=[operation]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = vision_v1p4beta1.ProductSearchClient() + + # Setup Request + parent = client.location_path("[PROJECT]", "[LOCATION]") + input_config = {} + + response = client.import_product_sets(parent, input_config) + result = response.result() + assert expected_response == result + + assert len(channel.requests) == 1 + expected_request = product_search_service_pb2.ImportProductSetsRequest( + parent=parent, input_config=input_config + ) + actual_request = channel.requests[0][1] + assert expected_request == actual_request + + def test_import_product_sets_exception(self): + # Setup Response + error = status_pb2.Status() + operation = operations_pb2.Operation( + name="operations/test_import_product_sets_exception", done=True + ) + operation.error.CopyFrom(error) + + # Mock the API response + channel = ChannelStub(responses=[operation]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = vision_v1p4beta1.ProductSearchClient() + + # Setup Request + parent = client.location_path("[PROJECT]", "[LOCATION]") + input_config = {} + + response = client.import_product_sets(parent, input_config) + exception = response.exception() + assert exception.errors[0] == error + def test_create_product_set(self): # Setup Expected Response name = "name3373707" @@ -82,14 +236,13 @@ def test_create_product_set(self): # Setup Request parent = client.location_path("[PROJECT]", "[LOCATION]") product_set = {} - product_set_id = "productSetId4216680" - response = client.create_product_set(parent, product_set, product_set_id) + response = client.create_product_set(parent, product_set) assert expected_response == response assert len(channel.requests) == 1 expected_request = product_search_service_pb2.CreateProductSetRequest( - parent=parent, product_set=product_set, product_set_id=product_set_id + parent=parent, product_set=product_set ) actual_request = channel.requests[0][1] assert expected_request == actual_request @@ -105,10 +258,9 @@ def test_create_product_set_exception(self): # Setup request parent = client.location_path("[PROJECT]", "[LOCATION]") product_set = {} - product_set_id = "productSetId4216680" with pytest.raises(CustomException): - client.create_product_set(parent, product_set, product_set_id) + client.create_product_set(parent, product_set) def test_list_product_sets(self): # Setup Expected Response @@ -215,14 +367,13 @@ def test_update_product_set(self): # Setup Request product_set = {} - update_mask = {} - response = client.update_product_set(product_set, update_mask) + response = client.update_product_set(product_set) assert expected_response == response assert len(channel.requests) == 1 expected_request = product_search_service_pb2.UpdateProductSetRequest( - product_set=product_set, update_mask=update_mask + product_set=product_set ) actual_request = channel.requests[0][1] assert expected_request == actual_request @@ -237,41 +388,9 @@ def test_update_product_set_exception(self): # Setup request product_set = {} - update_mask = {} - - with pytest.raises(CustomException): - client.update_product_set(product_set, update_mask) - - def test_delete_product_set(self): - channel = ChannelStub() - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = vision_v1p4beta1.ProductSearchClient() - - # Setup Request - name = client.product_set_path("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]") - - client.delete_product_set(name) - - assert len(channel.requests) == 1 - expected_request = product_search_service_pb2.DeleteProductSetRequest(name=name) - actual_request = channel.requests[0][1] - assert expected_request == actual_request - - def test_delete_product_set_exception(self): - # Mock the API response - channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = vision_v1p4beta1.ProductSearchClient() - - # Setup request - name = client.product_set_path("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]") with pytest.raises(CustomException): - client.delete_product_set(name) + client.update_product_set(product_set) def test_create_product(self): # Setup Expected Response @@ -297,14 +416,13 @@ def test_create_product(self): # Setup Request parent = client.location_path("[PROJECT]", "[LOCATION]") product = {} - product_id = "productId1753008747" - response = client.create_product(parent, product, product_id) + response = client.create_product(parent, product) assert expected_response == response assert len(channel.requests) == 1 expected_request = product_search_service_pb2.CreateProductRequest( - parent=parent, product=product, product_id=product_id + parent=parent, product=product ) actual_request = channel.requests[0][1] assert expected_request == actual_request @@ -320,10 +438,9 @@ def test_create_product_exception(self): # Setup request parent = client.location_path("[PROJECT]", "[LOCATION]") product = {} - product_id = "productId1753008747" with pytest.raises(CustomException): - client.create_product(parent, product, product_id) + client.create_product(parent, product) def test_list_products(self): # Setup Expected Response @@ -439,14 +556,13 @@ def test_update_product(self): # Setup Request product = {} - update_mask = {} - response = client.update_product(product, update_mask) + response = client.update_product(product) assert expected_response == response assert len(channel.requests) == 1 expected_request = product_search_service_pb2.UpdateProductRequest( - product=product, update_mask=update_mask + product=product ) actual_request = channel.requests[0][1] assert expected_request == actual_request @@ -461,41 +577,9 @@ def test_update_product_exception(self): # Setup request product = {} - update_mask = {} with pytest.raises(CustomException): - client.update_product(product, update_mask) - - def test_delete_product(self): - channel = ChannelStub() - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = vision_v1p4beta1.ProductSearchClient() - - # Setup Request - name = client.product_path("[PROJECT]", "[LOCATION]", "[PRODUCT]") - - client.delete_product(name) - - assert len(channel.requests) == 1 - expected_request = product_search_service_pb2.DeleteProductRequest(name=name) - actual_request = channel.requests[0][1] - assert expected_request == actual_request - - def test_delete_product_exception(self): - # Mock the API response - channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = vision_v1p4beta1.ProductSearchClient() - - # Setup request - name = client.product_path("[PROJECT]", "[LOCATION]", "[PRODUCT]") - - with pytest.raises(CustomException): - client.delete_product(name) + client.update_product(product) def test_create_reference_image(self): # Setup Expected Response @@ -516,18 +600,13 @@ def test_create_reference_image(self): # Setup Request parent = client.product_path("[PROJECT]", "[LOCATION]", "[PRODUCT]") reference_image = {} - reference_image_id = "referenceImageId1946713331" - response = client.create_reference_image( - parent, reference_image, reference_image_id - ) + response = client.create_reference_image(parent, reference_image) assert expected_response == response assert len(channel.requests) == 1 expected_request = product_search_service_pb2.CreateReferenceImageRequest( - parent=parent, - reference_image=reference_image, - reference_image_id=reference_image_id, + parent=parent, reference_image=reference_image ) actual_request = channel.requests[0][1] assert expected_request == actual_request @@ -543,47 +622,9 @@ def test_create_reference_image_exception(self): # Setup request parent = client.product_path("[PROJECT]", "[LOCATION]", "[PRODUCT]") reference_image = {} - reference_image_id = "referenceImageId1946713331" with pytest.raises(CustomException): - client.create_reference_image(parent, reference_image, reference_image_id) - - def test_delete_reference_image(self): - channel = ChannelStub() - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = vision_v1p4beta1.ProductSearchClient() - - # Setup Request - name = client.reference_image_path( - "[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]" - ) - - client.delete_reference_image(name) - - assert len(channel.requests) == 1 - expected_request = product_search_service_pb2.DeleteReferenceImageRequest( - name=name - ) - actual_request = channel.requests[0][1] - assert expected_request == actual_request - - def test_delete_reference_image_exception(self): - # Mock the API response - channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = vision_v1p4beta1.ProductSearchClient() - - # Setup request - name = client.reference_image_path( - "[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]" - ) - - with pytest.raises(CustomException): - client.delete_reference_image(name) + client.create_reference_image(parent, reference_image) def test_list_reference_images(self): # Setup Expected Response @@ -693,7 +734,7 @@ def test_add_product_to_product_set(self): # Setup Request name = client.product_set_path("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]") - product = "product-309474065" + product = client.product_path("[PROJECT]", "[LOCATION]", "[PRODUCT]") client.add_product_to_product_set(name, product) @@ -714,7 +755,7 @@ def test_add_product_to_product_set_exception(self): # Setup request name = client.product_set_path("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]") - product = "product-309474065" + product = client.product_path("[PROJECT]", "[LOCATION]", "[PRODUCT]") with pytest.raises(CustomException): client.add_product_to_product_set(name, product) @@ -728,7 +769,7 @@ def test_remove_product_from_product_set(self): # Setup Request name = client.product_set_path("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]") - product = "product-309474065" + product = client.product_path("[PROJECT]", "[LOCATION]", "[PRODUCT]") client.remove_product_from_product_set(name, product) @@ -749,7 +790,7 @@ def test_remove_product_from_product_set_exception(self): # Setup request name = client.product_set_path("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]") - product = "product-309474065" + product = client.product_path("[PROJECT]", "[LOCATION]", "[PRODUCT]") with pytest.raises(CustomException): client.remove_product_from_product_set(name, product) @@ -801,14 +842,12 @@ def test_list_products_in_product_set_exception(self): with pytest.raises(CustomException): list(paged_list_response) - def test_import_product_sets(self): + def test_purge_products(self): # Setup Expected Response expected_response = {} - expected_response = product_search_service_pb2.ImportProductSetsResponse( - **expected_response - ) + expected_response = empty_pb2.Empty(**expected_response) operation = operations_pb2.Operation( - name="operations/test_import_product_sets", done=True + name="operations/test_purge_products", done=True ) operation.response.Pack(expected_response) @@ -821,24 +860,23 @@ def test_import_product_sets(self): # Setup Request parent = client.location_path("[PROJECT]", "[LOCATION]") - input_config = {} - response = client.import_product_sets(parent, input_config) + response = client.purge_products(parent) result = response.result() assert expected_response == result assert len(channel.requests) == 1 - expected_request = product_search_service_pb2.ImportProductSetsRequest( - parent=parent, input_config=input_config + expected_request = product_search_service_pb2.PurgeProductsRequest( + parent=parent ) actual_request = channel.requests[0][1] assert expected_request == actual_request - def test_import_product_sets_exception(self): + def test_purge_products_exception(self): # Setup Response error = status_pb2.Status() operation = operations_pb2.Operation( - name="operations/test_import_product_sets_exception", done=True + name="operations/test_purge_products_exception", done=True ) operation.error.CopyFrom(error) @@ -851,41 +889,7 @@ def test_import_product_sets_exception(self): # Setup Request parent = client.location_path("[PROJECT]", "[LOCATION]") - input_config = {} - response = client.import_product_sets(parent, input_config) + response = client.purge_products(parent) exception = response.exception() assert exception.errors[0] == error - - def test_purge_products(self): - # Setup Expected Response - name = "name3373707" - done = True - expected_response = {"name": name, "done": done} - expected_response = operations_pb2.Operation(**expected_response) - - # Mock the API response - channel = ChannelStub(responses=[expected_response]) - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = vision_v1p4beta1.ProductSearchClient() - - response = client.purge_products() - assert expected_response == response - - assert len(channel.requests) == 1 - expected_request = product_search_service_pb2.PurgeProductsRequest() - actual_request = channel.requests[0][1] - assert expected_request == actual_request - - def test_purge_products_exception(self): - # Mock the API response - channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = vision_v1p4beta1.ProductSearchClient() - - with pytest.raises(CustomException): - client.purge_products() From e429bfeee086bd30387be6c96ed4512d6e5c714e Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Wed, 24 Jun 2020 17:48:34 -0700 Subject: [PATCH 02/25] chore(python): create thread_safety doc This will be included in index.rst files. See https://github.com/googleapis/python-bigtable/pull/26/files Source-Author: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Source-Date: Tue May 5 10:06:52 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: 09c48461232ce929c34386259eb59018ad2d8eef Source-Link: https://github.com/googleapis/synthtool/commit/09c48461232ce929c34386259eb59018ad2d8eef --- docs/multiprocessing.rst | 7 +++++++ synth.metadata | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 docs/multiprocessing.rst diff --git a/docs/multiprocessing.rst b/docs/multiprocessing.rst new file mode 100644 index 00000000..1cb29d4c --- /dev/null +++ b/docs/multiprocessing.rst @@ -0,0 +1,7 @@ +.. note:: + + Because this client uses :mod:`grpcio` library, it is safe to + share instances across threads. In multiprocessing scenarios, the best + practice is to create client instances *after* the invocation of + :func:`os.fork` by :class:`multiprocessing.Pool` or + :class:`multiprocessing.Process`. diff --git a/synth.metadata b/synth.metadata index 2d0b8747..8b547b8d 100644 --- a/synth.metadata +++ b/synth.metadata @@ -11,15 +11,15 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "e0f9d9e1f9de890db765be46f45ca8490723e3eb", - "internalRef": "309824146" + "sha": "1b5a8d2bbb69c5a04db26bd546d2888e609c6bab", + "internalRef": "309845930" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "04cb397eb7590ea1e6c10a39fca3d8fe0fb3d256" + "sha": "09c48461232ce929c34386259eb59018ad2d8eef" } } ], From 786289b41acad4bff2118d85604da887ef912828 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Wed, 24 Jun 2020 17:51:15 -0700 Subject: [PATCH 03/25] chore(python): remove extra #!/bin/bash Co-authored-by: Jeffrey Rennie Source-Author: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Source-Date: Tue May 12 09:51:12 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: 7482e79a82e353248769d819788adc1213e8c207 Source-Link: https://github.com/googleapis/synthtool/commit/7482e79a82e353248769d819788adc1213e8c207 --- .kokoro/publish-docs.sh | 2 -- synth.metadata | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.kokoro/publish-docs.sh b/.kokoro/publish-docs.sh index c5ebca90..237f0e87 100755 --- a/.kokoro/publish-docs.sh +++ b/.kokoro/publish-docs.sh @@ -13,8 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -#!/bin/bash - set -eo pipefail # Disable buffering, so that the logs stream through. diff --git a/synth.metadata b/synth.metadata index 8b547b8d..1619aedc 100644 --- a/synth.metadata +++ b/synth.metadata @@ -11,15 +11,15 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "1b5a8d2bbb69c5a04db26bd546d2888e609c6bab", - "internalRef": "309845930" + "sha": "edd3b80fb770548d6ad780105f1782de6ff73ea0", + "internalRef": "311053644" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "09c48461232ce929c34386259eb59018ad2d8eef" + "sha": "7482e79a82e353248769d819788adc1213e8c207" } } ], From b7a68ac997561f20d996ac65c8c8b248f5c3554f Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Wed, 24 Jun 2020 17:59:37 -0700 Subject: [PATCH 04/25] Add C++ library support for Google Cloud Storage protos PiperOrigin-RevId: 311887398 Source-Author: Google APIs Source-Date: Sat May 16 08:07:56 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: abd6b709a5533ba5d0bc435189ffda7f2445cd4b Source-Link: https://github.com/googleapis/googleapis/commit/abd6b709a5533ba5d0bc435189ffda7f2445cd4b --- google/cloud/vision_v1/proto/geometry_pb2.py | 7 ++++--- google/cloud/vision_v1p1beta1/proto/geometry_pb2.py | 7 +++---- synth.metadata | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/google/cloud/vision_v1/proto/geometry_pb2.py b/google/cloud/vision_v1/proto/geometry_pb2.py index 83897b74..eefd17db 100644 --- a/google/cloud/vision_v1/proto/geometry_pb2.py +++ b/google/cloud/vision_v1/proto/geometry_pb2.py @@ -340,9 +340,10 @@ { "DESCRIPTOR": _POSITION, "__module__": "google.cloud.vision_v1.proto.geometry_pb2", - "__doc__": """A 3D position in the image, used primarily for Face detection landmarks. - A valid Position must have both x and y coordinates. The position - coordinates are in the same scale as the original image. + "__doc__": """A 3D position in the image, used primarily for Face + detection landmarks. A valid Position must have both x and y + coordinates. The position coordinates are in the same scale as the + original image. Attributes: diff --git a/google/cloud/vision_v1p1beta1/proto/geometry_pb2.py b/google/cloud/vision_v1p1beta1/proto/geometry_pb2.py index 576e1ae0..b6ef0904 100644 --- a/google/cloud/vision_v1p1beta1/proto/geometry_pb2.py +++ b/google/cloud/vision_v1p1beta1/proto/geometry_pb2.py @@ -239,10 +239,9 @@ { "DESCRIPTOR": _POSITION, "__module__": "google.cloud.vision_v1p1beta1.proto.geometry_pb2", - "__doc__": """A 3D position in the image, used primarily for Face - detection landmarks. A valid Position must have both x and y - coordinates. The position coordinates are in the same scale as the - original image. + "__doc__": """A 3D position in the image, used primarily for Face detection landmarks. + A valid Position must have both x and y coordinates. The position + coordinates are in the same scale as the original image. Attributes: diff --git a/synth.metadata b/synth.metadata index 1619aedc..5a8b6609 100644 --- a/synth.metadata +++ b/synth.metadata @@ -11,15 +11,15 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "edd3b80fb770548d6ad780105f1782de6ff73ea0", - "internalRef": "311053644" + "sha": "abd6b709a5533ba5d0bc435189ffda7f2445cd4b", + "internalRef": "311887398" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "7482e79a82e353248769d819788adc1213e8c207" + "sha": "7136daa5687f2a5bdcbba2cb25457f56fdf85d59" } } ], From be26c94ff3d6e968b10ae096d5a01ba3279665d1 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Wed, 24 Jun 2020 17:59:37 -0700 Subject: [PATCH 05/25] fix: restore GAPIC v2 retry configs Restores GAPIC v2 retry config overrides that were mistakenly removed during migration. PiperOrigin-RevId: 312088359 Source-Author: Google APIs Source-Date: Mon May 18 08:57:12 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: 5a90d467aa65e7f038f87585e8fbb45d74475e7c Source-Link: https://github.com/googleapis/googleapis/commit/5a90d467aa65e7f038f87585e8fbb45d74475e7c --- .../vision_v1p3beta1/gapic/image_annotator_client_config.py | 4 ++-- synth.metadata | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/google/cloud/vision_v1p3beta1/gapic/image_annotator_client_config.py b/google/cloud/vision_v1p3beta1/gapic/image_annotator_client_config.py index 3aff6946..41adece1 100644 --- a/google/cloud/vision_v1p3beta1/gapic/image_annotator_client_config.py +++ b/google/cloud/vision_v1p3beta1/gapic/image_annotator_client_config.py @@ -10,9 +10,9 @@ "initial_retry_delay_millis": 100, "retry_delay_multiplier": 1.3, "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 20000, + "initial_rpc_timeout_millis": 60000, "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 20000, + "max_rpc_timeout_millis": 60000, "total_timeout_millis": 600000, } }, diff --git a/synth.metadata b/synth.metadata index 5a8b6609..9a3d80ea 100644 --- a/synth.metadata +++ b/synth.metadata @@ -11,8 +11,8 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "abd6b709a5533ba5d0bc435189ffda7f2445cd4b", - "internalRef": "311887398" + "sha": "5a90d467aa65e7f038f87585e8fbb45d74475e7c", + "internalRef": "312088359" } }, { From 509633f9d7f6a2d2415592e082d684fc9a2fb66d Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Wed, 24 Jun 2020 18:00:52 -0700 Subject: [PATCH 06/25] chore(python): remove one remaining extra bash line To avoid generating bogus PRs Co-authored-by: Jeffrey Rennie Source-Author: Carlos de la Guardia Source-Date: Tue May 19 11:57:19 2020 -0500 Source-Repo: googleapis/synthtool Source-Sha: d2364eb80b840a36136c8ce12f1c6efabcc9600e Source-Link: https://github.com/googleapis/synthtool/commit/d2364eb80b840a36136c8ce12f1c6efabcc9600e --- .kokoro/release.sh | 2 -- synth.metadata | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.kokoro/release.sh b/.kokoro/release.sh index 6a730710..345a8dc0 100755 --- a/.kokoro/release.sh +++ b/.kokoro/release.sh @@ -13,8 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -#!/bin/bash - set -eo pipefail # Start the releasetool reporter diff --git a/synth.metadata b/synth.metadata index 9a3d80ea..ab09d49f 100644 --- a/synth.metadata +++ b/synth.metadata @@ -11,15 +11,15 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "5a90d467aa65e7f038f87585e8fbb45d74475e7c", - "internalRef": "312088359" + "sha": "cd3ce2651c3921670217e664303976cdf76e9fe2", + "internalRef": "312123588" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "7136daa5687f2a5bdcbba2cb25457f56fdf85d59" + "sha": "d2364eb80b840a36136c8ce12f1c6efabcc9600e" } } ], From 917247c40f814932d75a99c56d9c6eab9208f339 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Wed, 24 Jun 2020 18:02:27 -0700 Subject: [PATCH 07/25] Upgrade protoc-docs-plugin version to 0.7.0 to fix unstable docstrings. PiperOrigin-RevId: 312689208 Source-Author: Google APIs Source-Date: Thu May 21 10:00:47 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: dec3204175104cef49bf21d685d5517caaf0058f Source-Link: https://github.com/googleapis/googleapis/commit/dec3204175104cef49bf21d685d5517caaf0058f --- google/cloud/vision_v1/proto/geometry_pb2.py | 15 +- .../vision_v1/proto/image_annotator_pb2.py | 145 ++++-------------- .../vision_v1/proto/product_search_pb2.py | 14 +- .../proto/product_search_service_pb2.py | 109 +++---------- .../vision_v1/proto/text_annotation_pb2.py | 41 ++--- .../vision_v1/proto/web_detection_pb2.py | 10 -- .../vision_v1p1beta1/proto/geometry_pb2.py | 12 +- .../proto/image_annotator_pb2.py | 92 +++-------- .../proto/text_annotation_pb2.py | 41 ++--- .../proto/web_detection_pb2.py | 10 -- .../vision_v1p2beta1/proto/geometry_pb2.py | 15 +- .../proto/image_annotator_pb2.py | 127 ++++----------- .../proto/text_annotation_pb2.py | 41 ++--- .../proto/web_detection_pb2.py | 10 -- .../vision_v1p3beta1/proto/geometry_pb2.py | 20 +-- .../proto/image_annotator_pb2.py | 129 ++++------------ .../proto/product_search_pb2.py | 8 - .../proto/product_search_service_pb2.py | 101 ++---------- .../proto/text_annotation_pb2.py | 41 ++--- .../proto/web_detection_pb2.py | 10 -- .../cloud/vision_v1p4beta1/proto/face_pb2.py | 6 - .../vision_v1p4beta1/proto/geometry_pb2.py | 15 +- .../proto/image_annotator_pb2.py | 145 ++++-------------- .../proto/product_search_pb2.py | 14 +- .../proto/product_search_service_pb2.py | 109 +++---------- .../proto/text_annotation_pb2.py | 41 ++--- .../proto/web_detection_pb2.py | 10 -- synth.metadata | 6 +- 28 files changed, 271 insertions(+), 1066 deletions(-) diff --git a/google/cloud/vision_v1/proto/geometry_pb2.py b/google/cloud/vision_v1/proto/geometry_pb2.py index eefd17db..bfac2079 100644 --- a/google/cloud/vision_v1/proto/geometry_pb2.py +++ b/google/cloud/vision_v1/proto/geometry_pb2.py @@ -285,8 +285,6 @@ "DESCRIPTOR": _VERTEX, "__module__": "google.cloud.vision_v1.proto.geometry_pb2", "__doc__": """X coordinate. - - Attributes: y: Y coordinate. @@ -303,8 +301,6 @@ "DESCRIPTOR": _NORMALIZEDVERTEX, "__module__": "google.cloud.vision_v1.proto.geometry_pb2", "__doc__": """X coordinate. - - Attributes: y: Y coordinate. @@ -321,8 +317,6 @@ "DESCRIPTOR": _BOUNDINGPOLY, "__module__": "google.cloud.vision_v1.proto.geometry_pb2", "__doc__": """A bounding polygon for the detected image annotation. - - Attributes: vertices: The bounding polygon vertices. @@ -340,12 +334,9 @@ { "DESCRIPTOR": _POSITION, "__module__": "google.cloud.vision_v1.proto.geometry_pb2", - "__doc__": """A 3D position in the image, used primarily for Face - detection landmarks. A valid Position must have both x and y - coordinates. The position coordinates are in the same scale as the - original image. - - + "__doc__": """A 3D position in the image, used primarily for Face detection + landmarks. A valid Position must have both x and y coordinates. The + position coordinates are in the same scale as the original image. Attributes: x: X coordinate. diff --git a/google/cloud/vision_v1/proto/image_annotator_pb2.py b/google/cloud/vision_v1/proto/image_annotator_pb2.py index 5ccfa2f5..36eb1c09 100644 --- a/google/cloud/vision_v1/proto/image_annotator_pb2.py +++ b/google/cloud/vision_v1/proto/image_annotator_pb2.py @@ -3775,11 +3775,9 @@ { "DESCRIPTOR": _FEATURE, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", - "__doc__": """The type of Google Cloud Vision API detection to perform, - and the maximum number of results to return for that type. Multiple + "__doc__": """The type of Google Cloud Vision API detection to perform, and the + maximum number of results to return for that type. Multiple ``Feature`` objects can be specified in the ``features`` list. - - Attributes: type: The feature type. @@ -3802,10 +3800,8 @@ { "DESCRIPTOR": _IMAGESOURCE, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", - "__doc__": """External image source (Google Cloud Storage or web URL - image location). - - + "__doc__": """External image source (Google Cloud Storage or web URL image + location). Attributes: gcs_image_uri: \ **Use ``image_uri`` instead.** The Google Cloud Storage URI @@ -3840,10 +3836,7 @@ { "DESCRIPTOR": _IMAGE, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", - "__doc__": """Client image to perform Google Cloud Vision API tasks - over. - - + "__doc__": """Client image to perform Google Cloud Vision API tasks over. Attributes: content: Image content, represented as a stream of bytes. Note: As with @@ -3871,8 +3864,6 @@ "DESCRIPTOR": _FACEANNOTATION_LANDMARK, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """A face-specific landmark (for example, a face feature). - - Attributes: type: Face landmark type. @@ -3884,10 +3875,7 @@ ), "DESCRIPTOR": _FACEANNOTATION, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", - "__doc__": """A face annotation object contains the results of face - detection. - - + "__doc__": """A face annotation object contains the results of face detection. Attributes: bounding_poly: The bounding polygon around the face. The coordinates of the @@ -3950,8 +3938,6 @@ "DESCRIPTOR": _LOCATIONINFO, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """Detected entity location information. - - Attributes: lat_lng: lat/long location coordinates. @@ -3967,10 +3953,7 @@ { "DESCRIPTOR": _PROPERTY, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", - "__doc__": """A ``Property`` consists of a user-supplied name/value - pair. - - + "__doc__": """A ``Property`` consists of a user-supplied name/value pair. Attributes: name: Name of the property. @@ -3991,8 +3974,6 @@ "DESCRIPTOR": _ENTITYANNOTATION, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """Set of detected entity features. - - Attributes: mid: Opaque entity ID. Some IDs may be available in `Google @@ -4046,8 +4027,6 @@ "DESCRIPTOR": _LOCALIZEDOBJECTANNOTATION, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """Set of detected objects with bounding boxes. - - Attributes: mid: Object ID that should align with EntityAnnotation mid. @@ -4074,11 +4053,9 @@ { "DESCRIPTOR": _SAFESEARCHANNOTATION, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", - "__doc__": """Set of features pertaining to the image, computed by - computer vision methods over safe-search verticals (for example, adult, - spoof, medical, violence). - - + "__doc__": """Set of features pertaining to the image, computed by computer vision + methods over safe-search verticals (for example, adult, spoof, + medical, violence). Attributes: adult: Represents the adult content likelihood for the image. Adult @@ -4128,8 +4105,6 @@ "DESCRIPTOR": _LATLONGRECT, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """Rectangle determined by min and max ``LatLng`` pairs. - - Attributes: min_lat_lng: Min lat/long pair. @@ -4147,10 +4122,8 @@ { "DESCRIPTOR": _COLORINFO, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", - "__doc__": """Color information consists of RGB channels, score, and the - fraction of the image that the color occupies in the image. - - + "__doc__": """Color information consists of RGB channels, score, and the fraction of + the image that the color occupies in the image. Attributes: color: RGB components of the color. @@ -4172,8 +4145,6 @@ "DESCRIPTOR": _DOMINANTCOLORSANNOTATION, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """Set of dominant colors and their corresponding scores. - - Attributes: colors: RGB color values with their score and pixel fraction. @@ -4190,8 +4161,6 @@ "DESCRIPTOR": _IMAGEPROPERTIES, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """Stores image properties, such as dominant colors. - - Attributes: dominant_colors: If present, dominant colors completed successfully. @@ -4207,10 +4176,8 @@ { "DESCRIPTOR": _CROPHINT, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", - "__doc__": """Single crop hint that is used to generate a new crop when - serving an image. - - + "__doc__": """Single crop hint that is used to generate a new crop when serving an + image. Attributes: bounding_poly: The bounding polygon for the crop region. The coordinates of @@ -4232,10 +4199,8 @@ { "DESCRIPTOR": _CROPHINTSANNOTATION, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", - "__doc__": """Set of crop hints that are used to generate new crops when - serving images. - - + "__doc__": """Set of crop hints that are used to generate new crops when serving + images. Attributes: crop_hints: Crop hint results. @@ -4252,8 +4217,6 @@ "DESCRIPTOR": _CROPHINTSPARAMS, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """Parameters for crop hints annotation request. - - Attributes: aspect_ratios: Aspect ratios in floats, representing the ratio of the width @@ -4275,8 +4238,6 @@ "DESCRIPTOR": _WEBDETECTIONPARAMS, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """Parameters for web detection request. - - Attributes: include_geo_results: Whether to include results derived from the geo information in @@ -4294,8 +4255,6 @@ "DESCRIPTOR": _IMAGECONTEXT, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """Image context and/or feature-specific parameters. - - Attributes: lat_long_rect: Not used. @@ -4328,11 +4287,9 @@ { "DESCRIPTOR": _ANNOTATEIMAGEREQUEST, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", - "__doc__": """Request for performing Google Cloud Vision API tasks over - a user-provided image, with user-requested features, and with context + "__doc__": """Request for performing Google Cloud Vision API tasks over a user- + provided image, with user-requested features, and with context information. - - Attributes: image: The image to be processed. @@ -4352,10 +4309,8 @@ { "DESCRIPTOR": _IMAGEANNOTATIONCONTEXT, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", - "__doc__": """If an image was produced from a file (e.g. a PDF), this - message gives information about the source of that image. - - + "__doc__": """If an image was produced from a file (e.g. a PDF), this message gives + information about the source of that image. Attributes: uri: The URI of the file used to produce the image. @@ -4375,8 +4330,6 @@ "DESCRIPTOR": _ANNOTATEIMAGERESPONSE, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """Response to an image annotation request. - - Attributes: face_annotations: If present, face detection has completed successfully. @@ -4425,10 +4378,8 @@ { "DESCRIPTOR": _BATCHANNOTATEIMAGESREQUEST, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", - "__doc__": """Multiple image annotation requests are batched into a - single service call. - - + "__doc__": """Multiple image annotation requests are batched into a single service + call. Attributes: requests: Required. Individual image annotation requests for this batch. @@ -4452,8 +4403,6 @@ "DESCRIPTOR": _BATCHANNOTATEIMAGESRESPONSE, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """Response to a batch image annotation request. - - Attributes: responses: Individual responses to image annotation requests within the @@ -4470,10 +4419,7 @@ { "DESCRIPTOR": _ANNOTATEFILEREQUEST, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", - "__doc__": """A request to annotate one single file, e.g. a PDF, TIFF or - GIF file. - - + "__doc__": """A request to annotate one single file, e.g. a PDF, TIFF or GIF file. Attributes: input_config: Required. Information about the input file. @@ -4504,10 +4450,8 @@ { "DESCRIPTOR": _ANNOTATEFILERESPONSE, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", - "__doc__": """Response to a single file annotation request. A file may - contain one or more images, which individually have their own responses. - - + "__doc__": """Response to a single file annotation request. A file may contain one + or more images, which individually have their own responses. Attributes: input_config: Information about the file for which this response is @@ -4532,10 +4476,7 @@ { "DESCRIPTOR": _BATCHANNOTATEFILESREQUEST, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", - "__doc__": """A list of requests to annotate files using the - BatchAnnotateFiles API. - - + "__doc__": """A list of requests to annotate files using the BatchAnnotateFiles API. Attributes: requests: Required. The list of file annotation requests. Right now we @@ -4561,8 +4502,6 @@ "DESCRIPTOR": _BATCHANNOTATEFILESRESPONSE, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """A list of file annotation responses. - - Attributes: responses: The list of file annotation responses, each response @@ -4581,8 +4520,6 @@ "DESCRIPTOR": _ASYNCANNOTATEFILEREQUEST, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """An offline file annotation request. - - Attributes: input_config: Required. Information about the input file. @@ -4607,8 +4544,6 @@ "DESCRIPTOR": _ASYNCANNOTATEFILERESPONSE, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """The response for a single offline file annotation request. - - Attributes: output_config: The output location and metadata from @@ -4626,8 +4561,6 @@ "DESCRIPTOR": _ASYNCBATCHANNOTATEIMAGESREQUEST, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """Request for async image annotation for a list of images. - - Attributes: requests: Required. Individual image annotation requests for this batch. @@ -4654,8 +4587,6 @@ "DESCRIPTOR": _ASYNCBATCHANNOTATEIMAGESRESPONSE, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """Response to an async batch image annotation request. - - Attributes: output_config: The output location and metadata from @@ -4672,10 +4603,8 @@ { "DESCRIPTOR": _ASYNCBATCHANNOTATEFILESREQUEST, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", - "__doc__": """Multiple async file annotation requests are batched into a - single service call. - - + "__doc__": """Multiple async file annotation requests are batched into a single + service call. Attributes: requests: Required. Individual async file annotation requests for this @@ -4700,8 +4629,6 @@ "DESCRIPTOR": _ASYNCBATCHANNOTATEFILESRESPONSE, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """Response to an async batch file annotation request. - - Attributes: responses: The list of file annotation responses, one for each request in @@ -4719,8 +4646,6 @@ "DESCRIPTOR": _INPUTCONFIG, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """The desired input location and metadata. - - Attributes: gcs_source: The Google Cloud Storage location to read the input from. @@ -4748,8 +4673,6 @@ "DESCRIPTOR": _OUTPUTCONFIG, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """The desired output location and metadata. - - Attributes: gcs_destination: The Google Cloud Storage location to write the output(s) to. @@ -4775,10 +4698,7 @@ { "DESCRIPTOR": _GCSSOURCE, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", - "__doc__": """The Google Cloud Storage location where the input will be - read from. - - + "__doc__": """The Google Cloud Storage location where the input will be read from. Attributes: uri: Google Cloud Storage URI for the input file. This must only be @@ -4796,10 +4716,7 @@ { "DESCRIPTOR": _GCSDESTINATION, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", - "__doc__": """The Google Cloud Storage location where the output will be - written to. - - + "__doc__": """The Google Cloud Storage location where the output will be written to. Attributes: uri: Google Cloud Storage URI prefix where the results will be @@ -4834,8 +4751,6 @@ "DESCRIPTOR": _OPERATIONMETADATA, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """Contains metadata for the BatchAnnotateImages operation. - - Attributes: state: Current state of the batch operation. diff --git a/google/cloud/vision_v1/proto/product_search_pb2.py b/google/cloud/vision_v1/proto/product_search_pb2.py index 547a0f59..93426c01 100644 --- a/google/cloud/vision_v1/proto/product_search_pb2.py +++ b/google/cloud/vision_v1/proto/product_search_pb2.py @@ -494,8 +494,6 @@ "DESCRIPTOR": _PRODUCTSEARCHPARAMS, "__module__": "google.cloud.vision_v1.proto.product_search_pb2", "__doc__": """Parameters for a product search request. - - Attributes: bounding_poly: The bounding polygon around the area of interest in the image. @@ -542,8 +540,6 @@ "DESCRIPTOR": _PRODUCTSEARCHRESULTS_RESULT, "__module__": "google.cloud.vision_v1.proto.product_search_pb2", "__doc__": """Information about a product. - - Attributes: product: The Product. @@ -564,8 +560,6 @@ "DESCRIPTOR": _PRODUCTSEARCHRESULTS_OBJECTANNOTATION, "__module__": "google.cloud.vision_v1.proto.product_search_pb2", "__doc__": """Prediction for what the object in the bounding box is. - - Attributes: mid: Object ID that should align with EntityAnnotation mid. @@ -587,10 +581,8 @@ { "DESCRIPTOR": _PRODUCTSEARCHRESULTS_GROUPEDRESULT, "__module__": "google.cloud.vision_v1.proto.product_search_pb2", - "__doc__": """Information about the products similar to a single product - in a query image. - - + "__doc__": """Information about the products similar to a single product in a query + image. Attributes: bounding_poly: The bounding polygon around the product detected in the query @@ -607,8 +599,6 @@ "DESCRIPTOR": _PRODUCTSEARCHRESULTS, "__module__": "google.cloud.vision_v1.proto.product_search_pb2", "__doc__": """Results for a product search request. - - Attributes: index_time: Timestamp of the index which provided these results. Products diff --git a/google/cloud/vision_v1/proto/product_search_service_pb2.py b/google/cloud/vision_v1/proto/product_search_service_pb2.py index e2b191e6..2e79a224 100644 --- a/google/cloud/vision_v1/proto/product_search_service_pb2.py +++ b/google/cloud/vision_v1/proto/product_search_service_pb2.py @@ -2206,8 +2206,6 @@ "DESCRIPTOR": _PRODUCT_KEYVALUE, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """A product label represented as a key-value pair. - - Attributes: key: The key of the label attached to the product. Cannot be empty @@ -2222,8 +2220,6 @@ "DESCRIPTOR": _PRODUCT, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """A Product contains ReferenceImages. - - Attributes: name: The resource name of the product. Format is: @@ -2265,11 +2261,9 @@ { "DESCRIPTOR": _PRODUCTSET, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", - "__doc__": """A ProductSet contains Products. A ProductSet can contain a - maximum of 1 million reference images. If the limit is exceeded, - periodic indexing will fail. - - + "__doc__": """A ProductSet contains Products. A ProductSet can contain a maximum of + 1 million reference images. If the limit is exceeded, periodic + indexing will fail. Attributes: name: The resource name of the ProductSet. Format is: ``projects/PR @@ -2300,10 +2294,8 @@ { "DESCRIPTOR": _REFERENCEIMAGE, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", - "__doc__": """A ``ReferenceImage`` represents a product image and its - associated metadata, such as bounding boxes. - - + "__doc__": """A ``ReferenceImage`` represents a product image and its associated + metadata, such as bounding boxes. Attributes: name: The resource name of the reference image. Format is: ``proje @@ -2334,8 +2326,6 @@ "DESCRIPTOR": _CREATEPRODUCTREQUEST, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """Request message for the ``CreateProduct`` method. - - Attributes: parent: Required. The project in which the Product should be created. @@ -2361,8 +2351,6 @@ "DESCRIPTOR": _LISTPRODUCTSREQUEST, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """Request message for the ``ListProducts`` method. - - Attributes: parent: Required. The project OR ProductSet from which Products should @@ -2386,8 +2374,6 @@ "DESCRIPTOR": _LISTPRODUCTSRESPONSE, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """Response message for the ``ListProducts`` method. - - Attributes: products: List of products. @@ -2407,8 +2393,6 @@ "DESCRIPTOR": _GETPRODUCTREQUEST, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """Request message for the ``GetProduct`` method. - - Attributes: name: Required. Resource name of the Product to get. Format is: @@ -2426,8 +2410,6 @@ "DESCRIPTOR": _UPDATEPRODUCTREQUEST, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """Request message for the ``UpdateProduct`` method. - - Attributes: product: Required. The Product resource which replaces the one on the @@ -2450,8 +2432,6 @@ "DESCRIPTOR": _DELETEPRODUCTREQUEST, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """Request message for the ``DeleteProduct`` method. - - Attributes: name: Required. Resource name of product to delete. Format is: @@ -2469,8 +2449,6 @@ "DESCRIPTOR": _CREATEPRODUCTSETREQUEST, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """Request message for the ``CreateProductSet`` method. - - Attributes: parent: Required. The project in which the ProductSet should be @@ -2496,8 +2474,6 @@ "DESCRIPTOR": _LISTPRODUCTSETSREQUEST, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """Request message for the ``ListProductSets`` method. - - Attributes: parent: Required. The project from which ProductSets should be listed. @@ -2521,8 +2497,6 @@ "DESCRIPTOR": _LISTPRODUCTSETSRESPONSE, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """Response message for the ``ListProductSets`` method. - - Attributes: product_sets: List of ProductSets. @@ -2542,8 +2516,6 @@ "DESCRIPTOR": _GETPRODUCTSETREQUEST, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """Request message for the ``GetProductSet`` method. - - Attributes: name: Required. Resource name of the ProductSet to get. Format is: @@ -2562,8 +2534,6 @@ "DESCRIPTOR": _UPDATEPRODUCTSETREQUEST, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """Request message for the ``UpdateProductSet`` method. - - Attributes: product_set: Required. The ProductSet resource which replaces the one on @@ -2586,8 +2556,6 @@ "DESCRIPTOR": _DELETEPRODUCTSETREQUEST, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """Request message for the ``DeleteProductSet`` method. - - Attributes: name: Required. Resource name of the ProductSet to delete. Format @@ -2606,8 +2574,6 @@ "DESCRIPTOR": _CREATEREFERENCEIMAGEREQUEST, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """Request message for the ``CreateReferenceImage`` method. - - Attributes: parent: Required. Resource name of the product in which to create the @@ -2635,8 +2601,6 @@ "DESCRIPTOR": _LISTREFERENCEIMAGESREQUEST, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """Request message for the ``ListReferenceImages`` method. - - Attributes: parent: Required. Resource name of the product containing the @@ -2663,8 +2627,6 @@ "DESCRIPTOR": _LISTREFERENCEIMAGESRESPONSE, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """Response message for the ``ListReferenceImages`` method. - - Attributes: reference_images: The list of reference images. @@ -2687,8 +2649,6 @@ "DESCRIPTOR": _GETREFERENCEIMAGEREQUEST, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """Request message for the ``GetReferenceImage`` method. - - Attributes: name: Required. The resource name of the ReferenceImage to get. @@ -2707,8 +2667,6 @@ "DESCRIPTOR": _DELETEREFERENCEIMAGEREQUEST, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """Request message for the ``DeleteReferenceImage`` method. - - Attributes: name: Required. The resource name of the reference image to delete. @@ -2727,8 +2685,6 @@ "DESCRIPTOR": _ADDPRODUCTTOPRODUCTSETREQUEST, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """Request message for the ``AddProductToProductSet`` method. - - Attributes: name: Required. The resource name for the ProductSet to modify. @@ -2750,10 +2706,7 @@ { "DESCRIPTOR": _REMOVEPRODUCTFROMPRODUCTSETREQUEST, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", - "__doc__": """Request message for the ``RemoveProductFromProductSet`` - method. - - + "__doc__": """Request message for the ``RemoveProductFromProductSet`` method. Attributes: name: Required. The resource name for the ProductSet to modify. @@ -2775,10 +2728,7 @@ { "DESCRIPTOR": _LISTPRODUCTSINPRODUCTSETREQUEST, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", - "__doc__": """Request message for the ``ListProductsInProductSet`` - method. - - + "__doc__": """Request message for the ``ListProductsInProductSet`` method. Attributes: name: Required. The ProductSet resource for which to retrieve @@ -2802,10 +2752,7 @@ { "DESCRIPTOR": _LISTPRODUCTSINPRODUCTSETRESPONSE, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", - "__doc__": """Response message for the ``ListProductsInProductSet`` - method. - - + "__doc__": """Response message for the ``ListProductsInProductSet`` method. Attributes: products: The list of Products. @@ -2824,10 +2771,8 @@ { "DESCRIPTOR": _IMPORTPRODUCTSETSGCSSOURCE, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", - "__doc__": """The Google Cloud Storage location for a csv file which - preserves a list of ImportProductSetRequests in each line. - - + "__doc__": """The Google Cloud Storage location for a csv file which preserves a + list of ImportProductSetRequests in each line. Attributes: csv_file_uri: The Google Cloud Storage URI of the input csv file. The URI @@ -2888,8 +2833,6 @@ "DESCRIPTOR": _IMPORTPRODUCTSETSINPUTCONFIG, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """The input content for the ``ImportProductSets`` method. - - Attributes: source: The source of the input. @@ -2909,8 +2852,6 @@ "DESCRIPTOR": _IMPORTPRODUCTSETSREQUEST, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """Request message for the ``ImportProductSets`` method. - - Attributes: parent: Required. The project in which the ProductSets should be @@ -2929,15 +2870,11 @@ { "DESCRIPTOR": _IMPORTPRODUCTSETSRESPONSE, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", - "__doc__": """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] + "__doc__": """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.l + ongrunning.Operation.response][google.longrunning.Operation.response] field. - - Attributes: reference_images: The list of reference_images that are imported successfully. @@ -2959,14 +2896,10 @@ { "DESCRIPTOR": _BATCHOPERATIONMETADATA, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", - "__doc__": """Metadata for the batch operations such as the current - state. - - This is included in the ``metadata`` field of the ``Operation`` returned - by the ``GetOperation`` call of the ``google::longrunning::Operations`` + "__doc__": """Metadata for the batch operations such as the current state. This is + included in the ``metadata`` field of the ``Operation`` returned by + the ``GetOperation`` call of the ``google::longrunning::Operations`` service. - - Attributes: state: The current state of the batch operation. @@ -2988,10 +2921,8 @@ { "DESCRIPTOR": _PRODUCTSETPURGECONFIG, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", - "__doc__": """Config to control which ProductSet contains the Products - to be deleted. - - + "__doc__": """Config to control which ProductSet contains the Products to be + deleted. Attributes: product_set_id: The ProductSet that contains the Products to delete. If a @@ -3010,8 +2941,6 @@ "DESCRIPTOR": _PURGEPRODUCTSREQUEST, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """Request message for the ``PurgeProducts`` method. - - Attributes: target: The Products to delete. diff --git a/google/cloud/vision_v1/proto/text_annotation_pb2.py b/google/cloud/vision_v1/proto/text_annotation_pb2.py index 057fa606..0bdda5fb 100644 --- a/google/cloud/vision_v1/proto/text_annotation_pb2.py +++ b/google/cloud/vision_v1/proto/text_annotation_pb2.py @@ -889,8 +889,6 @@ "DESCRIPTOR": _TEXTANNOTATION_DETECTEDLANGUAGE, "__module__": "google.cloud.vision_v1.proto.text_annotation_pb2", "__doc__": """Detected language for a structural component. - - Attributes: language_code: The BCP-47 language code, such as “en-US” or “sr-Latn”. For @@ -909,8 +907,6 @@ "DESCRIPTOR": _TEXTANNOTATION_DETECTEDBREAK, "__module__": "google.cloud.vision_v1.proto.text_annotation_pb2", "__doc__": """Detected start or end of a structural component. - - Attributes: type: Detected break type. @@ -926,10 +922,7 @@ { "DESCRIPTOR": _TEXTANNOTATION_TEXTPROPERTY, "__module__": "google.cloud.vision_v1.proto.text_annotation_pb2", - "__doc__": """Additional information detected on the structural - component. - - + "__doc__": """Additional information detected on the structural component. Attributes: detected_languages: A list of detected languages together with confidence. @@ -941,16 +934,14 @@ ), "DESCRIPTOR": _TEXTANNOTATION, "__module__": "google.cloud.vision_v1.proto.text_annotation_pb2", - "__doc__": """TextAnnotation contains a structured representation of OCR - extracted text. The hierarchy of an OCR extracted text structure is like - this: 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. - - + "__doc__": """TextAnnotation contains a structured representation of OCR extracted + text. The hierarchy of an OCR extracted text structure is like this: + 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. Attributes: pages: List of pages detected by OCR. @@ -972,8 +963,6 @@ "DESCRIPTOR": _PAGE, "__module__": "google.cloud.vision_v1.proto.text_annotation_pb2", "__doc__": """Detected page from OCR. - - Attributes: property: Additional information detected on the page. @@ -1000,8 +989,6 @@ "DESCRIPTOR": _BLOCK, "__module__": "google.cloud.vision_v1.proto.text_annotation_pb2", "__doc__": """Logical element on the page. - - Attributes: property: Additional information detected for the block. @@ -1035,10 +1022,8 @@ { "DESCRIPTOR": _PARAGRAPH, "__module__": "google.cloud.vision_v1.proto.text_annotation_pb2", - "__doc__": """Structural unit of text representing a number of words in - certain order. - - + "__doc__": """Structural unit of text representing a number of words in certain + order. Attributes: property: Additional information detected for the paragraph. @@ -1069,8 +1054,6 @@ "DESCRIPTOR": _WORD, "__module__": "google.cloud.vision_v1.proto.text_annotation_pb2", "__doc__": """A word representation. - - Attributes: property: Additional information detected for the word. @@ -1102,8 +1085,6 @@ "DESCRIPTOR": _SYMBOL, "__module__": "google.cloud.vision_v1.proto.text_annotation_pb2", "__doc__": """A single symbol representation. - - Attributes: property: Additional information detected for the symbol. diff --git a/google/cloud/vision_v1/proto/web_detection_pb2.py b/google/cloud/vision_v1/proto/web_detection_pb2.py index 3ad99512..a971724b 100644 --- a/google/cloud/vision_v1/proto/web_detection_pb2.py +++ b/google/cloud/vision_v1/proto/web_detection_pb2.py @@ -492,8 +492,6 @@ "DESCRIPTOR": _WEBDETECTION_WEBENTITY, "__module__": "google.cloud.vision_v1.proto.web_detection_pb2", "__doc__": """Entity deduced from similar images on the Internet. - - Attributes: entity_id: Opaque entity ID. @@ -513,8 +511,6 @@ "DESCRIPTOR": _WEBDETECTION_WEBIMAGE, "__module__": "google.cloud.vision_v1.proto.web_detection_pb2", "__doc__": """Metadata for online images. - - Attributes: url: The result image URL. @@ -531,8 +527,6 @@ "DESCRIPTOR": _WEBDETECTION_WEBPAGE, "__module__": "google.cloud.vision_v1.proto.web_detection_pb2", "__doc__": """Metadata for web pages. - - Attributes: url: The result web page URL. @@ -559,8 +553,6 @@ "DESCRIPTOR": _WEBDETECTION_WEBLABEL, "__module__": "google.cloud.vision_v1.proto.web_detection_pb2", "__doc__": """Label to provide extra metadata for the web detection. - - Attributes: label: Label for extra metadata. @@ -575,8 +567,6 @@ "DESCRIPTOR": _WEBDETECTION, "__module__": "google.cloud.vision_v1.proto.web_detection_pb2", "__doc__": """Relevant information for the image from the Internet. - - Attributes: web_entities: Deduced entities from similar images on the Internet. diff --git a/google/cloud/vision_v1p1beta1/proto/geometry_pb2.py b/google/cloud/vision_v1p1beta1/proto/geometry_pb2.py index b6ef0904..52db3749 100644 --- a/google/cloud/vision_v1p1beta1/proto/geometry_pb2.py +++ b/google/cloud/vision_v1p1beta1/proto/geometry_pb2.py @@ -204,8 +204,6 @@ "DESCRIPTOR": _VERTEX, "__module__": "google.cloud.vision_v1p1beta1.proto.geometry_pb2", "__doc__": """X coordinate. - - Attributes: y: Y coordinate. @@ -222,8 +220,6 @@ "DESCRIPTOR": _BOUNDINGPOLY, "__module__": "google.cloud.vision_v1p1beta1.proto.geometry_pb2", "__doc__": """A bounding polygon for the detected image annotation. - - Attributes: vertices: The bounding polygon vertices. @@ -239,11 +235,9 @@ { "DESCRIPTOR": _POSITION, "__module__": "google.cloud.vision_v1p1beta1.proto.geometry_pb2", - "__doc__": """A 3D position in the image, used primarily for Face detection landmarks. - A valid Position must have both x and y coordinates. The position - coordinates are in the same scale as the original image. - - + "__doc__": """A 3D position in the image, used primarily for Face detection + landmarks. A valid Position must have both x and y coordinates. The + position coordinates are in the same scale as the original image. Attributes: x: X coordinate. diff --git a/google/cloud/vision_v1p1beta1/proto/image_annotator_pb2.py b/google/cloud/vision_v1p1beta1/proto/image_annotator_pb2.py index e119b5ec..6a88b47a 100644 --- a/google/cloud/vision_v1p1beta1/proto/image_annotator_pb2.py +++ b/google/cloud/vision_v1p1beta1/proto/image_annotator_pb2.py @@ -2347,13 +2347,11 @@ { "DESCRIPTOR": _FEATURE, "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", - "__doc__": """Users describe the type of Google Cloud Vision API tasks - to perform over images by using *Feature*\ s. Each Feature indicates a - type of image detection task to perform. Features encode the Cloud - Vision API vertical to operate on and the number of top-scoring results - to return. - - + "__doc__": """Users describe the type of Google Cloud Vision API tasks to perform + over images by using *Feature*\ s. Each Feature indicates a type of + image detection task to perform. Features encode the Cloud Vision API + vertical to operate on and the number of top-scoring results to + return. Attributes: type: The feature type. @@ -2374,10 +2372,7 @@ { "DESCRIPTOR": _IMAGESOURCE, "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", - "__doc__": """External image source (Google Cloud Storage image - location). - - + "__doc__": """External image source (Google Cloud Storage image location). Attributes: gcs_image_uri: NOTE: For new code ``image_uri`` below is preferred. Google @@ -2409,10 +2404,7 @@ { "DESCRIPTOR": _IMAGE, "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", - "__doc__": """Client image to perform Google Cloud Vision API tasks - over. - - + "__doc__": """Client image to perform Google Cloud Vision API tasks over. Attributes: content: Image content, represented as a stream of bytes. Note: as with @@ -2440,8 +2432,6 @@ "DESCRIPTOR": _FACEANNOTATION_LANDMARK, "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", "__doc__": """A face-specific landmark (for example, a face feature). - - Attributes: type: Face landmark type. @@ -2453,10 +2443,7 @@ ), "DESCRIPTOR": _FACEANNOTATION, "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", - "__doc__": """A face annotation object contains the results of face - detection. - - + "__doc__": """A face annotation object contains the results of face detection. Attributes: bounding_poly: The bounding polygon around the face. The coordinates of the @@ -2520,8 +2507,6 @@ "DESCRIPTOR": _LOCATIONINFO, "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", "__doc__": """Detected entity location information. - - Attributes: lat_lng: lat/long location coordinates. @@ -2537,10 +2522,7 @@ { "DESCRIPTOR": _PROPERTY, "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", - "__doc__": """A ``Property`` consists of a user-supplied name/value - pair. - - + "__doc__": """A ``Property`` consists of a user-supplied name/value pair. Attributes: name: Name of the property. @@ -2561,8 +2543,6 @@ "DESCRIPTOR": _ENTITYANNOTATION, "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", "__doc__": """Set of detected entity features. - - Attributes: mid: Opaque entity ID. Some IDs may be available in `Google @@ -2614,11 +2594,9 @@ { "DESCRIPTOR": _SAFESEARCHANNOTATION, "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", - "__doc__": """Set of features pertaining to the image, computed by - computer vision methods over safe-search verticals (for example, adult, - spoof, medical, violence). - - + "__doc__": """Set of features pertaining to the image, computed by computer vision + methods over safe-search verticals (for example, adult, spoof, + medical, violence). Attributes: adult: Represents the adult content likelihood for the image. Adult @@ -2650,8 +2628,6 @@ "DESCRIPTOR": _LATLONGRECT, "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", "__doc__": """Rectangle determined by min and max ``LatLng`` pairs. - - Attributes: min_lat_lng: Min lat/long pair. @@ -2669,10 +2645,8 @@ { "DESCRIPTOR": _COLORINFO, "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", - "__doc__": """Color information consists of RGB channels, score, and the - fraction of the image that the color occupies in the image. - - + "__doc__": """Color information consists of RGB channels, score, and the fraction of + the image that the color occupies in the image. Attributes: color: RGB components of the color. @@ -2694,8 +2668,6 @@ "DESCRIPTOR": _DOMINANTCOLORSANNOTATION, "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", "__doc__": """Set of dominant colors and their corresponding scores. - - Attributes: colors: RGB color values with their score and pixel fraction. @@ -2712,8 +2684,6 @@ "DESCRIPTOR": _IMAGEPROPERTIES, "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", "__doc__": """Stores image properties, such as dominant colors. - - Attributes: dominant_colors: If present, dominant colors completed successfully. @@ -2729,10 +2699,8 @@ { "DESCRIPTOR": _CROPHINT, "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", - "__doc__": """Single crop hint that is used to generate a new crop when - serving an image. - - + "__doc__": """Single crop hint that is used to generate a new crop when serving an + image. Attributes: bounding_poly: The bounding polygon for the crop region. The coordinates of @@ -2755,10 +2723,8 @@ { "DESCRIPTOR": _CROPHINTSANNOTATION, "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", - "__doc__": """Set of crop hints that are used to generate new crops when - serving images. - - + "__doc__": """Set of crop hints that are used to generate new crops when serving + images. Attributes: crop_hints: Crop hint results. @@ -2775,8 +2741,6 @@ "DESCRIPTOR": _CROPHINTSPARAMS, "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", "__doc__": """Parameters for crop hints annotation request. - - Attributes: aspect_ratios: Aspect ratios in floats, representing the ratio of the width @@ -2798,8 +2762,6 @@ "DESCRIPTOR": _WEBDETECTIONPARAMS, "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", "__doc__": """Parameters for web detection request. - - Attributes: include_geo_results: Whether to include results derived from the geo information in @@ -2817,8 +2779,6 @@ "DESCRIPTOR": _IMAGECONTEXT, "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", "__doc__": """Image context and/or feature-specific parameters. - - Attributes: lat_long_rect: lat/long rectangle that specifies the location of the image. @@ -2849,10 +2809,8 @@ { "DESCRIPTOR": _ANNOTATEIMAGEREQUEST, "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", - "__doc__": """Request for performing Google Cloud Vision API tasks over - a user-provided image, with user-requested features. - - + "__doc__": """Request for performing Google Cloud Vision API tasks over a user- + provided image, with user-requested features. Attributes: image: The image to be processed. @@ -2873,8 +2831,6 @@ "DESCRIPTOR": _ANNOTATEIMAGERESPONSE, "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", "__doc__": """Response to an image annotation request. - - Attributes: face_annotations: If present, face detection has completed successfully. @@ -2914,10 +2870,8 @@ { "DESCRIPTOR": _BATCHANNOTATEIMAGESREQUEST, "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", - "__doc__": """Multiple image annotation requests are batched into a - single service call. - - + "__doc__": """Multiple image annotation requests are batched into a single service + call. Attributes: requests: Required. Individual image annotation requests for this batch. @@ -2934,8 +2888,6 @@ "DESCRIPTOR": _BATCHANNOTATEIMAGESRESPONSE, "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", "__doc__": """Response to a batch image annotation request. - - Attributes: responses: Individual responses to image annotation requests within the diff --git a/google/cloud/vision_v1p1beta1/proto/text_annotation_pb2.py b/google/cloud/vision_v1p1beta1/proto/text_annotation_pb2.py index 812332b3..36a2f499 100644 --- a/google/cloud/vision_v1p1beta1/proto/text_annotation_pb2.py +++ b/google/cloud/vision_v1p1beta1/proto/text_annotation_pb2.py @@ -889,8 +889,6 @@ "DESCRIPTOR": _TEXTANNOTATION_DETECTEDLANGUAGE, "__module__": "google.cloud.vision_v1p1beta1.proto.text_annotation_pb2", "__doc__": """Detected language for a structural component. - - Attributes: language_code: The BCP-47 language code, such as “en-US” or “sr-Latn”. For @@ -909,8 +907,6 @@ "DESCRIPTOR": _TEXTANNOTATION_DETECTEDBREAK, "__module__": "google.cloud.vision_v1p1beta1.proto.text_annotation_pb2", "__doc__": """Detected start or end of a structural component. - - Attributes: type: Detected break type. @@ -926,10 +922,7 @@ { "DESCRIPTOR": _TEXTANNOTATION_TEXTPROPERTY, "__module__": "google.cloud.vision_v1p1beta1.proto.text_annotation_pb2", - "__doc__": """Additional information detected on the structural - component. - - + "__doc__": """Additional information detected on the structural component. Attributes: detected_languages: A list of detected languages together with confidence. @@ -941,16 +934,14 @@ ), "DESCRIPTOR": _TEXTANNOTATION, "__module__": "google.cloud.vision_v1p1beta1.proto.text_annotation_pb2", - "__doc__": """TextAnnotation contains a structured representation of OCR - extracted text. The hierarchy of an OCR extracted text structure is like - this: 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.v1p1beta1.TextAnnotation.TextProperty] - message definition below for more detail. - - + "__doc__": """TextAnnotation contains a structured representation of OCR extracted + text. The hierarchy of an OCR extracted text structure is like this: + 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. + v1p1beta1.TextAnnotation.TextProperty] message definition below for + more detail. Attributes: pages: List of pages detected by OCR. @@ -972,8 +963,6 @@ "DESCRIPTOR": _PAGE, "__module__": "google.cloud.vision_v1p1beta1.proto.text_annotation_pb2", "__doc__": """Detected page from OCR. - - Attributes: property: Additional information detected on the page. @@ -998,8 +987,6 @@ "DESCRIPTOR": _BLOCK, "__module__": "google.cloud.vision_v1p1beta1.proto.text_annotation_pb2", "__doc__": """Logical element on the page. - - Attributes: property: Additional information detected for the block. @@ -1032,10 +1019,8 @@ { "DESCRIPTOR": _PARAGRAPH, "__module__": "google.cloud.vision_v1p1beta1.proto.text_annotation_pb2", - "__doc__": """Structural unit of text representing a number of words in - certain order. - - + "__doc__": """Structural unit of text representing a number of words in certain + order. Attributes: property: Additional information detected for the paragraph. @@ -1066,8 +1051,6 @@ "DESCRIPTOR": _WORD, "__module__": "google.cloud.vision_v1p1beta1.proto.text_annotation_pb2", "__doc__": """A word representation. - - Attributes: property: Additional information detected for the word. @@ -1099,8 +1082,6 @@ "DESCRIPTOR": _SYMBOL, "__module__": "google.cloud.vision_v1p1beta1.proto.text_annotation_pb2", "__doc__": """A single symbol representation. - - Attributes: property: Additional information detected for the symbol. diff --git a/google/cloud/vision_v1p1beta1/proto/web_detection_pb2.py b/google/cloud/vision_v1p1beta1/proto/web_detection_pb2.py index 172e7201..f3087b50 100644 --- a/google/cloud/vision_v1p1beta1/proto/web_detection_pb2.py +++ b/google/cloud/vision_v1p1beta1/proto/web_detection_pb2.py @@ -492,8 +492,6 @@ "DESCRIPTOR": _WEBDETECTION_WEBENTITY, "__module__": "google.cloud.vision_v1p1beta1.proto.web_detection_pb2", "__doc__": """Entity deduced from similar images on the Internet. - - Attributes: entity_id: Opaque entity ID. @@ -513,8 +511,6 @@ "DESCRIPTOR": _WEBDETECTION_WEBIMAGE, "__module__": "google.cloud.vision_v1p1beta1.proto.web_detection_pb2", "__doc__": """Metadata for online images. - - Attributes: url: The result image URL. @@ -531,8 +527,6 @@ "DESCRIPTOR": _WEBDETECTION_WEBPAGE, "__module__": "google.cloud.vision_v1p1beta1.proto.web_detection_pb2", "__doc__": """Metadata for web pages. - - Attributes: url: The result web page URL. @@ -559,8 +553,6 @@ "DESCRIPTOR": _WEBDETECTION_WEBLABEL, "__module__": "google.cloud.vision_v1p1beta1.proto.web_detection_pb2", "__doc__": """Label to provide extra metadata for the web detection. - - Attributes: label: Label for extra metadata. @@ -575,8 +567,6 @@ "DESCRIPTOR": _WEBDETECTION, "__module__": "google.cloud.vision_v1p1beta1.proto.web_detection_pb2", "__doc__": """Relevant information for the image from the Internet. - - Attributes: web_entities: Deduced entities from similar images on the Internet. diff --git a/google/cloud/vision_v1p2beta1/proto/geometry_pb2.py b/google/cloud/vision_v1p2beta1/proto/geometry_pb2.py index 279c42d7..8636a231 100644 --- a/google/cloud/vision_v1p2beta1/proto/geometry_pb2.py +++ b/google/cloud/vision_v1p2beta1/proto/geometry_pb2.py @@ -281,8 +281,6 @@ "DESCRIPTOR": _VERTEX, "__module__": "google.cloud.vision_v1p2beta1.proto.geometry_pb2", "__doc__": """X coordinate. - - Attributes: y: Y coordinate. @@ -299,8 +297,6 @@ "DESCRIPTOR": _NORMALIZEDVERTEX, "__module__": "google.cloud.vision_v1p2beta1.proto.geometry_pb2", "__doc__": """X coordinate. - - Attributes: y: Y coordinate. @@ -317,8 +313,6 @@ "DESCRIPTOR": _BOUNDINGPOLY, "__module__": "google.cloud.vision_v1p2beta1.proto.geometry_pb2", "__doc__": """A bounding polygon for the detected image annotation. - - Attributes: vertices: The bounding polygon vertices. @@ -336,12 +330,9 @@ { "DESCRIPTOR": _POSITION, "__module__": "google.cloud.vision_v1p2beta1.proto.geometry_pb2", - "__doc__": """A 3D position in the image, used primarily for Face - detection landmarks. A valid Position must have both x and y - coordinates. The position coordinates are in the same scale as the - original image. - - + "__doc__": """A 3D position in the image, used primarily for Face detection + landmarks. A valid Position must have both x and y coordinates. The + position coordinates are in the same scale as the original image. Attributes: x: X coordinate. diff --git a/google/cloud/vision_v1p2beta1/proto/image_annotator_pb2.py b/google/cloud/vision_v1p2beta1/proto/image_annotator_pb2.py index f38ac950..16d08ceb 100644 --- a/google/cloud/vision_v1p2beta1/proto/image_annotator_pb2.py +++ b/google/cloud/vision_v1p2beta1/proto/image_annotator_pb2.py @@ -3036,11 +3036,9 @@ { "DESCRIPTOR": _FEATURE, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - "__doc__": """The type of Google Cloud Vision API detection to perform, - and the maximum number of results to return for that type. Multiple + "__doc__": """The type of Google Cloud Vision API detection to perform, and the + maximum number of results to return for that type. Multiple ``Feature`` objects can be specified in the ``features`` list. - - Attributes: type: The feature type. @@ -3063,10 +3061,8 @@ { "DESCRIPTOR": _IMAGESOURCE, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - "__doc__": """External image source (Google Cloud Storage or web URL - image location). - - + "__doc__": """External image source (Google Cloud Storage or web URL image + location). Attributes: gcs_image_uri: \ **Use ``image_uri`` instead.** The Google Cloud Storage URI @@ -3101,10 +3097,7 @@ { "DESCRIPTOR": _IMAGE, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - "__doc__": """Client image to perform Google Cloud Vision API tasks - over. - - + "__doc__": """Client image to perform Google Cloud Vision API tasks over. Attributes: content: Image content, represented as a stream of bytes. Note: As with @@ -3132,8 +3125,6 @@ "DESCRIPTOR": _FACEANNOTATION_LANDMARK, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """A face-specific landmark (for example, a face feature). - - Attributes: type: Face landmark type. @@ -3145,10 +3136,7 @@ ), "DESCRIPTOR": _FACEANNOTATION, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - "__doc__": """A face annotation object contains the results of face - detection. - - + "__doc__": """A face annotation object contains the results of face detection. Attributes: bounding_poly: The bounding polygon around the face. The coordinates of the @@ -3212,8 +3200,6 @@ "DESCRIPTOR": _LOCATIONINFO, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """Detected entity location information. - - Attributes: lat_lng: lat/long location coordinates. @@ -3229,10 +3215,7 @@ { "DESCRIPTOR": _PROPERTY, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - "__doc__": """A ``Property`` consists of a user-supplied name/value - pair. - - + "__doc__": """A ``Property`` consists of a user-supplied name/value pair. Attributes: name: Name of the property. @@ -3253,8 +3236,6 @@ "DESCRIPTOR": _ENTITYANNOTATION, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """Set of detected entity features. - - Attributes: mid: Opaque entity ID. Some IDs may be available in `Google @@ -3307,11 +3288,9 @@ { "DESCRIPTOR": _SAFESEARCHANNOTATION, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - "__doc__": """Set of features pertaining to the image, computed by - computer vision methods over safe-search verticals (for example, adult, - spoof, medical, violence). - - + "__doc__": """Set of features pertaining to the image, computed by computer vision + methods over safe-search verticals (for example, adult, spoof, + medical, violence). Attributes: adult: Represents the adult content likelihood for the image. Adult @@ -3343,8 +3322,6 @@ "DESCRIPTOR": _LATLONGRECT, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """Rectangle determined by min and max ``LatLng`` pairs. - - Attributes: min_lat_lng: Min lat/long pair. @@ -3362,10 +3339,8 @@ { "DESCRIPTOR": _COLORINFO, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - "__doc__": """Color information consists of RGB channels, score, and the - fraction of the image that the color occupies in the image. - - + "__doc__": """Color information consists of RGB channels, score, and the fraction of + the image that the color occupies in the image. Attributes: color: RGB components of the color. @@ -3387,8 +3362,6 @@ "DESCRIPTOR": _DOMINANTCOLORSANNOTATION, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """Set of dominant colors and their corresponding scores. - - Attributes: colors: RGB color values with their score and pixel fraction. @@ -3405,8 +3378,6 @@ "DESCRIPTOR": _IMAGEPROPERTIES, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """Stores image properties, such as dominant colors. - - Attributes: dominant_colors: If present, dominant colors completed successfully. @@ -3422,10 +3393,8 @@ { "DESCRIPTOR": _CROPHINT, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - "__doc__": """Single crop hint that is used to generate a new crop when - serving an image. - - + "__doc__": """Single crop hint that is used to generate a new crop when serving an + image. Attributes: bounding_poly: The bounding polygon for the crop region. The coordinates of @@ -3448,10 +3417,8 @@ { "DESCRIPTOR": _CROPHINTSANNOTATION, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - "__doc__": """Set of crop hints that are used to generate new crops when - serving images. - - + "__doc__": """Set of crop hints that are used to generate new crops when serving + images. Attributes: crop_hints: Crop hint results. @@ -3468,8 +3435,6 @@ "DESCRIPTOR": _CROPHINTSPARAMS, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """Parameters for crop hints annotation request. - - Attributes: aspect_ratios: Aspect ratios in floats, representing the ratio of the width @@ -3491,8 +3456,6 @@ "DESCRIPTOR": _WEBDETECTIONPARAMS, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """Parameters for web detection request. - - Attributes: include_geo_results: Whether to include results derived from the geo information in @@ -3510,8 +3473,6 @@ "DESCRIPTOR": _IMAGECONTEXT, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """Image context and/or feature-specific parameters. - - Attributes: lat_long_rect: Not used. @@ -3542,10 +3503,8 @@ { "DESCRIPTOR": _ANNOTATEIMAGEREQUEST, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - "__doc__": """Request for performing Google Cloud Vision API tasks over - a user-provided image, with user-requested features. - - + "__doc__": """Request for performing Google Cloud Vision API tasks over a user- + provided image, with user-requested features. Attributes: image: The image to be processed. @@ -3565,10 +3524,8 @@ { "DESCRIPTOR": _IMAGEANNOTATIONCONTEXT, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - "__doc__": """If an image was produced from a file (e.g. a PDF), this - message gives information about the source of that image. - - + "__doc__": """If an image was produced from a file (e.g. a PDF), this message gives + information about the source of that image. Attributes: uri: The URI of the file used to produce the image. @@ -3588,8 +3545,6 @@ "DESCRIPTOR": _ANNOTATEIMAGERESPONSE, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """Response to an image annotation request. - - Attributes: face_annotations: If present, face detection has completed successfully. @@ -3632,10 +3587,8 @@ { "DESCRIPTOR": _ANNOTATEFILERESPONSE, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - "__doc__": """Response to a single file annotation request. A file may - contain one or more images, which individually have their own responses. - - + "__doc__": """Response to a single file annotation request. A file may contain one + or more images, which individually have their own responses. Attributes: input_config: Information about the file for which this response is @@ -3654,10 +3607,8 @@ { "DESCRIPTOR": _BATCHANNOTATEIMAGESREQUEST, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - "__doc__": """Multiple image annotation requests are batched into a - single service call. - - + "__doc__": """Multiple image annotation requests are batched into a single service + call. Attributes: requests: Required. Individual image annotation requests for this batch. @@ -3674,8 +3625,6 @@ "DESCRIPTOR": _BATCHANNOTATEIMAGESRESPONSE, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """Response to a batch image annotation request. - - Attributes: responses: Individual responses to image annotation requests within the @@ -3693,8 +3642,6 @@ "DESCRIPTOR": _ASYNCANNOTATEFILEREQUEST, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """An offline file annotation request. - - Attributes: input_config: Required. Information about the input file. @@ -3719,8 +3666,6 @@ "DESCRIPTOR": _ASYNCANNOTATEFILERESPONSE, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """The response for a single offline file annotation request. - - Attributes: output_config: The output location and metadata from @@ -3737,10 +3682,8 @@ { "DESCRIPTOR": _ASYNCBATCHANNOTATEFILESREQUEST, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - "__doc__": """Multiple async file annotation requests are batched into a - single service call. - - + "__doc__": """Multiple async file annotation requests are batched into a single + service call. Attributes: requests: Required. Individual async file annotation requests for this @@ -3758,8 +3701,6 @@ "DESCRIPTOR": _ASYNCBATCHANNOTATEFILESRESPONSE, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """Response to an async batch file annotation request. - - Attributes: responses: The list of file annotation responses, one for each request in @@ -3777,8 +3718,6 @@ "DESCRIPTOR": _INPUTCONFIG, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """The desired input location and metadata. - - Attributes: gcs_source: The Google Cloud Storage location to read the input from. @@ -3798,8 +3737,6 @@ "DESCRIPTOR": _OUTPUTCONFIG, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """The desired output location and metadata. - - Attributes: gcs_destination: The Google Cloud Storage location to write the output(s) to. @@ -3825,10 +3762,7 @@ { "DESCRIPTOR": _GCSSOURCE, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - "__doc__": """The Google Cloud Storage location where the input will be - read from. - - + "__doc__": """The Google Cloud Storage location where the input will be read from. Attributes: uri: Google Cloud Storage URI for the input file. This must only be @@ -3845,10 +3779,7 @@ { "DESCRIPTOR": _GCSDESTINATION, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", - "__doc__": """The Google Cloud Storage location where the output will be - written to. - - + "__doc__": """The Google Cloud Storage location where the output will be written to. Attributes: uri: Google Cloud Storage URI where the results will be stored. @@ -3875,8 +3806,6 @@ "DESCRIPTOR": _OPERATIONMETADATA, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """Contains metadata for the BatchAnnotateImages operation. - - Attributes: state: Current state of the batch operation. diff --git a/google/cloud/vision_v1p2beta1/proto/text_annotation_pb2.py b/google/cloud/vision_v1p2beta1/proto/text_annotation_pb2.py index 443c134f..771b154c 100644 --- a/google/cloud/vision_v1p2beta1/proto/text_annotation_pb2.py +++ b/google/cloud/vision_v1p2beta1/proto/text_annotation_pb2.py @@ -889,8 +889,6 @@ "DESCRIPTOR": _TEXTANNOTATION_DETECTEDLANGUAGE, "__module__": "google.cloud.vision_v1p2beta1.proto.text_annotation_pb2", "__doc__": """Detected language for a structural component. - - Attributes: language_code: The BCP-47 language code, such as “en-US” or “sr-Latn”. For @@ -909,8 +907,6 @@ "DESCRIPTOR": _TEXTANNOTATION_DETECTEDBREAK, "__module__": "google.cloud.vision_v1p2beta1.proto.text_annotation_pb2", "__doc__": """Detected start or end of a structural component. - - Attributes: type: Detected break type. @@ -926,10 +922,7 @@ { "DESCRIPTOR": _TEXTANNOTATION_TEXTPROPERTY, "__module__": "google.cloud.vision_v1p2beta1.proto.text_annotation_pb2", - "__doc__": """Additional information detected on the structural - component. - - + "__doc__": """Additional information detected on the structural component. Attributes: detected_languages: A list of detected languages together with confidence. @@ -941,16 +934,14 @@ ), "DESCRIPTOR": _TEXTANNOTATION, "__module__": "google.cloud.vision_v1p2beta1.proto.text_annotation_pb2", - "__doc__": """TextAnnotation contains a structured representation of OCR - extracted text. The hierarchy of an OCR extracted text structure is like - this: 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.v1p2beta1.TextAnnotation.TextProperty] - message definition below for more detail. - - + "__doc__": """TextAnnotation contains a structured representation of OCR extracted + text. The hierarchy of an OCR extracted text structure is like this: + 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. + v1p2beta1.TextAnnotation.TextProperty] message definition below for + more detail. Attributes: pages: List of pages detected by OCR. @@ -972,8 +963,6 @@ "DESCRIPTOR": _PAGE, "__module__": "google.cloud.vision_v1p2beta1.proto.text_annotation_pb2", "__doc__": """Detected page from OCR. - - Attributes: property: Additional information detected on the page. @@ -1000,8 +989,6 @@ "DESCRIPTOR": _BLOCK, "__module__": "google.cloud.vision_v1p2beta1.proto.text_annotation_pb2", "__doc__": """Logical element on the page. - - Attributes: property: Additional information detected for the block. @@ -1035,10 +1022,8 @@ { "DESCRIPTOR": _PARAGRAPH, "__module__": "google.cloud.vision_v1p2beta1.proto.text_annotation_pb2", - "__doc__": """Structural unit of text representing a number of words in - certain order. - - + "__doc__": """Structural unit of text representing a number of words in certain + order. Attributes: property: Additional information detected for the paragraph. @@ -1069,8 +1054,6 @@ "DESCRIPTOR": _WORD, "__module__": "google.cloud.vision_v1p2beta1.proto.text_annotation_pb2", "__doc__": """A word representation. - - Attributes: property: Additional information detected for the word. @@ -1102,8 +1085,6 @@ "DESCRIPTOR": _SYMBOL, "__module__": "google.cloud.vision_v1p2beta1.proto.text_annotation_pb2", "__doc__": """A single symbol representation. - - Attributes: property: Additional information detected for the symbol. diff --git a/google/cloud/vision_v1p2beta1/proto/web_detection_pb2.py b/google/cloud/vision_v1p2beta1/proto/web_detection_pb2.py index c63958bc..eb7aeac2 100644 --- a/google/cloud/vision_v1p2beta1/proto/web_detection_pb2.py +++ b/google/cloud/vision_v1p2beta1/proto/web_detection_pb2.py @@ -492,8 +492,6 @@ "DESCRIPTOR": _WEBDETECTION_WEBENTITY, "__module__": "google.cloud.vision_v1p2beta1.proto.web_detection_pb2", "__doc__": """Entity deduced from similar images on the Internet. - - Attributes: entity_id: Opaque entity ID. @@ -513,8 +511,6 @@ "DESCRIPTOR": _WEBDETECTION_WEBIMAGE, "__module__": "google.cloud.vision_v1p2beta1.proto.web_detection_pb2", "__doc__": """Metadata for online images. - - Attributes: url: The result image URL. @@ -531,8 +527,6 @@ "DESCRIPTOR": _WEBDETECTION_WEBPAGE, "__module__": "google.cloud.vision_v1p2beta1.proto.web_detection_pb2", "__doc__": """Metadata for web pages. - - Attributes: url: The result web page URL. @@ -559,8 +553,6 @@ "DESCRIPTOR": _WEBDETECTION_WEBLABEL, "__module__": "google.cloud.vision_v1p2beta1.proto.web_detection_pb2", "__doc__": """Label to provide extra metadata for the web detection. - - Attributes: label: Label for extra metadata. @@ -575,8 +567,6 @@ "DESCRIPTOR": _WEBDETECTION, "__module__": "google.cloud.vision_v1p2beta1.proto.web_detection_pb2", "__doc__": """Relevant information for the image from the Internet. - - Attributes: web_entities: Deduced entities from similar images on the Internet. diff --git a/google/cloud/vision_v1p3beta1/proto/geometry_pb2.py b/google/cloud/vision_v1p3beta1/proto/geometry_pb2.py index dd583fc1..e55cd247 100644 --- a/google/cloud/vision_v1p3beta1/proto/geometry_pb2.py +++ b/google/cloud/vision_v1p3beta1/proto/geometry_pb2.py @@ -326,8 +326,6 @@ "DESCRIPTOR": _VERTEX, "__module__": "google.cloud.vision_v1p3beta1.proto.geometry_pb2", "__doc__": """X coordinate. - - Attributes: y: Y coordinate. @@ -344,8 +342,6 @@ "DESCRIPTOR": _NORMALIZEDVERTEX, "__module__": "google.cloud.vision_v1p3beta1.proto.geometry_pb2", "__doc__": """X coordinate. - - Attributes: y: Y coordinate. @@ -362,8 +358,6 @@ "DESCRIPTOR": _BOUNDINGPOLY, "__module__": "google.cloud.vision_v1p3beta1.proto.geometry_pb2", "__doc__": """A bounding polygon for the detected image annotation. - - Attributes: vertices: The bounding polygon vertices. @@ -381,10 +375,7 @@ { "DESCRIPTOR": _NORMALIZEDBOUNDINGPOLY, "__module__": "google.cloud.vision_v1p3beta1.proto.geometry_pb2", - "__doc__": """A normalized bounding polygon around a portion of an - image. - - + "__doc__": """A normalized bounding polygon around a portion of an image. Attributes: vertices: Normalized vertices of the bounding polygon. @@ -400,12 +391,9 @@ { "DESCRIPTOR": _POSITION, "__module__": "google.cloud.vision_v1p3beta1.proto.geometry_pb2", - "__doc__": """A 3D position in the image, used primarily for Face - detection landmarks. A valid Position must have both x and y - coordinates. The position coordinates are in the same scale as the - original image. - - + "__doc__": """A 3D position in the image, used primarily for Face detection + landmarks. A valid Position must have both x and y coordinates. The + position coordinates are in the same scale as the original image. Attributes: x: X coordinate. diff --git a/google/cloud/vision_v1p3beta1/proto/image_annotator_pb2.py b/google/cloud/vision_v1p3beta1/proto/image_annotator_pb2.py index 61933942..66ae099f 100644 --- a/google/cloud/vision_v1p3beta1/proto/image_annotator_pb2.py +++ b/google/cloud/vision_v1p3beta1/proto/image_annotator_pb2.py @@ -3240,11 +3240,9 @@ { "DESCRIPTOR": _FEATURE, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - "__doc__": """The type of Google Cloud Vision API detection to perform, - and the maximum number of results to return for that type. Multiple + "__doc__": """The type of Google Cloud Vision API detection to perform, and the + maximum number of results to return for that type. Multiple ``Feature`` objects can be specified in the ``features`` list. - - Attributes: type: The feature type. @@ -3267,10 +3265,8 @@ { "DESCRIPTOR": _IMAGESOURCE, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - "__doc__": """External image source (Google Cloud Storage or web URL - image location). - - + "__doc__": """External image source (Google Cloud Storage or web URL image + location). Attributes: gcs_image_uri: \ **Use ``image_uri`` instead.** The Google Cloud Storage URI @@ -3305,10 +3301,7 @@ { "DESCRIPTOR": _IMAGE, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - "__doc__": """Client image to perform Google Cloud Vision API tasks - over. - - + "__doc__": """Client image to perform Google Cloud Vision API tasks over. Attributes: content: Image content, represented as a stream of bytes. Note: As with @@ -3336,8 +3329,6 @@ "DESCRIPTOR": _FACEANNOTATION_LANDMARK, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """A face-specific landmark (for example, a face feature). - - Attributes: type: Face landmark type. @@ -3349,10 +3340,7 @@ ), "DESCRIPTOR": _FACEANNOTATION, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - "__doc__": """A face annotation object contains the results of face - detection. - - + "__doc__": """A face annotation object contains the results of face detection. Attributes: bounding_poly: The bounding polygon around the face. The coordinates of the @@ -3416,8 +3404,6 @@ "DESCRIPTOR": _LOCATIONINFO, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """Detected entity location information. - - Attributes: lat_lng: lat/long location coordinates. @@ -3433,10 +3419,7 @@ { "DESCRIPTOR": _PROPERTY, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - "__doc__": """A ``Property`` consists of a user-supplied name/value - pair. - - + "__doc__": """A ``Property`` consists of a user-supplied name/value pair. Attributes: name: Name of the property. @@ -3457,8 +3440,6 @@ "DESCRIPTOR": _ENTITYANNOTATION, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """Set of detected entity features. - - Attributes: mid: Opaque entity ID. Some IDs may be available in `Google @@ -3512,8 +3493,6 @@ "DESCRIPTOR": _LOCALIZEDOBJECTANNOTATION, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """Set of detected objects with bounding boxes. - - Attributes: mid: Object ID that should align with EntityAnnotation mid. @@ -3540,11 +3519,9 @@ { "DESCRIPTOR": _SAFESEARCHANNOTATION, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - "__doc__": """Set of features pertaining to the image, computed by - computer vision methods over safe-search verticals (for example, adult, - spoof, medical, violence). - - + "__doc__": """Set of features pertaining to the image, computed by computer vision + methods over safe-search verticals (for example, adult, spoof, + medical, violence). Attributes: adult: Represents the adult content likelihood for the image. Adult @@ -3576,8 +3553,6 @@ "DESCRIPTOR": _LATLONGRECT, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """Rectangle determined by min and max ``LatLng`` pairs. - - Attributes: min_lat_lng: Min lat/long pair. @@ -3595,10 +3570,8 @@ { "DESCRIPTOR": _COLORINFO, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - "__doc__": """Color information consists of RGB channels, score, and the - fraction of the image that the color occupies in the image. - - + "__doc__": """Color information consists of RGB channels, score, and the fraction of + the image that the color occupies in the image. Attributes: color: RGB components of the color. @@ -3620,8 +3593,6 @@ "DESCRIPTOR": _DOMINANTCOLORSANNOTATION, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """Set of dominant colors and their corresponding scores. - - Attributes: colors: RGB color values with their score and pixel fraction. @@ -3638,8 +3609,6 @@ "DESCRIPTOR": _IMAGEPROPERTIES, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """Stores image properties, such as dominant colors. - - Attributes: dominant_colors: If present, dominant colors completed successfully. @@ -3655,10 +3624,8 @@ { "DESCRIPTOR": _CROPHINT, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - "__doc__": """Single crop hint that is used to generate a new crop when - serving an image. - - + "__doc__": """Single crop hint that is used to generate a new crop when serving an + image. Attributes: bounding_poly: The bounding polygon for the crop region. The coordinates of @@ -3681,10 +3648,8 @@ { "DESCRIPTOR": _CROPHINTSANNOTATION, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - "__doc__": """Set of crop hints that are used to generate new crops when - serving images. - - + "__doc__": """Set of crop hints that are used to generate new crops when serving + images. Attributes: crop_hints: Crop hint results. @@ -3701,8 +3666,6 @@ "DESCRIPTOR": _CROPHINTSPARAMS, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """Parameters for crop hints annotation request. - - Attributes: aspect_ratios: Aspect ratios in floats, representing the ratio of the width @@ -3724,8 +3687,6 @@ "DESCRIPTOR": _WEBDETECTIONPARAMS, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """Parameters for web detection request. - - Attributes: include_geo_results: Whether to include results derived from the geo information in @@ -3743,8 +3704,6 @@ "DESCRIPTOR": _IMAGECONTEXT, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """Image context and/or feature-specific parameters. - - Attributes: lat_long_rect: Not used. @@ -3777,10 +3736,8 @@ { "DESCRIPTOR": _ANNOTATEIMAGEREQUEST, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - "__doc__": """Request for performing Google Cloud Vision API tasks over - a user-provided image, with user-requested features. - - + "__doc__": """Request for performing Google Cloud Vision API tasks over a user- + provided image, with user-requested features. Attributes: image: The image to be processed. @@ -3800,10 +3757,8 @@ { "DESCRIPTOR": _IMAGEANNOTATIONCONTEXT, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - "__doc__": """If an image was produced from a file (e.g. a PDF), this - message gives information about the source of that image. - - + "__doc__": """If an image was produced from a file (e.g. a PDF), this message gives + information about the source of that image. Attributes: uri: The URI of the file used to produce the image. @@ -3823,8 +3778,6 @@ "DESCRIPTOR": _ANNOTATEIMAGERESPONSE, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """Response to an image annotation request. - - Attributes: face_annotations: If present, face detection has completed successfully. @@ -3873,10 +3826,8 @@ { "DESCRIPTOR": _ANNOTATEFILERESPONSE, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - "__doc__": """Response to a single file annotation request. A file may - contain one or more images, which individually have their own responses. - - + "__doc__": """Response to a single file annotation request. A file may contain one + or more images, which individually have their own responses. Attributes: input_config: Information about the file for which this response is @@ -3895,10 +3846,8 @@ { "DESCRIPTOR": _BATCHANNOTATEIMAGESREQUEST, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - "__doc__": """Multiple image annotation requests are batched into a - single service call. - - + "__doc__": """Multiple image annotation requests are batched into a single service + call. Attributes: requests: Individual image annotation requests for this batch. @@ -3915,8 +3864,6 @@ "DESCRIPTOR": _BATCHANNOTATEIMAGESRESPONSE, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """Response to a batch image annotation request. - - Attributes: responses: Individual responses to image annotation requests within the @@ -3934,8 +3881,6 @@ "DESCRIPTOR": _ASYNCANNOTATEFILEREQUEST, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """An offline file annotation request. - - Attributes: input_config: Required. Information about the input file. @@ -3960,8 +3905,6 @@ "DESCRIPTOR": _ASYNCANNOTATEFILERESPONSE, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """The response for a single offline file annotation request. - - Attributes: output_config: The output location and metadata from @@ -3978,10 +3921,8 @@ { "DESCRIPTOR": _ASYNCBATCHANNOTATEFILESREQUEST, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - "__doc__": """Multiple async file annotation requests are batched into a - single service call. - - + "__doc__": """Multiple async file annotation requests are batched into a single + service call. Attributes: requests: Required. Individual async file annotation requests for this @@ -3999,8 +3940,6 @@ "DESCRIPTOR": _ASYNCBATCHANNOTATEFILESRESPONSE, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """Response to an async batch file annotation request. - - Attributes: responses: The list of file annotation responses, one for each request in @@ -4018,8 +3957,6 @@ "DESCRIPTOR": _INPUTCONFIG, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """The desired input location and metadata. - - Attributes: gcs_source: The Google Cloud Storage location to read the input from. @@ -4039,8 +3976,6 @@ "DESCRIPTOR": _OUTPUTCONFIG, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """The desired output location and metadata. - - Attributes: gcs_destination: The Google Cloud Storage location to write the output(s) to. @@ -4066,10 +4001,7 @@ { "DESCRIPTOR": _GCSSOURCE, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - "__doc__": """The Google Cloud Storage location where the input will be - read from. - - + "__doc__": """The Google Cloud Storage location where the input will be read from. Attributes: uri: Google Cloud Storage URI for the input file. This must only be @@ -4087,10 +4019,7 @@ { "DESCRIPTOR": _GCSDESTINATION, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", - "__doc__": """The Google Cloud Storage location where the output will be - written to. - - + "__doc__": """The Google Cloud Storage location where the output will be written to. Attributes: uri: Google Cloud Storage URI where the results will be stored. @@ -4117,8 +4046,6 @@ "DESCRIPTOR": _OPERATIONMETADATA, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """Contains metadata for the BatchAnnotateImages operation. - - Attributes: state: Current state of the batch operation. diff --git a/google/cloud/vision_v1p3beta1/proto/product_search_pb2.py b/google/cloud/vision_v1p3beta1/proto/product_search_pb2.py index b8bebcf2..83802b79 100644 --- a/google/cloud/vision_v1p3beta1/proto/product_search_pb2.py +++ b/google/cloud/vision_v1p3beta1/proto/product_search_pb2.py @@ -578,8 +578,6 @@ "DESCRIPTOR": _PRODUCTSEARCHPARAMS, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_pb2", "__doc__": """Parameters for a product search request. - - Attributes: catalog_name: The resource name of the catalog to search. Format is: @@ -637,8 +635,6 @@ "DESCRIPTOR": _PRODUCTSEARCHRESULTS_PRODUCTINFO, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_pb2", "__doc__": """Information about a product. - - Attributes: product_id: Product ID. @@ -661,8 +657,6 @@ "DESCRIPTOR": _PRODUCTSEARCHRESULTS_RESULT, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_pb2", "__doc__": """Information about a product. - - Attributes: product: The Product. @@ -680,8 +674,6 @@ "DESCRIPTOR": _PRODUCTSEARCHRESULTS, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_pb2", "__doc__": """Results for a product search request. - - Attributes: category: Product category. [Deprecated] Use ``product_category``. diff --git a/google/cloud/vision_v1p3beta1/proto/product_search_service_pb2.py b/google/cloud/vision_v1p3beta1/proto/product_search_service_pb2.py index 73267b65..89cbb74a 100644 --- a/google/cloud/vision_v1p3beta1/proto/product_search_service_pb2.py +++ b/google/cloud/vision_v1p3beta1/proto/product_search_service_pb2.py @@ -2049,8 +2049,6 @@ "DESCRIPTOR": _PRODUCT_KEYVALUE, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """A product label represented as a key-value pair. - - Attributes: key: The key of the label attached to the product. Cannot be empty @@ -2065,8 +2063,6 @@ "DESCRIPTOR": _PRODUCT, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """A Product contains ReferenceImages. - - Attributes: name: The resource name of the product. Format is: @@ -2105,11 +2101,9 @@ { "DESCRIPTOR": _PRODUCTSET, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", - "__doc__": """A ProductSet contains Products. A ProductSet can contain a - maximum of 1 million reference images. If the limit is exceeded, - periodic indexing will fail. - - + "__doc__": """A ProductSet contains Products. A ProductSet can contain a maximum of + 1 million reference images. If the limit is exceeded, periodic + indexing will fail. Attributes: name: The resource name of the ProductSet. Format is: ``projects/PR @@ -2139,10 +2133,8 @@ { "DESCRIPTOR": _REFERENCEIMAGE, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", - "__doc__": """A ``ReferenceImage`` represents a product image and its - associated metadata, such as bounding boxes. - - + "__doc__": """A ``ReferenceImage`` represents a product image and its associated + metadata, such as bounding boxes. Attributes: name: The resource name of the reference image. Format is: ``proje @@ -2173,8 +2165,6 @@ "DESCRIPTOR": _CREATEPRODUCTREQUEST, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``CreateProduct`` method. - - Attributes: parent: Required. The project in which the Product should be created. @@ -2200,8 +2190,6 @@ "DESCRIPTOR": _LISTPRODUCTSREQUEST, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``ListProducts`` method. - - Attributes: parent: Required. The project OR ProductSet from which Products should @@ -2225,8 +2213,6 @@ "DESCRIPTOR": _LISTPRODUCTSRESPONSE, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """Response message for the ``ListProducts`` method. - - Attributes: products: List of products. @@ -2246,8 +2232,6 @@ "DESCRIPTOR": _GETPRODUCTREQUEST, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``GetProduct`` method. - - Attributes: name: Required. Resource name of the Product to get. Format is: @@ -2265,8 +2249,6 @@ "DESCRIPTOR": _UPDATEPRODUCTREQUEST, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``UpdateProduct`` method. - - Attributes: product: Required. The Product resource which replaces the one on the @@ -2289,8 +2271,6 @@ "DESCRIPTOR": _DELETEPRODUCTREQUEST, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``DeleteProduct`` method. - - Attributes: name: Required. Resource name of product to delete. Format is: @@ -2308,8 +2288,6 @@ "DESCRIPTOR": _CREATEPRODUCTSETREQUEST, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``CreateProductSet`` method. - - Attributes: parent: Required. The project in which the ProductSet should be @@ -2335,8 +2313,6 @@ "DESCRIPTOR": _LISTPRODUCTSETSREQUEST, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``ListProductSets`` method. - - Attributes: parent: Required. The project from which ProductSets should be listed. @@ -2360,8 +2336,6 @@ "DESCRIPTOR": _LISTPRODUCTSETSRESPONSE, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """Response message for the ``ListProductSets`` method. - - Attributes: product_sets: List of ProductSets. @@ -2381,8 +2355,6 @@ "DESCRIPTOR": _GETPRODUCTSETREQUEST, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``GetProductSet`` method. - - Attributes: name: Required. Resource name of the ProductSet to get. Format is: @@ -2401,8 +2373,6 @@ "DESCRIPTOR": _UPDATEPRODUCTSETREQUEST, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``UpdateProductSet`` method. - - Attributes: product_set: Required. The ProductSet resource which replaces the one on @@ -2425,8 +2395,6 @@ "DESCRIPTOR": _DELETEPRODUCTSETREQUEST, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``DeleteProductSet`` method. - - Attributes: name: Required. Resource name of the ProductSet to delete. Format @@ -2445,8 +2413,6 @@ "DESCRIPTOR": _CREATEREFERENCEIMAGEREQUEST, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``CreateReferenceImage`` method. - - Attributes: parent: Required. Resource name of the product in which to create the @@ -2474,8 +2440,6 @@ "DESCRIPTOR": _LISTREFERENCEIMAGESREQUEST, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``ListReferenceImages`` method. - - Attributes: parent: Required. Resource name of the product containing the @@ -2502,8 +2466,6 @@ "DESCRIPTOR": _LISTREFERENCEIMAGESRESPONSE, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """Response message for the ``ListReferenceImages`` method. - - Attributes: reference_images: The list of reference images. @@ -2526,8 +2488,6 @@ "DESCRIPTOR": _GETREFERENCEIMAGEREQUEST, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``GetReferenceImage`` method. - - Attributes: name: Required. The resource name of the ReferenceImage to get. @@ -2546,8 +2506,6 @@ "DESCRIPTOR": _DELETEREFERENCEIMAGEREQUEST, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``DeleteReferenceImage`` method. - - Attributes: name: Required. The resource name of the reference image to delete. @@ -2566,8 +2524,6 @@ "DESCRIPTOR": _ADDPRODUCTTOPRODUCTSETREQUEST, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``AddProductToProductSet`` method. - - Attributes: name: Required. The resource name for the ProductSet to modify. @@ -2589,10 +2545,7 @@ { "DESCRIPTOR": _REMOVEPRODUCTFROMPRODUCTSETREQUEST, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", - "__doc__": """Request message for the ``RemoveProductFromProductSet`` - method. - - + "__doc__": """Request message for the ``RemoveProductFromProductSet`` method. Attributes: name: Required. The resource name for the ProductSet to modify. @@ -2614,10 +2567,7 @@ { "DESCRIPTOR": _LISTPRODUCTSINPRODUCTSETREQUEST, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", - "__doc__": """Request message for the ``ListProductsInProductSet`` - method. - - + "__doc__": """Request message for the ``ListProductsInProductSet`` method. Attributes: name: Required. The ProductSet resource for which to retrieve @@ -2641,10 +2591,7 @@ { "DESCRIPTOR": _LISTPRODUCTSINPRODUCTSETRESPONSE, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", - "__doc__": """Response message for the ``ListProductsInProductSet`` - method. - - + "__doc__": """Response message for the ``ListProductsInProductSet`` method. Attributes: products: The list of Products. @@ -2663,10 +2610,8 @@ { "DESCRIPTOR": _IMPORTPRODUCTSETSGCSSOURCE, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", - "__doc__": """The Google Cloud Storage location for a csv file which - preserves a list of ImportProductSetRequests in each line. - - + "__doc__": """The Google Cloud Storage location for a csv file which preserves a + list of ImportProductSetRequests in each line. Attributes: csv_file_uri: The Google Cloud Storage URI of the input csv file. The URI @@ -2721,8 +2666,6 @@ "DESCRIPTOR": _IMPORTPRODUCTSETSINPUTCONFIG, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """The input content for the ``ImportProductSets`` method. - - Attributes: source: The source of the input. @@ -2742,8 +2685,6 @@ "DESCRIPTOR": _IMPORTPRODUCTSETSREQUEST, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``ImportProductSets`` method. - - Attributes: parent: Required. The project in which the ProductSets should be @@ -2762,15 +2703,11 @@ { "DESCRIPTOR": _IMPORTPRODUCTSETSRESPONSE, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", - "__doc__": """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] + "__doc__": """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.l + ongrunning.Operation.response][google.longrunning.Operation.response] field. - - Attributes: reference_images: The list of reference_images that are imported successfully. @@ -2792,14 +2729,10 @@ { "DESCRIPTOR": _BATCHOPERATIONMETADATA, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", - "__doc__": """Metadata for the batch operations such as the current - state. - - This is included in the ``metadata`` field of the ``Operation`` returned - by the ``GetOperation`` call of the ``google::longrunning::Operations`` + "__doc__": """Metadata for the batch operations such as the current state. This is + included in the ``metadata`` field of the ``Operation`` returned by + the ``GetOperation`` call of the ``google::longrunning::Operations`` service. - - Attributes: state: The current state of the batch operation. diff --git a/google/cloud/vision_v1p3beta1/proto/text_annotation_pb2.py b/google/cloud/vision_v1p3beta1/proto/text_annotation_pb2.py index 497cd653..75f0acb4 100644 --- a/google/cloud/vision_v1p3beta1/proto/text_annotation_pb2.py +++ b/google/cloud/vision_v1p3beta1/proto/text_annotation_pb2.py @@ -889,8 +889,6 @@ "DESCRIPTOR": _TEXTANNOTATION_DETECTEDLANGUAGE, "__module__": "google.cloud.vision_v1p3beta1.proto.text_annotation_pb2", "__doc__": """Detected language for a structural component. - - Attributes: language_code: The BCP-47 language code, such as “en-US” or “sr-Latn”. For @@ -909,8 +907,6 @@ "DESCRIPTOR": _TEXTANNOTATION_DETECTEDBREAK, "__module__": "google.cloud.vision_v1p3beta1.proto.text_annotation_pb2", "__doc__": """Detected start or end of a structural component. - - Attributes: type: Detected break type. @@ -926,10 +922,7 @@ { "DESCRIPTOR": _TEXTANNOTATION_TEXTPROPERTY, "__module__": "google.cloud.vision_v1p3beta1.proto.text_annotation_pb2", - "__doc__": """Additional information detected on the structural - component. - - + "__doc__": """Additional information detected on the structural component. Attributes: detected_languages: A list of detected languages together with confidence. @@ -941,16 +934,14 @@ ), "DESCRIPTOR": _TEXTANNOTATION, "__module__": "google.cloud.vision_v1p3beta1.proto.text_annotation_pb2", - "__doc__": """TextAnnotation contains a structured representation of OCR - extracted text. The hierarchy of an OCR extracted text structure is like - this: 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.v1p3beta1.TextAnnotation.TextProperty] - message definition below for more detail. - - + "__doc__": """TextAnnotation contains a structured representation of OCR extracted + text. The hierarchy of an OCR extracted text structure is like this: + 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. + v1p3beta1.TextAnnotation.TextProperty] message definition below for + more detail. Attributes: pages: List of pages detected by OCR. @@ -972,8 +963,6 @@ "DESCRIPTOR": _PAGE, "__module__": "google.cloud.vision_v1p3beta1.proto.text_annotation_pb2", "__doc__": """Detected page from OCR. - - Attributes: property: Additional information detected on the page. @@ -1000,8 +989,6 @@ "DESCRIPTOR": _BLOCK, "__module__": "google.cloud.vision_v1p3beta1.proto.text_annotation_pb2", "__doc__": """Logical element on the page. - - Attributes: property: Additional information detected for the block. @@ -1035,10 +1022,8 @@ { "DESCRIPTOR": _PARAGRAPH, "__module__": "google.cloud.vision_v1p3beta1.proto.text_annotation_pb2", - "__doc__": """Structural unit of text representing a number of words in - certain order. - - + "__doc__": """Structural unit of text representing a number of words in certain + order. Attributes: property: Additional information detected for the paragraph. @@ -1069,8 +1054,6 @@ "DESCRIPTOR": _WORD, "__module__": "google.cloud.vision_v1p3beta1.proto.text_annotation_pb2", "__doc__": """A word representation. - - Attributes: property: Additional information detected for the word. @@ -1102,8 +1085,6 @@ "DESCRIPTOR": _SYMBOL, "__module__": "google.cloud.vision_v1p3beta1.proto.text_annotation_pb2", "__doc__": """A single symbol representation. - - Attributes: property: Additional information detected for the symbol. diff --git a/google/cloud/vision_v1p3beta1/proto/web_detection_pb2.py b/google/cloud/vision_v1p3beta1/proto/web_detection_pb2.py index b082e5b5..87ec653e 100644 --- a/google/cloud/vision_v1p3beta1/proto/web_detection_pb2.py +++ b/google/cloud/vision_v1p3beta1/proto/web_detection_pb2.py @@ -492,8 +492,6 @@ "DESCRIPTOR": _WEBDETECTION_WEBENTITY, "__module__": "google.cloud.vision_v1p3beta1.proto.web_detection_pb2", "__doc__": """Entity deduced from similar images on the Internet. - - Attributes: entity_id: Opaque entity ID. @@ -513,8 +511,6 @@ "DESCRIPTOR": _WEBDETECTION_WEBIMAGE, "__module__": "google.cloud.vision_v1p3beta1.proto.web_detection_pb2", "__doc__": """Metadata for online images. - - Attributes: url: The result image URL. @@ -531,8 +527,6 @@ "DESCRIPTOR": _WEBDETECTION_WEBPAGE, "__module__": "google.cloud.vision_v1p3beta1.proto.web_detection_pb2", "__doc__": """Metadata for web pages. - - Attributes: url: The result web page URL. @@ -559,8 +553,6 @@ "DESCRIPTOR": _WEBDETECTION_WEBLABEL, "__module__": "google.cloud.vision_v1p3beta1.proto.web_detection_pb2", "__doc__": """Label to provide extra metadata for the web detection. - - Attributes: label: Label for extra metadata. @@ -575,8 +567,6 @@ "DESCRIPTOR": _WEBDETECTION, "__module__": "google.cloud.vision_v1p3beta1.proto.web_detection_pb2", "__doc__": """Relevant information for the image from the Internet. - - Attributes: web_entities: Deduced entities from similar images on the Internet. diff --git a/google/cloud/vision_v1p4beta1/proto/face_pb2.py b/google/cloud/vision_v1p4beta1/proto/face_pb2.py index fdb49b71..de73bf1b 100644 --- a/google/cloud/vision_v1p4beta1/proto/face_pb2.py +++ b/google/cloud/vision_v1p4beta1/proto/face_pb2.py @@ -214,8 +214,6 @@ "DESCRIPTOR": _FACERECOGNITIONPARAMS, "__module__": "google.cloud.vision_v1p4beta1.proto.face_pb2", "__doc__": """Parameters for a celebrity recognition request. - - Attributes: celebrity_set: The resource names for one or more @@ -237,8 +235,6 @@ "DESCRIPTOR": _CELEBRITY, "__module__": "google.cloud.vision_v1p4beta1.proto.face_pb2", "__doc__": """A Celebrity is a group of Faces with an identity. - - Attributes: name: The resource name of the preloaded Celebrity. Has the format @@ -260,8 +256,6 @@ "DESCRIPTOR": _FACERECOGNITIONRESULT, "__module__": "google.cloud.vision_v1p4beta1.proto.face_pb2", "__doc__": """Information about a face’s identity. - - Attributes: celebrity: The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that diff --git a/google/cloud/vision_v1p4beta1/proto/geometry_pb2.py b/google/cloud/vision_v1p4beta1/proto/geometry_pb2.py index 94d25a93..ec1b46fc 100644 --- a/google/cloud/vision_v1p4beta1/proto/geometry_pb2.py +++ b/google/cloud/vision_v1p4beta1/proto/geometry_pb2.py @@ -285,8 +285,6 @@ "DESCRIPTOR": _VERTEX, "__module__": "google.cloud.vision_v1p4beta1.proto.geometry_pb2", "__doc__": """X coordinate. - - Attributes: y: Y coordinate. @@ -303,8 +301,6 @@ "DESCRIPTOR": _NORMALIZEDVERTEX, "__module__": "google.cloud.vision_v1p4beta1.proto.geometry_pb2", "__doc__": """X coordinate. - - Attributes: y: Y coordinate. @@ -321,8 +317,6 @@ "DESCRIPTOR": _BOUNDINGPOLY, "__module__": "google.cloud.vision_v1p4beta1.proto.geometry_pb2", "__doc__": """A bounding polygon for the detected image annotation. - - Attributes: vertices: The bounding polygon vertices. @@ -340,12 +334,9 @@ { "DESCRIPTOR": _POSITION, "__module__": "google.cloud.vision_v1p4beta1.proto.geometry_pb2", - "__doc__": """A 3D position in the image, used primarily for Face - detection landmarks. A valid Position must have both x and y - coordinates. The position coordinates are in the same scale as the - original image. - - + "__doc__": """A 3D position in the image, used primarily for Face detection + landmarks. A valid Position must have both x and y coordinates. The + position coordinates are in the same scale as the original image. Attributes: x: X coordinate. diff --git a/google/cloud/vision_v1p4beta1/proto/image_annotator_pb2.py b/google/cloud/vision_v1p4beta1/proto/image_annotator_pb2.py index 14ee6367..dec70114 100644 --- a/google/cloud/vision_v1p4beta1/proto/image_annotator_pb2.py +++ b/google/cloud/vision_v1p4beta1/proto/image_annotator_pb2.py @@ -3647,11 +3647,9 @@ { "DESCRIPTOR": _FEATURE, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - "__doc__": """The type of Google Cloud Vision API detection to perform, - and the maximum number of results to return for that type. Multiple + "__doc__": """The type of Google Cloud Vision API detection to perform, and the + maximum number of results to return for that type. Multiple ``Feature`` objects can be specified in the ``features`` list. - - Attributes: type: The feature type. @@ -3674,10 +3672,8 @@ { "DESCRIPTOR": _IMAGESOURCE, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - "__doc__": """External image source (Google Cloud Storage or web URL - image location). - - + "__doc__": """External image source (Google Cloud Storage or web URL image + location). Attributes: gcs_image_uri: \ **Use ``image_uri`` instead.** The Google Cloud Storage URI @@ -3712,10 +3708,7 @@ { "DESCRIPTOR": _IMAGE, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - "__doc__": """Client image to perform Google Cloud Vision API tasks - over. - - + "__doc__": """Client image to perform Google Cloud Vision API tasks over. Attributes: content: Image content, represented as a stream of bytes. Note: As with @@ -3743,8 +3736,6 @@ "DESCRIPTOR": _FACEANNOTATION_LANDMARK, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """A face-specific landmark (for example, a face feature). - - Attributes: type: Face landmark type. @@ -3756,10 +3747,7 @@ ), "DESCRIPTOR": _FACEANNOTATION, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - "__doc__": """A face annotation object contains the results of face - detection. - - + "__doc__": """A face annotation object contains the results of face detection. Attributes: bounding_poly: The bounding polygon around the face. The coordinates of the @@ -3830,8 +3818,6 @@ "DESCRIPTOR": _LOCATIONINFO, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """Detected entity location information. - - Attributes: lat_lng: lat/long location coordinates. @@ -3847,10 +3833,7 @@ { "DESCRIPTOR": _PROPERTY, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - "__doc__": """A ``Property`` consists of a user-supplied name/value - pair. - - + "__doc__": """A ``Property`` consists of a user-supplied name/value pair. Attributes: name: Name of the property. @@ -3871,8 +3854,6 @@ "DESCRIPTOR": _ENTITYANNOTATION, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """Set of detected entity features. - - Attributes: mid: Opaque entity ID. Some IDs may be available in `Google @@ -3926,8 +3907,6 @@ "DESCRIPTOR": _LOCALIZEDOBJECTANNOTATION, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """Set of detected objects with bounding boxes. - - Attributes: mid: Object ID that should align with EntityAnnotation mid. @@ -3954,11 +3933,9 @@ { "DESCRIPTOR": _SAFESEARCHANNOTATION, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - "__doc__": """Set of features pertaining to the image, computed by - computer vision methods over safe-search verticals (for example, adult, - spoof, medical, violence). - - + "__doc__": """Set of features pertaining to the image, computed by computer vision + methods over safe-search verticals (for example, adult, spoof, + medical, violence). Attributes: adult: Represents the adult content likelihood for the image. Adult @@ -3990,8 +3967,6 @@ "DESCRIPTOR": _LATLONGRECT, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """Rectangle determined by min and max ``LatLng`` pairs. - - Attributes: min_lat_lng: Min lat/long pair. @@ -4009,10 +3984,8 @@ { "DESCRIPTOR": _COLORINFO, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - "__doc__": """Color information consists of RGB channels, score, and the - fraction of the image that the color occupies in the image. - - + "__doc__": """Color information consists of RGB channels, score, and the fraction of + the image that the color occupies in the image. Attributes: color: RGB components of the color. @@ -4034,8 +4007,6 @@ "DESCRIPTOR": _DOMINANTCOLORSANNOTATION, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """Set of dominant colors and their corresponding scores. - - Attributes: colors: RGB color values with their score and pixel fraction. @@ -4052,8 +4023,6 @@ "DESCRIPTOR": _IMAGEPROPERTIES, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """Stores image properties, such as dominant colors. - - Attributes: dominant_colors: If present, dominant colors completed successfully. @@ -4069,10 +4038,8 @@ { "DESCRIPTOR": _CROPHINT, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - "__doc__": """Single crop hint that is used to generate a new crop when - serving an image. - - + "__doc__": """Single crop hint that is used to generate a new crop when serving an + image. Attributes: bounding_poly: The bounding polygon for the crop region. The coordinates of @@ -4094,10 +4061,8 @@ { "DESCRIPTOR": _CROPHINTSANNOTATION, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - "__doc__": """Set of crop hints that are used to generate new crops when - serving images. - - + "__doc__": """Set of crop hints that are used to generate new crops when serving + images. Attributes: crop_hints: Crop hint results. @@ -4114,8 +4079,6 @@ "DESCRIPTOR": _CROPHINTSPARAMS, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """Parameters for crop hints annotation request. - - Attributes: aspect_ratios: Aspect ratios in floats, representing the ratio of the width @@ -4137,8 +4100,6 @@ "DESCRIPTOR": _WEBDETECTIONPARAMS, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """Parameters for web detection request. - - Attributes: include_geo_results: Whether to include results derived from the geo information in @@ -4156,8 +4117,6 @@ "DESCRIPTOR": _IMAGECONTEXT, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """Image context and/or feature-specific parameters. - - Attributes: lat_long_rect: Not used. @@ -4192,11 +4151,9 @@ { "DESCRIPTOR": _ANNOTATEIMAGEREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - "__doc__": """Request for performing Google Cloud Vision API tasks over - a user-provided image, with user-requested features, and with context + "__doc__": """Request for performing Google Cloud Vision API tasks over a user- + provided image, with user-requested features, and with context information. - - Attributes: image: The image to be processed. @@ -4216,10 +4173,8 @@ { "DESCRIPTOR": _IMAGEANNOTATIONCONTEXT, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - "__doc__": """If an image was produced from a file (e.g. a PDF), this - message gives information about the source of that image. - - + "__doc__": """If an image was produced from a file (e.g. a PDF), this message gives + information about the source of that image. Attributes: uri: The URI of the file used to produce the image. @@ -4239,8 +4194,6 @@ "DESCRIPTOR": _ANNOTATEIMAGERESPONSE, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """Response to an image annotation request. - - Attributes: face_annotations: If present, face detection has completed successfully. @@ -4289,10 +4242,8 @@ { "DESCRIPTOR": _BATCHANNOTATEIMAGESREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - "__doc__": """Multiple image annotation requests are batched into a - single service call. - - + "__doc__": """Multiple image annotation requests are batched into a single service + call. Attributes: requests: Required. Individual image annotation requests for this batch. @@ -4309,8 +4260,6 @@ "DESCRIPTOR": _BATCHANNOTATEIMAGESRESPONSE, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """Response to a batch image annotation request. - - Attributes: responses: Individual responses to image annotation requests within the @@ -4327,10 +4276,7 @@ { "DESCRIPTOR": _ANNOTATEFILEREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - "__doc__": """A request to annotate one single file, e.g. a PDF, TIFF or - GIF file. - - + "__doc__": """A request to annotate one single file, e.g. a PDF, TIFF or GIF file. Attributes: input_config: Required. Information about the input file. @@ -4361,10 +4307,8 @@ { "DESCRIPTOR": _ANNOTATEFILERESPONSE, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - "__doc__": """Response to a single file annotation request. A file may - contain one or more images, which individually have their own responses. - - + "__doc__": """Response to a single file annotation request. A file may contain one + or more images, which individually have their own responses. Attributes: input_config: Information about the file for which this response is @@ -4389,10 +4333,7 @@ { "DESCRIPTOR": _BATCHANNOTATEFILESREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - "__doc__": """A list of requests to annotate files using the - BatchAnnotateFiles API. - - + "__doc__": """A list of requests to annotate files using the BatchAnnotateFiles API. Attributes: requests: Required. The list of file annotation requests. Right now we @@ -4411,8 +4352,6 @@ "DESCRIPTOR": _BATCHANNOTATEFILESRESPONSE, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """A list of file annotation responses. - - Attributes: responses: The list of file annotation responses, each response @@ -4431,8 +4370,6 @@ "DESCRIPTOR": _ASYNCANNOTATEFILEREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """An offline file annotation request. - - Attributes: input_config: Required. Information about the input file. @@ -4457,8 +4394,6 @@ "DESCRIPTOR": _ASYNCANNOTATEFILERESPONSE, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """The response for a single offline file annotation request. - - Attributes: output_config: The output location and metadata from @@ -4476,8 +4411,6 @@ "DESCRIPTOR": _ASYNCBATCHANNOTATEIMAGESREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """Request for async image annotation for a list of images. - - Attributes: requests: Required. Individual image annotation requests for this batch. @@ -4497,8 +4430,6 @@ "DESCRIPTOR": _ASYNCBATCHANNOTATEIMAGESRESPONSE, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """Response to an async batch image annotation request. - - Attributes: output_config: The output location and metadata from @@ -4515,10 +4446,8 @@ { "DESCRIPTOR": _ASYNCBATCHANNOTATEFILESREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - "__doc__": """Multiple async file annotation requests are batched into a - single service call. - - + "__doc__": """Multiple async file annotation requests are batched into a single + service call. Attributes: requests: Required. Individual async file annotation requests for this @@ -4536,8 +4465,6 @@ "DESCRIPTOR": _ASYNCBATCHANNOTATEFILESRESPONSE, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """Response to an async batch file annotation request. - - Attributes: responses: The list of file annotation responses, one for each request in @@ -4555,8 +4482,6 @@ "DESCRIPTOR": _INPUTCONFIG, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """The desired input location and metadata. - - Attributes: gcs_source: The Google Cloud Storage location to read the input from. @@ -4584,8 +4509,6 @@ "DESCRIPTOR": _OUTPUTCONFIG, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """The desired output location and metadata. - - Attributes: gcs_destination: The Google Cloud Storage location to write the output(s) to. @@ -4611,10 +4534,7 @@ { "DESCRIPTOR": _GCSSOURCE, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - "__doc__": """The Google Cloud Storage location where the input will be - read from. - - + "__doc__": """The Google Cloud Storage location where the input will be read from. Attributes: uri: Google Cloud Storage URI for the input file. This must only be @@ -4632,10 +4552,7 @@ { "DESCRIPTOR": _GCSDESTINATION, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", - "__doc__": """The Google Cloud Storage location where the output will be - written to. - - + "__doc__": """The Google Cloud Storage location where the output will be written to. Attributes: uri: Google Cloud Storage URI prefix where the results will be @@ -4670,8 +4587,6 @@ "DESCRIPTOR": _OPERATIONMETADATA, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """Contains metadata for the BatchAnnotateImages operation. - - Attributes: state: Current state of the batch operation. diff --git a/google/cloud/vision_v1p4beta1/proto/product_search_pb2.py b/google/cloud/vision_v1p4beta1/proto/product_search_pb2.py index 6a99c441..2c5a0a00 100644 --- a/google/cloud/vision_v1p4beta1/proto/product_search_pb2.py +++ b/google/cloud/vision_v1p4beta1/proto/product_search_pb2.py @@ -494,8 +494,6 @@ "DESCRIPTOR": _PRODUCTSEARCHPARAMS, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_pb2", "__doc__": """Parameters for a product search request. - - Attributes: bounding_poly: The bounding polygon around the area of interest in the image. @@ -541,8 +539,6 @@ "DESCRIPTOR": _PRODUCTSEARCHRESULTS_RESULT, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_pb2", "__doc__": """Information about a product. - - Attributes: product: The Product. @@ -563,8 +559,6 @@ "DESCRIPTOR": _PRODUCTSEARCHRESULTS_OBJECTANNOTATION, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_pb2", "__doc__": """Prediction for what the object in the bounding box is. - - Attributes: mid: Object ID that should align with EntityAnnotation mid. @@ -586,10 +580,8 @@ { "DESCRIPTOR": _PRODUCTSEARCHRESULTS_GROUPEDRESULT, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_pb2", - "__doc__": """Information about the products similar to a single product - in a query image. - - + "__doc__": """Information about the products similar to a single product in a query + image. Attributes: bounding_poly: The bounding polygon around the product detected in the query @@ -606,8 +598,6 @@ "DESCRIPTOR": _PRODUCTSEARCHRESULTS, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_pb2", "__doc__": """Results for a product search request. - - Attributes: index_time: Timestamp of the index which provided these results. Products diff --git a/google/cloud/vision_v1p4beta1/proto/product_search_service_pb2.py b/google/cloud/vision_v1p4beta1/proto/product_search_service_pb2.py index 55422d7d..e94e1f12 100644 --- a/google/cloud/vision_v1p4beta1/proto/product_search_service_pb2.py +++ b/google/cloud/vision_v1p4beta1/proto/product_search_service_pb2.py @@ -2206,8 +2206,6 @@ "DESCRIPTOR": _PRODUCT_KEYVALUE, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """A product label represented as a key-value pair. - - Attributes: key: The key of the label attached to the product. Cannot be empty @@ -2222,8 +2220,6 @@ "DESCRIPTOR": _PRODUCT, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """A Product contains ReferenceImages. - - Attributes: name: The resource name of the product. Format is: @@ -2265,11 +2261,9 @@ { "DESCRIPTOR": _PRODUCTSET, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", - "__doc__": """A ProductSet contains Products. A ProductSet can contain a - maximum of 1 million reference images. If the limit is exceeded, - periodic indexing will fail. - - + "__doc__": """A ProductSet contains Products. A ProductSet can contain a maximum of + 1 million reference images. If the limit is exceeded, periodic + indexing will fail. Attributes: name: The resource name of the ProductSet. Format is: ``projects/PR @@ -2300,10 +2294,8 @@ { "DESCRIPTOR": _REFERENCEIMAGE, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", - "__doc__": """A ``ReferenceImage`` represents a product image and its - associated metadata, such as bounding boxes. - - + "__doc__": """A ``ReferenceImage`` represents a product image and its associated + metadata, such as bounding boxes. Attributes: name: The resource name of the reference image. Format is: ``proje @@ -2334,8 +2326,6 @@ "DESCRIPTOR": _CREATEPRODUCTREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``CreateProduct`` method. - - Attributes: parent: Required. The project in which the Product should be created. @@ -2361,8 +2351,6 @@ "DESCRIPTOR": _LISTPRODUCTSREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``ListProducts`` method. - - Attributes: parent: Required. The project OR ProductSet from which Products should @@ -2386,8 +2374,6 @@ "DESCRIPTOR": _LISTPRODUCTSRESPONSE, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """Response message for the ``ListProducts`` method. - - Attributes: products: List of products. @@ -2407,8 +2393,6 @@ "DESCRIPTOR": _GETPRODUCTREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``GetProduct`` method. - - Attributes: name: Required. Resource name of the Product to get. Format is: @@ -2426,8 +2410,6 @@ "DESCRIPTOR": _UPDATEPRODUCTREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``UpdateProduct`` method. - - Attributes: product: Required. The Product resource which replaces the one on the @@ -2450,8 +2432,6 @@ "DESCRIPTOR": _DELETEPRODUCTREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``DeleteProduct`` method. - - Attributes: name: Required. Resource name of product to delete. Format is: @@ -2469,8 +2449,6 @@ "DESCRIPTOR": _CREATEPRODUCTSETREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``CreateProductSet`` method. - - Attributes: parent: Required. The project in which the ProductSet should be @@ -2496,8 +2474,6 @@ "DESCRIPTOR": _LISTPRODUCTSETSREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``ListProductSets`` method. - - Attributes: parent: Required. The project from which ProductSets should be listed. @@ -2521,8 +2497,6 @@ "DESCRIPTOR": _LISTPRODUCTSETSRESPONSE, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """Response message for the ``ListProductSets`` method. - - Attributes: product_sets: List of ProductSets. @@ -2542,8 +2516,6 @@ "DESCRIPTOR": _GETPRODUCTSETREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``GetProductSet`` method. - - Attributes: name: Required. Resource name of the ProductSet to get. Format is: @@ -2562,8 +2534,6 @@ "DESCRIPTOR": _UPDATEPRODUCTSETREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``UpdateProductSet`` method. - - Attributes: product_set: Required. The ProductSet resource which replaces the one on @@ -2586,8 +2556,6 @@ "DESCRIPTOR": _DELETEPRODUCTSETREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``DeleteProductSet`` method. - - Attributes: name: Required. Resource name of the ProductSet to delete. Format @@ -2606,8 +2574,6 @@ "DESCRIPTOR": _CREATEREFERENCEIMAGEREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``CreateReferenceImage`` method. - - Attributes: parent: Required. Resource name of the product in which to create the @@ -2635,8 +2601,6 @@ "DESCRIPTOR": _LISTREFERENCEIMAGESREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``ListReferenceImages`` method. - - Attributes: parent: Required. Resource name of the product containing the @@ -2663,8 +2627,6 @@ "DESCRIPTOR": _LISTREFERENCEIMAGESRESPONSE, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """Response message for the ``ListReferenceImages`` method. - - Attributes: reference_images: The list of reference images. @@ -2687,8 +2649,6 @@ "DESCRIPTOR": _GETREFERENCEIMAGEREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``GetReferenceImage`` method. - - Attributes: name: Required. The resource name of the ReferenceImage to get. @@ -2707,8 +2667,6 @@ "DESCRIPTOR": _DELETEREFERENCEIMAGEREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``DeleteReferenceImage`` method. - - Attributes: name: Required. The resource name of the reference image to delete. @@ -2727,8 +2685,6 @@ "DESCRIPTOR": _ADDPRODUCTTOPRODUCTSETREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``AddProductToProductSet`` method. - - Attributes: name: Required. The resource name for the ProductSet to modify. @@ -2750,10 +2706,7 @@ { "DESCRIPTOR": _REMOVEPRODUCTFROMPRODUCTSETREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", - "__doc__": """Request message for the ``RemoveProductFromProductSet`` - method. - - + "__doc__": """Request message for the ``RemoveProductFromProductSet`` method. Attributes: name: Required. The resource name for the ProductSet to modify. @@ -2775,10 +2728,7 @@ { "DESCRIPTOR": _LISTPRODUCTSINPRODUCTSETREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", - "__doc__": """Request message for the ``ListProductsInProductSet`` - method. - - + "__doc__": """Request message for the ``ListProductsInProductSet`` method. Attributes: name: Required. The ProductSet resource for which to retrieve @@ -2802,10 +2752,7 @@ { "DESCRIPTOR": _LISTPRODUCTSINPRODUCTSETRESPONSE, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", - "__doc__": """Response message for the ``ListProductsInProductSet`` - method. - - + "__doc__": """Response message for the ``ListProductsInProductSet`` method. Attributes: products: The list of Products. @@ -2824,10 +2771,8 @@ { "DESCRIPTOR": _IMPORTPRODUCTSETSGCSSOURCE, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", - "__doc__": """The Google Cloud Storage location for a csv file which - preserves a list of ImportProductSetRequests in each line. - - + "__doc__": """The Google Cloud Storage location for a csv file which preserves a + list of ImportProductSetRequests in each line. Attributes: csv_file_uri: The Google Cloud Storage URI of the input csv file. The URI @@ -2887,8 +2832,6 @@ "DESCRIPTOR": _IMPORTPRODUCTSETSINPUTCONFIG, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """The input content for the ``ImportProductSets`` method. - - Attributes: source: The source of the input. @@ -2908,8 +2851,6 @@ "DESCRIPTOR": _IMPORTPRODUCTSETSREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``ImportProductSets`` method. - - Attributes: parent: Required. The project in which the ProductSets should be @@ -2928,15 +2869,11 @@ { "DESCRIPTOR": _IMPORTPRODUCTSETSRESPONSE, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", - "__doc__": """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] + "__doc__": """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.l + ongrunning.Operation.response][google.longrunning.Operation.response] field. - - Attributes: reference_images: The list of reference_images that are imported successfully. @@ -2958,14 +2895,10 @@ { "DESCRIPTOR": _BATCHOPERATIONMETADATA, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", - "__doc__": """Metadata for the batch operations such as the current - state. - - This is included in the ``metadata`` field of the ``Operation`` returned - by the ``GetOperation`` call of the ``google::longrunning::Operations`` + "__doc__": """Metadata for the batch operations such as the current state. This is + included in the ``metadata`` field of the ``Operation`` returned by + the ``GetOperation`` call of the ``google::longrunning::Operations`` service. - - Attributes: state: The current state of the batch operation. @@ -2987,10 +2920,8 @@ { "DESCRIPTOR": _PRODUCTSETPURGECONFIG, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", - "__doc__": """Config to control which ProductSet contains the Products - to be deleted. - - + "__doc__": """Config to control which ProductSet contains the Products to be + deleted. Attributes: product_set_id: The ProductSet that contains the Products to delete. If a @@ -3009,8 +2940,6 @@ "DESCRIPTOR": _PURGEPRODUCTSREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``PurgeProducts`` method. - - Attributes: target: The Products to delete. diff --git a/google/cloud/vision_v1p4beta1/proto/text_annotation_pb2.py b/google/cloud/vision_v1p4beta1/proto/text_annotation_pb2.py index 55fdc822..1b5a2870 100644 --- a/google/cloud/vision_v1p4beta1/proto/text_annotation_pb2.py +++ b/google/cloud/vision_v1p4beta1/proto/text_annotation_pb2.py @@ -889,8 +889,6 @@ "DESCRIPTOR": _TEXTANNOTATION_DETECTEDLANGUAGE, "__module__": "google.cloud.vision_v1p4beta1.proto.text_annotation_pb2", "__doc__": """Detected language for a structural component. - - Attributes: language_code: The BCP-47 language code, such as “en-US” or “sr-Latn”. For @@ -909,8 +907,6 @@ "DESCRIPTOR": _TEXTANNOTATION_DETECTEDBREAK, "__module__": "google.cloud.vision_v1p4beta1.proto.text_annotation_pb2", "__doc__": """Detected start or end of a structural component. - - Attributes: type: Detected break type. @@ -926,10 +922,7 @@ { "DESCRIPTOR": _TEXTANNOTATION_TEXTPROPERTY, "__module__": "google.cloud.vision_v1p4beta1.proto.text_annotation_pb2", - "__doc__": """Additional information detected on the structural - component. - - + "__doc__": """Additional information detected on the structural component. Attributes: detected_languages: A list of detected languages together with confidence. @@ -941,16 +934,14 @@ ), "DESCRIPTOR": _TEXTANNOTATION, "__module__": "google.cloud.vision_v1p4beta1.proto.text_annotation_pb2", - "__doc__": """TextAnnotation contains a structured representation of OCR - extracted text. The hierarchy of an OCR extracted text structure is like - this: 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.v1p4beta1.TextAnnotation.TextProperty] - message definition below for more detail. - - + "__doc__": """TextAnnotation contains a structured representation of OCR extracted + text. The hierarchy of an OCR extracted text structure is like this: + 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. + v1p4beta1.TextAnnotation.TextProperty] message definition below for + more detail. Attributes: pages: List of pages detected by OCR. @@ -972,8 +963,6 @@ "DESCRIPTOR": _PAGE, "__module__": "google.cloud.vision_v1p4beta1.proto.text_annotation_pb2", "__doc__": """Detected page from OCR. - - Attributes: property: Additional information detected on the page. @@ -1000,8 +989,6 @@ "DESCRIPTOR": _BLOCK, "__module__": "google.cloud.vision_v1p4beta1.proto.text_annotation_pb2", "__doc__": """Logical element on the page. - - Attributes: property: Additional information detected for the block. @@ -1035,10 +1022,8 @@ { "DESCRIPTOR": _PARAGRAPH, "__module__": "google.cloud.vision_v1p4beta1.proto.text_annotation_pb2", - "__doc__": """Structural unit of text representing a number of words in - certain order. - - + "__doc__": """Structural unit of text representing a number of words in certain + order. Attributes: property: Additional information detected for the paragraph. @@ -1069,8 +1054,6 @@ "DESCRIPTOR": _WORD, "__module__": "google.cloud.vision_v1p4beta1.proto.text_annotation_pb2", "__doc__": """A word representation. - - Attributes: property: Additional information detected for the word. @@ -1102,8 +1085,6 @@ "DESCRIPTOR": _SYMBOL, "__module__": "google.cloud.vision_v1p4beta1.proto.text_annotation_pb2", "__doc__": """A single symbol representation. - - Attributes: property: Additional information detected for the symbol. diff --git a/google/cloud/vision_v1p4beta1/proto/web_detection_pb2.py b/google/cloud/vision_v1p4beta1/proto/web_detection_pb2.py index 2239a744..e6a55b10 100644 --- a/google/cloud/vision_v1p4beta1/proto/web_detection_pb2.py +++ b/google/cloud/vision_v1p4beta1/proto/web_detection_pb2.py @@ -492,8 +492,6 @@ "DESCRIPTOR": _WEBDETECTION_WEBENTITY, "__module__": "google.cloud.vision_v1p4beta1.proto.web_detection_pb2", "__doc__": """Entity deduced from similar images on the Internet. - - Attributes: entity_id: Opaque entity ID. @@ -513,8 +511,6 @@ "DESCRIPTOR": _WEBDETECTION_WEBIMAGE, "__module__": "google.cloud.vision_v1p4beta1.proto.web_detection_pb2", "__doc__": """Metadata for online images. - - Attributes: url: The result image URL. @@ -531,8 +527,6 @@ "DESCRIPTOR": _WEBDETECTION_WEBPAGE, "__module__": "google.cloud.vision_v1p4beta1.proto.web_detection_pb2", "__doc__": """Metadata for web pages. - - Attributes: url: The result web page URL. @@ -559,8 +553,6 @@ "DESCRIPTOR": _WEBDETECTION_WEBLABEL, "__module__": "google.cloud.vision_v1p4beta1.proto.web_detection_pb2", "__doc__": """Label to provide extra metadata for the web detection. - - Attributes: label: Label for extra metadata. @@ -575,8 +567,6 @@ "DESCRIPTOR": _WEBDETECTION, "__module__": "google.cloud.vision_v1p4beta1.proto.web_detection_pb2", "__doc__": """Relevant information for the image from the Internet. - - Attributes: web_entities: Deduced entities from similar images on the Internet. diff --git a/synth.metadata b/synth.metadata index ab09d49f..279b3849 100644 --- a/synth.metadata +++ b/synth.metadata @@ -11,15 +11,15 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "cd3ce2651c3921670217e664303976cdf76e9fe2", - "internalRef": "312123588" + "sha": "dec3204175104cef49bf21d685d5517caaf0058f", + "internalRef": "312689208" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "d2364eb80b840a36136c8ce12f1c6efabcc9600e" + "sha": "7ee92820e64c0aea379781b82399d6b3f3c8655f" } } ], From 0d9a23b44fc6655a00b7b1b23be456fcd1a59125 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Wed, 24 Jun 2020 18:12:44 -0700 Subject: [PATCH 08/25] bazel: update protobuf, rules_go, gazelle, and gapic-generator-go versions - protobuf v3.12.1 - rules_go v0.23.0 - gazelle v0.21.0 - gapic-generator-go v0.14.1 PiperOrigin-RevId: 313460921 Source-Author: Google APIs Source-Date: Wed May 27 14:10:16 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: c4e37010d74071851ff24121f522e802231ac86e Source-Link: https://github.com/googleapis/googleapis/commit/c4e37010d74071851ff24121f522e802231ac86e --- google/cloud/vision_v1/proto/geometry_pb2.py | 14 + .../vision_v1/proto/image_annotator_pb2.py | 366 ++++++++++++++++-- .../vision_v1/proto/product_search_pb2.py | 23 ++ .../proto/product_search_service_pb2.py | 157 +++++++- .../vision_v1/proto/text_annotation_pb2.py | 126 +++++- .../vision_v1/proto/web_detection_pb2.py | 24 ++ .../vision_v1p1beta1/proto/geometry_pb2.py | 10 + .../proto/image_annotator_pb2.py | 263 ++++++++++++- .../proto/text_annotation_pb2.py | 126 +++++- .../proto/web_detection_pb2.py | 24 ++ .../vision_v1p2beta1/proto/geometry_pb2.py | 14 + .../proto/image_annotator_pb2.py | 326 ++++++++++++++-- .../proto/text_annotation_pb2.py | 126 +++++- .../proto/web_detection_pb2.py | 24 ++ .../vision_v1p3beta1/proto/geometry_pb2.py | 16 + .../proto/image_annotator_pb2.py | 337 ++++++++++++++-- .../proto/product_search_pb2.py | 56 ++- .../proto/product_search_service_pb2.py | 148 ++++++- .../proto/text_annotation_pb2.py | 126 +++++- .../proto/web_detection_pb2.py | 24 ++ .../cloud/vision_v1p4beta1/proto/face_pb2.py | 10 + .../vision_v1p4beta1/proto/geometry_pb2.py | 14 + .../proto/image_annotator_pb2.py | 358 +++++++++++++++-- .../proto/product_search_pb2.py | 23 ++ .../proto/product_search_service_pb2.py | 157 +++++++- .../proto/text_annotation_pb2.py | 126 +++++- .../proto/web_detection_pb2.py | 24 ++ synth.metadata | 6 +- 28 files changed, 2863 insertions(+), 185 deletions(-) diff --git a/google/cloud/vision_v1/proto/geometry_pb2.py b/google/cloud/vision_v1/proto/geometry_pb2.py index bfac2079..8cae201d 100644 --- a/google/cloud/vision_v1/proto/geometry_pb2.py +++ b/google/cloud/vision_v1/proto/geometry_pb2.py @@ -20,6 +20,7 @@ package="google.cloud.vision.v1", syntax="proto3", serialized_options=b"\n\032com.google.cloud.vision.v1B\rGeometryProtoP\001Z\n\x10\x66\x64_bounding_poly\x18\x02 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly\x12\x42\n\tlandmarks\x18\x03 \x03(\x0b\x32/.google.cloud.vision.v1.FaceAnnotation.Landmark\x12\x12\n\nroll_angle\x18\x04 \x01(\x02\x12\x11\n\tpan_angle\x18\x05 \x01(\x02\x12\x12\n\ntilt_angle\x18\x06 \x01(\x02\x12\x1c\n\x14\x64\x65tection_confidence\x18\x07 \x01(\x02\x12\x1e\n\x16landmarking_confidence\x18\x08 \x01(\x02\x12:\n\x0ejoy_likelihood\x18\t \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x12=\n\x11sorrow_likelihood\x18\n \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x12<\n\x10\x61nger_likelihood\x18\x0b \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x12?\n\x13surprise_likelihood\x18\x0c \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x12\x44\n\x18under_exposed_likelihood\x18\r \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x12>\n\x12\x62lurred_likelihood\x18\x0e \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x12?\n\x13headwear_likelihood\x18\x0f \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x1a\xb9\x07\n\x08Landmark\x12\x42\n\x04type\x18\x03 \x01(\x0e\x32\x34.google.cloud.vision.v1.FaceAnnotation.Landmark.Type\x12\x32\n\x08position\x18\x04 \x01(\x0b\x32 .google.cloud.vision.v1.Position"\xb4\x06\n\x04Type\x12\x14\n\x10UNKNOWN_LANDMARK\x10\x00\x12\x0c\n\x08LEFT_EYE\x10\x01\x12\r\n\tRIGHT_EYE\x10\x02\x12\x18\n\x14LEFT_OF_LEFT_EYEBROW\x10\x03\x12\x19\n\x15RIGHT_OF_LEFT_EYEBROW\x10\x04\x12\x19\n\x15LEFT_OF_RIGHT_EYEBROW\x10\x05\x12\x1a\n\x16RIGHT_OF_RIGHT_EYEBROW\x10\x06\x12\x19\n\x15MIDPOINT_BETWEEN_EYES\x10\x07\x12\x0c\n\x08NOSE_TIP\x10\x08\x12\r\n\tUPPER_LIP\x10\t\x12\r\n\tLOWER_LIP\x10\n\x12\x0e\n\nMOUTH_LEFT\x10\x0b\x12\x0f\n\x0bMOUTH_RIGHT\x10\x0c\x12\x10\n\x0cMOUTH_CENTER\x10\r\x12\x15\n\x11NOSE_BOTTOM_RIGHT\x10\x0e\x12\x14\n\x10NOSE_BOTTOM_LEFT\x10\x0f\x12\x16\n\x12NOSE_BOTTOM_CENTER\x10\x10\x12\x19\n\x15LEFT_EYE_TOP_BOUNDARY\x10\x11\x12\x19\n\x15LEFT_EYE_RIGHT_CORNER\x10\x12\x12\x1c\n\x18LEFT_EYE_BOTTOM_BOUNDARY\x10\x13\x12\x18\n\x14LEFT_EYE_LEFT_CORNER\x10\x14\x12\x1a\n\x16RIGHT_EYE_TOP_BOUNDARY\x10\x15\x12\x1a\n\x16RIGHT_EYE_RIGHT_CORNER\x10\x16\x12\x1d\n\x19RIGHT_EYE_BOTTOM_BOUNDARY\x10\x17\x12\x19\n\x15RIGHT_EYE_LEFT_CORNER\x10\x18\x12\x1f\n\x1bLEFT_EYEBROW_UPPER_MIDPOINT\x10\x19\x12 \n\x1cRIGHT_EYEBROW_UPPER_MIDPOINT\x10\x1a\x12\x14\n\x10LEFT_EAR_TRAGION\x10\x1b\x12\x15\n\x11RIGHT_EAR_TRAGION\x10\x1c\x12\x12\n\x0eLEFT_EYE_PUPIL\x10\x1d\x12\x13\n\x0fRIGHT_EYE_PUPIL\x10\x1e\x12\x15\n\x11\x46OREHEAD_GLABELLA\x10\x1f\x12\x11\n\rCHIN_GNATHION\x10 \x12\x14\n\x10\x43HIN_LEFT_GONION\x10!\x12\x15\n\x11\x43HIN_RIGHT_GONION\x10""4\n\x0cLocationInfo\x12$\n\x07lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng"=\n\x08Property\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x14\n\x0cuint64_value\x18\x03 \x01(\x04"\xab\x02\n\x10\x45ntityAnnotation\x12\x0b\n\x03mid\x18\x01 \x01(\t\x12\x0e\n\x06locale\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\r\n\x05score\x18\x04 \x01(\x02\x12\x16\n\nconfidence\x18\x05 \x01(\x02\x42\x02\x18\x01\x12\x12\n\ntopicality\x18\x06 \x01(\x02\x12;\n\rbounding_poly\x18\x07 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly\x12\x37\n\tlocations\x18\x08 \x03(\x0b\x32$.google.cloud.vision.v1.LocationInfo\x12\x34\n\nproperties\x18\t \x03(\x0b\x32 .google.cloud.vision.v1.Property"\x99\x01\n\x19LocalizedObjectAnnotation\x12\x0b\n\x03mid\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\r\n\x05score\x18\x04 \x01(\x02\x12;\n\rbounding_poly\x18\x05 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly"\xb8\x03\n\x14SafeSearchAnnotation\x12\x31\n\x05\x61\x64ult\x18\x01 \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x12\x31\n\x05spoof\x18\x02 \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x12\x33\n\x07medical\x18\x03 \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x12\x34\n\x08violence\x18\x04 \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x12\x30\n\x04racy\x18\t \x01(\x0e\x32".google.cloud.vision.v1.Likelihood\x12\x18\n\x10\x61\x64ult_confidence\x18\x10 \x01(\x02\x12\x18\n\x10spoof_confidence\x18\x12 \x01(\x02\x12\x1a\n\x12medical_confidence\x18\x14 \x01(\x02\x12\x1b\n\x13violence_confidence\x18\x16 \x01(\x02\x12\x17\n\x0fracy_confidence\x18\x18 \x01(\x02\x12\x17\n\x0fnsfw_confidence\x18\x1a \x01(\x02"a\n\x0bLatLongRect\x12(\n\x0bmin_lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng\x12(\n\x0bmax_lat_lng\x18\x02 \x01(\x0b\x32\x13.google.type.LatLng"U\n\tColorInfo\x12!\n\x05\x63olor\x18\x01 \x01(\x0b\x32\x12.google.type.Color\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x16\n\x0epixel_fraction\x18\x03 \x01(\x02"M\n\x18\x44ominantColorsAnnotation\x12\x31\n\x06\x63olors\x18\x01 \x03(\x0b\x32!.google.cloud.vision.v1.ColorInfo"\\\n\x0fImageProperties\x12I\n\x0f\x64ominant_colors\x18\x01 \x01(\x0b\x32\x30.google.cloud.vision.v1.DominantColorsAnnotation"x\n\x08\x43ropHint\x12;\n\rbounding_poly\x18\x01 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12\x1b\n\x13importance_fraction\x18\x03 \x01(\x02"K\n\x13\x43ropHintsAnnotation\x12\x34\n\ncrop_hints\x18\x01 \x03(\x0b\x32 .google.cloud.vision.v1.CropHint"(\n\x0f\x43ropHintsParams\x12\x15\n\raspect_ratios\x18\x01 \x03(\x02"1\n\x12WebDetectionParams\x12\x1b\n\x13include_geo_results\x18\x02 \x01(\x08"\xbc\x02\n\x0cImageContext\x12:\n\rlat_long_rect\x18\x01 \x01(\x0b\x32#.google.cloud.vision.v1.LatLongRect\x12\x16\n\x0elanguage_hints\x18\x02 \x03(\t\x12\x42\n\x11\x63rop_hints_params\x18\x04 \x01(\x0b\x32\'.google.cloud.vision.v1.CropHintsParams\x12J\n\x15product_search_params\x18\x05 \x01(\x0b\x32+.google.cloud.vision.v1.ProductSearchParams\x12H\n\x14web_detection_params\x18\x06 \x01(\x0b\x32*.google.cloud.vision.v1.WebDetectionParams"\xb4\x01\n\x14\x41nnotateImageRequest\x12,\n\x05image\x18\x01 \x01(\x0b\x32\x1d.google.cloud.vision.v1.Image\x12\x31\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32\x1f.google.cloud.vision.v1.Feature\x12;\n\rimage_context\x18\x03 \x01(\x0b\x32$.google.cloud.vision.v1.ImageContext":\n\x16ImageAnnotationContext\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x13\n\x0bpage_number\x18\x02 \x01(\x05"\xe4\x07\n\x15\x41nnotateImageResponse\x12@\n\x10\x66\x61\x63\x65_annotations\x18\x01 \x03(\x0b\x32&.google.cloud.vision.v1.FaceAnnotation\x12\x46\n\x14landmark_annotations\x18\x02 \x03(\x0b\x32(.google.cloud.vision.v1.EntityAnnotation\x12\x42\n\x10logo_annotations\x18\x03 \x03(\x0b\x32(.google.cloud.vision.v1.EntityAnnotation\x12\x43\n\x11label_annotations\x18\x04 \x03(\x0b\x32(.google.cloud.vision.v1.EntityAnnotation\x12W\n\x1clocalized_object_annotations\x18\x16 \x03(\x0b\x32\x31.google.cloud.vision.v1.LocalizedObjectAnnotation\x12\x42\n\x10text_annotations\x18\x05 \x03(\x0b\x32(.google.cloud.vision.v1.EntityAnnotation\x12\x44\n\x14\x66ull_text_annotation\x18\x0c \x01(\x0b\x32&.google.cloud.vision.v1.TextAnnotation\x12L\n\x16safe_search_annotation\x18\x06 \x01(\x0b\x32,.google.cloud.vision.v1.SafeSearchAnnotation\x12L\n\x1bimage_properties_annotation\x18\x08 \x01(\x0b\x32\'.google.cloud.vision.v1.ImageProperties\x12J\n\x15\x63rop_hints_annotation\x18\x0b \x01(\x0b\x32+.google.cloud.vision.v1.CropHintsAnnotation\x12;\n\rweb_detection\x18\r \x01(\x0b\x32$.google.cloud.vision.v1.WebDetection\x12L\n\x16product_search_results\x18\x0e \x01(\x0b\x32,.google.cloud.vision.v1.ProductSearchResults\x12!\n\x05\x65rror\x18\t \x01(\x0b\x32\x12.google.rpc.Status\x12?\n\x07\x63ontext\x18\x15 \x01(\x0b\x32..google.cloud.vision.v1.ImageAnnotationContext"q\n\x1a\x42\x61tchAnnotateImagesRequest\x12\x43\n\x08requests\x18\x01 \x03(\x0b\x32,.google.cloud.vision.v1.AnnotateImageRequestB\x03\xe0\x41\x02\x12\x0e\n\x06parent\x18\x04 \x01(\t"_\n\x1b\x42\x61tchAnnotateImagesResponse\x12@\n\tresponses\x18\x01 \x03(\x0b\x32-.google.cloud.vision.v1.AnnotateImageResponse"\xcf\x01\n\x13\x41nnotateFileRequest\x12\x39\n\x0cinput_config\x18\x01 \x01(\x0b\x32#.google.cloud.vision.v1.InputConfig\x12\x31\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32\x1f.google.cloud.vision.v1.Feature\x12;\n\rimage_context\x18\x03 \x01(\x0b\x32$.google.cloud.vision.v1.ImageContext\x12\r\n\x05pages\x18\x04 \x03(\x05"\xcb\x01\n\x14\x41nnotateFileResponse\x12\x39\n\x0cinput_config\x18\x01 \x01(\x0b\x32#.google.cloud.vision.v1.InputConfig\x12@\n\tresponses\x18\x02 \x03(\x0b\x32-.google.cloud.vision.v1.AnnotateImageResponse\x12\x13\n\x0btotal_pages\x18\x03 \x01(\x05\x12!\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x12.google.rpc.Status"o\n\x19\x42\x61tchAnnotateFilesRequest\x12\x42\n\x08requests\x18\x01 \x03(\x0b\x32+.google.cloud.vision.v1.AnnotateFileRequestB\x03\xe0\x41\x02\x12\x0e\n\x06parent\x18\x03 \x01(\t"]\n\x1a\x42\x61tchAnnotateFilesResponse\x12?\n\tresponses\x18\x01 \x03(\x0b\x32,.google.cloud.vision.v1.AnnotateFileResponse"\x82\x02\n\x18\x41syncAnnotateFileRequest\x12\x39\n\x0cinput_config\x18\x01 \x01(\x0b\x32#.google.cloud.vision.v1.InputConfig\x12\x31\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32\x1f.google.cloud.vision.v1.Feature\x12;\n\rimage_context\x18\x03 \x01(\x0b\x32$.google.cloud.vision.v1.ImageContext\x12;\n\routput_config\x18\x04 \x01(\x0b\x32$.google.cloud.vision.v1.OutputConfig"X\n\x19\x41syncAnnotateFileResponse\x12;\n\routput_config\x18\x01 \x01(\x0b\x32$.google.cloud.vision.v1.OutputConfig"\xb8\x01\n\x1f\x41syncBatchAnnotateImagesRequest\x12\x43\n\x08requests\x18\x01 \x03(\x0b\x32,.google.cloud.vision.v1.AnnotateImageRequestB\x03\xe0\x41\x02\x12@\n\routput_config\x18\x02 \x01(\x0b\x32$.google.cloud.vision.v1.OutputConfigB\x03\xe0\x41\x02\x12\x0e\n\x06parent\x18\x04 \x01(\t"_\n AsyncBatchAnnotateImagesResponse\x12;\n\routput_config\x18\x01 \x01(\x0b\x32$.google.cloud.vision.v1.OutputConfig"y\n\x1e\x41syncBatchAnnotateFilesRequest\x12G\n\x08requests\x18\x01 \x03(\x0b\x32\x30.google.cloud.vision.v1.AsyncAnnotateFileRequestB\x03\xe0\x41\x02\x12\x0e\n\x06parent\x18\x04 \x01(\t"g\n\x1f\x41syncBatchAnnotateFilesResponse\x12\x44\n\tresponses\x18\x01 \x03(\x0b\x32\x31.google.cloud.vision.v1.AsyncAnnotateFileResponse"h\n\x0bInputConfig\x12\x35\n\ngcs_source\x18\x01 \x01(\x0b\x32!.google.cloud.vision.v1.GcsSource\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\x0c\x12\x11\n\tmime_type\x18\x02 \x01(\t"c\n\x0cOutputConfig\x12?\n\x0fgcs_destination\x18\x01 \x01(\x0b\x32&.google.cloud.vision.v1.GcsDestination\x12\x12\n\nbatch_size\x18\x02 \x01(\x05"\x18\n\tGcsSource\x12\x0b\n\x03uri\x18\x01 \x01(\t"\x1d\n\x0eGcsDestination\x12\x0b\n\x03uri\x18\x01 \x01(\t"\x88\x02\n\x11OperationMetadata\x12>\n\x05state\x18\x01 \x01(\x0e\x32/.google.cloud.vision.v1.OperationMetadata.State\x12/\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"Q\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x43REATED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x08\n\x04\x44ONE\x10\x03\x12\r\n\tCANCELLED\x10\x04*e\n\nLikelihood\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x11\n\rVERY_UNLIKELY\x10\x01\x12\x0c\n\x08UNLIKELY\x10\x02\x12\x0c\n\x08POSSIBLE\x10\x03\x12\n\n\x06LIKELY\x10\x04\x12\x0f\n\x0bVERY_LIKELY\x10\x05\x32\xf5\n\n\x0eImageAnnotator\x12\x93\x02\n\x13\x42\x61tchAnnotateImages\x12\x32.google.cloud.vision.v1.BatchAnnotateImagesRequest\x1a\x33.google.cloud.vision.v1.BatchAnnotateImagesResponse"\x92\x01\x82\xd3\xe4\x93\x02\x80\x01"\x13/v1/images:annotate:\x01*Z8"3/v1/{parent=projects/*/locations/*}/images:annotate:\x01*Z,"\'/v1/{parent=projects/*}/images:annotate:\x01*\xda\x41\x08requests\x12\x8c\x02\n\x12\x42\x61tchAnnotateFiles\x12\x31.google.cloud.vision.v1.BatchAnnotateFilesRequest\x1a\x32.google.cloud.vision.v1.BatchAnnotateFilesResponse"\x8e\x01\x82\xd3\xe4\x93\x02}"\x12/v1/files:annotate:\x01*Z7"2/v1/{parent=projects/*/locations/*}/files:annotate:\x01*Z+"&/v1/{parent=projects/*}/files:annotate:\x01*\xda\x41\x08requests\x12\xeb\x02\n\x18\x41syncBatchAnnotateImages\x12\x37.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest\x1a\x1d.google.longrunning.Operation"\xf6\x01\x82\xd3\xe4\x93\x02\x9e\x01"\x1d/v1/images:asyncBatchAnnotate:\x01*ZB"=/v1/{parent=projects/*/locations/*}/images:asyncBatchAnnotate:\x01*Z6"1/v1/{parent=projects/*}/images:asyncBatchAnnotate:\x01*\xda\x41\x16requests,output_config\xca\x41\x35\n AsyncBatchAnnotateImagesResponse\x12\x11OperationMetadata\x12\xd7\x02\n\x17\x41syncBatchAnnotateFiles\x12\x36.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest\x1a\x1d.google.longrunning.Operation"\xe4\x01\x82\xd3\xe4\x93\x02\x9b\x01"\x1c/v1/files:asyncBatchAnnotate:\x01*ZA""//v1/{parent=projects/*/locations/*}/productSets:\x0bproduct_set\xda\x41!parent,product_set,product_set_id\x12\xb4\x01\n\x0fListProductSets\x12..google.cloud.vision.v1.ListProductSetsRequest\x1a/.google.cloud.vision.v1.ListProductSetsResponse"@\x82\xd3\xe4\x93\x02\x31\x12//v1/{parent=projects/*/locations/*}/productSets\xda\x41\x06parent\x12\xa1\x01\n\rGetProductSet\x12,.google.cloud.vision.v1.GetProductSetRequest\x1a".google.cloud.vision.v1.ProductSet">\x82\xd3\xe4\x93\x02\x31\x12//v1/{name=projects/*/locations/*/productSets/*}\xda\x41\x04name\x12\xd3\x01\n\x10UpdateProductSet\x12/.google.cloud.vision.v1.UpdateProductSetRequest\x1a".google.cloud.vision.v1.ProductSet"j\x82\xd3\xe4\x93\x02J2;/v1/{product_set.name=projects/*/locations/*/productSets/*}:\x0bproduct_set\xda\x41\x17product_set,update_mask\x12\x9b\x01\n\x10\x44\x65leteProductSet\x12/.google.cloud.vision.v1.DeleteProductSetRequest\x1a\x16.google.protobuf.Empty">\x82\xd3\xe4\x93\x02\x31*//v1/{name=projects/*/locations/*/productSets/*}\xda\x41\x04name\x12\xb9\x01\n\rCreateProduct\x12,.google.cloud.vision.v1.CreateProductRequest\x1a\x1f.google.cloud.vision.v1.Product"Y\x82\xd3\xe4\x93\x02\x37",/v1/{parent=projects/*/locations/*}/products:\x07product\xda\x41\x19parent,product,product_id\x12\xa8\x01\n\x0cListProducts\x12+.google.cloud.vision.v1.ListProductsRequest\x1a,.google.cloud.vision.v1.ListProductsResponse"=\x82\xd3\xe4\x93\x02.\x12,/v1/{parent=projects/*/locations/*}/products\xda\x41\x06parent\x12\x95\x01\n\nGetProduct\x12).google.cloud.vision.v1.GetProductRequest\x1a\x1f.google.cloud.vision.v1.Product";\x82\xd3\xe4\x93\x02.\x12,/v1/{name=projects/*/locations/*/products/*}\xda\x41\x04name\x12\xbb\x01\n\rUpdateProduct\x12,.google.cloud.vision.v1.UpdateProductRequest\x1a\x1f.google.cloud.vision.v1.Product"[\x82\xd3\xe4\x93\x02?24/v1/{product.name=projects/*/locations/*/products/*}:\x07product\xda\x41\x13product,update_mask\x12\x92\x01\n\rDeleteProduct\x12,.google.cloud.vision.v1.DeleteProductRequest\x1a\x16.google.protobuf.Empty";\x82\xd3\xe4\x93\x02.*,/v1/{name=projects/*/locations/*/products/*}\xda\x41\x04name\x12\xf9\x01\n\x14\x43reateReferenceImage\x12\x33.google.cloud.vision.v1.CreateReferenceImageRequest\x1a&.google.cloud.vision.v1.ReferenceImage"\x83\x01\x82\xd3\xe4\x93\x02Q">/v1/{parent=projects/*/locations/*/products/*}/referenceImages:\x0freference_image\xda\x41)parent,reference_image,reference_image_id\x12\xb2\x01\n\x14\x44\x65leteReferenceImage\x12\x33.google.cloud.vision.v1.DeleteReferenceImageRequest\x1a\x16.google.protobuf.Empty"M\x82\xd3\xe4\x93\x02@*>/v1/{name=projects/*/locations/*/products/*/referenceImages/*}\xda\x41\x04name\x12\xcf\x01\n\x13ListReferenceImages\x12\x32.google.cloud.vision.v1.ListReferenceImagesRequest\x1a\x33.google.cloud.vision.v1.ListReferenceImagesResponse"O\x82\xd3\xe4\x93\x02@\x12>/v1/{parent=projects/*/locations/*/products/*}/referenceImages\xda\x41\x06parent\x12\xbc\x01\n\x11GetReferenceImage\x12\x30.google.cloud.vision.v1.GetReferenceImageRequest\x1a&.google.cloud.vision.v1.ReferenceImage"M\x82\xd3\xe4\x93\x02@\x12>/v1/{name=projects/*/locations/*/products/*/referenceImages/*}\xda\x41\x04name\x12\xbd\x01\n\x16\x41\x64\x64ProductToProductSet\x12\x35.google.cloud.vision.v1.AddProductToProductSetRequest\x1a\x16.google.protobuf.Empty"T\x82\xd3\xe4\x93\x02?":/v1/{name=projects/*/locations/*/productSets/*}:addProduct:\x01*\xda\x41\x0cname,product\x12\xca\x01\n\x1bRemoveProductFromProductSet\x12:.google.cloud.vision.v1.RemoveProductFromProductSetRequest\x1a\x16.google.protobuf.Empty"W\x82\xd3\xe4\x93\x02\x42"=/v1/{name=projects/*/locations/*/productSets/*}:removeProduct:\x01*\xda\x41\x0cname,product\x12\xd6\x01\n\x18ListProductsInProductSet\x12\x37.google.cloud.vision.v1.ListProductsInProductSetRequest\x1a\x38.google.cloud.vision.v1.ListProductsInProductSetResponse"G\x82\xd3\xe4\x93\x02:\x12\x38/v1/{name=projects/*/locations/*/productSets/*}/products\xda\x41\x04name\x12\xf4\x01\n\x11ImportProductSets\x12\x30.google.cloud.vision.v1.ImportProductSetsRequest\x1a\x1d.google.longrunning.Operation"\x8d\x01\x82\xd3\xe4\x93\x02;"6/v1/{parent=projects/*/locations/*}/productSets:import:\x01*\xda\x41\x13parent,input_config\xca\x41\x33\n\x19ImportProductSetsResponse\x12\x16\x42\x61tchOperationMetadata\x12\xd6\x01\n\rPurgeProducts\x12,.google.cloud.vision.v1.PurgeProductsRequest\x1a\x1d.google.longrunning.Operation"x\x82\xd3\xe4\x93\x02\x37"2/v1/{parent=projects/*/locations/*}/products:purge:\x01*\xda\x41\x06parent\xca\x41/\n\x15google.protobuf.Empty\x12\x16\x42\x61tchOperationMetadata\x1av\xca\x41\x15vision.googleapis.com\xd2\x41[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-visionB\x81\x01\n\x1a\x63om.google.cloud.vision.v1B\x19ProductSearchServiceProtoP\x01Z"//v1/{parent=projects/*/locations/*}/productSets:\013product_set\332A!parent,product_set,product_set_id', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="ListProductSets", @@ -3024,6 +3155,7 @@ input_type=_LISTPRODUCTSETSREQUEST, output_type=_LISTPRODUCTSETSRESPONSE, serialized_options=b"\202\323\344\223\0021\022//v1/{parent=projects/*/locations/*}/productSets\332A\006parent", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="GetProductSet", @@ -3033,6 +3165,7 @@ input_type=_GETPRODUCTSETREQUEST, output_type=_PRODUCTSET, serialized_options=b"\202\323\344\223\0021\022//v1/{name=projects/*/locations/*/productSets/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="UpdateProductSet", @@ -3042,6 +3175,7 @@ input_type=_UPDATEPRODUCTSETREQUEST, output_type=_PRODUCTSET, serialized_options=b"\202\323\344\223\002J2;/v1/{product_set.name=projects/*/locations/*/productSets/*}:\013product_set\332A\027product_set,update_mask", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="DeleteProductSet", @@ -3051,6 +3185,7 @@ input_type=_DELETEPRODUCTSETREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, serialized_options=b"\202\323\344\223\0021*//v1/{name=projects/*/locations/*/productSets/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="CreateProduct", @@ -3060,6 +3195,7 @@ input_type=_CREATEPRODUCTREQUEST, output_type=_PRODUCT, serialized_options=b'\202\323\344\223\0027",/v1/{parent=projects/*/locations/*}/products:\007product\332A\031parent,product,product_id', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="ListProducts", @@ -3069,6 +3205,7 @@ input_type=_LISTPRODUCTSREQUEST, output_type=_LISTPRODUCTSRESPONSE, serialized_options=b"\202\323\344\223\002.\022,/v1/{parent=projects/*/locations/*}/products\332A\006parent", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="GetProduct", @@ -3078,6 +3215,7 @@ input_type=_GETPRODUCTREQUEST, output_type=_PRODUCT, serialized_options=b"\202\323\344\223\002.\022,/v1/{name=projects/*/locations/*/products/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="UpdateProduct", @@ -3087,6 +3225,7 @@ input_type=_UPDATEPRODUCTREQUEST, output_type=_PRODUCT, serialized_options=b"\202\323\344\223\002?24/v1/{product.name=projects/*/locations/*/products/*}:\007product\332A\023product,update_mask", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="DeleteProduct", @@ -3096,6 +3235,7 @@ input_type=_DELETEPRODUCTREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, serialized_options=b"\202\323\344\223\002.*,/v1/{name=projects/*/locations/*/products/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="CreateReferenceImage", @@ -3105,6 +3245,7 @@ input_type=_CREATEREFERENCEIMAGEREQUEST, output_type=_REFERENCEIMAGE, serialized_options=b'\202\323\344\223\002Q">/v1/{parent=projects/*/locations/*/products/*}/referenceImages:\017reference_image\332A)parent,reference_image,reference_image_id', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="DeleteReferenceImage", @@ -3114,6 +3255,7 @@ input_type=_DELETEREFERENCEIMAGEREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, serialized_options=b"\202\323\344\223\002@*>/v1/{name=projects/*/locations/*/products/*/referenceImages/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="ListReferenceImages", @@ -3123,6 +3265,7 @@ input_type=_LISTREFERENCEIMAGESREQUEST, output_type=_LISTREFERENCEIMAGESRESPONSE, serialized_options=b"\202\323\344\223\002@\022>/v1/{parent=projects/*/locations/*/products/*}/referenceImages\332A\006parent", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="GetReferenceImage", @@ -3132,6 +3275,7 @@ input_type=_GETREFERENCEIMAGEREQUEST, output_type=_REFERENCEIMAGE, serialized_options=b"\202\323\344\223\002@\022>/v1/{name=projects/*/locations/*/products/*/referenceImages/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="AddProductToProductSet", @@ -3141,6 +3285,7 @@ input_type=_ADDPRODUCTTOPRODUCTSETREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, serialized_options=b'\202\323\344\223\002?":/v1/{name=projects/*/locations/*/productSets/*}:addProduct:\001*\332A\014name,product', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="RemoveProductFromProductSet", @@ -3150,6 +3295,7 @@ input_type=_REMOVEPRODUCTFROMPRODUCTSETREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, serialized_options=b'\202\323\344\223\002B"=/v1/{name=projects/*/locations/*/productSets/*}:removeProduct:\001*\332A\014name,product', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="ListProductsInProductSet", @@ -3159,6 +3305,7 @@ input_type=_LISTPRODUCTSINPRODUCTSETREQUEST, output_type=_LISTPRODUCTSINPRODUCTSETRESPONSE, serialized_options=b"\202\323\344\223\002:\0228/v1/{name=projects/*/locations/*/productSets/*}/products\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="ImportProductSets", @@ -3168,6 +3315,7 @@ input_type=_IMPORTPRODUCTSETSREQUEST, output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, serialized_options=b'\202\323\344\223\002;"6/v1/{parent=projects/*/locations/*}/productSets:import:\001*\332A\023parent,input_config\312A3\n\031ImportProductSetsResponse\022\026BatchOperationMetadata', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="PurgeProducts", @@ -3177,6 +3325,7 @@ input_type=_PURGEPRODUCTSREQUEST, output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, serialized_options=b'\202\323\344\223\0027"2/v1/{parent=projects/*/locations/*}/products:purge:\001*\332A\006parent\312A/\n\025google.protobuf.Empty\022\026BatchOperationMetadata', + create_key=_descriptor._internal_create_key, ), ], ) diff --git a/google/cloud/vision_v1/proto/text_annotation_pb2.py b/google/cloud/vision_v1/proto/text_annotation_pb2.py index 0bdda5fb..1546bb23 100644 --- a/google/cloud/vision_v1/proto/text_annotation_pb2.py +++ b/google/cloud/vision_v1/proto/text_annotation_pb2.py @@ -23,6 +23,7 @@ package="google.cloud.vision.v1", syntax="proto3", serialized_options=b"\n\032com.google.cloud.vision.v1B\023TextAnnotationProtoP\001Z.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType\x12\x11\n\tis_prefix\x18\x02 \x01(\x08"c\n\tBreakType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05SPACE\x10\x01\x12\x0e\n\nSURE_SPACE\x10\x02\x12\x12\n\x0e\x45OL_SURE_SPACE\x10\x03\x12\n\n\x06HYPHEN\x10\x04\x12\x0e\n\nLINE_BREAK\x10\x05\x1a\xb1\x01\n\x0cTextProperty\x12S\n\x12\x64\x65tected_languages\x18\x01 \x03(\x0b\x32\x37.google.cloud.vision.v1.TextAnnotation.DetectedLanguage\x12L\n\x0e\x64\x65tected_break\x18\x02 \x01(\x0b\x32\x34.google.cloud.vision.v1.TextAnnotation.DetectedBreak"\xaf\x01\n\x04Page\x12\x45\n\x08property\x18\x01 \x01(\x0b\x32\x33.google.cloud.vision.v1.TextAnnotation.TextProperty\x12\r\n\x05width\x18\x02 \x01(\x05\x12\x0e\n\x06height\x18\x03 \x01(\x05\x12-\n\x06\x62locks\x18\x04 \x03(\x0b\x32\x1d.google.cloud.vision.v1.Block\x12\x12\n\nconfidence\x18\x05 \x01(\x02"\xe6\x02\n\x05\x42lock\x12\x45\n\x08property\x18\x01 \x01(\x0b\x32\x33.google.cloud.vision.v1.TextAnnotation.TextProperty\x12:\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly\x12\x35\n\nparagraphs\x18\x03 \x03(\x0b\x32!.google.cloud.vision.v1.Paragraph\x12;\n\nblock_type\x18\x04 \x01(\x0e\x32\'.google.cloud.vision.v1.Block.BlockType\x12\x12\n\nconfidence\x18\x05 \x01(\x02"R\n\tBlockType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04TEXT\x10\x01\x12\t\n\x05TABLE\x10\x02\x12\x0b\n\x07PICTURE\x10\x03\x12\t\n\x05RULER\x10\x04\x12\x0b\n\x07\x42\x41RCODE\x10\x05"\xcf\x01\n\tParagraph\x12\x45\n\x08property\x18\x01 \x01(\x0b\x32\x33.google.cloud.vision.v1.TextAnnotation.TextProperty\x12:\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly\x12+\n\x05words\x18\x03 \x03(\x0b\x32\x1c.google.cloud.vision.v1.Word\x12\x12\n\nconfidence\x18\x04 \x01(\x02"\xce\x01\n\x04Word\x12\x45\n\x08property\x18\x01 \x01(\x0b\x32\x33.google.cloud.vision.v1.TextAnnotation.TextProperty\x12:\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly\x12/\n\x07symbols\x18\x03 \x03(\x0b\x32\x1e.google.cloud.vision.v1.Symbol\x12\x12\n\nconfidence\x18\x04 \x01(\x02"\xad\x01\n\x06Symbol\x12\x45\n\x08property\x18\x01 \x01(\x0b\x32\x33.google.cloud.vision.v1.TextAnnotation.TextProperty\x12:\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly\x12\x0c\n\x04text\x18\x03 \x01(\t\x12\x12\n\nconfidence\x18\x04 \x01(\x02\x42{\n\x1a\x63om.google.cloud.vision.v1B\x13TextAnnotationProtoP\x01Z\n\tlocations\x18\x08 \x03(\x0b\x32+.google.cloud.vision.v1p1beta1.LocationInfo\x12;\n\nproperties\x18\t \x03(\x0b\x32\'.google.cloud.vision.v1p1beta1.Property"\xbc\x02\n\x14SafeSearchAnnotation\x12\x38\n\x05\x61\x64ult\x18\x01 \x01(\x0e\x32).google.cloud.vision.v1p1beta1.Likelihood\x12\x38\n\x05spoof\x18\x02 \x01(\x0e\x32).google.cloud.vision.v1p1beta1.Likelihood\x12:\n\x07medical\x18\x03 \x01(\x0e\x32).google.cloud.vision.v1p1beta1.Likelihood\x12;\n\x08violence\x18\x04 \x01(\x0e\x32).google.cloud.vision.v1p1beta1.Likelihood\x12\x37\n\x04racy\x18\t \x01(\x0e\x32).google.cloud.vision.v1p1beta1.Likelihood"a\n\x0bLatLongRect\x12(\n\x0bmin_lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng\x12(\n\x0bmax_lat_lng\x18\x02 \x01(\x0b\x32\x13.google.type.LatLng"U\n\tColorInfo\x12!\n\x05\x63olor\x18\x01 \x01(\x0b\x32\x12.google.type.Color\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x16\n\x0epixel_fraction\x18\x03 \x01(\x02"T\n\x18\x44ominantColorsAnnotation\x12\x38\n\x06\x63olors\x18\x01 \x03(\x0b\x32(.google.cloud.vision.v1p1beta1.ColorInfo"c\n\x0fImageProperties\x12P\n\x0f\x64ominant_colors\x18\x01 \x01(\x0b\x32\x37.google.cloud.vision.v1p1beta1.DominantColorsAnnotation"\x7f\n\x08\x43ropHint\x12\x42\n\rbounding_poly\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p1beta1.BoundingPoly\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12\x1b\n\x13importance_fraction\x18\x03 \x01(\x02"R\n\x13\x43ropHintsAnnotation\x12;\n\ncrop_hints\x18\x01 \x03(\x0b\x32\'.google.cloud.vision.v1p1beta1.CropHint"(\n\x0f\x43ropHintsParams\x12\x15\n\raspect_ratios\x18\x01 \x03(\x02"1\n\x12WebDetectionParams\x12\x1b\n\x13include_geo_results\x18\x02 \x01(\x08"\x85\x02\n\x0cImageContext\x12\x41\n\rlat_long_rect\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p1beta1.LatLongRect\x12\x16\n\x0elanguage_hints\x18\x02 \x03(\t\x12I\n\x11\x63rop_hints_params\x18\x04 \x01(\x0b\x32..google.cloud.vision.v1p1beta1.CropHintsParams\x12O\n\x14web_detection_params\x18\x06 \x01(\x0b\x32\x31.google.cloud.vision.v1p1beta1.WebDetectionParams"\xc9\x01\n\x14\x41nnotateImageRequest\x12\x33\n\x05image\x18\x01 \x01(\x0b\x32$.google.cloud.vision.v1p1beta1.Image\x12\x38\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32&.google.cloud.vision.v1p1beta1.Feature\x12\x42\n\rimage_context\x18\x03 \x01(\x0b\x32+.google.cloud.vision.v1p1beta1.ImageContext"\xc2\x06\n\x15\x41nnotateImageResponse\x12G\n\x10\x66\x61\x63\x65_annotations\x18\x01 \x03(\x0b\x32-.google.cloud.vision.v1p1beta1.FaceAnnotation\x12M\n\x14landmark_annotations\x18\x02 \x03(\x0b\x32/.google.cloud.vision.v1p1beta1.EntityAnnotation\x12I\n\x10logo_annotations\x18\x03 \x03(\x0b\x32/.google.cloud.vision.v1p1beta1.EntityAnnotation\x12J\n\x11label_annotations\x18\x04 \x03(\x0b\x32/.google.cloud.vision.v1p1beta1.EntityAnnotation\x12I\n\x10text_annotations\x18\x05 \x03(\x0b\x32/.google.cloud.vision.v1p1beta1.EntityAnnotation\x12K\n\x14\x66ull_text_annotation\x18\x0c \x01(\x0b\x32-.google.cloud.vision.v1p1beta1.TextAnnotation\x12S\n\x16safe_search_annotation\x18\x06 \x01(\x0b\x32\x33.google.cloud.vision.v1p1beta1.SafeSearchAnnotation\x12S\n\x1bimage_properties_annotation\x18\x08 \x01(\x0b\x32..google.cloud.vision.v1p1beta1.ImageProperties\x12Q\n\x15\x63rop_hints_annotation\x18\x0b \x01(\x0b\x32\x32.google.cloud.vision.v1p1beta1.CropHintsAnnotation\x12\x42\n\rweb_detection\x18\r \x01(\x0b\x32+.google.cloud.vision.v1p1beta1.WebDetection\x12!\n\x05\x65rror\x18\t \x01(\x0b\x32\x12.google.rpc.Status"h\n\x1a\x42\x61tchAnnotateImagesRequest\x12J\n\x08requests\x18\x01 \x03(\x0b\x32\x33.google.cloud.vision.v1p1beta1.AnnotateImageRequestB\x03\xe0\x41\x02"f\n\x1b\x42\x61tchAnnotateImagesResponse\x12G\n\tresponses\x18\x01 \x03(\x0b\x32\x34.google.cloud.vision.v1p1beta1.AnnotateImageResponse*e\n\nLikelihood\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x11\n\rVERY_UNLIKELY\x10\x01\x12\x0c\n\x08UNLIKELY\x10\x02\x12\x0c\n\x08POSSIBLE\x10\x03\x12\n\n\x06LIKELY\x10\x04\x12\x0f\n\x0bVERY_LIKELY\x10\x05\x32\xc9\x02\n\x0eImageAnnotator\x12\xbe\x01\n\x13\x42\x61tchAnnotateImages\x12\x39.google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest\x1a:.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse"0\x82\xd3\xe4\x93\x02\x1f"\x1a/v1p1beta1/images:annotate:\x01*\xda\x41\x08requests\x1av\xca\x41\x15vision.googleapis.com\xd2\x41[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-visionB\x82\x01\n!com.google.cloud.vision.v1p1beta1B\x13ImageAnnotatorProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p1beta1;vision\xf8\x01\x01\x62\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, @@ -54,24 +55,55 @@ full_name="google.cloud.vision.v1p1beta1.Likelihood", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="UNKNOWN", index=0, number=0, serialized_options=None, type=None + name="UNKNOWN", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="VERY_UNLIKELY", index=1, number=1, serialized_options=None, type=None + name="VERY_UNLIKELY", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="UNLIKELY", index=2, number=2, serialized_options=None, type=None + name="UNLIKELY", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="POSSIBLE", index=3, number=3, serialized_options=None, type=None + name="POSSIBLE", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="LIKELY", index=4, number=4, serialized_options=None, type=None + name="LIKELY", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="VERY_LIKELY", index=5, number=5, serialized_options=None, type=None + name="VERY_LIKELY", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -95,6 +127,7 @@ full_name="google.cloud.vision.v1p1beta1.Feature.Type", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="TYPE_UNSPECIFIED", @@ -102,9 +135,15 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="FACE_DETECTION", index=1, number=1, serialized_options=None, type=None + name="FACE_DETECTION", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="LANDMARK_DETECTION", @@ -112,9 +151,15 @@ number=2, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="LOGO_DETECTION", index=3, number=3, serialized_options=None, type=None + name="LOGO_DETECTION", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="LABEL_DETECTION", @@ -122,9 +167,15 @@ number=4, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="TEXT_DETECTION", index=5, number=5, serialized_options=None, type=None + name="TEXT_DETECTION", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="DOCUMENT_TEXT_DETECTION", @@ -132,6 +183,7 @@ number=11, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="SAFE_SEARCH_DETECTION", @@ -139,6 +191,7 @@ number=6, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="IMAGE_PROPERTIES", @@ -146,9 +199,15 @@ number=7, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="CROP_HINTS", index=9, number=9, serialized_options=None, type=None + name="CROP_HINTS", + index=9, + number=9, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="WEB_DETECTION", @@ -156,6 +215,7 @@ number=10, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -170,6 +230,7 @@ full_name="google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark.Type", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="UNKNOWN_LANDMARK", @@ -177,12 +238,23 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="LEFT_EYE", index=1, number=1, serialized_options=None, type=None + name="LEFT_EYE", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="RIGHT_EYE", index=2, number=2, serialized_options=None, type=None + name="RIGHT_EYE", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="LEFT_OF_LEFT_EYEBROW", @@ -190,6 +262,7 @@ number=3, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="RIGHT_OF_LEFT_EYEBROW", @@ -197,6 +270,7 @@ number=4, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="LEFT_OF_RIGHT_EYEBROW", @@ -204,6 +278,7 @@ number=5, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="RIGHT_OF_RIGHT_EYEBROW", @@ -211,6 +286,7 @@ number=6, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="MIDPOINT_BETWEEN_EYES", @@ -218,24 +294,55 @@ number=7, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NOSE_TIP", index=8, number=8, serialized_options=None, type=None + name="NOSE_TIP", + index=8, + number=8, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="UPPER_LIP", index=9, number=9, serialized_options=None, type=None + name="UPPER_LIP", + index=9, + number=9, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="LOWER_LIP", index=10, number=10, serialized_options=None, type=None + name="LOWER_LIP", + index=10, + number=10, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="MOUTH_LEFT", index=11, number=11, serialized_options=None, type=None + name="MOUTH_LEFT", + index=11, + number=11, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="MOUTH_RIGHT", index=12, number=12, serialized_options=None, type=None + name="MOUTH_RIGHT", + index=12, + number=12, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="MOUTH_CENTER", index=13, number=13, serialized_options=None, type=None + name="MOUTH_CENTER", + index=13, + number=13, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="NOSE_BOTTOM_RIGHT", @@ -243,6 +350,7 @@ number=14, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="NOSE_BOTTOM_LEFT", @@ -250,6 +358,7 @@ number=15, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="NOSE_BOTTOM_CENTER", @@ -257,6 +366,7 @@ number=16, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="LEFT_EYE_TOP_BOUNDARY", @@ -264,6 +374,7 @@ number=17, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="LEFT_EYE_RIGHT_CORNER", @@ -271,6 +382,7 @@ number=18, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="LEFT_EYE_BOTTOM_BOUNDARY", @@ -278,6 +390,7 @@ number=19, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="LEFT_EYE_LEFT_CORNER", @@ -285,6 +398,7 @@ number=20, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="RIGHT_EYE_TOP_BOUNDARY", @@ -292,6 +406,7 @@ number=21, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="RIGHT_EYE_RIGHT_CORNER", @@ -299,6 +414,7 @@ number=22, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="RIGHT_EYE_BOTTOM_BOUNDARY", @@ -306,6 +422,7 @@ number=23, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="RIGHT_EYE_LEFT_CORNER", @@ -313,6 +430,7 @@ number=24, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="LEFT_EYEBROW_UPPER_MIDPOINT", @@ -320,6 +438,7 @@ number=25, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="RIGHT_EYEBROW_UPPER_MIDPOINT", @@ -327,6 +446,7 @@ number=26, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="LEFT_EAR_TRAGION", @@ -334,6 +454,7 @@ number=27, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="RIGHT_EAR_TRAGION", @@ -341,6 +462,7 @@ number=28, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="LEFT_EYE_PUPIL", @@ -348,6 +470,7 @@ number=29, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="RIGHT_EYE_PUPIL", @@ -355,6 +478,7 @@ number=30, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="FOREHEAD_GLABELLA", @@ -362,6 +486,7 @@ number=31, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="CHIN_GNATHION", @@ -369,6 +494,7 @@ number=32, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="CHIN_LEFT_GONION", @@ -376,6 +502,7 @@ number=33, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="CHIN_RIGHT_GONION", @@ -383,6 +510,7 @@ number=34, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -399,6 +527,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="type", @@ -417,6 +546,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="max_results", @@ -435,6 +565,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="model", @@ -453,6 +584,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -474,6 +606,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="gcs_image_uri", @@ -492,6 +625,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="image_uri", @@ -510,6 +644,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -531,6 +666,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="content", @@ -549,6 +685,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="source", @@ -567,6 +704,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -588,6 +726,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="type", @@ -606,6 +745,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="position", @@ -624,6 +764,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -644,6 +785,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="bounding_poly", @@ -662,6 +804,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="fd_bounding_poly", @@ -680,6 +823,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="landmarks", @@ -698,6 +842,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="roll_angle", @@ -716,6 +861,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="pan_angle", @@ -734,6 +880,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="tilt_angle", @@ -752,6 +899,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="detection_confidence", @@ -770,6 +918,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="landmarking_confidence", @@ -788,6 +937,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="joy_likelihood", @@ -806,6 +956,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="sorrow_likelihood", @@ -824,6 +975,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="anger_likelihood", @@ -842,6 +994,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="surprise_likelihood", @@ -860,6 +1013,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="under_exposed_likelihood", @@ -878,6 +1032,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="blurred_likelihood", @@ -896,6 +1051,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="headwear_likelihood", @@ -914,6 +1070,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -935,6 +1092,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="lat_lng", @@ -953,6 +1111,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -974,6 +1133,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -992,6 +1152,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="value", @@ -1010,6 +1171,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="uint64_value", @@ -1028,6 +1190,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1049,6 +1212,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="mid", @@ -1067,6 +1231,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="locale", @@ -1085,6 +1250,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="description", @@ -1103,6 +1269,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="score", @@ -1121,6 +1288,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="confidence", @@ -1139,6 +1307,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="topicality", @@ -1157,6 +1326,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="bounding_poly", @@ -1175,6 +1345,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="locations", @@ -1193,6 +1364,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="properties", @@ -1211,6 +1383,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1232,6 +1405,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="adult", @@ -1250,6 +1424,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="spoof", @@ -1268,6 +1443,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="medical", @@ -1286,6 +1462,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="violence", @@ -1304,6 +1481,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="racy", @@ -1322,6 +1500,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1343,6 +1522,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="min_lat_lng", @@ -1361,6 +1541,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="max_lat_lng", @@ -1379,6 +1560,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1400,6 +1582,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="color", @@ -1418,6 +1601,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="score", @@ -1436,6 +1620,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="pixel_fraction", @@ -1454,6 +1639,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1475,6 +1661,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="colors", @@ -1493,6 +1680,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -1514,6 +1702,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="dominant_colors", @@ -1532,6 +1721,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -1553,6 +1743,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="bounding_poly", @@ -1571,6 +1762,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="confidence", @@ -1589,6 +1781,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="importance_fraction", @@ -1607,6 +1800,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1628,6 +1822,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="crop_hints", @@ -1646,6 +1841,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -1667,6 +1863,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="aspect_ratios", @@ -1685,6 +1882,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -1706,6 +1904,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="include_geo_results", @@ -1724,6 +1923,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -1745,6 +1945,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="lat_long_rect", @@ -1763,6 +1964,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="language_hints", @@ -1781,6 +1983,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="crop_hints_params", @@ -1799,6 +2002,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="web_detection_params", @@ -1817,6 +2021,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1838,6 +2043,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="image", @@ -1856,6 +2062,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="features", @@ -1874,6 +2081,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="image_context", @@ -1892,6 +2100,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1913,6 +2122,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="face_annotations", @@ -1931,6 +2141,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="landmark_annotations", @@ -1949,6 +2160,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="logo_annotations", @@ -1967,6 +2179,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="label_annotations", @@ -1985,6 +2198,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="text_annotations", @@ -2003,6 +2217,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="full_text_annotation", @@ -2021,6 +2236,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="safe_search_annotation", @@ -2039,6 +2255,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="image_properties_annotation", @@ -2057,6 +2274,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="crop_hints_annotation", @@ -2075,6 +2293,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="web_detection", @@ -2093,6 +2312,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="error", @@ -2111,6 +2331,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2132,6 +2353,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="requests", @@ -2150,6 +2372,7 @@ extension_scope=None, serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -2171,6 +2394,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="responses", @@ -2189,6 +2413,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -2908,6 +3133,7 @@ file=DESCRIPTOR, index=0, serialized_options=b"\312A\025vision.googleapis.com\322A[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-vision", + create_key=_descriptor._internal_create_key, serialized_start=5798, serialized_end=6127, methods=[ @@ -2919,6 +3145,7 @@ input_type=_BATCHANNOTATEIMAGESREQUEST, output_type=_BATCHANNOTATEIMAGESRESPONSE, serialized_options=b'\202\323\344\223\002\037"\032/v1p1beta1/images:annotate:\001*\332A\010requests', + create_key=_descriptor._internal_create_key, ) ], ) diff --git a/google/cloud/vision_v1p1beta1/proto/text_annotation_pb2.py b/google/cloud/vision_v1p1beta1/proto/text_annotation_pb2.py index 36a2f499..44281142 100644 --- a/google/cloud/vision_v1p1beta1/proto/text_annotation_pb2.py +++ b/google/cloud/vision_v1p1beta1/proto/text_annotation_pb2.py @@ -23,6 +23,7 @@ package="google.cloud.vision.v1p1beta1", syntax="proto3", serialized_options=b"\n!com.google.cloud.vision.v1p1beta1B\023TextAnnotationProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p1beta1;vision\370\001\001", + create_key=_descriptor._internal_create_key, serialized_pb=b'\n9google/cloud/vision_v1p1beta1/proto/text_annotation.proto\x12\x1dgoogle.cloud.vision.v1p1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x32google/cloud/vision_v1p1beta1/proto/geometry.proto"\xb2\x04\n\x0eTextAnnotation\x12\x32\n\x05pages\x18\x01 \x03(\x0b\x32#.google.cloud.vision.v1p1beta1.Page\x12\x0c\n\x04text\x18\x02 \x01(\t\x1a=\n\x10\x44\x65tectedLanguage\x12\x15\n\rlanguage_code\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x1a\xdc\x01\n\rDetectedBreak\x12S\n\x04type\x18\x01 \x01(\x0e\x32\x45.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType\x12\x11\n\tis_prefix\x18\x02 \x01(\x08"c\n\tBreakType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05SPACE\x10\x01\x12\x0e\n\nSURE_SPACE\x10\x02\x12\x12\n\x0e\x45OL_SURE_SPACE\x10\x03\x12\n\n\x06HYPHEN\x10\x04\x12\x0e\n\nLINE_BREAK\x10\x05\x1a\xbf\x01\n\x0cTextProperty\x12Z\n\x12\x64\x65tected_languages\x18\x01 \x03(\x0b\x32>.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage\x12S\n\x0e\x64\x65tected_break\x18\x02 \x01(\x0b\x32;.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak"\xbd\x01\n\x04Page\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty\x12\r\n\x05width\x18\x02 \x01(\x05\x12\x0e\n\x06height\x18\x03 \x01(\x05\x12\x34\n\x06\x62locks\x18\x04 \x03(\x0b\x32$.google.cloud.vision.v1p1beta1.Block\x12\x12\n\nconfidence\x18\x05 \x01(\x02"\x82\x03\n\x05\x42lock\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p1beta1.BoundingPoly\x12<\n\nparagraphs\x18\x03 \x03(\x0b\x32(.google.cloud.vision.v1p1beta1.Paragraph\x12\x42\n\nblock_type\x18\x04 \x01(\x0e\x32..google.cloud.vision.v1p1beta1.Block.BlockType\x12\x12\n\nconfidence\x18\x05 \x01(\x02"R\n\tBlockType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04TEXT\x10\x01\x12\t\n\x05TABLE\x10\x02\x12\x0b\n\x07PICTURE\x10\x03\x12\t\n\x05RULER\x10\x04\x12\x0b\n\x07\x42\x41RCODE\x10\x05"\xe4\x01\n\tParagraph\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p1beta1.BoundingPoly\x12\x32\n\x05words\x18\x03 \x03(\x0b\x32#.google.cloud.vision.v1p1beta1.Word\x12\x12\n\nconfidence\x18\x04 \x01(\x02"\xe3\x01\n\x04Word\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p1beta1.BoundingPoly\x12\x36\n\x07symbols\x18\x03 \x03(\x0b\x32%.google.cloud.vision.v1p1beta1.Symbol\x12\x12\n\nconfidence\x18\x04 \x01(\x02"\xbb\x01\n\x06Symbol\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p1beta1.BoundingPoly\x12\x0c\n\x04text\x18\x03 \x01(\t\x12\x12\n\nconfidence\x18\x04 \x01(\x02\x42\x82\x01\n!com.google.cloud.vision.v1p1beta1B\x13TextAnnotationProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p1beta1;vision\xf8\x01\x01\x62\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, @@ -36,24 +37,55 @@ full_name="google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak.BreakType", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="UNKNOWN", index=0, number=0, serialized_options=None, type=None + name="UNKNOWN", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="SPACE", index=1, number=1, serialized_options=None, type=None + name="SPACE", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="SURE_SPACE", index=2, number=2, serialized_options=None, type=None + name="SURE_SPACE", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="EOL_SURE_SPACE", index=3, number=3, serialized_options=None, type=None + name="EOL_SURE_SPACE", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="HYPHEN", index=4, number=4, serialized_options=None, type=None + name="HYPHEN", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="LINE_BREAK", index=5, number=5, serialized_options=None, type=None + name="LINE_BREAK", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -68,24 +100,55 @@ full_name="google.cloud.vision.v1p1beta1.Block.BlockType", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="UNKNOWN", index=0, number=0, serialized_options=None, type=None + name="UNKNOWN", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="TEXT", index=1, number=1, serialized_options=None, type=None + name="TEXT", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="TABLE", index=2, number=2, serialized_options=None, type=None + name="TABLE", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PICTURE", index=3, number=3, serialized_options=None, type=None + name="PICTURE", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="RULER", index=4, number=4, serialized_options=None, type=None + name="RULER", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="BARCODE", index=5, number=5, serialized_options=None, type=None + name="BARCODE", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -102,6 +165,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="language_code", @@ -120,6 +184,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="confidence", @@ -138,6 +203,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -158,6 +224,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="type", @@ -176,6 +243,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="is_prefix", @@ -194,6 +262,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -214,6 +283,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="detected_languages", @@ -232,6 +302,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="detected_break", @@ -250,6 +321,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -270,6 +342,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="pages", @@ -288,6 +361,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="text", @@ -306,6 +380,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -331,6 +406,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="property", @@ -349,6 +425,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="width", @@ -367,6 +444,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="height", @@ -385,6 +463,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="blocks", @@ -403,6 +482,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="confidence", @@ -421,6 +501,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -442,6 +523,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="property", @@ -460,6 +542,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="bounding_box", @@ -478,6 +561,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="paragraphs", @@ -496,6 +580,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="block_type", @@ -514,6 +599,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="confidence", @@ -532,6 +618,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -553,6 +640,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="property", @@ -571,6 +659,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="bounding_box", @@ -589,6 +678,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="words", @@ -607,6 +697,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="confidence", @@ -625,6 +716,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -646,6 +738,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="property", @@ -664,6 +757,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="bounding_box", @@ -682,6 +776,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="symbols", @@ -700,6 +795,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="confidence", @@ -718,6 +814,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -739,6 +836,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="property", @@ -757,6 +855,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="bounding_box", @@ -775,6 +874,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="text", @@ -793,6 +893,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="confidence", @@ -811,6 +912,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], diff --git a/google/cloud/vision_v1p1beta1/proto/web_detection_pb2.py b/google/cloud/vision_v1p1beta1/proto/web_detection_pb2.py index f3087b50..bac53ed0 100644 --- a/google/cloud/vision_v1p1beta1/proto/web_detection_pb2.py +++ b/google/cloud/vision_v1p1beta1/proto/web_detection_pb2.py @@ -20,6 +20,7 @@ package="google.cloud.vision.v1p1beta1", syntax="proto3", serialized_options=b"\n!com.google.cloud.vision.v1p1beta1B\021WebDetectionProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p1beta1;vision\370\001\001", + create_key=_descriptor._internal_create_key, serialized_pb=b'\n7google/cloud/vision_v1p1beta1/proto/web_detection.proto\x12\x1dgoogle.cloud.vision.v1p1beta1\x1a\x1cgoogle/api/annotations.proto"\x8c\x07\n\x0cWebDetection\x12K\n\x0cweb_entities\x18\x01 \x03(\x0b\x32\x35.google.cloud.vision.v1p1beta1.WebDetection.WebEntity\x12R\n\x14\x66ull_matching_images\x18\x02 \x03(\x0b\x32\x34.google.cloud.vision.v1p1beta1.WebDetection.WebImage\x12U\n\x17partial_matching_images\x18\x03 \x03(\x0b\x32\x34.google.cloud.vision.v1p1beta1.WebDetection.WebImage\x12W\n\x1apages_with_matching_images\x18\x04 \x03(\x0b\x32\x33.google.cloud.vision.v1p1beta1.WebDetection.WebPage\x12U\n\x17visually_similar_images\x18\x06 \x03(\x0b\x32\x34.google.cloud.vision.v1p1beta1.WebDetection.WebImage\x12O\n\x11\x62\x65st_guess_labels\x18\x08 \x03(\x0b\x32\x34.google.cloud.vision.v1p1beta1.WebDetection.WebLabel\x1a\x42\n\tWebEntity\x12\x11\n\tentity_id\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x1a&\n\x08WebImage\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x1a\xe4\x01\n\x07WebPage\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x12\n\npage_title\x18\x03 \x01(\t\x12R\n\x14\x66ull_matching_images\x18\x04 \x03(\x0b\x32\x34.google.cloud.vision.v1p1beta1.WebDetection.WebImage\x12U\n\x17partial_matching_images\x18\x05 \x03(\x0b\x32\x34.google.cloud.vision.v1p1beta1.WebDetection.WebImage\x1a\x30\n\x08WebLabel\x12\r\n\x05label\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x02 \x01(\tB\x80\x01\n!com.google.cloud.vision.v1p1beta1B\x11WebDetectionProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p1beta1;vision\xf8\x01\x01\x62\x06proto3', dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR], ) @@ -31,6 +32,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="entity_id", @@ -49,6 +51,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="score", @@ -67,6 +70,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="description", @@ -85,6 +89,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -105,6 +110,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="url", @@ -123,6 +129,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="score", @@ -141,6 +148,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -161,6 +169,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="url", @@ -179,6 +188,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="score", @@ -197,6 +207,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_title", @@ -215,6 +226,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="full_matching_images", @@ -233,6 +245,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="partial_matching_images", @@ -251,6 +264,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -271,6 +285,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="label", @@ -289,6 +304,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="language_code", @@ -307,6 +323,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -327,6 +344,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="web_entities", @@ -345,6 +363,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="full_matching_images", @@ -363,6 +382,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="partial_matching_images", @@ -381,6 +401,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="pages_with_matching_images", @@ -399,6 +420,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="visually_similar_images", @@ -417,6 +439,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="best_guess_labels", @@ -435,6 +458,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], diff --git a/google/cloud/vision_v1p2beta1/proto/geometry_pb2.py b/google/cloud/vision_v1p2beta1/proto/geometry_pb2.py index 8636a231..4ad2c613 100644 --- a/google/cloud/vision_v1p2beta1/proto/geometry_pb2.py +++ b/google/cloud/vision_v1p2beta1/proto/geometry_pb2.py @@ -17,6 +17,7 @@ package="google.cloud.vision.v1p2beta1", syntax="proto3", serialized_options=b"\n!com.google.cloud.vision.v1p2beta1B\rGeometryProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision\370\001\001", + create_key=_descriptor._internal_create_key, serialized_pb=b'\n2google/cloud/vision_v1p2beta1/proto/geometry.proto\x12\x1dgoogle.cloud.vision.v1p2beta1"\x1e\n\x06Vertex\x12\t\n\x01x\x18\x01 \x01(\x05\x12\t\n\x01y\x18\x02 \x01(\x05"(\n\x10NormalizedVertex\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02"\x95\x01\n\x0c\x42oundingPoly\x12\x37\n\x08vertices\x18\x01 \x03(\x0b\x32%.google.cloud.vision.v1p2beta1.Vertex\x12L\n\x13normalized_vertices\x18\x02 \x03(\x0b\x32/.google.cloud.vision.v1p2beta1.NormalizedVertex"+\n\x08Position\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02\x12\t\n\x01z\x18\x03 \x01(\x02\x42|\n!com.google.cloud.vision.v1p2beta1B\rGeometryProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision\xf8\x01\x01\x62\x06proto3', ) @@ -27,6 +28,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="x", @@ -45,6 +47,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="y", @@ -63,6 +66,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -84,6 +88,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="x", @@ -102,6 +107,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="y", @@ -120,6 +126,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -141,6 +148,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="vertices", @@ -159,6 +167,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="normalized_vertices", @@ -177,6 +186,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -198,6 +208,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="x", @@ -216,6 +227,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="y", @@ -234,6 +246,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="z", @@ -252,6 +265,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], diff --git a/google/cloud/vision_v1p2beta1/proto/image_annotator_pb2.py b/google/cloud/vision_v1p2beta1/proto/image_annotator_pb2.py index 16d08ceb..28ef3a46 100644 --- a/google/cloud/vision_v1p2beta1/proto/image_annotator_pb2.py +++ b/google/cloud/vision_v1p2beta1/proto/image_annotator_pb2.py @@ -39,6 +39,7 @@ package="google.cloud.vision.v1p2beta1", syntax="proto3", serialized_options=b"\n!com.google.cloud.vision.v1p2beta1B\023ImageAnnotatorProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision\370\001\001", + create_key=_descriptor._internal_create_key, serialized_pb=b'\n9google/cloud/vision_v1p2beta1/proto/image_annotator.proto\x12\x1dgoogle.cloud.vision.v1p2beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x32google/cloud/vision_v1p2beta1/proto/geometry.proto\x1a\x39google/cloud/vision_v1p2beta1/proto/text_annotation.proto\x1a\x37google/cloud/vision_v1p2beta1/proto/web_detection.proto\x1a#google/longrunning/operations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a\x17google/type/color.proto\x1a\x18google/type/latlng.proto"\xe1\x02\n\x07\x46\x65\x61ture\x12\x39\n\x04type\x18\x01 \x01(\x0e\x32+.google.cloud.vision.v1p2beta1.Feature.Type\x12\x13\n\x0bmax_results\x18\x02 \x01(\x05\x12\r\n\x05model\x18\x03 \x01(\t"\xf6\x01\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x46\x41\x43\x45_DETECTION\x10\x01\x12\x16\n\x12LANDMARK_DETECTION\x10\x02\x12\x12\n\x0eLOGO_DETECTION\x10\x03\x12\x13\n\x0fLABEL_DETECTION\x10\x04\x12\x12\n\x0eTEXT_DETECTION\x10\x05\x12\x1b\n\x17\x44OCUMENT_TEXT_DETECTION\x10\x0b\x12\x19\n\x15SAFE_SEARCH_DETECTION\x10\x06\x12\x14\n\x10IMAGE_PROPERTIES\x10\x07\x12\x0e\n\nCROP_HINTS\x10\t\x12\x11\n\rWEB_DETECTION\x10\n"7\n\x0bImageSource\x12\x15\n\rgcs_image_uri\x18\x01 \x01(\t\x12\x11\n\timage_uri\x18\x02 \x01(\t"T\n\x05Image\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\x0c\x12:\n\x06source\x18\x02 \x01(\x0b\x32*.google.cloud.vision.v1p2beta1.ImageSource"\x9b\x0e\n\x0e\x46\x61\x63\x65\x41nnotation\x12\x42\n\rbounding_poly\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.BoundingPoly\x12\x45\n\x10\x66\x64_bounding_poly\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.BoundingPoly\x12I\n\tlandmarks\x18\x03 \x03(\x0b\x32\x36.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark\x12\x12\n\nroll_angle\x18\x04 \x01(\x02\x12\x11\n\tpan_angle\x18\x05 \x01(\x02\x12\x12\n\ntilt_angle\x18\x06 \x01(\x02\x12\x1c\n\x14\x64\x65tection_confidence\x18\x07 \x01(\x02\x12\x1e\n\x16landmarking_confidence\x18\x08 \x01(\x02\x12\x41\n\x0ejoy_likelihood\x18\t \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12\x44\n\x11sorrow_likelihood\x18\n \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12\x43\n\x10\x61nger_likelihood\x18\x0b \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12\x46\n\x13surprise_likelihood\x18\x0c \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12K\n\x18under_exposed_likelihood\x18\r \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12\x45\n\x12\x62lurred_likelihood\x18\x0e \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12\x46\n\x13headwear_likelihood\x18\x0f \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x1a\xc7\x07\n\x08Landmark\x12I\n\x04type\x18\x03 \x01(\x0e\x32;.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type\x12\x39\n\x08position\x18\x04 \x01(\x0b\x32\'.google.cloud.vision.v1p2beta1.Position"\xb4\x06\n\x04Type\x12\x14\n\x10UNKNOWN_LANDMARK\x10\x00\x12\x0c\n\x08LEFT_EYE\x10\x01\x12\r\n\tRIGHT_EYE\x10\x02\x12\x18\n\x14LEFT_OF_LEFT_EYEBROW\x10\x03\x12\x19\n\x15RIGHT_OF_LEFT_EYEBROW\x10\x04\x12\x19\n\x15LEFT_OF_RIGHT_EYEBROW\x10\x05\x12\x1a\n\x16RIGHT_OF_RIGHT_EYEBROW\x10\x06\x12\x19\n\x15MIDPOINT_BETWEEN_EYES\x10\x07\x12\x0c\n\x08NOSE_TIP\x10\x08\x12\r\n\tUPPER_LIP\x10\t\x12\r\n\tLOWER_LIP\x10\n\x12\x0e\n\nMOUTH_LEFT\x10\x0b\x12\x0f\n\x0bMOUTH_RIGHT\x10\x0c\x12\x10\n\x0cMOUTH_CENTER\x10\r\x12\x15\n\x11NOSE_BOTTOM_RIGHT\x10\x0e\x12\x14\n\x10NOSE_BOTTOM_LEFT\x10\x0f\x12\x16\n\x12NOSE_BOTTOM_CENTER\x10\x10\x12\x19\n\x15LEFT_EYE_TOP_BOUNDARY\x10\x11\x12\x19\n\x15LEFT_EYE_RIGHT_CORNER\x10\x12\x12\x1c\n\x18LEFT_EYE_BOTTOM_BOUNDARY\x10\x13\x12\x18\n\x14LEFT_EYE_LEFT_CORNER\x10\x14\x12\x1a\n\x16RIGHT_EYE_TOP_BOUNDARY\x10\x15\x12\x1a\n\x16RIGHT_EYE_RIGHT_CORNER\x10\x16\x12\x1d\n\x19RIGHT_EYE_BOTTOM_BOUNDARY\x10\x17\x12\x19\n\x15RIGHT_EYE_LEFT_CORNER\x10\x18\x12\x1f\n\x1bLEFT_EYEBROW_UPPER_MIDPOINT\x10\x19\x12 \n\x1cRIGHT_EYEBROW_UPPER_MIDPOINT\x10\x1a\x12\x14\n\x10LEFT_EAR_TRAGION\x10\x1b\x12\x15\n\x11RIGHT_EAR_TRAGION\x10\x1c\x12\x12\n\x0eLEFT_EYE_PUPIL\x10\x1d\x12\x13\n\x0fRIGHT_EYE_PUPIL\x10\x1e\x12\x15\n\x11\x46OREHEAD_GLABELLA\x10\x1f\x12\x11\n\rCHIN_GNATHION\x10 \x12\x14\n\x10\x43HIN_LEFT_GONION\x10!\x12\x15\n\x11\x43HIN_RIGHT_GONION\x10""4\n\x0cLocationInfo\x12$\n\x07lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng"=\n\x08Property\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x14\n\x0cuint64_value\x18\x03 \x01(\x04"\xbc\x02\n\x10\x45ntityAnnotation\x12\x0b\n\x03mid\x18\x01 \x01(\t\x12\x0e\n\x06locale\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\r\n\x05score\x18\x04 \x01(\x02\x12\x12\n\nconfidence\x18\x05 \x01(\x02\x12\x12\n\ntopicality\x18\x06 \x01(\x02\x12\x42\n\rbounding_poly\x18\x07 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.BoundingPoly\x12>\n\tlocations\x18\x08 \x03(\x0b\x32+.google.cloud.vision.v1p2beta1.LocationInfo\x12;\n\nproperties\x18\t \x03(\x0b\x32\'.google.cloud.vision.v1p2beta1.Property"\xbc\x02\n\x14SafeSearchAnnotation\x12\x38\n\x05\x61\x64ult\x18\x01 \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12\x38\n\x05spoof\x18\x02 \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12:\n\x07medical\x18\x03 \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12;\n\x08violence\x18\x04 \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood\x12\x37\n\x04racy\x18\t \x01(\x0e\x32).google.cloud.vision.v1p2beta1.Likelihood"a\n\x0bLatLongRect\x12(\n\x0bmin_lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng\x12(\n\x0bmax_lat_lng\x18\x02 \x01(\x0b\x32\x13.google.type.LatLng"U\n\tColorInfo\x12!\n\x05\x63olor\x18\x01 \x01(\x0b\x32\x12.google.type.Color\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x16\n\x0epixel_fraction\x18\x03 \x01(\x02"T\n\x18\x44ominantColorsAnnotation\x12\x38\n\x06\x63olors\x18\x01 \x03(\x0b\x32(.google.cloud.vision.v1p2beta1.ColorInfo"c\n\x0fImageProperties\x12P\n\x0f\x64ominant_colors\x18\x01 \x01(\x0b\x32\x37.google.cloud.vision.v1p2beta1.DominantColorsAnnotation"\x7f\n\x08\x43ropHint\x12\x42\n\rbounding_poly\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.BoundingPoly\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12\x1b\n\x13importance_fraction\x18\x03 \x01(\x02"R\n\x13\x43ropHintsAnnotation\x12;\n\ncrop_hints\x18\x01 \x03(\x0b\x32\'.google.cloud.vision.v1p2beta1.CropHint"(\n\x0f\x43ropHintsParams\x12\x15\n\raspect_ratios\x18\x01 \x03(\x02"1\n\x12WebDetectionParams\x12\x1b\n\x13include_geo_results\x18\x02 \x01(\x08"\x85\x02\n\x0cImageContext\x12\x41\n\rlat_long_rect\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p2beta1.LatLongRect\x12\x16\n\x0elanguage_hints\x18\x02 \x03(\t\x12I\n\x11\x63rop_hints_params\x18\x04 \x01(\x0b\x32..google.cloud.vision.v1p2beta1.CropHintsParams\x12O\n\x14web_detection_params\x18\x06 \x01(\x0b\x32\x31.google.cloud.vision.v1p2beta1.WebDetectionParams"\xc9\x01\n\x14\x41nnotateImageRequest\x12\x33\n\x05image\x18\x01 \x01(\x0b\x32$.google.cloud.vision.v1p2beta1.Image\x12\x38\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32&.google.cloud.vision.v1p2beta1.Feature\x12\x42\n\rimage_context\x18\x03 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.ImageContext":\n\x16ImageAnnotationContext\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x13\n\x0bpage_number\x18\x02 \x01(\x05"\x8a\x07\n\x15\x41nnotateImageResponse\x12G\n\x10\x66\x61\x63\x65_annotations\x18\x01 \x03(\x0b\x32-.google.cloud.vision.v1p2beta1.FaceAnnotation\x12M\n\x14landmark_annotations\x18\x02 \x03(\x0b\x32/.google.cloud.vision.v1p2beta1.EntityAnnotation\x12I\n\x10logo_annotations\x18\x03 \x03(\x0b\x32/.google.cloud.vision.v1p2beta1.EntityAnnotation\x12J\n\x11label_annotations\x18\x04 \x03(\x0b\x32/.google.cloud.vision.v1p2beta1.EntityAnnotation\x12I\n\x10text_annotations\x18\x05 \x03(\x0b\x32/.google.cloud.vision.v1p2beta1.EntityAnnotation\x12K\n\x14\x66ull_text_annotation\x18\x0c \x01(\x0b\x32-.google.cloud.vision.v1p2beta1.TextAnnotation\x12S\n\x16safe_search_annotation\x18\x06 \x01(\x0b\x32\x33.google.cloud.vision.v1p2beta1.SafeSearchAnnotation\x12S\n\x1bimage_properties_annotation\x18\x08 \x01(\x0b\x32..google.cloud.vision.v1p2beta1.ImageProperties\x12Q\n\x15\x63rop_hints_annotation\x18\x0b \x01(\x0b\x32\x32.google.cloud.vision.v1p2beta1.CropHintsAnnotation\x12\x42\n\rweb_detection\x18\r \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.WebDetection\x12!\n\x05\x65rror\x18\t \x01(\x0b\x32\x12.google.rpc.Status\x12\x46\n\x07\x63ontext\x18\x15 \x01(\x0b\x32\x35.google.cloud.vision.v1p2beta1.ImageAnnotationContext"\xa1\x01\n\x14\x41nnotateFileResponse\x12@\n\x0cinput_config\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p2beta1.InputConfig\x12G\n\tresponses\x18\x02 \x03(\x0b\x32\x34.google.cloud.vision.v1p2beta1.AnnotateImageResponse"h\n\x1a\x42\x61tchAnnotateImagesRequest\x12J\n\x08requests\x18\x01 \x03(\x0b\x32\x33.google.cloud.vision.v1p2beta1.AnnotateImageRequestB\x03\xe0\x41\x02"f\n\x1b\x42\x61tchAnnotateImagesResponse\x12G\n\tresponses\x18\x01 \x03(\x0b\x32\x34.google.cloud.vision.v1p2beta1.AnnotateImageResponse"\x9e\x02\n\x18\x41syncAnnotateFileRequest\x12@\n\x0cinput_config\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p2beta1.InputConfig\x12\x38\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32&.google.cloud.vision.v1p2beta1.Feature\x12\x42\n\rimage_context\x18\x03 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.ImageContext\x12\x42\n\routput_config\x18\x04 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.OutputConfig"_\n\x19\x41syncAnnotateFileResponse\x12\x42\n\routput_config\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.OutputConfig"p\n\x1e\x41syncBatchAnnotateFilesRequest\x12N\n\x08requests\x18\x01 \x03(\x0b\x32\x37.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequestB\x03\xe0\x41\x02"n\n\x1f\x41syncBatchAnnotateFilesResponse\x12K\n\tresponses\x18\x01 \x03(\x0b\x32\x38.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse"^\n\x0bInputConfig\x12<\n\ngcs_source\x18\x01 \x01(\x0b\x32(.google.cloud.vision.v1p2beta1.GcsSource\x12\x11\n\tmime_type\x18\x02 \x01(\t"j\n\x0cOutputConfig\x12\x46\n\x0fgcs_destination\x18\x01 \x01(\x0b\x32-.google.cloud.vision.v1p2beta1.GcsDestination\x12\x12\n\nbatch_size\x18\x02 \x01(\x05"\x18\n\tGcsSource\x12\x0b\n\x03uri\x18\x01 \x01(\t"\x1d\n\x0eGcsDestination\x12\x0b\n\x03uri\x18\x01 \x01(\t"\x8f\x02\n\x11OperationMetadata\x12\x45\n\x05state\x18\x01 \x01(\x0e\x32\x36.google.cloud.vision.v1p2beta1.OperationMetadata.State\x12/\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"Q\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x43REATED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x08\n\x04\x44ONE\x10\x03\x12\r\n\tCANCELLED\x10\x04*e\n\nLikelihood\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x11\n\rVERY_UNLIKELY\x10\x01\x12\x0c\n\x08UNLIKELY\x10\x02\x12\x0c\n\x08POSSIBLE\x10\x03\x12\n\n\x06LIKELY\x10\x04\x12\x0f\n\x0bVERY_LIKELY\x10\x05\x32\xb5\x04\n\x0eImageAnnotator\x12\xbe\x01\n\x13\x42\x61tchAnnotateImages\x12\x39.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest\x1a:.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse"0\x82\xd3\xe4\x93\x02\x1f"\x1a/v1p2beta1/images:annotate:\x01*\xda\x41\x08requests\x12\xe9\x01\n\x17\x41syncBatchAnnotateFiles\x12=.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest\x1a\x1d.google.longrunning.Operation"p\x82\xd3\xe4\x93\x02("#/v1p2beta1/files:asyncBatchAnnotate:\x01*\xda\x41\x08requests\xca\x41\x34\n\x1f\x41syncBatchAnnotateFilesResponse\x12\x11OperationMetadata\x1av\xca\x41\x15vision.googleapis.com\xd2\x41[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-visionB\x82\x01\n!com.google.cloud.vision.v1p2beta1B\x13ImageAnnotatorProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision\xf8\x01\x01\x62\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, @@ -60,24 +61,55 @@ full_name="google.cloud.vision.v1p2beta1.Likelihood", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="UNKNOWN", index=0, number=0, serialized_options=None, type=None + name="UNKNOWN", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="VERY_UNLIKELY", index=1, number=1, serialized_options=None, type=None + name="VERY_UNLIKELY", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="UNLIKELY", index=2, number=2, serialized_options=None, type=None + name="UNLIKELY", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="POSSIBLE", index=3, number=3, serialized_options=None, type=None + name="POSSIBLE", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="LIKELY", index=4, number=4, serialized_options=None, type=None + name="LIKELY", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="VERY_LIKELY", index=5, number=5, serialized_options=None, type=None + name="VERY_LIKELY", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -101,6 +133,7 @@ full_name="google.cloud.vision.v1p2beta1.Feature.Type", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="TYPE_UNSPECIFIED", @@ -108,9 +141,15 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="FACE_DETECTION", index=1, number=1, serialized_options=None, type=None + name="FACE_DETECTION", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="LANDMARK_DETECTION", @@ -118,9 +157,15 @@ number=2, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="LOGO_DETECTION", index=3, number=3, serialized_options=None, type=None + name="LOGO_DETECTION", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="LABEL_DETECTION", @@ -128,9 +173,15 @@ number=4, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="TEXT_DETECTION", index=5, number=5, serialized_options=None, type=None + name="TEXT_DETECTION", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="DOCUMENT_TEXT_DETECTION", @@ -138,6 +189,7 @@ number=11, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="SAFE_SEARCH_DETECTION", @@ -145,6 +197,7 @@ number=6, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="IMAGE_PROPERTIES", @@ -152,9 +205,15 @@ number=7, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="CROP_HINTS", index=9, number=9, serialized_options=None, type=None + name="CROP_HINTS", + index=9, + number=9, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="WEB_DETECTION", @@ -162,6 +221,7 @@ number=10, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -176,6 +236,7 @@ full_name="google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="UNKNOWN_LANDMARK", @@ -183,12 +244,23 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="LEFT_EYE", index=1, number=1, serialized_options=None, type=None + name="LEFT_EYE", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="RIGHT_EYE", index=2, number=2, serialized_options=None, type=None + name="RIGHT_EYE", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="LEFT_OF_LEFT_EYEBROW", @@ -196,6 +268,7 @@ number=3, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="RIGHT_OF_LEFT_EYEBROW", @@ -203,6 +276,7 @@ number=4, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="LEFT_OF_RIGHT_EYEBROW", @@ -210,6 +284,7 @@ number=5, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="RIGHT_OF_RIGHT_EYEBROW", @@ -217,6 +292,7 @@ number=6, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="MIDPOINT_BETWEEN_EYES", @@ -224,24 +300,55 @@ number=7, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NOSE_TIP", index=8, number=8, serialized_options=None, type=None + name="NOSE_TIP", + index=8, + number=8, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="UPPER_LIP", index=9, number=9, serialized_options=None, type=None + name="UPPER_LIP", + index=9, + number=9, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="LOWER_LIP", index=10, number=10, serialized_options=None, type=None + name="LOWER_LIP", + index=10, + number=10, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="MOUTH_LEFT", index=11, number=11, serialized_options=None, type=None + name="MOUTH_LEFT", + index=11, + number=11, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="MOUTH_RIGHT", index=12, number=12, serialized_options=None, type=None + name="MOUTH_RIGHT", + index=12, + number=12, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="MOUTH_CENTER", index=13, number=13, serialized_options=None, type=None + name="MOUTH_CENTER", + index=13, + number=13, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="NOSE_BOTTOM_RIGHT", @@ -249,6 +356,7 @@ number=14, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="NOSE_BOTTOM_LEFT", @@ -256,6 +364,7 @@ number=15, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="NOSE_BOTTOM_CENTER", @@ -263,6 +372,7 @@ number=16, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="LEFT_EYE_TOP_BOUNDARY", @@ -270,6 +380,7 @@ number=17, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="LEFT_EYE_RIGHT_CORNER", @@ -277,6 +388,7 @@ number=18, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="LEFT_EYE_BOTTOM_BOUNDARY", @@ -284,6 +396,7 @@ number=19, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="LEFT_EYE_LEFT_CORNER", @@ -291,6 +404,7 @@ number=20, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="RIGHT_EYE_TOP_BOUNDARY", @@ -298,6 +412,7 @@ number=21, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="RIGHT_EYE_RIGHT_CORNER", @@ -305,6 +420,7 @@ number=22, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="RIGHT_EYE_BOTTOM_BOUNDARY", @@ -312,6 +428,7 @@ number=23, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="RIGHT_EYE_LEFT_CORNER", @@ -319,6 +436,7 @@ number=24, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="LEFT_EYEBROW_UPPER_MIDPOINT", @@ -326,6 +444,7 @@ number=25, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="RIGHT_EYEBROW_UPPER_MIDPOINT", @@ -333,6 +452,7 @@ number=26, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="LEFT_EAR_TRAGION", @@ -340,6 +460,7 @@ number=27, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="RIGHT_EAR_TRAGION", @@ -347,6 +468,7 @@ number=28, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="LEFT_EYE_PUPIL", @@ -354,6 +476,7 @@ number=29, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="RIGHT_EYE_PUPIL", @@ -361,6 +484,7 @@ number=30, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="FOREHEAD_GLABELLA", @@ -368,6 +492,7 @@ number=31, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="CHIN_GNATHION", @@ -375,6 +500,7 @@ number=32, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="CHIN_LEFT_GONION", @@ -382,6 +508,7 @@ number=33, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="CHIN_RIGHT_GONION", @@ -389,6 +516,7 @@ number=34, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -403,6 +531,7 @@ full_name="google.cloud.vision.v1p2beta1.OperationMetadata.State", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="STATE_UNSPECIFIED", @@ -410,18 +539,39 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="CREATED", index=1, number=1, serialized_options=None, type=None + name="CREATED", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="RUNNING", index=2, number=2, serialized_options=None, type=None + name="RUNNING", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="DONE", index=3, number=3, serialized_options=None, type=None + name="DONE", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="CANCELLED", index=4, number=4, serialized_options=None, type=None + name="CANCELLED", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -438,6 +588,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="type", @@ -456,6 +607,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="max_results", @@ -474,6 +626,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="model", @@ -492,6 +645,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -513,6 +667,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="gcs_image_uri", @@ -531,6 +686,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="image_uri", @@ -549,6 +705,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -570,6 +727,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="content", @@ -588,6 +746,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="source", @@ -606,6 +765,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -627,6 +787,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="type", @@ -645,6 +806,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="position", @@ -663,6 +825,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -683,6 +846,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="bounding_poly", @@ -701,6 +865,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="fd_bounding_poly", @@ -719,6 +884,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="landmarks", @@ -737,6 +903,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="roll_angle", @@ -755,6 +922,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="pan_angle", @@ -773,6 +941,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="tilt_angle", @@ -791,6 +960,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="detection_confidence", @@ -809,6 +979,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="landmarking_confidence", @@ -827,6 +998,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="joy_likelihood", @@ -845,6 +1017,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="sorrow_likelihood", @@ -863,6 +1036,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="anger_likelihood", @@ -881,6 +1055,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="surprise_likelihood", @@ -899,6 +1074,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="under_exposed_likelihood", @@ -917,6 +1093,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="blurred_likelihood", @@ -935,6 +1112,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="headwear_likelihood", @@ -953,6 +1131,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -974,6 +1153,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="lat_lng", @@ -992,6 +1172,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -1013,6 +1194,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -1031,6 +1213,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="value", @@ -1049,6 +1232,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="uint64_value", @@ -1067,6 +1251,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1088,6 +1273,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="mid", @@ -1106,6 +1292,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="locale", @@ -1124,6 +1311,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="description", @@ -1142,6 +1330,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="score", @@ -1160,6 +1349,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="confidence", @@ -1178,6 +1368,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="topicality", @@ -1196,6 +1387,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="bounding_poly", @@ -1214,6 +1406,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="locations", @@ -1232,6 +1425,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="properties", @@ -1250,6 +1444,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1271,6 +1466,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="adult", @@ -1289,6 +1485,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="spoof", @@ -1307,6 +1504,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="medical", @@ -1325,6 +1523,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="violence", @@ -1343,6 +1542,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="racy", @@ -1361,6 +1561,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1382,6 +1583,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="min_lat_lng", @@ -1400,6 +1602,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="max_lat_lng", @@ -1418,6 +1621,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1439,6 +1643,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="color", @@ -1457,6 +1662,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="score", @@ -1475,6 +1681,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="pixel_fraction", @@ -1493,6 +1700,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1514,6 +1722,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="colors", @@ -1532,6 +1741,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -1553,6 +1763,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="dominant_colors", @@ -1571,6 +1782,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -1592,6 +1804,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="bounding_poly", @@ -1610,6 +1823,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="confidence", @@ -1628,6 +1842,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="importance_fraction", @@ -1646,6 +1861,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1667,6 +1883,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="crop_hints", @@ -1685,6 +1902,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -1706,6 +1924,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="aspect_ratios", @@ -1724,6 +1943,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -1745,6 +1965,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="include_geo_results", @@ -1763,6 +1984,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -1784,6 +2006,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="lat_long_rect", @@ -1802,6 +2025,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="language_hints", @@ -1820,6 +2044,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="crop_hints_params", @@ -1838,6 +2063,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="web_detection_params", @@ -1856,6 +2082,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1877,6 +2104,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="image", @@ -1895,6 +2123,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="features", @@ -1913,6 +2142,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="image_context", @@ -1931,6 +2161,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1952,6 +2183,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="uri", @@ -1970,6 +2202,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_number", @@ -1988,6 +2221,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2009,6 +2243,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="face_annotations", @@ -2027,6 +2262,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="landmark_annotations", @@ -2045,6 +2281,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="logo_annotations", @@ -2063,6 +2300,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="label_annotations", @@ -2081,6 +2319,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="text_annotations", @@ -2099,6 +2338,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="full_text_annotation", @@ -2117,6 +2357,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="safe_search_annotation", @@ -2135,6 +2376,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="image_properties_annotation", @@ -2153,6 +2395,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="crop_hints_annotation", @@ -2171,6 +2414,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="web_detection", @@ -2189,6 +2433,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="error", @@ -2207,6 +2452,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="context", @@ -2225,6 +2471,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2246,6 +2493,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="input_config", @@ -2264,6 +2512,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="responses", @@ -2282,6 +2531,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2303,6 +2553,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="requests", @@ -2321,6 +2572,7 @@ extension_scope=None, serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -2342,6 +2594,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="responses", @@ -2360,6 +2613,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -2381,6 +2635,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="input_config", @@ -2399,6 +2654,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="features", @@ -2417,6 +2673,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="image_context", @@ -2435,6 +2692,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="output_config", @@ -2453,6 +2711,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2474,6 +2733,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="output_config", @@ -2492,6 +2752,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -2513,6 +2774,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="requests", @@ -2531,6 +2793,7 @@ extension_scope=None, serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -2552,6 +2815,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="responses", @@ -2570,6 +2834,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -2591,6 +2856,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="gcs_source", @@ -2609,6 +2875,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="mime_type", @@ -2627,6 +2894,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2648,6 +2916,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="gcs_destination", @@ -2666,6 +2935,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="batch_size", @@ -2684,6 +2954,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2705,6 +2976,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="uri", @@ -2723,6 +2995,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -2744,6 +3017,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="uri", @@ -2762,6 +3036,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -2783,6 +3058,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="state", @@ -2801,6 +3077,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="create_time", @@ -2819,6 +3096,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="update_time", @@ -2837,6 +3115,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -3830,6 +4109,7 @@ file=DESCRIPTOR, index=0, serialized_options=b"\312A\025vision.googleapis.com\322A[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-vision", + create_key=_descriptor._internal_create_key, serialized_start=7311, serialized_end=7876, methods=[ @@ -3841,6 +4121,7 @@ input_type=_BATCHANNOTATEIMAGESREQUEST, output_type=_BATCHANNOTATEIMAGESRESPONSE, serialized_options=b'\202\323\344\223\002\037"\032/v1p2beta1/images:annotate:\001*\332A\010requests', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="AsyncBatchAnnotateFiles", @@ -3850,6 +4131,7 @@ input_type=_ASYNCBATCHANNOTATEFILESREQUEST, output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, serialized_options=b'\202\323\344\223\002("#/v1p2beta1/files:asyncBatchAnnotate:\001*\332A\010requests\312A4\n\037AsyncBatchAnnotateFilesResponse\022\021OperationMetadata', + create_key=_descriptor._internal_create_key, ), ], ) diff --git a/google/cloud/vision_v1p2beta1/proto/text_annotation_pb2.py b/google/cloud/vision_v1p2beta1/proto/text_annotation_pb2.py index 771b154c..101dbdbe 100644 --- a/google/cloud/vision_v1p2beta1/proto/text_annotation_pb2.py +++ b/google/cloud/vision_v1p2beta1/proto/text_annotation_pb2.py @@ -23,6 +23,7 @@ package="google.cloud.vision.v1p2beta1", syntax="proto3", serialized_options=b"\n!com.google.cloud.vision.v1p2beta1B\023TextAnnotationProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision\370\001\001", + create_key=_descriptor._internal_create_key, serialized_pb=b'\n9google/cloud/vision_v1p2beta1/proto/text_annotation.proto\x12\x1dgoogle.cloud.vision.v1p2beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x32google/cloud/vision_v1p2beta1/proto/geometry.proto"\xb2\x04\n\x0eTextAnnotation\x12\x32\n\x05pages\x18\x01 \x03(\x0b\x32#.google.cloud.vision.v1p2beta1.Page\x12\x0c\n\x04text\x18\x02 \x01(\t\x1a=\n\x10\x44\x65tectedLanguage\x12\x15\n\rlanguage_code\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x1a\xdc\x01\n\rDetectedBreak\x12S\n\x04type\x18\x01 \x01(\x0e\x32\x45.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType\x12\x11\n\tis_prefix\x18\x02 \x01(\x08"c\n\tBreakType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05SPACE\x10\x01\x12\x0e\n\nSURE_SPACE\x10\x02\x12\x12\n\x0e\x45OL_SURE_SPACE\x10\x03\x12\n\n\x06HYPHEN\x10\x04\x12\x0e\n\nLINE_BREAK\x10\x05\x1a\xbf\x01\n\x0cTextProperty\x12Z\n\x12\x64\x65tected_languages\x18\x01 \x03(\x0b\x32>.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage\x12S\n\x0e\x64\x65tected_break\x18\x02 \x01(\x0b\x32;.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak"\xbd\x01\n\x04Page\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty\x12\r\n\x05width\x18\x02 \x01(\x05\x12\x0e\n\x06height\x18\x03 \x01(\x05\x12\x34\n\x06\x62locks\x18\x04 \x03(\x0b\x32$.google.cloud.vision.v1p2beta1.Block\x12\x12\n\nconfidence\x18\x05 \x01(\x02"\x82\x03\n\x05\x42lock\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.BoundingPoly\x12<\n\nparagraphs\x18\x03 \x03(\x0b\x32(.google.cloud.vision.v1p2beta1.Paragraph\x12\x42\n\nblock_type\x18\x04 \x01(\x0e\x32..google.cloud.vision.v1p2beta1.Block.BlockType\x12\x12\n\nconfidence\x18\x05 \x01(\x02"R\n\tBlockType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04TEXT\x10\x01\x12\t\n\x05TABLE\x10\x02\x12\x0b\n\x07PICTURE\x10\x03\x12\t\n\x05RULER\x10\x04\x12\x0b\n\x07\x42\x41RCODE\x10\x05"\xe4\x01\n\tParagraph\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.BoundingPoly\x12\x32\n\x05words\x18\x03 \x03(\x0b\x32#.google.cloud.vision.v1p2beta1.Word\x12\x12\n\nconfidence\x18\x04 \x01(\x02"\xe3\x01\n\x04Word\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.BoundingPoly\x12\x36\n\x07symbols\x18\x03 \x03(\x0b\x32%.google.cloud.vision.v1p2beta1.Symbol\x12\x12\n\nconfidence\x18\x04 \x01(\x02"\xbb\x01\n\x06Symbol\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p2beta1.BoundingPoly\x12\x0c\n\x04text\x18\x03 \x01(\t\x12\x12\n\nconfidence\x18\x04 \x01(\x02\x42\x82\x01\n!com.google.cloud.vision.v1p2beta1B\x13TextAnnotationProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision\xf8\x01\x01\x62\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, @@ -36,24 +37,55 @@ full_name="google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="UNKNOWN", index=0, number=0, serialized_options=None, type=None + name="UNKNOWN", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="SPACE", index=1, number=1, serialized_options=None, type=None + name="SPACE", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="SURE_SPACE", index=2, number=2, serialized_options=None, type=None + name="SURE_SPACE", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="EOL_SURE_SPACE", index=3, number=3, serialized_options=None, type=None + name="EOL_SURE_SPACE", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="HYPHEN", index=4, number=4, serialized_options=None, type=None + name="HYPHEN", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="LINE_BREAK", index=5, number=5, serialized_options=None, type=None + name="LINE_BREAK", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -68,24 +100,55 @@ full_name="google.cloud.vision.v1p2beta1.Block.BlockType", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="UNKNOWN", index=0, number=0, serialized_options=None, type=None + name="UNKNOWN", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="TEXT", index=1, number=1, serialized_options=None, type=None + name="TEXT", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="TABLE", index=2, number=2, serialized_options=None, type=None + name="TABLE", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PICTURE", index=3, number=3, serialized_options=None, type=None + name="PICTURE", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="RULER", index=4, number=4, serialized_options=None, type=None + name="RULER", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="BARCODE", index=5, number=5, serialized_options=None, type=None + name="BARCODE", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -102,6 +165,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="language_code", @@ -120,6 +184,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="confidence", @@ -138,6 +203,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -158,6 +224,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="type", @@ -176,6 +243,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="is_prefix", @@ -194,6 +262,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -214,6 +283,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="detected_languages", @@ -232,6 +302,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="detected_break", @@ -250,6 +321,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -270,6 +342,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="pages", @@ -288,6 +361,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="text", @@ -306,6 +380,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -331,6 +406,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="property", @@ -349,6 +425,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="width", @@ -367,6 +444,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="height", @@ -385,6 +463,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="blocks", @@ -403,6 +482,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="confidence", @@ -421,6 +501,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -442,6 +523,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="property", @@ -460,6 +542,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="bounding_box", @@ -478,6 +561,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="paragraphs", @@ -496,6 +580,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="block_type", @@ -514,6 +599,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="confidence", @@ -532,6 +618,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -553,6 +640,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="property", @@ -571,6 +659,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="bounding_box", @@ -589,6 +678,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="words", @@ -607,6 +697,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="confidence", @@ -625,6 +716,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -646,6 +738,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="property", @@ -664,6 +757,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="bounding_box", @@ -682,6 +776,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="symbols", @@ -700,6 +795,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="confidence", @@ -718,6 +814,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -739,6 +836,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="property", @@ -757,6 +855,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="bounding_box", @@ -775,6 +874,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="text", @@ -793,6 +893,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="confidence", @@ -811,6 +912,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], diff --git a/google/cloud/vision_v1p2beta1/proto/web_detection_pb2.py b/google/cloud/vision_v1p2beta1/proto/web_detection_pb2.py index eb7aeac2..8a12fb93 100644 --- a/google/cloud/vision_v1p2beta1/proto/web_detection_pb2.py +++ b/google/cloud/vision_v1p2beta1/proto/web_detection_pb2.py @@ -20,6 +20,7 @@ package="google.cloud.vision.v1p2beta1", syntax="proto3", serialized_options=b"\n!com.google.cloud.vision.v1p2beta1B\021WebDetectionProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision\370\001\001", + create_key=_descriptor._internal_create_key, serialized_pb=b'\n7google/cloud/vision_v1p2beta1/proto/web_detection.proto\x12\x1dgoogle.cloud.vision.v1p2beta1\x1a\x1cgoogle/api/annotations.proto"\x8c\x07\n\x0cWebDetection\x12K\n\x0cweb_entities\x18\x01 \x03(\x0b\x32\x35.google.cloud.vision.v1p2beta1.WebDetection.WebEntity\x12R\n\x14\x66ull_matching_images\x18\x02 \x03(\x0b\x32\x34.google.cloud.vision.v1p2beta1.WebDetection.WebImage\x12U\n\x17partial_matching_images\x18\x03 \x03(\x0b\x32\x34.google.cloud.vision.v1p2beta1.WebDetection.WebImage\x12W\n\x1apages_with_matching_images\x18\x04 \x03(\x0b\x32\x33.google.cloud.vision.v1p2beta1.WebDetection.WebPage\x12U\n\x17visually_similar_images\x18\x06 \x03(\x0b\x32\x34.google.cloud.vision.v1p2beta1.WebDetection.WebImage\x12O\n\x11\x62\x65st_guess_labels\x18\x08 \x03(\x0b\x32\x34.google.cloud.vision.v1p2beta1.WebDetection.WebLabel\x1a\x42\n\tWebEntity\x12\x11\n\tentity_id\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x1a&\n\x08WebImage\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x1a\xe4\x01\n\x07WebPage\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x12\n\npage_title\x18\x03 \x01(\t\x12R\n\x14\x66ull_matching_images\x18\x04 \x03(\x0b\x32\x34.google.cloud.vision.v1p2beta1.WebDetection.WebImage\x12U\n\x17partial_matching_images\x18\x05 \x03(\x0b\x32\x34.google.cloud.vision.v1p2beta1.WebDetection.WebImage\x1a\x30\n\x08WebLabel\x12\r\n\x05label\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x02 \x01(\tB\x80\x01\n!com.google.cloud.vision.v1p2beta1B\x11WebDetectionProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision\xf8\x01\x01\x62\x06proto3', dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR], ) @@ -31,6 +32,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="entity_id", @@ -49,6 +51,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="score", @@ -67,6 +70,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="description", @@ -85,6 +89,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -105,6 +110,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="url", @@ -123,6 +129,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="score", @@ -141,6 +148,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -161,6 +169,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="url", @@ -179,6 +188,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="score", @@ -197,6 +207,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_title", @@ -215,6 +226,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="full_matching_images", @@ -233,6 +245,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="partial_matching_images", @@ -251,6 +264,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -271,6 +285,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="label", @@ -289,6 +304,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="language_code", @@ -307,6 +323,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -327,6 +344,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="web_entities", @@ -345,6 +363,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="full_matching_images", @@ -363,6 +382,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="partial_matching_images", @@ -381,6 +401,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="pages_with_matching_images", @@ -399,6 +420,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="visually_similar_images", @@ -417,6 +439,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="best_guess_labels", @@ -435,6 +458,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], diff --git a/google/cloud/vision_v1p3beta1/proto/geometry_pb2.py b/google/cloud/vision_v1p3beta1/proto/geometry_pb2.py index e55cd247..e759fd39 100644 --- a/google/cloud/vision_v1p3beta1/proto/geometry_pb2.py +++ b/google/cloud/vision_v1p3beta1/proto/geometry_pb2.py @@ -20,6 +20,7 @@ package="google.cloud.vision.v1p3beta1", syntax="proto3", serialized_options=b"\n!com.google.cloud.vision.v1p3beta1B\rGeometryProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\370\001\001", + create_key=_descriptor._internal_create_key, serialized_pb=b'\n2google/cloud/vision_v1p3beta1/proto/geometry.proto\x12\x1dgoogle.cloud.vision.v1p3beta1\x1a\x1cgoogle/api/annotations.proto"\x1e\n\x06Vertex\x12\t\n\x01x\x18\x01 \x01(\x05\x12\t\n\x01y\x18\x02 \x01(\x05"(\n\x10NormalizedVertex\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02"\x95\x01\n\x0c\x42oundingPoly\x12\x37\n\x08vertices\x18\x01 \x03(\x0b\x32%.google.cloud.vision.v1p3beta1.Vertex\x12L\n\x13normalized_vertices\x18\x02 \x03(\x0b\x32/.google.cloud.vision.v1p3beta1.NormalizedVertex"[\n\x16NormalizedBoundingPoly\x12\x41\n\x08vertices\x18\x01 \x03(\x0b\x32/.google.cloud.vision.v1p3beta1.NormalizedVertex"+\n\x08Position\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02\x12\t\n\x01z\x18\x03 \x01(\x02\x42|\n!com.google.cloud.vision.v1p3beta1B\rGeometryProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\xf8\x01\x01\x62\x06proto3', dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR], ) @@ -31,6 +32,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="x", @@ -49,6 +51,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="y", @@ -67,6 +70,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -88,6 +92,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="x", @@ -106,6 +111,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="y", @@ -124,6 +130,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -145,6 +152,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="vertices", @@ -163,6 +171,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="normalized_vertices", @@ -181,6 +190,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -202,6 +212,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="vertices", @@ -220,6 +231,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -241,6 +253,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="x", @@ -259,6 +272,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="y", @@ -277,6 +291,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="z", @@ -295,6 +310,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], diff --git a/google/cloud/vision_v1p3beta1/proto/image_annotator_pb2.py b/google/cloud/vision_v1p3beta1/proto/image_annotator_pb2.py index 66ae099f..c2ae5542 100644 --- a/google/cloud/vision_v1p3beta1/proto/image_annotator_pb2.py +++ b/google/cloud/vision_v1p3beta1/proto/image_annotator_pb2.py @@ -42,6 +42,7 @@ package="google.cloud.vision.v1p3beta1", syntax="proto3", serialized_options=b"\n!com.google.cloud.vision.v1p3beta1B\023ImageAnnotatorProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\370\001\001", + create_key=_descriptor._internal_create_key, serialized_pb=b'\n9google/cloud/vision_v1p3beta1/proto/image_annotator.proto\x12\x1dgoogle.cloud.vision.v1p3beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x32google/cloud/vision_v1p3beta1/proto/geometry.proto\x1a\x38google/cloud/vision_v1p3beta1/proto/product_search.proto\x1a\x39google/cloud/vision_v1p3beta1/proto/text_annotation.proto\x1a\x37google/cloud/vision_v1p3beta1/proto/web_detection.proto\x1a#google/longrunning/operations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a\x17google/type/color.proto\x1a\x18google/type/latlng.proto"\x8e\x03\n\x07\x46\x65\x61ture\x12\x39\n\x04type\x18\x01 \x01(\x0e\x32+.google.cloud.vision.v1p3beta1.Feature.Type\x12\x13\n\x0bmax_results\x18\x02 \x01(\x05\x12\r\n\x05model\x18\x03 \x01(\t"\xa3\x02\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x46\x41\x43\x45_DETECTION\x10\x01\x12\x16\n\x12LANDMARK_DETECTION\x10\x02\x12\x12\n\x0eLOGO_DETECTION\x10\x03\x12\x13\n\x0fLABEL_DETECTION\x10\x04\x12\x12\n\x0eTEXT_DETECTION\x10\x05\x12\x1b\n\x17\x44OCUMENT_TEXT_DETECTION\x10\x0b\x12\x19\n\x15SAFE_SEARCH_DETECTION\x10\x06\x12\x14\n\x10IMAGE_PROPERTIES\x10\x07\x12\x0e\n\nCROP_HINTS\x10\t\x12\x11\n\rWEB_DETECTION\x10\n\x12\x12\n\x0ePRODUCT_SEARCH\x10\x0c\x12\x17\n\x13OBJECT_LOCALIZATION\x10\x13"7\n\x0bImageSource\x12\x15\n\rgcs_image_uri\x18\x01 \x01(\t\x12\x11\n\timage_uri\x18\x02 \x01(\t"T\n\x05Image\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\x0c\x12:\n\x06source\x18\x02 \x01(\x0b\x32*.google.cloud.vision.v1p3beta1.ImageSource"\x9b\x0e\n\x0e\x46\x61\x63\x65\x41nnotation\x12\x42\n\rbounding_poly\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\x12\x45\n\x10\x66\x64_bounding_poly\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\x12I\n\tlandmarks\x18\x03 \x03(\x0b\x32\x36.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark\x12\x12\n\nroll_angle\x18\x04 \x01(\x02\x12\x11\n\tpan_angle\x18\x05 \x01(\x02\x12\x12\n\ntilt_angle\x18\x06 \x01(\x02\x12\x1c\n\x14\x64\x65tection_confidence\x18\x07 \x01(\x02\x12\x1e\n\x16landmarking_confidence\x18\x08 \x01(\x02\x12\x41\n\x0ejoy_likelihood\x18\t \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12\x44\n\x11sorrow_likelihood\x18\n \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12\x43\n\x10\x61nger_likelihood\x18\x0b \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12\x46\n\x13surprise_likelihood\x18\x0c \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12K\n\x18under_exposed_likelihood\x18\r \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12\x45\n\x12\x62lurred_likelihood\x18\x0e \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12\x46\n\x13headwear_likelihood\x18\x0f \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x1a\xc7\x07\n\x08Landmark\x12I\n\x04type\x18\x03 \x01(\x0e\x32;.google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type\x12\x39\n\x08position\x18\x04 \x01(\x0b\x32\'.google.cloud.vision.v1p3beta1.Position"\xb4\x06\n\x04Type\x12\x14\n\x10UNKNOWN_LANDMARK\x10\x00\x12\x0c\n\x08LEFT_EYE\x10\x01\x12\r\n\tRIGHT_EYE\x10\x02\x12\x18\n\x14LEFT_OF_LEFT_EYEBROW\x10\x03\x12\x19\n\x15RIGHT_OF_LEFT_EYEBROW\x10\x04\x12\x19\n\x15LEFT_OF_RIGHT_EYEBROW\x10\x05\x12\x1a\n\x16RIGHT_OF_RIGHT_EYEBROW\x10\x06\x12\x19\n\x15MIDPOINT_BETWEEN_EYES\x10\x07\x12\x0c\n\x08NOSE_TIP\x10\x08\x12\r\n\tUPPER_LIP\x10\t\x12\r\n\tLOWER_LIP\x10\n\x12\x0e\n\nMOUTH_LEFT\x10\x0b\x12\x0f\n\x0bMOUTH_RIGHT\x10\x0c\x12\x10\n\x0cMOUTH_CENTER\x10\r\x12\x15\n\x11NOSE_BOTTOM_RIGHT\x10\x0e\x12\x14\n\x10NOSE_BOTTOM_LEFT\x10\x0f\x12\x16\n\x12NOSE_BOTTOM_CENTER\x10\x10\x12\x19\n\x15LEFT_EYE_TOP_BOUNDARY\x10\x11\x12\x19\n\x15LEFT_EYE_RIGHT_CORNER\x10\x12\x12\x1c\n\x18LEFT_EYE_BOTTOM_BOUNDARY\x10\x13\x12\x18\n\x14LEFT_EYE_LEFT_CORNER\x10\x14\x12\x1a\n\x16RIGHT_EYE_TOP_BOUNDARY\x10\x15\x12\x1a\n\x16RIGHT_EYE_RIGHT_CORNER\x10\x16\x12\x1d\n\x19RIGHT_EYE_BOTTOM_BOUNDARY\x10\x17\x12\x19\n\x15RIGHT_EYE_LEFT_CORNER\x10\x18\x12\x1f\n\x1bLEFT_EYEBROW_UPPER_MIDPOINT\x10\x19\x12 \n\x1cRIGHT_EYEBROW_UPPER_MIDPOINT\x10\x1a\x12\x14\n\x10LEFT_EAR_TRAGION\x10\x1b\x12\x15\n\x11RIGHT_EAR_TRAGION\x10\x1c\x12\x12\n\x0eLEFT_EYE_PUPIL\x10\x1d\x12\x13\n\x0fRIGHT_EYE_PUPIL\x10\x1e\x12\x15\n\x11\x46OREHEAD_GLABELLA\x10\x1f\x12\x11\n\rCHIN_GNATHION\x10 \x12\x14\n\x10\x43HIN_LEFT_GONION\x10!\x12\x15\n\x11\x43HIN_RIGHT_GONION\x10""4\n\x0cLocationInfo\x12$\n\x07lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng"=\n\x08Property\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x14\n\x0cuint64_value\x18\x03 \x01(\x04"\xbc\x02\n\x10\x45ntityAnnotation\x12\x0b\n\x03mid\x18\x01 \x01(\t\x12\x0e\n\x06locale\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\r\n\x05score\x18\x04 \x01(\x02\x12\x12\n\nconfidence\x18\x05 \x01(\x02\x12\x12\n\ntopicality\x18\x06 \x01(\x02\x12\x42\n\rbounding_poly\x18\x07 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\x12>\n\tlocations\x18\x08 \x03(\x0b\x32+.google.cloud.vision.v1p3beta1.LocationInfo\x12;\n\nproperties\x18\t \x03(\x0b\x32\'.google.cloud.vision.v1p3beta1.Property"\xa0\x01\n\x19LocalizedObjectAnnotation\x12\x0b\n\x03mid\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\r\n\x05score\x18\x04 \x01(\x02\x12\x42\n\rbounding_poly\x18\x05 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly"\xbc\x02\n\x14SafeSearchAnnotation\x12\x38\n\x05\x61\x64ult\x18\x01 \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12\x38\n\x05spoof\x18\x02 \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12:\n\x07medical\x18\x03 \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12;\n\x08violence\x18\x04 \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood\x12\x37\n\x04racy\x18\t \x01(\x0e\x32).google.cloud.vision.v1p3beta1.Likelihood"a\n\x0bLatLongRect\x12(\n\x0bmin_lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng\x12(\n\x0bmax_lat_lng\x18\x02 \x01(\x0b\x32\x13.google.type.LatLng"U\n\tColorInfo\x12!\n\x05\x63olor\x18\x01 \x01(\x0b\x32\x12.google.type.Color\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x16\n\x0epixel_fraction\x18\x03 \x01(\x02"T\n\x18\x44ominantColorsAnnotation\x12\x38\n\x06\x63olors\x18\x01 \x03(\x0b\x32(.google.cloud.vision.v1p3beta1.ColorInfo"c\n\x0fImageProperties\x12P\n\x0f\x64ominant_colors\x18\x01 \x01(\x0b\x32\x37.google.cloud.vision.v1p3beta1.DominantColorsAnnotation"\x7f\n\x08\x43ropHint\x12\x42\n\rbounding_poly\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12\x1b\n\x13importance_fraction\x18\x03 \x01(\x02"R\n\x13\x43ropHintsAnnotation\x12;\n\ncrop_hints\x18\x01 \x03(\x0b\x32\'.google.cloud.vision.v1p3beta1.CropHint"(\n\x0f\x43ropHintsParams\x12\x15\n\raspect_ratios\x18\x01 \x03(\x02"1\n\x12WebDetectionParams\x12\x1b\n\x13include_geo_results\x18\x02 \x01(\x08"\xd8\x02\n\x0cImageContext\x12\x41\n\rlat_long_rect\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p3beta1.LatLongRect\x12\x16\n\x0elanguage_hints\x18\x02 \x03(\t\x12I\n\x11\x63rop_hints_params\x18\x04 \x01(\x0b\x32..google.cloud.vision.v1p3beta1.CropHintsParams\x12Q\n\x15product_search_params\x18\x05 \x01(\x0b\x32\x32.google.cloud.vision.v1p3beta1.ProductSearchParams\x12O\n\x14web_detection_params\x18\x06 \x01(\x0b\x32\x31.google.cloud.vision.v1p3beta1.WebDetectionParams"\xc9\x01\n\x14\x41nnotateImageRequest\x12\x33\n\x05image\x18\x01 \x01(\x0b\x32$.google.cloud.vision.v1p3beta1.Image\x12\x38\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32&.google.cloud.vision.v1p3beta1.Feature\x12\x42\n\rimage_context\x18\x03 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.ImageContext":\n\x16ImageAnnotationContext\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x13\n\x0bpage_number\x18\x02 \x01(\x05"\xbf\x08\n\x15\x41nnotateImageResponse\x12G\n\x10\x66\x61\x63\x65_annotations\x18\x01 \x03(\x0b\x32-.google.cloud.vision.v1p3beta1.FaceAnnotation\x12M\n\x14landmark_annotations\x18\x02 \x03(\x0b\x32/.google.cloud.vision.v1p3beta1.EntityAnnotation\x12I\n\x10logo_annotations\x18\x03 \x03(\x0b\x32/.google.cloud.vision.v1p3beta1.EntityAnnotation\x12J\n\x11label_annotations\x18\x04 \x03(\x0b\x32/.google.cloud.vision.v1p3beta1.EntityAnnotation\x12^\n\x1clocalized_object_annotations\x18\x16 \x03(\x0b\x32\x38.google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation\x12I\n\x10text_annotations\x18\x05 \x03(\x0b\x32/.google.cloud.vision.v1p3beta1.EntityAnnotation\x12K\n\x14\x66ull_text_annotation\x18\x0c \x01(\x0b\x32-.google.cloud.vision.v1p3beta1.TextAnnotation\x12S\n\x16safe_search_annotation\x18\x06 \x01(\x0b\x32\x33.google.cloud.vision.v1p3beta1.SafeSearchAnnotation\x12S\n\x1bimage_properties_annotation\x18\x08 \x01(\x0b\x32..google.cloud.vision.v1p3beta1.ImageProperties\x12Q\n\x15\x63rop_hints_annotation\x18\x0b \x01(\x0b\x32\x32.google.cloud.vision.v1p3beta1.CropHintsAnnotation\x12\x42\n\rweb_detection\x18\r \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.WebDetection\x12S\n\x16product_search_results\x18\x0e \x01(\x0b\x32\x33.google.cloud.vision.v1p3beta1.ProductSearchResults\x12!\n\x05\x65rror\x18\t \x01(\x0b\x32\x12.google.rpc.Status\x12\x46\n\x07\x63ontext\x18\x15 \x01(\x0b\x32\x35.google.cloud.vision.v1p3beta1.ImageAnnotationContext"\xa1\x01\n\x14\x41nnotateFileResponse\x12@\n\x0cinput_config\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p3beta1.InputConfig\x12G\n\tresponses\x18\x02 \x03(\x0b\x32\x34.google.cloud.vision.v1p3beta1.AnnotateImageResponse"c\n\x1a\x42\x61tchAnnotateImagesRequest\x12\x45\n\x08requests\x18\x01 \x03(\x0b\x32\x33.google.cloud.vision.v1p3beta1.AnnotateImageRequest"f\n\x1b\x42\x61tchAnnotateImagesResponse\x12G\n\tresponses\x18\x01 \x03(\x0b\x32\x34.google.cloud.vision.v1p3beta1.AnnotateImageResponse"\x9e\x02\n\x18\x41syncAnnotateFileRequest\x12@\n\x0cinput_config\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p3beta1.InputConfig\x12\x38\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32&.google.cloud.vision.v1p3beta1.Feature\x12\x42\n\rimage_context\x18\x03 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.ImageContext\x12\x42\n\routput_config\x18\x04 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.OutputConfig"_\n\x19\x41syncAnnotateFileResponse\x12\x42\n\routput_config\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.OutputConfig"p\n\x1e\x41syncBatchAnnotateFilesRequest\x12N\n\x08requests\x18\x01 \x03(\x0b\x32\x37.google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequestB\x03\xe0\x41\x02"n\n\x1f\x41syncBatchAnnotateFilesResponse\x12K\n\tresponses\x18\x01 \x03(\x0b\x32\x38.google.cloud.vision.v1p3beta1.AsyncAnnotateFileResponse"^\n\x0bInputConfig\x12<\n\ngcs_source\x18\x01 \x01(\x0b\x32(.google.cloud.vision.v1p3beta1.GcsSource\x12\x11\n\tmime_type\x18\x02 \x01(\t"j\n\x0cOutputConfig\x12\x46\n\x0fgcs_destination\x18\x01 \x01(\x0b\x32-.google.cloud.vision.v1p3beta1.GcsDestination\x12\x12\n\nbatch_size\x18\x02 \x01(\x05"\x18\n\tGcsSource\x12\x0b\n\x03uri\x18\x01 \x01(\t"\x1d\n\x0eGcsDestination\x12\x0b\n\x03uri\x18\x01 \x01(\t"\x8f\x02\n\x11OperationMetadata\x12\x45\n\x05state\x18\x01 \x01(\x0e\x32\x36.google.cloud.vision.v1p3beta1.OperationMetadata.State\x12/\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"Q\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x43REATED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x08\n\x04\x44ONE\x10\x03\x12\r\n\tCANCELLED\x10\x04*e\n\nLikelihood\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x11\n\rVERY_UNLIKELY\x10\x01\x12\x0c\n\x08UNLIKELY\x10\x02\x12\x0c\n\x08POSSIBLE\x10\x03\x12\n\n\x06LIKELY\x10\x04\x12\x0f\n\x0bVERY_LIKELY\x10\x05\x32\xb5\x04\n\x0eImageAnnotator\x12\xbe\x01\n\x13\x42\x61tchAnnotateImages\x12\x39.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest\x1a:.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse"0\x82\xd3\xe4\x93\x02\x1f"\x1a/v1p3beta1/images:annotate:\x01*\xda\x41\x08requests\x12\xe9\x01\n\x17\x41syncBatchAnnotateFiles\x12=.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest\x1a\x1d.google.longrunning.Operation"p\x82\xd3\xe4\x93\x02("#/v1p3beta1/files:asyncBatchAnnotate:\x01*\xda\x41\x08requests\xca\x41\x34\n\x1f\x41syncBatchAnnotateFilesResponse\x12\x11OperationMetadata\x1av\xca\x41\x15vision.googleapis.com\xd2\x41[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-visionB\x82\x01\n!com.google.cloud.vision.v1p3beta1B\x13ImageAnnotatorProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\xf8\x01\x01\x62\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, @@ -64,24 +65,55 @@ full_name="google.cloud.vision.v1p3beta1.Likelihood", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="UNKNOWN", index=0, number=0, serialized_options=None, type=None + name="UNKNOWN", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="VERY_UNLIKELY", index=1, number=1, serialized_options=None, type=None + name="VERY_UNLIKELY", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="UNLIKELY", index=2, number=2, serialized_options=None, type=None + name="UNLIKELY", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="POSSIBLE", index=3, number=3, serialized_options=None, type=None + name="POSSIBLE", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="LIKELY", index=4, number=4, serialized_options=None, type=None + name="LIKELY", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="VERY_LIKELY", index=5, number=5, serialized_options=None, type=None + name="VERY_LIKELY", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -105,6 +137,7 @@ full_name="google.cloud.vision.v1p3beta1.Feature.Type", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="TYPE_UNSPECIFIED", @@ -112,9 +145,15 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="FACE_DETECTION", index=1, number=1, serialized_options=None, type=None + name="FACE_DETECTION", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="LANDMARK_DETECTION", @@ -122,9 +161,15 @@ number=2, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="LOGO_DETECTION", index=3, number=3, serialized_options=None, type=None + name="LOGO_DETECTION", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="LABEL_DETECTION", @@ -132,9 +177,15 @@ number=4, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="TEXT_DETECTION", index=5, number=5, serialized_options=None, type=None + name="TEXT_DETECTION", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="DOCUMENT_TEXT_DETECTION", @@ -142,6 +193,7 @@ number=11, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="SAFE_SEARCH_DETECTION", @@ -149,6 +201,7 @@ number=6, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="IMAGE_PROPERTIES", @@ -156,9 +209,15 @@ number=7, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="CROP_HINTS", index=9, number=9, serialized_options=None, type=None + name="CROP_HINTS", + index=9, + number=9, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="WEB_DETECTION", @@ -166,6 +225,7 @@ number=10, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="PRODUCT_SEARCH", @@ -173,6 +233,7 @@ number=12, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="OBJECT_LOCALIZATION", @@ -180,6 +241,7 @@ number=19, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -194,6 +256,7 @@ full_name="google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark.Type", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="UNKNOWN_LANDMARK", @@ -201,12 +264,23 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="LEFT_EYE", index=1, number=1, serialized_options=None, type=None + name="LEFT_EYE", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="RIGHT_EYE", index=2, number=2, serialized_options=None, type=None + name="RIGHT_EYE", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="LEFT_OF_LEFT_EYEBROW", @@ -214,6 +288,7 @@ number=3, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="RIGHT_OF_LEFT_EYEBROW", @@ -221,6 +296,7 @@ number=4, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="LEFT_OF_RIGHT_EYEBROW", @@ -228,6 +304,7 @@ number=5, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="RIGHT_OF_RIGHT_EYEBROW", @@ -235,6 +312,7 @@ number=6, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="MIDPOINT_BETWEEN_EYES", @@ -242,24 +320,55 @@ number=7, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NOSE_TIP", index=8, number=8, serialized_options=None, type=None + name="NOSE_TIP", + index=8, + number=8, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="UPPER_LIP", index=9, number=9, serialized_options=None, type=None + name="UPPER_LIP", + index=9, + number=9, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="LOWER_LIP", index=10, number=10, serialized_options=None, type=None + name="LOWER_LIP", + index=10, + number=10, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="MOUTH_LEFT", index=11, number=11, serialized_options=None, type=None + name="MOUTH_LEFT", + index=11, + number=11, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="MOUTH_RIGHT", index=12, number=12, serialized_options=None, type=None + name="MOUTH_RIGHT", + index=12, + number=12, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="MOUTH_CENTER", index=13, number=13, serialized_options=None, type=None + name="MOUTH_CENTER", + index=13, + number=13, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="NOSE_BOTTOM_RIGHT", @@ -267,6 +376,7 @@ number=14, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="NOSE_BOTTOM_LEFT", @@ -274,6 +384,7 @@ number=15, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="NOSE_BOTTOM_CENTER", @@ -281,6 +392,7 @@ number=16, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="LEFT_EYE_TOP_BOUNDARY", @@ -288,6 +400,7 @@ number=17, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="LEFT_EYE_RIGHT_CORNER", @@ -295,6 +408,7 @@ number=18, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="LEFT_EYE_BOTTOM_BOUNDARY", @@ -302,6 +416,7 @@ number=19, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="LEFT_EYE_LEFT_CORNER", @@ -309,6 +424,7 @@ number=20, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="RIGHT_EYE_TOP_BOUNDARY", @@ -316,6 +432,7 @@ number=21, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="RIGHT_EYE_RIGHT_CORNER", @@ -323,6 +440,7 @@ number=22, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="RIGHT_EYE_BOTTOM_BOUNDARY", @@ -330,6 +448,7 @@ number=23, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="RIGHT_EYE_LEFT_CORNER", @@ -337,6 +456,7 @@ number=24, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="LEFT_EYEBROW_UPPER_MIDPOINT", @@ -344,6 +464,7 @@ number=25, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="RIGHT_EYEBROW_UPPER_MIDPOINT", @@ -351,6 +472,7 @@ number=26, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="LEFT_EAR_TRAGION", @@ -358,6 +480,7 @@ number=27, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="RIGHT_EAR_TRAGION", @@ -365,6 +488,7 @@ number=28, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="LEFT_EYE_PUPIL", @@ -372,6 +496,7 @@ number=29, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="RIGHT_EYE_PUPIL", @@ -379,6 +504,7 @@ number=30, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="FOREHEAD_GLABELLA", @@ -386,6 +512,7 @@ number=31, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="CHIN_GNATHION", @@ -393,6 +520,7 @@ number=32, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="CHIN_LEFT_GONION", @@ -400,6 +528,7 @@ number=33, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="CHIN_RIGHT_GONION", @@ -407,6 +536,7 @@ number=34, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -421,6 +551,7 @@ full_name="google.cloud.vision.v1p3beta1.OperationMetadata.State", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="STATE_UNSPECIFIED", @@ -428,18 +559,39 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="CREATED", index=1, number=1, serialized_options=None, type=None + name="CREATED", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="RUNNING", index=2, number=2, serialized_options=None, type=None + name="RUNNING", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="DONE", index=3, number=3, serialized_options=None, type=None + name="DONE", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="CANCELLED", index=4, number=4, serialized_options=None, type=None + name="CANCELLED", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -456,6 +608,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="type", @@ -474,6 +627,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="max_results", @@ -492,6 +646,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="model", @@ -510,6 +665,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -531,6 +687,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="gcs_image_uri", @@ -549,6 +706,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="image_uri", @@ -567,6 +725,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -588,6 +747,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="content", @@ -606,6 +766,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="source", @@ -624,6 +785,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -645,6 +807,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="type", @@ -663,6 +826,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="position", @@ -681,6 +845,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -701,6 +866,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="bounding_poly", @@ -719,6 +885,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="fd_bounding_poly", @@ -737,6 +904,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="landmarks", @@ -755,6 +923,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="roll_angle", @@ -773,6 +942,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="pan_angle", @@ -791,6 +961,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="tilt_angle", @@ -809,6 +980,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="detection_confidence", @@ -827,6 +999,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="landmarking_confidence", @@ -845,6 +1018,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="joy_likelihood", @@ -863,6 +1037,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="sorrow_likelihood", @@ -881,6 +1056,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="anger_likelihood", @@ -899,6 +1075,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="surprise_likelihood", @@ -917,6 +1094,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="under_exposed_likelihood", @@ -935,6 +1113,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="blurred_likelihood", @@ -953,6 +1132,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="headwear_likelihood", @@ -971,6 +1151,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -992,6 +1173,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="lat_lng", @@ -1010,6 +1192,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -1031,6 +1214,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -1049,6 +1233,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="value", @@ -1067,6 +1252,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="uint64_value", @@ -1085,6 +1271,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1106,6 +1293,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="mid", @@ -1124,6 +1312,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="locale", @@ -1142,6 +1331,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="description", @@ -1160,6 +1350,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="score", @@ -1178,6 +1369,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="confidence", @@ -1196,6 +1388,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="topicality", @@ -1214,6 +1407,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="bounding_poly", @@ -1232,6 +1426,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="locations", @@ -1250,6 +1445,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="properties", @@ -1268,6 +1464,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1289,6 +1486,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="mid", @@ -1307,6 +1505,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="language_code", @@ -1325,6 +1524,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="name", @@ -1343,6 +1543,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="score", @@ -1361,6 +1562,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="bounding_poly", @@ -1379,6 +1581,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1400,6 +1603,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="adult", @@ -1418,6 +1622,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="spoof", @@ -1436,6 +1641,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="medical", @@ -1454,6 +1660,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="violence", @@ -1472,6 +1679,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="racy", @@ -1490,6 +1698,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1511,6 +1720,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="min_lat_lng", @@ -1529,6 +1739,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="max_lat_lng", @@ -1547,6 +1758,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1568,6 +1780,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="color", @@ -1586,6 +1799,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="score", @@ -1604,6 +1818,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="pixel_fraction", @@ -1622,6 +1837,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1643,6 +1859,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="colors", @@ -1661,6 +1878,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -1682,6 +1900,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="dominant_colors", @@ -1700,6 +1919,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -1721,6 +1941,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="bounding_poly", @@ -1739,6 +1960,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="confidence", @@ -1757,6 +1979,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="importance_fraction", @@ -1775,6 +1998,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1796,6 +2020,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="crop_hints", @@ -1814,6 +2039,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -1835,6 +2061,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="aspect_ratios", @@ -1853,6 +2080,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -1874,6 +2102,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="include_geo_results", @@ -1892,6 +2121,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -1913,6 +2143,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="lat_long_rect", @@ -1931,6 +2162,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="language_hints", @@ -1949,6 +2181,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="crop_hints_params", @@ -1967,6 +2200,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="product_search_params", @@ -1985,6 +2219,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="web_detection_params", @@ -2003,6 +2238,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2024,6 +2260,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="image", @@ -2042,6 +2279,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="features", @@ -2060,6 +2298,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="image_context", @@ -2078,6 +2317,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2099,6 +2339,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="uri", @@ -2117,6 +2358,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_number", @@ -2135,6 +2377,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2156,6 +2399,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="face_annotations", @@ -2174,6 +2418,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="landmark_annotations", @@ -2192,6 +2437,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="logo_annotations", @@ -2210,6 +2456,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="label_annotations", @@ -2228,6 +2475,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="localized_object_annotations", @@ -2246,6 +2494,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="text_annotations", @@ -2264,6 +2513,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="full_text_annotation", @@ -2282,6 +2532,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="safe_search_annotation", @@ -2300,6 +2551,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="image_properties_annotation", @@ -2318,6 +2570,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="crop_hints_annotation", @@ -2336,6 +2589,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="web_detection", @@ -2354,6 +2608,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="product_search_results", @@ -2372,6 +2627,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="error", @@ -2390,6 +2646,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="context", @@ -2408,6 +2665,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2429,6 +2687,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="input_config", @@ -2447,6 +2706,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="responses", @@ -2465,6 +2725,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2486,6 +2747,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="requests", @@ -2504,6 +2766,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -2525,6 +2788,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="responses", @@ -2543,6 +2807,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -2564,6 +2829,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="input_config", @@ -2582,6 +2848,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="features", @@ -2600,6 +2867,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="image_context", @@ -2618,6 +2886,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="output_config", @@ -2636,6 +2905,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2657,6 +2927,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="output_config", @@ -2675,6 +2946,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -2696,6 +2968,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="requests", @@ -2714,6 +2987,7 @@ extension_scope=None, serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -2735,6 +3009,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="responses", @@ -2753,6 +3028,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -2774,6 +3050,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="gcs_source", @@ -2792,6 +3069,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="mime_type", @@ -2810,6 +3088,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2831,6 +3110,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="gcs_destination", @@ -2849,6 +3129,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="batch_size", @@ -2867,6 +3148,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2888,6 +3170,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="uri", @@ -2906,6 +3189,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -2927,6 +3211,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="uri", @@ -2945,6 +3230,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -2966,6 +3252,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="state", @@ -2984,6 +3271,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="create_time", @@ -3002,6 +3290,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="update_time", @@ -3020,6 +3309,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -4069,6 +4359,7 @@ file=DESCRIPTOR, index=0, serialized_options=b"\312A\025vision.googleapis.com\322A[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-vision", + create_key=_descriptor._internal_create_key, serialized_start=7836, serialized_end=8401, methods=[ @@ -4080,6 +4371,7 @@ input_type=_BATCHANNOTATEIMAGESREQUEST, output_type=_BATCHANNOTATEIMAGESRESPONSE, serialized_options=b'\202\323\344\223\002\037"\032/v1p3beta1/images:annotate:\001*\332A\010requests', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="AsyncBatchAnnotateFiles", @@ -4089,6 +4381,7 @@ input_type=_ASYNCBATCHANNOTATEFILESREQUEST, output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, serialized_options=b'\202\323\344\223\002("#/v1p3beta1/files:asyncBatchAnnotate:\001*\332A\010requests\312A4\n\037AsyncBatchAnnotateFilesResponse\022\021OperationMetadata', + create_key=_descriptor._internal_create_key, ), ], ) diff --git a/google/cloud/vision_v1p3beta1/proto/product_search_pb2.py b/google/cloud/vision_v1p3beta1/proto/product_search_pb2.py index 83802b79..6a58627d 100644 --- a/google/cloud/vision_v1p3beta1/proto/product_search_pb2.py +++ b/google/cloud/vision_v1p3beta1/proto/product_search_pb2.py @@ -29,6 +29,7 @@ package="google.cloud.vision.v1p3beta1", syntax="proto3", serialized_options=b"\n!com.google.cloud.vision.v1p3beta1B\022ProductSearchProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\370\001\001", + create_key=_descriptor._internal_create_key, serialized_pb=b'\n8google/cloud/vision_v1p3beta1/proto/product_search.proto\x12\x1dgoogle.cloud.vision.v1p3beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x19google/api/resource.proto\x1a\x32google/cloud/vision_v1p3beta1/proto/geometry.proto\x1a@google/cloud/vision_v1p3beta1/proto/product_search_service.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xd9\x03\n\x13ProductSearchParams\x12\x14\n\x0c\x63\x61talog_name\x18\x01 \x01(\t\x12\x46\n\x08\x63\x61tegory\x18\x02 \x01(\x0e\x32\x34.google.cloud.vision.v1p3beta1.ProductSearchCategory\x12\x18\n\x10product_category\x18\x05 \x01(\t\x12W\n\x18normalized_bounding_poly\x18\x03 \x01(\x0b\x32\x35.google.cloud.vision.v1p3beta1.NormalizedBoundingPoly\x12\x42\n\rbounding_poly\x18\t \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\x12\x45\n\x04view\x18\x04 \x01(\x0e\x32\x37.google.cloud.vision.v1p3beta1.ProductSearchResultsView\x12:\n\x0bproduct_set\x18\x06 \x01(\tB%\xfa\x41"\n vision.googleapis.com/ProductSet\x12\x1a\n\x12product_categories\x18\x07 \x03(\t\x12\x0e\n\x06\x66ilter\x18\x08 \x01(\t"\xee\x03\n\x14ProductSearchResults\x12\x46\n\x08\x63\x61tegory\x18\x01 \x01(\x0e\x32\x34.google.cloud.vision.v1p3beta1.ProductSearchCategory\x12\x18\n\x10product_category\x18\x04 \x01(\t\x12.\n\nindex_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12Q\n\x08products\x18\x03 \x03(\x0b\x32?.google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo\x12K\n\x07results\x18\x05 \x03(\x0b\x32:.google.cloud.vision.v1p3beta1.ProductSearchResults.Result\x1a\x43\n\x0bProductInfo\x12\x12\n\nproduct_id\x18\x01 \x01(\t\x12\x11\n\timage_uri\x18\x02 \x01(\t\x12\r\n\x05score\x18\x03 \x01(\x02\x1a_\n\x06Result\x12\x37\n\x07product\x18\x01 \x01(\x0b\x32&.google.cloud.vision.v1p3beta1.Product\x12\r\n\x05score\x18\x02 \x01(\x02\x12\r\n\x05image\x18\x03 \x01(\t*U\n\x15ProductSearchCategory\x12\'\n#PRODUCT_SEARCH_CATEGORY_UNSPECIFIED\x10\x00\x12\t\n\x05SHOES\x10\x01\x12\x08\n\x04\x42\x41GS\x10\x02*/\n\x18ProductSearchResultsView\x12\t\n\x05\x42\x41SIC\x10\x00\x12\x08\n\x04\x46ULL\x10\x01\x42\x81\x01\n!com.google.cloud.vision.v1p3beta1B\x12ProductSearchProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\xf8\x01\x01\x62\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, @@ -44,6 +45,7 @@ full_name="google.cloud.vision.v1p3beta1.ProductSearchCategory", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="PRODUCT_SEARCH_CATEGORY_UNSPECIFIED", @@ -51,12 +53,23 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="SHOES", index=1, number=1, serialized_options=None, type=None + name="SHOES", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="BAGS", index=2, number=2, serialized_options=None, type=None + name="BAGS", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -72,12 +85,23 @@ full_name="google.cloud.vision.v1p3beta1.ProductSearchResultsView", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="BASIC", index=0, number=0, serialized_options=None, type=None + name="BASIC", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="FULL", index=1, number=1, serialized_options=None, type=None + name="FULL", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -101,6 +125,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="catalog_name", @@ -119,6 +144,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="category", @@ -137,6 +163,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="product_category", @@ -155,6 +182,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="normalized_bounding_poly", @@ -173,6 +201,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="bounding_poly", @@ -191,6 +220,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="view", @@ -209,6 +239,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="product_set", @@ -227,6 +258,7 @@ extension_scope=None, serialized_options=b'\372A"\n vision.googleapis.com/ProductSet', file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="product_categories", @@ -245,6 +277,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="filter", @@ -263,6 +296,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -284,6 +318,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="product_id", @@ -302,6 +337,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="image_uri", @@ -320,6 +356,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="score", @@ -338,6 +375,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -358,6 +396,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="product", @@ -376,6 +415,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="score", @@ -394,6 +434,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="image", @@ -412,6 +453,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -432,6 +474,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="category", @@ -450,6 +493,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="product_category", @@ -468,6 +512,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="index_time", @@ -486,6 +531,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="products", @@ -504,6 +550,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="results", @@ -522,6 +569,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], diff --git a/google/cloud/vision_v1p3beta1/proto/product_search_service_pb2.py b/google/cloud/vision_v1p3beta1/proto/product_search_service_pb2.py index 89cbb74a..2c8c9881 100644 --- a/google/cloud/vision_v1p3beta1/proto/product_search_service_pb2.py +++ b/google/cloud/vision_v1p3beta1/proto/product_search_service_pb2.py @@ -33,6 +33,7 @@ package="google.cloud.vision.v1p3beta1", syntax="proto3", serialized_options=b"\n!com.google.cloud.vision.v1p3beta1B\031ProductSearchServiceProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\370\001\001", + create_key=_descriptor._internal_create_key, serialized_pb=b'\n@google/cloud/vision_v1p3beta1/proto/product_search_service.proto\x12\x1dgoogle.cloud.vision.v1p3beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x32google/cloud/vision_v1p3beta1/proto/geometry.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto"\xb2\x02\n\x07Product\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x1d\n\x10product_category\x18\x04 \x01(\tB\x03\xe0\x41\x05\x12G\n\x0eproduct_labels\x18\x05 \x03(\x0b\x32/.google.cloud.vision.v1p3beta1.Product.KeyValue\x1a&\n\x08KeyValue\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:^\xea\x41[\n\x1dvision.googleapis.com/Product\x12:projects/{project}/locations/{location}/products/{product}"\xfd\x01\n\nProductSet\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x33\n\nindex_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12,\n\x0bindex_error\x18\x04 \x01(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03:h\xea\x41\x65\n vision.googleapis.com/ProductSet\x12\x41projects/{project}/locations/{location}/productSets/{product_set}"\x85\x02\n\x0eReferenceImage\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x03uri\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12H\n\x0e\x62ounding_polys\x18\x03 \x03(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPolyB\x03\xe0\x41\x01:\x88\x01\xea\x41\x84\x01\n$vision.googleapis.com/ReferenceImage\x12\\projects/{project}/locations/{location}/products/{product}/referenceImages/{reference_image}"\xa3\x01\n\x14\x43reateProductRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12<\n\x07product\x18\x02 \x01(\x0b\x32&.google.cloud.vision.v1p3beta1.ProductB\x03\xe0\x41\x02\x12\x12\n\nproduct_id\x18\x03 \x01(\t"w\n\x13ListProductsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"i\n\x14ListProductsResponse\x12\x38\n\x08products\x18\x01 \x03(\x0b\x32&.google.cloud.vision.v1p3beta1.Product\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"H\n\x11GetProductRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product"\x85\x01\n\x14UpdateProductRequest\x12<\n\x07product\x18\x01 \x01(\x0b\x32&.google.cloud.vision.v1p3beta1.ProductB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"K\n\x14\x44\x65leteProductRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product"\xb1\x01\n\x17\x43reateProductSetRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x43\n\x0bproduct_set\x18\x02 \x01(\x0b\x32).google.cloud.vision.v1p3beta1.ProductSetB\x03\xe0\x41\x02\x12\x16\n\x0eproduct_set_id\x18\x03 \x01(\t"z\n\x16ListProductSetsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"s\n\x17ListProductSetsResponse\x12?\n\x0cproduct_sets\x18\x01 \x03(\x0b\x32).google.cloud.vision.v1p3beta1.ProductSet\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"N\n\x14GetProductSetRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41"\n vision.googleapis.com/ProductSet"\x8f\x01\n\x17UpdateProductSetRequest\x12\x43\n\x0bproduct_set\x18\x01 \x01(\x0b\x32).google.cloud.vision.v1p3beta1.ProductSetB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"Q\n\x17\x44\x65leteProductSetRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41"\n vision.googleapis.com/ProductSet"\xbd\x01\n\x1b\x43reateReferenceImageRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product\x12K\n\x0freference_image\x18\x02 \x01(\x0b\x32-.google.cloud.vision.v1p3beta1.ReferenceImageB\x03\xe0\x41\x02\x12\x1a\n\x12reference_image_id\x18\x03 \x01(\t"z\n\x1aListReferenceImagesRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"\x92\x01\n\x1bListReferenceImagesResponse\x12G\n\x10reference_images\x18\x01 \x03(\x0b\x32-.google.cloud.vision.v1p3beta1.ReferenceImage\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t"V\n\x18GetReferenceImageRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$vision.googleapis.com/ReferenceImage"Y\n\x1b\x44\x65leteReferenceImageRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$vision.googleapis.com/ReferenceImage"\x8f\x01\n\x1d\x41\x64\x64ProductToProductSetRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41"\n vision.googleapis.com/ProductSet\x12\x36\n\x07product\x18\x02 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product"\x94\x01\n"RemoveProductFromProductSetRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41"\n vision.googleapis.com/ProductSet\x12\x36\n\x07product\x18\x02 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product"\x80\x01\n\x1fListProductsInProductSetRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41"\n vision.googleapis.com/ProductSet\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"u\n ListProductsInProductSetResponse\x12\x38\n\x08products\x18\x01 \x03(\x0b\x32&.google.cloud.vision.v1p3beta1.Product\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"2\n\x1aImportProductSetsGcsSource\x12\x14\n\x0c\x63sv_file_uri\x18\x01 \x01(\t"y\n\x1cImportProductSetsInputConfig\x12O\n\ngcs_source\x18\x01 \x01(\x0b\x32\x39.google.cloud.vision.v1p3beta1.ImportProductSetsGcsSourceH\x00\x42\x08\n\x06source"\xad\x01\n\x18ImportProductSetsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12V\n\x0cinput_config\x18\x02 \x01(\x0b\x32;.google.cloud.vision.v1p3beta1.ImportProductSetsInputConfigB\x03\xe0\x41\x02"\x8a\x01\n\x19ImportProductSetsResponse\x12G\n\x10reference_images\x18\x01 \x03(\x0b\x32-.google.cloud.vision.v1p3beta1.ReferenceImage\x12$\n\x08statuses\x18\x02 \x03(\x0b\x32\x12.google.rpc.Status"\x9e\x02\n\x16\x42\x61tchOperationMetadata\x12J\n\x05state\x18\x01 \x01(\x0e\x32;.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State\x12/\n\x0bsubmit_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"Y\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0e\n\nPROCESSING\x10\x01\x12\x0e\n\nSUCCESSFUL\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x12\r\n\tCANCELLED\x10\x04\x32\xeb\x1e\n\rProductSearch\x12\xe6\x01\n\x10\x43reateProductSet\x12\x36.google.cloud.vision.v1p3beta1.CreateProductSetRequest\x1a).google.cloud.vision.v1p3beta1.ProductSet"o\x82\xd3\xe4\x93\x02\x45"6/v1p3beta1/{parent=projects/*/locations/*}/productSets:\x0bproduct_set\xda\x41!parent,product_set,product_set_id\x12\xc9\x01\n\x0fListProductSets\x12\x35.google.cloud.vision.v1p3beta1.ListProductSetsRequest\x1a\x36.google.cloud.vision.v1p3beta1.ListProductSetsResponse"G\x82\xd3\xe4\x93\x02\x38\x12\x36/v1p3beta1/{parent=projects/*/locations/*}/productSets\xda\x41\x06parent\x12\xb6\x01\n\rGetProductSet\x12\x33.google.cloud.vision.v1p3beta1.GetProductSetRequest\x1a).google.cloud.vision.v1p3beta1.ProductSet"E\x82\xd3\xe4\x93\x02\x38\x12\x36/v1p3beta1/{name=projects/*/locations/*/productSets/*}\xda\x41\x04name\x12\xe8\x01\n\x10UpdateProductSet\x12\x36.google.cloud.vision.v1p3beta1.UpdateProductSetRequest\x1a).google.cloud.vision.v1p3beta1.ProductSet"q\x82\xd3\xe4\x93\x02Q2B/v1p3beta1/{product_set.name=projects/*/locations/*/productSets/*}:\x0bproduct_set\xda\x41\x17product_set,update_mask\x12\xa9\x01\n\x10\x44\x65leteProductSet\x12\x36.google.cloud.vision.v1p3beta1.DeleteProductSetRequest\x1a\x16.google.protobuf.Empty"E\x82\xd3\xe4\x93\x02\x38*6/v1p3beta1/{name=projects/*/locations/*/productSets/*}\xda\x41\x04name\x12\xce\x01\n\rCreateProduct\x12\x33.google.cloud.vision.v1p3beta1.CreateProductRequest\x1a&.google.cloud.vision.v1p3beta1.Product"`\x82\xd3\xe4\x93\x02>"3/v1p3beta1/{parent=projects/*/locations/*}/products:\x07product\xda\x41\x19parent,product,product_id\x12\xbd\x01\n\x0cListProducts\x12\x32.google.cloud.vision.v1p3beta1.ListProductsRequest\x1a\x33.google.cloud.vision.v1p3beta1.ListProductsResponse"D\x82\xd3\xe4\x93\x02\x35\x12\x33/v1p3beta1/{parent=projects/*/locations/*}/products\xda\x41\x06parent\x12\xaa\x01\n\nGetProduct\x12\x30.google.cloud.vision.v1p3beta1.GetProductRequest\x1a&.google.cloud.vision.v1p3beta1.Product"B\x82\xd3\xe4\x93\x02\x35\x12\x33/v1p3beta1/{name=projects/*/locations/*/products/*}\xda\x41\x04name\x12\xd0\x01\n\rUpdateProduct\x12\x33.google.cloud.vision.v1p3beta1.UpdateProductRequest\x1a&.google.cloud.vision.v1p3beta1.Product"b\x82\xd3\xe4\x93\x02\x46\x32;/v1p3beta1/{product.name=projects/*/locations/*/products/*}:\x07product\xda\x41\x13product,update_mask\x12\xa0\x01\n\rDeleteProduct\x12\x33.google.cloud.vision.v1p3beta1.DeleteProductRequest\x1a\x16.google.protobuf.Empty"B\x82\xd3\xe4\x93\x02\x35*3/v1p3beta1/{name=projects/*/locations/*/products/*}\xda\x41\x04name\x12\x8e\x02\n\x14\x43reateReferenceImage\x12:.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest\x1a-.google.cloud.vision.v1p3beta1.ReferenceImage"\x8a\x01\x82\xd3\xe4\x93\x02X"E/v1p3beta1/{parent=projects/*/locations/*/products/*}/referenceImages:\x0freference_image\xda\x41)parent,reference_image,reference_image_id\x12\xc0\x01\n\x14\x44\x65leteReferenceImage\x12:.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest\x1a\x16.google.protobuf.Empty"T\x82\xd3\xe4\x93\x02G*E/v1p3beta1/{name=projects/*/locations/*/products/*/referenceImages/*}\xda\x41\x04name\x12\xe4\x01\n\x13ListReferenceImages\x12\x39.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest\x1a:.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse"V\x82\xd3\xe4\x93\x02G\x12\x45/v1p3beta1/{parent=projects/*/locations/*/products/*}/referenceImages\xda\x41\x06parent\x12\xd1\x01\n\x11GetReferenceImage\x12\x37.google.cloud.vision.v1p3beta1.GetReferenceImageRequest\x1a-.google.cloud.vision.v1p3beta1.ReferenceImage"T\x82\xd3\xe4\x93\x02G\x12\x45/v1p3beta1/{name=projects/*/locations/*/products/*/referenceImages/*}\xda\x41\x04name\x12\xcb\x01\n\x16\x41\x64\x64ProductToProductSet\x12<.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest\x1a\x16.google.protobuf.Empty"[\x82\xd3\xe4\x93\x02\x46"A/v1p3beta1/{name=projects/*/locations/*/productSets/*}:addProduct:\x01*\xda\x41\x0cname,product\x12\xd8\x01\n\x1bRemoveProductFromProductSet\x12\x41.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest\x1a\x16.google.protobuf.Empty"^\x82\xd3\xe4\x93\x02I"D/v1p3beta1/{name=projects/*/locations/*/productSets/*}:removeProduct:\x01*\xda\x41\x0cname,product\x12\xeb\x01\n\x18ListProductsInProductSet\x12>.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest\x1a?.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse"N\x82\xd3\xe4\x93\x02\x41\x12?/v1p3beta1/{name=projects/*/locations/*/productSets/*}/products\xda\x41\x04name\x12\x82\x02\n\x11ImportProductSets\x12\x37.google.cloud.vision.v1p3beta1.ImportProductSetsRequest\x1a\x1d.google.longrunning.Operation"\x94\x01\x82\xd3\xe4\x93\x02\x42"=/v1p3beta1/{parent=projects/*/locations/*}/productSets:import:\x01*\xda\x41\x13parent,input_config\xca\x41\x33\n\x19ImportProductSetsResponse\x12\x16\x42\x61tchOperationMetadata\x1av\xca\x41\x15vision.googleapis.com\xd2\x41[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-visionB\x88\x01\n!com.google.cloud.vision.v1p3beta1B\x19ProductSearchServiceProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\xf8\x01\x01\x62\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, @@ -54,6 +55,7 @@ full_name="google.cloud.vision.v1p3beta1.BatchOperationMetadata.State", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="STATE_UNSPECIFIED", @@ -61,18 +63,39 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PROCESSING", index=1, number=1, serialized_options=None, type=None + name="PROCESSING", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="SUCCESSFUL", index=2, number=2, serialized_options=None, type=None + name="SUCCESSFUL", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="FAILED", index=3, number=3, serialized_options=None, type=None + name="FAILED", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="CANCELLED", index=4, number=4, serialized_options=None, type=None + name="CANCELLED", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -89,6 +112,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="key", @@ -107,6 +131,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="value", @@ -125,6 +150,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -145,6 +171,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -163,6 +190,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="display_name", @@ -181,6 +209,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="description", @@ -199,6 +228,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="product_category", @@ -217,6 +247,7 @@ extension_scope=None, serialized_options=b"\340A\005", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="product_labels", @@ -235,6 +266,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -256,6 +288,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -274,6 +307,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="display_name", @@ -292,6 +326,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="index_time", @@ -310,6 +345,7 @@ extension_scope=None, serialized_options=b"\340A\003", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="index_error", @@ -328,6 +364,7 @@ extension_scope=None, serialized_options=b"\340A\003", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -349,6 +386,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -367,6 +405,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="uri", @@ -385,6 +424,7 @@ extension_scope=None, serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="bounding_polys", @@ -403,6 +443,7 @@ extension_scope=None, serialized_options=b"\340A\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -424,6 +465,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -442,6 +484,7 @@ extension_scope=None, serialized_options=b"\340A\002\372A#\n!locations.googleapis.com/Location", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="product", @@ -460,6 +503,7 @@ extension_scope=None, serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="product_id", @@ -478,6 +522,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -499,6 +544,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -517,6 +563,7 @@ extension_scope=None, serialized_options=b"\340A\002\372A#\n!locations.googleapis.com/Location", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_size", @@ -535,6 +582,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_token", @@ -553,6 +601,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -574,6 +623,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="products", @@ -592,6 +642,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="next_page_token", @@ -610,6 +661,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -631,6 +683,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -649,6 +702,7 @@ extension_scope=None, serialized_options=b"\340A\002\372A\037\n\035vision.googleapis.com/Product", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -670,6 +724,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="product", @@ -688,6 +743,7 @@ extension_scope=None, serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="update_mask", @@ -706,6 +762,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -727,6 +784,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -745,6 +803,7 @@ extension_scope=None, serialized_options=b"\340A\002\372A\037\n\035vision.googleapis.com/Product", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -766,6 +825,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -784,6 +844,7 @@ extension_scope=None, serialized_options=b"\340A\002\372A#\n!locations.googleapis.com/Location", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="product_set", @@ -802,6 +863,7 @@ extension_scope=None, serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="product_set_id", @@ -820,6 +882,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -841,6 +904,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -859,6 +923,7 @@ extension_scope=None, serialized_options=b"\340A\002\372A#\n!locations.googleapis.com/Location", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_size", @@ -877,6 +942,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_token", @@ -895,6 +961,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -916,6 +983,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="product_sets", @@ -934,6 +1002,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="next_page_token", @@ -952,6 +1021,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -973,6 +1043,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -991,6 +1062,7 @@ extension_scope=None, serialized_options=b'\340A\002\372A"\n vision.googleapis.com/ProductSet', file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -1012,6 +1084,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="product_set", @@ -1030,6 +1103,7 @@ extension_scope=None, serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="update_mask", @@ -1048,6 +1122,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1069,6 +1144,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -1087,6 +1163,7 @@ extension_scope=None, serialized_options=b'\340A\002\372A"\n vision.googleapis.com/ProductSet', file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -1108,6 +1185,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -1126,6 +1204,7 @@ extension_scope=None, serialized_options=b"\340A\002\372A\037\n\035vision.googleapis.com/Product", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="reference_image", @@ -1144,6 +1223,7 @@ extension_scope=None, serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="reference_image_id", @@ -1162,6 +1242,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1183,6 +1264,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -1201,6 +1283,7 @@ extension_scope=None, serialized_options=b"\340A\002\372A\037\n\035vision.googleapis.com/Product", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_size", @@ -1219,6 +1302,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_token", @@ -1237,6 +1321,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1258,6 +1343,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="reference_images", @@ -1276,6 +1362,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_size", @@ -1294,6 +1381,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="next_page_token", @@ -1312,6 +1400,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1333,6 +1422,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -1351,6 +1441,7 @@ extension_scope=None, serialized_options=b"\340A\002\372A&\n$vision.googleapis.com/ReferenceImage", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -1372,6 +1463,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -1390,6 +1482,7 @@ extension_scope=None, serialized_options=b"\340A\002\372A&\n$vision.googleapis.com/ReferenceImage", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -1411,6 +1504,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -1429,6 +1523,7 @@ extension_scope=None, serialized_options=b'\340A\002\372A"\n vision.googleapis.com/ProductSet', file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="product", @@ -1447,6 +1542,7 @@ extension_scope=None, serialized_options=b"\340A\002\372A\037\n\035vision.googleapis.com/Product", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1468,6 +1564,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -1486,6 +1583,7 @@ extension_scope=None, serialized_options=b'\340A\002\372A"\n vision.googleapis.com/ProductSet', file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="product", @@ -1504,6 +1602,7 @@ extension_scope=None, serialized_options=b"\340A\002\372A\037\n\035vision.googleapis.com/Product", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1525,6 +1624,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -1543,6 +1643,7 @@ extension_scope=None, serialized_options=b'\340A\002\372A"\n vision.googleapis.com/ProductSet', file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_size", @@ -1561,6 +1662,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_token", @@ -1579,6 +1681,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1600,6 +1703,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="products", @@ -1618,6 +1722,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="next_page_token", @@ -1636,6 +1741,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1657,6 +1763,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="csv_file_uri", @@ -1675,6 +1782,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -1696,6 +1804,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="gcs_source", @@ -1714,6 +1823,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -1729,6 +1839,7 @@ full_name="google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig.source", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], ) ], @@ -1743,6 +1854,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -1761,6 +1873,7 @@ extension_scope=None, serialized_options=b"\340A\002\372A#\n!locations.googleapis.com/Location", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="input_config", @@ -1779,6 +1892,7 @@ extension_scope=None, serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1800,6 +1914,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="reference_images", @@ -1818,6 +1933,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="statuses", @@ -1836,6 +1952,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1857,6 +1974,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="state", @@ -1875,6 +1993,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="submit_time", @@ -1893,6 +2012,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="end_time", @@ -1911,6 +2031,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2789,6 +2910,7 @@ file=DESCRIPTOR, index=0, serialized_options=b"\312A\025vision.googleapis.com\322A[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-vision", + create_key=_descriptor._internal_create_key, serialized_start=4637, serialized_end=8584, methods=[ @@ -2800,6 +2922,7 @@ input_type=_CREATEPRODUCTSETREQUEST, output_type=_PRODUCTSET, serialized_options=b'\202\323\344\223\002E"6/v1p3beta1/{parent=projects/*/locations/*}/productSets:\013product_set\332A!parent,product_set,product_set_id', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="ListProductSets", @@ -2809,6 +2932,7 @@ input_type=_LISTPRODUCTSETSREQUEST, output_type=_LISTPRODUCTSETSRESPONSE, serialized_options=b"\202\323\344\223\0028\0226/v1p3beta1/{parent=projects/*/locations/*}/productSets\332A\006parent", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="GetProductSet", @@ -2818,6 +2942,7 @@ input_type=_GETPRODUCTSETREQUEST, output_type=_PRODUCTSET, serialized_options=b"\202\323\344\223\0028\0226/v1p3beta1/{name=projects/*/locations/*/productSets/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="UpdateProductSet", @@ -2827,6 +2952,7 @@ input_type=_UPDATEPRODUCTSETREQUEST, output_type=_PRODUCTSET, serialized_options=b"\202\323\344\223\002Q2B/v1p3beta1/{product_set.name=projects/*/locations/*/productSets/*}:\013product_set\332A\027product_set,update_mask", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="DeleteProductSet", @@ -2836,6 +2962,7 @@ input_type=_DELETEPRODUCTSETREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, serialized_options=b"\202\323\344\223\0028*6/v1p3beta1/{name=projects/*/locations/*/productSets/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="CreateProduct", @@ -2845,6 +2972,7 @@ input_type=_CREATEPRODUCTREQUEST, output_type=_PRODUCT, serialized_options=b'\202\323\344\223\002>"3/v1p3beta1/{parent=projects/*/locations/*}/products:\007product\332A\031parent,product,product_id', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="ListProducts", @@ -2854,6 +2982,7 @@ input_type=_LISTPRODUCTSREQUEST, output_type=_LISTPRODUCTSRESPONSE, serialized_options=b"\202\323\344\223\0025\0223/v1p3beta1/{parent=projects/*/locations/*}/products\332A\006parent", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="GetProduct", @@ -2863,6 +2992,7 @@ input_type=_GETPRODUCTREQUEST, output_type=_PRODUCT, serialized_options=b"\202\323\344\223\0025\0223/v1p3beta1/{name=projects/*/locations/*/products/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="UpdateProduct", @@ -2872,6 +3002,7 @@ input_type=_UPDATEPRODUCTREQUEST, output_type=_PRODUCT, serialized_options=b"\202\323\344\223\002F2;/v1p3beta1/{product.name=projects/*/locations/*/products/*}:\007product\332A\023product,update_mask", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="DeleteProduct", @@ -2881,6 +3012,7 @@ input_type=_DELETEPRODUCTREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, serialized_options=b"\202\323\344\223\0025*3/v1p3beta1/{name=projects/*/locations/*/products/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="CreateReferenceImage", @@ -2890,6 +3022,7 @@ input_type=_CREATEREFERENCEIMAGEREQUEST, output_type=_REFERENCEIMAGE, serialized_options=b'\202\323\344\223\002X"E/v1p3beta1/{parent=projects/*/locations/*/products/*}/referenceImages:\017reference_image\332A)parent,reference_image,reference_image_id', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="DeleteReferenceImage", @@ -2899,6 +3032,7 @@ input_type=_DELETEREFERENCEIMAGEREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, serialized_options=b"\202\323\344\223\002G*E/v1p3beta1/{name=projects/*/locations/*/products/*/referenceImages/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="ListReferenceImages", @@ -2908,6 +3042,7 @@ input_type=_LISTREFERENCEIMAGESREQUEST, output_type=_LISTREFERENCEIMAGESRESPONSE, serialized_options=b"\202\323\344\223\002G\022E/v1p3beta1/{parent=projects/*/locations/*/products/*}/referenceImages\332A\006parent", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="GetReferenceImage", @@ -2917,6 +3052,7 @@ input_type=_GETREFERENCEIMAGEREQUEST, output_type=_REFERENCEIMAGE, serialized_options=b"\202\323\344\223\002G\022E/v1p3beta1/{name=projects/*/locations/*/products/*/referenceImages/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="AddProductToProductSet", @@ -2926,6 +3062,7 @@ input_type=_ADDPRODUCTTOPRODUCTSETREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, serialized_options=b'\202\323\344\223\002F"A/v1p3beta1/{name=projects/*/locations/*/productSets/*}:addProduct:\001*\332A\014name,product', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="RemoveProductFromProductSet", @@ -2935,6 +3072,7 @@ input_type=_REMOVEPRODUCTFROMPRODUCTSETREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, serialized_options=b'\202\323\344\223\002I"D/v1p3beta1/{name=projects/*/locations/*/productSets/*}:removeProduct:\001*\332A\014name,product', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="ListProductsInProductSet", @@ -2944,6 +3082,7 @@ input_type=_LISTPRODUCTSINPRODUCTSETREQUEST, output_type=_LISTPRODUCTSINPRODUCTSETRESPONSE, serialized_options=b"\202\323\344\223\002A\022?/v1p3beta1/{name=projects/*/locations/*/productSets/*}/products\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="ImportProductSets", @@ -2953,6 +3092,7 @@ input_type=_IMPORTPRODUCTSETSREQUEST, output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, serialized_options=b'\202\323\344\223\002B"=/v1p3beta1/{parent=projects/*/locations/*}/productSets:import:\001*\332A\023parent,input_config\312A3\n\031ImportProductSetsResponse\022\026BatchOperationMetadata', + create_key=_descriptor._internal_create_key, ), ], ) diff --git a/google/cloud/vision_v1p3beta1/proto/text_annotation_pb2.py b/google/cloud/vision_v1p3beta1/proto/text_annotation_pb2.py index 75f0acb4..4d112d78 100644 --- a/google/cloud/vision_v1p3beta1/proto/text_annotation_pb2.py +++ b/google/cloud/vision_v1p3beta1/proto/text_annotation_pb2.py @@ -23,6 +23,7 @@ package="google.cloud.vision.v1p3beta1", syntax="proto3", serialized_options=b"\n!com.google.cloud.vision.v1p3beta1B\023TextAnnotationProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\370\001\001", + create_key=_descriptor._internal_create_key, serialized_pb=b'\n9google/cloud/vision_v1p3beta1/proto/text_annotation.proto\x12\x1dgoogle.cloud.vision.v1p3beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x32google/cloud/vision_v1p3beta1/proto/geometry.proto"\xb2\x04\n\x0eTextAnnotation\x12\x32\n\x05pages\x18\x01 \x03(\x0b\x32#.google.cloud.vision.v1p3beta1.Page\x12\x0c\n\x04text\x18\x02 \x01(\t\x1a=\n\x10\x44\x65tectedLanguage\x12\x15\n\rlanguage_code\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x1a\xdc\x01\n\rDetectedBreak\x12S\n\x04type\x18\x01 \x01(\x0e\x32\x45.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType\x12\x11\n\tis_prefix\x18\x02 \x01(\x08"c\n\tBreakType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05SPACE\x10\x01\x12\x0e\n\nSURE_SPACE\x10\x02\x12\x12\n\x0e\x45OL_SURE_SPACE\x10\x03\x12\n\n\x06HYPHEN\x10\x04\x12\x0e\n\nLINE_BREAK\x10\x05\x1a\xbf\x01\n\x0cTextProperty\x12Z\n\x12\x64\x65tected_languages\x18\x01 \x03(\x0b\x32>.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage\x12S\n\x0e\x64\x65tected_break\x18\x02 \x01(\x0b\x32;.google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak"\xbd\x01\n\x04Page\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty\x12\r\n\x05width\x18\x02 \x01(\x05\x12\x0e\n\x06height\x18\x03 \x01(\x05\x12\x34\n\x06\x62locks\x18\x04 \x03(\x0b\x32$.google.cloud.vision.v1p3beta1.Block\x12\x12\n\nconfidence\x18\x05 \x01(\x02"\x82\x03\n\x05\x42lock\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\x12<\n\nparagraphs\x18\x03 \x03(\x0b\x32(.google.cloud.vision.v1p3beta1.Paragraph\x12\x42\n\nblock_type\x18\x04 \x01(\x0e\x32..google.cloud.vision.v1p3beta1.Block.BlockType\x12\x12\n\nconfidence\x18\x05 \x01(\x02"R\n\tBlockType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04TEXT\x10\x01\x12\t\n\x05TABLE\x10\x02\x12\x0b\n\x07PICTURE\x10\x03\x12\t\n\x05RULER\x10\x04\x12\x0b\n\x07\x42\x41RCODE\x10\x05"\xe4\x01\n\tParagraph\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\x12\x32\n\x05words\x18\x03 \x03(\x0b\x32#.google.cloud.vision.v1p3beta1.Word\x12\x12\n\nconfidence\x18\x04 \x01(\x02"\xe3\x01\n\x04Word\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\x12\x36\n\x07symbols\x18\x03 \x03(\x0b\x32%.google.cloud.vision.v1p3beta1.Symbol\x12\x12\n\nconfidence\x18\x04 \x01(\x02"\xbb\x01\n\x06Symbol\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p3beta1.BoundingPoly\x12\x0c\n\x04text\x18\x03 \x01(\t\x12\x12\n\nconfidence\x18\x04 \x01(\x02\x42\x82\x01\n!com.google.cloud.vision.v1p3beta1B\x13TextAnnotationProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\xf8\x01\x01\x62\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, @@ -36,24 +37,55 @@ full_name="google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="UNKNOWN", index=0, number=0, serialized_options=None, type=None + name="UNKNOWN", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="SPACE", index=1, number=1, serialized_options=None, type=None + name="SPACE", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="SURE_SPACE", index=2, number=2, serialized_options=None, type=None + name="SURE_SPACE", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="EOL_SURE_SPACE", index=3, number=3, serialized_options=None, type=None + name="EOL_SURE_SPACE", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="HYPHEN", index=4, number=4, serialized_options=None, type=None + name="HYPHEN", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="LINE_BREAK", index=5, number=5, serialized_options=None, type=None + name="LINE_BREAK", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -68,24 +100,55 @@ full_name="google.cloud.vision.v1p3beta1.Block.BlockType", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="UNKNOWN", index=0, number=0, serialized_options=None, type=None + name="UNKNOWN", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="TEXT", index=1, number=1, serialized_options=None, type=None + name="TEXT", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="TABLE", index=2, number=2, serialized_options=None, type=None + name="TABLE", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PICTURE", index=3, number=3, serialized_options=None, type=None + name="PICTURE", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="RULER", index=4, number=4, serialized_options=None, type=None + name="RULER", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="BARCODE", index=5, number=5, serialized_options=None, type=None + name="BARCODE", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -102,6 +165,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="language_code", @@ -120,6 +184,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="confidence", @@ -138,6 +203,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -158,6 +224,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="type", @@ -176,6 +243,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="is_prefix", @@ -194,6 +262,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -214,6 +283,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="detected_languages", @@ -232,6 +302,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="detected_break", @@ -250,6 +321,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -270,6 +342,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="pages", @@ -288,6 +361,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="text", @@ -306,6 +380,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -331,6 +406,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="property", @@ -349,6 +425,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="width", @@ -367,6 +444,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="height", @@ -385,6 +463,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="blocks", @@ -403,6 +482,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="confidence", @@ -421,6 +501,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -442,6 +523,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="property", @@ -460,6 +542,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="bounding_box", @@ -478,6 +561,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="paragraphs", @@ -496,6 +580,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="block_type", @@ -514,6 +599,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="confidence", @@ -532,6 +618,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -553,6 +640,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="property", @@ -571,6 +659,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="bounding_box", @@ -589,6 +678,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="words", @@ -607,6 +697,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="confidence", @@ -625,6 +716,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -646,6 +738,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="property", @@ -664,6 +757,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="bounding_box", @@ -682,6 +776,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="symbols", @@ -700,6 +795,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="confidence", @@ -718,6 +814,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -739,6 +836,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="property", @@ -757,6 +855,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="bounding_box", @@ -775,6 +874,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="text", @@ -793,6 +893,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="confidence", @@ -811,6 +912,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], diff --git a/google/cloud/vision_v1p3beta1/proto/web_detection_pb2.py b/google/cloud/vision_v1p3beta1/proto/web_detection_pb2.py index 87ec653e..df09ce33 100644 --- a/google/cloud/vision_v1p3beta1/proto/web_detection_pb2.py +++ b/google/cloud/vision_v1p3beta1/proto/web_detection_pb2.py @@ -20,6 +20,7 @@ package="google.cloud.vision.v1p3beta1", syntax="proto3", serialized_options=b"\n!com.google.cloud.vision.v1p3beta1B\021WebDetectionProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\370\001\001", + create_key=_descriptor._internal_create_key, serialized_pb=b'\n7google/cloud/vision_v1p3beta1/proto/web_detection.proto\x12\x1dgoogle.cloud.vision.v1p3beta1\x1a\x1cgoogle/api/annotations.proto"\x8c\x07\n\x0cWebDetection\x12K\n\x0cweb_entities\x18\x01 \x03(\x0b\x32\x35.google.cloud.vision.v1p3beta1.WebDetection.WebEntity\x12R\n\x14\x66ull_matching_images\x18\x02 \x03(\x0b\x32\x34.google.cloud.vision.v1p3beta1.WebDetection.WebImage\x12U\n\x17partial_matching_images\x18\x03 \x03(\x0b\x32\x34.google.cloud.vision.v1p3beta1.WebDetection.WebImage\x12W\n\x1apages_with_matching_images\x18\x04 \x03(\x0b\x32\x33.google.cloud.vision.v1p3beta1.WebDetection.WebPage\x12U\n\x17visually_similar_images\x18\x06 \x03(\x0b\x32\x34.google.cloud.vision.v1p3beta1.WebDetection.WebImage\x12O\n\x11\x62\x65st_guess_labels\x18\x08 \x03(\x0b\x32\x34.google.cloud.vision.v1p3beta1.WebDetection.WebLabel\x1a\x42\n\tWebEntity\x12\x11\n\tentity_id\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x1a&\n\x08WebImage\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x1a\xe4\x01\n\x07WebPage\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x12\n\npage_title\x18\x03 \x01(\t\x12R\n\x14\x66ull_matching_images\x18\x04 \x03(\x0b\x32\x34.google.cloud.vision.v1p3beta1.WebDetection.WebImage\x12U\n\x17partial_matching_images\x18\x05 \x03(\x0b\x32\x34.google.cloud.vision.v1p3beta1.WebDetection.WebImage\x1a\x30\n\x08WebLabel\x12\r\n\x05label\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x02 \x01(\tB\x80\x01\n!com.google.cloud.vision.v1p3beta1B\x11WebDetectionProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision\xf8\x01\x01\x62\x06proto3', dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR], ) @@ -31,6 +32,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="entity_id", @@ -49,6 +51,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="score", @@ -67,6 +70,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="description", @@ -85,6 +89,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -105,6 +110,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="url", @@ -123,6 +129,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="score", @@ -141,6 +148,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -161,6 +169,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="url", @@ -179,6 +188,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="score", @@ -197,6 +207,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_title", @@ -215,6 +226,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="full_matching_images", @@ -233,6 +245,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="partial_matching_images", @@ -251,6 +264,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -271,6 +285,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="label", @@ -289,6 +304,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="language_code", @@ -307,6 +323,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -327,6 +344,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="web_entities", @@ -345,6 +363,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="full_matching_images", @@ -363,6 +382,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="partial_matching_images", @@ -381,6 +401,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="pages_with_matching_images", @@ -399,6 +420,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="visually_similar_images", @@ -417,6 +439,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="best_guess_labels", @@ -435,6 +458,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], diff --git a/google/cloud/vision_v1p4beta1/proto/face_pb2.py b/google/cloud/vision_v1p4beta1/proto/face_pb2.py index de73bf1b..0198df38 100644 --- a/google/cloud/vision_v1p4beta1/proto/face_pb2.py +++ b/google/cloud/vision_v1p4beta1/proto/face_pb2.py @@ -23,6 +23,7 @@ package="google.cloud.vision.v1p4beta1", syntax="proto3", serialized_options=b"\n!com.google.cloud.vision.v1p4beta1B\016CelebrityProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision\370\001\001\242\002\004GCVN", + create_key=_descriptor._internal_create_key, serialized_pb=b'\n.google/cloud/vision_v1p4beta1/proto/face.proto\x12\x1dgoogle.cloud.vision.v1p4beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x32google/cloud/vision_v1p4beta1/proto/geometry.proto".\n\x15\x46\x61\x63\x65RecognitionParams\x12\x15\n\rcelebrity_set\x18\x01 \x03(\t"D\n\tCelebrity\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t"h\n\x15\x46\x61\x63\x65RecognitionResult\x12;\n\tcelebrity\x18\x01 \x01(\x0b\x32(.google.cloud.vision.v1p4beta1.Celebrity\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x42\x84\x01\n!com.google.cloud.vision.v1p4beta1B\x0e\x43\x65lebrityProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision\xf8\x01\x01\xa2\x02\x04GCVNb\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, @@ -37,6 +38,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="celebrity_set", @@ -55,6 +57,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -76,6 +79,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -94,6 +98,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="display_name", @@ -112,6 +117,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="description", @@ -130,6 +136,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -151,6 +158,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="celebrity", @@ -169,6 +177,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="confidence", @@ -187,6 +196,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], diff --git a/google/cloud/vision_v1p4beta1/proto/geometry_pb2.py b/google/cloud/vision_v1p4beta1/proto/geometry_pb2.py index ec1b46fc..ab198689 100644 --- a/google/cloud/vision_v1p4beta1/proto/geometry_pb2.py +++ b/google/cloud/vision_v1p4beta1/proto/geometry_pb2.py @@ -20,6 +20,7 @@ package="google.cloud.vision.v1p4beta1", syntax="proto3", serialized_options=b"\n!com.google.cloud.vision.v1p4beta1B\rGeometryProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision\370\001\001\242\002\004GCVN", + create_key=_descriptor._internal_create_key, serialized_pb=b'\n2google/cloud/vision_v1p4beta1/proto/geometry.proto\x12\x1dgoogle.cloud.vision.v1p4beta1\x1a\x1cgoogle/api/annotations.proto"\x1e\n\x06Vertex\x12\t\n\x01x\x18\x01 \x01(\x05\x12\t\n\x01y\x18\x02 \x01(\x05"(\n\x10NormalizedVertex\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02"\x95\x01\n\x0c\x42oundingPoly\x12\x37\n\x08vertices\x18\x01 \x03(\x0b\x32%.google.cloud.vision.v1p4beta1.Vertex\x12L\n\x13normalized_vertices\x18\x02 \x03(\x0b\x32/.google.cloud.vision.v1p4beta1.NormalizedVertex"+\n\x08Position\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02\x12\t\n\x01z\x18\x03 \x01(\x02\x42\x83\x01\n!com.google.cloud.vision.v1p4beta1B\rGeometryProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision\xf8\x01\x01\xa2\x02\x04GCVNb\x06proto3', dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR], ) @@ -31,6 +32,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="x", @@ -49,6 +51,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="y", @@ -67,6 +70,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -88,6 +92,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="x", @@ -106,6 +111,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="y", @@ -124,6 +130,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -145,6 +152,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="vertices", @@ -163,6 +171,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="normalized_vertices", @@ -181,6 +190,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -202,6 +212,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="x", @@ -220,6 +231,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="y", @@ -238,6 +250,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="z", @@ -256,6 +269,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], diff --git a/google/cloud/vision_v1p4beta1/proto/image_annotator_pb2.py b/google/cloud/vision_v1p4beta1/proto/image_annotator_pb2.py index dec70114..be672d33 100644 --- a/google/cloud/vision_v1p4beta1/proto/image_annotator_pb2.py +++ b/google/cloud/vision_v1p4beta1/proto/image_annotator_pb2.py @@ -46,6 +46,7 @@ package="google.cloud.vision.v1p4beta1", syntax="proto3", serialized_options=b"\n!com.google.cloud.vision.v1p4beta1B\023ImageAnnotatorProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision\370\001\001\242\002\004GCVN", + create_key=_descriptor._internal_create_key, serialized_pb=b'\n9google/cloud/vision_v1p4beta1/proto/image_annotator.proto\x12\x1dgoogle.cloud.vision.v1p4beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a.google/cloud/vision_v1p4beta1/proto/face.proto\x1a\x32google/cloud/vision_v1p4beta1/proto/geometry.proto\x1a\x38google/cloud/vision_v1p4beta1/proto/product_search.proto\x1a\x39google/cloud/vision_v1p4beta1/proto/text_annotation.proto\x1a\x37google/cloud/vision_v1p4beta1/proto/web_detection.proto\x1a#google/longrunning/operations.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a\x17google/type/color.proto\x1a\x18google/type/latlng.proto"\x8e\x03\n\x07\x46\x65\x61ture\x12\x39\n\x04type\x18\x01 \x01(\x0e\x32+.google.cloud.vision.v1p4beta1.Feature.Type\x12\x13\n\x0bmax_results\x18\x02 \x01(\x05\x12\r\n\x05model\x18\x03 \x01(\t"\xa3\x02\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x46\x41\x43\x45_DETECTION\x10\x01\x12\x16\n\x12LANDMARK_DETECTION\x10\x02\x12\x12\n\x0eLOGO_DETECTION\x10\x03\x12\x13\n\x0fLABEL_DETECTION\x10\x04\x12\x12\n\x0eTEXT_DETECTION\x10\x05\x12\x1b\n\x17\x44OCUMENT_TEXT_DETECTION\x10\x0b\x12\x19\n\x15SAFE_SEARCH_DETECTION\x10\x06\x12\x14\n\x10IMAGE_PROPERTIES\x10\x07\x12\x0e\n\nCROP_HINTS\x10\t\x12\x11\n\rWEB_DETECTION\x10\n\x12\x12\n\x0ePRODUCT_SEARCH\x10\x0c\x12\x17\n\x13OBJECT_LOCALIZATION\x10\x13"7\n\x0bImageSource\x12\x15\n\rgcs_image_uri\x18\x01 \x01(\t\x12\x11\n\timage_uri\x18\x02 \x01(\t"T\n\x05Image\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\x0c\x12:\n\x06source\x18\x02 \x01(\x0b\x32*.google.cloud.vision.v1p4beta1.ImageSource"\xed\x0e\n\x0e\x46\x61\x63\x65\x41nnotation\x12\x42\n\rbounding_poly\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.BoundingPoly\x12\x45\n\x10\x66\x64_bounding_poly\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.BoundingPoly\x12I\n\tlandmarks\x18\x03 \x03(\x0b\x32\x36.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark\x12\x12\n\nroll_angle\x18\x04 \x01(\x02\x12\x11\n\tpan_angle\x18\x05 \x01(\x02\x12\x12\n\ntilt_angle\x18\x06 \x01(\x02\x12\x1c\n\x14\x64\x65tection_confidence\x18\x07 \x01(\x02\x12\x1e\n\x16landmarking_confidence\x18\x08 \x01(\x02\x12\x41\n\x0ejoy_likelihood\x18\t \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood\x12\x44\n\x11sorrow_likelihood\x18\n \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood\x12\x43\n\x10\x61nger_likelihood\x18\x0b \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood\x12\x46\n\x13surprise_likelihood\x18\x0c \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood\x12K\n\x18under_exposed_likelihood\x18\r \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood\x12\x45\n\x12\x62lurred_likelihood\x18\x0e \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood\x12\x46\n\x13headwear_likelihood\x18\x0f \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood\x12P\n\x12recognition_result\x18\x10 \x03(\x0b\x32\x34.google.cloud.vision.v1p4beta1.FaceRecognitionResult\x1a\xc7\x07\n\x08Landmark\x12I\n\x04type\x18\x03 \x01(\x0e\x32;.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type\x12\x39\n\x08position\x18\x04 \x01(\x0b\x32\'.google.cloud.vision.v1p4beta1.Position"\xb4\x06\n\x04Type\x12\x14\n\x10UNKNOWN_LANDMARK\x10\x00\x12\x0c\n\x08LEFT_EYE\x10\x01\x12\r\n\tRIGHT_EYE\x10\x02\x12\x18\n\x14LEFT_OF_LEFT_EYEBROW\x10\x03\x12\x19\n\x15RIGHT_OF_LEFT_EYEBROW\x10\x04\x12\x19\n\x15LEFT_OF_RIGHT_EYEBROW\x10\x05\x12\x1a\n\x16RIGHT_OF_RIGHT_EYEBROW\x10\x06\x12\x19\n\x15MIDPOINT_BETWEEN_EYES\x10\x07\x12\x0c\n\x08NOSE_TIP\x10\x08\x12\r\n\tUPPER_LIP\x10\t\x12\r\n\tLOWER_LIP\x10\n\x12\x0e\n\nMOUTH_LEFT\x10\x0b\x12\x0f\n\x0bMOUTH_RIGHT\x10\x0c\x12\x10\n\x0cMOUTH_CENTER\x10\r\x12\x15\n\x11NOSE_BOTTOM_RIGHT\x10\x0e\x12\x14\n\x10NOSE_BOTTOM_LEFT\x10\x0f\x12\x16\n\x12NOSE_BOTTOM_CENTER\x10\x10\x12\x19\n\x15LEFT_EYE_TOP_BOUNDARY\x10\x11\x12\x19\n\x15LEFT_EYE_RIGHT_CORNER\x10\x12\x12\x1c\n\x18LEFT_EYE_BOTTOM_BOUNDARY\x10\x13\x12\x18\n\x14LEFT_EYE_LEFT_CORNER\x10\x14\x12\x1a\n\x16RIGHT_EYE_TOP_BOUNDARY\x10\x15\x12\x1a\n\x16RIGHT_EYE_RIGHT_CORNER\x10\x16\x12\x1d\n\x19RIGHT_EYE_BOTTOM_BOUNDARY\x10\x17\x12\x19\n\x15RIGHT_EYE_LEFT_CORNER\x10\x18\x12\x1f\n\x1bLEFT_EYEBROW_UPPER_MIDPOINT\x10\x19\x12 \n\x1cRIGHT_EYEBROW_UPPER_MIDPOINT\x10\x1a\x12\x14\n\x10LEFT_EAR_TRAGION\x10\x1b\x12\x15\n\x11RIGHT_EAR_TRAGION\x10\x1c\x12\x12\n\x0eLEFT_EYE_PUPIL\x10\x1d\x12\x13\n\x0fRIGHT_EYE_PUPIL\x10\x1e\x12\x15\n\x11\x46OREHEAD_GLABELLA\x10\x1f\x12\x11\n\rCHIN_GNATHION\x10 \x12\x14\n\x10\x43HIN_LEFT_GONION\x10!\x12\x15\n\x11\x43HIN_RIGHT_GONION\x10""4\n\x0cLocationInfo\x12$\n\x07lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng"=\n\x08Property\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x14\n\x0cuint64_value\x18\x03 \x01(\x04"\xc0\x02\n\x10\x45ntityAnnotation\x12\x0b\n\x03mid\x18\x01 \x01(\t\x12\x0e\n\x06locale\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\r\n\x05score\x18\x04 \x01(\x02\x12\x16\n\nconfidence\x18\x05 \x01(\x02\x42\x02\x18\x01\x12\x12\n\ntopicality\x18\x06 \x01(\x02\x12\x42\n\rbounding_poly\x18\x07 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.BoundingPoly\x12>\n\tlocations\x18\x08 \x03(\x0b\x32+.google.cloud.vision.v1p4beta1.LocationInfo\x12;\n\nproperties\x18\t \x03(\x0b\x32\'.google.cloud.vision.v1p4beta1.Property"\xa0\x01\n\x19LocalizedObjectAnnotation\x12\x0b\n\x03mid\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\r\n\x05score\x18\x04 \x01(\x02\x12\x42\n\rbounding_poly\x18\x05 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.BoundingPoly"\xbc\x02\n\x14SafeSearchAnnotation\x12\x38\n\x05\x61\x64ult\x18\x01 \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood\x12\x38\n\x05spoof\x18\x02 \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood\x12:\n\x07medical\x18\x03 \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood\x12;\n\x08violence\x18\x04 \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood\x12\x37\n\x04racy\x18\t \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood"a\n\x0bLatLongRect\x12(\n\x0bmin_lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng\x12(\n\x0bmax_lat_lng\x18\x02 \x01(\x0b\x32\x13.google.type.LatLng"U\n\tColorInfo\x12!\n\x05\x63olor\x18\x01 \x01(\x0b\x32\x12.google.type.Color\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x16\n\x0epixel_fraction\x18\x03 \x01(\x02"T\n\x18\x44ominantColorsAnnotation\x12\x38\n\x06\x63olors\x18\x01 \x03(\x0b\x32(.google.cloud.vision.v1p4beta1.ColorInfo"c\n\x0fImageProperties\x12P\n\x0f\x64ominant_colors\x18\x01 \x01(\x0b\x32\x37.google.cloud.vision.v1p4beta1.DominantColorsAnnotation"\x7f\n\x08\x43ropHint\x12\x42\n\rbounding_poly\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.BoundingPoly\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12\x1b\n\x13importance_fraction\x18\x03 \x01(\x02"R\n\x13\x43ropHintsAnnotation\x12;\n\ncrop_hints\x18\x01 \x03(\x0b\x32\'.google.cloud.vision.v1p4beta1.CropHint"(\n\x0f\x43ropHintsParams\x12\x15\n\raspect_ratios\x18\x01 \x03(\x02"1\n\x12WebDetectionParams\x12\x1b\n\x13include_geo_results\x18\x02 \x01(\x08"\xaf\x03\n\x0cImageContext\x12\x41\n\rlat_long_rect\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p4beta1.LatLongRect\x12\x16\n\x0elanguage_hints\x18\x02 \x03(\t\x12I\n\x11\x63rop_hints_params\x18\x04 \x01(\x0b\x32..google.cloud.vision.v1p4beta1.CropHintsParams\x12U\n\x17\x66\x61\x63\x65_recognition_params\x18\n \x01(\x0b\x32\x34.google.cloud.vision.v1p4beta1.FaceRecognitionParams\x12Q\n\x15product_search_params\x18\x05 \x01(\x0b\x32\x32.google.cloud.vision.v1p4beta1.ProductSearchParams\x12O\n\x14web_detection_params\x18\x06 \x01(\x0b\x32\x31.google.cloud.vision.v1p4beta1.WebDetectionParams"\xc9\x01\n\x14\x41nnotateImageRequest\x12\x33\n\x05image\x18\x01 \x01(\x0b\x32$.google.cloud.vision.v1p4beta1.Image\x12\x38\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32&.google.cloud.vision.v1p4beta1.Feature\x12\x42\n\rimage_context\x18\x03 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.ImageContext":\n\x16ImageAnnotationContext\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x13\n\x0bpage_number\x18\x02 \x01(\x05"\xbf\x08\n\x15\x41nnotateImageResponse\x12G\n\x10\x66\x61\x63\x65_annotations\x18\x01 \x03(\x0b\x32-.google.cloud.vision.v1p4beta1.FaceAnnotation\x12M\n\x14landmark_annotations\x18\x02 \x03(\x0b\x32/.google.cloud.vision.v1p4beta1.EntityAnnotation\x12I\n\x10logo_annotations\x18\x03 \x03(\x0b\x32/.google.cloud.vision.v1p4beta1.EntityAnnotation\x12J\n\x11label_annotations\x18\x04 \x03(\x0b\x32/.google.cloud.vision.v1p4beta1.EntityAnnotation\x12^\n\x1clocalized_object_annotations\x18\x16 \x03(\x0b\x32\x38.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation\x12I\n\x10text_annotations\x18\x05 \x03(\x0b\x32/.google.cloud.vision.v1p4beta1.EntityAnnotation\x12K\n\x14\x66ull_text_annotation\x18\x0c \x01(\x0b\x32-.google.cloud.vision.v1p4beta1.TextAnnotation\x12S\n\x16safe_search_annotation\x18\x06 \x01(\x0b\x32\x33.google.cloud.vision.v1p4beta1.SafeSearchAnnotation\x12S\n\x1bimage_properties_annotation\x18\x08 \x01(\x0b\x32..google.cloud.vision.v1p4beta1.ImageProperties\x12Q\n\x15\x63rop_hints_annotation\x18\x0b \x01(\x0b\x32\x32.google.cloud.vision.v1p4beta1.CropHintsAnnotation\x12\x42\n\rweb_detection\x18\r \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.WebDetection\x12S\n\x16product_search_results\x18\x0e \x01(\x0b\x32\x33.google.cloud.vision.v1p4beta1.ProductSearchResults\x12!\n\x05\x65rror\x18\t \x01(\x0b\x32\x12.google.rpc.Status\x12\x46\n\x07\x63ontext\x18\x15 \x01(\x0b\x32\x35.google.cloud.vision.v1p4beta1.ImageAnnotationContext"h\n\x1a\x42\x61tchAnnotateImagesRequest\x12J\n\x08requests\x18\x01 \x03(\x0b\x32\x33.google.cloud.vision.v1p4beta1.AnnotateImageRequestB\x03\xe0\x41\x02"f\n\x1b\x42\x61tchAnnotateImagesResponse\x12G\n\tresponses\x18\x01 \x03(\x0b\x32\x34.google.cloud.vision.v1p4beta1.AnnotateImageResponse"\xe4\x01\n\x13\x41nnotateFileRequest\x12@\n\x0cinput_config\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p4beta1.InputConfig\x12\x38\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32&.google.cloud.vision.v1p4beta1.Feature\x12\x42\n\rimage_context\x18\x03 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.ImageContext\x12\r\n\x05pages\x18\x04 \x03(\x05"\xd9\x01\n\x14\x41nnotateFileResponse\x12@\n\x0cinput_config\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p4beta1.InputConfig\x12G\n\tresponses\x18\x02 \x03(\x0b\x32\x34.google.cloud.vision.v1p4beta1.AnnotateImageResponse\x12\x13\n\x0btotal_pages\x18\x03 \x01(\x05\x12!\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x12.google.rpc.Status"f\n\x19\x42\x61tchAnnotateFilesRequest\x12I\n\x08requests\x18\x01 \x03(\x0b\x32\x32.google.cloud.vision.v1p4beta1.AnnotateFileRequestB\x03\xe0\x41\x02"d\n\x1a\x42\x61tchAnnotateFilesResponse\x12\x46\n\tresponses\x18\x01 \x03(\x0b\x32\x33.google.cloud.vision.v1p4beta1.AnnotateFileResponse"\x9e\x02\n\x18\x41syncAnnotateFileRequest\x12@\n\x0cinput_config\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p4beta1.InputConfig\x12\x38\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32&.google.cloud.vision.v1p4beta1.Feature\x12\x42\n\rimage_context\x18\x03 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.ImageContext\x12\x42\n\routput_config\x18\x04 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.OutputConfig"_\n\x19\x41syncAnnotateFileResponse\x12\x42\n\routput_config\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.OutputConfig"\xb6\x01\n\x1f\x41syncBatchAnnotateImagesRequest\x12J\n\x08requests\x18\x01 \x03(\x0b\x32\x33.google.cloud.vision.v1p4beta1.AnnotateImageRequestB\x03\xe0\x41\x02\x12G\n\routput_config\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.OutputConfigB\x03\xe0\x41\x02"f\n AsyncBatchAnnotateImagesResponse\x12\x42\n\routput_config\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.OutputConfig"p\n\x1e\x41syncBatchAnnotateFilesRequest\x12N\n\x08requests\x18\x01 \x03(\x0b\x32\x37.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestB\x03\xe0\x41\x02"n\n\x1f\x41syncBatchAnnotateFilesResponse\x12K\n\tresponses\x18\x01 \x03(\x0b\x32\x38.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse"o\n\x0bInputConfig\x12<\n\ngcs_source\x18\x01 \x01(\x0b\x32(.google.cloud.vision.v1p4beta1.GcsSource\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\x0c\x12\x11\n\tmime_type\x18\x02 \x01(\t"j\n\x0cOutputConfig\x12\x46\n\x0fgcs_destination\x18\x01 \x01(\x0b\x32-.google.cloud.vision.v1p4beta1.GcsDestination\x12\x12\n\nbatch_size\x18\x02 \x01(\x05"\x18\n\tGcsSource\x12\x0b\n\x03uri\x18\x01 \x01(\t"\x1d\n\x0eGcsDestination\x12\x0b\n\x03uri\x18\x01 \x01(\t"\x8f\x02\n\x11OperationMetadata\x12\x45\n\x05state\x18\x01 \x01(\x0e\x32\x36.google.cloud.vision.v1p4beta1.OperationMetadata.State\x12/\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"Q\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x43REATED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x08\n\x04\x44ONE\x10\x03\x12\r\n\tCANCELLED\x10\x04*e\n\nLikelihood\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x11\n\rVERY_UNLIKELY\x10\x01\x12\x0c\n\x08UNLIKELY\x10\x02\x12\x0c\n\x08POSSIBLE\x10\x03\x12\n\n\x06LIKELY\x10\x04\x12\x0f\n\x0bVERY_LIKELY\x10\x05\x32\xf1\x07\n\x0eImageAnnotator\x12\xbe\x01\n\x13\x42\x61tchAnnotateImages\x12\x39.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest\x1a:.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse"0\x82\xd3\xe4\x93\x02\x1f"\x1a/v1p4beta1/images:annotate:\x01*\xda\x41\x08requests\x12\xba\x01\n\x12\x42\x61tchAnnotateFiles\x12\x38.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest\x1a\x39.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse"/\x82\xd3\xe4\x93\x02\x1e"\x19/v1p4beta1/files:annotate:\x01*\xda\x41\x08requests\x12\xfc\x01\n\x18\x41syncBatchAnnotateImages\x12>.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest\x1a\x1d.google.longrunning.Operation"\x80\x01\x82\xd3\xe4\x93\x02)"$/v1p4beta1/images:asyncBatchAnnotate:\x01*\xda\x41\x16requests,output_config\xca\x41\x35\n AsyncBatchAnnotateImagesResponse\x12\x11OperationMetadata\x12\xe9\x01\n\x17\x41syncBatchAnnotateFiles\x12=.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest\x1a\x1d.google.longrunning.Operation"p\x82\xd3\xe4\x93\x02("#/v1p4beta1/files:asyncBatchAnnotate:\x01*\xda\x41\x08requests\xca\x41\x34\n\x1f\x41syncBatchAnnotateFilesResponse\x12\x11OperationMetadata\x1av\xca\x41\x15vision.googleapis.com\xd2\x41[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-visionB\x89\x01\n!com.google.cloud.vision.v1p4beta1B\x13ImageAnnotatorProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision\xf8\x01\x01\xa2\x02\x04GCVNb\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, @@ -70,24 +71,55 @@ full_name="google.cloud.vision.v1p4beta1.Likelihood", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="UNKNOWN", index=0, number=0, serialized_options=None, type=None + name="UNKNOWN", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="VERY_UNLIKELY", index=1, number=1, serialized_options=None, type=None + name="VERY_UNLIKELY", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="UNLIKELY", index=2, number=2, serialized_options=None, type=None + name="UNLIKELY", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="POSSIBLE", index=3, number=3, serialized_options=None, type=None + name="POSSIBLE", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="LIKELY", index=4, number=4, serialized_options=None, type=None + name="LIKELY", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="VERY_LIKELY", index=5, number=5, serialized_options=None, type=None + name="VERY_LIKELY", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -111,6 +143,7 @@ full_name="google.cloud.vision.v1p4beta1.Feature.Type", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="TYPE_UNSPECIFIED", @@ -118,9 +151,15 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="FACE_DETECTION", index=1, number=1, serialized_options=None, type=None + name="FACE_DETECTION", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="LANDMARK_DETECTION", @@ -128,9 +167,15 @@ number=2, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="LOGO_DETECTION", index=3, number=3, serialized_options=None, type=None + name="LOGO_DETECTION", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="LABEL_DETECTION", @@ -138,9 +183,15 @@ number=4, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="TEXT_DETECTION", index=5, number=5, serialized_options=None, type=None + name="TEXT_DETECTION", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="DOCUMENT_TEXT_DETECTION", @@ -148,6 +199,7 @@ number=11, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="SAFE_SEARCH_DETECTION", @@ -155,6 +207,7 @@ number=6, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="IMAGE_PROPERTIES", @@ -162,9 +215,15 @@ number=7, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="CROP_HINTS", index=9, number=9, serialized_options=None, type=None + name="CROP_HINTS", + index=9, + number=9, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="WEB_DETECTION", @@ -172,6 +231,7 @@ number=10, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="PRODUCT_SEARCH", @@ -179,6 +239,7 @@ number=12, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="OBJECT_LOCALIZATION", @@ -186,6 +247,7 @@ number=19, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -200,6 +262,7 @@ full_name="google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="UNKNOWN_LANDMARK", @@ -207,12 +270,23 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="LEFT_EYE", index=1, number=1, serialized_options=None, type=None + name="LEFT_EYE", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="RIGHT_EYE", index=2, number=2, serialized_options=None, type=None + name="RIGHT_EYE", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="LEFT_OF_LEFT_EYEBROW", @@ -220,6 +294,7 @@ number=3, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="RIGHT_OF_LEFT_EYEBROW", @@ -227,6 +302,7 @@ number=4, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="LEFT_OF_RIGHT_EYEBROW", @@ -234,6 +310,7 @@ number=5, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="RIGHT_OF_RIGHT_EYEBROW", @@ -241,6 +318,7 @@ number=6, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="MIDPOINT_BETWEEN_EYES", @@ -248,24 +326,55 @@ number=7, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NOSE_TIP", index=8, number=8, serialized_options=None, type=None + name="NOSE_TIP", + index=8, + number=8, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="UPPER_LIP", index=9, number=9, serialized_options=None, type=None + name="UPPER_LIP", + index=9, + number=9, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="LOWER_LIP", index=10, number=10, serialized_options=None, type=None + name="LOWER_LIP", + index=10, + number=10, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="MOUTH_LEFT", index=11, number=11, serialized_options=None, type=None + name="MOUTH_LEFT", + index=11, + number=11, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="MOUTH_RIGHT", index=12, number=12, serialized_options=None, type=None + name="MOUTH_RIGHT", + index=12, + number=12, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="MOUTH_CENTER", index=13, number=13, serialized_options=None, type=None + name="MOUTH_CENTER", + index=13, + number=13, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="NOSE_BOTTOM_RIGHT", @@ -273,6 +382,7 @@ number=14, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="NOSE_BOTTOM_LEFT", @@ -280,6 +390,7 @@ number=15, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="NOSE_BOTTOM_CENTER", @@ -287,6 +398,7 @@ number=16, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="LEFT_EYE_TOP_BOUNDARY", @@ -294,6 +406,7 @@ number=17, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="LEFT_EYE_RIGHT_CORNER", @@ -301,6 +414,7 @@ number=18, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="LEFT_EYE_BOTTOM_BOUNDARY", @@ -308,6 +422,7 @@ number=19, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="LEFT_EYE_LEFT_CORNER", @@ -315,6 +430,7 @@ number=20, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="RIGHT_EYE_TOP_BOUNDARY", @@ -322,6 +438,7 @@ number=21, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="RIGHT_EYE_RIGHT_CORNER", @@ -329,6 +446,7 @@ number=22, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="RIGHT_EYE_BOTTOM_BOUNDARY", @@ -336,6 +454,7 @@ number=23, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="RIGHT_EYE_LEFT_CORNER", @@ -343,6 +462,7 @@ number=24, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="LEFT_EYEBROW_UPPER_MIDPOINT", @@ -350,6 +470,7 @@ number=25, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="RIGHT_EYEBROW_UPPER_MIDPOINT", @@ -357,6 +478,7 @@ number=26, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="LEFT_EAR_TRAGION", @@ -364,6 +486,7 @@ number=27, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="RIGHT_EAR_TRAGION", @@ -371,6 +494,7 @@ number=28, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="LEFT_EYE_PUPIL", @@ -378,6 +502,7 @@ number=29, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="RIGHT_EYE_PUPIL", @@ -385,6 +510,7 @@ number=30, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="FOREHEAD_GLABELLA", @@ -392,6 +518,7 @@ number=31, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="CHIN_GNATHION", @@ -399,6 +526,7 @@ number=32, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="CHIN_LEFT_GONION", @@ -406,6 +534,7 @@ number=33, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="CHIN_RIGHT_GONION", @@ -413,6 +542,7 @@ number=34, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -427,6 +557,7 @@ full_name="google.cloud.vision.v1p4beta1.OperationMetadata.State", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="STATE_UNSPECIFIED", @@ -434,18 +565,39 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="CREATED", index=1, number=1, serialized_options=None, type=None + name="CREATED", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="RUNNING", index=2, number=2, serialized_options=None, type=None + name="RUNNING", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="DONE", index=3, number=3, serialized_options=None, type=None + name="DONE", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="CANCELLED", index=4, number=4, serialized_options=None, type=None + name="CANCELLED", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -462,6 +614,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="type", @@ -480,6 +633,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="max_results", @@ -498,6 +652,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="model", @@ -516,6 +671,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -537,6 +693,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="gcs_image_uri", @@ -555,6 +712,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="image_uri", @@ -573,6 +731,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -594,6 +753,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="content", @@ -612,6 +772,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="source", @@ -630,6 +791,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -651,6 +813,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="type", @@ -669,6 +832,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="position", @@ -687,6 +851,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -707,6 +872,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="bounding_poly", @@ -725,6 +891,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="fd_bounding_poly", @@ -743,6 +910,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="landmarks", @@ -761,6 +929,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="roll_angle", @@ -779,6 +948,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="pan_angle", @@ -797,6 +967,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="tilt_angle", @@ -815,6 +986,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="detection_confidence", @@ -833,6 +1005,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="landmarking_confidence", @@ -851,6 +1024,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="joy_likelihood", @@ -869,6 +1043,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="sorrow_likelihood", @@ -887,6 +1062,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="anger_likelihood", @@ -905,6 +1081,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="surprise_likelihood", @@ -923,6 +1100,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="under_exposed_likelihood", @@ -941,6 +1119,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="blurred_likelihood", @@ -959,6 +1138,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="headwear_likelihood", @@ -977,6 +1157,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="recognition_result", @@ -995,6 +1176,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1016,6 +1198,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="lat_lng", @@ -1034,6 +1217,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -1055,6 +1239,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -1073,6 +1258,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="value", @@ -1091,6 +1277,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="uint64_value", @@ -1109,6 +1296,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1130,6 +1318,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="mid", @@ -1148,6 +1337,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="locale", @@ -1166,6 +1356,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="description", @@ -1184,6 +1375,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="score", @@ -1202,6 +1394,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="confidence", @@ -1220,6 +1413,7 @@ extension_scope=None, serialized_options=b"\030\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="topicality", @@ -1238,6 +1432,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="bounding_poly", @@ -1256,6 +1451,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="locations", @@ -1274,6 +1470,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="properties", @@ -1292,6 +1489,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1313,6 +1511,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="mid", @@ -1331,6 +1530,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="language_code", @@ -1349,6 +1549,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="name", @@ -1367,6 +1568,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="score", @@ -1385,6 +1587,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="bounding_poly", @@ -1403,6 +1606,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1424,6 +1628,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="adult", @@ -1442,6 +1647,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="spoof", @@ -1460,6 +1666,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="medical", @@ -1478,6 +1685,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="violence", @@ -1496,6 +1704,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="racy", @@ -1514,6 +1723,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1535,6 +1745,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="min_lat_lng", @@ -1553,6 +1764,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="max_lat_lng", @@ -1571,6 +1783,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1592,6 +1805,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="color", @@ -1610,6 +1824,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="score", @@ -1628,6 +1843,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="pixel_fraction", @@ -1646,6 +1862,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1667,6 +1884,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="colors", @@ -1685,6 +1903,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -1706,6 +1925,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="dominant_colors", @@ -1724,6 +1944,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -1745,6 +1966,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="bounding_poly", @@ -1763,6 +1985,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="confidence", @@ -1781,6 +2004,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="importance_fraction", @@ -1799,6 +2023,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1820,6 +2045,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="crop_hints", @@ -1838,6 +2064,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -1859,6 +2086,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="aspect_ratios", @@ -1877,6 +2105,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -1898,6 +2127,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="include_geo_results", @@ -1916,6 +2146,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -1937,6 +2168,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="lat_long_rect", @@ -1955,6 +2187,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="language_hints", @@ -1973,6 +2206,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="crop_hints_params", @@ -1991,6 +2225,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="face_recognition_params", @@ -2009,6 +2244,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="product_search_params", @@ -2027,6 +2263,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="web_detection_params", @@ -2045,6 +2282,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2066,6 +2304,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="image", @@ -2084,6 +2323,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="features", @@ -2102,6 +2342,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="image_context", @@ -2120,6 +2361,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2141,6 +2383,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="uri", @@ -2159,6 +2402,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_number", @@ -2177,6 +2421,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2198,6 +2443,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="face_annotations", @@ -2216,6 +2462,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="landmark_annotations", @@ -2234,6 +2481,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="logo_annotations", @@ -2252,6 +2500,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="label_annotations", @@ -2270,6 +2519,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="localized_object_annotations", @@ -2288,6 +2538,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="text_annotations", @@ -2306,6 +2557,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="full_text_annotation", @@ -2324,6 +2576,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="safe_search_annotation", @@ -2342,6 +2595,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="image_properties_annotation", @@ -2360,6 +2614,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="crop_hints_annotation", @@ -2378,6 +2633,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="web_detection", @@ -2396,6 +2652,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="product_search_results", @@ -2414,6 +2671,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="error", @@ -2432,6 +2690,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="context", @@ -2450,6 +2709,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2471,6 +2731,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="requests", @@ -2489,6 +2750,7 @@ extension_scope=None, serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -2510,6 +2772,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="responses", @@ -2528,6 +2791,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -2549,6 +2813,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="input_config", @@ -2567,6 +2832,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="features", @@ -2585,6 +2851,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="image_context", @@ -2603,6 +2870,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="pages", @@ -2621,6 +2889,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2642,6 +2911,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="input_config", @@ -2660,6 +2930,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="responses", @@ -2678,6 +2949,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="total_pages", @@ -2696,6 +2968,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="error", @@ -2714,6 +2987,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2735,6 +3009,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="requests", @@ -2753,6 +3028,7 @@ extension_scope=None, serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -2774,6 +3050,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="responses", @@ -2792,6 +3069,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -2813,6 +3091,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="input_config", @@ -2831,6 +3110,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="features", @@ -2849,6 +3129,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="image_context", @@ -2867,6 +3148,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="output_config", @@ -2885,6 +3167,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2906,6 +3189,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="output_config", @@ -2924,6 +3208,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -2945,6 +3230,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="requests", @@ -2963,6 +3249,7 @@ extension_scope=None, serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="output_config", @@ -2981,6 +3268,7 @@ extension_scope=None, serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -3002,6 +3290,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="output_config", @@ -3020,6 +3309,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -3041,6 +3331,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="requests", @@ -3059,6 +3350,7 @@ extension_scope=None, serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -3080,6 +3372,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="responses", @@ -3098,6 +3391,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -3119,6 +3413,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="gcs_source", @@ -3137,6 +3432,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="content", @@ -3155,6 +3451,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="mime_type", @@ -3173,6 +3470,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -3194,6 +3492,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="gcs_destination", @@ -3212,6 +3511,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="batch_size", @@ -3230,6 +3530,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -3251,6 +3552,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="uri", @@ -3269,6 +3571,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -3290,6 +3593,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="uri", @@ -3308,6 +3612,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -3329,6 +3634,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="state", @@ -3347,6 +3653,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="create_time", @@ -3365,6 +3672,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="update_time", @@ -3383,6 +3691,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -4615,6 +4924,7 @@ file=DESCRIPTOR, index=0, serialized_options=b"\312A\025vision.googleapis.com\322A[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-vision", + create_key=_descriptor._internal_create_key, serialized_start=8895, serialized_end=9904, methods=[ @@ -4626,6 +4936,7 @@ input_type=_BATCHANNOTATEIMAGESREQUEST, output_type=_BATCHANNOTATEIMAGESRESPONSE, serialized_options=b'\202\323\344\223\002\037"\032/v1p4beta1/images:annotate:\001*\332A\010requests', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="BatchAnnotateFiles", @@ -4635,6 +4946,7 @@ input_type=_BATCHANNOTATEFILESREQUEST, output_type=_BATCHANNOTATEFILESRESPONSE, serialized_options=b'\202\323\344\223\002\036"\031/v1p4beta1/files:annotate:\001*\332A\010requests', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="AsyncBatchAnnotateImages", @@ -4644,6 +4956,7 @@ input_type=_ASYNCBATCHANNOTATEIMAGESREQUEST, output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, serialized_options=b'\202\323\344\223\002)"$/v1p4beta1/images:asyncBatchAnnotate:\001*\332A\026requests,output_config\312A5\n AsyncBatchAnnotateImagesResponse\022\021OperationMetadata', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="AsyncBatchAnnotateFiles", @@ -4653,6 +4966,7 @@ input_type=_ASYNCBATCHANNOTATEFILESREQUEST, output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, serialized_options=b'\202\323\344\223\002("#/v1p4beta1/files:asyncBatchAnnotate:\001*\332A\010requests\312A4\n\037AsyncBatchAnnotateFilesResponse\022\021OperationMetadata', + create_key=_descriptor._internal_create_key, ), ], ) diff --git a/google/cloud/vision_v1p4beta1/proto/product_search_pb2.py b/google/cloud/vision_v1p4beta1/proto/product_search_pb2.py index 2c5a0a00..099526e8 100644 --- a/google/cloud/vision_v1p4beta1/proto/product_search_pb2.py +++ b/google/cloud/vision_v1p4beta1/proto/product_search_pb2.py @@ -28,6 +28,7 @@ package="google.cloud.vision.v1p4beta1", syntax="proto3", serialized_options=b"\n!com.google.cloud.vision.v1p4beta1B\022ProductSearchProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision\370\001\001\242\002\004GCVN", + create_key=_descriptor._internal_create_key, serialized_pb=b'\n8google/cloud/vision_v1p4beta1/proto/product_search.proto\x12\x1dgoogle.cloud.vision.v1p4beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x19google/api/resource.proto\x1a\x32google/cloud/vision_v1p4beta1/proto/geometry.proto\x1a@google/cloud/vision_v1p4beta1/proto/product_search_service.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xc1\x01\n\x13ProductSearchParams\x12\x42\n\rbounding_poly\x18\t \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.BoundingPoly\x12:\n\x0bproduct_set\x18\x06 \x01(\tB%\xfa\x41"\n vision.googleapis.com/ProductSet\x12\x1a\n\x12product_categories\x18\x07 \x03(\t\x12\x0e\n\x06\x66ilter\x18\x08 \x01(\t"\xb2\x05\n\x14ProductSearchResults\x12.\n\nindex_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12K\n\x07results\x18\x05 \x03(\x0b\x32:.google.cloud.vision.v1p4beta1.ProductSearchResults.Result\x12\x62\n\x17product_grouped_results\x18\x06 \x03(\x0b\x32\x41.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult\x1a_\n\x06Result\x12\x37\n\x07product\x18\x01 \x01(\x0b\x32&.google.cloud.vision.v1p4beta1.Product\x12\r\n\x05score\x18\x02 \x01(\x02\x12\r\n\x05image\x18\x03 \x01(\t\x1aS\n\x10ObjectAnnotation\x12\x0b\n\x03mid\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\r\n\x05score\x18\x04 \x01(\x02\x1a\x82\x02\n\rGroupedResult\x12\x42\n\rbounding_poly\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.BoundingPoly\x12K\n\x07results\x18\x02 \x03(\x0b\x32:.google.cloud.vision.v1p4beta1.ProductSearchResults.Result\x12`\n\x12object_annotations\x18\x03 \x03(\x0b\x32\x44.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationB\x88\x01\n!com.google.cloud.vision.v1p4beta1B\x12ProductSearchProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision\xf8\x01\x01\xa2\x02\x04GCVNb\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, @@ -45,6 +46,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="bounding_poly", @@ -63,6 +65,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="product_set", @@ -81,6 +84,7 @@ extension_scope=None, serialized_options=b'\372A"\n vision.googleapis.com/ProductSet', file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="product_categories", @@ -99,6 +103,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="filter", @@ -117,6 +122,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -138,6 +144,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="product", @@ -156,6 +163,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="score", @@ -174,6 +182,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="image", @@ -192,6 +201,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -212,6 +222,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="mid", @@ -230,6 +241,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="language_code", @@ -248,6 +260,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="name", @@ -266,6 +279,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="score", @@ -284,6 +298,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -304,6 +319,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="bounding_poly", @@ -322,6 +338,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="results", @@ -340,6 +357,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="object_annotations", @@ -358,6 +376,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -378,6 +397,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="index_time", @@ -396,6 +416,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="results", @@ -414,6 +435,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="product_grouped_results", @@ -432,6 +454,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], diff --git a/google/cloud/vision_v1p4beta1/proto/product_search_service_pb2.py b/google/cloud/vision_v1p4beta1/proto/product_search_service_pb2.py index e94e1f12..04c6e38b 100644 --- a/google/cloud/vision_v1p4beta1/proto/product_search_service_pb2.py +++ b/google/cloud/vision_v1p4beta1/proto/product_search_service_pb2.py @@ -33,6 +33,7 @@ package="google.cloud.vision.v1p4beta1", syntax="proto3", serialized_options=b"\n!com.google.cloud.vision.v1p4beta1B\031ProductSearchServiceProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision\370\001\001\242\002\004GCVN", + create_key=_descriptor._internal_create_key, serialized_pb=b'\n@google/cloud/vision_v1p4beta1/proto/product_search_service.proto\x12\x1dgoogle.cloud.vision.v1p4beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x32google/cloud/vision_v1p4beta1/proto/geometry.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto"\xb2\x02\n\x07Product\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x1d\n\x10product_category\x18\x04 \x01(\tB\x03\xe0\x41\x05\x12G\n\x0eproduct_labels\x18\x05 \x03(\x0b\x32/.google.cloud.vision.v1p4beta1.Product.KeyValue\x1a&\n\x08KeyValue\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:^\xea\x41[\n\x1dvision.googleapis.com/Product\x12:projects/{project}/locations/{location}/products/{product}"\xfd\x01\n\nProductSet\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x33\n\nindex_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12,\n\x0bindex_error\x18\x04 \x01(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03:h\xea\x41\x65\n vision.googleapis.com/ProductSet\x12\x41projects/{project}/locations/{location}/productSets/{product_set}"\x85\x02\n\x0eReferenceImage\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x03uri\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12H\n\x0e\x62ounding_polys\x18\x03 \x03(\x0b\x32+.google.cloud.vision.v1p4beta1.BoundingPolyB\x03\xe0\x41\x01:\x88\x01\xea\x41\x84\x01\n$vision.googleapis.com/ReferenceImage\x12\\projects/{project}/locations/{location}/products/{product}/referenceImages/{reference_image}"\xa3\x01\n\x14\x43reateProductRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12<\n\x07product\x18\x02 \x01(\x0b\x32&.google.cloud.vision.v1p4beta1.ProductB\x03\xe0\x41\x02\x12\x12\n\nproduct_id\x18\x03 \x01(\t"w\n\x13ListProductsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"i\n\x14ListProductsResponse\x12\x38\n\x08products\x18\x01 \x03(\x0b\x32&.google.cloud.vision.v1p4beta1.Product\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"H\n\x11GetProductRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product"\x85\x01\n\x14UpdateProductRequest\x12<\n\x07product\x18\x01 \x01(\x0b\x32&.google.cloud.vision.v1p4beta1.ProductB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"K\n\x14\x44\x65leteProductRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product"\xb1\x01\n\x17\x43reateProductSetRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x43\n\x0bproduct_set\x18\x02 \x01(\x0b\x32).google.cloud.vision.v1p4beta1.ProductSetB\x03\xe0\x41\x02\x12\x16\n\x0eproduct_set_id\x18\x03 \x01(\t"z\n\x16ListProductSetsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"s\n\x17ListProductSetsResponse\x12?\n\x0cproduct_sets\x18\x01 \x03(\x0b\x32).google.cloud.vision.v1p4beta1.ProductSet\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"N\n\x14GetProductSetRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41"\n vision.googleapis.com/ProductSet"\x8f\x01\n\x17UpdateProductSetRequest\x12\x43\n\x0bproduct_set\x18\x01 \x01(\x0b\x32).google.cloud.vision.v1p4beta1.ProductSetB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"Q\n\x17\x44\x65leteProductSetRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41"\n vision.googleapis.com/ProductSet"\xbd\x01\n\x1b\x43reateReferenceImageRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product\x12K\n\x0freference_image\x18\x02 \x01(\x0b\x32-.google.cloud.vision.v1p4beta1.ReferenceImageB\x03\xe0\x41\x02\x12\x1a\n\x12reference_image_id\x18\x03 \x01(\t"z\n\x1aListReferenceImagesRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"\x92\x01\n\x1bListReferenceImagesResponse\x12G\n\x10reference_images\x18\x01 \x03(\x0b\x32-.google.cloud.vision.v1p4beta1.ReferenceImage\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t"V\n\x18GetReferenceImageRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$vision.googleapis.com/ReferenceImage"Y\n\x1b\x44\x65leteReferenceImageRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$vision.googleapis.com/ReferenceImage"\x8f\x01\n\x1d\x41\x64\x64ProductToProductSetRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41"\n vision.googleapis.com/ProductSet\x12\x36\n\x07product\x18\x02 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product"\x94\x01\n"RemoveProductFromProductSetRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41"\n vision.googleapis.com/ProductSet\x12\x36\n\x07product\x18\x02 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product"\x80\x01\n\x1fListProductsInProductSetRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41"\n vision.googleapis.com/ProductSet\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"u\n ListProductsInProductSetResponse\x12\x38\n\x08products\x18\x01 \x03(\x0b\x32&.google.cloud.vision.v1p4beta1.Product\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"2\n\x1aImportProductSetsGcsSource\x12\x14\n\x0c\x63sv_file_uri\x18\x01 \x01(\t"y\n\x1cImportProductSetsInputConfig\x12O\n\ngcs_source\x18\x01 \x01(\x0b\x32\x39.google.cloud.vision.v1p4beta1.ImportProductSetsGcsSourceH\x00\x42\x08\n\x06source"\xad\x01\n\x18ImportProductSetsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12V\n\x0cinput_config\x18\x02 \x01(\x0b\x32;.google.cloud.vision.v1p4beta1.ImportProductSetsInputConfigB\x03\xe0\x41\x02"\x8a\x01\n\x19ImportProductSetsResponse\x12G\n\x10reference_images\x18\x01 \x03(\x0b\x32-.google.cloud.vision.v1p4beta1.ReferenceImage\x12$\n\x08statuses\x18\x02 \x03(\x0b\x32\x12.google.rpc.Status"\x9e\x02\n\x16\x42\x61tchOperationMetadata\x12J\n\x05state\x18\x01 \x01(\x0e\x32;.google.cloud.vision.v1p4beta1.BatchOperationMetadata.State\x12/\n\x0bsubmit_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"Y\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0e\n\nPROCESSING\x10\x01\x12\x0e\n\nSUCCESSFUL\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x12\r\n\tCANCELLED\x10\x04"/\n\x15ProductSetPurgeConfig\x12\x16\n\x0eproduct_set_id\x18\x01 \x01(\t"\xe6\x01\n\x14PurgeProductsRequest\x12X\n\x18product_set_purge_config\x18\x02 \x01(\x0b\x32\x34.google.cloud.vision.v1p4beta1.ProductSetPurgeConfigH\x00\x12 \n\x16\x64\x65lete_orphan_products\x18\x03 \x01(\x08H\x00\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\r\n\x05\x66orce\x18\x04 \x01(\x08\x42\x08\n\x06target2\xd2 \n\rProductSearch\x12\xe6\x01\n\x10\x43reateProductSet\x12\x36.google.cloud.vision.v1p4beta1.CreateProductSetRequest\x1a).google.cloud.vision.v1p4beta1.ProductSet"o\x82\xd3\xe4\x93\x02\x45"6/v1p4beta1/{parent=projects/*/locations/*}/productSets:\x0bproduct_set\xda\x41!parent,product_set,product_set_id\x12\xc9\x01\n\x0fListProductSets\x12\x35.google.cloud.vision.v1p4beta1.ListProductSetsRequest\x1a\x36.google.cloud.vision.v1p4beta1.ListProductSetsResponse"G\x82\xd3\xe4\x93\x02\x38\x12\x36/v1p4beta1/{parent=projects/*/locations/*}/productSets\xda\x41\x06parent\x12\xb6\x01\n\rGetProductSet\x12\x33.google.cloud.vision.v1p4beta1.GetProductSetRequest\x1a).google.cloud.vision.v1p4beta1.ProductSet"E\x82\xd3\xe4\x93\x02\x38\x12\x36/v1p4beta1/{name=projects/*/locations/*/productSets/*}\xda\x41\x04name\x12\xe8\x01\n\x10UpdateProductSet\x12\x36.google.cloud.vision.v1p4beta1.UpdateProductSetRequest\x1a).google.cloud.vision.v1p4beta1.ProductSet"q\x82\xd3\xe4\x93\x02Q2B/v1p4beta1/{product_set.name=projects/*/locations/*/productSets/*}:\x0bproduct_set\xda\x41\x17product_set,update_mask\x12\xa9\x01\n\x10\x44\x65leteProductSet\x12\x36.google.cloud.vision.v1p4beta1.DeleteProductSetRequest\x1a\x16.google.protobuf.Empty"E\x82\xd3\xe4\x93\x02\x38*6/v1p4beta1/{name=projects/*/locations/*/productSets/*}\xda\x41\x04name\x12\xce\x01\n\rCreateProduct\x12\x33.google.cloud.vision.v1p4beta1.CreateProductRequest\x1a&.google.cloud.vision.v1p4beta1.Product"`\x82\xd3\xe4\x93\x02>"3/v1p4beta1/{parent=projects/*/locations/*}/products:\x07product\xda\x41\x19parent,product,product_id\x12\xbd\x01\n\x0cListProducts\x12\x32.google.cloud.vision.v1p4beta1.ListProductsRequest\x1a\x33.google.cloud.vision.v1p4beta1.ListProductsResponse"D\x82\xd3\xe4\x93\x02\x35\x12\x33/v1p4beta1/{parent=projects/*/locations/*}/products\xda\x41\x06parent\x12\xaa\x01\n\nGetProduct\x12\x30.google.cloud.vision.v1p4beta1.GetProductRequest\x1a&.google.cloud.vision.v1p4beta1.Product"B\x82\xd3\xe4\x93\x02\x35\x12\x33/v1p4beta1/{name=projects/*/locations/*/products/*}\xda\x41\x04name\x12\xd0\x01\n\rUpdateProduct\x12\x33.google.cloud.vision.v1p4beta1.UpdateProductRequest\x1a&.google.cloud.vision.v1p4beta1.Product"b\x82\xd3\xe4\x93\x02\x46\x32;/v1p4beta1/{product.name=projects/*/locations/*/products/*}:\x07product\xda\x41\x13product,update_mask\x12\xa0\x01\n\rDeleteProduct\x12\x33.google.cloud.vision.v1p4beta1.DeleteProductRequest\x1a\x16.google.protobuf.Empty"B\x82\xd3\xe4\x93\x02\x35*3/v1p4beta1/{name=projects/*/locations/*/products/*}\xda\x41\x04name\x12\x8e\x02\n\x14\x43reateReferenceImage\x12:.google.cloud.vision.v1p4beta1.CreateReferenceImageRequest\x1a-.google.cloud.vision.v1p4beta1.ReferenceImage"\x8a\x01\x82\xd3\xe4\x93\x02X"E/v1p4beta1/{parent=projects/*/locations/*/products/*}/referenceImages:\x0freference_image\xda\x41)parent,reference_image,reference_image_id\x12\xc0\x01\n\x14\x44\x65leteReferenceImage\x12:.google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest\x1a\x16.google.protobuf.Empty"T\x82\xd3\xe4\x93\x02G*E/v1p4beta1/{name=projects/*/locations/*/products/*/referenceImages/*}\xda\x41\x04name\x12\xe4\x01\n\x13ListReferenceImages\x12\x39.google.cloud.vision.v1p4beta1.ListReferenceImagesRequest\x1a:.google.cloud.vision.v1p4beta1.ListReferenceImagesResponse"V\x82\xd3\xe4\x93\x02G\x12\x45/v1p4beta1/{parent=projects/*/locations/*/products/*}/referenceImages\xda\x41\x06parent\x12\xd1\x01\n\x11GetReferenceImage\x12\x37.google.cloud.vision.v1p4beta1.GetReferenceImageRequest\x1a-.google.cloud.vision.v1p4beta1.ReferenceImage"T\x82\xd3\xe4\x93\x02G\x12\x45/v1p4beta1/{name=projects/*/locations/*/products/*/referenceImages/*}\xda\x41\x04name\x12\xcb\x01\n\x16\x41\x64\x64ProductToProductSet\x12<.google.cloud.vision.v1p4beta1.AddProductToProductSetRequest\x1a\x16.google.protobuf.Empty"[\x82\xd3\xe4\x93\x02\x46"A/v1p4beta1/{name=projects/*/locations/*/productSets/*}:addProduct:\x01*\xda\x41\x0cname,product\x12\xd8\x01\n\x1bRemoveProductFromProductSet\x12\x41.google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest\x1a\x16.google.protobuf.Empty"^\x82\xd3\xe4\x93\x02I"D/v1p4beta1/{name=projects/*/locations/*/productSets/*}:removeProduct:\x01*\xda\x41\x0cname,product\x12\xeb\x01\n\x18ListProductsInProductSet\x12>.google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest\x1a?.google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse"N\x82\xd3\xe4\x93\x02\x41\x12?/v1p4beta1/{name=projects/*/locations/*/productSets/*}/products\xda\x41\x04name\x12\x82\x02\n\x11ImportProductSets\x12\x37.google.cloud.vision.v1p4beta1.ImportProductSetsRequest\x1a\x1d.google.longrunning.Operation"\x94\x01\x82\xd3\xe4\x93\x02\x42"=/v1p4beta1/{parent=projects/*/locations/*}/productSets:import:\x01*\xda\x41\x13parent,input_config\xca\x41\x33\n\x19ImportProductSetsResponse\x12\x16\x42\x61tchOperationMetadata\x12\xe4\x01\n\rPurgeProducts\x12\x33.google.cloud.vision.v1p4beta1.PurgeProductsRequest\x1a\x1d.google.longrunning.Operation"\x7f\x82\xd3\xe4\x93\x02>"9/v1p4beta1/{parent=projects/*/locations/*}/products:purge:\x01*\xda\x41\x06parent\xca\x41/\n\x15google.protobuf.Empty\x12\x16\x42\x61tchOperationMetadata\x1av\xca\x41\x15vision.googleapis.com\xd2\x41[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-visionB\x8f\x01\n!com.google.cloud.vision.v1p4beta1B\x19ProductSearchServiceProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision\xf8\x01\x01\xa2\x02\x04GCVNb\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, @@ -54,6 +55,7 @@ full_name="google.cloud.vision.v1p4beta1.BatchOperationMetadata.State", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="STATE_UNSPECIFIED", @@ -61,18 +63,39 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PROCESSING", index=1, number=1, serialized_options=None, type=None + name="PROCESSING", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="SUCCESSFUL", index=2, number=2, serialized_options=None, type=None + name="SUCCESSFUL", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="FAILED", index=3, number=3, serialized_options=None, type=None + name="FAILED", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="CANCELLED", index=4, number=4, serialized_options=None, type=None + name="CANCELLED", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -89,6 +112,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="key", @@ -107,6 +131,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="value", @@ -125,6 +150,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -145,6 +171,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -163,6 +190,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="display_name", @@ -181,6 +209,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="description", @@ -199,6 +228,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="product_category", @@ -217,6 +247,7 @@ extension_scope=None, serialized_options=b"\340A\005", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="product_labels", @@ -235,6 +266,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -256,6 +288,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -274,6 +307,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="display_name", @@ -292,6 +326,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="index_time", @@ -310,6 +345,7 @@ extension_scope=None, serialized_options=b"\340A\003", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="index_error", @@ -328,6 +364,7 @@ extension_scope=None, serialized_options=b"\340A\003", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -349,6 +386,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -367,6 +405,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="uri", @@ -385,6 +424,7 @@ extension_scope=None, serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="bounding_polys", @@ -403,6 +443,7 @@ extension_scope=None, serialized_options=b"\340A\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -424,6 +465,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -442,6 +484,7 @@ extension_scope=None, serialized_options=b"\340A\002\372A#\n!locations.googleapis.com/Location", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="product", @@ -460,6 +503,7 @@ extension_scope=None, serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="product_id", @@ -478,6 +522,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -499,6 +544,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -517,6 +563,7 @@ extension_scope=None, serialized_options=b"\340A\002\372A#\n!locations.googleapis.com/Location", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_size", @@ -535,6 +582,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_token", @@ -553,6 +601,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -574,6 +623,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="products", @@ -592,6 +642,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="next_page_token", @@ -610,6 +661,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -631,6 +683,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -649,6 +702,7 @@ extension_scope=None, serialized_options=b"\340A\002\372A\037\n\035vision.googleapis.com/Product", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -670,6 +724,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="product", @@ -688,6 +743,7 @@ extension_scope=None, serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="update_mask", @@ -706,6 +762,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -727,6 +784,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -745,6 +803,7 @@ extension_scope=None, serialized_options=b"\340A\002\372A\037\n\035vision.googleapis.com/Product", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -766,6 +825,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -784,6 +844,7 @@ extension_scope=None, serialized_options=b"\340A\002\372A#\n!locations.googleapis.com/Location", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="product_set", @@ -802,6 +863,7 @@ extension_scope=None, serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="product_set_id", @@ -820,6 +882,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -841,6 +904,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -859,6 +923,7 @@ extension_scope=None, serialized_options=b"\340A\002\372A#\n!locations.googleapis.com/Location", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_size", @@ -877,6 +942,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_token", @@ -895,6 +961,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -916,6 +983,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="product_sets", @@ -934,6 +1002,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="next_page_token", @@ -952,6 +1021,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -973,6 +1043,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -991,6 +1062,7 @@ extension_scope=None, serialized_options=b'\340A\002\372A"\n vision.googleapis.com/ProductSet', file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -1012,6 +1084,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="product_set", @@ -1030,6 +1103,7 @@ extension_scope=None, serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="update_mask", @@ -1048,6 +1122,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1069,6 +1144,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -1087,6 +1163,7 @@ extension_scope=None, serialized_options=b'\340A\002\372A"\n vision.googleapis.com/ProductSet', file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -1108,6 +1185,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -1126,6 +1204,7 @@ extension_scope=None, serialized_options=b"\340A\002\372A\037\n\035vision.googleapis.com/Product", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="reference_image", @@ -1144,6 +1223,7 @@ extension_scope=None, serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="reference_image_id", @@ -1162,6 +1242,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1183,6 +1264,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -1201,6 +1283,7 @@ extension_scope=None, serialized_options=b"\340A\002\372A\037\n\035vision.googleapis.com/Product", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_size", @@ -1219,6 +1302,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_token", @@ -1237,6 +1321,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1258,6 +1343,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="reference_images", @@ -1276,6 +1362,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_size", @@ -1294,6 +1381,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="next_page_token", @@ -1312,6 +1400,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1333,6 +1422,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -1351,6 +1441,7 @@ extension_scope=None, serialized_options=b"\340A\002\372A&\n$vision.googleapis.com/ReferenceImage", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -1372,6 +1463,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -1390,6 +1482,7 @@ extension_scope=None, serialized_options=b"\340A\002\372A&\n$vision.googleapis.com/ReferenceImage", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -1411,6 +1504,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -1429,6 +1523,7 @@ extension_scope=None, serialized_options=b'\340A\002\372A"\n vision.googleapis.com/ProductSet', file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="product", @@ -1447,6 +1542,7 @@ extension_scope=None, serialized_options=b"\340A\002\372A\037\n\035vision.googleapis.com/Product", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1468,6 +1564,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -1486,6 +1583,7 @@ extension_scope=None, serialized_options=b'\340A\002\372A"\n vision.googleapis.com/ProductSet', file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="product", @@ -1504,6 +1602,7 @@ extension_scope=None, serialized_options=b"\340A\002\372A\037\n\035vision.googleapis.com/Product", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1525,6 +1624,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -1543,6 +1643,7 @@ extension_scope=None, serialized_options=b'\340A\002\372A"\n vision.googleapis.com/ProductSet', file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_size", @@ -1561,6 +1662,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_token", @@ -1579,6 +1681,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1600,6 +1703,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="products", @@ -1618,6 +1722,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="next_page_token", @@ -1636,6 +1741,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1657,6 +1763,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="csv_file_uri", @@ -1675,6 +1782,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -1696,6 +1804,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="gcs_source", @@ -1714,6 +1823,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -1729,6 +1839,7 @@ full_name="google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig.source", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], ) ], @@ -1743,6 +1854,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -1761,6 +1873,7 @@ extension_scope=None, serialized_options=b"\340A\002\372A#\n!locations.googleapis.com/Location", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="input_config", @@ -1779,6 +1892,7 @@ extension_scope=None, serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1800,6 +1914,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="reference_images", @@ -1818,6 +1933,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="statuses", @@ -1836,6 +1952,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1857,6 +1974,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="state", @@ -1875,6 +1993,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="submit_time", @@ -1893,6 +2012,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="end_time", @@ -1911,6 +2031,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1932,6 +2053,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="product_set_id", @@ -1950,6 +2072,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -1971,6 +2094,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="product_set_purge_config", @@ -1989,6 +2113,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="delete_orphan_products", @@ -2007,6 +2132,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="parent", @@ -2025,6 +2151,7 @@ extension_scope=None, serialized_options=b"\340A\002\372A#\n!locations.googleapis.com/Location", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="force", @@ -2043,6 +2170,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2058,6 +2186,7 @@ full_name="google.cloud.vision.v1p4beta1.PurgeProductsRequest.target", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], ) ], @@ -3003,6 +3132,7 @@ file=DESCRIPTOR, index=0, serialized_options=b"\312A\025vision.googleapis.com\322A[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-vision", + create_key=_descriptor._internal_create_key, serialized_start=4919, serialized_end=9097, methods=[ @@ -3014,6 +3144,7 @@ input_type=_CREATEPRODUCTSETREQUEST, output_type=_PRODUCTSET, serialized_options=b'\202\323\344\223\002E"6/v1p4beta1/{parent=projects/*/locations/*}/productSets:\013product_set\332A!parent,product_set,product_set_id', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="ListProductSets", @@ -3023,6 +3154,7 @@ input_type=_LISTPRODUCTSETSREQUEST, output_type=_LISTPRODUCTSETSRESPONSE, serialized_options=b"\202\323\344\223\0028\0226/v1p4beta1/{parent=projects/*/locations/*}/productSets\332A\006parent", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="GetProductSet", @@ -3032,6 +3164,7 @@ input_type=_GETPRODUCTSETREQUEST, output_type=_PRODUCTSET, serialized_options=b"\202\323\344\223\0028\0226/v1p4beta1/{name=projects/*/locations/*/productSets/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="UpdateProductSet", @@ -3041,6 +3174,7 @@ input_type=_UPDATEPRODUCTSETREQUEST, output_type=_PRODUCTSET, serialized_options=b"\202\323\344\223\002Q2B/v1p4beta1/{product_set.name=projects/*/locations/*/productSets/*}:\013product_set\332A\027product_set,update_mask", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="DeleteProductSet", @@ -3050,6 +3184,7 @@ input_type=_DELETEPRODUCTSETREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, serialized_options=b"\202\323\344\223\0028*6/v1p4beta1/{name=projects/*/locations/*/productSets/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="CreateProduct", @@ -3059,6 +3194,7 @@ input_type=_CREATEPRODUCTREQUEST, output_type=_PRODUCT, serialized_options=b'\202\323\344\223\002>"3/v1p4beta1/{parent=projects/*/locations/*}/products:\007product\332A\031parent,product,product_id', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="ListProducts", @@ -3068,6 +3204,7 @@ input_type=_LISTPRODUCTSREQUEST, output_type=_LISTPRODUCTSRESPONSE, serialized_options=b"\202\323\344\223\0025\0223/v1p4beta1/{parent=projects/*/locations/*}/products\332A\006parent", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="GetProduct", @@ -3077,6 +3214,7 @@ input_type=_GETPRODUCTREQUEST, output_type=_PRODUCT, serialized_options=b"\202\323\344\223\0025\0223/v1p4beta1/{name=projects/*/locations/*/products/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="UpdateProduct", @@ -3086,6 +3224,7 @@ input_type=_UPDATEPRODUCTREQUEST, output_type=_PRODUCT, serialized_options=b"\202\323\344\223\002F2;/v1p4beta1/{product.name=projects/*/locations/*/products/*}:\007product\332A\023product,update_mask", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="DeleteProduct", @@ -3095,6 +3234,7 @@ input_type=_DELETEPRODUCTREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, serialized_options=b"\202\323\344\223\0025*3/v1p4beta1/{name=projects/*/locations/*/products/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="CreateReferenceImage", @@ -3104,6 +3244,7 @@ input_type=_CREATEREFERENCEIMAGEREQUEST, output_type=_REFERENCEIMAGE, serialized_options=b'\202\323\344\223\002X"E/v1p4beta1/{parent=projects/*/locations/*/products/*}/referenceImages:\017reference_image\332A)parent,reference_image,reference_image_id', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="DeleteReferenceImage", @@ -3113,6 +3254,7 @@ input_type=_DELETEREFERENCEIMAGEREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, serialized_options=b"\202\323\344\223\002G*E/v1p4beta1/{name=projects/*/locations/*/products/*/referenceImages/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="ListReferenceImages", @@ -3122,6 +3264,7 @@ input_type=_LISTREFERENCEIMAGESREQUEST, output_type=_LISTREFERENCEIMAGESRESPONSE, serialized_options=b"\202\323\344\223\002G\022E/v1p4beta1/{parent=projects/*/locations/*/products/*}/referenceImages\332A\006parent", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="GetReferenceImage", @@ -3131,6 +3274,7 @@ input_type=_GETREFERENCEIMAGEREQUEST, output_type=_REFERENCEIMAGE, serialized_options=b"\202\323\344\223\002G\022E/v1p4beta1/{name=projects/*/locations/*/products/*/referenceImages/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="AddProductToProductSet", @@ -3140,6 +3284,7 @@ input_type=_ADDPRODUCTTOPRODUCTSETREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, serialized_options=b'\202\323\344\223\002F"A/v1p4beta1/{name=projects/*/locations/*/productSets/*}:addProduct:\001*\332A\014name,product', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="RemoveProductFromProductSet", @@ -3149,6 +3294,7 @@ input_type=_REMOVEPRODUCTFROMPRODUCTSETREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, serialized_options=b'\202\323\344\223\002I"D/v1p4beta1/{name=projects/*/locations/*/productSets/*}:removeProduct:\001*\332A\014name,product', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="ListProductsInProductSet", @@ -3158,6 +3304,7 @@ input_type=_LISTPRODUCTSINPRODUCTSETREQUEST, output_type=_LISTPRODUCTSINPRODUCTSETRESPONSE, serialized_options=b"\202\323\344\223\002A\022?/v1p4beta1/{name=projects/*/locations/*/productSets/*}/products\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="ImportProductSets", @@ -3167,6 +3314,7 @@ input_type=_IMPORTPRODUCTSETSREQUEST, output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, serialized_options=b'\202\323\344\223\002B"=/v1p4beta1/{parent=projects/*/locations/*}/productSets:import:\001*\332A\023parent,input_config\312A3\n\031ImportProductSetsResponse\022\026BatchOperationMetadata', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="PurgeProducts", @@ -3176,6 +3324,7 @@ input_type=_PURGEPRODUCTSREQUEST, output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, serialized_options=b'\202\323\344\223\002>"9/v1p4beta1/{parent=projects/*/locations/*}/products:purge:\001*\332A\006parent\312A/\n\025google.protobuf.Empty\022\026BatchOperationMetadata', + create_key=_descriptor._internal_create_key, ), ], ) diff --git a/google/cloud/vision_v1p4beta1/proto/text_annotation_pb2.py b/google/cloud/vision_v1p4beta1/proto/text_annotation_pb2.py index 1b5a2870..f90dbb6a 100644 --- a/google/cloud/vision_v1p4beta1/proto/text_annotation_pb2.py +++ b/google/cloud/vision_v1p4beta1/proto/text_annotation_pb2.py @@ -23,6 +23,7 @@ package="google.cloud.vision.v1p4beta1", syntax="proto3", serialized_options=b"\n!com.google.cloud.vision.v1p4beta1B\023TextAnnotationProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision\370\001\001\242\002\004GCVN", + create_key=_descriptor._internal_create_key, serialized_pb=b'\n9google/cloud/vision_v1p4beta1/proto/text_annotation.proto\x12\x1dgoogle.cloud.vision.v1p4beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x32google/cloud/vision_v1p4beta1/proto/geometry.proto"\xb2\x04\n\x0eTextAnnotation\x12\x32\n\x05pages\x18\x01 \x03(\x0b\x32#.google.cloud.vision.v1p4beta1.Page\x12\x0c\n\x04text\x18\x02 \x01(\t\x1a=\n\x10\x44\x65tectedLanguage\x12\x15\n\rlanguage_code\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x1a\xdc\x01\n\rDetectedBreak\x12S\n\x04type\x18\x01 \x01(\x0e\x32\x45.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType\x12\x11\n\tis_prefix\x18\x02 \x01(\x08"c\n\tBreakType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05SPACE\x10\x01\x12\x0e\n\nSURE_SPACE\x10\x02\x12\x12\n\x0e\x45OL_SURE_SPACE\x10\x03\x12\n\n\x06HYPHEN\x10\x04\x12\x0e\n\nLINE_BREAK\x10\x05\x1a\xbf\x01\n\x0cTextProperty\x12Z\n\x12\x64\x65tected_languages\x18\x01 \x03(\x0b\x32>.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage\x12S\n\x0e\x64\x65tected_break\x18\x02 \x01(\x0b\x32;.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak"\xbd\x01\n\x04Page\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty\x12\r\n\x05width\x18\x02 \x01(\x05\x12\x0e\n\x06height\x18\x03 \x01(\x05\x12\x34\n\x06\x62locks\x18\x04 \x03(\x0b\x32$.google.cloud.vision.v1p4beta1.Block\x12\x12\n\nconfidence\x18\x05 \x01(\x02"\x82\x03\n\x05\x42lock\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.BoundingPoly\x12<\n\nparagraphs\x18\x03 \x03(\x0b\x32(.google.cloud.vision.v1p4beta1.Paragraph\x12\x42\n\nblock_type\x18\x04 \x01(\x0e\x32..google.cloud.vision.v1p4beta1.Block.BlockType\x12\x12\n\nconfidence\x18\x05 \x01(\x02"R\n\tBlockType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04TEXT\x10\x01\x12\t\n\x05TABLE\x10\x02\x12\x0b\n\x07PICTURE\x10\x03\x12\t\n\x05RULER\x10\x04\x12\x0b\n\x07\x42\x41RCODE\x10\x05"\xe4\x01\n\tParagraph\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.BoundingPoly\x12\x32\n\x05words\x18\x03 \x03(\x0b\x32#.google.cloud.vision.v1p4beta1.Word\x12\x12\n\nconfidence\x18\x04 \x01(\x02"\xe3\x01\n\x04Word\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.BoundingPoly\x12\x36\n\x07symbols\x18\x03 \x03(\x0b\x32%.google.cloud.vision.v1p4beta1.Symbol\x12\x12\n\nconfidence\x18\x04 \x01(\x02"\xbb\x01\n\x06Symbol\x12L\n\x08property\x18\x01 \x01(\x0b\x32:.google.cloud.vision.v1p4beta1.TextAnnotation.TextProperty\x12\x41\n\x0c\x62ounding_box\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.BoundingPoly\x12\x0c\n\x04text\x18\x03 \x01(\t\x12\x12\n\nconfidence\x18\x04 \x01(\x02\x42\x89\x01\n!com.google.cloud.vision.v1p4beta1B\x13TextAnnotationProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision\xf8\x01\x01\xa2\x02\x04GCVNb\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, @@ -36,24 +37,55 @@ full_name="google.cloud.vision.v1p4beta1.TextAnnotation.DetectedBreak.BreakType", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="UNKNOWN", index=0, number=0, serialized_options=None, type=None + name="UNKNOWN", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="SPACE", index=1, number=1, serialized_options=None, type=None + name="SPACE", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="SURE_SPACE", index=2, number=2, serialized_options=None, type=None + name="SURE_SPACE", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="EOL_SURE_SPACE", index=3, number=3, serialized_options=None, type=None + name="EOL_SURE_SPACE", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="HYPHEN", index=4, number=4, serialized_options=None, type=None + name="HYPHEN", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="LINE_BREAK", index=5, number=5, serialized_options=None, type=None + name="LINE_BREAK", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -68,24 +100,55 @@ full_name="google.cloud.vision.v1p4beta1.Block.BlockType", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="UNKNOWN", index=0, number=0, serialized_options=None, type=None + name="UNKNOWN", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="TEXT", index=1, number=1, serialized_options=None, type=None + name="TEXT", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="TABLE", index=2, number=2, serialized_options=None, type=None + name="TABLE", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PICTURE", index=3, number=3, serialized_options=None, type=None + name="PICTURE", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="RULER", index=4, number=4, serialized_options=None, type=None + name="RULER", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="BARCODE", index=5, number=5, serialized_options=None, type=None + name="BARCODE", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -102,6 +165,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="language_code", @@ -120,6 +184,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="confidence", @@ -138,6 +203,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -158,6 +224,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="type", @@ -176,6 +243,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="is_prefix", @@ -194,6 +262,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -214,6 +283,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="detected_languages", @@ -232,6 +302,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="detected_break", @@ -250,6 +321,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -270,6 +342,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="pages", @@ -288,6 +361,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="text", @@ -306,6 +380,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -331,6 +406,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="property", @@ -349,6 +425,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="width", @@ -367,6 +444,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="height", @@ -385,6 +463,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="blocks", @@ -403,6 +482,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="confidence", @@ -421,6 +501,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -442,6 +523,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="property", @@ -460,6 +542,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="bounding_box", @@ -478,6 +561,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="paragraphs", @@ -496,6 +580,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="block_type", @@ -514,6 +599,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="confidence", @@ -532,6 +618,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -553,6 +640,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="property", @@ -571,6 +659,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="bounding_box", @@ -589,6 +678,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="words", @@ -607,6 +697,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="confidence", @@ -625,6 +716,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -646,6 +738,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="property", @@ -664,6 +757,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="bounding_box", @@ -682,6 +776,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="symbols", @@ -700,6 +795,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="confidence", @@ -718,6 +814,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -739,6 +836,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="property", @@ -757,6 +855,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="bounding_box", @@ -775,6 +874,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="text", @@ -793,6 +893,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="confidence", @@ -811,6 +912,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], diff --git a/google/cloud/vision_v1p4beta1/proto/web_detection_pb2.py b/google/cloud/vision_v1p4beta1/proto/web_detection_pb2.py index e6a55b10..52432710 100644 --- a/google/cloud/vision_v1p4beta1/proto/web_detection_pb2.py +++ b/google/cloud/vision_v1p4beta1/proto/web_detection_pb2.py @@ -20,6 +20,7 @@ package="google.cloud.vision.v1p4beta1", syntax="proto3", serialized_options=b"\n!com.google.cloud.vision.v1p4beta1B\021WebDetectionProtoP\001ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision\370\001\001\242\002\004GCVN", + create_key=_descriptor._internal_create_key, serialized_pb=b'\n7google/cloud/vision_v1p4beta1/proto/web_detection.proto\x12\x1dgoogle.cloud.vision.v1p4beta1\x1a\x1cgoogle/api/annotations.proto"\x8c\x07\n\x0cWebDetection\x12K\n\x0cweb_entities\x18\x01 \x03(\x0b\x32\x35.google.cloud.vision.v1p4beta1.WebDetection.WebEntity\x12R\n\x14\x66ull_matching_images\x18\x02 \x03(\x0b\x32\x34.google.cloud.vision.v1p4beta1.WebDetection.WebImage\x12U\n\x17partial_matching_images\x18\x03 \x03(\x0b\x32\x34.google.cloud.vision.v1p4beta1.WebDetection.WebImage\x12W\n\x1apages_with_matching_images\x18\x04 \x03(\x0b\x32\x33.google.cloud.vision.v1p4beta1.WebDetection.WebPage\x12U\n\x17visually_similar_images\x18\x06 \x03(\x0b\x32\x34.google.cloud.vision.v1p4beta1.WebDetection.WebImage\x12O\n\x11\x62\x65st_guess_labels\x18\x08 \x03(\x0b\x32\x34.google.cloud.vision.v1p4beta1.WebDetection.WebLabel\x1a\x42\n\tWebEntity\x12\x11\n\tentity_id\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x1a&\n\x08WebImage\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x1a\xe4\x01\n\x07WebPage\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x12\n\npage_title\x18\x03 \x01(\t\x12R\n\x14\x66ull_matching_images\x18\x04 \x03(\x0b\x32\x34.google.cloud.vision.v1p4beta1.WebDetection.WebImage\x12U\n\x17partial_matching_images\x18\x05 \x03(\x0b\x32\x34.google.cloud.vision.v1p4beta1.WebDetection.WebImage\x1a\x30\n\x08WebLabel\x12\r\n\x05label\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x02 \x01(\tB\x87\x01\n!com.google.cloud.vision.v1p4beta1B\x11WebDetectionProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision\xf8\x01\x01\xa2\x02\x04GCVNb\x06proto3', dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR], ) @@ -31,6 +32,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="entity_id", @@ -49,6 +51,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="score", @@ -67,6 +70,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="description", @@ -85,6 +89,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -105,6 +110,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="url", @@ -123,6 +129,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="score", @@ -141,6 +148,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -161,6 +169,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="url", @@ -179,6 +188,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="score", @@ -197,6 +207,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_title", @@ -215,6 +226,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="full_matching_images", @@ -233,6 +245,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="partial_matching_images", @@ -251,6 +264,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -271,6 +285,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="label", @@ -289,6 +304,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="language_code", @@ -307,6 +323,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -327,6 +344,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="web_entities", @@ -345,6 +363,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="full_matching_images", @@ -363,6 +382,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="partial_matching_images", @@ -381,6 +401,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="pages_with_matching_images", @@ -399,6 +420,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="visually_similar_images", @@ -417,6 +439,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="best_guess_labels", @@ -435,6 +458,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], diff --git a/synth.metadata b/synth.metadata index 279b3849..d42acc83 100644 --- a/synth.metadata +++ b/synth.metadata @@ -11,15 +11,15 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "dec3204175104cef49bf21d685d5517caaf0058f", - "internalRef": "312689208" + "sha": "c4e37010d74071851ff24121f522e802231ac86e", + "internalRef": "313460921" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "7ee92820e64c0aea379781b82399d6b3f3c8655f" + "sha": "470789cee75ce93c41348ad6aa4c49363a80399b" } } ], From 4749e123733778816b38041bcd7c1255c1c40c4b Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Wed, 24 Jun 2020 18:13:18 -0700 Subject: [PATCH 09/25] docs: update python docs template * docs: update python docs template * sphinx change Source-Author: kolea2 <45548808+kolea2@users.noreply.github.com> Source-Date: Wed May 27 20:44:34 2020 -0400 Source-Repo: googleapis/synthtool Source-Sha: 71b8a272549c06b5768d00fa48d3ae990e871bec Source-Link: https://github.com/googleapis/synthtool/commit/71b8a272549c06b5768d00fa48d3ae990e871bec --- docs/conf.py | 5 +---- noxfile.py | 2 +- synth.metadata | 6 +++--- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 72420fde..9f004c75 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -38,6 +38,7 @@ "sphinx.ext.napoleon", "sphinx.ext.todo", "sphinx.ext.viewcode", + "recommonmark", ] # autodoc/autosummary flags @@ -49,10 +50,6 @@ # Add any paths that contain templates here, relative to this directory. templates_path = ["_templates"] -# Allow markdown includes (so releases.md can include CHANGLEOG.md) -# http://www.sphinx-doc.org/en/master/markdown.html -source_parsers = {".md": "recommonmark.parser.CommonMarkParser"} - # The suffix(es) of source filenames. # You can specify multiple suffix as a list of string: # source_suffix = ['.rst', '.md'] diff --git a/noxfile.py b/noxfile.py index 8846b9a2..e21480bd 100644 --- a/noxfile.py +++ b/noxfile.py @@ -138,7 +138,7 @@ def docs(session): """Build the docs for this library.""" session.install("-e", ".") - session.install("sphinx<3.0.0", "alabaster", "recommonmark") + session.install("sphinx", "alabaster", "recommonmark") shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True) session.run( diff --git a/synth.metadata b/synth.metadata index d42acc83..8e007a7a 100644 --- a/synth.metadata +++ b/synth.metadata @@ -11,15 +11,15 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "c4e37010d74071851ff24121f522e802231ac86e", - "internalRef": "313460921" + "sha": "eafa840ceec23b44a5c21670288107c661252711", + "internalRef": "313488995" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "470789cee75ce93c41348ad6aa4c49363a80399b" + "sha": "71b8a272549c06b5768d00fa48d3ae990e871bec" } } ], From 67f768c6b414a01a1f95b51a6a4aa78f9c0efc46 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Wed, 24 Jun 2020 18:14:58 -0700 Subject: [PATCH 10/25] feat: add templates for python samples projects These templates will be used for templates in python-docs-samples and in Python client libraries. The README generation code is a modified version of https://github.com/GoogleCloudPlatform/python-docs-samples/tree/master/scripts/readme-gen. Co-authored-by: Kurtis Van Gent <31518063+kurtisvg@users.noreply.github.com> Source-Author: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Source-Date: Thu May 28 14:39:58 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: ffe10407ee2f261c799fb0d01bf32a8abc67ed1e Source-Link: https://github.com/googleapis/synthtool/commit/ffe10407ee2f261c799fb0d01bf32a8abc67ed1e --- .kokoro/samples/lint/common.cfg | 34 ++++++ .kokoro/samples/lint/continuous.cfg | 6 + .kokoro/samples/lint/periodic.cfg | 6 + .kokoro/samples/lint/presubmit.cfg | 6 + .kokoro/samples/python3.6/common.cfg | 34 ++++++ .kokoro/samples/python3.6/continuous.cfg | 7 ++ .kokoro/samples/python3.6/periodic.cfg | 6 + .kokoro/samples/python3.6/presubmit.cfg | 6 + .kokoro/samples/python3.7/common.cfg | 34 ++++++ .kokoro/samples/python3.7/continuous.cfg | 6 + .kokoro/samples/python3.7/periodic.cfg | 6 + .kokoro/samples/python3.7/presubmit.cfg | 6 + .kokoro/samples/python3.8/common.cfg | 34 ++++++ .kokoro/samples/python3.8/continuous.cfg | 6 + .kokoro/samples/python3.8/periodic.cfg | 6 + .kokoro/samples/python3.8/presubmit.cfg | 6 + .kokoro/test-samples.sh | 104 ++++++++++++++++++ scripts/decrypt-secrets.sh | 33 ++++++ scripts/readme-gen/readme_gen.py | 66 +++++++++++ scripts/readme-gen/templates/README.tmpl.rst | 87 +++++++++++++++ scripts/readme-gen/templates/auth.tmpl.rst | 9 ++ .../templates/auth_api_key.tmpl.rst | 14 +++ .../templates/install_deps.tmpl.rst | 29 +++++ .../templates/install_portaudio.tmpl.rst | 35 ++++++ synth.metadata | 2 +- testing/.gitignore | 3 + 26 files changed, 590 insertions(+), 1 deletion(-) create mode 100644 .kokoro/samples/lint/common.cfg create mode 100644 .kokoro/samples/lint/continuous.cfg create mode 100644 .kokoro/samples/lint/periodic.cfg create mode 100644 .kokoro/samples/lint/presubmit.cfg create mode 100644 .kokoro/samples/python3.6/common.cfg create mode 100644 .kokoro/samples/python3.6/continuous.cfg create mode 100644 .kokoro/samples/python3.6/periodic.cfg create mode 100644 .kokoro/samples/python3.6/presubmit.cfg create mode 100644 .kokoro/samples/python3.7/common.cfg create mode 100644 .kokoro/samples/python3.7/continuous.cfg create mode 100644 .kokoro/samples/python3.7/periodic.cfg create mode 100644 .kokoro/samples/python3.7/presubmit.cfg create mode 100644 .kokoro/samples/python3.8/common.cfg create mode 100644 .kokoro/samples/python3.8/continuous.cfg create mode 100644 .kokoro/samples/python3.8/periodic.cfg create mode 100644 .kokoro/samples/python3.8/presubmit.cfg create mode 100755 .kokoro/test-samples.sh create mode 100755 scripts/decrypt-secrets.sh create mode 100644 scripts/readme-gen/readme_gen.py create mode 100644 scripts/readme-gen/templates/README.tmpl.rst create mode 100644 scripts/readme-gen/templates/auth.tmpl.rst create mode 100644 scripts/readme-gen/templates/auth_api_key.tmpl.rst create mode 100644 scripts/readme-gen/templates/install_deps.tmpl.rst create mode 100644 scripts/readme-gen/templates/install_portaudio.tmpl.rst create mode 100644 testing/.gitignore diff --git a/.kokoro/samples/lint/common.cfg b/.kokoro/samples/lint/common.cfg new file mode 100644 index 00000000..fbab9a31 --- /dev/null +++ b/.kokoro/samples/lint/common.cfg @@ -0,0 +1,34 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Build logs will be here +action { + define_artifacts { + regex: "**/*sponge_log.xml" + } +} + +# Specify which tests to run +env_vars: { + key: "RUN_TESTS_SESSION" + value: "lint" +} + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/python-vision/.kokoro/test-samples.sh" +} + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/python-samples-testing-docker" +} + +# Download secrets for samples +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples" + +# Download trampoline resources. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# Use the trampoline script to run in docker. +build_file: "python-vision/.kokoro/trampoline.sh" \ No newline at end of file diff --git a/.kokoro/samples/lint/continuous.cfg b/.kokoro/samples/lint/continuous.cfg new file mode 100644 index 00000000..a1c8d975 --- /dev/null +++ b/.kokoro/samples/lint/continuous.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "True" +} \ No newline at end of file diff --git a/.kokoro/samples/lint/periodic.cfg b/.kokoro/samples/lint/periodic.cfg new file mode 100644 index 00000000..50fec964 --- /dev/null +++ b/.kokoro/samples/lint/periodic.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "False" +} \ No newline at end of file diff --git a/.kokoro/samples/lint/presubmit.cfg b/.kokoro/samples/lint/presubmit.cfg new file mode 100644 index 00000000..a1c8d975 --- /dev/null +++ b/.kokoro/samples/lint/presubmit.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "True" +} \ No newline at end of file diff --git a/.kokoro/samples/python3.6/common.cfg b/.kokoro/samples/python3.6/common.cfg new file mode 100644 index 00000000..3d483d87 --- /dev/null +++ b/.kokoro/samples/python3.6/common.cfg @@ -0,0 +1,34 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Build logs will be here +action { + define_artifacts { + regex: "**/*sponge_log.xml" + } +} + +# Specify which tests to run +env_vars: { + key: "RUN_TESTS_SESSION" + value: "py-3.6" +} + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/python-vision/.kokoro/test-samples.sh" +} + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/python-samples-testing-docker" +} + +# Download secrets for samples +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples" + +# Download trampoline resources. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# Use the trampoline script to run in docker. +build_file: "python-vision/.kokoro/trampoline.sh" \ No newline at end of file diff --git a/.kokoro/samples/python3.6/continuous.cfg b/.kokoro/samples/python3.6/continuous.cfg new file mode 100644 index 00000000..7218af14 --- /dev/null +++ b/.kokoro/samples/python3.6/continuous.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "True" +} + diff --git a/.kokoro/samples/python3.6/periodic.cfg b/.kokoro/samples/python3.6/periodic.cfg new file mode 100644 index 00000000..50fec964 --- /dev/null +++ b/.kokoro/samples/python3.6/periodic.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "False" +} \ No newline at end of file diff --git a/.kokoro/samples/python3.6/presubmit.cfg b/.kokoro/samples/python3.6/presubmit.cfg new file mode 100644 index 00000000..a1c8d975 --- /dev/null +++ b/.kokoro/samples/python3.6/presubmit.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "True" +} \ No newline at end of file diff --git a/.kokoro/samples/python3.7/common.cfg b/.kokoro/samples/python3.7/common.cfg new file mode 100644 index 00000000..abd4954b --- /dev/null +++ b/.kokoro/samples/python3.7/common.cfg @@ -0,0 +1,34 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Build logs will be here +action { + define_artifacts { + regex: "**/*sponge_log.xml" + } +} + +# Specify which tests to run +env_vars: { + key: "RUN_TESTS_SESSION" + value: "py-3.7" +} + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/python-vision/.kokoro/test-samples.sh" +} + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/python-samples-testing-docker" +} + +# Download secrets for samples +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples" + +# Download trampoline resources. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# Use the trampoline script to run in docker. +build_file: "python-vision/.kokoro/trampoline.sh" \ No newline at end of file diff --git a/.kokoro/samples/python3.7/continuous.cfg b/.kokoro/samples/python3.7/continuous.cfg new file mode 100644 index 00000000..a1c8d975 --- /dev/null +++ b/.kokoro/samples/python3.7/continuous.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "True" +} \ No newline at end of file diff --git a/.kokoro/samples/python3.7/periodic.cfg b/.kokoro/samples/python3.7/periodic.cfg new file mode 100644 index 00000000..50fec964 --- /dev/null +++ b/.kokoro/samples/python3.7/periodic.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "False" +} \ No newline at end of file diff --git a/.kokoro/samples/python3.7/presubmit.cfg b/.kokoro/samples/python3.7/presubmit.cfg new file mode 100644 index 00000000..a1c8d975 --- /dev/null +++ b/.kokoro/samples/python3.7/presubmit.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "True" +} \ No newline at end of file diff --git a/.kokoro/samples/python3.8/common.cfg b/.kokoro/samples/python3.8/common.cfg new file mode 100644 index 00000000..f6e94bf7 --- /dev/null +++ b/.kokoro/samples/python3.8/common.cfg @@ -0,0 +1,34 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Build logs will be here +action { + define_artifacts { + regex: "**/*sponge_log.xml" + } +} + +# Specify which tests to run +env_vars: { + key: "RUN_TESTS_SESSION" + value: "py-3.8" +} + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/python-vision/.kokoro/test-samples.sh" +} + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/python-samples-testing-docker" +} + +# Download secrets for samples +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples" + +# Download trampoline resources. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# Use the trampoline script to run in docker. +build_file: "python-vision/.kokoro/trampoline.sh" \ No newline at end of file diff --git a/.kokoro/samples/python3.8/continuous.cfg b/.kokoro/samples/python3.8/continuous.cfg new file mode 100644 index 00000000..a1c8d975 --- /dev/null +++ b/.kokoro/samples/python3.8/continuous.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "True" +} \ No newline at end of file diff --git a/.kokoro/samples/python3.8/periodic.cfg b/.kokoro/samples/python3.8/periodic.cfg new file mode 100644 index 00000000..50fec964 --- /dev/null +++ b/.kokoro/samples/python3.8/periodic.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "False" +} \ No newline at end of file diff --git a/.kokoro/samples/python3.8/presubmit.cfg b/.kokoro/samples/python3.8/presubmit.cfg new file mode 100644 index 00000000..a1c8d975 --- /dev/null +++ b/.kokoro/samples/python3.8/presubmit.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "True" +} \ No newline at end of file diff --git a/.kokoro/test-samples.sh b/.kokoro/test-samples.sh new file mode 100755 index 00000000..40daa396 --- /dev/null +++ b/.kokoro/test-samples.sh @@ -0,0 +1,104 @@ +#!/bin/bash +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + + +# `-e` enables the script to automatically fail when a command fails +# `-o pipefail` sets the exit code to the rightmost comment to exit with a non-zero +set -eo pipefail +# Enables `**` to include files nested inside sub-folders +shopt -s globstar + +cd github/python-vision + +# Run periodic samples tests at latest release +if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"periodic"* ]]; then + LATEST_RELEASE=$(git describe --abbrev=0 --tags) + git checkout $LATEST_RELEASE +fi + +# Disable buffering, so that the logs stream through. +export PYTHONUNBUFFERED=1 + +# Debug: show build environment +env | grep KOKORO + +# Install nox +python3.6 -m pip install --upgrade --quiet nox + +# Use secrets acessor service account to get secrets +if [[ -f "${KOKORO_GFILE_DIR}/secrets_viewer_service_account.json" ]]; then + gcloud auth activate-service-account \ + --key-file="${KOKORO_GFILE_DIR}/secrets_viewer_service_account.json" \ + --project="cloud-devrel-kokoro-resources" +fi + +# This script will create 3 files: +# - testing/test-env.sh +# - testing/service-account.json +# - testing/client-secrets.json +./scripts/decrypt-secrets.sh + +source ./testing/test-env.sh +export GOOGLE_APPLICATION_CREDENTIALS=$(pwd)/testing/service-account.json + +# For cloud-run session, we activate the service account for gcloud sdk. +gcloud auth activate-service-account \ + --key-file "${GOOGLE_APPLICATION_CREDENTIALS}" + +export GOOGLE_CLIENT_SECRETS=$(pwd)/testing/client-secrets.json + +echo -e "\n******************** TESTING PROJECTS ********************" + +# Switch to 'fail at end' to allow all tests to complete before exiting. +set +e +# Use RTN to return a non-zero value if the test fails. +RTN=0 +ROOT=$(pwd) +# Find all requirements.txt in the samples directory (may break on whitespace). +for file in samples/**/requirements.txt; do + cd "$ROOT" + # Navigate to the project folder. + file=$(dirname "$file") + cd "$file" + + echo "------------------------------------------------------------" + echo "- testing $file" + echo "------------------------------------------------------------" + + # Use nox to execute the tests for the project. + python3.6 -m nox -s "$RUN_TESTS_SESSION" + EXIT=$? + + # If this is a periodic build, send the test log to the Build Cop Bot. + # See https://github.com/googleapis/repo-automation-bots/tree/master/packages/buildcop. + if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"periodic"* ]]; then + chmod +x $KOKORO_GFILE_DIR/linux_amd64/buildcop + $KOKORO_GFILE_DIR/linux_amd64/buildcop + fi + + if [[ $EXIT -ne 0 ]]; then + RTN=1 + echo -e "\n Testing failed: Nox returned a non-zero exit code. \n" + else + echo -e "\n Testing completed.\n" + fi + +done +cd "$ROOT" + +# Workaround for Kokoro permissions issue: delete secrets +rm testing/{test-env.sh,client-secrets.json,service-account.json} + +exit "$RTN" \ No newline at end of file diff --git a/scripts/decrypt-secrets.sh b/scripts/decrypt-secrets.sh new file mode 100755 index 00000000..ff599eb2 --- /dev/null +++ b/scripts/decrypt-secrets.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +# Copyright 2015 Google Inc. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +ROOT=$( dirname "$DIR" ) + +# Work from the project root. +cd $ROOT + +# Use SECRET_MANAGER_PROJECT if set, fallback to cloud-devrel-kokoro-resources. +PROJECT_ID="${SECRET_MANAGER_PROJECT:-cloud-devrel-kokoro-resources}" + +gcloud secrets versions access latest --secret="python-docs-samples-test-env" \ + > testing/test-env.sh +gcloud secrets versions access latest \ + --secret="python-docs-samples-service-account" \ + > testing/service-account.json +gcloud secrets versions access latest \ + --secret="python-docs-samples-client-secrets" \ + > testing/client-secrets.json \ No newline at end of file diff --git a/scripts/readme-gen/readme_gen.py b/scripts/readme-gen/readme_gen.py new file mode 100644 index 00000000..d309d6e9 --- /dev/null +++ b/scripts/readme-gen/readme_gen.py @@ -0,0 +1,66 @@ +#!/usr/bin/env python + +# Copyright 2016 Google Inc +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +"""Generates READMEs using configuration defined in yaml.""" + +import argparse +import io +import os +import subprocess + +import jinja2 +import yaml + + +jinja_env = jinja2.Environment( + trim_blocks=True, + loader=jinja2.FileSystemLoader( + os.path.abspath(os.path.join(os.path.dirname(__file__), 'templates')))) + +README_TMPL = jinja_env.get_template('README.tmpl.rst') + + +def get_help(file): + return subprocess.check_output(['python', file, '--help']).decode() + + +def main(): + parser = argparse.ArgumentParser() + parser.add_argument('source') + parser.add_argument('--destination', default='README.rst') + + args = parser.parse_args() + + source = os.path.abspath(args.source) + root = os.path.dirname(source) + destination = os.path.join(root, args.destination) + + jinja_env.globals['get_help'] = get_help + + with io.open(source, 'r') as f: + config = yaml.load(f) + + # This allows get_help to execute in the right directory. + os.chdir(root) + + output = README_TMPL.render(config) + + with io.open(destination, 'w') as f: + f.write(output) + + +if __name__ == '__main__': + main() diff --git a/scripts/readme-gen/templates/README.tmpl.rst b/scripts/readme-gen/templates/README.tmpl.rst new file mode 100644 index 00000000..4fd23976 --- /dev/null +++ b/scripts/readme-gen/templates/README.tmpl.rst @@ -0,0 +1,87 @@ +{# The following line is a lie. BUT! Once jinja2 is done with it, it will + become truth! #} +.. This file is automatically generated. Do not edit this file directly. + +{{product.name}} Python Samples +=============================================================================== + +.. image:: https://gstatic.com/cloudssh/images/open-btn.png + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor={{folder}}/README.rst + + +This directory contains samples for {{product.name}}. {{product.description}} + +{{description}} + +.. _{{product.name}}: {{product.url}} + +{% if required_api_url %} +To run the sample, you need to enable the API at: {{required_api_url}} +{% endif %} + +{% if required_role %} +To run the sample, you need to have `{{required_role}}` role. +{% endif %} + +{{other_required_steps}} + +{% if setup %} +Setup +------------------------------------------------------------------------------- + +{% for section in setup %} + +{% include section + '.tmpl.rst' %} + +{% endfor %} +{% endif %} + +{% if samples %} +Samples +------------------------------------------------------------------------------- + +{% for sample in samples %} +{{sample.name}} ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + +{% if not sample.hide_cloudshell_button %} +.. image:: https://gstatic.com/cloudssh/images/open-btn.png + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor={{folder}}/{{sample.file}},{{folder}}/README.rst +{% endif %} + + +{{sample.description}} + +To run this sample: + +.. code-block:: bash + + $ python {{sample.file}} +{% if sample.show_help %} + + {{get_help(sample.file)|indent}} +{% endif %} + + +{% endfor %} +{% endif %} + +{% if cloud_client_library %} + +The client library +------------------------------------------------------------------------------- + +This sample uses the `Google Cloud Client Library for Python`_. +You can read the documentation for more details on API usage and use GitHub +to `browse the source`_ and `report issues`_. + +.. _Google Cloud Client Library for Python: + https://googlecloudplatform.github.io/google-cloud-python/ +.. _browse the source: + https://github.com/GoogleCloudPlatform/google-cloud-python +.. _report issues: + https://github.com/GoogleCloudPlatform/google-cloud-python/issues + +{% endif %} + +.. _Google Cloud SDK: https://cloud.google.com/sdk/ \ No newline at end of file diff --git a/scripts/readme-gen/templates/auth.tmpl.rst b/scripts/readme-gen/templates/auth.tmpl.rst new file mode 100644 index 00000000..1446b94a --- /dev/null +++ b/scripts/readme-gen/templates/auth.tmpl.rst @@ -0,0 +1,9 @@ +Authentication +++++++++++++++ + +This sample requires you to have authentication setup. Refer to the +`Authentication Getting Started Guide`_ for instructions on setting up +credentials for applications. + +.. _Authentication Getting Started Guide: + https://cloud.google.com/docs/authentication/getting-started diff --git a/scripts/readme-gen/templates/auth_api_key.tmpl.rst b/scripts/readme-gen/templates/auth_api_key.tmpl.rst new file mode 100644 index 00000000..11957ce2 --- /dev/null +++ b/scripts/readme-gen/templates/auth_api_key.tmpl.rst @@ -0,0 +1,14 @@ +Authentication +++++++++++++++ + +Authentication for this service is done via an `API Key`_. To obtain an API +Key: + +1. Open the `Cloud Platform Console`_ +2. Make sure that billing is enabled for your project. +3. From the **Credentials** page, create a new **API Key** or use an existing + one for your project. + +.. _API Key: + https://developers.google.com/api-client-library/python/guide/aaa_apikeys +.. _Cloud Console: https://console.cloud.google.com/project?_ diff --git a/scripts/readme-gen/templates/install_deps.tmpl.rst b/scripts/readme-gen/templates/install_deps.tmpl.rst new file mode 100644 index 00000000..a0406dba --- /dev/null +++ b/scripts/readme-gen/templates/install_deps.tmpl.rst @@ -0,0 +1,29 @@ +Install Dependencies +++++++++++++++++++++ + +#. Clone python-docs-samples and change directory to the sample directory you want to use. + + .. code-block:: bash + + $ git clone https://github.com/GoogleCloudPlatform/python-docs-samples.git + +#. Install `pip`_ and `virtualenv`_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide`_ for Google Cloud Platform for instructions. + + .. _Python Development Environment Setup Guide: + https://cloud.google.com/python/setup + +#. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+. + + .. code-block:: bash + + $ virtualenv env + $ source env/bin/activate + +#. Install the dependencies needed to run the samples. + + .. code-block:: bash + + $ pip install -r requirements.txt + +.. _pip: https://pip.pypa.io/ +.. _virtualenv: https://virtualenv.pypa.io/ diff --git a/scripts/readme-gen/templates/install_portaudio.tmpl.rst b/scripts/readme-gen/templates/install_portaudio.tmpl.rst new file mode 100644 index 00000000..5ea33d18 --- /dev/null +++ b/scripts/readme-gen/templates/install_portaudio.tmpl.rst @@ -0,0 +1,35 @@ +Install PortAudio ++++++++++++++++++ + +Install `PortAudio`_. This is required by the `PyAudio`_ library to stream +audio from your computer's microphone. PyAudio depends on PortAudio for cross-platform compatibility, and is installed differently depending on the +platform. + +* For Mac OS X, you can use `Homebrew`_:: + + brew install portaudio + + **Note**: if you encounter an error when running `pip install` that indicates + it can't find `portaudio.h`, try running `pip install` with the following + flags:: + + pip install --global-option='build_ext' \ + --global-option='-I/usr/local/include' \ + --global-option='-L/usr/local/lib' \ + pyaudio + +* For Debian / Ubuntu Linux:: + + apt-get install portaudio19-dev python-all-dev + +* Windows may work without having to install PortAudio explicitly (it will get + installed with PyAudio). + +For more details, see the `PyAudio installation`_ page. + + +.. _PyAudio: https://people.csail.mit.edu/hubert/pyaudio/ +.. _PortAudio: http://www.portaudio.com/ +.. _PyAudio installation: + https://people.csail.mit.edu/hubert/pyaudio/#downloads +.. _Homebrew: http://brew.sh diff --git a/synth.metadata b/synth.metadata index 8e007a7a..0f4be525 100644 --- a/synth.metadata +++ b/synth.metadata @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "71b8a272549c06b5768d00fa48d3ae990e871bec" + "sha": "ffe10407ee2f261c799fb0d01bf32a8abc67ed1e" } } ], diff --git a/testing/.gitignore b/testing/.gitignore new file mode 100644 index 00000000..b05fbd63 --- /dev/null +++ b/testing/.gitignore @@ -0,0 +1,3 @@ +test-env.sh +service-account.json +client-secrets.json \ No newline at end of file From 0a5f650c6858d43af94d23fd8b5a4ba62ae1bd2d Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Wed, 24 Jun 2020 18:14:58 -0700 Subject: [PATCH 11/25] chore: update default ignores for Python libraries Source-Author: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Source-Date: Thu May 28 14:43:37 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: e99975b6b49827b8720f0a885e218dbdb67849ca Source-Link: https://github.com/googleapis/synthtool/commit/e99975b6b49827b8720f0a885e218dbdb67849ca --- .flake8 | 2 ++ .gitignore | 2 ++ MANIFEST.in | 3 +++ synth.metadata | 2 +- 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.flake8 b/.flake8 index 20fe9bda..ed931638 100644 --- a/.flake8 +++ b/.flake8 @@ -21,6 +21,8 @@ exclude = # Exclude generated code. **/proto/** **/gapic/** + **/services/** + **/types/** *_pb2.py # Standard linting exemptions. diff --git a/.gitignore b/.gitignore index 3fb06e09..b87e1ed5 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ dist build eggs +.eggs parts bin var @@ -49,6 +50,7 @@ bigquery/docs/generated # Virtual environment env/ coverage.xml +sponge_log.xml # System test environment variables. system_tests/local_test_setup diff --git a/MANIFEST.in b/MANIFEST.in index 68855abc..e9e29d12 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -20,3 +20,6 @@ recursive-include google *.json *.proto recursive-include tests * global-exclude *.py[co] global-exclude __pycache__ + +# Exclude scripts for samples readmegen +prune scripts/readme-gen \ No newline at end of file diff --git a/synth.metadata b/synth.metadata index 0f4be525..376eedec 100644 --- a/synth.metadata +++ b/synth.metadata @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "ffe10407ee2f261c799fb0d01bf32a8abc67ed1e" + "sha": "e99975b6b49827b8720f0a885e218dbdb67849ca" } } ], From d0675f6ed182bf60f92492149b21987ab95d8bb8 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Wed, 24 Jun 2020 18:18:55 -0700 Subject: [PATCH 12/25] feat: allow custom python versions in noxfile Libraries on the microgenerator support a smaller range of Python versions (3.6+). Source-Author: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Source-Date: Thu May 28 18:22:04 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: 4e1d2cb79b02d7496b1452f91c518630c207145e Source-Link: https://github.com/googleapis/synthtool/commit/4e1d2cb79b02d7496b1452f91c518630c207145e --- noxfile.py | 17 +++++++++-------- synth.metadata | 2 +- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/noxfile.py b/noxfile.py index e21480bd..6b1be097 100644 --- a/noxfile.py +++ b/noxfile.py @@ -26,11 +26,12 @@ BLACK_VERSION = "black==19.3b0" BLACK_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"] -if os.path.exists("samples"): - BLACK_PATHS.append("samples") +DEFAULT_PYTHON_VERSION = "3.8" +SYSTEM_TEST_PYTHON_VERSIONS = ["2.7", "3.8"] +UNIT_TEST_PYTHON_VERSIONS = ["2.7", "3.5", "3.6", "3.7", "3.8"] -@nox.session(python="3.7") +@nox.session(python=DEFAULT_PYTHON_VERSION) def lint(session): """Run linters. @@ -56,7 +57,7 @@ def blacken(session): session.run("black", *BLACK_PATHS) -@nox.session(python="3.7") +@nox.session(python=DEFAULT_PYTHON_VERSION) def lint_setup_py(session): """Verify that setup.py is valid (including RST check).""" session.install("docutils", "pygments") @@ -84,13 +85,13 @@ def default(session): ) -@nox.session(python=["2.7", "3.5", "3.6", "3.7", "3.8"]) +@nox.session(python=UNIT_TEST_PYTHON_VERSIONS) def unit(session): """Run the unit test suite.""" default(session) -@nox.session(python=["2.7", "3.7"]) +@nox.session(python=SYSTEM_TEST_PYTHON_VERSIONS) def system(session): """Run the system test suite.""" system_test_path = os.path.join("tests", "system.py") @@ -120,7 +121,7 @@ def system(session): session.run("py.test", "--quiet", system_test_folder_path, *session.posargs) -@nox.session(python="3.7") +@nox.session(python=DEFAULT_PYTHON_VERSION) def cover(session): """Run the final coverage report. @@ -133,7 +134,7 @@ def cover(session): session.run("coverage", "erase") -@nox.session(python="3.7") +@nox.session(python=DEFAULT_PYTHON_VERSION) def docs(session): """Build the docs for this library.""" diff --git a/synth.metadata b/synth.metadata index 376eedec..860b8961 100644 --- a/synth.metadata +++ b/synth.metadata @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "e99975b6b49827b8720f0a885e218dbdb67849ca" + "sha": "4e1d2cb79b02d7496b1452f91c518630c207145e" } } ], From 0b02b121b158ff36c6a79065a7a878830bb0d6a8 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Wed, 24 Jun 2020 18:22:10 -0700 Subject: [PATCH 13/25] chore: update gapic-generator and go microgen changes include: - build_gen: go lro gapic used as dep - go_gapic_library: fixes shading of go_library importpath PiperOrigin-RevId: 314363155 Source-Author: Google APIs Source-Date: Tue Jun 2 10:56:09 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: 3a4894c4f0da3e763aca2c67bd280ae915177450 Source-Link: https://github.com/googleapis/googleapis/commit/3a4894c4f0da3e763aca2c67bd280ae915177450 --- google/cloud/vision_v1/__init__.py | 4 ++-- google/cloud/vision_v1p1beta1/__init__.py | 4 ++-- google/cloud/vision_v1p2beta1/__init__.py | 4 ++-- google/cloud/vision_v1p3beta1/__init__.py | 4 ++-- google/cloud/vision_v1p4beta1/__init__.py | 4 ++-- synth.metadata | 6 +++--- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/google/cloud/vision_v1/__init__.py b/google/cloud/vision_v1/__init__.py index 3c62fcc6..19e399b3 100644 --- a/google/cloud/vision_v1/__init__.py +++ b/google/cloud/vision_v1/__init__.py @@ -30,8 +30,8 @@ if sys.version_info[:2] == (2, 7): message = ( - "A future version of this library will drop support for Python 2.7." - "More details about Python 2 support for Google Cloud Client Libraries" + "A future version of this library will drop support for Python 2.7. " + "More details about Python 2 support for Google Cloud Client Libraries " "can be found at https://cloud.google.com/python/docs/python2-sunset/" ) warnings.warn(message, DeprecationWarning) diff --git a/google/cloud/vision_v1p1beta1/__init__.py b/google/cloud/vision_v1p1beta1/__init__.py index 2e05478f..1fdca99c 100644 --- a/google/cloud/vision_v1p1beta1/__init__.py +++ b/google/cloud/vision_v1p1beta1/__init__.py @@ -29,8 +29,8 @@ if sys.version_info[:2] == (2, 7): message = ( - "A future version of this library will drop support for Python 2.7." - "More details about Python 2 support for Google Cloud Client Libraries" + "A future version of this library will drop support for Python 2.7. " + "More details about Python 2 support for Google Cloud Client Libraries " "can be found at https://cloud.google.com/python/docs/python2-sunset/" ) warnings.warn(message, DeprecationWarning) diff --git a/google/cloud/vision_v1p2beta1/__init__.py b/google/cloud/vision_v1p2beta1/__init__.py index 19f8c4e5..4dfb8de4 100644 --- a/google/cloud/vision_v1p2beta1/__init__.py +++ b/google/cloud/vision_v1p2beta1/__init__.py @@ -29,8 +29,8 @@ if sys.version_info[:2] == (2, 7): message = ( - "A future version of this library will drop support for Python 2.7." - "More details about Python 2 support for Google Cloud Client Libraries" + "A future version of this library will drop support for Python 2.7. " + "More details about Python 2 support for Google Cloud Client Libraries " "can be found at https://cloud.google.com/python/docs/python2-sunset/" ) warnings.warn(message, DeprecationWarning) diff --git a/google/cloud/vision_v1p3beta1/__init__.py b/google/cloud/vision_v1p3beta1/__init__.py index 65b99da6..4f71b71f 100644 --- a/google/cloud/vision_v1p3beta1/__init__.py +++ b/google/cloud/vision_v1p3beta1/__init__.py @@ -30,8 +30,8 @@ if sys.version_info[:2] == (2, 7): message = ( - "A future version of this library will drop support for Python 2.7." - "More details about Python 2 support for Google Cloud Client Libraries" + "A future version of this library will drop support for Python 2.7. " + "More details about Python 2 support for Google Cloud Client Libraries " "can be found at https://cloud.google.com/python/docs/python2-sunset/" ) warnings.warn(message, DeprecationWarning) diff --git a/google/cloud/vision_v1p4beta1/__init__.py b/google/cloud/vision_v1p4beta1/__init__.py index cedf170e..93558eb6 100644 --- a/google/cloud/vision_v1p4beta1/__init__.py +++ b/google/cloud/vision_v1p4beta1/__init__.py @@ -30,8 +30,8 @@ if sys.version_info[:2] == (2, 7): message = ( - "A future version of this library will drop support for Python 2.7." - "More details about Python 2 support for Google Cloud Client Libraries" + "A future version of this library will drop support for Python 2.7. " + "More details about Python 2 support for Google Cloud Client Libraries " "can be found at https://cloud.google.com/python/docs/python2-sunset/" ) warnings.warn(message, DeprecationWarning) diff --git a/synth.metadata b/synth.metadata index 860b8961..460cac6d 100644 --- a/synth.metadata +++ b/synth.metadata @@ -11,15 +11,15 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "eafa840ceec23b44a5c21670288107c661252711", - "internalRef": "313488995" + "sha": "3a4894c4f0da3e763aca2c67bd280ae915177450", + "internalRef": "314363155" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "4e1d2cb79b02d7496b1452f91c518630c207145e" + "sha": "cb3c683e958a4b5c016bb3734436fc1cb887eb7b" } } ], From 0d55199d80edc06ba7056b38d9000d73199c587f Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Wed, 24 Jun 2020 18:27:26 -0700 Subject: [PATCH 14/25] fix: use protoc-docs-plugin 0.8.0 Fixes issue with missing newline before 'Attributes' in Python docstrings. PiperOrigin-RevId: 316182409 Source-Author: Google APIs Source-Date: Fri Jun 12 14:52:11 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: 184661793fbe3b89f2b485c303e7466cef9d21a1 Source-Link: https://github.com/googleapis/googleapis/commit/184661793fbe3b89f2b485c303e7466cef9d21a1 --- google/cloud/vision_v1/proto/geometry_pb2.py | 4 ++ .../vision_v1/proto/image_annotator_pb2.py | 39 +++++++++++++++++++ .../vision_v1/proto/product_search_pb2.py | 5 +++ .../proto/product_search_service_pb2.py | 32 +++++++++++++++ .../vision_v1/proto/text_annotation_pb2.py | 9 +++++ .../vision_v1/proto/web_detection_pb2.py | 5 +++ .../vision_v1p1beta1/proto/geometry_pb2.py | 3 ++ .../proto/image_annotator_pb2.py | 22 +++++++++++ .../proto/text_annotation_pb2.py | 9 +++++ .../proto/web_detection_pb2.py | 5 +++ .../vision_v1p2beta1/proto/geometry_pb2.py | 4 ++ .../proto/image_annotator_pb2.py | 33 ++++++++++++++++ .../proto/text_annotation_pb2.py | 9 +++++ .../proto/web_detection_pb2.py | 5 +++ .../vision_v1p3beta1/proto/geometry_pb2.py | 5 +++ .../proto/image_annotator_pb2.py | 34 ++++++++++++++++ .../proto/product_search_pb2.py | 4 ++ .../proto/product_search_service_pb2.py | 30 ++++++++++++++ .../proto/text_annotation_pb2.py | 9 +++++ .../proto/web_detection_pb2.py | 5 +++ .../cloud/vision_v1p4beta1/proto/face_pb2.py | 3 ++ .../vision_v1p4beta1/proto/geometry_pb2.py | 4 ++ .../proto/image_annotator_pb2.py | 39 +++++++++++++++++++ .../proto/product_search_pb2.py | 5 +++ .../proto/product_search_service_pb2.py | 32 +++++++++++++++ .../proto/text_annotation_pb2.py | 9 +++++ .../proto/web_detection_pb2.py | 5 +++ synth.metadata | 6 +-- 28 files changed, 371 insertions(+), 3 deletions(-) diff --git a/google/cloud/vision_v1/proto/geometry_pb2.py b/google/cloud/vision_v1/proto/geometry_pb2.py index 8cae201d..f17825e6 100644 --- a/google/cloud/vision_v1/proto/geometry_pb2.py +++ b/google/cloud/vision_v1/proto/geometry_pb2.py @@ -299,6 +299,7 @@ "DESCRIPTOR": _VERTEX, "__module__": "google.cloud.vision_v1.proto.geometry_pb2", "__doc__": """X coordinate. + Attributes: y: Y coordinate. @@ -315,6 +316,7 @@ "DESCRIPTOR": _NORMALIZEDVERTEX, "__module__": "google.cloud.vision_v1.proto.geometry_pb2", "__doc__": """X coordinate. + Attributes: y: Y coordinate. @@ -331,6 +333,7 @@ "DESCRIPTOR": _BOUNDINGPOLY, "__module__": "google.cloud.vision_v1.proto.geometry_pb2", "__doc__": """A bounding polygon for the detected image annotation. + Attributes: vertices: The bounding polygon vertices. @@ -351,6 +354,7 @@ "__doc__": """A 3D position in the image, used primarily for Face detection landmarks. A valid Position must have both x and y coordinates. The position coordinates are in the same scale as the original image. + Attributes: x: X coordinate. diff --git a/google/cloud/vision_v1/proto/image_annotator_pb2.py b/google/cloud/vision_v1/proto/image_annotator_pb2.py index cec2b2fa..4ba8e4d1 100644 --- a/google/cloud/vision_v1/proto/image_annotator_pb2.py +++ b/google/cloud/vision_v1/proto/image_annotator_pb2.py @@ -4095,6 +4095,7 @@ "__doc__": """The type of Google Cloud Vision API detection to perform, and the maximum number of results to return for that type. Multiple ``Feature`` objects can be specified in the ``features`` list. + Attributes: type: The feature type. @@ -4119,6 +4120,7 @@ "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """External image source (Google Cloud Storage or web URL image location). + Attributes: gcs_image_uri: \ **Use ``image_uri`` instead.** The Google Cloud Storage URI @@ -4154,6 +4156,7 @@ "DESCRIPTOR": _IMAGE, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """Client image to perform Google Cloud Vision API tasks over. + Attributes: content: Image content, represented as a stream of bytes. Note: As with @@ -4181,6 +4184,7 @@ "DESCRIPTOR": _FACEANNOTATION_LANDMARK, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """A face-specific landmark (for example, a face feature). + Attributes: type: Face landmark type. @@ -4193,6 +4197,7 @@ "DESCRIPTOR": _FACEANNOTATION, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """A face annotation object contains the results of face detection. + Attributes: bounding_poly: The bounding polygon around the face. The coordinates of the @@ -4255,6 +4260,7 @@ "DESCRIPTOR": _LOCATIONINFO, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """Detected entity location information. + Attributes: lat_lng: lat/long location coordinates. @@ -4271,6 +4277,7 @@ "DESCRIPTOR": _PROPERTY, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """A ``Property`` consists of a user-supplied name/value pair. + Attributes: name: Name of the property. @@ -4291,6 +4298,7 @@ "DESCRIPTOR": _ENTITYANNOTATION, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """Set of detected entity features. + Attributes: mid: Opaque entity ID. Some IDs may be available in `Google @@ -4344,6 +4352,7 @@ "DESCRIPTOR": _LOCALIZEDOBJECTANNOTATION, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """Set of detected objects with bounding boxes. + Attributes: mid: Object ID that should align with EntityAnnotation mid. @@ -4373,6 +4382,7 @@ "__doc__": """Set of features pertaining to the image, computed by computer vision methods over safe-search verticals (for example, adult, spoof, medical, violence). + Attributes: adult: Represents the adult content likelihood for the image. Adult @@ -4422,6 +4432,7 @@ "DESCRIPTOR": _LATLONGRECT, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """Rectangle determined by min and max ``LatLng`` pairs. + Attributes: min_lat_lng: Min lat/long pair. @@ -4441,6 +4452,7 @@ "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """Color information consists of RGB channels, score, and the fraction of the image that the color occupies in the image. + Attributes: color: RGB components of the color. @@ -4462,6 +4474,7 @@ "DESCRIPTOR": _DOMINANTCOLORSANNOTATION, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """Set of dominant colors and their corresponding scores. + Attributes: colors: RGB color values with their score and pixel fraction. @@ -4478,6 +4491,7 @@ "DESCRIPTOR": _IMAGEPROPERTIES, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """Stores image properties, such as dominant colors. + Attributes: dominant_colors: If present, dominant colors completed successfully. @@ -4495,6 +4509,7 @@ "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """Single crop hint that is used to generate a new crop when serving an image. + Attributes: bounding_poly: The bounding polygon for the crop region. The coordinates of @@ -4518,6 +4533,7 @@ "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """Set of crop hints that are used to generate new crops when serving images. + Attributes: crop_hints: Crop hint results. @@ -4534,6 +4550,7 @@ "DESCRIPTOR": _CROPHINTSPARAMS, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """Parameters for crop hints annotation request. + Attributes: aspect_ratios: Aspect ratios in floats, representing the ratio of the width @@ -4555,6 +4572,7 @@ "DESCRIPTOR": _WEBDETECTIONPARAMS, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """Parameters for web detection request. + Attributes: include_geo_results: Whether to include results derived from the geo information in @@ -4572,6 +4590,7 @@ "DESCRIPTOR": _IMAGECONTEXT, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """Image context and/or feature-specific parameters. + Attributes: lat_long_rect: Not used. @@ -4607,6 +4626,7 @@ "__doc__": """Request for performing Google Cloud Vision API tasks over a user- provided image, with user-requested features, and with context information. + Attributes: image: The image to be processed. @@ -4628,6 +4648,7 @@ "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """If an image was produced from a file (e.g. a PDF), this message gives information about the source of that image. + Attributes: uri: The URI of the file used to produce the image. @@ -4647,6 +4668,7 @@ "DESCRIPTOR": _ANNOTATEIMAGERESPONSE, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """Response to an image annotation request. + Attributes: face_annotations: If present, face detection has completed successfully. @@ -4697,6 +4719,7 @@ "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """Multiple image annotation requests are batched into a single service call. + Attributes: requests: Required. Individual image annotation requests for this batch. @@ -4720,6 +4743,7 @@ "DESCRIPTOR": _BATCHANNOTATEIMAGESRESPONSE, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """Response to a batch image annotation request. + Attributes: responses: Individual responses to image annotation requests within the @@ -4737,6 +4761,7 @@ "DESCRIPTOR": _ANNOTATEFILEREQUEST, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """A request to annotate one single file, e.g. a PDF, TIFF or GIF file. + Attributes: input_config: Required. Information about the input file. @@ -4769,6 +4794,7 @@ "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """Response to a single file annotation request. A file may contain one or more images, which individually have their own responses. + Attributes: input_config: Information about the file for which this response is @@ -4794,6 +4820,7 @@ "DESCRIPTOR": _BATCHANNOTATEFILESREQUEST, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """A list of requests to annotate files using the BatchAnnotateFiles API. + Attributes: requests: Required. The list of file annotation requests. Right now we @@ -4819,6 +4846,7 @@ "DESCRIPTOR": _BATCHANNOTATEFILESRESPONSE, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """A list of file annotation responses. + Attributes: responses: The list of file annotation responses, each response @@ -4837,6 +4865,7 @@ "DESCRIPTOR": _ASYNCANNOTATEFILEREQUEST, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """An offline file annotation request. + Attributes: input_config: Required. Information about the input file. @@ -4861,6 +4890,7 @@ "DESCRIPTOR": _ASYNCANNOTATEFILERESPONSE, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """The response for a single offline file annotation request. + Attributes: output_config: The output location and metadata from @@ -4878,6 +4908,7 @@ "DESCRIPTOR": _ASYNCBATCHANNOTATEIMAGESREQUEST, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """Request for async image annotation for a list of images. + Attributes: requests: Required. Individual image annotation requests for this batch. @@ -4904,6 +4935,7 @@ "DESCRIPTOR": _ASYNCBATCHANNOTATEIMAGESRESPONSE, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """Response to an async batch image annotation request. + Attributes: output_config: The output location and metadata from @@ -4922,6 +4954,7 @@ "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """Multiple async file annotation requests are batched into a single service call. + Attributes: requests: Required. Individual async file annotation requests for this @@ -4946,6 +4979,7 @@ "DESCRIPTOR": _ASYNCBATCHANNOTATEFILESRESPONSE, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """Response to an async batch file annotation request. + Attributes: responses: The list of file annotation responses, one for each request in @@ -4963,6 +4997,7 @@ "DESCRIPTOR": _INPUTCONFIG, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """The desired input location and metadata. + Attributes: gcs_source: The Google Cloud Storage location to read the input from. @@ -4990,6 +5025,7 @@ "DESCRIPTOR": _OUTPUTCONFIG, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """The desired output location and metadata. + Attributes: gcs_destination: The Google Cloud Storage location to write the output(s) to. @@ -5016,6 +5052,7 @@ "DESCRIPTOR": _GCSSOURCE, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """The Google Cloud Storage location where the input will be read from. + Attributes: uri: Google Cloud Storage URI for the input file. This must only be @@ -5034,6 +5071,7 @@ "DESCRIPTOR": _GCSDESTINATION, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """The Google Cloud Storage location where the output will be written to. + Attributes: uri: Google Cloud Storage URI prefix where the results will be @@ -5068,6 +5106,7 @@ "DESCRIPTOR": _OPERATIONMETADATA, "__module__": "google.cloud.vision_v1.proto.image_annotator_pb2", "__doc__": """Contains metadata for the BatchAnnotateImages operation. + Attributes: state: Current state of the batch operation. diff --git a/google/cloud/vision_v1/proto/product_search_pb2.py b/google/cloud/vision_v1/proto/product_search_pb2.py index 326ced89..0dcc687b 100644 --- a/google/cloud/vision_v1/proto/product_search_pb2.py +++ b/google/cloud/vision_v1/proto/product_search_pb2.py @@ -517,6 +517,7 @@ "DESCRIPTOR": _PRODUCTSEARCHPARAMS, "__module__": "google.cloud.vision_v1.proto.product_search_pb2", "__doc__": """Parameters for a product search request. + Attributes: bounding_poly: The bounding polygon around the area of interest in the image. @@ -563,6 +564,7 @@ "DESCRIPTOR": _PRODUCTSEARCHRESULTS_RESULT, "__module__": "google.cloud.vision_v1.proto.product_search_pb2", "__doc__": """Information about a product. + Attributes: product: The Product. @@ -583,6 +585,7 @@ "DESCRIPTOR": _PRODUCTSEARCHRESULTS_OBJECTANNOTATION, "__module__": "google.cloud.vision_v1.proto.product_search_pb2", "__doc__": """Prediction for what the object in the bounding box is. + Attributes: mid: Object ID that should align with EntityAnnotation mid. @@ -606,6 +609,7 @@ "__module__": "google.cloud.vision_v1.proto.product_search_pb2", "__doc__": """Information about the products similar to a single product in a query image. + Attributes: bounding_poly: The bounding polygon around the product detected in the query @@ -622,6 +626,7 @@ "DESCRIPTOR": _PRODUCTSEARCHRESULTS, "__module__": "google.cloud.vision_v1.proto.product_search_pb2", "__doc__": """Results for a product search request. + Attributes: index_time: Timestamp of the index which provided these results. Products diff --git a/google/cloud/vision_v1/proto/product_search_service_pb2.py b/google/cloud/vision_v1/proto/product_search_service_pb2.py index 638a0023..ef659354 100644 --- a/google/cloud/vision_v1/proto/product_search_service_pb2.py +++ b/google/cloud/vision_v1/proto/product_search_service_pb2.py @@ -2335,6 +2335,7 @@ "DESCRIPTOR": _PRODUCT_KEYVALUE, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """A product label represented as a key-value pair. + Attributes: key: The key of the label attached to the product. Cannot be empty @@ -2349,6 +2350,7 @@ "DESCRIPTOR": _PRODUCT, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """A Product contains ReferenceImages. + Attributes: name: The resource name of the product. Format is: @@ -2393,6 +2395,7 @@ "__doc__": """A ProductSet contains Products. A ProductSet can contain a maximum of 1 million reference images. If the limit is exceeded, periodic indexing will fail. + Attributes: name: The resource name of the ProductSet. Format is: ``projects/PR @@ -2425,6 +2428,7 @@ "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """A ``ReferenceImage`` represents a product image and its associated metadata, such as bounding boxes. + Attributes: name: The resource name of the reference image. Format is: ``proje @@ -2455,6 +2459,7 @@ "DESCRIPTOR": _CREATEPRODUCTREQUEST, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """Request message for the ``CreateProduct`` method. + Attributes: parent: Required. The project in which the Product should be created. @@ -2480,6 +2485,7 @@ "DESCRIPTOR": _LISTPRODUCTSREQUEST, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """Request message for the ``ListProducts`` method. + Attributes: parent: Required. The project OR ProductSet from which Products should @@ -2503,6 +2509,7 @@ "DESCRIPTOR": _LISTPRODUCTSRESPONSE, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """Response message for the ``ListProducts`` method. + Attributes: products: List of products. @@ -2522,6 +2529,7 @@ "DESCRIPTOR": _GETPRODUCTREQUEST, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """Request message for the ``GetProduct`` method. + Attributes: name: Required. Resource name of the Product to get. Format is: @@ -2539,6 +2547,7 @@ "DESCRIPTOR": _UPDATEPRODUCTREQUEST, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """Request message for the ``UpdateProduct`` method. + Attributes: product: Required. The Product resource which replaces the one on the @@ -2561,6 +2570,7 @@ "DESCRIPTOR": _DELETEPRODUCTREQUEST, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """Request message for the ``DeleteProduct`` method. + Attributes: name: Required. Resource name of product to delete. Format is: @@ -2578,6 +2588,7 @@ "DESCRIPTOR": _CREATEPRODUCTSETREQUEST, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """Request message for the ``CreateProductSet`` method. + Attributes: parent: Required. The project in which the ProductSet should be @@ -2603,6 +2614,7 @@ "DESCRIPTOR": _LISTPRODUCTSETSREQUEST, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """Request message for the ``ListProductSets`` method. + Attributes: parent: Required. The project from which ProductSets should be listed. @@ -2626,6 +2638,7 @@ "DESCRIPTOR": _LISTPRODUCTSETSRESPONSE, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """Response message for the ``ListProductSets`` method. + Attributes: product_sets: List of ProductSets. @@ -2645,6 +2658,7 @@ "DESCRIPTOR": _GETPRODUCTSETREQUEST, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """Request message for the ``GetProductSet`` method. + Attributes: name: Required. Resource name of the ProductSet to get. Format is: @@ -2663,6 +2677,7 @@ "DESCRIPTOR": _UPDATEPRODUCTSETREQUEST, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """Request message for the ``UpdateProductSet`` method. + Attributes: product_set: Required. The ProductSet resource which replaces the one on @@ -2685,6 +2700,7 @@ "DESCRIPTOR": _DELETEPRODUCTSETREQUEST, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """Request message for the ``DeleteProductSet`` method. + Attributes: name: Required. Resource name of the ProductSet to delete. Format @@ -2703,6 +2719,7 @@ "DESCRIPTOR": _CREATEREFERENCEIMAGEREQUEST, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """Request message for the ``CreateReferenceImage`` method. + Attributes: parent: Required. Resource name of the product in which to create the @@ -2730,6 +2747,7 @@ "DESCRIPTOR": _LISTREFERENCEIMAGESREQUEST, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """Request message for the ``ListReferenceImages`` method. + Attributes: parent: Required. Resource name of the product containing the @@ -2756,6 +2774,7 @@ "DESCRIPTOR": _LISTREFERENCEIMAGESRESPONSE, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """Response message for the ``ListReferenceImages`` method. + Attributes: reference_images: The list of reference images. @@ -2778,6 +2797,7 @@ "DESCRIPTOR": _GETREFERENCEIMAGEREQUEST, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """Request message for the ``GetReferenceImage`` method. + Attributes: name: Required. The resource name of the ReferenceImage to get. @@ -2796,6 +2816,7 @@ "DESCRIPTOR": _DELETEREFERENCEIMAGEREQUEST, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """Request message for the ``DeleteReferenceImage`` method. + Attributes: name: Required. The resource name of the reference image to delete. @@ -2814,6 +2835,7 @@ "DESCRIPTOR": _ADDPRODUCTTOPRODUCTSETREQUEST, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """Request message for the ``AddProductToProductSet`` method. + Attributes: name: Required. The resource name for the ProductSet to modify. @@ -2836,6 +2858,7 @@ "DESCRIPTOR": _REMOVEPRODUCTFROMPRODUCTSETREQUEST, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """Request message for the ``RemoveProductFromProductSet`` method. + Attributes: name: Required. The resource name for the ProductSet to modify. @@ -2858,6 +2881,7 @@ "DESCRIPTOR": _LISTPRODUCTSINPRODUCTSETREQUEST, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """Request message for the ``ListProductsInProductSet`` method. + Attributes: name: Required. The ProductSet resource for which to retrieve @@ -2882,6 +2906,7 @@ "DESCRIPTOR": _LISTPRODUCTSINPRODUCTSETRESPONSE, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """Response message for the ``ListProductsInProductSet`` method. + Attributes: products: The list of Products. @@ -2902,6 +2927,7 @@ "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """The Google Cloud Storage location for a csv file which preserves a list of ImportProductSetRequests in each line. + Attributes: csv_file_uri: The Google Cloud Storage URI of the input csv file. The URI @@ -2962,6 +2988,7 @@ "DESCRIPTOR": _IMPORTPRODUCTSETSINPUTCONFIG, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """The input content for the ``ImportProductSets`` method. + Attributes: source: The source of the input. @@ -2981,6 +3008,7 @@ "DESCRIPTOR": _IMPORTPRODUCTSETSREQUEST, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """Request message for the ``ImportProductSets`` method. + Attributes: parent: Required. The project in which the ProductSets should be @@ -3004,6 +3032,7 @@ .longrunning.Operations.GetOperation] method in the returned [google.l ongrunning.Operation.response][google.longrunning.Operation.response] field. + Attributes: reference_images: The list of reference_images that are imported successfully. @@ -3029,6 +3058,7 @@ included in the ``metadata`` field of the ``Operation`` returned by the ``GetOperation`` call of the ``google::longrunning::Operations`` service. + Attributes: state: The current state of the batch operation. @@ -3052,6 +3082,7 @@ "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """Config to control which ProductSet contains the Products to be deleted. + Attributes: product_set_id: The ProductSet that contains the Products to delete. If a @@ -3070,6 +3101,7 @@ "DESCRIPTOR": _PURGEPRODUCTSREQUEST, "__module__": "google.cloud.vision_v1.proto.product_search_service_pb2", "__doc__": """Request message for the ``PurgeProducts`` method. + Attributes: target: The Products to delete. diff --git a/google/cloud/vision_v1/proto/text_annotation_pb2.py b/google/cloud/vision_v1/proto/text_annotation_pb2.py index 1546bb23..d2b0df70 100644 --- a/google/cloud/vision_v1/proto/text_annotation_pb2.py +++ b/google/cloud/vision_v1/proto/text_annotation_pb2.py @@ -991,6 +991,7 @@ "DESCRIPTOR": _TEXTANNOTATION_DETECTEDLANGUAGE, "__module__": "google.cloud.vision_v1.proto.text_annotation_pb2", "__doc__": """Detected language for a structural component. + Attributes: language_code: The BCP-47 language code, such as “en-US” or “sr-Latn”. For @@ -1009,6 +1010,7 @@ "DESCRIPTOR": _TEXTANNOTATION_DETECTEDBREAK, "__module__": "google.cloud.vision_v1.proto.text_annotation_pb2", "__doc__": """Detected start or end of a structural component. + Attributes: type: Detected break type. @@ -1025,6 +1027,7 @@ "DESCRIPTOR": _TEXTANNOTATION_TEXTPROPERTY, "__module__": "google.cloud.vision_v1.proto.text_annotation_pb2", "__doc__": """Additional information detected on the structural component. + Attributes: detected_languages: A list of detected languages together with confidence. @@ -1044,6 +1047,7 @@ Please refer to the [TextAnnotation.TextProperty][google.cloud.vision. v1.TextAnnotation.TextProperty] message definition below for more detail. + Attributes: pages: List of pages detected by OCR. @@ -1065,6 +1069,7 @@ "DESCRIPTOR": _PAGE, "__module__": "google.cloud.vision_v1.proto.text_annotation_pb2", "__doc__": """Detected page from OCR. + Attributes: property: Additional information detected on the page. @@ -1091,6 +1096,7 @@ "DESCRIPTOR": _BLOCK, "__module__": "google.cloud.vision_v1.proto.text_annotation_pb2", "__doc__": """Logical element on the page. + Attributes: property: Additional information detected for the block. @@ -1126,6 +1132,7 @@ "__module__": "google.cloud.vision_v1.proto.text_annotation_pb2", "__doc__": """Structural unit of text representing a number of words in certain order. + Attributes: property: Additional information detected for the paragraph. @@ -1156,6 +1163,7 @@ "DESCRIPTOR": _WORD, "__module__": "google.cloud.vision_v1.proto.text_annotation_pb2", "__doc__": """A word representation. + Attributes: property: Additional information detected for the word. @@ -1187,6 +1195,7 @@ "DESCRIPTOR": _SYMBOL, "__module__": "google.cloud.vision_v1.proto.text_annotation_pb2", "__doc__": """A single symbol representation. + Attributes: property: Additional information detected for the symbol. diff --git a/google/cloud/vision_v1/proto/web_detection_pb2.py b/google/cloud/vision_v1/proto/web_detection_pb2.py index 89d79dfa..77bc5efe 100644 --- a/google/cloud/vision_v1/proto/web_detection_pb2.py +++ b/google/cloud/vision_v1/proto/web_detection_pb2.py @@ -516,6 +516,7 @@ "DESCRIPTOR": _WEBDETECTION_WEBENTITY, "__module__": "google.cloud.vision_v1.proto.web_detection_pb2", "__doc__": """Entity deduced from similar images on the Internet. + Attributes: entity_id: Opaque entity ID. @@ -535,6 +536,7 @@ "DESCRIPTOR": _WEBDETECTION_WEBIMAGE, "__module__": "google.cloud.vision_v1.proto.web_detection_pb2", "__doc__": """Metadata for online images. + Attributes: url: The result image URL. @@ -551,6 +553,7 @@ "DESCRIPTOR": _WEBDETECTION_WEBPAGE, "__module__": "google.cloud.vision_v1.proto.web_detection_pb2", "__doc__": """Metadata for web pages. + Attributes: url: The result web page URL. @@ -577,6 +580,7 @@ "DESCRIPTOR": _WEBDETECTION_WEBLABEL, "__module__": "google.cloud.vision_v1.proto.web_detection_pb2", "__doc__": """Label to provide extra metadata for the web detection. + Attributes: label: Label for extra metadata. @@ -591,6 +595,7 @@ "DESCRIPTOR": _WEBDETECTION, "__module__": "google.cloud.vision_v1.proto.web_detection_pb2", "__doc__": """Relevant information for the image from the Internet. + Attributes: web_entities: Deduced entities from similar images on the Internet. diff --git a/google/cloud/vision_v1p1beta1/proto/geometry_pb2.py b/google/cloud/vision_v1p1beta1/proto/geometry_pb2.py index 2a5cf990..dcf4953a 100644 --- a/google/cloud/vision_v1p1beta1/proto/geometry_pb2.py +++ b/google/cloud/vision_v1p1beta1/proto/geometry_pb2.py @@ -214,6 +214,7 @@ "DESCRIPTOR": _VERTEX, "__module__": "google.cloud.vision_v1p1beta1.proto.geometry_pb2", "__doc__": """X coordinate. + Attributes: y: Y coordinate. @@ -230,6 +231,7 @@ "DESCRIPTOR": _BOUNDINGPOLY, "__module__": "google.cloud.vision_v1p1beta1.proto.geometry_pb2", "__doc__": """A bounding polygon for the detected image annotation. + Attributes: vertices: The bounding polygon vertices. @@ -248,6 +250,7 @@ "__doc__": """A 3D position in the image, used primarily for Face detection landmarks. A valid Position must have both x and y coordinates. The position coordinates are in the same scale as the original image. + Attributes: x: X coordinate. diff --git a/google/cloud/vision_v1p1beta1/proto/image_annotator_pb2.py b/google/cloud/vision_v1p1beta1/proto/image_annotator_pb2.py index 8c4a2645..291d9c89 100644 --- a/google/cloud/vision_v1p1beta1/proto/image_annotator_pb2.py +++ b/google/cloud/vision_v1p1beta1/proto/image_annotator_pb2.py @@ -2577,6 +2577,7 @@ image detection task to perform. Features encode the Cloud Vision API vertical to operate on and the number of top-scoring results to return. + Attributes: type: The feature type. @@ -2598,6 +2599,7 @@ "DESCRIPTOR": _IMAGESOURCE, "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", "__doc__": """External image source (Google Cloud Storage image location). + Attributes: gcs_image_uri: NOTE: For new code ``image_uri`` below is preferred. Google @@ -2630,6 +2632,7 @@ "DESCRIPTOR": _IMAGE, "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", "__doc__": """Client image to perform Google Cloud Vision API tasks over. + Attributes: content: Image content, represented as a stream of bytes. Note: as with @@ -2657,6 +2660,7 @@ "DESCRIPTOR": _FACEANNOTATION_LANDMARK, "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", "__doc__": """A face-specific landmark (for example, a face feature). + Attributes: type: Face landmark type. @@ -2669,6 +2673,7 @@ "DESCRIPTOR": _FACEANNOTATION, "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", "__doc__": """A face annotation object contains the results of face detection. + Attributes: bounding_poly: The bounding polygon around the face. The coordinates of the @@ -2732,6 +2737,7 @@ "DESCRIPTOR": _LOCATIONINFO, "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", "__doc__": """Detected entity location information. + Attributes: lat_lng: lat/long location coordinates. @@ -2748,6 +2754,7 @@ "DESCRIPTOR": _PROPERTY, "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", "__doc__": """A ``Property`` consists of a user-supplied name/value pair. + Attributes: name: Name of the property. @@ -2768,6 +2775,7 @@ "DESCRIPTOR": _ENTITYANNOTATION, "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", "__doc__": """Set of detected entity features. + Attributes: mid: Opaque entity ID. Some IDs may be available in `Google @@ -2822,6 +2830,7 @@ "__doc__": """Set of features pertaining to the image, computed by computer vision methods over safe-search verticals (for example, adult, spoof, medical, violence). + Attributes: adult: Represents the adult content likelihood for the image. Adult @@ -2853,6 +2862,7 @@ "DESCRIPTOR": _LATLONGRECT, "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", "__doc__": """Rectangle determined by min and max ``LatLng`` pairs. + Attributes: min_lat_lng: Min lat/long pair. @@ -2872,6 +2882,7 @@ "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", "__doc__": """Color information consists of RGB channels, score, and the fraction of the image that the color occupies in the image. + Attributes: color: RGB components of the color. @@ -2893,6 +2904,7 @@ "DESCRIPTOR": _DOMINANTCOLORSANNOTATION, "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", "__doc__": """Set of dominant colors and their corresponding scores. + Attributes: colors: RGB color values with their score and pixel fraction. @@ -2909,6 +2921,7 @@ "DESCRIPTOR": _IMAGEPROPERTIES, "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", "__doc__": """Stores image properties, such as dominant colors. + Attributes: dominant_colors: If present, dominant colors completed successfully. @@ -2926,6 +2939,7 @@ "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", "__doc__": """Single crop hint that is used to generate a new crop when serving an image. + Attributes: bounding_poly: The bounding polygon for the crop region. The coordinates of @@ -2950,6 +2964,7 @@ "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", "__doc__": """Set of crop hints that are used to generate new crops when serving images. + Attributes: crop_hints: Crop hint results. @@ -2966,6 +2981,7 @@ "DESCRIPTOR": _CROPHINTSPARAMS, "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", "__doc__": """Parameters for crop hints annotation request. + Attributes: aspect_ratios: Aspect ratios in floats, representing the ratio of the width @@ -2987,6 +3003,7 @@ "DESCRIPTOR": _WEBDETECTIONPARAMS, "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", "__doc__": """Parameters for web detection request. + Attributes: include_geo_results: Whether to include results derived from the geo information in @@ -3004,6 +3021,7 @@ "DESCRIPTOR": _IMAGECONTEXT, "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", "__doc__": """Image context and/or feature-specific parameters. + Attributes: lat_long_rect: lat/long rectangle that specifies the location of the image. @@ -3036,6 +3054,7 @@ "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", "__doc__": """Request for performing Google Cloud Vision API tasks over a user- provided image, with user-requested features. + Attributes: image: The image to be processed. @@ -3056,6 +3075,7 @@ "DESCRIPTOR": _ANNOTATEIMAGERESPONSE, "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", "__doc__": """Response to an image annotation request. + Attributes: face_annotations: If present, face detection has completed successfully. @@ -3097,6 +3117,7 @@ "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", "__doc__": """Multiple image annotation requests are batched into a single service call. + Attributes: requests: Required. Individual image annotation requests for this batch. @@ -3113,6 +3134,7 @@ "DESCRIPTOR": _BATCHANNOTATEIMAGESRESPONSE, "__module__": "google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", "__doc__": """Response to a batch image annotation request. + Attributes: responses: Individual responses to image annotation requests within the diff --git a/google/cloud/vision_v1p1beta1/proto/text_annotation_pb2.py b/google/cloud/vision_v1p1beta1/proto/text_annotation_pb2.py index 44281142..9ecedfaa 100644 --- a/google/cloud/vision_v1p1beta1/proto/text_annotation_pb2.py +++ b/google/cloud/vision_v1p1beta1/proto/text_annotation_pb2.py @@ -991,6 +991,7 @@ "DESCRIPTOR": _TEXTANNOTATION_DETECTEDLANGUAGE, "__module__": "google.cloud.vision_v1p1beta1.proto.text_annotation_pb2", "__doc__": """Detected language for a structural component. + Attributes: language_code: The BCP-47 language code, such as “en-US” or “sr-Latn”. For @@ -1009,6 +1010,7 @@ "DESCRIPTOR": _TEXTANNOTATION_DETECTEDBREAK, "__module__": "google.cloud.vision_v1p1beta1.proto.text_annotation_pb2", "__doc__": """Detected start or end of a structural component. + Attributes: type: Detected break type. @@ -1025,6 +1027,7 @@ "DESCRIPTOR": _TEXTANNOTATION_TEXTPROPERTY, "__module__": "google.cloud.vision_v1p1beta1.proto.text_annotation_pb2", "__doc__": """Additional information detected on the structural component. + Attributes: detected_languages: A list of detected languages together with confidence. @@ -1044,6 +1047,7 @@ Please refer to the [TextAnnotation.TextProperty][google.cloud.vision. v1p1beta1.TextAnnotation.TextProperty] message definition below for more detail. + Attributes: pages: List of pages detected by OCR. @@ -1065,6 +1069,7 @@ "DESCRIPTOR": _PAGE, "__module__": "google.cloud.vision_v1p1beta1.proto.text_annotation_pb2", "__doc__": """Detected page from OCR. + Attributes: property: Additional information detected on the page. @@ -1089,6 +1094,7 @@ "DESCRIPTOR": _BLOCK, "__module__": "google.cloud.vision_v1p1beta1.proto.text_annotation_pb2", "__doc__": """Logical element on the page. + Attributes: property: Additional information detected for the block. @@ -1123,6 +1129,7 @@ "__module__": "google.cloud.vision_v1p1beta1.proto.text_annotation_pb2", "__doc__": """Structural unit of text representing a number of words in certain order. + Attributes: property: Additional information detected for the paragraph. @@ -1153,6 +1160,7 @@ "DESCRIPTOR": _WORD, "__module__": "google.cloud.vision_v1p1beta1.proto.text_annotation_pb2", "__doc__": """A word representation. + Attributes: property: Additional information detected for the word. @@ -1184,6 +1192,7 @@ "DESCRIPTOR": _SYMBOL, "__module__": "google.cloud.vision_v1p1beta1.proto.text_annotation_pb2", "__doc__": """A single symbol representation. + Attributes: property: Additional information detected for the symbol. diff --git a/google/cloud/vision_v1p1beta1/proto/web_detection_pb2.py b/google/cloud/vision_v1p1beta1/proto/web_detection_pb2.py index bac53ed0..d6d0a7a9 100644 --- a/google/cloud/vision_v1p1beta1/proto/web_detection_pb2.py +++ b/google/cloud/vision_v1p1beta1/proto/web_detection_pb2.py @@ -516,6 +516,7 @@ "DESCRIPTOR": _WEBDETECTION_WEBENTITY, "__module__": "google.cloud.vision_v1p1beta1.proto.web_detection_pb2", "__doc__": """Entity deduced from similar images on the Internet. + Attributes: entity_id: Opaque entity ID. @@ -535,6 +536,7 @@ "DESCRIPTOR": _WEBDETECTION_WEBIMAGE, "__module__": "google.cloud.vision_v1p1beta1.proto.web_detection_pb2", "__doc__": """Metadata for online images. + Attributes: url: The result image URL. @@ -551,6 +553,7 @@ "DESCRIPTOR": _WEBDETECTION_WEBPAGE, "__module__": "google.cloud.vision_v1p1beta1.proto.web_detection_pb2", "__doc__": """Metadata for web pages. + Attributes: url: The result web page URL. @@ -577,6 +580,7 @@ "DESCRIPTOR": _WEBDETECTION_WEBLABEL, "__module__": "google.cloud.vision_v1p1beta1.proto.web_detection_pb2", "__doc__": """Label to provide extra metadata for the web detection. + Attributes: label: Label for extra metadata. @@ -591,6 +595,7 @@ "DESCRIPTOR": _WEBDETECTION, "__module__": "google.cloud.vision_v1p1beta1.proto.web_detection_pb2", "__doc__": """Relevant information for the image from the Internet. + Attributes: web_entities: Deduced entities from similar images on the Internet. diff --git a/google/cloud/vision_v1p2beta1/proto/geometry_pb2.py b/google/cloud/vision_v1p2beta1/proto/geometry_pb2.py index 4ad2c613..280f9a4f 100644 --- a/google/cloud/vision_v1p2beta1/proto/geometry_pb2.py +++ b/google/cloud/vision_v1p2beta1/proto/geometry_pb2.py @@ -295,6 +295,7 @@ "DESCRIPTOR": _VERTEX, "__module__": "google.cloud.vision_v1p2beta1.proto.geometry_pb2", "__doc__": """X coordinate. + Attributes: y: Y coordinate. @@ -311,6 +312,7 @@ "DESCRIPTOR": _NORMALIZEDVERTEX, "__module__": "google.cloud.vision_v1p2beta1.proto.geometry_pb2", "__doc__": """X coordinate. + Attributes: y: Y coordinate. @@ -327,6 +329,7 @@ "DESCRIPTOR": _BOUNDINGPOLY, "__module__": "google.cloud.vision_v1p2beta1.proto.geometry_pb2", "__doc__": """A bounding polygon for the detected image annotation. + Attributes: vertices: The bounding polygon vertices. @@ -347,6 +350,7 @@ "__doc__": """A 3D position in the image, used primarily for Face detection landmarks. A valid Position must have both x and y coordinates. The position coordinates are in the same scale as the original image. + Attributes: x: X coordinate. diff --git a/google/cloud/vision_v1p2beta1/proto/image_annotator_pb2.py b/google/cloud/vision_v1p2beta1/proto/image_annotator_pb2.py index 28ef3a46..a570bba3 100644 --- a/google/cloud/vision_v1p2beta1/proto/image_annotator_pb2.py +++ b/google/cloud/vision_v1p2beta1/proto/image_annotator_pb2.py @@ -3318,6 +3318,7 @@ "__doc__": """The type of Google Cloud Vision API detection to perform, and the maximum number of results to return for that type. Multiple ``Feature`` objects can be specified in the ``features`` list. + Attributes: type: The feature type. @@ -3342,6 +3343,7 @@ "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """External image source (Google Cloud Storage or web URL image location). + Attributes: gcs_image_uri: \ **Use ``image_uri`` instead.** The Google Cloud Storage URI @@ -3377,6 +3379,7 @@ "DESCRIPTOR": _IMAGE, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """Client image to perform Google Cloud Vision API tasks over. + Attributes: content: Image content, represented as a stream of bytes. Note: As with @@ -3404,6 +3407,7 @@ "DESCRIPTOR": _FACEANNOTATION_LANDMARK, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """A face-specific landmark (for example, a face feature). + Attributes: type: Face landmark type. @@ -3416,6 +3420,7 @@ "DESCRIPTOR": _FACEANNOTATION, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """A face annotation object contains the results of face detection. + Attributes: bounding_poly: The bounding polygon around the face. The coordinates of the @@ -3479,6 +3484,7 @@ "DESCRIPTOR": _LOCATIONINFO, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """Detected entity location information. + Attributes: lat_lng: lat/long location coordinates. @@ -3495,6 +3501,7 @@ "DESCRIPTOR": _PROPERTY, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """A ``Property`` consists of a user-supplied name/value pair. + Attributes: name: Name of the property. @@ -3515,6 +3522,7 @@ "DESCRIPTOR": _ENTITYANNOTATION, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """Set of detected entity features. + Attributes: mid: Opaque entity ID. Some IDs may be available in `Google @@ -3570,6 +3578,7 @@ "__doc__": """Set of features pertaining to the image, computed by computer vision methods over safe-search verticals (for example, adult, spoof, medical, violence). + Attributes: adult: Represents the adult content likelihood for the image. Adult @@ -3601,6 +3610,7 @@ "DESCRIPTOR": _LATLONGRECT, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """Rectangle determined by min and max ``LatLng`` pairs. + Attributes: min_lat_lng: Min lat/long pair. @@ -3620,6 +3630,7 @@ "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """Color information consists of RGB channels, score, and the fraction of the image that the color occupies in the image. + Attributes: color: RGB components of the color. @@ -3641,6 +3652,7 @@ "DESCRIPTOR": _DOMINANTCOLORSANNOTATION, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """Set of dominant colors and their corresponding scores. + Attributes: colors: RGB color values with their score and pixel fraction. @@ -3657,6 +3669,7 @@ "DESCRIPTOR": _IMAGEPROPERTIES, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """Stores image properties, such as dominant colors. + Attributes: dominant_colors: If present, dominant colors completed successfully. @@ -3674,6 +3687,7 @@ "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """Single crop hint that is used to generate a new crop when serving an image. + Attributes: bounding_poly: The bounding polygon for the crop region. The coordinates of @@ -3698,6 +3712,7 @@ "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """Set of crop hints that are used to generate new crops when serving images. + Attributes: crop_hints: Crop hint results. @@ -3714,6 +3729,7 @@ "DESCRIPTOR": _CROPHINTSPARAMS, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """Parameters for crop hints annotation request. + Attributes: aspect_ratios: Aspect ratios in floats, representing the ratio of the width @@ -3735,6 +3751,7 @@ "DESCRIPTOR": _WEBDETECTIONPARAMS, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """Parameters for web detection request. + Attributes: include_geo_results: Whether to include results derived from the geo information in @@ -3752,6 +3769,7 @@ "DESCRIPTOR": _IMAGECONTEXT, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """Image context and/or feature-specific parameters. + Attributes: lat_long_rect: Not used. @@ -3784,6 +3802,7 @@ "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """Request for performing Google Cloud Vision API tasks over a user- provided image, with user-requested features. + Attributes: image: The image to be processed. @@ -3805,6 +3824,7 @@ "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """If an image was produced from a file (e.g. a PDF), this message gives information about the source of that image. + Attributes: uri: The URI of the file used to produce the image. @@ -3824,6 +3844,7 @@ "DESCRIPTOR": _ANNOTATEIMAGERESPONSE, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """Response to an image annotation request. + Attributes: face_annotations: If present, face detection has completed successfully. @@ -3868,6 +3889,7 @@ "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """Response to a single file annotation request. A file may contain one or more images, which individually have their own responses. + Attributes: input_config: Information about the file for which this response is @@ -3888,6 +3910,7 @@ "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """Multiple image annotation requests are batched into a single service call. + Attributes: requests: Required. Individual image annotation requests for this batch. @@ -3904,6 +3927,7 @@ "DESCRIPTOR": _BATCHANNOTATEIMAGESRESPONSE, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """Response to a batch image annotation request. + Attributes: responses: Individual responses to image annotation requests within the @@ -3921,6 +3945,7 @@ "DESCRIPTOR": _ASYNCANNOTATEFILEREQUEST, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """An offline file annotation request. + Attributes: input_config: Required. Information about the input file. @@ -3945,6 +3970,7 @@ "DESCRIPTOR": _ASYNCANNOTATEFILERESPONSE, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """The response for a single offline file annotation request. + Attributes: output_config: The output location and metadata from @@ -3963,6 +3989,7 @@ "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """Multiple async file annotation requests are batched into a single service call. + Attributes: requests: Required. Individual async file annotation requests for this @@ -3980,6 +4007,7 @@ "DESCRIPTOR": _ASYNCBATCHANNOTATEFILESRESPONSE, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """Response to an async batch file annotation request. + Attributes: responses: The list of file annotation responses, one for each request in @@ -3997,6 +4025,7 @@ "DESCRIPTOR": _INPUTCONFIG, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """The desired input location and metadata. + Attributes: gcs_source: The Google Cloud Storage location to read the input from. @@ -4016,6 +4045,7 @@ "DESCRIPTOR": _OUTPUTCONFIG, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """The desired output location and metadata. + Attributes: gcs_destination: The Google Cloud Storage location to write the output(s) to. @@ -4042,6 +4072,7 @@ "DESCRIPTOR": _GCSSOURCE, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """The Google Cloud Storage location where the input will be read from. + Attributes: uri: Google Cloud Storage URI for the input file. This must only be @@ -4059,6 +4090,7 @@ "DESCRIPTOR": _GCSDESTINATION, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """The Google Cloud Storage location where the output will be written to. + Attributes: uri: Google Cloud Storage URI where the results will be stored. @@ -4085,6 +4117,7 @@ "DESCRIPTOR": _OPERATIONMETADATA, "__module__": "google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", "__doc__": """Contains metadata for the BatchAnnotateImages operation. + Attributes: state: Current state of the batch operation. diff --git a/google/cloud/vision_v1p2beta1/proto/text_annotation_pb2.py b/google/cloud/vision_v1p2beta1/proto/text_annotation_pb2.py index 101dbdbe..d79f8688 100644 --- a/google/cloud/vision_v1p2beta1/proto/text_annotation_pb2.py +++ b/google/cloud/vision_v1p2beta1/proto/text_annotation_pb2.py @@ -991,6 +991,7 @@ "DESCRIPTOR": _TEXTANNOTATION_DETECTEDLANGUAGE, "__module__": "google.cloud.vision_v1p2beta1.proto.text_annotation_pb2", "__doc__": """Detected language for a structural component. + Attributes: language_code: The BCP-47 language code, such as “en-US” or “sr-Latn”. For @@ -1009,6 +1010,7 @@ "DESCRIPTOR": _TEXTANNOTATION_DETECTEDBREAK, "__module__": "google.cloud.vision_v1p2beta1.proto.text_annotation_pb2", "__doc__": """Detected start or end of a structural component. + Attributes: type: Detected break type. @@ -1025,6 +1027,7 @@ "DESCRIPTOR": _TEXTANNOTATION_TEXTPROPERTY, "__module__": "google.cloud.vision_v1p2beta1.proto.text_annotation_pb2", "__doc__": """Additional information detected on the structural component. + Attributes: detected_languages: A list of detected languages together with confidence. @@ -1044,6 +1047,7 @@ Please refer to the [TextAnnotation.TextProperty][google.cloud.vision. v1p2beta1.TextAnnotation.TextProperty] message definition below for more detail. + Attributes: pages: List of pages detected by OCR. @@ -1065,6 +1069,7 @@ "DESCRIPTOR": _PAGE, "__module__": "google.cloud.vision_v1p2beta1.proto.text_annotation_pb2", "__doc__": """Detected page from OCR. + Attributes: property: Additional information detected on the page. @@ -1091,6 +1096,7 @@ "DESCRIPTOR": _BLOCK, "__module__": "google.cloud.vision_v1p2beta1.proto.text_annotation_pb2", "__doc__": """Logical element on the page. + Attributes: property: Additional information detected for the block. @@ -1126,6 +1132,7 @@ "__module__": "google.cloud.vision_v1p2beta1.proto.text_annotation_pb2", "__doc__": """Structural unit of text representing a number of words in certain order. + Attributes: property: Additional information detected for the paragraph. @@ -1156,6 +1163,7 @@ "DESCRIPTOR": _WORD, "__module__": "google.cloud.vision_v1p2beta1.proto.text_annotation_pb2", "__doc__": """A word representation. + Attributes: property: Additional information detected for the word. @@ -1187,6 +1195,7 @@ "DESCRIPTOR": _SYMBOL, "__module__": "google.cloud.vision_v1p2beta1.proto.text_annotation_pb2", "__doc__": """A single symbol representation. + Attributes: property: Additional information detected for the symbol. diff --git a/google/cloud/vision_v1p2beta1/proto/web_detection_pb2.py b/google/cloud/vision_v1p2beta1/proto/web_detection_pb2.py index 8a12fb93..b001cc76 100644 --- a/google/cloud/vision_v1p2beta1/proto/web_detection_pb2.py +++ b/google/cloud/vision_v1p2beta1/proto/web_detection_pb2.py @@ -516,6 +516,7 @@ "DESCRIPTOR": _WEBDETECTION_WEBENTITY, "__module__": "google.cloud.vision_v1p2beta1.proto.web_detection_pb2", "__doc__": """Entity deduced from similar images on the Internet. + Attributes: entity_id: Opaque entity ID. @@ -535,6 +536,7 @@ "DESCRIPTOR": _WEBDETECTION_WEBIMAGE, "__module__": "google.cloud.vision_v1p2beta1.proto.web_detection_pb2", "__doc__": """Metadata for online images. + Attributes: url: The result image URL. @@ -551,6 +553,7 @@ "DESCRIPTOR": _WEBDETECTION_WEBPAGE, "__module__": "google.cloud.vision_v1p2beta1.proto.web_detection_pb2", "__doc__": """Metadata for web pages. + Attributes: url: The result web page URL. @@ -577,6 +580,7 @@ "DESCRIPTOR": _WEBDETECTION_WEBLABEL, "__module__": "google.cloud.vision_v1p2beta1.proto.web_detection_pb2", "__doc__": """Label to provide extra metadata for the web detection. + Attributes: label: Label for extra metadata. @@ -591,6 +595,7 @@ "DESCRIPTOR": _WEBDETECTION, "__module__": "google.cloud.vision_v1p2beta1.proto.web_detection_pb2", "__doc__": """Relevant information for the image from the Internet. + Attributes: web_entities: Deduced entities from similar images on the Internet. diff --git a/google/cloud/vision_v1p3beta1/proto/geometry_pb2.py b/google/cloud/vision_v1p3beta1/proto/geometry_pb2.py index e759fd39..41d086df 100644 --- a/google/cloud/vision_v1p3beta1/proto/geometry_pb2.py +++ b/google/cloud/vision_v1p3beta1/proto/geometry_pb2.py @@ -342,6 +342,7 @@ "DESCRIPTOR": _VERTEX, "__module__": "google.cloud.vision_v1p3beta1.proto.geometry_pb2", "__doc__": """X coordinate. + Attributes: y: Y coordinate. @@ -358,6 +359,7 @@ "DESCRIPTOR": _NORMALIZEDVERTEX, "__module__": "google.cloud.vision_v1p3beta1.proto.geometry_pb2", "__doc__": """X coordinate. + Attributes: y: Y coordinate. @@ -374,6 +376,7 @@ "DESCRIPTOR": _BOUNDINGPOLY, "__module__": "google.cloud.vision_v1p3beta1.proto.geometry_pb2", "__doc__": """A bounding polygon for the detected image annotation. + Attributes: vertices: The bounding polygon vertices. @@ -392,6 +395,7 @@ "DESCRIPTOR": _NORMALIZEDBOUNDINGPOLY, "__module__": "google.cloud.vision_v1p3beta1.proto.geometry_pb2", "__doc__": """A normalized bounding polygon around a portion of an image. + Attributes: vertices: Normalized vertices of the bounding polygon. @@ -410,6 +414,7 @@ "__doc__": """A 3D position in the image, used primarily for Face detection landmarks. A valid Position must have both x and y coordinates. The position coordinates are in the same scale as the original image. + Attributes: x: X coordinate. diff --git a/google/cloud/vision_v1p3beta1/proto/image_annotator_pb2.py b/google/cloud/vision_v1p3beta1/proto/image_annotator_pb2.py index c2ae5542..942bbb37 100644 --- a/google/cloud/vision_v1p3beta1/proto/image_annotator_pb2.py +++ b/google/cloud/vision_v1p3beta1/proto/image_annotator_pb2.py @@ -3533,6 +3533,7 @@ "__doc__": """The type of Google Cloud Vision API detection to perform, and the maximum number of results to return for that type. Multiple ``Feature`` objects can be specified in the ``features`` list. + Attributes: type: The feature type. @@ -3557,6 +3558,7 @@ "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """External image source (Google Cloud Storage or web URL image location). + Attributes: gcs_image_uri: \ **Use ``image_uri`` instead.** The Google Cloud Storage URI @@ -3592,6 +3594,7 @@ "DESCRIPTOR": _IMAGE, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """Client image to perform Google Cloud Vision API tasks over. + Attributes: content: Image content, represented as a stream of bytes. Note: As with @@ -3619,6 +3622,7 @@ "DESCRIPTOR": _FACEANNOTATION_LANDMARK, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """A face-specific landmark (for example, a face feature). + Attributes: type: Face landmark type. @@ -3631,6 +3635,7 @@ "DESCRIPTOR": _FACEANNOTATION, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """A face annotation object contains the results of face detection. + Attributes: bounding_poly: The bounding polygon around the face. The coordinates of the @@ -3694,6 +3699,7 @@ "DESCRIPTOR": _LOCATIONINFO, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """Detected entity location information. + Attributes: lat_lng: lat/long location coordinates. @@ -3710,6 +3716,7 @@ "DESCRIPTOR": _PROPERTY, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """A ``Property`` consists of a user-supplied name/value pair. + Attributes: name: Name of the property. @@ -3730,6 +3737,7 @@ "DESCRIPTOR": _ENTITYANNOTATION, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """Set of detected entity features. + Attributes: mid: Opaque entity ID. Some IDs may be available in `Google @@ -3783,6 +3791,7 @@ "DESCRIPTOR": _LOCALIZEDOBJECTANNOTATION, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """Set of detected objects with bounding boxes. + Attributes: mid: Object ID that should align with EntityAnnotation mid. @@ -3812,6 +3821,7 @@ "__doc__": """Set of features pertaining to the image, computed by computer vision methods over safe-search verticals (for example, adult, spoof, medical, violence). + Attributes: adult: Represents the adult content likelihood for the image. Adult @@ -3843,6 +3853,7 @@ "DESCRIPTOR": _LATLONGRECT, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """Rectangle determined by min and max ``LatLng`` pairs. + Attributes: min_lat_lng: Min lat/long pair. @@ -3862,6 +3873,7 @@ "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """Color information consists of RGB channels, score, and the fraction of the image that the color occupies in the image. + Attributes: color: RGB components of the color. @@ -3883,6 +3895,7 @@ "DESCRIPTOR": _DOMINANTCOLORSANNOTATION, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """Set of dominant colors and their corresponding scores. + Attributes: colors: RGB color values with their score and pixel fraction. @@ -3899,6 +3912,7 @@ "DESCRIPTOR": _IMAGEPROPERTIES, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """Stores image properties, such as dominant colors. + Attributes: dominant_colors: If present, dominant colors completed successfully. @@ -3916,6 +3930,7 @@ "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """Single crop hint that is used to generate a new crop when serving an image. + Attributes: bounding_poly: The bounding polygon for the crop region. The coordinates of @@ -3940,6 +3955,7 @@ "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """Set of crop hints that are used to generate new crops when serving images. + Attributes: crop_hints: Crop hint results. @@ -3956,6 +3972,7 @@ "DESCRIPTOR": _CROPHINTSPARAMS, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """Parameters for crop hints annotation request. + Attributes: aspect_ratios: Aspect ratios in floats, representing the ratio of the width @@ -3977,6 +3994,7 @@ "DESCRIPTOR": _WEBDETECTIONPARAMS, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """Parameters for web detection request. + Attributes: include_geo_results: Whether to include results derived from the geo information in @@ -3994,6 +4012,7 @@ "DESCRIPTOR": _IMAGECONTEXT, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """Image context and/or feature-specific parameters. + Attributes: lat_long_rect: Not used. @@ -4028,6 +4047,7 @@ "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """Request for performing Google Cloud Vision API tasks over a user- provided image, with user-requested features. + Attributes: image: The image to be processed. @@ -4049,6 +4069,7 @@ "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """If an image was produced from a file (e.g. a PDF), this message gives information about the source of that image. + Attributes: uri: The URI of the file used to produce the image. @@ -4068,6 +4089,7 @@ "DESCRIPTOR": _ANNOTATEIMAGERESPONSE, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """Response to an image annotation request. + Attributes: face_annotations: If present, face detection has completed successfully. @@ -4118,6 +4140,7 @@ "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """Response to a single file annotation request. A file may contain one or more images, which individually have their own responses. + Attributes: input_config: Information about the file for which this response is @@ -4138,6 +4161,7 @@ "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """Multiple image annotation requests are batched into a single service call. + Attributes: requests: Individual image annotation requests for this batch. @@ -4154,6 +4178,7 @@ "DESCRIPTOR": _BATCHANNOTATEIMAGESRESPONSE, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """Response to a batch image annotation request. + Attributes: responses: Individual responses to image annotation requests within the @@ -4171,6 +4196,7 @@ "DESCRIPTOR": _ASYNCANNOTATEFILEREQUEST, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """An offline file annotation request. + Attributes: input_config: Required. Information about the input file. @@ -4195,6 +4221,7 @@ "DESCRIPTOR": _ASYNCANNOTATEFILERESPONSE, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """The response for a single offline file annotation request. + Attributes: output_config: The output location and metadata from @@ -4213,6 +4240,7 @@ "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """Multiple async file annotation requests are batched into a single service call. + Attributes: requests: Required. Individual async file annotation requests for this @@ -4230,6 +4258,7 @@ "DESCRIPTOR": _ASYNCBATCHANNOTATEFILESRESPONSE, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """Response to an async batch file annotation request. + Attributes: responses: The list of file annotation responses, one for each request in @@ -4247,6 +4276,7 @@ "DESCRIPTOR": _INPUTCONFIG, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """The desired input location and metadata. + Attributes: gcs_source: The Google Cloud Storage location to read the input from. @@ -4266,6 +4296,7 @@ "DESCRIPTOR": _OUTPUTCONFIG, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """The desired output location and metadata. + Attributes: gcs_destination: The Google Cloud Storage location to write the output(s) to. @@ -4292,6 +4323,7 @@ "DESCRIPTOR": _GCSSOURCE, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """The Google Cloud Storage location where the input will be read from. + Attributes: uri: Google Cloud Storage URI for the input file. This must only be @@ -4310,6 +4342,7 @@ "DESCRIPTOR": _GCSDESTINATION, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """The Google Cloud Storage location where the output will be written to. + Attributes: uri: Google Cloud Storage URI where the results will be stored. @@ -4336,6 +4369,7 @@ "DESCRIPTOR": _OPERATIONMETADATA, "__module__": "google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", "__doc__": """Contains metadata for the BatchAnnotateImages operation. + Attributes: state: Current state of the batch operation. diff --git a/google/cloud/vision_v1p3beta1/proto/product_search_pb2.py b/google/cloud/vision_v1p3beta1/proto/product_search_pb2.py index 6a58627d..64992192 100644 --- a/google/cloud/vision_v1p3beta1/proto/product_search_pb2.py +++ b/google/cloud/vision_v1p3beta1/proto/product_search_pb2.py @@ -626,6 +626,7 @@ "DESCRIPTOR": _PRODUCTSEARCHPARAMS, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_pb2", "__doc__": """Parameters for a product search request. + Attributes: catalog_name: The resource name of the catalog to search. Format is: @@ -683,6 +684,7 @@ "DESCRIPTOR": _PRODUCTSEARCHRESULTS_PRODUCTINFO, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_pb2", "__doc__": """Information about a product. + Attributes: product_id: Product ID. @@ -705,6 +707,7 @@ "DESCRIPTOR": _PRODUCTSEARCHRESULTS_RESULT, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_pb2", "__doc__": """Information about a product. + Attributes: product: The Product. @@ -722,6 +725,7 @@ "DESCRIPTOR": _PRODUCTSEARCHRESULTS, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_pb2", "__doc__": """Results for a product search request. + Attributes: category: Product category. [Deprecated] Use ``product_category``. diff --git a/google/cloud/vision_v1p3beta1/proto/product_search_service_pb2.py b/google/cloud/vision_v1p3beta1/proto/product_search_service_pb2.py index 2c8c9881..4ee8baa5 100644 --- a/google/cloud/vision_v1p3beta1/proto/product_search_service_pb2.py +++ b/google/cloud/vision_v1p3beta1/proto/product_search_service_pb2.py @@ -2170,6 +2170,7 @@ "DESCRIPTOR": _PRODUCT_KEYVALUE, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """A product label represented as a key-value pair. + Attributes: key: The key of the label attached to the product. Cannot be empty @@ -2184,6 +2185,7 @@ "DESCRIPTOR": _PRODUCT, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """A Product contains ReferenceImages. + Attributes: name: The resource name of the product. Format is: @@ -2225,6 +2227,7 @@ "__doc__": """A ProductSet contains Products. A ProductSet can contain a maximum of 1 million reference images. If the limit is exceeded, periodic indexing will fail. + Attributes: name: The resource name of the ProductSet. Format is: ``projects/PR @@ -2256,6 +2259,7 @@ "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """A ``ReferenceImage`` represents a product image and its associated metadata, such as bounding boxes. + Attributes: name: The resource name of the reference image. Format is: ``proje @@ -2286,6 +2290,7 @@ "DESCRIPTOR": _CREATEPRODUCTREQUEST, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``CreateProduct`` method. + Attributes: parent: Required. The project in which the Product should be created. @@ -2311,6 +2316,7 @@ "DESCRIPTOR": _LISTPRODUCTSREQUEST, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``ListProducts`` method. + Attributes: parent: Required. The project OR ProductSet from which Products should @@ -2334,6 +2340,7 @@ "DESCRIPTOR": _LISTPRODUCTSRESPONSE, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """Response message for the ``ListProducts`` method. + Attributes: products: List of products. @@ -2353,6 +2360,7 @@ "DESCRIPTOR": _GETPRODUCTREQUEST, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``GetProduct`` method. + Attributes: name: Required. Resource name of the Product to get. Format is: @@ -2370,6 +2378,7 @@ "DESCRIPTOR": _UPDATEPRODUCTREQUEST, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``UpdateProduct`` method. + Attributes: product: Required. The Product resource which replaces the one on the @@ -2392,6 +2401,7 @@ "DESCRIPTOR": _DELETEPRODUCTREQUEST, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``DeleteProduct`` method. + Attributes: name: Required. Resource name of product to delete. Format is: @@ -2409,6 +2419,7 @@ "DESCRIPTOR": _CREATEPRODUCTSETREQUEST, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``CreateProductSet`` method. + Attributes: parent: Required. The project in which the ProductSet should be @@ -2434,6 +2445,7 @@ "DESCRIPTOR": _LISTPRODUCTSETSREQUEST, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``ListProductSets`` method. + Attributes: parent: Required. The project from which ProductSets should be listed. @@ -2457,6 +2469,7 @@ "DESCRIPTOR": _LISTPRODUCTSETSRESPONSE, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """Response message for the ``ListProductSets`` method. + Attributes: product_sets: List of ProductSets. @@ -2476,6 +2489,7 @@ "DESCRIPTOR": _GETPRODUCTSETREQUEST, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``GetProductSet`` method. + Attributes: name: Required. Resource name of the ProductSet to get. Format is: @@ -2494,6 +2508,7 @@ "DESCRIPTOR": _UPDATEPRODUCTSETREQUEST, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``UpdateProductSet`` method. + Attributes: product_set: Required. The ProductSet resource which replaces the one on @@ -2516,6 +2531,7 @@ "DESCRIPTOR": _DELETEPRODUCTSETREQUEST, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``DeleteProductSet`` method. + Attributes: name: Required. Resource name of the ProductSet to delete. Format @@ -2534,6 +2550,7 @@ "DESCRIPTOR": _CREATEREFERENCEIMAGEREQUEST, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``CreateReferenceImage`` method. + Attributes: parent: Required. Resource name of the product in which to create the @@ -2561,6 +2578,7 @@ "DESCRIPTOR": _LISTREFERENCEIMAGESREQUEST, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``ListReferenceImages`` method. + Attributes: parent: Required. Resource name of the product containing the @@ -2587,6 +2605,7 @@ "DESCRIPTOR": _LISTREFERENCEIMAGESRESPONSE, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """Response message for the ``ListReferenceImages`` method. + Attributes: reference_images: The list of reference images. @@ -2609,6 +2628,7 @@ "DESCRIPTOR": _GETREFERENCEIMAGEREQUEST, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``GetReferenceImage`` method. + Attributes: name: Required. The resource name of the ReferenceImage to get. @@ -2627,6 +2647,7 @@ "DESCRIPTOR": _DELETEREFERENCEIMAGEREQUEST, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``DeleteReferenceImage`` method. + Attributes: name: Required. The resource name of the reference image to delete. @@ -2645,6 +2666,7 @@ "DESCRIPTOR": _ADDPRODUCTTOPRODUCTSETREQUEST, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``AddProductToProductSet`` method. + Attributes: name: Required. The resource name for the ProductSet to modify. @@ -2667,6 +2689,7 @@ "DESCRIPTOR": _REMOVEPRODUCTFROMPRODUCTSETREQUEST, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``RemoveProductFromProductSet`` method. + Attributes: name: Required. The resource name for the ProductSet to modify. @@ -2689,6 +2712,7 @@ "DESCRIPTOR": _LISTPRODUCTSINPRODUCTSETREQUEST, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``ListProductsInProductSet`` method. + Attributes: name: Required. The ProductSet resource for which to retrieve @@ -2713,6 +2737,7 @@ "DESCRIPTOR": _LISTPRODUCTSINPRODUCTSETRESPONSE, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """Response message for the ``ListProductsInProductSet`` method. + Attributes: products: The list of Products. @@ -2733,6 +2758,7 @@ "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """The Google Cloud Storage location for a csv file which preserves a list of ImportProductSetRequests in each line. + Attributes: csv_file_uri: The Google Cloud Storage URI of the input csv file. The URI @@ -2787,6 +2813,7 @@ "DESCRIPTOR": _IMPORTPRODUCTSETSINPUTCONFIG, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """The input content for the ``ImportProductSets`` method. + Attributes: source: The source of the input. @@ -2806,6 +2833,7 @@ "DESCRIPTOR": _IMPORTPRODUCTSETSREQUEST, "__module__": "google.cloud.vision_v1p3beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``ImportProductSets`` method. + Attributes: parent: Required. The project in which the ProductSets should be @@ -2829,6 +2857,7 @@ .longrunning.Operations.GetOperation] method in the returned [google.l ongrunning.Operation.response][google.longrunning.Operation.response] field. + Attributes: reference_images: The list of reference_images that are imported successfully. @@ -2854,6 +2883,7 @@ included in the ``metadata`` field of the ``Operation`` returned by the ``GetOperation`` call of the ``google::longrunning::Operations`` service. + Attributes: state: The current state of the batch operation. diff --git a/google/cloud/vision_v1p3beta1/proto/text_annotation_pb2.py b/google/cloud/vision_v1p3beta1/proto/text_annotation_pb2.py index 4d112d78..2c72763c 100644 --- a/google/cloud/vision_v1p3beta1/proto/text_annotation_pb2.py +++ b/google/cloud/vision_v1p3beta1/proto/text_annotation_pb2.py @@ -991,6 +991,7 @@ "DESCRIPTOR": _TEXTANNOTATION_DETECTEDLANGUAGE, "__module__": "google.cloud.vision_v1p3beta1.proto.text_annotation_pb2", "__doc__": """Detected language for a structural component. + Attributes: language_code: The BCP-47 language code, such as “en-US” or “sr-Latn”. For @@ -1009,6 +1010,7 @@ "DESCRIPTOR": _TEXTANNOTATION_DETECTEDBREAK, "__module__": "google.cloud.vision_v1p3beta1.proto.text_annotation_pb2", "__doc__": """Detected start or end of a structural component. + Attributes: type: Detected break type. @@ -1025,6 +1027,7 @@ "DESCRIPTOR": _TEXTANNOTATION_TEXTPROPERTY, "__module__": "google.cloud.vision_v1p3beta1.proto.text_annotation_pb2", "__doc__": """Additional information detected on the structural component. + Attributes: detected_languages: A list of detected languages together with confidence. @@ -1044,6 +1047,7 @@ Please refer to the [TextAnnotation.TextProperty][google.cloud.vision. v1p3beta1.TextAnnotation.TextProperty] message definition below for more detail. + Attributes: pages: List of pages detected by OCR. @@ -1065,6 +1069,7 @@ "DESCRIPTOR": _PAGE, "__module__": "google.cloud.vision_v1p3beta1.proto.text_annotation_pb2", "__doc__": """Detected page from OCR. + Attributes: property: Additional information detected on the page. @@ -1091,6 +1096,7 @@ "DESCRIPTOR": _BLOCK, "__module__": "google.cloud.vision_v1p3beta1.proto.text_annotation_pb2", "__doc__": """Logical element on the page. + Attributes: property: Additional information detected for the block. @@ -1126,6 +1132,7 @@ "__module__": "google.cloud.vision_v1p3beta1.proto.text_annotation_pb2", "__doc__": """Structural unit of text representing a number of words in certain order. + Attributes: property: Additional information detected for the paragraph. @@ -1156,6 +1163,7 @@ "DESCRIPTOR": _WORD, "__module__": "google.cloud.vision_v1p3beta1.proto.text_annotation_pb2", "__doc__": """A word representation. + Attributes: property: Additional information detected for the word. @@ -1187,6 +1195,7 @@ "DESCRIPTOR": _SYMBOL, "__module__": "google.cloud.vision_v1p3beta1.proto.text_annotation_pb2", "__doc__": """A single symbol representation. + Attributes: property: Additional information detected for the symbol. diff --git a/google/cloud/vision_v1p3beta1/proto/web_detection_pb2.py b/google/cloud/vision_v1p3beta1/proto/web_detection_pb2.py index df09ce33..5102ca6d 100644 --- a/google/cloud/vision_v1p3beta1/proto/web_detection_pb2.py +++ b/google/cloud/vision_v1p3beta1/proto/web_detection_pb2.py @@ -516,6 +516,7 @@ "DESCRIPTOR": _WEBDETECTION_WEBENTITY, "__module__": "google.cloud.vision_v1p3beta1.proto.web_detection_pb2", "__doc__": """Entity deduced from similar images on the Internet. + Attributes: entity_id: Opaque entity ID. @@ -535,6 +536,7 @@ "DESCRIPTOR": _WEBDETECTION_WEBIMAGE, "__module__": "google.cloud.vision_v1p3beta1.proto.web_detection_pb2", "__doc__": """Metadata for online images. + Attributes: url: The result image URL. @@ -551,6 +553,7 @@ "DESCRIPTOR": _WEBDETECTION_WEBPAGE, "__module__": "google.cloud.vision_v1p3beta1.proto.web_detection_pb2", "__doc__": """Metadata for web pages. + Attributes: url: The result web page URL. @@ -577,6 +580,7 @@ "DESCRIPTOR": _WEBDETECTION_WEBLABEL, "__module__": "google.cloud.vision_v1p3beta1.proto.web_detection_pb2", "__doc__": """Label to provide extra metadata for the web detection. + Attributes: label: Label for extra metadata. @@ -591,6 +595,7 @@ "DESCRIPTOR": _WEBDETECTION, "__module__": "google.cloud.vision_v1p3beta1.proto.web_detection_pb2", "__doc__": """Relevant information for the image from the Internet. + Attributes: web_entities: Deduced entities from similar images on the Internet. diff --git a/google/cloud/vision_v1p4beta1/proto/face_pb2.py b/google/cloud/vision_v1p4beta1/proto/face_pb2.py index 0198df38..cf3f8c55 100644 --- a/google/cloud/vision_v1p4beta1/proto/face_pb2.py +++ b/google/cloud/vision_v1p4beta1/proto/face_pb2.py @@ -224,6 +224,7 @@ "DESCRIPTOR": _FACERECOGNITIONPARAMS, "__module__": "google.cloud.vision_v1p4beta1.proto.face_pb2", "__doc__": """Parameters for a celebrity recognition request. + Attributes: celebrity_set: The resource names for one or more @@ -245,6 +246,7 @@ "DESCRIPTOR": _CELEBRITY, "__module__": "google.cloud.vision_v1p4beta1.proto.face_pb2", "__doc__": """A Celebrity is a group of Faces with an identity. + Attributes: name: The resource name of the preloaded Celebrity. Has the format @@ -266,6 +268,7 @@ "DESCRIPTOR": _FACERECOGNITIONRESULT, "__module__": "google.cloud.vision_v1p4beta1.proto.face_pb2", "__doc__": """Information about a face’s identity. + Attributes: celebrity: The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that diff --git a/google/cloud/vision_v1p4beta1/proto/geometry_pb2.py b/google/cloud/vision_v1p4beta1/proto/geometry_pb2.py index ab198689..ff36d4b1 100644 --- a/google/cloud/vision_v1p4beta1/proto/geometry_pb2.py +++ b/google/cloud/vision_v1p4beta1/proto/geometry_pb2.py @@ -299,6 +299,7 @@ "DESCRIPTOR": _VERTEX, "__module__": "google.cloud.vision_v1p4beta1.proto.geometry_pb2", "__doc__": """X coordinate. + Attributes: y: Y coordinate. @@ -315,6 +316,7 @@ "DESCRIPTOR": _NORMALIZEDVERTEX, "__module__": "google.cloud.vision_v1p4beta1.proto.geometry_pb2", "__doc__": """X coordinate. + Attributes: y: Y coordinate. @@ -331,6 +333,7 @@ "DESCRIPTOR": _BOUNDINGPOLY, "__module__": "google.cloud.vision_v1p4beta1.proto.geometry_pb2", "__doc__": """A bounding polygon for the detected image annotation. + Attributes: vertices: The bounding polygon vertices. @@ -351,6 +354,7 @@ "__doc__": """A 3D position in the image, used primarily for Face detection landmarks. A valid Position must have both x and y coordinates. The position coordinates are in the same scale as the original image. + Attributes: x: X coordinate. diff --git a/google/cloud/vision_v1p4beta1/proto/image_annotator_pb2.py b/google/cloud/vision_v1p4beta1/proto/image_annotator_pb2.py index be672d33..3fcb8e06 100644 --- a/google/cloud/vision_v1p4beta1/proto/image_annotator_pb2.py +++ b/google/cloud/vision_v1p4beta1/proto/image_annotator_pb2.py @@ -3959,6 +3959,7 @@ "__doc__": """The type of Google Cloud Vision API detection to perform, and the maximum number of results to return for that type. Multiple ``Feature`` objects can be specified in the ``features`` list. + Attributes: type: The feature type. @@ -3983,6 +3984,7 @@ "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """External image source (Google Cloud Storage or web URL image location). + Attributes: gcs_image_uri: \ **Use ``image_uri`` instead.** The Google Cloud Storage URI @@ -4018,6 +4020,7 @@ "DESCRIPTOR": _IMAGE, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """Client image to perform Google Cloud Vision API tasks over. + Attributes: content: Image content, represented as a stream of bytes. Note: As with @@ -4045,6 +4048,7 @@ "DESCRIPTOR": _FACEANNOTATION_LANDMARK, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """A face-specific landmark (for example, a face feature). + Attributes: type: Face landmark type. @@ -4057,6 +4061,7 @@ "DESCRIPTOR": _FACEANNOTATION, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """A face annotation object contains the results of face detection. + Attributes: bounding_poly: The bounding polygon around the face. The coordinates of the @@ -4127,6 +4132,7 @@ "DESCRIPTOR": _LOCATIONINFO, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """Detected entity location information. + Attributes: lat_lng: lat/long location coordinates. @@ -4143,6 +4149,7 @@ "DESCRIPTOR": _PROPERTY, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """A ``Property`` consists of a user-supplied name/value pair. + Attributes: name: Name of the property. @@ -4163,6 +4170,7 @@ "DESCRIPTOR": _ENTITYANNOTATION, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """Set of detected entity features. + Attributes: mid: Opaque entity ID. Some IDs may be available in `Google @@ -4216,6 +4224,7 @@ "DESCRIPTOR": _LOCALIZEDOBJECTANNOTATION, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """Set of detected objects with bounding boxes. + Attributes: mid: Object ID that should align with EntityAnnotation mid. @@ -4245,6 +4254,7 @@ "__doc__": """Set of features pertaining to the image, computed by computer vision methods over safe-search verticals (for example, adult, spoof, medical, violence). + Attributes: adult: Represents the adult content likelihood for the image. Adult @@ -4276,6 +4286,7 @@ "DESCRIPTOR": _LATLONGRECT, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """Rectangle determined by min and max ``LatLng`` pairs. + Attributes: min_lat_lng: Min lat/long pair. @@ -4295,6 +4306,7 @@ "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """Color information consists of RGB channels, score, and the fraction of the image that the color occupies in the image. + Attributes: color: RGB components of the color. @@ -4316,6 +4328,7 @@ "DESCRIPTOR": _DOMINANTCOLORSANNOTATION, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """Set of dominant colors and their corresponding scores. + Attributes: colors: RGB color values with their score and pixel fraction. @@ -4332,6 +4345,7 @@ "DESCRIPTOR": _IMAGEPROPERTIES, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """Stores image properties, such as dominant colors. + Attributes: dominant_colors: If present, dominant colors completed successfully. @@ -4349,6 +4363,7 @@ "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """Single crop hint that is used to generate a new crop when serving an image. + Attributes: bounding_poly: The bounding polygon for the crop region. The coordinates of @@ -4372,6 +4387,7 @@ "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """Set of crop hints that are used to generate new crops when serving images. + Attributes: crop_hints: Crop hint results. @@ -4388,6 +4404,7 @@ "DESCRIPTOR": _CROPHINTSPARAMS, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """Parameters for crop hints annotation request. + Attributes: aspect_ratios: Aspect ratios in floats, representing the ratio of the width @@ -4409,6 +4426,7 @@ "DESCRIPTOR": _WEBDETECTIONPARAMS, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """Parameters for web detection request. + Attributes: include_geo_results: Whether to include results derived from the geo information in @@ -4426,6 +4444,7 @@ "DESCRIPTOR": _IMAGECONTEXT, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """Image context and/or feature-specific parameters. + Attributes: lat_long_rect: Not used. @@ -4463,6 +4482,7 @@ "__doc__": """Request for performing Google Cloud Vision API tasks over a user- provided image, with user-requested features, and with context information. + Attributes: image: The image to be processed. @@ -4484,6 +4504,7 @@ "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """If an image was produced from a file (e.g. a PDF), this message gives information about the source of that image. + Attributes: uri: The URI of the file used to produce the image. @@ -4503,6 +4524,7 @@ "DESCRIPTOR": _ANNOTATEIMAGERESPONSE, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """Response to an image annotation request. + Attributes: face_annotations: If present, face detection has completed successfully. @@ -4553,6 +4575,7 @@ "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """Multiple image annotation requests are batched into a single service call. + Attributes: requests: Required. Individual image annotation requests for this batch. @@ -4569,6 +4592,7 @@ "DESCRIPTOR": _BATCHANNOTATEIMAGESRESPONSE, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """Response to a batch image annotation request. + Attributes: responses: Individual responses to image annotation requests within the @@ -4586,6 +4610,7 @@ "DESCRIPTOR": _ANNOTATEFILEREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """A request to annotate one single file, e.g. a PDF, TIFF or GIF file. + Attributes: input_config: Required. Information about the input file. @@ -4618,6 +4643,7 @@ "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """Response to a single file annotation request. A file may contain one or more images, which individually have their own responses. + Attributes: input_config: Information about the file for which this response is @@ -4643,6 +4669,7 @@ "DESCRIPTOR": _BATCHANNOTATEFILESREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """A list of requests to annotate files using the BatchAnnotateFiles API. + Attributes: requests: Required. The list of file annotation requests. Right now we @@ -4661,6 +4688,7 @@ "DESCRIPTOR": _BATCHANNOTATEFILESRESPONSE, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """A list of file annotation responses. + Attributes: responses: The list of file annotation responses, each response @@ -4679,6 +4707,7 @@ "DESCRIPTOR": _ASYNCANNOTATEFILEREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """An offline file annotation request. + Attributes: input_config: Required. Information about the input file. @@ -4703,6 +4732,7 @@ "DESCRIPTOR": _ASYNCANNOTATEFILERESPONSE, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """The response for a single offline file annotation request. + Attributes: output_config: The output location and metadata from @@ -4720,6 +4750,7 @@ "DESCRIPTOR": _ASYNCBATCHANNOTATEIMAGESREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """Request for async image annotation for a list of images. + Attributes: requests: Required. Individual image annotation requests for this batch. @@ -4739,6 +4770,7 @@ "DESCRIPTOR": _ASYNCBATCHANNOTATEIMAGESRESPONSE, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """Response to an async batch image annotation request. + Attributes: output_config: The output location and metadata from @@ -4757,6 +4789,7 @@ "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """Multiple async file annotation requests are batched into a single service call. + Attributes: requests: Required. Individual async file annotation requests for this @@ -4774,6 +4807,7 @@ "DESCRIPTOR": _ASYNCBATCHANNOTATEFILESRESPONSE, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """Response to an async batch file annotation request. + Attributes: responses: The list of file annotation responses, one for each request in @@ -4791,6 +4825,7 @@ "DESCRIPTOR": _INPUTCONFIG, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """The desired input location and metadata. + Attributes: gcs_source: The Google Cloud Storage location to read the input from. @@ -4818,6 +4853,7 @@ "DESCRIPTOR": _OUTPUTCONFIG, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """The desired output location and metadata. + Attributes: gcs_destination: The Google Cloud Storage location to write the output(s) to. @@ -4844,6 +4880,7 @@ "DESCRIPTOR": _GCSSOURCE, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """The Google Cloud Storage location where the input will be read from. + Attributes: uri: Google Cloud Storage URI for the input file. This must only be @@ -4862,6 +4899,7 @@ "DESCRIPTOR": _GCSDESTINATION, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """The Google Cloud Storage location where the output will be written to. + Attributes: uri: Google Cloud Storage URI prefix where the results will be @@ -4896,6 +4934,7 @@ "DESCRIPTOR": _OPERATIONMETADATA, "__module__": "google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", "__doc__": """Contains metadata for the BatchAnnotateImages operation. + Attributes: state: Current state of the batch operation. diff --git a/google/cloud/vision_v1p4beta1/proto/product_search_pb2.py b/google/cloud/vision_v1p4beta1/proto/product_search_pb2.py index 099526e8..85ccee96 100644 --- a/google/cloud/vision_v1p4beta1/proto/product_search_pb2.py +++ b/google/cloud/vision_v1p4beta1/proto/product_search_pb2.py @@ -517,6 +517,7 @@ "DESCRIPTOR": _PRODUCTSEARCHPARAMS, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_pb2", "__doc__": """Parameters for a product search request. + Attributes: bounding_poly: The bounding polygon around the area of interest in the image. @@ -562,6 +563,7 @@ "DESCRIPTOR": _PRODUCTSEARCHRESULTS_RESULT, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_pb2", "__doc__": """Information about a product. + Attributes: product: The Product. @@ -582,6 +584,7 @@ "DESCRIPTOR": _PRODUCTSEARCHRESULTS_OBJECTANNOTATION, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_pb2", "__doc__": """Prediction for what the object in the bounding box is. + Attributes: mid: Object ID that should align with EntityAnnotation mid. @@ -605,6 +608,7 @@ "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_pb2", "__doc__": """Information about the products similar to a single product in a query image. + Attributes: bounding_poly: The bounding polygon around the product detected in the query @@ -621,6 +625,7 @@ "DESCRIPTOR": _PRODUCTSEARCHRESULTS, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_pb2", "__doc__": """Results for a product search request. + Attributes: index_time: Timestamp of the index which provided these results. Products diff --git a/google/cloud/vision_v1p4beta1/proto/product_search_service_pb2.py b/google/cloud/vision_v1p4beta1/proto/product_search_service_pb2.py index 04c6e38b..7d6fd513 100644 --- a/google/cloud/vision_v1p4beta1/proto/product_search_service_pb2.py +++ b/google/cloud/vision_v1p4beta1/proto/product_search_service_pb2.py @@ -2335,6 +2335,7 @@ "DESCRIPTOR": _PRODUCT_KEYVALUE, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """A product label represented as a key-value pair. + Attributes: key: The key of the label attached to the product. Cannot be empty @@ -2349,6 +2350,7 @@ "DESCRIPTOR": _PRODUCT, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """A Product contains ReferenceImages. + Attributes: name: The resource name of the product. Format is: @@ -2393,6 +2395,7 @@ "__doc__": """A ProductSet contains Products. A ProductSet can contain a maximum of 1 million reference images. If the limit is exceeded, periodic indexing will fail. + Attributes: name: The resource name of the ProductSet. Format is: ``projects/PR @@ -2425,6 +2428,7 @@ "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """A ``ReferenceImage`` represents a product image and its associated metadata, such as bounding boxes. + Attributes: name: The resource name of the reference image. Format is: ``proje @@ -2455,6 +2459,7 @@ "DESCRIPTOR": _CREATEPRODUCTREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``CreateProduct`` method. + Attributes: parent: Required. The project in which the Product should be created. @@ -2480,6 +2485,7 @@ "DESCRIPTOR": _LISTPRODUCTSREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``ListProducts`` method. + Attributes: parent: Required. The project OR ProductSet from which Products should @@ -2503,6 +2509,7 @@ "DESCRIPTOR": _LISTPRODUCTSRESPONSE, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """Response message for the ``ListProducts`` method. + Attributes: products: List of products. @@ -2522,6 +2529,7 @@ "DESCRIPTOR": _GETPRODUCTREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``GetProduct`` method. + Attributes: name: Required. Resource name of the Product to get. Format is: @@ -2539,6 +2547,7 @@ "DESCRIPTOR": _UPDATEPRODUCTREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``UpdateProduct`` method. + Attributes: product: Required. The Product resource which replaces the one on the @@ -2561,6 +2570,7 @@ "DESCRIPTOR": _DELETEPRODUCTREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``DeleteProduct`` method. + Attributes: name: Required. Resource name of product to delete. Format is: @@ -2578,6 +2588,7 @@ "DESCRIPTOR": _CREATEPRODUCTSETREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``CreateProductSet`` method. + Attributes: parent: Required. The project in which the ProductSet should be @@ -2603,6 +2614,7 @@ "DESCRIPTOR": _LISTPRODUCTSETSREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``ListProductSets`` method. + Attributes: parent: Required. The project from which ProductSets should be listed. @@ -2626,6 +2638,7 @@ "DESCRIPTOR": _LISTPRODUCTSETSRESPONSE, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """Response message for the ``ListProductSets`` method. + Attributes: product_sets: List of ProductSets. @@ -2645,6 +2658,7 @@ "DESCRIPTOR": _GETPRODUCTSETREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``GetProductSet`` method. + Attributes: name: Required. Resource name of the ProductSet to get. Format is: @@ -2663,6 +2677,7 @@ "DESCRIPTOR": _UPDATEPRODUCTSETREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``UpdateProductSet`` method. + Attributes: product_set: Required. The ProductSet resource which replaces the one on @@ -2685,6 +2700,7 @@ "DESCRIPTOR": _DELETEPRODUCTSETREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``DeleteProductSet`` method. + Attributes: name: Required. Resource name of the ProductSet to delete. Format @@ -2703,6 +2719,7 @@ "DESCRIPTOR": _CREATEREFERENCEIMAGEREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``CreateReferenceImage`` method. + Attributes: parent: Required. Resource name of the product in which to create the @@ -2730,6 +2747,7 @@ "DESCRIPTOR": _LISTREFERENCEIMAGESREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``ListReferenceImages`` method. + Attributes: parent: Required. Resource name of the product containing the @@ -2756,6 +2774,7 @@ "DESCRIPTOR": _LISTREFERENCEIMAGESRESPONSE, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """Response message for the ``ListReferenceImages`` method. + Attributes: reference_images: The list of reference images. @@ -2778,6 +2797,7 @@ "DESCRIPTOR": _GETREFERENCEIMAGEREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``GetReferenceImage`` method. + Attributes: name: Required. The resource name of the ReferenceImage to get. @@ -2796,6 +2816,7 @@ "DESCRIPTOR": _DELETEREFERENCEIMAGEREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``DeleteReferenceImage`` method. + Attributes: name: Required. The resource name of the reference image to delete. @@ -2814,6 +2835,7 @@ "DESCRIPTOR": _ADDPRODUCTTOPRODUCTSETREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``AddProductToProductSet`` method. + Attributes: name: Required. The resource name for the ProductSet to modify. @@ -2836,6 +2858,7 @@ "DESCRIPTOR": _REMOVEPRODUCTFROMPRODUCTSETREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``RemoveProductFromProductSet`` method. + Attributes: name: Required. The resource name for the ProductSet to modify. @@ -2858,6 +2881,7 @@ "DESCRIPTOR": _LISTPRODUCTSINPRODUCTSETREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``ListProductsInProductSet`` method. + Attributes: name: Required. The ProductSet resource for which to retrieve @@ -2882,6 +2906,7 @@ "DESCRIPTOR": _LISTPRODUCTSINPRODUCTSETRESPONSE, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """Response message for the ``ListProductsInProductSet`` method. + Attributes: products: The list of Products. @@ -2902,6 +2927,7 @@ "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """The Google Cloud Storage location for a csv file which preserves a list of ImportProductSetRequests in each line. + Attributes: csv_file_uri: The Google Cloud Storage URI of the input csv file. The URI @@ -2961,6 +2987,7 @@ "DESCRIPTOR": _IMPORTPRODUCTSETSINPUTCONFIG, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """The input content for the ``ImportProductSets`` method. + Attributes: source: The source of the input. @@ -2980,6 +3007,7 @@ "DESCRIPTOR": _IMPORTPRODUCTSETSREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``ImportProductSets`` method. + Attributes: parent: Required. The project in which the ProductSets should be @@ -3003,6 +3031,7 @@ .longrunning.Operations.GetOperation] method in the returned [google.l ongrunning.Operation.response][google.longrunning.Operation.response] field. + Attributes: reference_images: The list of reference_images that are imported successfully. @@ -3028,6 +3057,7 @@ included in the ``metadata`` field of the ``Operation`` returned by the ``GetOperation`` call of the ``google::longrunning::Operations`` service. + Attributes: state: The current state of the batch operation. @@ -3051,6 +3081,7 @@ "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """Config to control which ProductSet contains the Products to be deleted. + Attributes: product_set_id: The ProductSet that contains the Products to delete. If a @@ -3069,6 +3100,7 @@ "DESCRIPTOR": _PURGEPRODUCTSREQUEST, "__module__": "google.cloud.vision_v1p4beta1.proto.product_search_service_pb2", "__doc__": """Request message for the ``PurgeProducts`` method. + Attributes: target: The Products to delete. diff --git a/google/cloud/vision_v1p4beta1/proto/text_annotation_pb2.py b/google/cloud/vision_v1p4beta1/proto/text_annotation_pb2.py index f90dbb6a..208c5081 100644 --- a/google/cloud/vision_v1p4beta1/proto/text_annotation_pb2.py +++ b/google/cloud/vision_v1p4beta1/proto/text_annotation_pb2.py @@ -991,6 +991,7 @@ "DESCRIPTOR": _TEXTANNOTATION_DETECTEDLANGUAGE, "__module__": "google.cloud.vision_v1p4beta1.proto.text_annotation_pb2", "__doc__": """Detected language for a structural component. + Attributes: language_code: The BCP-47 language code, such as “en-US” or “sr-Latn”. For @@ -1009,6 +1010,7 @@ "DESCRIPTOR": _TEXTANNOTATION_DETECTEDBREAK, "__module__": "google.cloud.vision_v1p4beta1.proto.text_annotation_pb2", "__doc__": """Detected start or end of a structural component. + Attributes: type: Detected break type. @@ -1025,6 +1027,7 @@ "DESCRIPTOR": _TEXTANNOTATION_TEXTPROPERTY, "__module__": "google.cloud.vision_v1p4beta1.proto.text_annotation_pb2", "__doc__": """Additional information detected on the structural component. + Attributes: detected_languages: A list of detected languages together with confidence. @@ -1044,6 +1047,7 @@ Please refer to the [TextAnnotation.TextProperty][google.cloud.vision. v1p4beta1.TextAnnotation.TextProperty] message definition below for more detail. + Attributes: pages: List of pages detected by OCR. @@ -1065,6 +1069,7 @@ "DESCRIPTOR": _PAGE, "__module__": "google.cloud.vision_v1p4beta1.proto.text_annotation_pb2", "__doc__": """Detected page from OCR. + Attributes: property: Additional information detected on the page. @@ -1091,6 +1096,7 @@ "DESCRIPTOR": _BLOCK, "__module__": "google.cloud.vision_v1p4beta1.proto.text_annotation_pb2", "__doc__": """Logical element on the page. + Attributes: property: Additional information detected for the block. @@ -1126,6 +1132,7 @@ "__module__": "google.cloud.vision_v1p4beta1.proto.text_annotation_pb2", "__doc__": """Structural unit of text representing a number of words in certain order. + Attributes: property: Additional information detected for the paragraph. @@ -1156,6 +1163,7 @@ "DESCRIPTOR": _WORD, "__module__": "google.cloud.vision_v1p4beta1.proto.text_annotation_pb2", "__doc__": """A word representation. + Attributes: property: Additional information detected for the word. @@ -1187,6 +1195,7 @@ "DESCRIPTOR": _SYMBOL, "__module__": "google.cloud.vision_v1p4beta1.proto.text_annotation_pb2", "__doc__": """A single symbol representation. + Attributes: property: Additional information detected for the symbol. diff --git a/google/cloud/vision_v1p4beta1/proto/web_detection_pb2.py b/google/cloud/vision_v1p4beta1/proto/web_detection_pb2.py index 52432710..dbaa6432 100644 --- a/google/cloud/vision_v1p4beta1/proto/web_detection_pb2.py +++ b/google/cloud/vision_v1p4beta1/proto/web_detection_pb2.py @@ -516,6 +516,7 @@ "DESCRIPTOR": _WEBDETECTION_WEBENTITY, "__module__": "google.cloud.vision_v1p4beta1.proto.web_detection_pb2", "__doc__": """Entity deduced from similar images on the Internet. + Attributes: entity_id: Opaque entity ID. @@ -535,6 +536,7 @@ "DESCRIPTOR": _WEBDETECTION_WEBIMAGE, "__module__": "google.cloud.vision_v1p4beta1.proto.web_detection_pb2", "__doc__": """Metadata for online images. + Attributes: url: The result image URL. @@ -551,6 +553,7 @@ "DESCRIPTOR": _WEBDETECTION_WEBPAGE, "__module__": "google.cloud.vision_v1p4beta1.proto.web_detection_pb2", "__doc__": """Metadata for web pages. + Attributes: url: The result web page URL. @@ -577,6 +580,7 @@ "DESCRIPTOR": _WEBDETECTION_WEBLABEL, "__module__": "google.cloud.vision_v1p4beta1.proto.web_detection_pb2", "__doc__": """Label to provide extra metadata for the web detection. + Attributes: label: Label for extra metadata. @@ -591,6 +595,7 @@ "DESCRIPTOR": _WEBDETECTION, "__module__": "google.cloud.vision_v1p4beta1.proto.web_detection_pb2", "__doc__": """Relevant information for the image from the Internet. + Attributes: web_entities: Deduced entities from similar images on the Internet. diff --git a/synth.metadata b/synth.metadata index 460cac6d..17c002de 100644 --- a/synth.metadata +++ b/synth.metadata @@ -11,15 +11,15 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "3a4894c4f0da3e763aca2c67bd280ae915177450", - "internalRef": "314363155" + "sha": "184661793fbe3b89f2b485c303e7466cef9d21a1", + "internalRef": "316182409" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "cb3c683e958a4b5c016bb3734436fc1cb887eb7b" + "sha": "a0ee80e0492a03b9b2bfefb5cca7eaf17bf10438" } } ], From e4fce4c114915473026ebf508fbe56ce9994034b Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Wed, 24 Jun 2020 18:31:42 -0700 Subject: [PATCH 15/25] fix: migrate vision/v1p3beta1 to grpc_service_config PiperOrigin-RevId: 317107948 Source-Author: Google APIs Source-Date: Thu Jun 18 08:33:19 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: 316e611ba9cc62244e3cb3854b0d36feea304409 Source-Link: https://github.com/googleapis/googleapis/commit/316e611ba9cc62244e3cb3854b0d36feea304409 --- .../gapic/image_annotator_client_config.py | 43 +- .../gapic/product_search_client.py | 464 +++++++++--------- .../gapic/product_search_client_config.py | 149 +++--- .../product_search_grpc_transport.py | 128 ++--- synth.metadata | 6 +- .../test_product_search_client_v1p3beta1.py | 198 ++++---- 6 files changed, 513 insertions(+), 475 deletions(-) diff --git a/google/cloud/vision_v1p3beta1/gapic/image_annotator_client_config.py b/google/cloud/vision_v1p3beta1/gapic/image_annotator_client_config.py index 41adece1..4032c73b 100644 --- a/google/cloud/vision_v1p3beta1/gapic/image_annotator_client_config.py +++ b/google/cloud/vision_v1p3beta1/gapic/image_annotator_client_config.py @@ -2,30 +2,49 @@ "interfaces": { "google.cloud.vision.v1p3beta1.ImageAnnotator": { "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [], + "retry_policy_1_codes": [], + "retry_policy_4_codes": ["UNAVAILABLE", "DEADLINE_EXCEEDED"], + "no_retry_codes": [], }, "retry_params": { - "default": { + "retry_policy_1_params": { "initial_retry_delay_millis": 100, "retry_delay_multiplier": 1.3, "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 60000, + "initial_rpc_timeout_millis": 600000, "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, + "max_rpc_timeout_millis": 600000, "total_timeout_millis": 600000, - } + }, + "retry_policy_4_params": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 600000, + "total_timeout_millis": 600000, + }, + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0, + }, }, "methods": { "BatchAnnotateImages": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_4_codes", + "retry_params_name": "retry_policy_4_params", }, "AsyncBatchAnnotateFiles": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params", }, }, } diff --git a/google/cloud/vision_v1p3beta1/gapic/product_search_client.py b/google/cloud/vision_v1p3beta1/gapic/product_search_client.py index b8b20db1..8ccf9796 100644 --- a/google/cloud/vision_v1p3beta1/gapic/product_search_client.py +++ b/google/cloud/vision_v1p3beta1/gapic/product_search_client.py @@ -244,238 +244,6 @@ def __init__( self._inner_api_calls = {} # Service calls - def delete_product_set( - self, - name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None, - ): - """ - Permanently deletes a ProductSet. All Products and ReferenceImages - in the ProductSet will be deleted. - - The actual image files are not deleted from Google Cloud Storage. - - Possible errors: - - - Returns NOT_FOUND if the ProductSet does not exist. - - Example: - >>> from google.cloud import vision_v1p3beta1 - >>> - >>> client = vision_v1p3beta1.ProductSearchClient() - >>> - >>> name = client.product_set_path('[PROJECT]', '[LOCATION]', '[PRODUCT_SET]') - >>> - >>> client.delete_product_set(name) - - Args: - name (str): Required. Resource name of the ProductSet to delete. - - Format is: - ``projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`` - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will - be retried using a default configuration. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if "delete_product_set" not in self._inner_api_calls: - self._inner_api_calls[ - "delete_product_set" - ] = google.api_core.gapic_v1.method.wrap_method( - self.transport.delete_product_set, - default_retry=self._method_configs["DeleteProductSet"].retry, - default_timeout=self._method_configs["DeleteProductSet"].timeout, - client_info=self._client_info, - ) - - request = product_search_service_pb2.DeleteProductSetRequest(name=name) - if metadata is None: - metadata = [] - metadata = list(metadata) - try: - routing_header = [("name", name)] - except AttributeError: - pass - else: - routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( - routing_header - ) - metadata.append(routing_metadata) - - self._inner_api_calls["delete_product_set"]( - request, retry=retry, timeout=timeout, metadata=metadata - ) - - def delete_product( - self, - name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None, - ): - """ - Permanently deletes a product and its reference images. - - Metadata of the product and all its images will be deleted right away, - but search queries against ProductSets containing the product may still - work until all related caches are refreshed. - - Possible errors: - - - Returns NOT_FOUND if the product does not exist. - - Example: - >>> from google.cloud import vision_v1p3beta1 - >>> - >>> client = vision_v1p3beta1.ProductSearchClient() - >>> - >>> name = client.product_path('[PROJECT]', '[LOCATION]', '[PRODUCT]') - >>> - >>> client.delete_product(name) - - Args: - name (str): Required. Resource name of product to delete. - - Format is: ``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`` - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will - be retried using a default configuration. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if "delete_product" not in self._inner_api_calls: - self._inner_api_calls[ - "delete_product" - ] = google.api_core.gapic_v1.method.wrap_method( - self.transport.delete_product, - default_retry=self._method_configs["DeleteProduct"].retry, - default_timeout=self._method_configs["DeleteProduct"].timeout, - client_info=self._client_info, - ) - - request = product_search_service_pb2.DeleteProductRequest(name=name) - if metadata is None: - metadata = [] - metadata = list(metadata) - try: - routing_header = [("name", name)] - except AttributeError: - pass - else: - routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( - routing_header - ) - metadata.append(routing_metadata) - - self._inner_api_calls["delete_product"]( - request, retry=retry, timeout=timeout, metadata=metadata - ) - - def delete_reference_image( - self, - name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None, - ): - """ - Permanently deletes a reference image. - - The image metadata will be deleted right away, but search queries - against ProductSets containing the image may still work until all - related caches are refreshed. - - The actual image files are not deleted from Google Cloud Storage. - - Possible errors: - - - Returns NOT_FOUND if the reference image does not exist. - - Example: - >>> from google.cloud import vision_v1p3beta1 - >>> - >>> client = vision_v1p3beta1.ProductSearchClient() - >>> - >>> name = client.reference_image_path('[PROJECT]', '[LOCATION]', '[PRODUCT]', '[REFERENCE_IMAGE]') - >>> - >>> client.delete_reference_image(name) - - Args: - name (str): Required. The resource name of the reference image to delete. - - Format is: - - ``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`` - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will - be retried using a default configuration. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if "delete_reference_image" not in self._inner_api_calls: - self._inner_api_calls[ - "delete_reference_image" - ] = google.api_core.gapic_v1.method.wrap_method( - self.transport.delete_reference_image, - default_retry=self._method_configs["DeleteReferenceImage"].retry, - default_timeout=self._method_configs["DeleteReferenceImage"].timeout, - client_info=self._client_info, - ) - - request = product_search_service_pb2.DeleteReferenceImageRequest(name=name) - if metadata is None: - metadata = [] - metadata = list(metadata) - try: - routing_header = [("name", name)] - except AttributeError: - pass - else: - routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( - routing_header - ) - metadata.append(routing_metadata) - - self._inner_api_calls["delete_reference_image"]( - request, retry=retry, timeout=timeout, metadata=metadata - ) - def import_product_sets( self, parent, @@ -948,6 +716,82 @@ def update_product_set( request, retry=retry, timeout=timeout, metadata=metadata ) + def delete_product_set( + self, + name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): + """ + Permanently deletes a ProductSet. All Products and ReferenceImages + in the ProductSet will be deleted. + + The actual image files are not deleted from Google Cloud Storage. + + Possible errors: + + - Returns NOT_FOUND if the ProductSet does not exist. + + Example: + >>> from google.cloud import vision_v1p3beta1 + >>> + >>> client = vision_v1p3beta1.ProductSearchClient() + >>> + >>> name = client.product_set_path('[PROJECT]', '[LOCATION]', '[PRODUCT_SET]') + >>> + >>> client.delete_product_set(name) + + Args: + name (str): Required. Resource name of the ProductSet to delete. + + Format is: + ``projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`` + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will + be retried using a default configuration. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if "delete_product_set" not in self._inner_api_calls: + self._inner_api_calls[ + "delete_product_set" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.delete_product_set, + default_retry=self._method_configs["DeleteProductSet"].retry, + default_timeout=self._method_configs["DeleteProductSet"].timeout, + client_info=self._client_info, + ) + + request = product_search_service_pb2.DeleteProductSetRequest(name=name) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [("name", name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( + routing_header + ) + metadata.append(routing_metadata) + + self._inner_api_calls["delete_product_set"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + def create_product( self, parent, @@ -1326,6 +1170,82 @@ def update_product( request, retry=retry, timeout=timeout, metadata=metadata ) + def delete_product( + self, + name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): + """ + Permanently deletes a product and its reference images. + + Metadata of the product and all its images will be deleted right away, + but search queries against ProductSets containing the product may still + work until all related caches are refreshed. + + Possible errors: + + - Returns NOT_FOUND if the product does not exist. + + Example: + >>> from google.cloud import vision_v1p3beta1 + >>> + >>> client = vision_v1p3beta1.ProductSearchClient() + >>> + >>> name = client.product_path('[PROJECT]', '[LOCATION]', '[PRODUCT]') + >>> + >>> client.delete_product(name) + + Args: + name (str): Required. Resource name of product to delete. + + Format is: ``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`` + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will + be retried using a default configuration. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if "delete_product" not in self._inner_api_calls: + self._inner_api_calls[ + "delete_product" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.delete_product, + default_retry=self._method_configs["DeleteProduct"].retry, + default_timeout=self._method_configs["DeleteProduct"].timeout, + client_info=self._client_info, + ) + + request = product_search_service_pb2.DeleteProductRequest(name=name) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [("name", name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( + routing_header + ) + metadata.append(routing_metadata) + + self._inner_api_calls["delete_product"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + def create_reference_image( self, parent, @@ -1436,6 +1356,86 @@ def create_reference_image( request, retry=retry, timeout=timeout, metadata=metadata ) + def delete_reference_image( + self, + name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): + """ + Permanently deletes a reference image. + + The image metadata will be deleted right away, but search queries + against ProductSets containing the image may still work until all + related caches are refreshed. + + The actual image files are not deleted from Google Cloud Storage. + + Possible errors: + + - Returns NOT_FOUND if the reference image does not exist. + + Example: + >>> from google.cloud import vision_v1p3beta1 + >>> + >>> client = vision_v1p3beta1.ProductSearchClient() + >>> + >>> name = client.reference_image_path('[PROJECT]', '[LOCATION]', '[PRODUCT]', '[REFERENCE_IMAGE]') + >>> + >>> client.delete_reference_image(name) + + Args: + name (str): Required. The resource name of the reference image to delete. + + Format is: + + ``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`` + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will + be retried using a default configuration. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if "delete_reference_image" not in self._inner_api_calls: + self._inner_api_calls[ + "delete_reference_image" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.delete_reference_image, + default_retry=self._method_configs["DeleteReferenceImage"].retry, + default_timeout=self._method_configs["DeleteReferenceImage"].timeout, + client_info=self._client_info, + ) + + request = product_search_service_pb2.DeleteReferenceImageRequest(name=name) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [("name", name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( + routing_header + ) + metadata.append(routing_metadata) + + self._inner_api_calls["delete_reference_image"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + def list_reference_images( self, parent, diff --git a/google/cloud/vision_v1p3beta1/gapic/product_search_client_config.py b/google/cloud/vision_v1p3beta1/gapic/product_search_client_config.py index a4e2f32c..6a2241a5 100644 --- a/google/cloud/vision_v1p3beta1/gapic/product_search_client_config.py +++ b/google/cloud/vision_v1p3beta1/gapic/product_search_client_config.py @@ -2,110 +2,129 @@ "interfaces": { "google.cloud.vision.v1p3beta1.ProductSearch": { "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [], + "no_retry_codes": [], + "retry_policy_3_codes": ["UNAVAILABLE", "DEADLINE_EXCEEDED"], + "retry_policy_2_codes": [], }, "retry_params": { - "default": { + "retry_policy_3_params": { "initial_retry_delay_millis": 100, "retry_delay_multiplier": 1.3, "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 20000, + "initial_rpc_timeout_millis": 600000, "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 20000, + "max_rpc_timeout_millis": 600000, "total_timeout_millis": 600000, - } - }, - "methods": { - "DeleteProductSet": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", }, - "DeleteProduct": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "retry_policy_2_params": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 600000, + "total_timeout_millis": 600000, }, - "DeleteReferenceImage": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0, }, + }, + "methods": { "ImportProductSets": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_2_codes", + "retry_params_name": "retry_policy_2_params", }, "CreateProductSet": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_2_codes", + "retry_params_name": "retry_policy_2_params", }, "ListProductSets": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params", }, "GetProductSet": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params", }, "UpdateProductSet": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_2_codes", + "retry_params_name": "retry_policy_2_params", + }, + "DeleteProductSet": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params", }, "CreateProduct": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_2_codes", + "retry_params_name": "retry_policy_2_params", }, "ListProducts": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params", }, "GetProduct": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params", }, "UpdateProduct": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_2_codes", + "retry_params_name": "retry_policy_2_params", + }, + "DeleteProduct": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params", }, "CreateReferenceImage": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_2_codes", + "retry_params_name": "retry_policy_2_params", + }, + "DeleteReferenceImage": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params", }, "ListReferenceImages": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params", }, "GetReferenceImage": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params", }, "AddProductToProductSet": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_2_codes", + "retry_params_name": "retry_policy_2_params", }, "RemoveProductFromProductSet": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_2_codes", + "retry_params_name": "retry_policy_2_params", }, "ListProductsInProductSet": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params", }, }, } diff --git a/google/cloud/vision_v1p3beta1/gapic/transports/product_search_grpc_transport.py b/google/cloud/vision_v1p3beta1/gapic/transports/product_search_grpc_transport.py index c73f6320..7227f1bb 100644 --- a/google/cloud/vision_v1p3beta1/gapic/transports/product_search_grpc_transport.py +++ b/google/cloud/vision_v1p3beta1/gapic/transports/product_search_grpc_transport.py @@ -120,70 +120,6 @@ def channel(self): """ return self._channel - @property - def delete_product_set(self): - """Return the gRPC stub for :meth:`ProductSearchClient.delete_product_set`. - - Permanently deletes a ProductSet. All Products and ReferenceImages - in the ProductSet will be deleted. - - The actual image files are not deleted from Google Cloud Storage. - - Possible errors: - - - Returns NOT_FOUND if the ProductSet does not exist. - - Returns: - Callable: A callable which accepts the appropriate - deserialized request object and returns a - deserialized response object. - """ - return self._stubs["product_search_stub"].DeleteProductSet - - @property - def delete_product(self): - """Return the gRPC stub for :meth:`ProductSearchClient.delete_product`. - - Permanently deletes a product and its reference images. - - Metadata of the product and all its images will be deleted right away, - but search queries against ProductSets containing the product may still - work until all related caches are refreshed. - - Possible errors: - - - Returns NOT_FOUND if the product does not exist. - - Returns: - Callable: A callable which accepts the appropriate - deserialized request object and returns a - deserialized response object. - """ - return self._stubs["product_search_stub"].DeleteProduct - - @property - def delete_reference_image(self): - """Return the gRPC stub for :meth:`ProductSearchClient.delete_reference_image`. - - Permanently deletes a reference image. - - The image metadata will be deleted right away, but search queries - against ProductSets containing the image may still work until all - related caches are refreshed. - - The actual image files are not deleted from Google Cloud Storage. - - Possible errors: - - - Returns NOT_FOUND if the reference image does not exist. - - Returns: - Callable: A callable which accepts the appropriate - deserialized request object and returns a - deserialized response object. - """ - return self._stubs["product_search_stub"].DeleteReferenceImage - @property def import_product_sets(self): """Return the gRPC stub for :meth:`ProductSearchClient.import_product_sets`. @@ -280,6 +216,26 @@ def update_product_set(self): """ return self._stubs["product_search_stub"].UpdateProductSet + @property + def delete_product_set(self): + """Return the gRPC stub for :meth:`ProductSearchClient.delete_product_set`. + + Permanently deletes a ProductSet. All Products and ReferenceImages + in the ProductSet will be deleted. + + The actual image files are not deleted from Google Cloud Storage. + + Possible errors: + + - Returns NOT_FOUND if the ProductSet does not exist. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs["product_search_stub"].DeleteProductSet + @property def create_product(self): """Return the gRPC stub for :meth:`ProductSearchClient.create_product`. @@ -363,6 +319,27 @@ def update_product(self): """ return self._stubs["product_search_stub"].UpdateProduct + @property + def delete_product(self): + """Return the gRPC stub for :meth:`ProductSearchClient.delete_product`. + + Permanently deletes a product and its reference images. + + Metadata of the product and all its images will be deleted right away, + but search queries against ProductSets containing the product may still + work until all related caches are refreshed. + + Possible errors: + + - Returns NOT_FOUND if the product does not exist. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs["product_search_stub"].DeleteProduct + @property def create_reference_image(self): """Return the gRPC stub for :meth:`ProductSearchClient.create_reference_image`. @@ -396,6 +373,29 @@ def create_reference_image(self): """ return self._stubs["product_search_stub"].CreateReferenceImage + @property + def delete_reference_image(self): + """Return the gRPC stub for :meth:`ProductSearchClient.delete_reference_image`. + + Permanently deletes a reference image. + + The image metadata will be deleted right away, but search queries + against ProductSets containing the image may still work until all + related caches are refreshed. + + The actual image files are not deleted from Google Cloud Storage. + + Possible errors: + + - Returns NOT_FOUND if the reference image does not exist. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs["product_search_stub"].DeleteReferenceImage + @property def list_reference_images(self): """Return the gRPC stub for :meth:`ProductSearchClient.list_reference_images`. diff --git a/synth.metadata b/synth.metadata index 17c002de..a276524c 100644 --- a/synth.metadata +++ b/synth.metadata @@ -11,15 +11,15 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "184661793fbe3b89f2b485c303e7466cef9d21a1", - "internalRef": "316182409" + "sha": "316e611ba9cc62244e3cb3854b0d36feea304409", + "internalRef": "317107948" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "a0ee80e0492a03b9b2bfefb5cca7eaf17bf10438" + "sha": "b10590a4a1568548dd13cfcea9aa11d40898144b" } } ], diff --git a/tests/unit/gapic/v1p3beta1/test_product_search_client_v1p3beta1.py b/tests/unit/gapic/v1p3beta1/test_product_search_client_v1p3beta1.py index d2f5a7bb..1a38fc75 100644 --- a/tests/unit/gapic/v1p3beta1/test_product_search_client_v1p3beta1.py +++ b/tests/unit/gapic/v1p3beta1/test_product_search_client_v1p3beta1.py @@ -64,105 +64,6 @@ class CustomException(Exception): class TestProductSearchClient(object): - def test_delete_product_set(self): - channel = ChannelStub() - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = vision_v1p3beta1.ProductSearchClient() - - # Setup Request - name = client.product_set_path("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]") - - client.delete_product_set(name) - - assert len(channel.requests) == 1 - expected_request = product_search_service_pb2.DeleteProductSetRequest(name=name) - actual_request = channel.requests[0][1] - assert expected_request == actual_request - - def test_delete_product_set_exception(self): - # Mock the API response - channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = vision_v1p3beta1.ProductSearchClient() - - # Setup request - name = client.product_set_path("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]") - - with pytest.raises(CustomException): - client.delete_product_set(name) - - def test_delete_product(self): - channel = ChannelStub() - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = vision_v1p3beta1.ProductSearchClient() - - # Setup Request - name = client.product_path("[PROJECT]", "[LOCATION]", "[PRODUCT]") - - client.delete_product(name) - - assert len(channel.requests) == 1 - expected_request = product_search_service_pb2.DeleteProductRequest(name=name) - actual_request = channel.requests[0][1] - assert expected_request == actual_request - - def test_delete_product_exception(self): - # Mock the API response - channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = vision_v1p3beta1.ProductSearchClient() - - # Setup request - name = client.product_path("[PROJECT]", "[LOCATION]", "[PRODUCT]") - - with pytest.raises(CustomException): - client.delete_product(name) - - def test_delete_reference_image(self): - channel = ChannelStub() - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = vision_v1p3beta1.ProductSearchClient() - - # Setup Request - name = client.reference_image_path( - "[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]" - ) - - client.delete_reference_image(name) - - assert len(channel.requests) == 1 - expected_request = product_search_service_pb2.DeleteReferenceImageRequest( - name=name - ) - actual_request = channel.requests[0][1] - assert expected_request == actual_request - - def test_delete_reference_image_exception(self): - # Mock the API response - channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = vision_v1p3beta1.ProductSearchClient() - - # Setup request - name = client.reference_image_path( - "[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]" - ) - - with pytest.raises(CustomException): - client.delete_reference_image(name) - def test_import_product_sets(self): # Setup Expected Response expected_response = {} @@ -392,6 +293,37 @@ def test_update_product_set_exception(self): with pytest.raises(CustomException): client.update_product_set(product_set) + def test_delete_product_set(self): + channel = ChannelStub() + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = vision_v1p3beta1.ProductSearchClient() + + # Setup Request + name = client.product_set_path("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]") + + client.delete_product_set(name) + + assert len(channel.requests) == 1 + expected_request = product_search_service_pb2.DeleteProductSetRequest(name=name) + actual_request = channel.requests[0][1] + assert expected_request == actual_request + + def test_delete_product_set_exception(self): + # Mock the API response + channel = ChannelStub(responses=[CustomException()]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = vision_v1p3beta1.ProductSearchClient() + + # Setup request + name = client.product_set_path("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]") + + with pytest.raises(CustomException): + client.delete_product_set(name) + def test_create_product(self): # Setup Expected Response name = "name3373707" @@ -581,6 +513,37 @@ def test_update_product_exception(self): with pytest.raises(CustomException): client.update_product(product) + def test_delete_product(self): + channel = ChannelStub() + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = vision_v1p3beta1.ProductSearchClient() + + # Setup Request + name = client.product_path("[PROJECT]", "[LOCATION]", "[PRODUCT]") + + client.delete_product(name) + + assert len(channel.requests) == 1 + expected_request = product_search_service_pb2.DeleteProductRequest(name=name) + actual_request = channel.requests[0][1] + assert expected_request == actual_request + + def test_delete_product_exception(self): + # Mock the API response + channel = ChannelStub(responses=[CustomException()]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = vision_v1p3beta1.ProductSearchClient() + + # Setup request + name = client.product_path("[PROJECT]", "[LOCATION]", "[PRODUCT]") + + with pytest.raises(CustomException): + client.delete_product(name) + def test_create_reference_image(self): # Setup Expected Response name = "name3373707" @@ -626,6 +589,43 @@ def test_create_reference_image_exception(self): with pytest.raises(CustomException): client.create_reference_image(parent, reference_image) + def test_delete_reference_image(self): + channel = ChannelStub() + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = vision_v1p3beta1.ProductSearchClient() + + # Setup Request + name = client.reference_image_path( + "[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]" + ) + + client.delete_reference_image(name) + + assert len(channel.requests) == 1 + expected_request = product_search_service_pb2.DeleteReferenceImageRequest( + name=name + ) + actual_request = channel.requests[0][1] + assert expected_request == actual_request + + def test_delete_reference_image_exception(self): + # Mock the API response + channel = ChannelStub(responses=[CustomException()]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = vision_v1p3beta1.ProductSearchClient() + + # Setup request + name = client.reference_image_path( + "[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]" + ) + + with pytest.raises(CustomException): + client.delete_reference_image(name) + def test_list_reference_images(self): # Setup Expected Response page_size = 883849137 From 6d6131afee79ed1c324de9ec39c7d1bd3d3c1332 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Wed, 24 Jun 2020 18:32:17 -0700 Subject: [PATCH 16/25] fix: migrate vision/v1p4beta1 to grpc_service_config PiperOrigin-RevId: 317108263 Source-Author: Google APIs Source-Date: Thu Jun 18 08:35:00 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: 2ec6c6276f8cd7ec7363e505a88c78075c2b4898 Source-Link: https://github.com/googleapis/googleapis/commit/2ec6c6276f8cd7ec7363e505a88c78075c2b4898 --- .../gapic/image_annotator_client.py | 224 ++++----- .../gapic/image_annotator_client_config.py | 54 ++- .../gapic/product_search_client.py | 440 +++++++++--------- .../gapic/product_search_client_config.py | 153 +++--- .../image_annotator_grpc_transport.py | 64 +-- .../product_search_grpc_transport.py | 104 ++--- synth.metadata | 4 +- .../test_image_annotator_client_v1p4beta1.py | 148 +++--- .../test_product_search_client_v1p4beta1.py | 198 ++++---- 9 files changed, 707 insertions(+), 682 deletions(-) diff --git a/google/cloud/vision_v1p4beta1/gapic/image_annotator_client.py b/google/cloud/vision_v1p4beta1/gapic/image_annotator_client.py index 851152ae..56544de9 100644 --- a/google/cloud/vision_v1p4beta1/gapic/image_annotator_client.py +++ b/google/cloud/vision_v1p4beta1/gapic/image_annotator_client.py @@ -193,15 +193,26 @@ def __init__( self._inner_api_calls = {} # Service calls - def batch_annotate_images( + def async_batch_annotate_images( self, requests, + output_config, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None, ): """ - Run image detection and annotation for a batch of images. + Run asynchronous image detection and annotation for a list of + images. + + Progress and results can be retrieved through the + ``google.longrunning.Operations`` interface. ``Operation.metadata`` + contains ``OperationMetadata`` (metadata). ``Operation.response`` + contains ``AsyncBatchAnnotateImagesResponse`` (results). + + This service will write image annotation outputs to json files in + customer GCS bucket, each json file containing + BatchAnnotateImagesResponse proto. Example: >>> from google.cloud import vision_v1p4beta1 @@ -211,13 +222,29 @@ def batch_annotate_images( >>> # TODO: Initialize `requests`: >>> requests = [] >>> - >>> response = client.batch_annotate_images(requests) + >>> # TODO: Initialize `output_config`: + >>> output_config = {} + >>> + >>> response = client.async_batch_annotate_images(requests, output_config) + >>> + >>> def callback(operation_future): + ... # Handle result. + ... result = operation_future.result() + >>> + >>> response.add_done_callback(callback) + >>> + >>> # Handle metadata. + >>> metadata = response.metadata() Args: requests (list[Union[dict, ~google.cloud.vision_v1p4beta1.types.AnnotateImageRequest]]): Required. Individual image annotation requests for this batch. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.vision_v1p4beta1.types.AnnotateImageRequest` + output_config (Union[dict, ~google.cloud.vision_v1p4beta1.types.OutputConfig]): Required. The desired output location and metadata (e.g. format). + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.cloud.vision_v1p4beta1.types.OutputConfig` retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -228,7 +255,7 @@ def batch_annotate_images( that is provided to the method. Returns: - A :class:`~google.cloud.vision_v1p4beta1.types.BatchAnnotateImagesResponse` instance. + A :class:`~google.cloud.vision_v1p4beta1.types._OperationFuture` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -238,22 +265,32 @@ def batch_annotate_images( ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if "batch_annotate_images" not in self._inner_api_calls: + if "async_batch_annotate_images" not in self._inner_api_calls: self._inner_api_calls[ - "batch_annotate_images" + "async_batch_annotate_images" ] = google.api_core.gapic_v1.method.wrap_method( - self.transport.batch_annotate_images, - default_retry=self._method_configs["BatchAnnotateImages"].retry, - default_timeout=self._method_configs["BatchAnnotateImages"].timeout, + self.transport.async_batch_annotate_images, + default_retry=self._method_configs["AsyncBatchAnnotateImages"].retry, + default_timeout=self._method_configs[ + "AsyncBatchAnnotateImages" + ].timeout, client_info=self._client_info, ) - request = image_annotator_pb2.BatchAnnotateImagesRequest(requests=requests) - return self._inner_api_calls["batch_annotate_images"]( + request = image_annotator_pb2.AsyncBatchAnnotateImagesRequest( + requests=requests, output_config=output_config + ) + operation = self._inner_api_calls["async_batch_annotate_images"]( request, retry=retry, timeout=timeout, metadata=metadata ) + return google.api_core.operation.from_gapic( + operation, + self.transport._operations_client, + image_annotator_pb2.AsyncBatchAnnotateImagesResponse, + metadata_type=image_annotator_pb2.OperationMetadata, + ) - def batch_annotate_files( + def async_batch_annotate_files( self, requests, retry=google.api_core.gapic_v1.method.DEFAULT, @@ -261,13 +298,12 @@ def batch_annotate_files( metadata=None, ): """ - Service that performs image detection and annotation for a batch of files. - Now only "application/pdf", "image/tiff" and "image/gif" are supported. - - This service will extract at most 5 (customers can specify which 5 in - AnnotateFileRequest.pages) frames (gif) or pages (pdf or tiff) from each - file provided and perform detection and annotation for each image - extracted. + Run asynchronous image detection and annotation for a list of + generic files, such as PDF files, which may contain multiple pages and + multiple images per page. Progress and results can be retrieved through + the ``google.longrunning.Operations`` interface. ``Operation.metadata`` + contains ``OperationMetadata`` (metadata). ``Operation.response`` + contains ``AsyncBatchAnnotateFilesResponse`` (results). Example: >>> from google.cloud import vision_v1p4beta1 @@ -277,14 +313,22 @@ def batch_annotate_files( >>> # TODO: Initialize `requests`: >>> requests = [] >>> - >>> response = client.batch_annotate_files(requests) + >>> response = client.async_batch_annotate_files(requests) + >>> + >>> def callback(operation_future): + ... # Handle result. + ... result = operation_future.result() + >>> + >>> response.add_done_callback(callback) + >>> + >>> # Handle metadata. + >>> metadata = response.metadata() Args: - requests (list[Union[dict, ~google.cloud.vision_v1p4beta1.types.AnnotateFileRequest]]): Required. The list of file annotation requests. Right now we support only - one AnnotateFileRequest in BatchAnnotateFilesRequest. + requests (list[Union[dict, ~google.cloud.vision_v1p4beta1.types.AsyncAnnotateFileRequest]]): Required. Individual async file annotation requests for this batch. If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.cloud.vision_v1p4beta1.types.AnnotateFileRequest` + message :class:`~google.cloud.vision_v1p4beta1.types.AsyncAnnotateFileRequest` retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -295,7 +339,7 @@ def batch_annotate_files( that is provided to the method. Returns: - A :class:`~google.cloud.vision_v1p4beta1.types.BatchAnnotateFilesResponse` instance. + A :class:`~google.cloud.vision_v1p4beta1.types._OperationFuture` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -305,41 +349,36 @@ def batch_annotate_files( ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if "batch_annotate_files" not in self._inner_api_calls: + if "async_batch_annotate_files" not in self._inner_api_calls: self._inner_api_calls[ - "batch_annotate_files" + "async_batch_annotate_files" ] = google.api_core.gapic_v1.method.wrap_method( - self.transport.batch_annotate_files, - default_retry=self._method_configs["BatchAnnotateFiles"].retry, - default_timeout=self._method_configs["BatchAnnotateFiles"].timeout, + self.transport.async_batch_annotate_files, + default_retry=self._method_configs["AsyncBatchAnnotateFiles"].retry, + default_timeout=self._method_configs["AsyncBatchAnnotateFiles"].timeout, client_info=self._client_info, ) - request = image_annotator_pb2.BatchAnnotateFilesRequest(requests=requests) - return self._inner_api_calls["batch_annotate_files"]( + request = image_annotator_pb2.AsyncBatchAnnotateFilesRequest(requests=requests) + operation = self._inner_api_calls["async_batch_annotate_files"]( request, retry=retry, timeout=timeout, metadata=metadata ) + return google.api_core.operation.from_gapic( + operation, + self.transport._operations_client, + image_annotator_pb2.AsyncBatchAnnotateFilesResponse, + metadata_type=image_annotator_pb2.OperationMetadata, + ) - def async_batch_annotate_images( + def batch_annotate_images( self, requests, - output_config, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None, ): """ - Run asynchronous image detection and annotation for a list of - images. - - Progress and results can be retrieved through the - ``google.longrunning.Operations`` interface. ``Operation.metadata`` - contains ``OperationMetadata`` (metadata). ``Operation.response`` - contains ``AsyncBatchAnnotateImagesResponse`` (results). - - This service will write image annotation outputs to json files in - customer GCS bucket, each json file containing - BatchAnnotateImagesResponse proto. + Run image detection and annotation for a batch of images. Example: >>> from google.cloud import vision_v1p4beta1 @@ -349,29 +388,13 @@ def async_batch_annotate_images( >>> # TODO: Initialize `requests`: >>> requests = [] >>> - >>> # TODO: Initialize `output_config`: - >>> output_config = {} - >>> - >>> response = client.async_batch_annotate_images(requests, output_config) - >>> - >>> def callback(operation_future): - ... # Handle result. - ... result = operation_future.result() - >>> - >>> response.add_done_callback(callback) - >>> - >>> # Handle metadata. - >>> metadata = response.metadata() + >>> response = client.batch_annotate_images(requests) Args: requests (list[Union[dict, ~google.cloud.vision_v1p4beta1.types.AnnotateImageRequest]]): Required. Individual image annotation requests for this batch. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.vision_v1p4beta1.types.AnnotateImageRequest` - output_config (Union[dict, ~google.cloud.vision_v1p4beta1.types.OutputConfig]): Required. The desired output location and metadata (e.g. format). - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.cloud.vision_v1p4beta1.types.OutputConfig` retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -382,7 +405,7 @@ def async_batch_annotate_images( that is provided to the method. Returns: - A :class:`~google.cloud.vision_v1p4beta1.types._OperationFuture` instance. + A :class:`~google.cloud.vision_v1p4beta1.types.BatchAnnotateImagesResponse` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -392,32 +415,22 @@ def async_batch_annotate_images( ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if "async_batch_annotate_images" not in self._inner_api_calls: + if "batch_annotate_images" not in self._inner_api_calls: self._inner_api_calls[ - "async_batch_annotate_images" + "batch_annotate_images" ] = google.api_core.gapic_v1.method.wrap_method( - self.transport.async_batch_annotate_images, - default_retry=self._method_configs["AsyncBatchAnnotateImages"].retry, - default_timeout=self._method_configs[ - "AsyncBatchAnnotateImages" - ].timeout, + self.transport.batch_annotate_images, + default_retry=self._method_configs["BatchAnnotateImages"].retry, + default_timeout=self._method_configs["BatchAnnotateImages"].timeout, client_info=self._client_info, ) - request = image_annotator_pb2.AsyncBatchAnnotateImagesRequest( - requests=requests, output_config=output_config - ) - operation = self._inner_api_calls["async_batch_annotate_images"]( + request = image_annotator_pb2.BatchAnnotateImagesRequest(requests=requests) + return self._inner_api_calls["batch_annotate_images"]( request, retry=retry, timeout=timeout, metadata=metadata ) - return google.api_core.operation.from_gapic( - operation, - self.transport._operations_client, - image_annotator_pb2.AsyncBatchAnnotateImagesResponse, - metadata_type=image_annotator_pb2.OperationMetadata, - ) - def async_batch_annotate_files( + def batch_annotate_files( self, requests, retry=google.api_core.gapic_v1.method.DEFAULT, @@ -425,12 +438,13 @@ def async_batch_annotate_files( metadata=None, ): """ - Run asynchronous image detection and annotation for a list of - generic files, such as PDF files, which may contain multiple pages and - multiple images per page. Progress and results can be retrieved through - the ``google.longrunning.Operations`` interface. ``Operation.metadata`` - contains ``OperationMetadata`` (metadata). ``Operation.response`` - contains ``AsyncBatchAnnotateFilesResponse`` (results). + Service that performs image detection and annotation for a batch of files. + Now only "application/pdf", "image/tiff" and "image/gif" are supported. + + This service will extract at most 5 (customers can specify which 5 in + AnnotateFileRequest.pages) frames (gif) or pages (pdf or tiff) from each + file provided and perform detection and annotation for each image + extracted. Example: >>> from google.cloud import vision_v1p4beta1 @@ -440,22 +454,14 @@ def async_batch_annotate_files( >>> # TODO: Initialize `requests`: >>> requests = [] >>> - >>> response = client.async_batch_annotate_files(requests) - >>> - >>> def callback(operation_future): - ... # Handle result. - ... result = operation_future.result() - >>> - >>> response.add_done_callback(callback) - >>> - >>> # Handle metadata. - >>> metadata = response.metadata() + >>> response = client.batch_annotate_files(requests) Args: - requests (list[Union[dict, ~google.cloud.vision_v1p4beta1.types.AsyncAnnotateFileRequest]]): Required. Individual async file annotation requests for this batch. + requests (list[Union[dict, ~google.cloud.vision_v1p4beta1.types.AnnotateFileRequest]]): Required. The list of file annotation requests. Right now we support only + one AnnotateFileRequest in BatchAnnotateFilesRequest. If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.cloud.vision_v1p4beta1.types.AsyncAnnotateFileRequest` + message :class:`~google.cloud.vision_v1p4beta1.types.AnnotateFileRequest` retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -466,7 +472,7 @@ def async_batch_annotate_files( that is provided to the method. Returns: - A :class:`~google.cloud.vision_v1p4beta1.types._OperationFuture` instance. + A :class:`~google.cloud.vision_v1p4beta1.types.BatchAnnotateFilesResponse` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -476,23 +482,17 @@ def async_batch_annotate_files( ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if "async_batch_annotate_files" not in self._inner_api_calls: + if "batch_annotate_files" not in self._inner_api_calls: self._inner_api_calls[ - "async_batch_annotate_files" + "batch_annotate_files" ] = google.api_core.gapic_v1.method.wrap_method( - self.transport.async_batch_annotate_files, - default_retry=self._method_configs["AsyncBatchAnnotateFiles"].retry, - default_timeout=self._method_configs["AsyncBatchAnnotateFiles"].timeout, + self.transport.batch_annotate_files, + default_retry=self._method_configs["BatchAnnotateFiles"].retry, + default_timeout=self._method_configs["BatchAnnotateFiles"].timeout, client_info=self._client_info, ) - request = image_annotator_pb2.AsyncBatchAnnotateFilesRequest(requests=requests) - operation = self._inner_api_calls["async_batch_annotate_files"]( + request = image_annotator_pb2.BatchAnnotateFilesRequest(requests=requests) + return self._inner_api_calls["batch_annotate_files"]( request, retry=retry, timeout=timeout, metadata=metadata ) - return google.api_core.operation.from_gapic( - operation, - self.transport._operations_client, - image_annotator_pb2.AsyncBatchAnnotateFilesResponse, - metadata_type=image_annotator_pb2.OperationMetadata, - ) diff --git a/google/cloud/vision_v1p4beta1/gapic/image_annotator_client_config.py b/google/cloud/vision_v1p4beta1/gapic/image_annotator_client_config.py index 18493e80..279577e8 100644 --- a/google/cloud/vision_v1p4beta1/gapic/image_annotator_client_config.py +++ b/google/cloud/vision_v1p4beta1/gapic/image_annotator_client_config.py @@ -1,41 +1,47 @@ config = { "interfaces": { "google.cloud.vision.v1p4beta1.ImageAnnotator": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [], - }, + "retry_codes": {"retry_policy_1_codes": [], "no_retry_codes": []}, "retry_params": { - "default": { + "retry_policy_1_params": { "initial_retry_delay_millis": 100, "retry_delay_multiplier": 1.3, "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 60000, + "initial_rpc_timeout_millis": 600000, "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, + "max_rpc_timeout_millis": 600000, "total_timeout_millis": 600000, - } - }, - "methods": { - "BatchAnnotateImages": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", }, - "BatchAnnotateFiles": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0, }, + }, + "methods": { "AsyncBatchAnnotateImages": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params", }, "AsyncBatchAnnotateFiles": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params", + }, + "BatchAnnotateImages": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params", + }, + "BatchAnnotateFiles": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params", }, }, } diff --git a/google/cloud/vision_v1p4beta1/gapic/product_search_client.py b/google/cloud/vision_v1p4beta1/gapic/product_search_client.py index 4af60631..616f5216 100644 --- a/google/cloud/vision_v1p4beta1/gapic/product_search_client.py +++ b/google/cloud/vision_v1p4beta1/gapic/product_search_client.py @@ -245,226 +245,6 @@ def __init__( self._inner_api_calls = {} # Service calls - def delete_product_set( - self, - name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None, - ): - """ - Permanently deletes a ProductSet. Products and ReferenceImages in the - ProductSet are not deleted. - - The actual image files are not deleted from Google Cloud Storage. - - Example: - >>> from google.cloud import vision_v1p4beta1 - >>> - >>> client = vision_v1p4beta1.ProductSearchClient() - >>> - >>> name = client.product_set_path('[PROJECT]', '[LOCATION]', '[PRODUCT_SET]') - >>> - >>> client.delete_product_set(name) - - Args: - name (str): Required. Resource name of the ProductSet to delete. - - Format is: - ``projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`` - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will - be retried using a default configuration. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if "delete_product_set" not in self._inner_api_calls: - self._inner_api_calls[ - "delete_product_set" - ] = google.api_core.gapic_v1.method.wrap_method( - self.transport.delete_product_set, - default_retry=self._method_configs["DeleteProductSet"].retry, - default_timeout=self._method_configs["DeleteProductSet"].timeout, - client_info=self._client_info, - ) - - request = product_search_service_pb2.DeleteProductSetRequest(name=name) - if metadata is None: - metadata = [] - metadata = list(metadata) - try: - routing_header = [("name", name)] - except AttributeError: - pass - else: - routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( - routing_header - ) - metadata.append(routing_metadata) - - self._inner_api_calls["delete_product_set"]( - request, retry=retry, timeout=timeout, metadata=metadata - ) - - def delete_product( - self, - name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None, - ): - """ - Permanently deletes a product and its reference images. - - Metadata of the product and all its images will be deleted right away, but - search queries against ProductSets containing the product may still work - until all related caches are refreshed. - - Example: - >>> from google.cloud import vision_v1p4beta1 - >>> - >>> client = vision_v1p4beta1.ProductSearchClient() - >>> - >>> name = client.product_path('[PROJECT]', '[LOCATION]', '[PRODUCT]') - >>> - >>> client.delete_product(name) - - Args: - name (str): Required. Resource name of product to delete. - - Format is: ``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`` - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will - be retried using a default configuration. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if "delete_product" not in self._inner_api_calls: - self._inner_api_calls[ - "delete_product" - ] = google.api_core.gapic_v1.method.wrap_method( - self.transport.delete_product, - default_retry=self._method_configs["DeleteProduct"].retry, - default_timeout=self._method_configs["DeleteProduct"].timeout, - client_info=self._client_info, - ) - - request = product_search_service_pb2.DeleteProductRequest(name=name) - if metadata is None: - metadata = [] - metadata = list(metadata) - try: - routing_header = [("name", name)] - except AttributeError: - pass - else: - routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( - routing_header - ) - metadata.append(routing_metadata) - - self._inner_api_calls["delete_product"]( - request, retry=retry, timeout=timeout, metadata=metadata - ) - - def delete_reference_image( - self, - name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None, - ): - """ - Permanently deletes a reference image. - - The image metadata will be deleted right away, but search queries - against ProductSets containing the image may still work until all related - caches are refreshed. - - The actual image files are not deleted from Google Cloud Storage. - - Example: - >>> from google.cloud import vision_v1p4beta1 - >>> - >>> client = vision_v1p4beta1.ProductSearchClient() - >>> - >>> name = client.reference_image_path('[PROJECT]', '[LOCATION]', '[PRODUCT]', '[REFERENCE_IMAGE]') - >>> - >>> client.delete_reference_image(name) - - Args: - name (str): Required. The resource name of the reference image to delete. - - Format is: - - ``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`` - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will - be retried using a default configuration. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if "delete_reference_image" not in self._inner_api_calls: - self._inner_api_calls[ - "delete_reference_image" - ] = google.api_core.gapic_v1.method.wrap_method( - self.transport.delete_reference_image, - default_retry=self._method_configs["DeleteReferenceImage"].retry, - default_timeout=self._method_configs["DeleteReferenceImage"].timeout, - client_info=self._client_info, - ) - - request = product_search_service_pb2.DeleteReferenceImageRequest(name=name) - if metadata is None: - metadata = [] - metadata = list(metadata) - try: - routing_header = [("name", name)] - except AttributeError: - pass - else: - routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( - routing_header - ) - metadata.append(routing_metadata) - - self._inner_api_calls["delete_reference_image"]( - request, retry=retry, timeout=timeout, metadata=metadata - ) - def import_product_sets( self, parent, @@ -937,6 +717,78 @@ def update_product_set( request, retry=retry, timeout=timeout, metadata=metadata ) + def delete_product_set( + self, + name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): + """ + Permanently deletes a ProductSet. Products and ReferenceImages in the + ProductSet are not deleted. + + The actual image files are not deleted from Google Cloud Storage. + + Example: + >>> from google.cloud import vision_v1p4beta1 + >>> + >>> client = vision_v1p4beta1.ProductSearchClient() + >>> + >>> name = client.product_set_path('[PROJECT]', '[LOCATION]', '[PRODUCT_SET]') + >>> + >>> client.delete_product_set(name) + + Args: + name (str): Required. Resource name of the ProductSet to delete. + + Format is: + ``projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`` + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will + be retried using a default configuration. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if "delete_product_set" not in self._inner_api_calls: + self._inner_api_calls[ + "delete_product_set" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.delete_product_set, + default_retry=self._method_configs["DeleteProductSet"].retry, + default_timeout=self._method_configs["DeleteProductSet"].timeout, + client_info=self._client_info, + ) + + request = product_search_service_pb2.DeleteProductSetRequest(name=name) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [("name", name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( + routing_header + ) + metadata.append(routing_metadata) + + self._inner_api_calls["delete_product_set"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + def create_product( self, parent, @@ -1315,6 +1167,78 @@ def update_product( request, retry=retry, timeout=timeout, metadata=metadata ) + def delete_product( + self, + name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): + """ + Permanently deletes a product and its reference images. + + Metadata of the product and all its images will be deleted right away, but + search queries against ProductSets containing the product may still work + until all related caches are refreshed. + + Example: + >>> from google.cloud import vision_v1p4beta1 + >>> + >>> client = vision_v1p4beta1.ProductSearchClient() + >>> + >>> name = client.product_path('[PROJECT]', '[LOCATION]', '[PRODUCT]') + >>> + >>> client.delete_product(name) + + Args: + name (str): Required. Resource name of product to delete. + + Format is: ``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`` + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will + be retried using a default configuration. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if "delete_product" not in self._inner_api_calls: + self._inner_api_calls[ + "delete_product" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.delete_product, + default_retry=self._method_configs["DeleteProduct"].retry, + default_timeout=self._method_configs["DeleteProduct"].timeout, + client_info=self._client_info, + ) + + request = product_search_service_pb2.DeleteProductRequest(name=name) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [("name", name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( + routing_header + ) + metadata.append(routing_metadata) + + self._inner_api_calls["delete_product"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + def create_reference_image( self, parent, @@ -1425,6 +1349,82 @@ def create_reference_image( request, retry=retry, timeout=timeout, metadata=metadata ) + def delete_reference_image( + self, + name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): + """ + Permanently deletes a reference image. + + The image metadata will be deleted right away, but search queries + against ProductSets containing the image may still work until all related + caches are refreshed. + + The actual image files are not deleted from Google Cloud Storage. + + Example: + >>> from google.cloud import vision_v1p4beta1 + >>> + >>> client = vision_v1p4beta1.ProductSearchClient() + >>> + >>> name = client.reference_image_path('[PROJECT]', '[LOCATION]', '[PRODUCT]', '[REFERENCE_IMAGE]') + >>> + >>> client.delete_reference_image(name) + + Args: + name (str): Required. The resource name of the reference image to delete. + + Format is: + + ``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`` + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will + be retried using a default configuration. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if "delete_reference_image" not in self._inner_api_calls: + self._inner_api_calls[ + "delete_reference_image" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.delete_reference_image, + default_retry=self._method_configs["DeleteReferenceImage"].retry, + default_timeout=self._method_configs["DeleteReferenceImage"].timeout, + client_info=self._client_info, + ) + + request = product_search_service_pb2.DeleteReferenceImageRequest(name=name) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [("name", name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( + routing_header + ) + metadata.append(routing_metadata) + + self._inner_api_calls["delete_reference_image"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + def list_reference_images( self, parent, diff --git a/google/cloud/vision_v1p4beta1/gapic/product_search_client_config.py b/google/cloud/vision_v1p4beta1/gapic/product_search_client_config.py index 82d1973a..a94442e6 100644 --- a/google/cloud/vision_v1p4beta1/gapic/product_search_client_config.py +++ b/google/cloud/vision_v1p4beta1/gapic/product_search_client_config.py @@ -2,115 +2,134 @@ "interfaces": { "google.cloud.vision.v1p4beta1.ProductSearch": { "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [], + "no_retry_codes": [], + "retry_policy_3_codes": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "retry_policy_2_codes": [], }, "retry_params": { - "default": { + "retry_policy_3_params": { "initial_retry_delay_millis": 100, "retry_delay_multiplier": 1.3, "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 20000, + "initial_rpc_timeout_millis": 600000, "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 20000, + "max_rpc_timeout_millis": 600000, "total_timeout_millis": 600000, - } - }, - "methods": { - "DeleteProductSet": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", }, - "DeleteProduct": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "retry_policy_2_params": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 600000, + "total_timeout_millis": 600000, }, - "DeleteReferenceImage": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0, }, + }, + "methods": { "ImportProductSets": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_2_codes", + "retry_params_name": "retry_policy_2_params", }, "CreateProductSet": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_2_codes", + "retry_params_name": "retry_policy_2_params", }, "ListProductSets": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params", }, "GetProductSet": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params", }, "UpdateProductSet": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_2_codes", + "retry_params_name": "retry_policy_2_params", + }, + "DeleteProductSet": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params", }, "CreateProduct": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_2_codes", + "retry_params_name": "retry_policy_2_params", }, "ListProducts": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params", }, "GetProduct": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params", }, "UpdateProduct": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_2_codes", + "retry_params_name": "retry_policy_2_params", + }, + "DeleteProduct": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params", }, "CreateReferenceImage": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_2_codes", + "retry_params_name": "retry_policy_2_params", + }, + "DeleteReferenceImage": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params", }, "ListReferenceImages": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params", }, "GetReferenceImage": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params", }, "AddProductToProductSet": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_2_codes", + "retry_params_name": "retry_policy_2_params", }, "RemoveProductFromProductSet": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_2_codes", + "retry_params_name": "retry_policy_2_params", }, "ListProductsInProductSet": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params", }, "PurgeProducts": { "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params", }, }, } diff --git a/google/cloud/vision_v1p4beta1/gapic/transports/image_annotator_grpc_transport.py b/google/cloud/vision_v1p4beta1/gapic/transports/image_annotator_grpc_transport.py index c6ef4d24..6fc8d8a4 100644 --- a/google/cloud/vision_v1p4beta1/gapic/transports/image_annotator_grpc_transport.py +++ b/google/cloud/vision_v1p4beta1/gapic/transports/image_annotator_grpc_transport.py @@ -118,38 +118,6 @@ def channel(self): """ return self._channel - @property - def batch_annotate_images(self): - """Return the gRPC stub for :meth:`ImageAnnotatorClient.batch_annotate_images`. - - Run image detection and annotation for a batch of images. - - Returns: - Callable: A callable which accepts the appropriate - deserialized request object and returns a - deserialized response object. - """ - return self._stubs["image_annotator_stub"].BatchAnnotateImages - - @property - def batch_annotate_files(self): - """Return the gRPC stub for :meth:`ImageAnnotatorClient.batch_annotate_files`. - - Service that performs image detection and annotation for a batch of files. - Now only "application/pdf", "image/tiff" and "image/gif" are supported. - - This service will extract at most 5 (customers can specify which 5 in - AnnotateFileRequest.pages) frames (gif) or pages (pdf or tiff) from each - file provided and perform detection and annotation for each image - extracted. - - Returns: - Callable: A callable which accepts the appropriate - deserialized request object and returns a - deserialized response object. - """ - return self._stubs["image_annotator_stub"].BatchAnnotateFiles - @property def async_batch_annotate_images(self): """Return the gRPC stub for :meth:`ImageAnnotatorClient.async_batch_annotate_images`. @@ -190,3 +158,35 @@ def async_batch_annotate_files(self): deserialized response object. """ return self._stubs["image_annotator_stub"].AsyncBatchAnnotateFiles + + @property + def batch_annotate_images(self): + """Return the gRPC stub for :meth:`ImageAnnotatorClient.batch_annotate_images`. + + Run image detection and annotation for a batch of images. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs["image_annotator_stub"].BatchAnnotateImages + + @property + def batch_annotate_files(self): + """Return the gRPC stub for :meth:`ImageAnnotatorClient.batch_annotate_files`. + + Service that performs image detection and annotation for a batch of files. + Now only "application/pdf", "image/tiff" and "image/gif" are supported. + + This service will extract at most 5 (customers can specify which 5 in + AnnotateFileRequest.pages) frames (gif) or pages (pdf or tiff) from each + file provided and perform detection and annotation for each image + extracted. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs["image_annotator_stub"].BatchAnnotateFiles diff --git a/google/cloud/vision_v1p4beta1/gapic/transports/product_search_grpc_transport.py b/google/cloud/vision_v1p4beta1/gapic/transports/product_search_grpc_transport.py index 850ff842..1b7580ff 100644 --- a/google/cloud/vision_v1p4beta1/gapic/transports/product_search_grpc_transport.py +++ b/google/cloud/vision_v1p4beta1/gapic/transports/product_search_grpc_transport.py @@ -120,58 +120,6 @@ def channel(self): """ return self._channel - @property - def delete_product_set(self): - """Return the gRPC stub for :meth:`ProductSearchClient.delete_product_set`. - - Permanently deletes a ProductSet. Products and ReferenceImages in the - ProductSet are not deleted. - - The actual image files are not deleted from Google Cloud Storage. - - Returns: - Callable: A callable which accepts the appropriate - deserialized request object and returns a - deserialized response object. - """ - return self._stubs["product_search_stub"].DeleteProductSet - - @property - def delete_product(self): - """Return the gRPC stub for :meth:`ProductSearchClient.delete_product`. - - Permanently deletes a product and its reference images. - - Metadata of the product and all its images will be deleted right away, but - search queries against ProductSets containing the product may still work - until all related caches are refreshed. - - Returns: - Callable: A callable which accepts the appropriate - deserialized request object and returns a - deserialized response object. - """ - return self._stubs["product_search_stub"].DeleteProduct - - @property - def delete_reference_image(self): - """Return the gRPC stub for :meth:`ProductSearchClient.delete_reference_image`. - - Permanently deletes a reference image. - - The image metadata will be deleted right away, but search queries - against ProductSets containing the image may still work until all related - caches are refreshed. - - The actual image files are not deleted from Google Cloud Storage. - - Returns: - Callable: A callable which accepts the appropriate - deserialized request object and returns a - deserialized response object. - """ - return self._stubs["product_search_stub"].DeleteReferenceImage - @property def import_product_sets(self): """Return the gRPC stub for :meth:`ProductSearchClient.import_product_sets`. @@ -268,6 +216,22 @@ def update_product_set(self): """ return self._stubs["product_search_stub"].UpdateProductSet + @property + def delete_product_set(self): + """Return the gRPC stub for :meth:`ProductSearchClient.delete_product_set`. + + Permanently deletes a ProductSet. Products and ReferenceImages in the + ProductSet are not deleted. + + The actual image files are not deleted from Google Cloud Storage. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs["product_search_stub"].DeleteProductSet + @property def create_product(self): """Return the gRPC stub for :meth:`ProductSearchClient.create_product`. @@ -351,6 +315,23 @@ def update_product(self): """ return self._stubs["product_search_stub"].UpdateProduct + @property + def delete_product(self): + """Return the gRPC stub for :meth:`ProductSearchClient.delete_product`. + + Permanently deletes a product and its reference images. + + Metadata of the product and all its images will be deleted right away, but + search queries against ProductSets containing the product may still work + until all related caches are refreshed. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs["product_search_stub"].DeleteProduct + @property def create_reference_image(self): """Return the gRPC stub for :meth:`ProductSearchClient.create_reference_image`. @@ -384,6 +365,25 @@ def create_reference_image(self): """ return self._stubs["product_search_stub"].CreateReferenceImage + @property + def delete_reference_image(self): + """Return the gRPC stub for :meth:`ProductSearchClient.delete_reference_image`. + + Permanently deletes a reference image. + + The image metadata will be deleted right away, but search queries + against ProductSets containing the image may still work until all related + caches are refreshed. + + The actual image files are not deleted from Google Cloud Storage. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs["product_search_stub"].DeleteReferenceImage + @property def list_reference_images(self): """Return the gRPC stub for :meth:`ProductSearchClient.list_reference_images`. diff --git a/synth.metadata b/synth.metadata index a276524c..37cb59d4 100644 --- a/synth.metadata +++ b/synth.metadata @@ -11,8 +11,8 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "316e611ba9cc62244e3cb3854b0d36feea304409", - "internalRef": "317107948" + "sha": "2ec6c6276f8cd7ec7363e505a88c78075c2b4898", + "internalRef": "317108263" } }, { diff --git a/tests/unit/gapic/v1p4beta1/test_image_annotator_client_v1p4beta1.py b/tests/unit/gapic/v1p4beta1/test_image_annotator_client_v1p4beta1.py index a1ec513a..880665d7 100644 --- a/tests/unit/gapic/v1p4beta1/test_image_annotator_client_v1p4beta1.py +++ b/tests/unit/gapic/v1p4beta1/test_image_annotator_client_v1p4beta1.py @@ -63,15 +63,19 @@ class CustomException(Exception): class TestImageAnnotatorClient(object): - def test_batch_annotate_images(self): + def test_async_batch_annotate_images(self): # Setup Expected Response expected_response = {} - expected_response = image_annotator_pb2.BatchAnnotateImagesResponse( + expected_response = image_annotator_pb2.AsyncBatchAnnotateImagesResponse( **expected_response ) + operation = operations_pb2.Operation( + name="operations/test_async_batch_annotate_images", done=True + ) + operation.response.Pack(expected_response) # Mock the API response - channel = ChannelStub(responses=[expected_response]) + channel = ChannelStub(responses=[operation]) patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel @@ -79,40 +83,55 @@ def test_batch_annotate_images(self): # Setup Request requests = [] + output_config = {} - response = client.batch_annotate_images(requests) - assert expected_response == response + response = client.async_batch_annotate_images(requests, output_config) + result = response.result() + assert expected_response == result assert len(channel.requests) == 1 - expected_request = image_annotator_pb2.BatchAnnotateImagesRequest( - requests=requests + expected_request = image_annotator_pb2.AsyncBatchAnnotateImagesRequest( + requests=requests, output_config=output_config ) actual_request = channel.requests[0][1] assert expected_request == actual_request - def test_batch_annotate_images_exception(self): + def test_async_batch_annotate_images_exception(self): + # Setup Response + error = status_pb2.Status() + operation = operations_pb2.Operation( + name="operations/test_async_batch_annotate_images_exception", done=True + ) + operation.error.CopyFrom(error) + # Mock the API response - channel = ChannelStub(responses=[CustomException()]) + channel = ChannelStub(responses=[operation]) patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = vision_v1p4beta1.ImageAnnotatorClient() - # Setup request + # Setup Request requests = [] + output_config = {} - with pytest.raises(CustomException): - client.batch_annotate_images(requests) + response = client.async_batch_annotate_images(requests, output_config) + exception = response.exception() + assert exception.errors[0] == error - def test_batch_annotate_files(self): + def test_async_batch_annotate_files(self): # Setup Expected Response expected_response = {} - expected_response = image_annotator_pb2.BatchAnnotateFilesResponse( + expected_response = image_annotator_pb2.AsyncBatchAnnotateFilesResponse( **expected_response ) + operation = operations_pb2.Operation( + name="operations/test_async_batch_annotate_files", done=True + ) + operation.response.Pack(expected_response) # Mock the API response - channel = ChannelStub(responses=[expected_response]) + channel = ChannelStub(responses=[operation]) patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel @@ -121,43 +140,48 @@ def test_batch_annotate_files(self): # Setup Request requests = [] - response = client.batch_annotate_files(requests) - assert expected_response == response + response = client.async_batch_annotate_files(requests) + result = response.result() + assert expected_response == result assert len(channel.requests) == 1 - expected_request = image_annotator_pb2.BatchAnnotateFilesRequest( + expected_request = image_annotator_pb2.AsyncBatchAnnotateFilesRequest( requests=requests ) actual_request = channel.requests[0][1] assert expected_request == actual_request - def test_batch_annotate_files_exception(self): + def test_async_batch_annotate_files_exception(self): + # Setup Response + error = status_pb2.Status() + operation = operations_pb2.Operation( + name="operations/test_async_batch_annotate_files_exception", done=True + ) + operation.error.CopyFrom(error) + # Mock the API response - channel = ChannelStub(responses=[CustomException()]) + channel = ChannelStub(responses=[operation]) patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = vision_v1p4beta1.ImageAnnotatorClient() - # Setup request + # Setup Request requests = [] - with pytest.raises(CustomException): - client.batch_annotate_files(requests) + response = client.async_batch_annotate_files(requests) + exception = response.exception() + assert exception.errors[0] == error - def test_async_batch_annotate_images(self): + def test_batch_annotate_images(self): # Setup Expected Response expected_response = {} - expected_response = image_annotator_pb2.AsyncBatchAnnotateImagesResponse( + expected_response = image_annotator_pb2.BatchAnnotateImagesResponse( **expected_response ) - operation = operations_pb2.Operation( - name="operations/test_async_batch_annotate_images", done=True - ) - operation.response.Pack(expected_response) # Mock the API response - channel = ChannelStub(responses=[operation]) + channel = ChannelStub(responses=[expected_response]) patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel @@ -165,55 +189,40 @@ def test_async_batch_annotate_images(self): # Setup Request requests = [] - output_config = {} - response = client.async_batch_annotate_images(requests, output_config) - result = response.result() - assert expected_response == result + response = client.batch_annotate_images(requests) + assert expected_response == response assert len(channel.requests) == 1 - expected_request = image_annotator_pb2.AsyncBatchAnnotateImagesRequest( - requests=requests, output_config=output_config + expected_request = image_annotator_pb2.BatchAnnotateImagesRequest( + requests=requests ) actual_request = channel.requests[0][1] assert expected_request == actual_request - def test_async_batch_annotate_images_exception(self): - # Setup Response - error = status_pb2.Status() - operation = operations_pb2.Operation( - name="operations/test_async_batch_annotate_images_exception", done=True - ) - operation.error.CopyFrom(error) - + def test_batch_annotate_images_exception(self): # Mock the API response - channel = ChannelStub(responses=[operation]) + channel = ChannelStub(responses=[CustomException()]) patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = vision_v1p4beta1.ImageAnnotatorClient() - # Setup Request + # Setup request requests = [] - output_config = {} - response = client.async_batch_annotate_images(requests, output_config) - exception = response.exception() - assert exception.errors[0] == error + with pytest.raises(CustomException): + client.batch_annotate_images(requests) - def test_async_batch_annotate_files(self): + def test_batch_annotate_files(self): # Setup Expected Response expected_response = {} - expected_response = image_annotator_pb2.AsyncBatchAnnotateFilesResponse( + expected_response = image_annotator_pb2.BatchAnnotateFilesResponse( **expected_response ) - operation = operations_pb2.Operation( - name="operations/test_async_batch_annotate_files", done=True - ) - operation.response.Pack(expected_response) # Mock the API response - channel = ChannelStub(responses=[operation]) + channel = ChannelStub(responses=[expected_response]) patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel @@ -222,35 +231,26 @@ def test_async_batch_annotate_files(self): # Setup Request requests = [] - response = client.async_batch_annotate_files(requests) - result = response.result() - assert expected_response == result + response = client.batch_annotate_files(requests) + assert expected_response == response assert len(channel.requests) == 1 - expected_request = image_annotator_pb2.AsyncBatchAnnotateFilesRequest( + expected_request = image_annotator_pb2.BatchAnnotateFilesRequest( requests=requests ) actual_request = channel.requests[0][1] assert expected_request == actual_request - def test_async_batch_annotate_files_exception(self): - # Setup Response - error = status_pb2.Status() - operation = operations_pb2.Operation( - name="operations/test_async_batch_annotate_files_exception", done=True - ) - operation.error.CopyFrom(error) - + def test_batch_annotate_files_exception(self): # Mock the API response - channel = ChannelStub(responses=[operation]) + channel = ChannelStub(responses=[CustomException()]) patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = vision_v1p4beta1.ImageAnnotatorClient() - # Setup Request + # Setup request requests = [] - response = client.async_batch_annotate_files(requests) - exception = response.exception() - assert exception.errors[0] == error + with pytest.raises(CustomException): + client.batch_annotate_files(requests) diff --git a/tests/unit/gapic/v1p4beta1/test_product_search_client_v1p4beta1.py b/tests/unit/gapic/v1p4beta1/test_product_search_client_v1p4beta1.py index 4a534f34..b7a2c4d5 100644 --- a/tests/unit/gapic/v1p4beta1/test_product_search_client_v1p4beta1.py +++ b/tests/unit/gapic/v1p4beta1/test_product_search_client_v1p4beta1.py @@ -64,105 +64,6 @@ class CustomException(Exception): class TestProductSearchClient(object): - def test_delete_product_set(self): - channel = ChannelStub() - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = vision_v1p4beta1.ProductSearchClient() - - # Setup Request - name = client.product_set_path("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]") - - client.delete_product_set(name) - - assert len(channel.requests) == 1 - expected_request = product_search_service_pb2.DeleteProductSetRequest(name=name) - actual_request = channel.requests[0][1] - assert expected_request == actual_request - - def test_delete_product_set_exception(self): - # Mock the API response - channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = vision_v1p4beta1.ProductSearchClient() - - # Setup request - name = client.product_set_path("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]") - - with pytest.raises(CustomException): - client.delete_product_set(name) - - def test_delete_product(self): - channel = ChannelStub() - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = vision_v1p4beta1.ProductSearchClient() - - # Setup Request - name = client.product_path("[PROJECT]", "[LOCATION]", "[PRODUCT]") - - client.delete_product(name) - - assert len(channel.requests) == 1 - expected_request = product_search_service_pb2.DeleteProductRequest(name=name) - actual_request = channel.requests[0][1] - assert expected_request == actual_request - - def test_delete_product_exception(self): - # Mock the API response - channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = vision_v1p4beta1.ProductSearchClient() - - # Setup request - name = client.product_path("[PROJECT]", "[LOCATION]", "[PRODUCT]") - - with pytest.raises(CustomException): - client.delete_product(name) - - def test_delete_reference_image(self): - channel = ChannelStub() - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = vision_v1p4beta1.ProductSearchClient() - - # Setup Request - name = client.reference_image_path( - "[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]" - ) - - client.delete_reference_image(name) - - assert len(channel.requests) == 1 - expected_request = product_search_service_pb2.DeleteReferenceImageRequest( - name=name - ) - actual_request = channel.requests[0][1] - assert expected_request == actual_request - - def test_delete_reference_image_exception(self): - # Mock the API response - channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = vision_v1p4beta1.ProductSearchClient() - - # Setup request - name = client.reference_image_path( - "[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]" - ) - - with pytest.raises(CustomException): - client.delete_reference_image(name) - def test_import_product_sets(self): # Setup Expected Response expected_response = {} @@ -392,6 +293,37 @@ def test_update_product_set_exception(self): with pytest.raises(CustomException): client.update_product_set(product_set) + def test_delete_product_set(self): + channel = ChannelStub() + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = vision_v1p4beta1.ProductSearchClient() + + # Setup Request + name = client.product_set_path("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]") + + client.delete_product_set(name) + + assert len(channel.requests) == 1 + expected_request = product_search_service_pb2.DeleteProductSetRequest(name=name) + actual_request = channel.requests[0][1] + assert expected_request == actual_request + + def test_delete_product_set_exception(self): + # Mock the API response + channel = ChannelStub(responses=[CustomException()]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = vision_v1p4beta1.ProductSearchClient() + + # Setup request + name = client.product_set_path("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]") + + with pytest.raises(CustomException): + client.delete_product_set(name) + def test_create_product(self): # Setup Expected Response name = "name3373707" @@ -581,6 +513,37 @@ def test_update_product_exception(self): with pytest.raises(CustomException): client.update_product(product) + def test_delete_product(self): + channel = ChannelStub() + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = vision_v1p4beta1.ProductSearchClient() + + # Setup Request + name = client.product_path("[PROJECT]", "[LOCATION]", "[PRODUCT]") + + client.delete_product(name) + + assert len(channel.requests) == 1 + expected_request = product_search_service_pb2.DeleteProductRequest(name=name) + actual_request = channel.requests[0][1] + assert expected_request == actual_request + + def test_delete_product_exception(self): + # Mock the API response + channel = ChannelStub(responses=[CustomException()]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = vision_v1p4beta1.ProductSearchClient() + + # Setup request + name = client.product_path("[PROJECT]", "[LOCATION]", "[PRODUCT]") + + with pytest.raises(CustomException): + client.delete_product(name) + def test_create_reference_image(self): # Setup Expected Response name = "name3373707" @@ -626,6 +589,43 @@ def test_create_reference_image_exception(self): with pytest.raises(CustomException): client.create_reference_image(parent, reference_image) + def test_delete_reference_image(self): + channel = ChannelStub() + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = vision_v1p4beta1.ProductSearchClient() + + # Setup Request + name = client.reference_image_path( + "[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]" + ) + + client.delete_reference_image(name) + + assert len(channel.requests) == 1 + expected_request = product_search_service_pb2.DeleteReferenceImageRequest( + name=name + ) + actual_request = channel.requests[0][1] + assert expected_request == actual_request + + def test_delete_reference_image_exception(self): + # Mock the API response + channel = ChannelStub(responses=[CustomException()]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = vision_v1p4beta1.ProductSearchClient() + + # Setup request + name = client.reference_image_path( + "[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]" + ) + + with pytest.raises(CustomException): + client.delete_reference_image(name) + def test_list_reference_images(self): # Setup Expected Response page_size = 883849137 From ea575ec51238d5e2f57b1373fb6d211f9a9298db Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Wed, 24 Jun 2020 18:32:17 -0700 Subject: [PATCH 17/25] fix: migrate vision/v1p1beta1 to grpc_service_config PiperOrigin-RevId: 317108363 Source-Author: Google APIs Source-Date: Thu Jun 18 08:35:28 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: 074e5b22fc2f3fc70ee895705a8aced2b000fff3 Source-Link: https://github.com/googleapis/googleapis/commit/074e5b22fc2f3fc70ee895705a8aced2b000fff3 --- .../gapic/image_annotator_client_config.py | 27 ++++++++++++------- synth.metadata | 4 +-- 2 files changed, 20 insertions(+), 11 deletions(-) diff --git a/google/cloud/vision_v1p1beta1/gapic/image_annotator_client_config.py b/google/cloud/vision_v1p1beta1/gapic/image_annotator_client_config.py index 956b1571..bd83e3ab 100644 --- a/google/cloud/vision_v1p1beta1/gapic/image_annotator_client_config.py +++ b/google/cloud/vision_v1p1beta1/gapic/image_annotator_client_config.py @@ -2,25 +2,34 @@ "interfaces": { "google.cloud.vision.v1p1beta1.ImageAnnotator": { "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [], + "retry_policy_1_codes": ["UNAVAILABLE", "DEADLINE_EXCEEDED"], + "no_retry_codes": [], }, "retry_params": { - "default": { + "retry_policy_1_params": { "initial_retry_delay_millis": 100, "retry_delay_multiplier": 1.3, "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 60000, + "initial_rpc_timeout_millis": 600000, "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, + "max_rpc_timeout_millis": 600000, "total_timeout_millis": 600000, - } + }, + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0, + }, }, "methods": { "BatchAnnotateImages": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params", } }, } diff --git a/synth.metadata b/synth.metadata index 37cb59d4..07450dcd 100644 --- a/synth.metadata +++ b/synth.metadata @@ -11,8 +11,8 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "2ec6c6276f8cd7ec7363e505a88c78075c2b4898", - "internalRef": "317108263" + "sha": "074e5b22fc2f3fc70ee895705a8aced2b000fff3", + "internalRef": "317108363" } }, { From 000e5239717791d0bad5a0d8d4e2f2a63cb6dd5e Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Wed, 24 Jun 2020 18:35:05 -0700 Subject: [PATCH 18/25] fix: migrate vision/v1p2beta1 to grpc_service_config PiperOrigin-RevId: 317109190 Source-Author: Google APIs Source-Date: Thu Jun 18 08:40:27 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: 025ee9eb4660764a21918a7311d57c7466f34a3c Source-Link: https://github.com/googleapis/googleapis/commit/025ee9eb4660764a21918a7311d57c7466f34a3c --- .../gapic/image_annotator_client.py | 92 +++++++++---------- .../gapic/image_annotator_client_config.py | 37 +++++--- .../image_annotator_grpc_transport.py | 26 +++--- synth.metadata | 4 +- .../test_image_annotator_client_v1p2beta1.py | 70 +++++++------- 5 files changed, 119 insertions(+), 110 deletions(-) diff --git a/google/cloud/vision_v1p2beta1/gapic/image_annotator_client.py b/google/cloud/vision_v1p2beta1/gapic/image_annotator_client.py index 28f7ce16..c2f4014e 100644 --- a/google/cloud/vision_v1p2beta1/gapic/image_annotator_client.py +++ b/google/cloud/vision_v1p2beta1/gapic/image_annotator_client.py @@ -189,7 +189,7 @@ def __init__( self._inner_api_calls = {} # Service calls - def batch_annotate_images( + def async_batch_annotate_files( self, requests, retry=google.api_core.gapic_v1.method.DEFAULT, @@ -197,7 +197,12 @@ def batch_annotate_images( metadata=None, ): """ - Run image detection and annotation for a batch of images. + Run async image detection and annotation for a list of generic files + (e.g. PDF) which may contain multiple pages and multiple images per + page. Progress and results can be retrieved through the + ``google.longrunning.Operations`` interface. ``Operation.metadata`` + contains ``OperationMetadata`` (metadata). ``Operation.response`` + contains ``AsyncBatchAnnotateFilesResponse`` (results). Example: >>> from google.cloud import vision_v1p2beta1 @@ -207,13 +212,22 @@ def batch_annotate_images( >>> # TODO: Initialize `requests`: >>> requests = [] >>> - >>> response = client.batch_annotate_images(requests) + >>> response = client.async_batch_annotate_files(requests) + >>> + >>> def callback(operation_future): + ... # Handle result. + ... result = operation_future.result() + >>> + >>> response.add_done_callback(callback) + >>> + >>> # Handle metadata. + >>> metadata = response.metadata() Args: - requests (list[Union[dict, ~google.cloud.vision_v1p2beta1.types.AnnotateImageRequest]]): Required. Individual image annotation requests for this batch. + requests (list[Union[dict, ~google.cloud.vision_v1p2beta1.types.AsyncAnnotateFileRequest]]): Required. Individual async file annotation requests for this batch. If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.cloud.vision_v1p2beta1.types.AnnotateImageRequest` + message :class:`~google.cloud.vision_v1p2beta1.types.AsyncAnnotateFileRequest` retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -224,7 +238,7 @@ def batch_annotate_images( that is provided to the method. Returns: - A :class:`~google.cloud.vision_v1p2beta1.types.BatchAnnotateImagesResponse` instance. + A :class:`~google.cloud.vision_v1p2beta1.types._OperationFuture` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -234,22 +248,28 @@ def batch_annotate_images( ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if "batch_annotate_images" not in self._inner_api_calls: + if "async_batch_annotate_files" not in self._inner_api_calls: self._inner_api_calls[ - "batch_annotate_images" + "async_batch_annotate_files" ] = google.api_core.gapic_v1.method.wrap_method( - self.transport.batch_annotate_images, - default_retry=self._method_configs["BatchAnnotateImages"].retry, - default_timeout=self._method_configs["BatchAnnotateImages"].timeout, + self.transport.async_batch_annotate_files, + default_retry=self._method_configs["AsyncBatchAnnotateFiles"].retry, + default_timeout=self._method_configs["AsyncBatchAnnotateFiles"].timeout, client_info=self._client_info, ) - request = image_annotator_pb2.BatchAnnotateImagesRequest(requests=requests) - return self._inner_api_calls["batch_annotate_images"]( + request = image_annotator_pb2.AsyncBatchAnnotateFilesRequest(requests=requests) + operation = self._inner_api_calls["async_batch_annotate_files"]( request, retry=retry, timeout=timeout, metadata=metadata ) + return google.api_core.operation.from_gapic( + operation, + self.transport._operations_client, + image_annotator_pb2.AsyncBatchAnnotateFilesResponse, + metadata_type=image_annotator_pb2.OperationMetadata, + ) - def async_batch_annotate_files( + def batch_annotate_images( self, requests, retry=google.api_core.gapic_v1.method.DEFAULT, @@ -257,12 +277,7 @@ def async_batch_annotate_files( metadata=None, ): """ - Run async image detection and annotation for a list of generic files - (e.g. PDF) which may contain multiple pages and multiple images per - page. Progress and results can be retrieved through the - ``google.longrunning.Operations`` interface. ``Operation.metadata`` - contains ``OperationMetadata`` (metadata). ``Operation.response`` - contains ``AsyncBatchAnnotateFilesResponse`` (results). + Run image detection and annotation for a batch of images. Example: >>> from google.cloud import vision_v1p2beta1 @@ -272,22 +287,13 @@ def async_batch_annotate_files( >>> # TODO: Initialize `requests`: >>> requests = [] >>> - >>> response = client.async_batch_annotate_files(requests) - >>> - >>> def callback(operation_future): - ... # Handle result. - ... result = operation_future.result() - >>> - >>> response.add_done_callback(callback) - >>> - >>> # Handle metadata. - >>> metadata = response.metadata() + >>> response = client.batch_annotate_images(requests) Args: - requests (list[Union[dict, ~google.cloud.vision_v1p2beta1.types.AsyncAnnotateFileRequest]]): Required. Individual async file annotation requests for this batch. + requests (list[Union[dict, ~google.cloud.vision_v1p2beta1.types.AnnotateImageRequest]]): Required. Individual image annotation requests for this batch. If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.cloud.vision_v1p2beta1.types.AsyncAnnotateFileRequest` + message :class:`~google.cloud.vision_v1p2beta1.types.AnnotateImageRequest` retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -298,7 +304,7 @@ def async_batch_annotate_files( that is provided to the method. Returns: - A :class:`~google.cloud.vision_v1p2beta1.types._OperationFuture` instance. + A :class:`~google.cloud.vision_v1p2beta1.types.BatchAnnotateImagesResponse` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -308,23 +314,17 @@ def async_batch_annotate_files( ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if "async_batch_annotate_files" not in self._inner_api_calls: + if "batch_annotate_images" not in self._inner_api_calls: self._inner_api_calls[ - "async_batch_annotate_files" + "batch_annotate_images" ] = google.api_core.gapic_v1.method.wrap_method( - self.transport.async_batch_annotate_files, - default_retry=self._method_configs["AsyncBatchAnnotateFiles"].retry, - default_timeout=self._method_configs["AsyncBatchAnnotateFiles"].timeout, + self.transport.batch_annotate_images, + default_retry=self._method_configs["BatchAnnotateImages"].retry, + default_timeout=self._method_configs["BatchAnnotateImages"].timeout, client_info=self._client_info, ) - request = image_annotator_pb2.AsyncBatchAnnotateFilesRequest(requests=requests) - operation = self._inner_api_calls["async_batch_annotate_files"]( + request = image_annotator_pb2.BatchAnnotateImagesRequest(requests=requests) + return self._inner_api_calls["batch_annotate_images"]( request, retry=retry, timeout=timeout, metadata=metadata ) - return google.api_core.operation.from_gapic( - operation, - self.transport._operations_client, - image_annotator_pb2.AsyncBatchAnnotateFilesResponse, - metadata_type=image_annotator_pb2.OperationMetadata, - ) diff --git a/google/cloud/vision_v1p2beta1/gapic/image_annotator_client_config.py b/google/cloud/vision_v1p2beta1/gapic/image_annotator_client_config.py index 9ed71995..f28a817c 100644 --- a/google/cloud/vision_v1p2beta1/gapic/image_annotator_client_config.py +++ b/google/cloud/vision_v1p2beta1/gapic/image_annotator_client_config.py @@ -2,30 +2,39 @@ "interfaces": { "google.cloud.vision.v1p2beta1.ImageAnnotator": { "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [], + "retry_policy_1_codes": ["UNAVAILABLE", "DEADLINE_EXCEEDED"], + "no_retry_codes": [], }, "retry_params": { - "default": { + "retry_policy_1_params": { "initial_retry_delay_millis": 100, "retry_delay_multiplier": 1.3, "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 60000, + "initial_rpc_timeout_millis": 600000, "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, + "max_rpc_timeout_millis": 600000, "total_timeout_millis": 600000, - } + }, + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0, + }, }, "methods": { - "BatchAnnotateImages": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", - }, "AsyncBatchAnnotateFiles": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params", + }, + "BatchAnnotateImages": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params", }, }, } diff --git a/google/cloud/vision_v1p2beta1/gapic/transports/image_annotator_grpc_transport.py b/google/cloud/vision_v1p2beta1/gapic/transports/image_annotator_grpc_transport.py index 40345e17..6f83d190 100644 --- a/google/cloud/vision_v1p2beta1/gapic/transports/image_annotator_grpc_transport.py +++ b/google/cloud/vision_v1p2beta1/gapic/transports/image_annotator_grpc_transport.py @@ -118,19 +118,6 @@ def channel(self): """ return self._channel - @property - def batch_annotate_images(self): - """Return the gRPC stub for :meth:`ImageAnnotatorClient.batch_annotate_images`. - - Run image detection and annotation for a batch of images. - - Returns: - Callable: A callable which accepts the appropriate - deserialized request object and returns a - deserialized response object. - """ - return self._stubs["image_annotator_stub"].BatchAnnotateImages - @property def async_batch_annotate_files(self): """Return the gRPC stub for :meth:`ImageAnnotatorClient.async_batch_annotate_files`. @@ -148,3 +135,16 @@ def async_batch_annotate_files(self): deserialized response object. """ return self._stubs["image_annotator_stub"].AsyncBatchAnnotateFiles + + @property + def batch_annotate_images(self): + """Return the gRPC stub for :meth:`ImageAnnotatorClient.batch_annotate_images`. + + Run image detection and annotation for a batch of images. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs["image_annotator_stub"].BatchAnnotateImages diff --git a/synth.metadata b/synth.metadata index 07450dcd..4a2d13ae 100644 --- a/synth.metadata +++ b/synth.metadata @@ -11,8 +11,8 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "074e5b22fc2f3fc70ee895705a8aced2b000fff3", - "internalRef": "317108363" + "sha": "025ee9eb4660764a21918a7311d57c7466f34a3c", + "internalRef": "317109190" } }, { diff --git a/tests/unit/gapic/v1p2beta1/test_image_annotator_client_v1p2beta1.py b/tests/unit/gapic/v1p2beta1/test_image_annotator_client_v1p2beta1.py index 8bc24368..1c5ab408 100644 --- a/tests/unit/gapic/v1p2beta1/test_image_annotator_client_v1p2beta1.py +++ b/tests/unit/gapic/v1p2beta1/test_image_annotator_client_v1p2beta1.py @@ -63,15 +63,19 @@ class CustomException(Exception): class TestImageAnnotatorClient(object): - def test_batch_annotate_images(self): + def test_async_batch_annotate_files(self): # Setup Expected Response expected_response = {} - expected_response = image_annotator_pb2.BatchAnnotateImagesResponse( + expected_response = image_annotator_pb2.AsyncBatchAnnotateFilesResponse( **expected_response ) + operation = operations_pb2.Operation( + name="operations/test_async_batch_annotate_files", done=True + ) + operation.response.Pack(expected_response) # Mock the API response - channel = ChannelStub(responses=[expected_response]) + channel = ChannelStub(responses=[operation]) patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel @@ -80,43 +84,48 @@ def test_batch_annotate_images(self): # Setup Request requests = [] - response = client.batch_annotate_images(requests) - assert expected_response == response + response = client.async_batch_annotate_files(requests) + result = response.result() + assert expected_response == result assert len(channel.requests) == 1 - expected_request = image_annotator_pb2.BatchAnnotateImagesRequest( + expected_request = image_annotator_pb2.AsyncBatchAnnotateFilesRequest( requests=requests ) actual_request = channel.requests[0][1] assert expected_request == actual_request - def test_batch_annotate_images_exception(self): + def test_async_batch_annotate_files_exception(self): + # Setup Response + error = status_pb2.Status() + operation = operations_pb2.Operation( + name="operations/test_async_batch_annotate_files_exception", done=True + ) + operation.error.CopyFrom(error) + # Mock the API response - channel = ChannelStub(responses=[CustomException()]) + channel = ChannelStub(responses=[operation]) patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = vision_v1p2beta1.ImageAnnotatorClient() - # Setup request + # Setup Request requests = [] - with pytest.raises(CustomException): - client.batch_annotate_images(requests) + response = client.async_batch_annotate_files(requests) + exception = response.exception() + assert exception.errors[0] == error - def test_async_batch_annotate_files(self): + def test_batch_annotate_images(self): # Setup Expected Response expected_response = {} - expected_response = image_annotator_pb2.AsyncBatchAnnotateFilesResponse( + expected_response = image_annotator_pb2.BatchAnnotateImagesResponse( **expected_response ) - operation = operations_pb2.Operation( - name="operations/test_async_batch_annotate_files", done=True - ) - operation.response.Pack(expected_response) # Mock the API response - channel = ChannelStub(responses=[operation]) + channel = ChannelStub(responses=[expected_response]) patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel @@ -125,35 +134,26 @@ def test_async_batch_annotate_files(self): # Setup Request requests = [] - response = client.async_batch_annotate_files(requests) - result = response.result() - assert expected_response == result + response = client.batch_annotate_images(requests) + assert expected_response == response assert len(channel.requests) == 1 - expected_request = image_annotator_pb2.AsyncBatchAnnotateFilesRequest( + expected_request = image_annotator_pb2.BatchAnnotateImagesRequest( requests=requests ) actual_request = channel.requests[0][1] assert expected_request == actual_request - def test_async_batch_annotate_files_exception(self): - # Setup Response - error = status_pb2.Status() - operation = operations_pb2.Operation( - name="operations/test_async_batch_annotate_files_exception", done=True - ) - operation.error.CopyFrom(error) - + def test_batch_annotate_images_exception(self): # Mock the API response - channel = ChannelStub(responses=[operation]) + channel = ChannelStub(responses=[CustomException()]) patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = vision_v1p2beta1.ImageAnnotatorClient() - # Setup Request + # Setup request requests = [] - response = client.async_batch_annotate_files(requests) - exception = response.exception() - assert exception.errors[0] == error + with pytest.raises(CustomException): + client.batch_annotate_images(requests) From df237ea4833c06b83d06923be0c9886ad79baf5c Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Wed, 24 Jun 2020 18:35:41 -0700 Subject: [PATCH 19/25] fix: migrate vision/v1 to grpc_service_config PiperOrigin-RevId: 317109460 Source-Author: Google APIs Source-Date: Thu Jun 18 08:42:03 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: d810c1d73c25b2a0051c26bc960e0044ebf939b1 Source-Link: https://github.com/googleapis/googleapis/commit/d810c1d73c25b2a0051c26bc960e0044ebf939b1 --- .../vision_v1/gapic/image_annotator_client.py | 172 +++---- .../gapic/image_annotator_client_config.py | 49 +- .../vision_v1/gapic/product_search_client.py | 478 +++++++++--------- .../gapic/product_search_client_config.py | 153 +++--- .../image_annotator_grpc_transport.py | 26 +- .../product_search_grpc_transport.py | 118 ++--- synth.metadata | 4 +- .../v1/test_image_annotator_client_v1.py | 82 +-- .../gapic/v1/test_product_search_client_v1.py | 216 ++++---- 9 files changed, 663 insertions(+), 635 deletions(-) diff --git a/google/cloud/vision_v1/gapic/image_annotator_client.py b/google/cloud/vision_v1/gapic/image_annotator_client.py index 9ba03fd5..7f775ced 100644 --- a/google/cloud/vision_v1/gapic/image_annotator_client.py +++ b/google/cloud/vision_v1/gapic/image_annotator_client.py @@ -192,92 +192,6 @@ def __init__( self._inner_api_calls = {} # Service calls - def batch_annotate_images( - self, - requests, - parent=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None, - ): - """ - Run image detection and annotation for a batch of images. - - Example: - >>> from google.cloud import vision_v1 - >>> - >>> client = vision_v1.ImageAnnotatorClient() - >>> - >>> # TODO: Initialize `requests`: - >>> requests = [] - >>> - >>> response = client.batch_annotate_images(requests) - - Args: - requests (list[Union[dict, ~google.cloud.vision_v1.types.AnnotateImageRequest]]): Required. Individual image annotation requests for this batch. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.cloud.vision_v1.types.AnnotateImageRequest` - parent (str): Optional. Target project and location to make a call. - - Format: ``projects/{project-id}/locations/{location-id}``. - - If no parent is specified, a region will be chosen automatically. - - Supported location-ids: ``us``: USA country only, ``asia``: East asia - areas, like Japan, Taiwan, ``eu``: The European Union. - - Example: ``projects/project-A/locations/eu``. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will - be retried using a default configuration. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.cloud.vision_v1.types.BatchAnnotateImagesResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if "batch_annotate_images" not in self._inner_api_calls: - self._inner_api_calls[ - "batch_annotate_images" - ] = google.api_core.gapic_v1.method.wrap_method( - self.transport.batch_annotate_images, - default_retry=self._method_configs["BatchAnnotateImages"].retry, - default_timeout=self._method_configs["BatchAnnotateImages"].timeout, - client_info=self._client_info, - ) - - request = image_annotator_pb2.BatchAnnotateImagesRequest( - requests=requests, parent=parent - ) - if metadata is None: - metadata = [] - metadata = list(metadata) - try: - routing_header = [("parent", parent)] - except AttributeError: - pass - else: - routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( - routing_header - ) - metadata.append(routing_metadata) - - return self._inner_api_calls["batch_annotate_images"]( - request, retry=retry, timeout=timeout, metadata=metadata - ) - def batch_annotate_files( self, requests, @@ -597,3 +511,89 @@ def async_batch_annotate_files( image_annotator_pb2.AsyncBatchAnnotateFilesResponse, metadata_type=image_annotator_pb2.OperationMetadata, ) + + def batch_annotate_images( + self, + requests, + parent=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): + """ + Run image detection and annotation for a batch of images. + + Example: + >>> from google.cloud import vision_v1 + >>> + >>> client = vision_v1.ImageAnnotatorClient() + >>> + >>> # TODO: Initialize `requests`: + >>> requests = [] + >>> + >>> response = client.batch_annotate_images(requests) + + Args: + requests (list[Union[dict, ~google.cloud.vision_v1.types.AnnotateImageRequest]]): Required. Individual image annotation requests for this batch. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.cloud.vision_v1.types.AnnotateImageRequest` + parent (str): Optional. Target project and location to make a call. + + Format: ``projects/{project-id}/locations/{location-id}``. + + If no parent is specified, a region will be chosen automatically. + + Supported location-ids: ``us``: USA country only, ``asia``: East asia + areas, like Japan, Taiwan, ``eu``: The European Union. + + Example: ``projects/project-A/locations/eu``. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will + be retried using a default configuration. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.cloud.vision_v1.types.BatchAnnotateImagesResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if "batch_annotate_images" not in self._inner_api_calls: + self._inner_api_calls[ + "batch_annotate_images" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.batch_annotate_images, + default_retry=self._method_configs["BatchAnnotateImages"].retry, + default_timeout=self._method_configs["BatchAnnotateImages"].timeout, + client_info=self._client_info, + ) + + request = image_annotator_pb2.BatchAnnotateImagesRequest( + requests=requests, parent=parent + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [("parent", parent)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( + routing_header + ) + metadata.append(routing_metadata) + + return self._inner_api_calls["batch_annotate_images"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) diff --git a/google/cloud/vision_v1/gapic/image_annotator_client_config.py b/google/cloud/vision_v1/gapic/image_annotator_client_config.py index f533bb71..d1b1f9e5 100644 --- a/google/cloud/vision_v1/gapic/image_annotator_client_config.py +++ b/google/cloud/vision_v1/gapic/image_annotator_client_config.py @@ -2,40 +2,49 @@ "interfaces": { "google.cloud.vision.v1.ImageAnnotator": { "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [], + "retry_policy_1_codes": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "no_retry_codes": [], }, "retry_params": { - "default": { + "retry_policy_1_params": { "initial_retry_delay_millis": 100, "retry_delay_multiplier": 1.3, "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 60000, + "initial_rpc_timeout_millis": 600000, "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, + "max_rpc_timeout_millis": 600000, "total_timeout_millis": 600000, - } + }, + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0, + }, }, "methods": { - "BatchAnnotateImages": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", - }, "BatchAnnotateFiles": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params", }, "AsyncBatchAnnotateImages": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params", }, "AsyncBatchAnnotateFiles": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params", + }, + "BatchAnnotateImages": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params", }, }, } diff --git a/google/cloud/vision_v1/gapic/product_search_client.py b/google/cloud/vision_v1/gapic/product_search_client.py index cbe53d62..14c44a0a 100644 --- a/google/cloud/vision_v1/gapic/product_search_client.py +++ b/google/cloud/vision_v1/gapic/product_search_client.py @@ -245,6 +245,245 @@ def __init__( self._inner_api_calls = {} # Service calls + def import_product_sets( + self, + parent, + input_config, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): + """ + Asynchronous API that imports a list of reference images to + specified product sets based on a list of image information. + + The ``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``. + + Example: + >>> from google.cloud import vision_v1 + >>> + >>> client = vision_v1.ProductSearchClient() + >>> + >>> parent = client.location_path('[PROJECT]', '[LOCATION]') + >>> + >>> # TODO: Initialize `input_config`: + >>> input_config = {} + >>> + >>> response = client.import_product_sets(parent, input_config) + >>> + >>> def callback(operation_future): + ... # Handle result. + ... result = operation_future.result() + >>> + >>> response.add_done_callback(callback) + >>> + >>> # Handle metadata. + >>> metadata = response.metadata() + + Args: + parent (str): Required. The project in which the ProductSets should be imported. + + Format is ``projects/PROJECT_ID/locations/LOC_ID``. + input_config (Union[dict, ~google.cloud.vision_v1.types.ImportProductSetsInputConfig]): Required. The input content for the list of requests. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.cloud.vision_v1.types.ImportProductSetsInputConfig` + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will + be retried using a default configuration. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.cloud.vision_v1.types._OperationFuture` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if "import_product_sets" not in self._inner_api_calls: + self._inner_api_calls[ + "import_product_sets" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.import_product_sets, + default_retry=self._method_configs["ImportProductSets"].retry, + default_timeout=self._method_configs["ImportProductSets"].timeout, + client_info=self._client_info, + ) + + request = product_search_service_pb2.ImportProductSetsRequest( + parent=parent, input_config=input_config + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [("parent", parent)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( + routing_header + ) + metadata.append(routing_metadata) + + operation = self._inner_api_calls["import_product_sets"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + return google.api_core.operation.from_gapic( + operation, + self.transport._operations_client, + product_search_service_pb2.ImportProductSetsResponse, + metadata_type=product_search_service_pb2.BatchOperationMetadata, + ) + + def purge_products( + self, + parent, + product_set_purge_config=None, + delete_orphan_products=None, + force=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): + """ + Asynchronous API to delete all Products in a ProductSet or all + Products that are in no ProductSet. + + If a Product is a member of the specified ProductSet in addition to + other ProductSets, the Product will still be deleted. + + It is recommended to not delete the specified ProductSet until after + this operation has completed. It is also recommended to not add any of + the Products involved in the batch delete to a new ProductSet while this + operation is running because those Products may still end up deleted. + + It's not possible to undo the PurgeProducts operation. Therefore, it is + recommended to keep the csv files used in ImportProductSets (if that was + how you originally built the Product Set) before starting PurgeProducts, + in case you need to re-import the data after deletion. + + If the plan is to purge all of the Products from a ProductSet and then + re-use the empty ProductSet to re-import new Products into the empty + ProductSet, you must wait until the PurgeProducts operation has finished + for that ProductSet. + + The ``google.longrunning.Operation`` API can be used to keep track of + the progress and results of the request. ``Operation.metadata`` contains + ``BatchOperationMetadata``. (progress) + + Example: + >>> from google.cloud import vision_v1 + >>> + >>> client = vision_v1.ProductSearchClient() + >>> + >>> parent = client.location_path('[PROJECT]', '[LOCATION]') + >>> + >>> response = client.purge_products(parent) + >>> + >>> def callback(operation_future): + ... # Handle result. + ... result = operation_future.result() + >>> + >>> response.add_done_callback(callback) + >>> + >>> # Handle metadata. + >>> metadata = response.metadata() + + Args: + parent (str): Required. The project and location in which the Products should be + deleted. + + Format is ``projects/PROJECT_ID/locations/LOC_ID``. + product_set_purge_config (Union[dict, ~google.cloud.vision_v1.types.ProductSetPurgeConfig]): Specify which ProductSet contains the Products to be deleted. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.cloud.vision_v1.types.ProductSetPurgeConfig` + delete_orphan_products (bool): If delete_orphan_products is true, all Products that are not in any + ProductSet will be deleted. + force (bool): The default value is false. Override this value to true to actually perform + the purge. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will + be retried using a default configuration. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.cloud.vision_v1.types._OperationFuture` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if "purge_products" not in self._inner_api_calls: + self._inner_api_calls[ + "purge_products" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.purge_products, + default_retry=self._method_configs["PurgeProducts"].retry, + default_timeout=self._method_configs["PurgeProducts"].timeout, + client_info=self._client_info, + ) + + # Sanity check: We have some fields which are mutually exclusive; + # raise ValueError if more than one is sent. + google.api_core.protobuf_helpers.check_oneof( + product_set_purge_config=product_set_purge_config, + delete_orphan_products=delete_orphan_products, + ) + + request = product_search_service_pb2.PurgeProductsRequest( + parent=parent, + product_set_purge_config=product_set_purge_config, + delete_orphan_products=delete_orphan_products, + force=force, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [("parent", parent)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( + routing_header + ) + metadata.append(routing_metadata) + + operation = self._inner_api_calls["purge_products"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + return google.api_core.operation.from_gapic( + operation, + self.transport._operations_client, + empty_pb2.Empty, + metadata_type=product_search_service_pb2.BatchOperationMetadata, + ) + def create_product_set( self, parent, @@ -1785,242 +2024,3 @@ def list_products_in_product_set( response_token_field="next_page_token", ) return iterator - - def import_product_sets( - self, - parent, - input_config, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None, - ): - """ - Asynchronous API that imports a list of reference images to - specified product sets based on a list of image information. - - The ``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``. - - Example: - >>> from google.cloud import vision_v1 - >>> - >>> client = vision_v1.ProductSearchClient() - >>> - >>> parent = client.location_path('[PROJECT]', '[LOCATION]') - >>> - >>> # TODO: Initialize `input_config`: - >>> input_config = {} - >>> - >>> response = client.import_product_sets(parent, input_config) - >>> - >>> def callback(operation_future): - ... # Handle result. - ... result = operation_future.result() - >>> - >>> response.add_done_callback(callback) - >>> - >>> # Handle metadata. - >>> metadata = response.metadata() - - Args: - parent (str): Required. The project in which the ProductSets should be imported. - - Format is ``projects/PROJECT_ID/locations/LOC_ID``. - input_config (Union[dict, ~google.cloud.vision_v1.types.ImportProductSetsInputConfig]): Required. The input content for the list of requests. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.cloud.vision_v1.types.ImportProductSetsInputConfig` - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will - be retried using a default configuration. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.cloud.vision_v1.types._OperationFuture` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if "import_product_sets" not in self._inner_api_calls: - self._inner_api_calls[ - "import_product_sets" - ] = google.api_core.gapic_v1.method.wrap_method( - self.transport.import_product_sets, - default_retry=self._method_configs["ImportProductSets"].retry, - default_timeout=self._method_configs["ImportProductSets"].timeout, - client_info=self._client_info, - ) - - request = product_search_service_pb2.ImportProductSetsRequest( - parent=parent, input_config=input_config - ) - if metadata is None: - metadata = [] - metadata = list(metadata) - try: - routing_header = [("parent", parent)] - except AttributeError: - pass - else: - routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( - routing_header - ) - metadata.append(routing_metadata) - - operation = self._inner_api_calls["import_product_sets"]( - request, retry=retry, timeout=timeout, metadata=metadata - ) - return google.api_core.operation.from_gapic( - operation, - self.transport._operations_client, - product_search_service_pb2.ImportProductSetsResponse, - metadata_type=product_search_service_pb2.BatchOperationMetadata, - ) - - def purge_products( - self, - parent, - product_set_purge_config=None, - delete_orphan_products=None, - force=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None, - ): - """ - Asynchronous API to delete all Products in a ProductSet or all - Products that are in no ProductSet. - - If a Product is a member of the specified ProductSet in addition to - other ProductSets, the Product will still be deleted. - - It is recommended to not delete the specified ProductSet until after - this operation has completed. It is also recommended to not add any of - the Products involved in the batch delete to a new ProductSet while this - operation is running because those Products may still end up deleted. - - It's not possible to undo the PurgeProducts operation. Therefore, it is - recommended to keep the csv files used in ImportProductSets (if that was - how you originally built the Product Set) before starting PurgeProducts, - in case you need to re-import the data after deletion. - - If the plan is to purge all of the Products from a ProductSet and then - re-use the empty ProductSet to re-import new Products into the empty - ProductSet, you must wait until the PurgeProducts operation has finished - for that ProductSet. - - The ``google.longrunning.Operation`` API can be used to keep track of - the progress and results of the request. ``Operation.metadata`` contains - ``BatchOperationMetadata``. (progress) - - Example: - >>> from google.cloud import vision_v1 - >>> - >>> client = vision_v1.ProductSearchClient() - >>> - >>> parent = client.location_path('[PROJECT]', '[LOCATION]') - >>> - >>> response = client.purge_products(parent) - >>> - >>> def callback(operation_future): - ... # Handle result. - ... result = operation_future.result() - >>> - >>> response.add_done_callback(callback) - >>> - >>> # Handle metadata. - >>> metadata = response.metadata() - - Args: - parent (str): Required. The project and location in which the Products should be - deleted. - - Format is ``projects/PROJECT_ID/locations/LOC_ID``. - product_set_purge_config (Union[dict, ~google.cloud.vision_v1.types.ProductSetPurgeConfig]): Specify which ProductSet contains the Products to be deleted. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.cloud.vision_v1.types.ProductSetPurgeConfig` - delete_orphan_products (bool): If delete_orphan_products is true, all Products that are not in any - ProductSet will be deleted. - force (bool): The default value is false. Override this value to true to actually perform - the purge. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will - be retried using a default configuration. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.cloud.vision_v1.types._OperationFuture` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if "purge_products" not in self._inner_api_calls: - self._inner_api_calls[ - "purge_products" - ] = google.api_core.gapic_v1.method.wrap_method( - self.transport.purge_products, - default_retry=self._method_configs["PurgeProducts"].retry, - default_timeout=self._method_configs["PurgeProducts"].timeout, - client_info=self._client_info, - ) - - # Sanity check: We have some fields which are mutually exclusive; - # raise ValueError if more than one is sent. - google.api_core.protobuf_helpers.check_oneof( - product_set_purge_config=product_set_purge_config, - delete_orphan_products=delete_orphan_products, - ) - - request = product_search_service_pb2.PurgeProductsRequest( - parent=parent, - product_set_purge_config=product_set_purge_config, - delete_orphan_products=delete_orphan_products, - force=force, - ) - if metadata is None: - metadata = [] - metadata = list(metadata) - try: - routing_header = [("parent", parent)] - except AttributeError: - pass - else: - routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( - routing_header - ) - metadata.append(routing_metadata) - - operation = self._inner_api_calls["purge_products"]( - request, retry=retry, timeout=timeout, metadata=metadata - ) - return google.api_core.operation.from_gapic( - operation, - self.transport._operations_client, - empty_pb2.Empty, - metadata_type=product_search_service_pb2.BatchOperationMetadata, - ) diff --git a/google/cloud/vision_v1/gapic/product_search_client_config.py b/google/cloud/vision_v1/gapic/product_search_client_config.py index 8753ca19..00bbdce0 100644 --- a/google/cloud/vision_v1/gapic/product_search_client_config.py +++ b/google/cloud/vision_v1/gapic/product_search_client_config.py @@ -2,115 +2,134 @@ "interfaces": { "google.cloud.vision.v1.ProductSearch": { "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [], + "no_retry_codes": [], + "retry_policy_3_codes": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "retry_policy_2_codes": [], }, "retry_params": { - "default": { + "retry_policy_2_params": { "initial_retry_delay_millis": 100, "retry_delay_multiplier": 1.3, "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 60000, + "initial_rpc_timeout_millis": 600000, "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, + "max_rpc_timeout_millis": 600000, "total_timeout_millis": 600000, - } + }, + "retry_policy_3_params": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 600000, + "total_timeout_millis": 600000, + }, + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0, + }, }, "methods": { + "ImportProductSets": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_2_codes", + "retry_params_name": "retry_policy_2_params", + }, + "PurgeProducts": { + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_2_codes", + "retry_params_name": "retry_policy_2_params", + }, "CreateProductSet": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_2_codes", + "retry_params_name": "retry_policy_2_params", }, "ListProductSets": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params", }, "GetProductSet": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params", }, "UpdateProductSet": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params", }, "DeleteProductSet": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params", }, "CreateProduct": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_2_codes", + "retry_params_name": "retry_policy_2_params", }, "ListProducts": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params", }, "GetProduct": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params", }, "UpdateProduct": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params", }, "DeleteProduct": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params", }, "CreateReferenceImage": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_2_codes", + "retry_params_name": "retry_policy_2_params", }, "DeleteReferenceImage": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params", }, "ListReferenceImages": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params", }, "GetReferenceImage": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params", }, "AddProductToProductSet": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params", }, "RemoveProductFromProductSet": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params", }, "ListProductsInProductSet": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", - }, - "ImportProductSets": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", - }, - "PurgeProducts": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 600000, + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params", }, }, } diff --git a/google/cloud/vision_v1/gapic/transports/image_annotator_grpc_transport.py b/google/cloud/vision_v1/gapic/transports/image_annotator_grpc_transport.py index cb0029c1..51c3f06e 100644 --- a/google/cloud/vision_v1/gapic/transports/image_annotator_grpc_transport.py +++ b/google/cloud/vision_v1/gapic/transports/image_annotator_grpc_transport.py @@ -118,19 +118,6 @@ def channel(self): """ return self._channel - @property - def batch_annotate_images(self): - """Return the gRPC stub for :meth:`ImageAnnotatorClient.batch_annotate_images`. - - Run image detection and annotation for a batch of images. - - Returns: - Callable: A callable which accepts the appropriate - deserialized request object and returns a - deserialized response object. - """ - return self._stubs["image_annotator_stub"].BatchAnnotateImages - @property def batch_annotate_files(self): """Return the gRPC stub for :meth:`ImageAnnotatorClient.batch_annotate_files`. @@ -190,3 +177,16 @@ def async_batch_annotate_files(self): deserialized response object. """ return self._stubs["image_annotator_stub"].AsyncBatchAnnotateFiles + + @property + def batch_annotate_images(self): + """Return the gRPC stub for :meth:`ImageAnnotatorClient.batch_annotate_images`. + + Run image detection and annotation for a batch of images. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs["image_annotator_stub"].BatchAnnotateImages diff --git a/google/cloud/vision_v1/gapic/transports/product_search_grpc_transport.py b/google/cloud/vision_v1/gapic/transports/product_search_grpc_transport.py index 8d1c957b..26ab0306 100644 --- a/google/cloud/vision_v1/gapic/transports/product_search_grpc_transport.py +++ b/google/cloud/vision_v1/gapic/transports/product_search_grpc_transport.py @@ -120,6 +120,65 @@ def channel(self): """ return self._channel + @property + def import_product_sets(self): + """Return the gRPC stub for :meth:`ProductSearchClient.import_product_sets`. + + Asynchronous API that imports a list of reference images to + specified product sets based on a list of image information. + + The ``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``. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs["product_search_stub"].ImportProductSets + + @property + def purge_products(self): + """Return the gRPC stub for :meth:`ProductSearchClient.purge_products`. + + Asynchronous API to delete all Products in a ProductSet or all + Products that are in no ProductSet. + + If a Product is a member of the specified ProductSet in addition to + other ProductSets, the Product will still be deleted. + + It is recommended to not delete the specified ProductSet until after + this operation has completed. It is also recommended to not add any of + the Products involved in the batch delete to a new ProductSet while this + operation is running because those Products may still end up deleted. + + It's not possible to undo the PurgeProducts operation. Therefore, it is + recommended to keep the csv files used in ImportProductSets (if that was + how you originally built the Product Set) before starting PurgeProducts, + in case you need to re-import the data after deletion. + + If the plan is to purge all of the Products from a ProductSet and then + re-use the empty ProductSet to re-import new Products into the empty + ProductSet, you must wait until the PurgeProducts operation has finished + for that ProductSet. + + The ``google.longrunning.Operation`` API can be used to keep track of + the progress and results of the request. ``Operation.metadata`` contains + ``BatchOperationMetadata``. (progress) + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs["product_search_stub"].PurgeProducts + @property def create_product_set(self): """Return the gRPC stub for :meth:`ProductSearchClient.create_product_set`. @@ -449,62 +508,3 @@ def list_products_in_product_set(self): deserialized response object. """ return self._stubs["product_search_stub"].ListProductsInProductSet - - @property - def import_product_sets(self): - """Return the gRPC stub for :meth:`ProductSearchClient.import_product_sets`. - - Asynchronous API that imports a list of reference images to - specified product sets based on a list of image information. - - The ``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``. - - Returns: - Callable: A callable which accepts the appropriate - deserialized request object and returns a - deserialized response object. - """ - return self._stubs["product_search_stub"].ImportProductSets - - @property - def purge_products(self): - """Return the gRPC stub for :meth:`ProductSearchClient.purge_products`. - - Asynchronous API to delete all Products in a ProductSet or all - Products that are in no ProductSet. - - If a Product is a member of the specified ProductSet in addition to - other ProductSets, the Product will still be deleted. - - It is recommended to not delete the specified ProductSet until after - this operation has completed. It is also recommended to not add any of - the Products involved in the batch delete to a new ProductSet while this - operation is running because those Products may still end up deleted. - - It's not possible to undo the PurgeProducts operation. Therefore, it is - recommended to keep the csv files used in ImportProductSets (if that was - how you originally built the Product Set) before starting PurgeProducts, - in case you need to re-import the data after deletion. - - If the plan is to purge all of the Products from a ProductSet and then - re-use the empty ProductSet to re-import new Products into the empty - ProductSet, you must wait until the PurgeProducts operation has finished - for that ProductSet. - - The ``google.longrunning.Operation`` API can be used to keep track of - the progress and results of the request. ``Operation.metadata`` contains - ``BatchOperationMetadata``. (progress) - - Returns: - Callable: A callable which accepts the appropriate - deserialized request object and returns a - deserialized response object. - """ - return self._stubs["product_search_stub"].PurgeProducts diff --git a/synth.metadata b/synth.metadata index 4a2d13ae..e2d54860 100644 --- a/synth.metadata +++ b/synth.metadata @@ -11,8 +11,8 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "025ee9eb4660764a21918a7311d57c7466f34a3c", - "internalRef": "317109190" + "sha": "d810c1d73c25b2a0051c26bc960e0044ebf939b1", + "internalRef": "317109460" } }, { diff --git a/tests/unit/gapic/v1/test_image_annotator_client_v1.py b/tests/unit/gapic/v1/test_image_annotator_client_v1.py index 0cca03f9..d7975e51 100644 --- a/tests/unit/gapic/v1/test_image_annotator_client_v1.py +++ b/tests/unit/gapic/v1/test_image_annotator_client_v1.py @@ -63,47 +63,6 @@ class CustomException(Exception): class TestImageAnnotatorClient(object): - def test_batch_annotate_images(self): - # Setup Expected Response - expected_response = {} - expected_response = image_annotator_pb2.BatchAnnotateImagesResponse( - **expected_response - ) - - # Mock the API response - channel = ChannelStub(responses=[expected_response]) - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = vision_v1.ImageAnnotatorClient() - - # Setup Request - requests = [] - - response = client.batch_annotate_images(requests) - assert expected_response == response - - assert len(channel.requests) == 1 - expected_request = image_annotator_pb2.BatchAnnotateImagesRequest( - requests=requests - ) - actual_request = channel.requests[0][1] - assert expected_request == actual_request - - def test_batch_annotate_images_exception(self): - # Mock the API response - channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = vision_v1.ImageAnnotatorClient() - - # Setup request - requests = [] - - with pytest.raises(CustomException): - client.batch_annotate_images(requests) - def test_batch_annotate_files(self): # Setup Expected Response expected_response = {} @@ -254,3 +213,44 @@ def test_async_batch_annotate_files_exception(self): response = client.async_batch_annotate_files(requests) exception = response.exception() assert exception.errors[0] == error + + def test_batch_annotate_images(self): + # Setup Expected Response + expected_response = {} + expected_response = image_annotator_pb2.BatchAnnotateImagesResponse( + **expected_response + ) + + # Mock the API response + channel = ChannelStub(responses=[expected_response]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = vision_v1.ImageAnnotatorClient() + + # Setup Request + requests = [] + + response = client.batch_annotate_images(requests) + assert expected_response == response + + assert len(channel.requests) == 1 + expected_request = image_annotator_pb2.BatchAnnotateImagesRequest( + requests=requests + ) + actual_request = channel.requests[0][1] + assert expected_request == actual_request + + def test_batch_annotate_images_exception(self): + # Mock the API response + channel = ChannelStub(responses=[CustomException()]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = vision_v1.ImageAnnotatorClient() + + # Setup request + requests = [] + + with pytest.raises(CustomException): + client.batch_annotate_images(requests) diff --git a/tests/unit/gapic/v1/test_product_search_client_v1.py b/tests/unit/gapic/v1/test_product_search_client_v1.py index 5a3ac654..4326e3f3 100644 --- a/tests/unit/gapic/v1/test_product_search_client_v1.py +++ b/tests/unit/gapic/v1/test_product_search_client_v1.py @@ -64,6 +64,114 @@ class CustomException(Exception): class TestProductSearchClient(object): + def test_import_product_sets(self): + # Setup Expected Response + expected_response = {} + expected_response = product_search_service_pb2.ImportProductSetsResponse( + **expected_response + ) + operation = operations_pb2.Operation( + name="operations/test_import_product_sets", done=True + ) + operation.response.Pack(expected_response) + + # Mock the API response + channel = ChannelStub(responses=[operation]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = vision_v1.ProductSearchClient() + + # Setup Request + parent = client.location_path("[PROJECT]", "[LOCATION]") + input_config = {} + + response = client.import_product_sets(parent, input_config) + result = response.result() + assert expected_response == result + + assert len(channel.requests) == 1 + expected_request = product_search_service_pb2.ImportProductSetsRequest( + parent=parent, input_config=input_config + ) + actual_request = channel.requests[0][1] + assert expected_request == actual_request + + def test_import_product_sets_exception(self): + # Setup Response + error = status_pb2.Status() + operation = operations_pb2.Operation( + name="operations/test_import_product_sets_exception", done=True + ) + operation.error.CopyFrom(error) + + # Mock the API response + channel = ChannelStub(responses=[operation]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = vision_v1.ProductSearchClient() + + # Setup Request + parent = client.location_path("[PROJECT]", "[LOCATION]") + input_config = {} + + response = client.import_product_sets(parent, input_config) + exception = response.exception() + assert exception.errors[0] == error + + def test_purge_products(self): + # Setup Expected Response + expected_response = {} + expected_response = empty_pb2.Empty(**expected_response) + operation = operations_pb2.Operation( + name="operations/test_purge_products", done=True + ) + operation.response.Pack(expected_response) + + # Mock the API response + channel = ChannelStub(responses=[operation]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = vision_v1.ProductSearchClient() + + # Setup Request + parent = client.location_path("[PROJECT]", "[LOCATION]") + + response = client.purge_products(parent) + result = response.result() + assert expected_response == result + + assert len(channel.requests) == 1 + expected_request = product_search_service_pb2.PurgeProductsRequest( + parent=parent + ) + actual_request = channel.requests[0][1] + assert expected_request == actual_request + + def test_purge_products_exception(self): + # Setup Response + error = status_pb2.Status() + operation = operations_pb2.Operation( + name="operations/test_purge_products_exception", done=True + ) + operation.error.CopyFrom(error) + + # Mock the API response + channel = ChannelStub(responses=[operation]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = vision_v1.ProductSearchClient() + + # Setup Request + parent = client.location_path("[PROJECT]", "[LOCATION]") + + response = client.purge_products(parent) + exception = response.exception() + assert exception.errors[0] == error + def test_create_product_set(self): # Setup Expected Response name = "name3373707" @@ -785,111 +893,3 @@ def test_list_products_in_product_set_exception(self): paged_list_response = client.list_products_in_product_set(name) with pytest.raises(CustomException): list(paged_list_response) - - def test_import_product_sets(self): - # Setup Expected Response - expected_response = {} - expected_response = product_search_service_pb2.ImportProductSetsResponse( - **expected_response - ) - operation = operations_pb2.Operation( - name="operations/test_import_product_sets", done=True - ) - operation.response.Pack(expected_response) - - # Mock the API response - channel = ChannelStub(responses=[operation]) - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = vision_v1.ProductSearchClient() - - # Setup Request - parent = client.location_path("[PROJECT]", "[LOCATION]") - input_config = {} - - response = client.import_product_sets(parent, input_config) - result = response.result() - assert expected_response == result - - assert len(channel.requests) == 1 - expected_request = product_search_service_pb2.ImportProductSetsRequest( - parent=parent, input_config=input_config - ) - actual_request = channel.requests[0][1] - assert expected_request == actual_request - - def test_import_product_sets_exception(self): - # Setup Response - error = status_pb2.Status() - operation = operations_pb2.Operation( - name="operations/test_import_product_sets_exception", done=True - ) - operation.error.CopyFrom(error) - - # Mock the API response - channel = ChannelStub(responses=[operation]) - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = vision_v1.ProductSearchClient() - - # Setup Request - parent = client.location_path("[PROJECT]", "[LOCATION]") - input_config = {} - - response = client.import_product_sets(parent, input_config) - exception = response.exception() - assert exception.errors[0] == error - - def test_purge_products(self): - # Setup Expected Response - expected_response = {} - expected_response = empty_pb2.Empty(**expected_response) - operation = operations_pb2.Operation( - name="operations/test_purge_products", done=True - ) - operation.response.Pack(expected_response) - - # Mock the API response - channel = ChannelStub(responses=[operation]) - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = vision_v1.ProductSearchClient() - - # Setup Request - parent = client.location_path("[PROJECT]", "[LOCATION]") - - response = client.purge_products(parent) - result = response.result() - assert expected_response == result - - assert len(channel.requests) == 1 - expected_request = product_search_service_pb2.PurgeProductsRequest( - parent=parent - ) - actual_request = channel.requests[0][1] - assert expected_request == actual_request - - def test_purge_products_exception(self): - # Setup Response - error = status_pb2.Status() - operation = operations_pb2.Operation( - name="operations/test_purge_products_exception", done=True - ) - operation.error.CopyFrom(error) - - # Mock the API response - channel = ChannelStub(responses=[operation]) - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = vision_v1.ProductSearchClient() - - # Setup Request - parent = client.location_path("[PROJECT]", "[LOCATION]") - - response = client.purge_products(parent) - exception = response.exception() - assert exception.errors[0] == error From 30b1e7373a30e9bc9e53fd8953aca97ad1f11995 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Wed, 24 Jun 2020 18:36:46 -0700 Subject: [PATCH 20/25] fix(python): change autodoc_default_flags to autodoc_default_options Source-Author: HemangChothani <50404902+HemangChothani@users.noreply.github.com> Source-Date: Thu Jun 18 22:50:02 2020 +0530 Source-Repo: googleapis/synthtool Source-Sha: cd522c3b4dde821766d95c80ae5aeb43d7a41170 Source-Link: https://github.com/googleapis/synthtool/commit/cd522c3b4dde821766d95c80ae5aeb43d7a41170 --- docs/conf.py | 2 +- synth.metadata | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 9f004c75..e9ddc0ed 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -43,7 +43,7 @@ # autodoc/autosummary flags autoclass_content = "both" -autodoc_default_flags = ["members"] +autodoc_default_options = {"members": True} autosummary_generate = True diff --git a/synth.metadata b/synth.metadata index e2d54860..37bc7075 100644 --- a/synth.metadata +++ b/synth.metadata @@ -11,15 +11,15 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "d810c1d73c25b2a0051c26bc960e0044ebf939b1", - "internalRef": "317109460" + "sha": "fa4d2ecd0804eb92f27a65fe65ce2a554a361b93", + "internalRef": "317110673" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "b10590a4a1568548dd13cfcea9aa11d40898144b" + "sha": "cd522c3b4dde821766d95c80ae5aeb43d7a41170" } } ], From f53de49bdf0fcaaea5183f5f406616ea5f9c6287 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Wed, 24 Jun 2020 18:41:36 -0700 Subject: [PATCH 21/25] feat(python): add defaults for microgenerator libraries Source-Author: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Source-Date: Mon Jun 22 17:56:27 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: db4f15fedc76e04018e6e43ec403e804e1142158 Source-Link: https://github.com/googleapis/synthtool/commit/db4f15fedc76e04018e6e43ec403e804e1142158 --- noxfile.py | 3 +-- synth.metadata | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/noxfile.py b/noxfile.py index 6b1be097..7155453b 100644 --- a/noxfile.py +++ b/noxfile.py @@ -65,8 +65,7 @@ def lint_setup_py(session): def default(session): - # Install all test dependencies, then install this package in-place. - session.install("mock", "pytest", "pytest-cov") + # Install all test dependencies, then install this package in-place.session.install("mock", "pytest", "pytest-cov") session.install("-e", ".") # Run py.test against the unit tests. diff --git a/synth.metadata b/synth.metadata index 37bc7075..f3e85df7 100644 --- a/synth.metadata +++ b/synth.metadata @@ -11,15 +11,15 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "fa4d2ecd0804eb92f27a65fe65ce2a554a361b93", - "internalRef": "317110673" + "sha": "5b85137bf6fb01dcf8a949a6a04eee6ed0c22bec", + "internalRef": "317760971" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "cd522c3b4dde821766d95c80ae5aeb43d7a41170" + "sha": "db4f15fedc76e04018e6e43ec403e804e1142158" } } ], From fcaa6c6555fe34ccb146bf1197e23a36a97f82a9 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Wed, 24 Jun 2020 18:44:23 -0700 Subject: [PATCH 22/25] chore(python): fix line breaks in template and use newer black version * chore(python): fix line breaks in template * fix: also update black version Source-Author: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Source-Date: Tue Jun 23 02:33:35 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: cf2eff09d0f5319a4dc5cdce2b6356d85af4a798 Source-Link: https://github.com/googleapis/synthtool/commit/cf2eff09d0f5319a4dc5cdce2b6356d85af4a798 --- docs/conf.py | 2 +- google/cloud/vision_v1/__init__.py | 7 +++- .../vision_v1/gapic/image_annotator_client.py | 16 +++---- .../vision_v1/gapic/product_search_client.py | 42 +++++++++---------- .../image_annotator_grpc_transport.py | 6 ++- .../product_search_grpc_transport.py | 4 +- google/cloud/vision_v1/proto/geometry_pb2.py | 2 +- .../vision_v1/proto/image_annotator_pb2.py | 34 +++++++-------- .../proto/product_search_service_pb2.py | 26 ++++++------ .../vision_v1/proto/text_annotation_pb2.py | 4 +- .../vision_v1/proto/web_detection_pb2.py | 2 +- google/cloud/vision_v1p1beta1/__init__.py | 6 ++- .../gapic/image_annotator_client.py | 10 ++--- .../image_annotator_grpc_transport.py | 6 ++- .../vision_v1p1beta1/proto/geometry_pb2.py | 2 +- .../proto/image_annotator_pb2.py | 24 +++++------ .../proto/image_annotator_pb2_grpc.py | 2 +- .../proto/text_annotation_pb2.py | 4 +- .../proto/web_detection_pb2.py | 2 +- google/cloud/vision_v1p1beta1/types.py | 8 +++- google/cloud/vision_v1p2beta1/__init__.py | 6 ++- .../gapic/image_annotator_client.py | 12 +++--- .../image_annotator_grpc_transport.py | 6 ++- .../proto/image_annotator_pb2.py | 34 +++++++-------- .../proto/text_annotation_pb2.py | 4 +- .../proto/web_detection_pb2.py | 2 +- google/cloud/vision_v1p3beta1/__init__.py | 7 +++- .../gapic/image_annotator_client.py | 12 +++--- .../gapic/product_search_client.py | 42 +++++++++---------- .../image_annotator_grpc_transport.py | 6 ++- .../product_search_grpc_transport.py | 4 +- .../vision_v1p3beta1/proto/geometry_pb2.py | 4 +- .../proto/image_annotator_pb2.py | 34 +++++++-------- .../proto/product_search_pb2.py | 2 +- .../proto/product_search_service_pb2.py | 22 +++++----- .../proto/text_annotation_pb2.py | 4 +- .../proto/web_detection_pb2.py | 2 +- google/cloud/vision_v1p4beta1/__init__.py | 7 +++- .../gapic/image_annotator_client.py | 16 +++---- .../gapic/product_search_client.py | 42 +++++++++---------- .../image_annotator_grpc_transport.py | 6 ++- .../product_search_grpc_transport.py | 4 +- .../cloud/vision_v1p4beta1/proto/face_pb2.py | 2 +- .../vision_v1p4beta1/proto/geometry_pb2.py | 2 +- .../proto/image_annotator_pb2.py | 40 +++++++++--------- .../proto/product_search_service_pb2.py | 26 ++++++------ .../proto/text_annotation_pb2.py | 4 +- .../proto/web_detection_pb2.py | 2 +- noxfile.py | 13 ++++-- synth.metadata | 6 +-- 50 files changed, 313 insertions(+), 269 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index e9ddc0ed..aa411bea 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -337,7 +337,7 @@ intersphinx_mapping = { "python": ("http://python.readthedocs.org/en/latest/", None), "google-auth": ("https://google-auth.readthedocs.io/en/stable", None), - "google.api_core": ("https://googleapis.dev/python/google-api-core/latest/", None), + "google.api_core": ("https://googleapis.dev/python/google-api-core/latest/", None,), "grpc": ("https://grpc.io/grpc/python/", None), } diff --git a/google/cloud/vision_v1/__init__.py b/google/cloud/vision_v1/__init__.py index 19e399b3..7714adb4 100644 --- a/google/cloud/vision_v1/__init__.py +++ b/google/cloud/vision_v1/__init__.py @@ -48,4 +48,9 @@ class ImageAnnotatorClient(VisionHelpers, iac.ImageAnnotatorClient): enums = enums -__all__ = ("enums", "types", "ProductSearchClient", "ImageAnnotatorClient") +__all__ = ( + "enums", + "types", + "ProductSearchClient", + "ImageAnnotatorClient", +) diff --git a/google/cloud/vision_v1/gapic/image_annotator_client.py b/google/cloud/vision_v1/gapic/image_annotator_client.py index 7f775ced..d56c69f2 100644 --- a/google/cloud/vision_v1/gapic/image_annotator_client.py +++ b/google/cloud/vision_v1/gapic/image_annotator_client.py @@ -42,7 +42,7 @@ from google.protobuf import field_mask_pb2 -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution("google-cloud-vision").version +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution("google-cloud-vision",).version class ImageAnnotatorClient(object): @@ -166,12 +166,12 @@ def __init__( self.transport = transport else: self.transport = image_annotator_grpc_transport.ImageAnnotatorGrpcTransport( - address=api_endpoint, channel=channel, credentials=credentials + address=api_endpoint, channel=channel, credentials=credentials, ) if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION + gapic_version=_GAPIC_LIBRARY_VERSION, ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION @@ -182,7 +182,7 @@ def __init__( # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config["interfaces"][self._INTERFACE_NAME] + client_config["interfaces"][self._INTERFACE_NAME], ) # Save a dictionary of cached API call functions. @@ -266,7 +266,7 @@ def batch_annotate_files( ) request = image_annotator_pb2.BatchAnnotateFilesRequest( - requests=requests, parent=parent + requests=requests, parent=parent, ) if metadata is None: metadata = [] @@ -381,7 +381,7 @@ def async_batch_annotate_images( ) request = image_annotator_pb2.AsyncBatchAnnotateImagesRequest( - requests=requests, output_config=output_config, parent=parent + requests=requests, output_config=output_config, parent=parent, ) if metadata is None: metadata = [] @@ -487,7 +487,7 @@ def async_batch_annotate_files( ) request = image_annotator_pb2.AsyncBatchAnnotateFilesRequest( - requests=requests, parent=parent + requests=requests, parent=parent, ) if metadata is None: metadata = [] @@ -579,7 +579,7 @@ def batch_annotate_images( ) request = image_annotator_pb2.BatchAnnotateImagesRequest( - requests=requests, parent=parent + requests=requests, parent=parent, ) if metadata is None: metadata = [] diff --git a/google/cloud/vision_v1/gapic/product_search_client.py b/google/cloud/vision_v1/gapic/product_search_client.py index 14c44a0a..123d2949 100644 --- a/google/cloud/vision_v1/gapic/product_search_client.py +++ b/google/cloud/vision_v1/gapic/product_search_client.py @@ -44,7 +44,7 @@ from google.protobuf import field_mask_pb2 -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution("google-cloud-vision").version +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution("google-cloud-vision",).version class ProductSearchClient(object): @@ -219,12 +219,12 @@ def __init__( self.transport = transport else: self.transport = product_search_grpc_transport.ProductSearchGrpcTransport( - address=api_endpoint, channel=channel, credentials=credentials + address=api_endpoint, channel=channel, credentials=credentials, ) if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION + gapic_version=_GAPIC_LIBRARY_VERSION, ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION @@ -235,7 +235,7 @@ def __init__( # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config["interfaces"][self._INTERFACE_NAME] + client_config["interfaces"][self._INTERFACE_NAME], ) # Save a dictionary of cached API call functions. @@ -326,7 +326,7 @@ def import_product_sets( ) request = product_search_service_pb2.ImportProductSetsRequest( - parent=parent, input_config=input_config + parent=parent, input_config=input_config, ) if metadata is None: metadata = [] @@ -556,7 +556,7 @@ def create_product_set( ) request = product_search_service_pb2.CreateProductSetRequest( - parent=parent, product_set=product_set, product_set_id=product_set_id + parent=parent, product_set=product_set, product_set_id=product_set_id, ) if metadata is None: metadata = [] @@ -655,7 +655,7 @@ def list_product_sets( ) request = product_search_service_pb2.ListProductSetsRequest( - parent=parent, page_size=page_size + parent=parent, page_size=page_size, ) if metadata is None: metadata = [] @@ -743,7 +743,7 @@ def get_product_set( client_info=self._client_info, ) - request = product_search_service_pb2.GetProductSetRequest(name=name) + request = product_search_service_pb2.GetProductSetRequest(name=name,) if metadata is None: metadata = [] metadata = list(metadata) @@ -831,7 +831,7 @@ def update_product_set( ) request = product_search_service_pb2.UpdateProductSetRequest( - product_set=product_set, update_mask=update_mask + product_set=product_set, update_mask=update_mask, ) if metadata is None: metadata = [] @@ -904,7 +904,7 @@ def delete_product_set( client_info=self._client_info, ) - request = product_search_service_pb2.DeleteProductSetRequest(name=name) + request = product_search_service_pb2.DeleteProductSetRequest(name=name,) if metadata is None: metadata = [] metadata = list(metadata) @@ -997,7 +997,7 @@ def create_product( ) request = product_search_service_pb2.CreateProductRequest( - parent=parent, product=product, product_id=product_id + parent=parent, product=product, product_id=product_id, ) if metadata is None: metadata = [] @@ -1097,7 +1097,7 @@ def list_products( ) request = product_search_service_pb2.ListProductsRequest( - parent=parent, page_size=page_size + parent=parent, page_size=page_size, ) if metadata is None: metadata = [] @@ -1184,7 +1184,7 @@ def get_product( client_info=self._client_info, ) - request = product_search_service_pb2.GetProductRequest(name=name) + request = product_search_service_pb2.GetProductRequest(name=name,) if metadata is None: metadata = [] metadata = list(metadata) @@ -1281,7 +1281,7 @@ def update_product( ) request = product_search_service_pb2.UpdateProductRequest( - product=product, update_mask=update_mask + product=product, update_mask=update_mask, ) if metadata is None: metadata = [] @@ -1354,7 +1354,7 @@ def delete_product( client_info=self._client_info, ) - request = product_search_service_pb2.DeleteProductRequest(name=name) + request = product_search_service_pb2.DeleteProductRequest(name=name,) if metadata is None: metadata = [] metadata = list(metadata) @@ -1540,7 +1540,7 @@ def delete_reference_image( client_info=self._client_info, ) - request = product_search_service_pb2.DeleteReferenceImageRequest(name=name) + request = product_search_service_pb2.DeleteReferenceImageRequest(name=name,) if metadata is None: metadata = [] metadata = list(metadata) @@ -1640,7 +1640,7 @@ def list_reference_images( ) request = product_search_service_pb2.ListReferenceImagesRequest( - parent=parent, page_size=page_size + parent=parent, page_size=page_size, ) if metadata is None: metadata = [] @@ -1729,7 +1729,7 @@ def get_reference_image( client_info=self._client_info, ) - request = product_search_service_pb2.GetReferenceImageRequest(name=name) + request = product_search_service_pb2.GetReferenceImageRequest(name=name,) if metadata is None: metadata = [] metadata = list(metadata) @@ -1812,7 +1812,7 @@ def add_product_to_product_set( ) request = product_search_service_pb2.AddProductToProductSetRequest( - name=name, product=product + name=name, product=product, ) if metadata is None: metadata = [] @@ -1891,7 +1891,7 @@ def remove_product_from_product_set( ) request = product_search_service_pb2.RemoveProductFromProductSetRequest( - name=name, product=product + name=name, product=product, ) if metadata is None: metadata = [] @@ -1995,7 +1995,7 @@ def list_products_in_product_set( ) request = product_search_service_pb2.ListProductsInProductSetRequest( - name=name, page_size=page_size + name=name, page_size=page_size, ) if metadata is None: metadata = [] diff --git a/google/cloud/vision_v1/gapic/transports/image_annotator_grpc_transport.py b/google/cloud/vision_v1/gapic/transports/image_annotator_grpc_transport.py index 51c3f06e..de1ef61f 100644 --- a/google/cloud/vision_v1/gapic/transports/image_annotator_grpc_transport.py +++ b/google/cloud/vision_v1/gapic/transports/image_annotator_grpc_transport.py @@ -57,7 +57,7 @@ def __init__( # exception (channels come with credentials baked in already). if channel is not None and credentials is not None: raise ValueError( - "The `channel` and `credentials` arguments are mutually " "exclusive." + "The `channel` and `credentials` arguments are mutually " "exclusive.", ) # Create the channel. @@ -76,7 +76,9 @@ def __init__( # gRPC uses objects called "stubs" that are bound to the # channel and provide a basic method for each RPC. self._stubs = { - "image_annotator_stub": image_annotator_pb2_grpc.ImageAnnotatorStub(channel) + "image_annotator_stub": image_annotator_pb2_grpc.ImageAnnotatorStub( + channel + ), } # Because this API includes a method that returns a diff --git a/google/cloud/vision_v1/gapic/transports/product_search_grpc_transport.py b/google/cloud/vision_v1/gapic/transports/product_search_grpc_transport.py index 26ab0306..b237d0a9 100644 --- a/google/cloud/vision_v1/gapic/transports/product_search_grpc_transport.py +++ b/google/cloud/vision_v1/gapic/transports/product_search_grpc_transport.py @@ -57,7 +57,7 @@ def __init__( # exception (channels come with credentials baked in already). if channel is not None and credentials is not None: raise ValueError( - "The `channel` and `credentials` arguments are mutually " "exclusive." + "The `channel` and `credentials` arguments are mutually " "exclusive.", ) # Create the channel. @@ -78,7 +78,7 @@ def __init__( self._stubs = { "product_search_stub": product_search_service_pb2_grpc.ProductSearchStub( channel - ) + ), } # Because this API includes a method that returns a diff --git a/google/cloud/vision_v1/proto/geometry_pb2.py b/google/cloud/vision_v1/proto/geometry_pb2.py index f17825e6..87b7eab7 100644 --- a/google/cloud/vision_v1/proto/geometry_pb2.py +++ b/google/cloud/vision_v1/proto/geometry_pb2.py @@ -22,7 +22,7 @@ serialized_options=b"\n\032com.google.cloud.vision.v1B\rGeometryProtoP\001Z Date: Wed, 24 Jun 2020 18:51:25 -0700 Subject: [PATCH 23/25] chore: update grpc to v1.30.0 PiperOrigin-RevId: 317949519 Source-Author: Google APIs Source-Date: Tue Jun 23 15:22:22 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: 7157f9552747421572cf1ab3aec1105c05ebd4f9 Source-Link: https://github.com/googleapis/googleapis/commit/7157f9552747421572cf1ab3aec1105c05ebd4f9 --- .../vision_v1/proto/geometry_pb2_grpc.py | 1 + .../proto/image_annotator_pb2_grpc.py | 175 +++- .../proto/product_search_pb2_grpc.py | 1 + .../proto/product_search_service_pb2_grpc.py | 819 ++++++++++++++--- .../proto/text_annotation_pb2_grpc.py | 1 + .../vision_v1/proto/web_detection_pb2_grpc.py | 1 + .../proto/geometry_pb2_grpc.py | 1 + .../proto/image_annotator_pb2_grpc.py | 56 +- .../proto/text_annotation_pb2_grpc.py | 1 + .../proto/web_detection_pb2_grpc.py | 1 + .../proto/geometry_pb2_grpc.py | 1 + .../proto/image_annotator_pb2_grpc.py | 95 +- .../proto/text_annotation_pb2_grpc.py | 1 + .../proto/web_detection_pb2_grpc.py | 1 + .../proto/geometry_pb2_grpc.py | 1 + .../proto/image_annotator_pb2_grpc.py | 95 +- .../proto/product_search_pb2_grpc.py | 1 + .../proto/product_search_service_pb2_grpc.py | 758 +++++++++++++--- .../proto/text_annotation_pb2_grpc.py | 1 + .../proto/web_detection_pb2_grpc.py | 1 + .../vision_v1p4beta1/proto/face_pb2_grpc.py | 1 + .../proto/geometry_pb2_grpc.py | 1 + .../proto/image_annotator_pb2_grpc.py | 175 +++- .../proto/product_search_pb2_grpc.py | 1 + .../proto/product_search_service_pb2_grpc.py | 839 ++++++++++++++---- .../proto/text_annotation_pb2_grpc.py | 1 + .../proto/web_detection_pb2_grpc.py | 1 + synth.metadata | 6 +- 28 files changed, 2514 insertions(+), 523 deletions(-) diff --git a/google/cloud/vision_v1/proto/geometry_pb2_grpc.py b/google/cloud/vision_v1/proto/geometry_pb2_grpc.py index 07cb78fe..8a939394 100644 --- a/google/cloud/vision_v1/proto/geometry_pb2_grpc.py +++ b/google/cloud/vision_v1/proto/geometry_pb2_grpc.py @@ -1,2 +1,3 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" import grpc diff --git a/google/cloud/vision_v1/proto/image_annotator_pb2_grpc.py b/google/cloud/vision_v1/proto/image_annotator_pb2_grpc.py index 01068cb9..8e0ca4d0 100644 --- a/google/cloud/vision_v1/proto/image_annotator_pb2_grpc.py +++ b/google/cloud/vision_v1/proto/image_annotator_pb2_grpc.py @@ -1,4 +1,5 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" import grpc from google.cloud.vision_v1.proto import ( @@ -11,16 +12,16 @@ class ImageAnnotatorStub(object): """Service that performs Google Cloud Vision API detection tasks over client - images, such as face, landmark, logo, label, and text detection. The - ImageAnnotator service returns detected entities from the images. - """ + images, such as face, landmark, logo, label, and text detection. The + ImageAnnotator service returns detected entities from the images. + """ def __init__(self, channel): """Constructor. - Args: - channel: A grpc.Channel. - """ + Args: + channel: A grpc.Channel. + """ self.BatchAnnotateImages = channel.unary_unary( "/google.cloud.vision.v1.ImageAnnotator/BatchAnnotateImages", request_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesRequest.SerializeToString, @@ -45,26 +46,26 @@ def __init__(self, channel): class ImageAnnotatorServicer(object): """Service that performs Google Cloud Vision API detection tasks over client - images, such as face, landmark, logo, label, and text detection. The - ImageAnnotator service returns detected entities from the images. - """ + images, such as face, landmark, logo, label, and text detection. The + ImageAnnotator service returns detected entities from the images. + """ def BatchAnnotateImages(self, request, context): """Run image detection and annotation for a batch of images. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def BatchAnnotateFiles(self, request, context): """Service that performs image detection and annotation for a batch of files. - Now only "application/pdf", "image/tiff" and "image/gif" are supported. + Now only "application/pdf", "image/tiff" and "image/gif" are supported. - This service will extract at most 5 (customers can specify which 5 in - AnnotateFileRequest.pages) frames (gif) or pages (pdf or tiff) from each - file provided and perform detection and annotation for each image - extracted. - """ + This service will extract at most 5 (customers can specify which 5 in + AnnotateFileRequest.pages) frames (gif) or pages (pdf or tiff) from each + file provided and perform detection and annotation for each image + extracted. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -72,26 +73,26 @@ def BatchAnnotateFiles(self, request, context): def AsyncBatchAnnotateImages(self, request, context): """Run asynchronous image detection and annotation for a list of images. - Progress and results can be retrieved through the - `google.longrunning.Operations` interface. - `Operation.metadata` contains `OperationMetadata` (metadata). - `Operation.response` contains `AsyncBatchAnnotateImagesResponse` (results). + Progress and results can be retrieved through the + `google.longrunning.Operations` interface. + `Operation.metadata` contains `OperationMetadata` (metadata). + `Operation.response` contains `AsyncBatchAnnotateImagesResponse` (results). - This service will write image annotation outputs to json files in customer - GCS bucket, each json file containing BatchAnnotateImagesResponse proto. - """ + This service will write image annotation outputs to json files in customer + GCS bucket, each json file containing BatchAnnotateImagesResponse proto. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def AsyncBatchAnnotateFiles(self, request, context): """Run asynchronous image detection and annotation for a list of generic - files, such as PDF files, which may contain multiple pages and multiple - images per page. Progress and results can be retrieved through the - `google.longrunning.Operations` interface. - `Operation.metadata` contains `OperationMetadata` (metadata). - `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results). - """ + files, such as PDF files, which may contain multiple pages and multiple + images per page. Progress and results can be retrieved through the + `google.longrunning.Operations` interface. + `Operation.metadata` contains `OperationMetadata` (metadata). + `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results). + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -124,3 +125,119 @@ def add_ImageAnnotatorServicer_to_server(servicer, server): "google.cloud.vision.v1.ImageAnnotator", rpc_method_handlers ) server.add_generic_rpc_handlers((generic_handler,)) + + +# This class is part of an EXPERIMENTAL API. +class ImageAnnotator(object): + """Service that performs Google Cloud Vision API detection tasks over client + images, such as face, landmark, logo, label, and text detection. The + ImageAnnotator service returns detected entities from the images. + """ + + @staticmethod + def BatchAnnotateImages( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1.ImageAnnotator/BatchAnnotateImages", + google_dot_cloud_dot_vision__v1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesRequest.SerializeToString, + google_dot_cloud_dot_vision__v1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesResponse.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def BatchAnnotateFiles( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1.ImageAnnotator/BatchAnnotateFiles", + google_dot_cloud_dot_vision__v1_dot_proto_dot_image__annotator__pb2.BatchAnnotateFilesRequest.SerializeToString, + google_dot_cloud_dot_vision__v1_dot_proto_dot_image__annotator__pb2.BatchAnnotateFilesResponse.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def AsyncBatchAnnotateImages( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1.ImageAnnotator/AsyncBatchAnnotateImages", + google_dot_cloud_dot_vision__v1_dot_proto_dot_image__annotator__pb2.AsyncBatchAnnotateImagesRequest.SerializeToString, + google_dot_longrunning_dot_operations__pb2.Operation.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def AsyncBatchAnnotateFiles( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1.ImageAnnotator/AsyncBatchAnnotateFiles", + google_dot_cloud_dot_vision__v1_dot_proto_dot_image__annotator__pb2.AsyncBatchAnnotateFilesRequest.SerializeToString, + google_dot_longrunning_dot_operations__pb2.Operation.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) diff --git a/google/cloud/vision_v1/proto/product_search_pb2_grpc.py b/google/cloud/vision_v1/proto/product_search_pb2_grpc.py index 07cb78fe..8a939394 100644 --- a/google/cloud/vision_v1/proto/product_search_pb2_grpc.py +++ b/google/cloud/vision_v1/proto/product_search_pb2_grpc.py @@ -1,2 +1,3 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" import grpc diff --git a/google/cloud/vision_v1/proto/product_search_service_pb2_grpc.py b/google/cloud/vision_v1/proto/product_search_service_pb2_grpc.py index d40d1a11..61dd1660 100644 --- a/google/cloud/vision_v1/proto/product_search_service_pb2_grpc.py +++ b/google/cloud/vision_v1/proto/product_search_service_pb2_grpc.py @@ -1,4 +1,5 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" import grpc from google.cloud.vision_v1.proto import ( @@ -12,27 +13,27 @@ class ProductSearchStub(object): """Manages Products and ProductSets of reference images for use in product - search. It uses the following resource model: + 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, + In parallel, - - The API has a collection of [Product][google.cloud.vision.v1.Product] resources, named - `projects/*/locations/*/products/*` + - 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 - `projects/*/locations/*/products/*/referenceImages/*` - """ + - Each [Product][google.cloud.vision.v1.Product] has a collection of [ReferenceImage][google.cloud.vision.v1.ReferenceImage] resources, named + `projects/*/locations/*/products/*/referenceImages/*` + """ def __init__(self, channel): """Constructor. - Args: - channel: A grpc.Channel. - """ + Args: + channel: A grpc.Channel. + """ self.CreateProductSet = channel.unary_unary( "/google.cloud.vision.v1.ProductSearch/CreateProductSet", request_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.CreateProductSetRequest.SerializeToString, @@ -132,29 +133,29 @@ def __init__(self, channel): class ProductSearchServicer(object): """Manages Products and ProductSets of reference images for use in product - search. It uses the following resource model: + 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, + In parallel, - - The API has a collection of [Product][google.cloud.vision.v1.Product] resources, named - `projects/*/locations/*/products/*` + - 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 - `projects/*/locations/*/products/*/referenceImages/*` - """ + - Each [Product][google.cloud.vision.v1.Product] has a collection of [ReferenceImage][google.cloud.vision.v1.ReferenceImage] resources, named + `projects/*/locations/*/products/*/referenceImages/*` + """ def CreateProductSet(self, request, context): """Creates and returns a new ProductSet resource. - Possible errors: + Possible errors: - * Returns INVALID_ARGUMENT if display_name is missing, or is longer than - 4096 characters. - """ + * Returns INVALID_ARGUMENT if display_name is missing, or is longer than + 4096 characters. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -162,11 +163,11 @@ def CreateProductSet(self, request, context): def ListProductSets(self, request, context): """Lists ProductSets in an unspecified order. - Possible errors: + Possible errors: - * Returns INVALID_ARGUMENT if page_size is greater than 100, or less - than 1. - """ + * Returns INVALID_ARGUMENT if page_size is greater than 100, or less + than 1. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -174,34 +175,34 @@ def ListProductSets(self, request, context): def GetProductSet(self, request, context): """Gets information associated with a ProductSet. - Possible errors: + Possible errors: - * Returns NOT_FOUND if the ProductSet does not exist. - """ + * Returns NOT_FOUND if the ProductSet does not exist. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def UpdateProductSet(self, request, context): """Makes changes to a ProductSet resource. - Only display_name can be updated currently. + Only display_name can be updated currently. - Possible errors: + Possible errors: - * Returns NOT_FOUND if the ProductSet does not exist. - * Returns INVALID_ARGUMENT if display_name is present in update_mask but - missing from the request or longer than 4096 characters. - """ + * Returns NOT_FOUND if the ProductSet does not exist. + * Returns INVALID_ARGUMENT if display_name is present in update_mask but + missing from the request or longer than 4096 characters. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def DeleteProductSet(self, request, context): """Permanently deletes a ProductSet. Products and ReferenceImages in the - ProductSet are not deleted. + ProductSet are not deleted. - The actual image files are not deleted from Google Cloud Storage. - """ + The actual image files are not deleted from Google Cloud Storage. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -209,13 +210,13 @@ def DeleteProductSet(self, request, context): def CreateProduct(self, request, context): """Creates and returns a new product resource. - Possible errors: + Possible errors: - * Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 - characters. - * Returns INVALID_ARGUMENT if description is longer than 4096 characters. - * Returns INVALID_ARGUMENT if product_category is missing or invalid. - """ + * Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 + characters. + * Returns INVALID_ARGUMENT if description is longer than 4096 characters. + * Returns INVALID_ARGUMENT if product_category is missing or invalid. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -223,10 +224,10 @@ def CreateProduct(self, request, context): def ListProducts(self, request, context): """Lists products in an unspecified order. - Possible errors: + Possible errors: - * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. - """ + * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -234,31 +235,31 @@ def ListProducts(self, request, context): def GetProduct(self, request, context): """Gets information associated with a Product. - Possible errors: + Possible errors: - * Returns NOT_FOUND if the Product does not exist. - """ + * Returns NOT_FOUND if the Product does not exist. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def UpdateProduct(self, request, context): """Makes changes to a Product resource. - Only the `display_name`, `description`, and `labels` fields can be updated - right now. + Only the `display_name`, `description`, and `labels` fields can be updated + right now. - If labels are updated, the change will not be reflected in queries until - the next index time. + If labels are updated, the change will not be reflected in queries until + the next index time. - Possible errors: + Possible errors: - * Returns NOT_FOUND if the Product does not exist. - * Returns INVALID_ARGUMENT if display_name is present in update_mask but is - missing from the request or longer than 4096 characters. - * Returns INVALID_ARGUMENT if description is present in update_mask but is - longer than 4096 characters. - * Returns INVALID_ARGUMENT if product_category is present in update_mask. - """ + * Returns NOT_FOUND if the Product does not exist. + * Returns INVALID_ARGUMENT if display_name is present in update_mask but is + missing from the request or longer than 4096 characters. + * Returns INVALID_ARGUMENT if description is present in update_mask but is + longer than 4096 characters. + * Returns INVALID_ARGUMENT if product_category is present in update_mask. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -266,10 +267,10 @@ def UpdateProduct(self, request, context): def DeleteProduct(self, request, context): """Permanently deletes a product and its reference images. - Metadata of the product and all its images will be deleted right away, but - search queries against ProductSets containing the product may still work - until all related caches are refreshed. - """ + Metadata of the product and all its images will be deleted right away, but + search queries against ProductSets containing the product may still work + until all related caches are refreshed. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -277,24 +278,24 @@ def DeleteProduct(self, request, context): def CreateReferenceImage(self, request, context): """Creates and returns a new ReferenceImage resource. - The `bounding_poly` field is optional. If `bounding_poly` is not specified, - the system will try to detect regions of interest in the image that are - compatible with the product_category on the parent product. If it is - specified, detection is ALWAYS skipped. The system converts polygons into - non-rotated rectangles. + The `bounding_poly` field is optional. If `bounding_poly` is not specified, + the system will try to detect regions of interest in the image that are + compatible with the product_category on the parent product. If it is + specified, detection is ALWAYS skipped. The system converts polygons into + non-rotated rectangles. - Note that the pipeline will resize the image if the image resolution is too - large to process (above 50MP). + Note that the pipeline will resize the image if the image resolution is too + large to process (above 50MP). - Possible errors: + Possible errors: - * Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 - characters. - * Returns INVALID_ARGUMENT if the product does not exist. - * 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. - """ + * Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 + characters. + * Returns INVALID_ARGUMENT if the product does not exist. + * 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. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -302,12 +303,12 @@ def CreateReferenceImage(self, request, context): def DeleteReferenceImage(self, request, context): """Permanently deletes a reference image. - The image metadata will be deleted right away, but search queries - against ProductSets containing the image may still work until all related - caches are refreshed. + The image metadata will be deleted right away, but search queries + against ProductSets containing the image may still work until all related + caches are refreshed. - The actual image files are not deleted from Google Cloud Storage. - """ + The actual image files are not deleted from Google Cloud Storage. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -315,12 +316,12 @@ def DeleteReferenceImage(self, request, context): def ListReferenceImages(self, request, context): """Lists reference images. - Possible errors: + Possible errors: - * 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. - """ + * 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. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -328,91 +329,91 @@ def ListReferenceImages(self, request, context): def GetReferenceImage(self, request, context): """Gets information associated with a ReferenceImage. - Possible errors: + Possible errors: - * Returns NOT_FOUND if the specified image does not exist. - """ + * Returns NOT_FOUND if the specified image does not exist. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def AddProductToProductSet(self, request, context): """Adds a Product to the specified ProductSet. If the Product is already - present, no change is made. + present, no change is made. - One Product can be added to at most 100 ProductSets. + One Product can be added to at most 100 ProductSets. - Possible errors: + Possible errors: - * Returns NOT_FOUND if the Product or the ProductSet doesn't exist. - """ + * Returns NOT_FOUND if the Product or the ProductSet doesn't exist. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def RemoveProductFromProductSet(self, request, context): """Removes a Product from the specified ProductSet. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def ListProductsInProductSet(self, request, context): """Lists the Products in a ProductSet, in an unspecified order. If the - ProductSet does not exist, the products field of the response will be - empty. + ProductSet does not exist, the products field of the response will be + empty. - Possible errors: + Possible errors: - * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. - """ + * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def ImportProductSets(self, request, context): """Asynchronous API that imports a list of reference images to specified - product sets based on a list of image information. + 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. - `Operation.metadata` contains `BatchOperationMetadata`. (progress) - `Operation.response` contains `ImportProductSetsResponse`. (results) + 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]. - """ + 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]. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def PurgeProducts(self, request, context): """Asynchronous API to delete all Products in a ProductSet or all Products - that are in no ProductSet. - - If a Product is a member of the specified ProductSet in addition to other - ProductSets, the Product will still be deleted. - - It is recommended to not delete the specified ProductSet until after this - operation has completed. It is also recommended to not add any of the - Products involved in the batch delete to a new ProductSet while this - operation is running because those Products may still end up deleted. - - It's not possible to undo the PurgeProducts operation. Therefore, it is - recommended to keep the csv files used in ImportProductSets (if that was - how you originally built the Product Set) before starting PurgeProducts, in - case you need to re-import the data after deletion. - - If the plan is to purge all of the Products from a ProductSet and then - re-use the empty ProductSet to re-import new Products into the empty - ProductSet, you must wait until the PurgeProducts operation has finished - for that ProductSet. - - The [google.longrunning.Operation][google.longrunning.Operation] API can be used to keep track of the - progress and results of the request. - `Operation.metadata` contains `BatchOperationMetadata`. (progress) - """ + that are in no ProductSet. + + If a Product is a member of the specified ProductSet in addition to other + ProductSets, the Product will still be deleted. + + It is recommended to not delete the specified ProductSet until after this + operation has completed. It is also recommended to not add any of the + Products involved in the batch delete to a new ProductSet while this + operation is running because those Products may still end up deleted. + + It's not possible to undo the PurgeProducts operation. Therefore, it is + recommended to keep the csv files used in ImportProductSets (if that was + how you originally built the Product Set) before starting PurgeProducts, in + case you need to re-import the data after deletion. + + If the plan is to purge all of the Products from a ProductSet and then + re-use the empty ProductSet to re-import new Products into the empty + ProductSet, you must wait until the PurgeProducts operation has finished + for that ProductSet. + + The [google.longrunning.Operation][google.longrunning.Operation] API can be used to keep track of the + progress and results of the request. + `Operation.metadata` contains `BatchOperationMetadata`. (progress) + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -520,3 +521,535 @@ def add_ProductSearchServicer_to_server(servicer, server): "google.cloud.vision.v1.ProductSearch", rpc_method_handlers ) server.add_generic_rpc_handlers((generic_handler,)) + + +# This class is part of an EXPERIMENTAL API. +class ProductSearch(object): + """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. + + In parallel, + + - 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 + `projects/*/locations/*/products/*/referenceImages/*` + """ + + @staticmethod + def CreateProductSet( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1.ProductSearch/CreateProductSet", + google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.CreateProductSetRequest.SerializeToString, + google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ProductSet.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def ListProductSets( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1.ProductSearch/ListProductSets", + google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ListProductSetsRequest.SerializeToString, + google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ListProductSetsResponse.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def GetProductSet( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1.ProductSearch/GetProductSet", + google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.GetProductSetRequest.SerializeToString, + google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ProductSet.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def UpdateProductSet( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1.ProductSearch/UpdateProductSet", + google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.UpdateProductSetRequest.SerializeToString, + google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ProductSet.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def DeleteProductSet( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1.ProductSearch/DeleteProductSet", + google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.DeleteProductSetRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def CreateProduct( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1.ProductSearch/CreateProduct", + google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.CreateProductRequest.SerializeToString, + google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.Product.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def ListProducts( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1.ProductSearch/ListProducts", + google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ListProductsRequest.SerializeToString, + google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ListProductsResponse.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def GetProduct( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1.ProductSearch/GetProduct", + google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.GetProductRequest.SerializeToString, + google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.Product.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def UpdateProduct( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1.ProductSearch/UpdateProduct", + google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.UpdateProductRequest.SerializeToString, + google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.Product.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def DeleteProduct( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1.ProductSearch/DeleteProduct", + google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.DeleteProductRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def CreateReferenceImage( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1.ProductSearch/CreateReferenceImage", + google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.CreateReferenceImageRequest.SerializeToString, + google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ReferenceImage.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def DeleteReferenceImage( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1.ProductSearch/DeleteReferenceImage", + google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.DeleteReferenceImageRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def ListReferenceImages( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1.ProductSearch/ListReferenceImages", + google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ListReferenceImagesRequest.SerializeToString, + google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ListReferenceImagesResponse.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def GetReferenceImage( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1.ProductSearch/GetReferenceImage", + google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.GetReferenceImageRequest.SerializeToString, + google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ReferenceImage.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def AddProductToProductSet( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1.ProductSearch/AddProductToProductSet", + google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.AddProductToProductSetRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def RemoveProductFromProductSet( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1.ProductSearch/RemoveProductFromProductSet", + google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.RemoveProductFromProductSetRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def ListProductsInProductSet( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1.ProductSearch/ListProductsInProductSet", + google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ListProductsInProductSetRequest.SerializeToString, + google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ListProductsInProductSetResponse.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def ImportProductSets( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1.ProductSearch/ImportProductSets", + google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.ImportProductSetsRequest.SerializeToString, + google_dot_longrunning_dot_operations__pb2.Operation.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def PurgeProducts( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1.ProductSearch/PurgeProducts", + google_dot_cloud_dot_vision__v1_dot_proto_dot_product__search__service__pb2.PurgeProductsRequest.SerializeToString, + google_dot_longrunning_dot_operations__pb2.Operation.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) diff --git a/google/cloud/vision_v1/proto/text_annotation_pb2_grpc.py b/google/cloud/vision_v1/proto/text_annotation_pb2_grpc.py index 07cb78fe..8a939394 100644 --- a/google/cloud/vision_v1/proto/text_annotation_pb2_grpc.py +++ b/google/cloud/vision_v1/proto/text_annotation_pb2_grpc.py @@ -1,2 +1,3 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" import grpc diff --git a/google/cloud/vision_v1/proto/web_detection_pb2_grpc.py b/google/cloud/vision_v1/proto/web_detection_pb2_grpc.py index 07cb78fe..8a939394 100644 --- a/google/cloud/vision_v1/proto/web_detection_pb2_grpc.py +++ b/google/cloud/vision_v1/proto/web_detection_pb2_grpc.py @@ -1,2 +1,3 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" import grpc diff --git a/google/cloud/vision_v1p1beta1/proto/geometry_pb2_grpc.py b/google/cloud/vision_v1p1beta1/proto/geometry_pb2_grpc.py index 07cb78fe..8a939394 100644 --- a/google/cloud/vision_v1p1beta1/proto/geometry_pb2_grpc.py +++ b/google/cloud/vision_v1p1beta1/proto/geometry_pb2_grpc.py @@ -1,2 +1,3 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" import grpc diff --git a/google/cloud/vision_v1p1beta1/proto/image_annotator_pb2_grpc.py b/google/cloud/vision_v1p1beta1/proto/image_annotator_pb2_grpc.py index 006fd019..ff536f98 100644 --- a/google/cloud/vision_v1p1beta1/proto/image_annotator_pb2_grpc.py +++ b/google/cloud/vision_v1p1beta1/proto/image_annotator_pb2_grpc.py @@ -1,4 +1,5 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" import grpc from google.cloud.vision_v1p1beta1.proto import ( @@ -8,16 +9,16 @@ class ImageAnnotatorStub(object): """Service that performs Google Cloud Vision API detection tasks over client - images, such as face, landmark, logo, label, and text detection. The - ImageAnnotator service returns detected entities from the images. - """ + images, such as face, landmark, logo, label, and text detection. The + ImageAnnotator service returns detected entities from the images. + """ def __init__(self, channel): """Constructor. - Args: - channel: A grpc.Channel. - """ + Args: + channel: A grpc.Channel. + """ self.BatchAnnotateImages = channel.unary_unary( "/google.cloud.vision.v1p1beta1.ImageAnnotator/BatchAnnotateImages", request_serializer=google_dot_cloud_dot_vision__v1p1beta1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesRequest.SerializeToString, @@ -27,13 +28,13 @@ def __init__(self, channel): class ImageAnnotatorServicer(object): """Service that performs Google Cloud Vision API detection tasks over client - images, such as face, landmark, logo, label, and text detection. The - ImageAnnotator service returns detected entities from the images. - """ + images, such as face, landmark, logo, label, and text detection. The + ImageAnnotator service returns detected entities from the images. + """ def BatchAnnotateImages(self, request, context): """Run image detection and annotation for a batch of images. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -51,3 +52,38 @@ def add_ImageAnnotatorServicer_to_server(servicer, server): "google.cloud.vision.v1p1beta1.ImageAnnotator", rpc_method_handlers ) server.add_generic_rpc_handlers((generic_handler,)) + + +# This class is part of an EXPERIMENTAL API. +class ImageAnnotator(object): + """Service that performs Google Cloud Vision API detection tasks over client + images, such as face, landmark, logo, label, and text detection. The + ImageAnnotator service returns detected entities from the images. + """ + + @staticmethod + def BatchAnnotateImages( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1p1beta1.ImageAnnotator/BatchAnnotateImages", + google_dot_cloud_dot_vision__v1p1beta1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesRequest.SerializeToString, + google_dot_cloud_dot_vision__v1p1beta1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesResponse.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) diff --git a/google/cloud/vision_v1p1beta1/proto/text_annotation_pb2_grpc.py b/google/cloud/vision_v1p1beta1/proto/text_annotation_pb2_grpc.py index 07cb78fe..8a939394 100644 --- a/google/cloud/vision_v1p1beta1/proto/text_annotation_pb2_grpc.py +++ b/google/cloud/vision_v1p1beta1/proto/text_annotation_pb2_grpc.py @@ -1,2 +1,3 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" import grpc diff --git a/google/cloud/vision_v1p1beta1/proto/web_detection_pb2_grpc.py b/google/cloud/vision_v1p1beta1/proto/web_detection_pb2_grpc.py index 07cb78fe..8a939394 100644 --- a/google/cloud/vision_v1p1beta1/proto/web_detection_pb2_grpc.py +++ b/google/cloud/vision_v1p1beta1/proto/web_detection_pb2_grpc.py @@ -1,2 +1,3 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" import grpc diff --git a/google/cloud/vision_v1p2beta1/proto/geometry_pb2_grpc.py b/google/cloud/vision_v1p2beta1/proto/geometry_pb2_grpc.py index 07cb78fe..8a939394 100644 --- a/google/cloud/vision_v1p2beta1/proto/geometry_pb2_grpc.py +++ b/google/cloud/vision_v1p2beta1/proto/geometry_pb2_grpc.py @@ -1,2 +1,3 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" import grpc diff --git a/google/cloud/vision_v1p2beta1/proto/image_annotator_pb2_grpc.py b/google/cloud/vision_v1p2beta1/proto/image_annotator_pb2_grpc.py index 9fb21458..cd37f887 100644 --- a/google/cloud/vision_v1p2beta1/proto/image_annotator_pb2_grpc.py +++ b/google/cloud/vision_v1p2beta1/proto/image_annotator_pb2_grpc.py @@ -1,4 +1,5 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" import grpc from google.cloud.vision_v1p2beta1.proto import ( @@ -11,16 +12,16 @@ class ImageAnnotatorStub(object): """Service that performs Google Cloud Vision API detection tasks over client - images, such as face, landmark, logo, label, and text detection. The - ImageAnnotator service returns detected entities from the images. - """ + images, such as face, landmark, logo, label, and text detection. The + ImageAnnotator service returns detected entities from the images. + """ def __init__(self, channel): """Constructor. - Args: - channel: A grpc.Channel. - """ + Args: + channel: A grpc.Channel. + """ self.BatchAnnotateImages = channel.unary_unary( "/google.cloud.vision.v1p2beta1.ImageAnnotator/BatchAnnotateImages", request_serializer=google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesRequest.SerializeToString, @@ -35,25 +36,25 @@ def __init__(self, channel): class ImageAnnotatorServicer(object): """Service that performs Google Cloud Vision API detection tasks over client - images, such as face, landmark, logo, label, and text detection. The - ImageAnnotator service returns detected entities from the images. - """ + images, such as face, landmark, logo, label, and text detection. The + ImageAnnotator service returns detected entities from the images. + """ def BatchAnnotateImages(self, request, context): """Run image detection and annotation for a batch of images. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def AsyncBatchAnnotateFiles(self, request, context): """Run async image detection and annotation for a list of generic files (e.g. - PDF) which may contain multiple pages and multiple images per page. - Progress and results can be retrieved through the - `google.longrunning.Operations` interface. - `Operation.metadata` contains `OperationMetadata` (metadata). - `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results). - """ + PDF) which may contain multiple pages and multiple images per page. + Progress and results can be retrieved through the + `google.longrunning.Operations` interface. + `Operation.metadata` contains `OperationMetadata` (metadata). + `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results). + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -76,3 +77,65 @@ def add_ImageAnnotatorServicer_to_server(servicer, server): "google.cloud.vision.v1p2beta1.ImageAnnotator", rpc_method_handlers ) server.add_generic_rpc_handlers((generic_handler,)) + + +# This class is part of an EXPERIMENTAL API. +class ImageAnnotator(object): + """Service that performs Google Cloud Vision API detection tasks over client + images, such as face, landmark, logo, label, and text detection. The + ImageAnnotator service returns detected entities from the images. + """ + + @staticmethod + def BatchAnnotateImages( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1p2beta1.ImageAnnotator/BatchAnnotateImages", + google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesRequest.SerializeToString, + google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesResponse.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def AsyncBatchAnnotateFiles( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1p2beta1.ImageAnnotator/AsyncBatchAnnotateFiles", + google_dot_cloud_dot_vision__v1p2beta1_dot_proto_dot_image__annotator__pb2.AsyncBatchAnnotateFilesRequest.SerializeToString, + google_dot_longrunning_dot_operations__pb2.Operation.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) diff --git a/google/cloud/vision_v1p2beta1/proto/text_annotation_pb2_grpc.py b/google/cloud/vision_v1p2beta1/proto/text_annotation_pb2_grpc.py index 07cb78fe..8a939394 100644 --- a/google/cloud/vision_v1p2beta1/proto/text_annotation_pb2_grpc.py +++ b/google/cloud/vision_v1p2beta1/proto/text_annotation_pb2_grpc.py @@ -1,2 +1,3 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" import grpc diff --git a/google/cloud/vision_v1p2beta1/proto/web_detection_pb2_grpc.py b/google/cloud/vision_v1p2beta1/proto/web_detection_pb2_grpc.py index 07cb78fe..8a939394 100644 --- a/google/cloud/vision_v1p2beta1/proto/web_detection_pb2_grpc.py +++ b/google/cloud/vision_v1p2beta1/proto/web_detection_pb2_grpc.py @@ -1,2 +1,3 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" import grpc diff --git a/google/cloud/vision_v1p3beta1/proto/geometry_pb2_grpc.py b/google/cloud/vision_v1p3beta1/proto/geometry_pb2_grpc.py index 07cb78fe..8a939394 100644 --- a/google/cloud/vision_v1p3beta1/proto/geometry_pb2_grpc.py +++ b/google/cloud/vision_v1p3beta1/proto/geometry_pb2_grpc.py @@ -1,2 +1,3 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" import grpc diff --git a/google/cloud/vision_v1p3beta1/proto/image_annotator_pb2_grpc.py b/google/cloud/vision_v1p3beta1/proto/image_annotator_pb2_grpc.py index 4d5a8fdb..be9a511b 100644 --- a/google/cloud/vision_v1p3beta1/proto/image_annotator_pb2_grpc.py +++ b/google/cloud/vision_v1p3beta1/proto/image_annotator_pb2_grpc.py @@ -1,4 +1,5 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" import grpc from google.cloud.vision_v1p3beta1.proto import ( @@ -11,16 +12,16 @@ class ImageAnnotatorStub(object): """Service that performs Google Cloud Vision API detection tasks over client - images, such as face, landmark, logo, label, and text detection. The - ImageAnnotator service returns detected entities from the images. - """ + images, such as face, landmark, logo, label, and text detection. The + ImageAnnotator service returns detected entities from the images. + """ def __init__(self, channel): """Constructor. - Args: - channel: A grpc.Channel. - """ + Args: + channel: A grpc.Channel. + """ self.BatchAnnotateImages = channel.unary_unary( "/google.cloud.vision.v1p3beta1.ImageAnnotator/BatchAnnotateImages", request_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesRequest.SerializeToString, @@ -35,25 +36,25 @@ def __init__(self, channel): class ImageAnnotatorServicer(object): """Service that performs Google Cloud Vision API detection tasks over client - images, such as face, landmark, logo, label, and text detection. The - ImageAnnotator service returns detected entities from the images. - """ + images, such as face, landmark, logo, label, and text detection. The + ImageAnnotator service returns detected entities from the images. + """ def BatchAnnotateImages(self, request, context): """Run image detection and annotation for a batch of images. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def AsyncBatchAnnotateFiles(self, request, context): """Run asynchronous image detection and annotation for a list of generic - files, such as PDF files, which may contain multiple pages and multiple - images per page. Progress and results can be retrieved through the - `google.longrunning.Operations` interface. - `Operation.metadata` contains `OperationMetadata` (metadata). - `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results). - """ + files, such as PDF files, which may contain multiple pages and multiple + images per page. Progress and results can be retrieved through the + `google.longrunning.Operations` interface. + `Operation.metadata` contains `OperationMetadata` (metadata). + `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results). + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -76,3 +77,65 @@ def add_ImageAnnotatorServicer_to_server(servicer, server): "google.cloud.vision.v1p3beta1.ImageAnnotator", rpc_method_handlers ) server.add_generic_rpc_handlers((generic_handler,)) + + +# This class is part of an EXPERIMENTAL API. +class ImageAnnotator(object): + """Service that performs Google Cloud Vision API detection tasks over client + images, such as face, landmark, logo, label, and text detection. The + ImageAnnotator service returns detected entities from the images. + """ + + @staticmethod + def BatchAnnotateImages( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1p3beta1.ImageAnnotator/BatchAnnotateImages", + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesRequest.SerializeToString, + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesResponse.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def AsyncBatchAnnotateFiles( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1p3beta1.ImageAnnotator/AsyncBatchAnnotateFiles", + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_image__annotator__pb2.AsyncBatchAnnotateFilesRequest.SerializeToString, + google_dot_longrunning_dot_operations__pb2.Operation.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) diff --git a/google/cloud/vision_v1p3beta1/proto/product_search_pb2_grpc.py b/google/cloud/vision_v1p3beta1/proto/product_search_pb2_grpc.py index 07cb78fe..8a939394 100644 --- a/google/cloud/vision_v1p3beta1/proto/product_search_pb2_grpc.py +++ b/google/cloud/vision_v1p3beta1/proto/product_search_pb2_grpc.py @@ -1,2 +1,3 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" import grpc diff --git a/google/cloud/vision_v1p3beta1/proto/product_search_service_pb2_grpc.py b/google/cloud/vision_v1p3beta1/proto/product_search_service_pb2_grpc.py index 2fae7057..b774e52e 100644 --- a/google/cloud/vision_v1p3beta1/proto/product_search_service_pb2_grpc.py +++ b/google/cloud/vision_v1p3beta1/proto/product_search_service_pb2_grpc.py @@ -1,4 +1,5 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" import grpc from google.cloud.vision_v1p3beta1.proto import ( @@ -12,27 +13,27 @@ class ProductSearchStub(object): """Manages Products and ProductSets of reference images for use in product - search. It uses the following resource model: + search. It uses the following resource model: - - The API has a collection of [ProductSet][google.cloud.vision.v1p3beta1.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.v1p3beta1.ProductSet] resources, named + `projects/*/locations/*/productSets/*`, which acts as a way to put different + products into groups to limit identification. - In parallel, + In parallel, - - The API has a collection of [Product][google.cloud.vision.v1p3beta1.Product] resources, named - `projects/*/locations/*/products/*` + - The API has a collection of [Product][google.cloud.vision.v1p3beta1.Product] resources, named + `projects/*/locations/*/products/*` - - Each [Product][google.cloud.vision.v1p3beta1.Product] has a collection of [ReferenceImage][google.cloud.vision.v1p3beta1.ReferenceImage] resources, named - `projects/*/locations/*/products/*/referenceImages/*` - """ + - Each [Product][google.cloud.vision.v1p3beta1.Product] has a collection of [ReferenceImage][google.cloud.vision.v1p3beta1.ReferenceImage] resources, named + `projects/*/locations/*/products/*/referenceImages/*` + """ def __init__(self, channel): """Constructor. - Args: - channel: A grpc.Channel. - """ + Args: + channel: A grpc.Channel. + """ self.CreateProductSet = channel.unary_unary( "/google.cloud.vision.v1p3beta1.ProductSearch/CreateProductSet", request_serializer=google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.CreateProductSetRequest.SerializeToString, @@ -127,29 +128,29 @@ def __init__(self, channel): class ProductSearchServicer(object): """Manages Products and ProductSets of reference images for use in product - search. It uses the following resource model: + search. It uses the following resource model: - - The API has a collection of [ProductSet][google.cloud.vision.v1p3beta1.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.v1p3beta1.ProductSet] resources, named + `projects/*/locations/*/productSets/*`, which acts as a way to put different + products into groups to limit identification. - In parallel, + In parallel, - - The API has a collection of [Product][google.cloud.vision.v1p3beta1.Product] resources, named - `projects/*/locations/*/products/*` + - The API has a collection of [Product][google.cloud.vision.v1p3beta1.Product] resources, named + `projects/*/locations/*/products/*` - - Each [Product][google.cloud.vision.v1p3beta1.Product] has a collection of [ReferenceImage][google.cloud.vision.v1p3beta1.ReferenceImage] resources, named - `projects/*/locations/*/products/*/referenceImages/*` - """ + - Each [Product][google.cloud.vision.v1p3beta1.Product] has a collection of [ReferenceImage][google.cloud.vision.v1p3beta1.ReferenceImage] resources, named + `projects/*/locations/*/products/*/referenceImages/*` + """ def CreateProductSet(self, request, context): """Creates and returns a new ProductSet resource. - Possible errors: + Possible errors: - * Returns INVALID_ARGUMENT if display_name is missing, or is longer than - 4096 characters. - """ + * Returns INVALID_ARGUMENT if display_name is missing, or is longer than + 4096 characters. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -157,11 +158,11 @@ def CreateProductSet(self, request, context): def ListProductSets(self, request, context): """Lists ProductSets in an unspecified order. - Possible errors: + Possible errors: - * Returns INVALID_ARGUMENT if page_size is greater than 100, or less - than 1. - """ + * Returns INVALID_ARGUMENT if page_size is greater than 100, or less + than 1. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -169,38 +170,38 @@ def ListProductSets(self, request, context): def GetProductSet(self, request, context): """Gets information associated with a ProductSet. - Possible errors: + Possible errors: - * Returns NOT_FOUND if the ProductSet does not exist. - """ + * Returns NOT_FOUND if the ProductSet does not exist. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def UpdateProductSet(self, request, context): """Makes changes to a ProductSet resource. - Only display_name can be updated currently. + Only display_name can be updated currently. - Possible errors: + Possible errors: - * Returns NOT_FOUND if the ProductSet does not exist. - * Returns INVALID_ARGUMENT if display_name is present in update_mask but - missing from the request or longer than 4096 characters. - """ + * Returns NOT_FOUND if the ProductSet does not exist. + * Returns INVALID_ARGUMENT if display_name is present in update_mask but + missing from the request or longer than 4096 characters. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def DeleteProductSet(self, request, context): """Permanently deletes a ProductSet. All Products and ReferenceImages in the - ProductSet will be deleted. + ProductSet will be deleted. - The actual image files are not deleted from Google Cloud Storage. + The actual image files are not deleted from Google Cloud Storage. - Possible errors: + Possible errors: - * Returns NOT_FOUND if the ProductSet does not exist. - """ + * Returns NOT_FOUND if the ProductSet does not exist. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -208,13 +209,13 @@ def DeleteProductSet(self, request, context): def CreateProduct(self, request, context): """Creates and returns a new product resource. - Possible errors: + Possible errors: - * Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 - characters. - * Returns INVALID_ARGUMENT if description is longer than 4096 characters. - * Returns INVALID_ARGUMENT if product_category is missing or invalid. - """ + * Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 + characters. + * Returns INVALID_ARGUMENT if description is longer than 4096 characters. + * Returns INVALID_ARGUMENT if product_category is missing or invalid. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -222,10 +223,10 @@ def CreateProduct(self, request, context): def ListProducts(self, request, context): """Lists products in an unspecified order. - Possible errors: + Possible errors: - * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. - """ + * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -233,30 +234,30 @@ def ListProducts(self, request, context): def GetProduct(self, request, context): """Gets information associated with a Product. - Possible errors: + Possible errors: - * Returns NOT_FOUND if the Product does not exist. - """ + * Returns NOT_FOUND if the Product does not exist. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def UpdateProduct(self, request, context): """Makes changes to a Product resource. - Only display_name, description and labels can be updated right now. + Only display_name, description and labels can be updated right now. - If labels are updated, the change will not be reflected in queries until - the next index time. + If labels are updated, the change will not be reflected in queries until + the next index time. - Possible errors: + Possible errors: - * Returns NOT_FOUND if the Product does not exist. - * Returns INVALID_ARGUMENT if display_name is present in update_mask but is - missing from the request or longer than 4096 characters. - * Returns INVALID_ARGUMENT if description is present in update_mask but is - longer than 4096 characters. - * Returns INVALID_ARGUMENT if product_category is present in update_mask. - """ + * Returns NOT_FOUND if the Product does not exist. + * Returns INVALID_ARGUMENT if display_name is present in update_mask but is + missing from the request or longer than 4096 characters. + * Returns INVALID_ARGUMENT if description is present in update_mask but is + longer than 4096 characters. + * Returns INVALID_ARGUMENT if product_category is present in update_mask. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -264,14 +265,14 @@ def UpdateProduct(self, request, context): def DeleteProduct(self, request, context): """Permanently deletes a product and its reference images. - Metadata of the product and all its images will be deleted right away, but - search queries against ProductSets containing the product may still work - until all related caches are refreshed. + Metadata of the product and all its images will be deleted right away, but + search queries against ProductSets containing the product may still work + until all related caches are refreshed. - Possible errors: + Possible errors: - * Returns NOT_FOUND if the product does not exist. - """ + * Returns NOT_FOUND if the product does not exist. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -279,24 +280,24 @@ def DeleteProduct(self, request, context): def CreateReferenceImage(self, request, context): """Creates and returns a new ReferenceImage resource. - The `bounding_poly` field is optional. If `bounding_poly` is not specified, - the system will try to detect regions of interest in the image that are - compatible with the product_category on the parent product. If it is - specified, detection is ALWAYS skipped. The system converts polygons into - non-rotated rectangles. + The `bounding_poly` field is optional. If `bounding_poly` is not specified, + the system will try to detect regions of interest in the image that are + compatible with the product_category on the parent product. If it is + specified, detection is ALWAYS skipped. The system converts polygons into + non-rotated rectangles. - Note that the pipeline will resize the image if the image resolution is too - large to process (above 50MP). + Note that the pipeline will resize the image if the image resolution is too + large to process (above 50MP). - Possible errors: + Possible errors: - * Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 - characters. - * Returns INVALID_ARGUMENT if the product does not exist. - * 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. - """ + * Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 + characters. + * Returns INVALID_ARGUMENT if the product does not exist. + * 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. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -304,16 +305,16 @@ def CreateReferenceImage(self, request, context): def DeleteReferenceImage(self, request, context): """Permanently deletes a reference image. - The image metadata will be deleted right away, but search queries - against ProductSets containing the image may still work until all related - caches are refreshed. + The image metadata will be deleted right away, but search queries + against ProductSets containing the image may still work until all related + caches are refreshed. - The actual image files are not deleted from Google Cloud Storage. + The actual image files are not deleted from Google Cloud Storage. - Possible errors: + Possible errors: - * Returns NOT_FOUND if the reference image does not exist. - """ + * Returns NOT_FOUND if the reference image does not exist. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -321,12 +322,12 @@ def DeleteReferenceImage(self, request, context): def ListReferenceImages(self, request, context): """Lists reference images. - Possible errors: + Possible errors: - * 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. - """ + * 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. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -334,24 +335,24 @@ def ListReferenceImages(self, request, context): def GetReferenceImage(self, request, context): """Gets information associated with a ReferenceImage. - Possible errors: + Possible errors: - * Returns NOT_FOUND if the specified image does not exist. - """ + * Returns NOT_FOUND if the specified image does not exist. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def AddProductToProductSet(self, request, context): """Adds a Product to the specified ProductSet. If the Product is already - present, no change is made. + present, no change is made. - One Product can be added to at most 100 ProductSets. + One Product can be added to at most 100 ProductSets. - Possible errors: + Possible errors: - * Returns NOT_FOUND if the Product or the ProductSet doesn't exist. - """ + * Returns NOT_FOUND if the Product or the ProductSet doesn't exist. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -359,40 +360,40 @@ def AddProductToProductSet(self, request, context): def RemoveProductFromProductSet(self, request, context): """Removes a Product from the specified ProductSet. - Possible errors: + Possible errors: - * Returns NOT_FOUND If the Product is not found under the ProductSet. - """ + * Returns NOT_FOUND If the Product is not found under the ProductSet. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def ListProductsInProductSet(self, request, context): """Lists the Products in a ProductSet, in an unspecified order. If the - ProductSet does not exist, the products field of the response will be - empty. + ProductSet does not exist, the products field of the response will be + empty. - Possible errors: + Possible errors: - * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. - """ + * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def ImportProductSets(self, request, context): """Asynchronous API that imports a list of reference images to specified - product sets based on a list of image information. + 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. - `Operation.metadata` contains `BatchOperationMetadata`. (progress) - `Operation.response` contains `ImportProductSetsResponse`. (results) + 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.v1p3beta1.ImportProductSetsGcsSource.csv_file_uri]. - """ + 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.v1p3beta1.ImportProductSetsGcsSource.csv_file_uri]. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -495,3 +496,508 @@ def add_ProductSearchServicer_to_server(servicer, server): "google.cloud.vision.v1p3beta1.ProductSearch", rpc_method_handlers ) server.add_generic_rpc_handlers((generic_handler,)) + + +# This class is part of an EXPERIMENTAL API. +class ProductSearch(object): + """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.v1p3beta1.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.v1p3beta1.Product] resources, named + `projects/*/locations/*/products/*` + + - Each [Product][google.cloud.vision.v1p3beta1.Product] has a collection of [ReferenceImage][google.cloud.vision.v1p3beta1.ReferenceImage] resources, named + `projects/*/locations/*/products/*/referenceImages/*` + """ + + @staticmethod + def CreateProductSet( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1p3beta1.ProductSearch/CreateProductSet", + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.CreateProductSetRequest.SerializeToString, + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ProductSet.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def ListProductSets( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1p3beta1.ProductSearch/ListProductSets", + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ListProductSetsRequest.SerializeToString, + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ListProductSetsResponse.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def GetProductSet( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1p3beta1.ProductSearch/GetProductSet", + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.GetProductSetRequest.SerializeToString, + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ProductSet.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def UpdateProductSet( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1p3beta1.ProductSearch/UpdateProductSet", + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.UpdateProductSetRequest.SerializeToString, + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ProductSet.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def DeleteProductSet( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1p3beta1.ProductSearch/DeleteProductSet", + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.DeleteProductSetRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def CreateProduct( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1p3beta1.ProductSearch/CreateProduct", + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.CreateProductRequest.SerializeToString, + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.Product.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def ListProducts( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1p3beta1.ProductSearch/ListProducts", + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ListProductsRequest.SerializeToString, + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ListProductsResponse.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def GetProduct( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1p3beta1.ProductSearch/GetProduct", + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.GetProductRequest.SerializeToString, + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.Product.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def UpdateProduct( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1p3beta1.ProductSearch/UpdateProduct", + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.UpdateProductRequest.SerializeToString, + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.Product.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def DeleteProduct( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1p3beta1.ProductSearch/DeleteProduct", + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.DeleteProductRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def CreateReferenceImage( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1p3beta1.ProductSearch/CreateReferenceImage", + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.CreateReferenceImageRequest.SerializeToString, + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ReferenceImage.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def DeleteReferenceImage( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1p3beta1.ProductSearch/DeleteReferenceImage", + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.DeleteReferenceImageRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def ListReferenceImages( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1p3beta1.ProductSearch/ListReferenceImages", + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ListReferenceImagesRequest.SerializeToString, + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ListReferenceImagesResponse.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def GetReferenceImage( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1p3beta1.ProductSearch/GetReferenceImage", + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.GetReferenceImageRequest.SerializeToString, + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ReferenceImage.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def AddProductToProductSet( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1p3beta1.ProductSearch/AddProductToProductSet", + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.AddProductToProductSetRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def RemoveProductFromProductSet( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1p3beta1.ProductSearch/RemoveProductFromProductSet", + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.RemoveProductFromProductSetRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def ListProductsInProductSet( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1p3beta1.ProductSearch/ListProductsInProductSet", + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ListProductsInProductSetRequest.SerializeToString, + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ListProductsInProductSetResponse.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def ImportProductSets( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1p3beta1.ProductSearch/ImportProductSets", + google_dot_cloud_dot_vision__v1p3beta1_dot_proto_dot_product__search__service__pb2.ImportProductSetsRequest.SerializeToString, + google_dot_longrunning_dot_operations__pb2.Operation.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) diff --git a/google/cloud/vision_v1p3beta1/proto/text_annotation_pb2_grpc.py b/google/cloud/vision_v1p3beta1/proto/text_annotation_pb2_grpc.py index 07cb78fe..8a939394 100644 --- a/google/cloud/vision_v1p3beta1/proto/text_annotation_pb2_grpc.py +++ b/google/cloud/vision_v1p3beta1/proto/text_annotation_pb2_grpc.py @@ -1,2 +1,3 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" import grpc diff --git a/google/cloud/vision_v1p3beta1/proto/web_detection_pb2_grpc.py b/google/cloud/vision_v1p3beta1/proto/web_detection_pb2_grpc.py index 07cb78fe..8a939394 100644 --- a/google/cloud/vision_v1p3beta1/proto/web_detection_pb2_grpc.py +++ b/google/cloud/vision_v1p3beta1/proto/web_detection_pb2_grpc.py @@ -1,2 +1,3 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" import grpc diff --git a/google/cloud/vision_v1p4beta1/proto/face_pb2_grpc.py b/google/cloud/vision_v1p4beta1/proto/face_pb2_grpc.py index 07cb78fe..8a939394 100644 --- a/google/cloud/vision_v1p4beta1/proto/face_pb2_grpc.py +++ b/google/cloud/vision_v1p4beta1/proto/face_pb2_grpc.py @@ -1,2 +1,3 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" import grpc diff --git a/google/cloud/vision_v1p4beta1/proto/geometry_pb2_grpc.py b/google/cloud/vision_v1p4beta1/proto/geometry_pb2_grpc.py index 07cb78fe..8a939394 100644 --- a/google/cloud/vision_v1p4beta1/proto/geometry_pb2_grpc.py +++ b/google/cloud/vision_v1p4beta1/proto/geometry_pb2_grpc.py @@ -1,2 +1,3 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" import grpc diff --git a/google/cloud/vision_v1p4beta1/proto/image_annotator_pb2_grpc.py b/google/cloud/vision_v1p4beta1/proto/image_annotator_pb2_grpc.py index 380e78b0..ebfedef4 100644 --- a/google/cloud/vision_v1p4beta1/proto/image_annotator_pb2_grpc.py +++ b/google/cloud/vision_v1p4beta1/proto/image_annotator_pb2_grpc.py @@ -1,4 +1,5 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" import grpc from google.cloud.vision_v1p4beta1.proto import ( @@ -11,16 +12,16 @@ class ImageAnnotatorStub(object): """Service that performs Google Cloud Vision API detection tasks over client - images, such as face, landmark, logo, label, and text detection. The - ImageAnnotator service returns detected entities from the images. - """ + images, such as face, landmark, logo, label, and text detection. The + ImageAnnotator service returns detected entities from the images. + """ def __init__(self, channel): """Constructor. - Args: - channel: A grpc.Channel. - """ + Args: + channel: A grpc.Channel. + """ self.BatchAnnotateImages = channel.unary_unary( "/google.cloud.vision.v1p4beta1.ImageAnnotator/BatchAnnotateImages", request_serializer=google_dot_cloud_dot_vision__v1p4beta1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesRequest.SerializeToString, @@ -45,26 +46,26 @@ def __init__(self, channel): class ImageAnnotatorServicer(object): """Service that performs Google Cloud Vision API detection tasks over client - images, such as face, landmark, logo, label, and text detection. The - ImageAnnotator service returns detected entities from the images. - """ + images, such as face, landmark, logo, label, and text detection. The + ImageAnnotator service returns detected entities from the images. + """ def BatchAnnotateImages(self, request, context): """Run image detection and annotation for a batch of images. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def BatchAnnotateFiles(self, request, context): """Service that performs image detection and annotation for a batch of files. - Now only "application/pdf", "image/tiff" and "image/gif" are supported. + Now only "application/pdf", "image/tiff" and "image/gif" are supported. - This service will extract at most 5 (customers can specify which 5 in - AnnotateFileRequest.pages) frames (gif) or pages (pdf or tiff) from each - file provided and perform detection and annotation for each image - extracted. - """ + This service will extract at most 5 (customers can specify which 5 in + AnnotateFileRequest.pages) frames (gif) or pages (pdf or tiff) from each + file provided and perform detection and annotation for each image + extracted. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -72,26 +73,26 @@ def BatchAnnotateFiles(self, request, context): def AsyncBatchAnnotateImages(self, request, context): """Run asynchronous image detection and annotation for a list of images. - Progress and results can be retrieved through the - `google.longrunning.Operations` interface. - `Operation.metadata` contains `OperationMetadata` (metadata). - `Operation.response` contains `AsyncBatchAnnotateImagesResponse` (results). + Progress and results can be retrieved through the + `google.longrunning.Operations` interface. + `Operation.metadata` contains `OperationMetadata` (metadata). + `Operation.response` contains `AsyncBatchAnnotateImagesResponse` (results). - This service will write image annotation outputs to json files in customer - GCS bucket, each json file containing BatchAnnotateImagesResponse proto. - """ + This service will write image annotation outputs to json files in customer + GCS bucket, each json file containing BatchAnnotateImagesResponse proto. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def AsyncBatchAnnotateFiles(self, request, context): """Run asynchronous image detection and annotation for a list of generic - files, such as PDF files, which may contain multiple pages and multiple - images per page. Progress and results can be retrieved through the - `google.longrunning.Operations` interface. - `Operation.metadata` contains `OperationMetadata` (metadata). - `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results). - """ + files, such as PDF files, which may contain multiple pages and multiple + images per page. Progress and results can be retrieved through the + `google.longrunning.Operations` interface. + `Operation.metadata` contains `OperationMetadata` (metadata). + `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results). + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -124,3 +125,119 @@ def add_ImageAnnotatorServicer_to_server(servicer, server): "google.cloud.vision.v1p4beta1.ImageAnnotator", rpc_method_handlers ) server.add_generic_rpc_handlers((generic_handler,)) + + +# This class is part of an EXPERIMENTAL API. +class ImageAnnotator(object): + """Service that performs Google Cloud Vision API detection tasks over client + images, such as face, landmark, logo, label, and text detection. The + ImageAnnotator service returns detected entities from the images. + """ + + @staticmethod + def BatchAnnotateImages( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1p4beta1.ImageAnnotator/BatchAnnotateImages", + google_dot_cloud_dot_vision__v1p4beta1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesRequest.SerializeToString, + google_dot_cloud_dot_vision__v1p4beta1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesResponse.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def BatchAnnotateFiles( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1p4beta1.ImageAnnotator/BatchAnnotateFiles", + google_dot_cloud_dot_vision__v1p4beta1_dot_proto_dot_image__annotator__pb2.BatchAnnotateFilesRequest.SerializeToString, + google_dot_cloud_dot_vision__v1p4beta1_dot_proto_dot_image__annotator__pb2.BatchAnnotateFilesResponse.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def AsyncBatchAnnotateImages( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1p4beta1.ImageAnnotator/AsyncBatchAnnotateImages", + google_dot_cloud_dot_vision__v1p4beta1_dot_proto_dot_image__annotator__pb2.AsyncBatchAnnotateImagesRequest.SerializeToString, + google_dot_longrunning_dot_operations__pb2.Operation.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def AsyncBatchAnnotateFiles( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1p4beta1.ImageAnnotator/AsyncBatchAnnotateFiles", + google_dot_cloud_dot_vision__v1p4beta1_dot_proto_dot_image__annotator__pb2.AsyncBatchAnnotateFilesRequest.SerializeToString, + google_dot_longrunning_dot_operations__pb2.Operation.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) diff --git a/google/cloud/vision_v1p4beta1/proto/product_search_pb2_grpc.py b/google/cloud/vision_v1p4beta1/proto/product_search_pb2_grpc.py index 07cb78fe..8a939394 100644 --- a/google/cloud/vision_v1p4beta1/proto/product_search_pb2_grpc.py +++ b/google/cloud/vision_v1p4beta1/proto/product_search_pb2_grpc.py @@ -1,2 +1,3 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" import grpc diff --git a/google/cloud/vision_v1p4beta1/proto/product_search_service_pb2_grpc.py b/google/cloud/vision_v1p4beta1/proto/product_search_service_pb2_grpc.py index 0d1f9704..542268e6 100644 --- a/google/cloud/vision_v1p4beta1/proto/product_search_service_pb2_grpc.py +++ b/google/cloud/vision_v1p4beta1/proto/product_search_service_pb2_grpc.py @@ -1,4 +1,5 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" import grpc from google.cloud.vision_v1p4beta1.proto import ( @@ -12,31 +13,31 @@ class ProductSearchStub(object): """Manages Products and ProductSets of reference images for use in product - search. It uses the following resource model: + search. It uses the following resource model: - - The API has a collection of - [ProductSet][google.cloud.vision.v1p4beta1.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.v1p4beta1.ProductSet] resources, named + `projects/*/locations/*/productSets/*`, which acts as a way to put different + products into groups to limit identification. - In parallel, + In parallel, - - The API has a collection of - [Product][google.cloud.vision.v1p4beta1.Product] resources, named - `projects/*/locations/*/products/*` + - The API has a collection of + [Product][google.cloud.vision.v1p4beta1.Product] resources, named + `projects/*/locations/*/products/*` - - Each [Product][google.cloud.vision.v1p4beta1.Product] has a collection of - [ReferenceImage][google.cloud.vision.v1p4beta1.ReferenceImage] resources, - named - `projects/*/locations/*/products/*/referenceImages/*` - """ + - Each [Product][google.cloud.vision.v1p4beta1.Product] has a collection of + [ReferenceImage][google.cloud.vision.v1p4beta1.ReferenceImage] resources, + named + `projects/*/locations/*/products/*/referenceImages/*` + """ def __init__(self, channel): """Constructor. - Args: - channel: A grpc.Channel. - """ + Args: + channel: A grpc.Channel. + """ self.CreateProductSet = channel.unary_unary( "/google.cloud.vision.v1p4beta1.ProductSearch/CreateProductSet", request_serializer=google_dot_cloud_dot_vision__v1p4beta1_dot_proto_dot_product__search__service__pb2.CreateProductSetRequest.SerializeToString, @@ -136,33 +137,33 @@ def __init__(self, channel): class ProductSearchServicer(object): """Manages Products and ProductSets of reference images for use in product - search. It uses the following resource model: + search. It uses the following resource model: - - The API has a collection of - [ProductSet][google.cloud.vision.v1p4beta1.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.v1p4beta1.ProductSet] resources, named + `projects/*/locations/*/productSets/*`, which acts as a way to put different + products into groups to limit identification. - In parallel, + In parallel, - - The API has a collection of - [Product][google.cloud.vision.v1p4beta1.Product] resources, named - `projects/*/locations/*/products/*` + - The API has a collection of + [Product][google.cloud.vision.v1p4beta1.Product] resources, named + `projects/*/locations/*/products/*` - - Each [Product][google.cloud.vision.v1p4beta1.Product] has a collection of - [ReferenceImage][google.cloud.vision.v1p4beta1.ReferenceImage] resources, - named - `projects/*/locations/*/products/*/referenceImages/*` - """ + - Each [Product][google.cloud.vision.v1p4beta1.Product] has a collection of + [ReferenceImage][google.cloud.vision.v1p4beta1.ReferenceImage] resources, + named + `projects/*/locations/*/products/*/referenceImages/*` + """ def CreateProductSet(self, request, context): """Creates and returns a new ProductSet resource. - Possible errors: + Possible errors: - * Returns INVALID_ARGUMENT if display_name is missing, or is longer than - 4096 characters. - """ + * Returns INVALID_ARGUMENT if display_name is missing, or is longer than + 4096 characters. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -170,11 +171,11 @@ def CreateProductSet(self, request, context): def ListProductSets(self, request, context): """Lists ProductSets in an unspecified order. - Possible errors: + Possible errors: - * Returns INVALID_ARGUMENT if page_size is greater than 100, or less - than 1. - """ + * Returns INVALID_ARGUMENT if page_size is greater than 100, or less + than 1. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -182,34 +183,34 @@ def ListProductSets(self, request, context): def GetProductSet(self, request, context): """Gets information associated with a ProductSet. - Possible errors: + Possible errors: - * Returns NOT_FOUND if the ProductSet does not exist. - """ + * Returns NOT_FOUND if the ProductSet does not exist. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def UpdateProductSet(self, request, context): """Makes changes to a ProductSet resource. - Only display_name can be updated currently. + Only display_name can be updated currently. - Possible errors: + Possible errors: - * Returns NOT_FOUND if the ProductSet does not exist. - * Returns INVALID_ARGUMENT if display_name is present in update_mask but - missing from the request or longer than 4096 characters. - """ + * Returns NOT_FOUND if the ProductSet does not exist. + * Returns INVALID_ARGUMENT if display_name is present in update_mask but + missing from the request or longer than 4096 characters. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def DeleteProductSet(self, request, context): """Permanently deletes a ProductSet. Products and ReferenceImages in the - ProductSet are not deleted. + ProductSet are not deleted. - The actual image files are not deleted from Google Cloud Storage. - """ + The actual image files are not deleted from Google Cloud Storage. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -217,13 +218,13 @@ def DeleteProductSet(self, request, context): def CreateProduct(self, request, context): """Creates and returns a new product resource. - Possible errors: + Possible errors: - * Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 - characters. - * Returns INVALID_ARGUMENT if description is longer than 4096 characters. - * Returns INVALID_ARGUMENT if product_category is missing or invalid. - """ + * Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 + characters. + * Returns INVALID_ARGUMENT if description is longer than 4096 characters. + * Returns INVALID_ARGUMENT if product_category is missing or invalid. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -231,10 +232,10 @@ def CreateProduct(self, request, context): def ListProducts(self, request, context): """Lists products in an unspecified order. - Possible errors: + Possible errors: - * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. - """ + * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -242,31 +243,31 @@ def ListProducts(self, request, context): def GetProduct(self, request, context): """Gets information associated with a Product. - Possible errors: + Possible errors: - * Returns NOT_FOUND if the Product does not exist. - """ + * Returns NOT_FOUND if the Product does not exist. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def UpdateProduct(self, request, context): """Makes changes to a Product resource. - Only the `display_name`, `description`, and `labels` fields can be updated - right now. + Only the `display_name`, `description`, and `labels` fields can be updated + right now. - If labels are updated, the change will not be reflected in queries until - the next index time. + If labels are updated, the change will not be reflected in queries until + the next index time. - Possible errors: + Possible errors: - * Returns NOT_FOUND if the Product does not exist. - * Returns INVALID_ARGUMENT if display_name is present in update_mask but is - missing from the request or longer than 4096 characters. - * Returns INVALID_ARGUMENT if description is present in update_mask but is - longer than 4096 characters. - * Returns INVALID_ARGUMENT if product_category is present in update_mask. - """ + * Returns NOT_FOUND if the Product does not exist. + * Returns INVALID_ARGUMENT if display_name is present in update_mask but is + missing from the request or longer than 4096 characters. + * Returns INVALID_ARGUMENT if description is present in update_mask but is + longer than 4096 characters. + * Returns INVALID_ARGUMENT if product_category is present in update_mask. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -274,10 +275,10 @@ def UpdateProduct(self, request, context): def DeleteProduct(self, request, context): """Permanently deletes a product and its reference images. - Metadata of the product and all its images will be deleted right away, but - search queries against ProductSets containing the product may still work - until all related caches are refreshed. - """ + Metadata of the product and all its images will be deleted right away, but + search queries against ProductSets containing the product may still work + until all related caches are refreshed. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -285,24 +286,24 @@ def DeleteProduct(self, request, context): def CreateReferenceImage(self, request, context): """Creates and returns a new ReferenceImage resource. - The `bounding_poly` field is optional. If `bounding_poly` is not specified, - the system will try to detect regions of interest in the image that are - compatible with the product_category on the parent product. If it is - specified, detection is ALWAYS skipped. The system converts polygons into - non-rotated rectangles. + The `bounding_poly` field is optional. If `bounding_poly` is not specified, + the system will try to detect regions of interest in the image that are + compatible with the product_category on the parent product. If it is + specified, detection is ALWAYS skipped. The system converts polygons into + non-rotated rectangles. - Note that the pipeline will resize the image if the image resolution is too - large to process (above 50MP). + Note that the pipeline will resize the image if the image resolution is too + large to process (above 50MP). - Possible errors: + Possible errors: - * Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 - characters. - * Returns INVALID_ARGUMENT if the product does not exist. - * 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. - """ + * Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 + characters. + * Returns INVALID_ARGUMENT if the product does not exist. + * 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. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -310,12 +311,12 @@ def CreateReferenceImage(self, request, context): def DeleteReferenceImage(self, request, context): """Permanently deletes a reference image. - The image metadata will be deleted right away, but search queries - against ProductSets containing the image may still work until all related - caches are refreshed. + The image metadata will be deleted right away, but search queries + against ProductSets containing the image may still work until all related + caches are refreshed. - The actual image files are not deleted from Google Cloud Storage. - """ + The actual image files are not deleted from Google Cloud Storage. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -323,12 +324,12 @@ def DeleteReferenceImage(self, request, context): def ListReferenceImages(self, request, context): """Lists reference images. - Possible errors: + Possible errors: - * 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. - """ + * 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. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -336,91 +337,91 @@ def ListReferenceImages(self, request, context): def GetReferenceImage(self, request, context): """Gets information associated with a ReferenceImage. - Possible errors: + Possible errors: - * Returns NOT_FOUND if the specified image does not exist. - """ + * Returns NOT_FOUND if the specified image does not exist. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def AddProductToProductSet(self, request, context): """Adds a Product to the specified ProductSet. If the Product is already - present, no change is made. + present, no change is made. - One Product can be added to at most 100 ProductSets. + One Product can be added to at most 100 ProductSets. - Possible errors: + Possible errors: - * Returns NOT_FOUND if the Product or the ProductSet doesn't exist. - """ + * Returns NOT_FOUND if the Product or the ProductSet doesn't exist. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def RemoveProductFromProductSet(self, request, context): """Removes a Product from the specified ProductSet. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def ListProductsInProductSet(self, request, context): """Lists the Products in a ProductSet, in an unspecified order. If the - ProductSet does not exist, the products field of the response will be - empty. + ProductSet does not exist, the products field of the response will be + empty. - Possible errors: + Possible errors: - * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. - """ + * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def ImportProductSets(self, request, context): """Asynchronous API that imports a list of reference images to specified - product sets based on a list of image information. + 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. - `Operation.metadata` contains `BatchOperationMetadata`. (progress) - `Operation.response` contains `ImportProductSetsResponse`. (results) + 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.v1p4beta1.ImportProductSetsGcsSource.csv_file_uri]. - """ + 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.v1p4beta1.ImportProductSetsGcsSource.csv_file_uri]. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def PurgeProducts(self, request, context): """Asynchronous API to delete all Products in a ProductSet or all Products - that are in no ProductSet. - - If a Product is a member of the specified ProductSet in addition to other - ProductSets, the Product will still be deleted. - - It is recommended to not delete the specified ProductSet until after this - operation has completed. It is also recommended to not add any of the - Products involved in the batch delete to a new ProductSet while this - operation is running because those Products may still end up deleted. - - It's not possible to undo the PurgeProducts operation. Therefore, it is - recommended to keep the csv files used in ImportProductSets (if that was - how you originally built the Product Set) before starting PurgeProducts, in - case you need to re-import the data after deletion. - - If the plan is to purge all of the Products from a ProductSet and then - re-use the empty ProductSet to re-import new Products into the empty - ProductSet, you must wait until the PurgeProducts operation has finished - for that ProductSet. - - The [google.longrunning.Operation][google.longrunning.Operation] API can be - used to keep track of the progress and results of the request. - `Operation.metadata` contains `BatchOperationMetadata`. (progress) - """ + that are in no ProductSet. + + If a Product is a member of the specified ProductSet in addition to other + ProductSets, the Product will still be deleted. + + It is recommended to not delete the specified ProductSet until after this + operation has completed. It is also recommended to not add any of the + Products involved in the batch delete to a new ProductSet while this + operation is running because those Products may still end up deleted. + + It's not possible to undo the PurgeProducts operation. Therefore, it is + recommended to keep the csv files used in ImportProductSets (if that was + how you originally built the Product Set) before starting PurgeProducts, in + case you need to re-import the data after deletion. + + If the plan is to purge all of the Products from a ProductSet and then + re-use the empty ProductSet to re-import new Products into the empty + ProductSet, you must wait until the PurgeProducts operation has finished + for that ProductSet. + + The [google.longrunning.Operation][google.longrunning.Operation] API can be + used to keep track of the progress and results of the request. + `Operation.metadata` contains `BatchOperationMetadata`. (progress) + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -528,3 +529,539 @@ def add_ProductSearchServicer_to_server(servicer, server): "google.cloud.vision.v1p4beta1.ProductSearch", rpc_method_handlers ) server.add_generic_rpc_handlers((generic_handler,)) + + +# This class is part of an EXPERIMENTAL API. +class ProductSearch(object): + """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.v1p4beta1.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.v1p4beta1.Product] resources, named + `projects/*/locations/*/products/*` + + - Each [Product][google.cloud.vision.v1p4beta1.Product] has a collection of + [ReferenceImage][google.cloud.vision.v1p4beta1.ReferenceImage] resources, + named + `projects/*/locations/*/products/*/referenceImages/*` + """ + + @staticmethod + def CreateProductSet( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1p4beta1.ProductSearch/CreateProductSet", + google_dot_cloud_dot_vision__v1p4beta1_dot_proto_dot_product__search__service__pb2.CreateProductSetRequest.SerializeToString, + google_dot_cloud_dot_vision__v1p4beta1_dot_proto_dot_product__search__service__pb2.ProductSet.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def ListProductSets( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1p4beta1.ProductSearch/ListProductSets", + google_dot_cloud_dot_vision__v1p4beta1_dot_proto_dot_product__search__service__pb2.ListProductSetsRequest.SerializeToString, + google_dot_cloud_dot_vision__v1p4beta1_dot_proto_dot_product__search__service__pb2.ListProductSetsResponse.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def GetProductSet( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1p4beta1.ProductSearch/GetProductSet", + google_dot_cloud_dot_vision__v1p4beta1_dot_proto_dot_product__search__service__pb2.GetProductSetRequest.SerializeToString, + google_dot_cloud_dot_vision__v1p4beta1_dot_proto_dot_product__search__service__pb2.ProductSet.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def UpdateProductSet( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1p4beta1.ProductSearch/UpdateProductSet", + google_dot_cloud_dot_vision__v1p4beta1_dot_proto_dot_product__search__service__pb2.UpdateProductSetRequest.SerializeToString, + google_dot_cloud_dot_vision__v1p4beta1_dot_proto_dot_product__search__service__pb2.ProductSet.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def DeleteProductSet( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1p4beta1.ProductSearch/DeleteProductSet", + google_dot_cloud_dot_vision__v1p4beta1_dot_proto_dot_product__search__service__pb2.DeleteProductSetRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def CreateProduct( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1p4beta1.ProductSearch/CreateProduct", + google_dot_cloud_dot_vision__v1p4beta1_dot_proto_dot_product__search__service__pb2.CreateProductRequest.SerializeToString, + google_dot_cloud_dot_vision__v1p4beta1_dot_proto_dot_product__search__service__pb2.Product.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def ListProducts( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1p4beta1.ProductSearch/ListProducts", + google_dot_cloud_dot_vision__v1p4beta1_dot_proto_dot_product__search__service__pb2.ListProductsRequest.SerializeToString, + google_dot_cloud_dot_vision__v1p4beta1_dot_proto_dot_product__search__service__pb2.ListProductsResponse.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def GetProduct( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1p4beta1.ProductSearch/GetProduct", + google_dot_cloud_dot_vision__v1p4beta1_dot_proto_dot_product__search__service__pb2.GetProductRequest.SerializeToString, + google_dot_cloud_dot_vision__v1p4beta1_dot_proto_dot_product__search__service__pb2.Product.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def UpdateProduct( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1p4beta1.ProductSearch/UpdateProduct", + google_dot_cloud_dot_vision__v1p4beta1_dot_proto_dot_product__search__service__pb2.UpdateProductRequest.SerializeToString, + google_dot_cloud_dot_vision__v1p4beta1_dot_proto_dot_product__search__service__pb2.Product.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def DeleteProduct( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1p4beta1.ProductSearch/DeleteProduct", + google_dot_cloud_dot_vision__v1p4beta1_dot_proto_dot_product__search__service__pb2.DeleteProductRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def CreateReferenceImage( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1p4beta1.ProductSearch/CreateReferenceImage", + google_dot_cloud_dot_vision__v1p4beta1_dot_proto_dot_product__search__service__pb2.CreateReferenceImageRequest.SerializeToString, + google_dot_cloud_dot_vision__v1p4beta1_dot_proto_dot_product__search__service__pb2.ReferenceImage.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def DeleteReferenceImage( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1p4beta1.ProductSearch/DeleteReferenceImage", + google_dot_cloud_dot_vision__v1p4beta1_dot_proto_dot_product__search__service__pb2.DeleteReferenceImageRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def ListReferenceImages( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1p4beta1.ProductSearch/ListReferenceImages", + google_dot_cloud_dot_vision__v1p4beta1_dot_proto_dot_product__search__service__pb2.ListReferenceImagesRequest.SerializeToString, + google_dot_cloud_dot_vision__v1p4beta1_dot_proto_dot_product__search__service__pb2.ListReferenceImagesResponse.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def GetReferenceImage( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1p4beta1.ProductSearch/GetReferenceImage", + google_dot_cloud_dot_vision__v1p4beta1_dot_proto_dot_product__search__service__pb2.GetReferenceImageRequest.SerializeToString, + google_dot_cloud_dot_vision__v1p4beta1_dot_proto_dot_product__search__service__pb2.ReferenceImage.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def AddProductToProductSet( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1p4beta1.ProductSearch/AddProductToProductSet", + google_dot_cloud_dot_vision__v1p4beta1_dot_proto_dot_product__search__service__pb2.AddProductToProductSetRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def RemoveProductFromProductSet( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1p4beta1.ProductSearch/RemoveProductFromProductSet", + google_dot_cloud_dot_vision__v1p4beta1_dot_proto_dot_product__search__service__pb2.RemoveProductFromProductSetRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def ListProductsInProductSet( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1p4beta1.ProductSearch/ListProductsInProductSet", + google_dot_cloud_dot_vision__v1p4beta1_dot_proto_dot_product__search__service__pb2.ListProductsInProductSetRequest.SerializeToString, + google_dot_cloud_dot_vision__v1p4beta1_dot_proto_dot_product__search__service__pb2.ListProductsInProductSetResponse.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def ImportProductSets( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1p4beta1.ProductSearch/ImportProductSets", + google_dot_cloud_dot_vision__v1p4beta1_dot_proto_dot_product__search__service__pb2.ImportProductSetsRequest.SerializeToString, + google_dot_longrunning_dot_operations__pb2.Operation.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def PurgeProducts( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.vision.v1p4beta1.ProductSearch/PurgeProducts", + google_dot_cloud_dot_vision__v1p4beta1_dot_proto_dot_product__search__service__pb2.PurgeProductsRequest.SerializeToString, + google_dot_longrunning_dot_operations__pb2.Operation.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) diff --git a/google/cloud/vision_v1p4beta1/proto/text_annotation_pb2_grpc.py b/google/cloud/vision_v1p4beta1/proto/text_annotation_pb2_grpc.py index 07cb78fe..8a939394 100644 --- a/google/cloud/vision_v1p4beta1/proto/text_annotation_pb2_grpc.py +++ b/google/cloud/vision_v1p4beta1/proto/text_annotation_pb2_grpc.py @@ -1,2 +1,3 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" import grpc diff --git a/google/cloud/vision_v1p4beta1/proto/web_detection_pb2_grpc.py b/google/cloud/vision_v1p4beta1/proto/web_detection_pb2_grpc.py index 07cb78fe..8a939394 100644 --- a/google/cloud/vision_v1p4beta1/proto/web_detection_pb2_grpc.py +++ b/google/cloud/vision_v1p4beta1/proto/web_detection_pb2_grpc.py @@ -1,2 +1,3 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" import grpc diff --git a/synth.metadata b/synth.metadata index 70fe1789..8d3578d8 100644 --- a/synth.metadata +++ b/synth.metadata @@ -11,15 +11,15 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "cf41866c6f14f10a07aa1e2a1260fc0a2727d889", - "internalRef": "317812187" + "sha": "7157f9552747421572cf1ab3aec1105c05ebd4f9", + "internalRef": "317949519" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "cf2eff09d0f5319a4dc5cdce2b6356d85af4a798" + "sha": "2a29860e484695a07aa8670f9e750bfeeb308a43" } } ], From 737787b13db63aa2a79c724ee17d20db69195059 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Wed, 24 Jun 2020 18:52:43 -0700 Subject: [PATCH 24/25] Updates to build Google Ads API build files. PiperOrigin-RevId: 318028816 Source-Author: Google APIs Source-Date: Wed Jun 24 02:32:38 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: b882b8e6bfcd708042ff00f7adc67ce750817dd0 Source-Link: https://github.com/googleapis/googleapis/commit/b882b8e6bfcd708042ff00f7adc67ce750817dd0 --- google/cloud/vision_v1/proto/geometry_pb2.py | 2 +- google/cloud/vision_v1/proto/image_annotator_pb2.py | 2 +- google/cloud/vision_v1/proto/product_search_pb2.py | 2 +- google/cloud/vision_v1/proto/product_search_service_pb2.py | 2 +- google/cloud/vision_v1/proto/text_annotation_pb2.py | 2 +- google/cloud/vision_v1/proto/web_detection_pb2.py | 2 +- google/cloud/vision_v1p1beta1/proto/geometry_pb2.py | 2 +- google/cloud/vision_v1p1beta1/proto/image_annotator_pb2.py | 2 +- google/cloud/vision_v1p1beta1/proto/text_annotation_pb2.py | 2 +- google/cloud/vision_v1p1beta1/proto/web_detection_pb2.py | 2 +- google/cloud/vision_v1p2beta1/proto/geometry_pb2.py | 2 +- google/cloud/vision_v1p2beta1/proto/image_annotator_pb2.py | 2 +- google/cloud/vision_v1p2beta1/proto/text_annotation_pb2.py | 2 +- google/cloud/vision_v1p2beta1/proto/web_detection_pb2.py | 2 +- google/cloud/vision_v1p3beta1/proto/geometry_pb2.py | 2 +- google/cloud/vision_v1p3beta1/proto/image_annotator_pb2.py | 2 +- google/cloud/vision_v1p3beta1/proto/product_search_pb2.py | 2 +- .../vision_v1p3beta1/proto/product_search_service_pb2.py | 2 +- google/cloud/vision_v1p3beta1/proto/text_annotation_pb2.py | 2 +- google/cloud/vision_v1p3beta1/proto/web_detection_pb2.py | 2 +- google/cloud/vision_v1p4beta1/proto/face_pb2.py | 2 +- google/cloud/vision_v1p4beta1/proto/geometry_pb2.py | 2 +- google/cloud/vision_v1p4beta1/proto/image_annotator_pb2.py | 2 +- google/cloud/vision_v1p4beta1/proto/product_search_pb2.py | 2 +- .../vision_v1p4beta1/proto/product_search_service_pb2.py | 2 +- google/cloud/vision_v1p4beta1/proto/text_annotation_pb2.py | 2 +- google/cloud/vision_v1p4beta1/proto/web_detection_pb2.py | 2 +- synth.metadata | 4 ++-- 28 files changed, 29 insertions(+), 29 deletions(-) diff --git a/google/cloud/vision_v1/proto/geometry_pb2.py b/google/cloud/vision_v1/proto/geometry_pb2.py index 87b7eab7..9629f858 100644 --- a/google/cloud/vision_v1/proto/geometry_pb2.py +++ b/google/cloud/vision_v1/proto/geometry_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1/proto/geometry.proto - +"""Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection diff --git a/google/cloud/vision_v1/proto/image_annotator_pb2.py b/google/cloud/vision_v1/proto/image_annotator_pb2.py index 82b07472..d2f3d90b 100644 --- a/google/cloud/vision_v1/proto/image_annotator_pb2.py +++ b/google/cloud/vision_v1/proto/image_annotator_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1/proto/image_annotator.proto - +"""Generated protocol buffer code.""" from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message diff --git a/google/cloud/vision_v1/proto/product_search_pb2.py b/google/cloud/vision_v1/proto/product_search_pb2.py index 0dcc687b..2aced134 100644 --- a/google/cloud/vision_v1/proto/product_search_pb2.py +++ b/google/cloud/vision_v1/proto/product_search_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1/proto/product_search.proto - +"""Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection diff --git a/google/cloud/vision_v1/proto/product_search_service_pb2.py b/google/cloud/vision_v1/proto/product_search_service_pb2.py index a8db62c1..b531e456 100644 --- a/google/cloud/vision_v1/proto/product_search_service_pb2.py +++ b/google/cloud/vision_v1/proto/product_search_service_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1/proto/product_search_service.proto - +"""Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection diff --git a/google/cloud/vision_v1/proto/text_annotation_pb2.py b/google/cloud/vision_v1/proto/text_annotation_pb2.py index b02848cc..24a4021b 100644 --- a/google/cloud/vision_v1/proto/text_annotation_pb2.py +++ b/google/cloud/vision_v1/proto/text_annotation_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1/proto/text_annotation.proto - +"""Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection diff --git a/google/cloud/vision_v1/proto/web_detection_pb2.py b/google/cloud/vision_v1/proto/web_detection_pb2.py index 5ee8c13f..d57e7a80 100644 --- a/google/cloud/vision_v1/proto/web_detection_pb2.py +++ b/google/cloud/vision_v1/proto/web_detection_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1/proto/web_detection.proto - +"""Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection diff --git a/google/cloud/vision_v1p1beta1/proto/geometry_pb2.py b/google/cloud/vision_v1p1beta1/proto/geometry_pb2.py index f7e1aa12..aead3c27 100644 --- a/google/cloud/vision_v1p1beta1/proto/geometry_pb2.py +++ b/google/cloud/vision_v1p1beta1/proto/geometry_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1p1beta1/proto/geometry.proto - +"""Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection diff --git a/google/cloud/vision_v1p1beta1/proto/image_annotator_pb2.py b/google/cloud/vision_v1p1beta1/proto/image_annotator_pb2.py index 8942e1f7..e9c60c54 100644 --- a/google/cloud/vision_v1p1beta1/proto/image_annotator_pb2.py +++ b/google/cloud/vision_v1p1beta1/proto/image_annotator_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1p1beta1/proto/image_annotator.proto - +"""Generated protocol buffer code.""" from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message diff --git a/google/cloud/vision_v1p1beta1/proto/text_annotation_pb2.py b/google/cloud/vision_v1p1beta1/proto/text_annotation_pb2.py index 09dc005f..53a1d662 100644 --- a/google/cloud/vision_v1p1beta1/proto/text_annotation_pb2.py +++ b/google/cloud/vision_v1p1beta1/proto/text_annotation_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1p1beta1/proto/text_annotation.proto - +"""Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection diff --git a/google/cloud/vision_v1p1beta1/proto/web_detection_pb2.py b/google/cloud/vision_v1p1beta1/proto/web_detection_pb2.py index 7da8b5c8..20f18fe0 100644 --- a/google/cloud/vision_v1p1beta1/proto/web_detection_pb2.py +++ b/google/cloud/vision_v1p1beta1/proto/web_detection_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1p1beta1/proto/web_detection.proto - +"""Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection diff --git a/google/cloud/vision_v1p2beta1/proto/geometry_pb2.py b/google/cloud/vision_v1p2beta1/proto/geometry_pb2.py index 280f9a4f..9444883b 100644 --- a/google/cloud/vision_v1p2beta1/proto/geometry_pb2.py +++ b/google/cloud/vision_v1p2beta1/proto/geometry_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1p2beta1/proto/geometry.proto - +"""Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection diff --git a/google/cloud/vision_v1p2beta1/proto/image_annotator_pb2.py b/google/cloud/vision_v1p2beta1/proto/image_annotator_pb2.py index 5f8c2fe6..9e9c6380 100644 --- a/google/cloud/vision_v1p2beta1/proto/image_annotator_pb2.py +++ b/google/cloud/vision_v1p2beta1/proto/image_annotator_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1p2beta1/proto/image_annotator.proto - +"""Generated protocol buffer code.""" from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message diff --git a/google/cloud/vision_v1p2beta1/proto/text_annotation_pb2.py b/google/cloud/vision_v1p2beta1/proto/text_annotation_pb2.py index bf4717b5..87720f18 100644 --- a/google/cloud/vision_v1p2beta1/proto/text_annotation_pb2.py +++ b/google/cloud/vision_v1p2beta1/proto/text_annotation_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1p2beta1/proto/text_annotation.proto - +"""Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection diff --git a/google/cloud/vision_v1p2beta1/proto/web_detection_pb2.py b/google/cloud/vision_v1p2beta1/proto/web_detection_pb2.py index 7d7eb782..1bc4ec76 100644 --- a/google/cloud/vision_v1p2beta1/proto/web_detection_pb2.py +++ b/google/cloud/vision_v1p2beta1/proto/web_detection_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1p2beta1/proto/web_detection.proto - +"""Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection diff --git a/google/cloud/vision_v1p3beta1/proto/geometry_pb2.py b/google/cloud/vision_v1p3beta1/proto/geometry_pb2.py index 78849d11..cfd56f4d 100644 --- a/google/cloud/vision_v1p3beta1/proto/geometry_pb2.py +++ b/google/cloud/vision_v1p3beta1/proto/geometry_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1p3beta1/proto/geometry.proto - +"""Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection diff --git a/google/cloud/vision_v1p3beta1/proto/image_annotator_pb2.py b/google/cloud/vision_v1p3beta1/proto/image_annotator_pb2.py index c232e29c..f6793295 100644 --- a/google/cloud/vision_v1p3beta1/proto/image_annotator_pb2.py +++ b/google/cloud/vision_v1p3beta1/proto/image_annotator_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1p3beta1/proto/image_annotator.proto - +"""Generated protocol buffer code.""" from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message diff --git a/google/cloud/vision_v1p3beta1/proto/product_search_pb2.py b/google/cloud/vision_v1p3beta1/proto/product_search_pb2.py index 5d1ce918..bcd2f545 100644 --- a/google/cloud/vision_v1p3beta1/proto/product_search_pb2.py +++ b/google/cloud/vision_v1p3beta1/proto/product_search_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1p3beta1/proto/product_search.proto - +"""Generated protocol buffer code.""" from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message diff --git a/google/cloud/vision_v1p3beta1/proto/product_search_service_pb2.py b/google/cloud/vision_v1p3beta1/proto/product_search_service_pb2.py index beb92e95..a8bedab7 100644 --- a/google/cloud/vision_v1p3beta1/proto/product_search_service_pb2.py +++ b/google/cloud/vision_v1p3beta1/proto/product_search_service_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1p3beta1/proto/product_search_service.proto - +"""Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection diff --git a/google/cloud/vision_v1p3beta1/proto/text_annotation_pb2.py b/google/cloud/vision_v1p3beta1/proto/text_annotation_pb2.py index 69934946..dda7ecda 100644 --- a/google/cloud/vision_v1p3beta1/proto/text_annotation_pb2.py +++ b/google/cloud/vision_v1p3beta1/proto/text_annotation_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1p3beta1/proto/text_annotation.proto - +"""Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection diff --git a/google/cloud/vision_v1p3beta1/proto/web_detection_pb2.py b/google/cloud/vision_v1p3beta1/proto/web_detection_pb2.py index 1871ff85..5ae78609 100644 --- a/google/cloud/vision_v1p3beta1/proto/web_detection_pb2.py +++ b/google/cloud/vision_v1p3beta1/proto/web_detection_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1p3beta1/proto/web_detection.proto - +"""Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection diff --git a/google/cloud/vision_v1p4beta1/proto/face_pb2.py b/google/cloud/vision_v1p4beta1/proto/face_pb2.py index 6df8fcd1..6b0756d4 100644 --- a/google/cloud/vision_v1p4beta1/proto/face_pb2.py +++ b/google/cloud/vision_v1p4beta1/proto/face_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1p4beta1/proto/face.proto - +"""Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection diff --git a/google/cloud/vision_v1p4beta1/proto/geometry_pb2.py b/google/cloud/vision_v1p4beta1/proto/geometry_pb2.py index a3126f48..a8a3d04e 100644 --- a/google/cloud/vision_v1p4beta1/proto/geometry_pb2.py +++ b/google/cloud/vision_v1p4beta1/proto/geometry_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1p4beta1/proto/geometry.proto - +"""Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection diff --git a/google/cloud/vision_v1p4beta1/proto/image_annotator_pb2.py b/google/cloud/vision_v1p4beta1/proto/image_annotator_pb2.py index 13bfd02b..92ac0789 100644 --- a/google/cloud/vision_v1p4beta1/proto/image_annotator_pb2.py +++ b/google/cloud/vision_v1p4beta1/proto/image_annotator_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1p4beta1/proto/image_annotator.proto - +"""Generated protocol buffer code.""" from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message diff --git a/google/cloud/vision_v1p4beta1/proto/product_search_pb2.py b/google/cloud/vision_v1p4beta1/proto/product_search_pb2.py index 85ccee96..ca773d67 100644 --- a/google/cloud/vision_v1p4beta1/proto/product_search_pb2.py +++ b/google/cloud/vision_v1p4beta1/proto/product_search_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1p4beta1/proto/product_search.proto - +"""Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection diff --git a/google/cloud/vision_v1p4beta1/proto/product_search_service_pb2.py b/google/cloud/vision_v1p4beta1/proto/product_search_service_pb2.py index a5bbf7bd..0323a4fe 100644 --- a/google/cloud/vision_v1p4beta1/proto/product_search_service_pb2.py +++ b/google/cloud/vision_v1p4beta1/proto/product_search_service_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1p4beta1/proto/product_search_service.proto - +"""Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection diff --git a/google/cloud/vision_v1p4beta1/proto/text_annotation_pb2.py b/google/cloud/vision_v1p4beta1/proto/text_annotation_pb2.py index a3e3518a..f5446f09 100644 --- a/google/cloud/vision_v1p4beta1/proto/text_annotation_pb2.py +++ b/google/cloud/vision_v1p4beta1/proto/text_annotation_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1p4beta1/proto/text_annotation.proto - +"""Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection diff --git a/google/cloud/vision_v1p4beta1/proto/web_detection_pb2.py b/google/cloud/vision_v1p4beta1/proto/web_detection_pb2.py index 305eaf3e..069cac3a 100644 --- a/google/cloud/vision_v1p4beta1/proto/web_detection_pb2.py +++ b/google/cloud/vision_v1p4beta1/proto/web_detection_pb2.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1p4beta1/proto/web_detection.proto - +"""Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection diff --git a/synth.metadata b/synth.metadata index 8d3578d8..57f564e7 100644 --- a/synth.metadata +++ b/synth.metadata @@ -11,8 +11,8 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "7157f9552747421572cf1ab3aec1105c05ebd4f9", - "internalRef": "317949519" + "sha": "b882b8e6bfcd708042ff00f7adc67ce750817dd0", + "internalRef": "318028816" } }, { From 5fd49e822450a8e8dec86ec3f8d67126e757d77d Mon Sep 17 00:00:00 2001 From: Bu Sun Kim Date: Thu, 25 Jun 2020 17:30:04 +0000 Subject: [PATCH 25/25] chore: use older sphinx --- docs/index.rst | 3 +++ noxfile.py | 2 +- synth.py | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/index.rst b/docs/index.rst index 3bc60512..5e21d999 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -1,5 +1,8 @@ .. include:: README.rst +.. include:: multiprocessing.rst + + Using the Library ----------------- diff --git a/noxfile.py b/noxfile.py index 8b527a16..d7260c64 100644 --- a/noxfile.py +++ b/noxfile.py @@ -143,7 +143,7 @@ def docs(session): """Build the docs for this library.""" session.install("-e", ".") - session.install("sphinx", "alabaster", "recommonmark") + session.install("sphinx<3.0.0", "alabaster", "recommonmark") shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True) session.run( diff --git a/synth.py b/synth.py index baa3a072..b98c7b33 100644 --- a/synth.py +++ b/synth.py @@ -88,5 +88,7 @@ cov_level=99, system_test_external_dependencies=["google-cloud-storage"] ) s.move(templated_files) +# TODO(busunkim): Use latest sphinx after microgenerator transition +s.replace("noxfile.py", """['"]sphinx['"]""", '"sphinx<3.0.0"') s.shell.run(["nox", "-s", "blacken"], hide_output=False)