From c523632d33da29b3dfbb07a7ebde73e1f9db2d4c Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 28 Apr 2020 15:19:00 -0700 Subject: [PATCH] chore: update template (via synth) (#20) --- .coveragerc | 16 ++ .flake8 | 16 ++ .github/ISSUE_TEMPLATE/bug_report.md | 3 +- CONTRIBUTING.rst | 15 +- MANIFEST.in | 16 ++ google/cloud/vision_v1/__init__.py | 12 +- .../vision_v1/gapic/image_annotator_client.py | 4 + .../vision_v1/gapic/product_search_client.py | 2 - google/cloud/vision_v1/proto/geometry_pb2.py | 15 +- .../vision_v1/proto/image_annotator.proto | 2 +- .../vision_v1/proto/image_annotator_pb2.py | 147 ++++-------------- .../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 | 13 +- .../proto/image_annotator.proto | 2 +- .../proto/image_annotator_pb2.py | 94 +++-------- .../proto/text_annotation_pb2.py | 41 ++--- .../proto/web_detection_pb2.py | 10 -- .../vision_v1p2beta1/proto/geometry_pb2.py | 15 +- .../proto/image_annotator.proto | 2 +- .../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.proto | 2 +- .../proto/image_annotator_pb2.py | 131 ++++------------ .../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.proto | 2 +- .../proto/image_annotator_pb2.py | 147 ++++-------------- .../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 -- noxfile.py | 8 +- setup.cfg | 16 ++ synth.metadata | 25 +-- synth.py | 2 +- 44 files changed, 374 insertions(+), 1111 deletions(-) diff --git a/.coveragerc b/.coveragerc index b178b094..dd39c854 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,3 +1,19 @@ +# -*- coding: utf-8 -*- +# +# 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. + # Generated by synthtool. DO NOT EDIT! [run] branch = True diff --git a/.flake8 b/.flake8 index 0268ecc9..20fe9bda 100644 --- a/.flake8 +++ b/.flake8 @@ -1,3 +1,19 @@ +# -*- coding: utf-8 -*- +# +# 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. + # Generated by synthtool. DO NOT EDIT! [flake8] ignore = E203, E266, E501, W503 diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index e3394d21..30b05883 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -11,8 +11,7 @@ Thanks for stopping by to let us know something could be better! Please run down the following list and make sure you've tried the usual "quick fixes": - Search the issues already opened: https://github.com/googleapis/python-vision/issues - - Search the issues on our "catch-all" repository: https://github.com/googleapis/google-cloud-python - - Search StackOverflow: http://stackoverflow.com/questions/tagged/google-cloud-platform+python + - Search StackOverflow: https://stackoverflow.com/questions/tagged/google-cloud-platform+python If you are still having issues, please be sure to include as much information as possible: diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index c8bdf4b5..2682b821 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -22,7 +22,7 @@ In order to add a feature: documentation. - The feature must work fully on the following CPython versions: 2.7, - 3.5, 3.6, and 3.7 on both UNIX and Windows. + 3.5, 3.6, 3.7 and 3.8 on both UNIX and Windows. - The feature must not add unnecessary dependencies (where "unnecessary" is of course subjective, but new dependencies should @@ -214,26 +214,18 @@ We support: - `Python 3.5`_ - `Python 3.6`_ - `Python 3.7`_ +- `Python 3.8`_ .. _Python 3.5: https://docs.python.org/3.5/ .. _Python 3.6: https://docs.python.org/3.6/ .. _Python 3.7: https://docs.python.org/3.7/ +.. _Python 3.8: https://docs.python.org/3.8/ Supported versions can be found in our ``noxfile.py`` `config`_. .. _config: https://github.com/googleapis/python-vision/blob/master/noxfile.py -We explicitly decided not to support `Python 2.5`_ due to `decreased usage`_ -and lack of continuous integration `support`_. - -.. _Python 2.5: https://docs.python.org/2.5/ -.. _decreased usage: https://caremad.io/2013/10/a-look-at-pypi-downloads/ -.. _support: https://blog.travis-ci.com/2013-11-18-upcoming-build-environment-updates/ - -We have `dropped 2.6`_ as a supported version as well since Python 2.6 is no -longer supported by the core development team. - Python 2.7 support is deprecated. All code changes should maintain Python 2.7 compatibility until January 1, 2020. We also explicitly decided to support Python 3 beginning with version @@ -247,7 +239,6 @@ We also explicitly decided to support Python 3 beginning with version .. _prominent: https://docs.djangoproject.com/en/1.9/faq/install/#what-python-version-can-i-use-with-django .. _projects: http://flask.pocoo.org/docs/0.10/python3/ .. _Unicode literal support: https://www.python.org/dev/peps/pep-0414/ -.. _dropped 2.6: https://github.com/googleapis/google-cloud-python/issues/995 ********** Versioning diff --git a/MANIFEST.in b/MANIFEST.in index cd011be2..68855abc 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,3 +1,19 @@ +# -*- coding: utf-8 -*- +# +# 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. + # Generated by synthtool. DO NOT EDIT! include README.rst LICENSE recursive-include google *.json *.proto diff --git a/google/cloud/vision_v1/__init__.py b/google/cloud/vision_v1/__init__.py index 8c033490..3c62fcc6 100644 --- a/google/cloud/vision_v1/__init__.py +++ b/google/cloud/vision_v1/__init__.py @@ -37,15 +37,15 @@ warnings.warn(message, DeprecationWarning) -@add_single_feature_methods -class ImageAnnotatorClient(VisionHelpers, iac.ImageAnnotatorClient): - __doc__ = iac.ImageAnnotatorClient.__doc__ +class ProductSearchClient(product_search_client.ProductSearchClient): + __doc__ = product_search_client.ProductSearchClient.__doc__ enums = enums -class ProductSearchClient(product_search_client.ProductSearchClient): - __doc__ = product_search_client.ProductSearchClient.__doc__ +@add_single_feature_methods +class ImageAnnotatorClient(VisionHelpers, iac.ImageAnnotatorClient): + __doc__ = iac.ImageAnnotatorClient.__doc__ enums = enums -__all__ = ("enums", "types", "ImageAnnotatorClient", "ProductSearchClient") +__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 1dcf9e8c..a8512a4d 100644 --- a/google/cloud/vision_v1/gapic/image_annotator_client.py +++ b/google/cloud/vision_v1/gapic/image_annotator_client.py @@ -35,7 +35,11 @@ from google.cloud.vision_v1.gapic.transports import image_annotator_grpc_transport from google.cloud.vision_v1.proto import image_annotator_pb2 from google.cloud.vision_v1.proto import image_annotator_pb2_grpc +from google.cloud.vision_v1.proto import product_search_service_pb2 +from google.cloud.vision_v1.proto import product_search_service_pb2_grpc from google.longrunning import operations_pb2 +from google.protobuf import empty_pb2 +from google.protobuf import field_mask_pb2 _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution("google-cloud-vision").version diff --git a/google/cloud/vision_v1/gapic/product_search_client.py b/google/cloud/vision_v1/gapic/product_search_client.py index eb21f25a..f2794d69 100644 --- a/google/cloud/vision_v1/gapic/product_search_client.py +++ b/google/cloud/vision_v1/gapic/product_search_client.py @@ -37,8 +37,6 @@ from google.cloud.vision_v1.gapic import enums from google.cloud.vision_v1.gapic import product_search_client_config from google.cloud.vision_v1.gapic.transports import product_search_grpc_transport -from google.cloud.vision_v1.proto import image_annotator_pb2 -from google.cloud.vision_v1.proto import image_annotator_pb2_grpc from google.cloud.vision_v1.proto import product_search_service_pb2 from google.cloud.vision_v1.proto import product_search_service_pb2_grpc from google.longrunning import operations_pb2 diff --git a/google/cloud/vision_v1/proto/geometry_pb2.py b/google/cloud/vision_v1/proto/geometry_pb2.py index e2b73d05..58881e7f 100644 --- a/google/cloud/vision_v1/proto/geometry_pb2.py +++ b/google/cloud/vision_v1/proto/geometry_pb2.py @@ -292,8 +292,6 @@ DESCRIPTOR=_VERTEX, __module__="google.cloud.vision_v1.proto.geometry_pb2", __doc__="""X coordinate. - - Attributes: y: Y coordinate. @@ -310,8 +308,6 @@ DESCRIPTOR=_NORMALIZEDVERTEX, __module__="google.cloud.vision_v1.proto.geometry_pb2", __doc__="""X coordinate. - - Attributes: y: Y coordinate. @@ -328,8 +324,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. @@ -347,12 +341,9 @@ dict( 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.proto b/google/cloud/vision_v1/proto/image_annotator.proto index d2588604..e75ca766 100644 --- a/google/cloud/vision_v1/proto/image_annotator.proto +++ b/google/cloud/vision_v1/proto/image_annotator.proto @@ -676,7 +676,7 @@ message ImageContext { // 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](/vision/docs/languages). + // [supported languages](https://cloud.google.com/vision/docs/languages). repeated string language_hints = 2; // Parameters for crop hints annotation request. diff --git a/google/cloud/vision_v1/proto/image_annotator_pb2.py b/google/cloud/vision_v1/proto/image_annotator_pb2.py index 3e0f088f..d60527dc 100644 --- a/google/cloud/vision_v1/proto/image_annotator_pb2.py +++ b/google/cloud/vision_v1/proto/image_annotator_pb2.py @@ -3782,11 +3782,9 @@ dict( 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. @@ -3809,10 +3807,8 @@ dict( 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 @@ -3847,10 +3843,7 @@ dict( 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 @@ -3878,8 +3871,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. @@ -3891,10 +3882,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 @@ -3957,8 +3945,6 @@ DESCRIPTOR=_LOCATIONINFO, __module__="google.cloud.vision_v1.proto.image_annotator_pb2", __doc__="""Detected entity location information. - - Attributes: lat_lng: lat/long location coordinates. @@ -3974,10 +3960,7 @@ dict( 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. @@ -3998,8 +3981,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 @@ -4053,8 +4034,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. @@ -4081,11 +4060,9 @@ dict( 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 @@ -4135,8 +4112,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. @@ -4154,10 +4129,8 @@ dict( 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. @@ -4179,8 +4152,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. @@ -4197,8 +4168,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. @@ -4214,10 +4183,8 @@ dict( 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 @@ -4239,10 +4206,8 @@ dict( 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. @@ -4259,8 +4224,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 @@ -4282,8 +4245,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 @@ -4301,8 +4262,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. @@ -4316,7 +4275,7 @@ 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. product_search_params: @@ -4335,11 +4294,9 @@ 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 + __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. @@ -4359,10 +4316,8 @@ 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. - - + __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. @@ -4382,8 +4337,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. @@ -4432,10 +4385,8 @@ dict( 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. @@ -4459,8 +4410,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 @@ -4477,10 +4426,7 @@ 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. - - + __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. @@ -4511,10 +4457,8 @@ 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. - - + __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 @@ -4539,10 +4483,7 @@ dict( 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 @@ -4568,8 +4509,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 @@ -4588,8 +4527,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. @@ -4614,8 +4551,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 @@ -4633,8 +4568,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. @@ -4661,8 +4594,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 @@ -4679,10 +4610,8 @@ 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. - - + __doc__="""Multiple async file annotation requests are batched into a single + service call. Attributes: requests: Required. Individual async file annotation requests for this @@ -4707,8 +4636,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 @@ -4726,8 +4653,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. @@ -4755,8 +4680,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. @@ -4782,10 +4705,7 @@ 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. - - + __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 @@ -4803,10 +4723,7 @@ 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. - - + __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 @@ -4841,8 +4758,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 c5c6d940..6a356757 100644 --- a/google/cloud/vision_v1/proto/product_search_pb2.py +++ b/google/cloud/vision_v1/proto/product_search_pb2.py @@ -501,8 +501,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. @@ -549,8 +547,6 @@ DESCRIPTOR=_PRODUCTSEARCHRESULTS_RESULT, __module__="google.cloud.vision_v1.proto.product_search_pb2", __doc__="""Information about a product. - - Attributes: product: The Product. @@ -571,8 +567,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. @@ -594,10 +588,8 @@ dict( 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 @@ -614,8 +606,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 5ca9e1ce..9630e347 100644 --- a/google/cloud/vision_v1/proto/product_search_service_pb2.py +++ b/google/cloud/vision_v1/proto/product_search_service_pb2.py @@ -2247,8 +2247,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 @@ -2263,8 +2261,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: @@ -2306,11 +2302,9 @@ dict( 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 @@ -2341,10 +2335,8 @@ dict( 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 @@ -2375,8 +2367,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. @@ -2402,8 +2392,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 @@ -2427,8 +2415,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. @@ -2448,8 +2434,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: @@ -2467,8 +2451,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 @@ -2491,8 +2473,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: @@ -2510,8 +2490,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 @@ -2537,8 +2515,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. @@ -2562,8 +2538,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. @@ -2583,8 +2557,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: @@ -2603,8 +2575,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 @@ -2627,8 +2597,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 @@ -2647,8 +2615,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 @@ -2676,8 +2642,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 @@ -2704,8 +2668,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. @@ -2728,8 +2690,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. @@ -2748,8 +2708,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. @@ -2768,8 +2726,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. @@ -2791,10 +2747,7 @@ dict( 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. @@ -2816,10 +2769,7 @@ dict( 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 @@ -2843,10 +2793,7 @@ dict( 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. @@ -2865,10 +2812,8 @@ dict( 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 @@ -2930,8 +2875,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. @@ -2951,8 +2894,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 @@ -2971,15 +2912,11 @@ dict( 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. @@ -3001,14 +2938,10 @@ dict( 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. @@ -3030,10 +2963,8 @@ dict( 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 @@ -3052,8 +2983,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 1b42d963..2f416448 100644 --- a/google/cloud/vision_v1/proto/text_annotation_pb2.py +++ b/google/cloud/vision_v1/proto/text_annotation_pb2.py @@ -896,8 +896,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 @@ -916,8 +914,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. @@ -933,10 +929,7 @@ dict( 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. @@ -948,16 +941,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. @@ -979,8 +970,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. @@ -1007,8 +996,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. @@ -1042,10 +1029,8 @@ 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. - - + __doc__="""Structural unit of text representing a number of words in certain + order. Attributes: property: Additional information detected for the paragraph. @@ -1076,8 +1061,6 @@ DESCRIPTOR=_WORD, __module__="google.cloud.vision_v1.proto.text_annotation_pb2", __doc__="""A word representation. - - Attributes: property: Additional information detected for the word. @@ -1109,8 +1092,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 f1f80fd3..27473281 100644 --- a/google/cloud/vision_v1/proto/web_detection_pb2.py +++ b/google/cloud/vision_v1/proto/web_detection_pb2.py @@ -499,8 +499,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. @@ -520,8 +518,6 @@ DESCRIPTOR=_WEBDETECTION_WEBIMAGE, __module__="google.cloud.vision_v1.proto.web_detection_pb2", __doc__="""Metadata for online images. - - Attributes: url: The result image URL. @@ -538,8 +534,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. @@ -566,8 +560,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. @@ -582,8 +574,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 5ddad26c..a898a915 100644 --- a/google/cloud/vision_v1p1beta1/proto/geometry_pb2.py +++ b/google/cloud/vision_v1p1beta1/proto/geometry_pb2.py @@ -211,8 +211,6 @@ DESCRIPTOR=_VERTEX, __module__="google.cloud.vision_v1p1beta1.proto.geometry_pb2", __doc__="""X coordinate. - - Attributes: y: Y coordinate. @@ -229,8 +227,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. @@ -246,12 +242,9 @@ dict( 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.proto b/google/cloud/vision_v1p1beta1/proto/image_annotator.proto index e9665c20..4f5ada70 100644 --- a/google/cloud/vision_v1p1beta1/proto/image_annotator.proto +++ b/google/cloud/vision_v1p1beta1/proto/image_annotator.proto @@ -502,7 +502,7 @@ message ImageContext { // 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](/vision/docs/languages). + // [supported languages](https://cloud.google.com/vision/docs/languages). repeated string language_hints = 2; // Parameters for crop hints annotation request. diff --git a/google/cloud/vision_v1p1beta1/proto/image_annotator_pb2.py b/google/cloud/vision_v1p1beta1/proto/image_annotator_pb2.py index df7db4c7..d6cf99d8 100644 --- a/google/cloud/vision_v1p1beta1/proto/image_annotator_pb2.py +++ b/google/cloud/vision_v1p1beta1/proto/image_annotator_pb2.py @@ -2354,13 +2354,11 @@ 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. - - + __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. @@ -2381,10 +2379,7 @@ dict( 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 @@ -2416,10 +2411,7 @@ dict( 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 @@ -2447,8 +2439,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. @@ -2460,10 +2450,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 @@ -2527,8 +2514,6 @@ DESCRIPTOR=_LOCATIONINFO, __module__="google.cloud.vision_v1p1beta1.proto.image_annotator_pb2", __doc__="""Detected entity location information. - - Attributes: lat_lng: lat/long location coordinates. @@ -2544,10 +2529,7 @@ dict( 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. @@ -2568,8 +2550,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 @@ -2621,11 +2601,9 @@ 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). - - + __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 @@ -2657,8 +2635,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. @@ -2676,10 +2652,8 @@ 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. - - + __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. @@ -2701,8 +2675,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. @@ -2719,8 +2691,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. @@ -2736,10 +2706,8 @@ 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. - - + __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 @@ -2762,10 +2730,8 @@ 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. - - + __doc__="""Set of crop hints that are used to generate new crops when serving + images. Attributes: crop_hints: Crop hint results. @@ -2782,8 +2748,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 @@ -2805,8 +2769,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 @@ -2824,8 +2786,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. @@ -2839,7 +2799,7 @@ 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. web_detection_params: @@ -2856,10 +2816,8 @@ 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. - - + __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. @@ -2880,8 +2838,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. @@ -2921,10 +2877,8 @@ dict( 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. @@ -2941,8 +2895,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 f01efb06..30cc2112 100644 --- a/google/cloud/vision_v1p1beta1/proto/text_annotation_pb2.py +++ b/google/cloud/vision_v1p1beta1/proto/text_annotation_pb2.py @@ -896,8 +896,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 @@ -916,8 +914,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. @@ -933,10 +929,7 @@ dict( 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. @@ -948,16 +941,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. @@ -979,8 +970,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. @@ -1005,8 +994,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. @@ -1039,10 +1026,8 @@ 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. - - + __doc__="""Structural unit of text representing a number of words in certain + order. Attributes: property: Additional information detected for the paragraph. @@ -1073,8 +1058,6 @@ DESCRIPTOR=_WORD, __module__="google.cloud.vision_v1p1beta1.proto.text_annotation_pb2", __doc__="""A word representation. - - Attributes: property: Additional information detected for the word. @@ -1106,8 +1089,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 8a0c1786..e7aaf585 100644 --- a/google/cloud/vision_v1p1beta1/proto/web_detection_pb2.py +++ b/google/cloud/vision_v1p1beta1/proto/web_detection_pb2.py @@ -499,8 +499,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. @@ -520,8 +518,6 @@ DESCRIPTOR=_WEBDETECTION_WEBIMAGE, __module__="google.cloud.vision_v1p1beta1.proto.web_detection_pb2", __doc__="""Metadata for online images. - - Attributes: url: The result image URL. @@ -538,8 +534,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. @@ -566,8 +560,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. @@ -582,8 +574,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 2089062f..dabb8f83 100644 --- a/google/cloud/vision_v1p2beta1/proto/geometry_pb2.py +++ b/google/cloud/vision_v1p2beta1/proto/geometry_pb2.py @@ -288,8 +288,6 @@ DESCRIPTOR=_VERTEX, __module__="google.cloud.vision_v1p2beta1.proto.geometry_pb2", __doc__="""X coordinate. - - Attributes: y: Y coordinate. @@ -306,8 +304,6 @@ DESCRIPTOR=_NORMALIZEDVERTEX, __module__="google.cloud.vision_v1p2beta1.proto.geometry_pb2", __doc__="""X coordinate. - - Attributes: y: Y coordinate. @@ -324,8 +320,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. @@ -343,12 +337,9 @@ 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. - - + __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.proto b/google/cloud/vision_v1p2beta1/proto/image_annotator.proto index 8b0756d2..87ae9f2c 100644 --- a/google/cloud/vision_v1p2beta1/proto/image_annotator.proto +++ b/google/cloud/vision_v1p2beta1/proto/image_annotator.proto @@ -533,7 +533,7 @@ message ImageContext { // 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](/vision/docs/languages). + // [supported languages](https://cloud.google.com/vision/docs/languages). repeated string language_hints = 2; // Parameters for crop hints annotation request. diff --git a/google/cloud/vision_v1p2beta1/proto/image_annotator_pb2.py b/google/cloud/vision_v1p2beta1/proto/image_annotator_pb2.py index 1b4eec12..ce174bfe 100644 --- a/google/cloud/vision_v1p2beta1/proto/image_annotator_pb2.py +++ b/google/cloud/vision_v1p2beta1/proto/image_annotator_pb2.py @@ -3043,11 +3043,9 @@ 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 + __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. @@ -3070,10 +3068,8 @@ dict( 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 @@ -3108,10 +3104,7 @@ dict( 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 @@ -3139,8 +3132,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. @@ -3152,10 +3143,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 @@ -3219,8 +3207,6 @@ DESCRIPTOR=_LOCATIONINFO, __module__="google.cloud.vision_v1p2beta1.proto.image_annotator_pb2", __doc__="""Detected entity location information. - - Attributes: lat_lng: lat/long location coordinates. @@ -3236,10 +3222,7 @@ dict( 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. @@ -3260,8 +3243,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 @@ -3315,10 +3296,8 @@ 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). - - + methods over safe-search verticals (for example, adult, spoof, + medical, violence). Attributes: adult: Represents the adult content likelihood for the image. Adult @@ -3350,8 +3329,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. @@ -3369,10 +3346,8 @@ 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. - - + __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. @@ -3394,8 +3369,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. @@ -3412,8 +3385,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. @@ -3429,10 +3400,8 @@ 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. - - + __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 @@ -3455,10 +3424,8 @@ 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. - - + __doc__="""Set of crop hints that are used to generate new crops when serving + images. Attributes: crop_hints: Crop hint results. @@ -3475,8 +3442,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 @@ -3498,8 +3463,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 @@ -3517,8 +3480,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. @@ -3532,7 +3493,7 @@ 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. web_detection_params: @@ -3549,10 +3510,8 @@ 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. - - + __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. @@ -3572,10 +3531,8 @@ 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. - - + __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. @@ -3595,8 +3552,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. @@ -3639,10 +3594,8 @@ 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. - - + __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 @@ -3661,10 +3614,8 @@ dict( 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. @@ -3681,8 +3632,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 @@ -3700,8 +3649,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. @@ -3726,8 +3673,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 @@ -3744,10 +3689,8 @@ 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. - - + __doc__="""Multiple async file annotation requests are batched into a single + service call. Attributes: requests: Required. Individual async file annotation requests for this @@ -3765,8 +3708,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 @@ -3784,8 +3725,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. @@ -3805,8 +3744,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. @@ -3832,10 +3769,7 @@ 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. - - + __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 @@ -3852,10 +3786,7 @@ 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. - - + __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. @@ -3882,8 +3813,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 4d63c57f..929ffde8 100644 --- a/google/cloud/vision_v1p2beta1/proto/text_annotation_pb2.py +++ b/google/cloud/vision_v1p2beta1/proto/text_annotation_pb2.py @@ -896,8 +896,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 @@ -916,8 +914,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. @@ -933,10 +929,7 @@ dict( 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. @@ -948,16 +941,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. @@ -979,8 +970,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. @@ -1007,8 +996,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. @@ -1042,10 +1029,8 @@ 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. - - + __doc__="""Structural unit of text representing a number of words in certain + order. Attributes: property: Additional information detected for the paragraph. @@ -1076,8 +1061,6 @@ DESCRIPTOR=_WORD, __module__="google.cloud.vision_v1p2beta1.proto.text_annotation_pb2", __doc__="""A word representation. - - Attributes: property: Additional information detected for the word. @@ -1109,8 +1092,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 41b60464..eec9bd1c 100644 --- a/google/cloud/vision_v1p2beta1/proto/web_detection_pb2.py +++ b/google/cloud/vision_v1p2beta1/proto/web_detection_pb2.py @@ -499,8 +499,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. @@ -520,8 +518,6 @@ DESCRIPTOR=_WEBDETECTION_WEBIMAGE, __module__="google.cloud.vision_v1p2beta1.proto.web_detection_pb2", __doc__="""Metadata for online images. - - Attributes: url: The result image URL. @@ -538,8 +534,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. @@ -566,8 +560,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. @@ -582,8 +574,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 2dea7b69..c4a3bd43 100644 --- a/google/cloud/vision_v1p3beta1/proto/geometry_pb2.py +++ b/google/cloud/vision_v1p3beta1/proto/geometry_pb2.py @@ -333,8 +333,6 @@ DESCRIPTOR=_VERTEX, __module__="google.cloud.vision_v1p3beta1.proto.geometry_pb2", __doc__="""X coordinate. - - Attributes: y: Y coordinate. @@ -351,8 +349,6 @@ DESCRIPTOR=_NORMALIZEDVERTEX, __module__="google.cloud.vision_v1p3beta1.proto.geometry_pb2", __doc__="""X coordinate. - - Attributes: y: Y coordinate. @@ -369,8 +365,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. @@ -388,10 +382,7 @@ dict( 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. @@ -407,12 +398,9 @@ 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. - - + __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.proto b/google/cloud/vision_v1p3beta1/proto/image_annotator.proto index b1c5ee41..b63aa2b2 100644 --- a/google/cloud/vision_v1p3beta1/proto/image_annotator.proto +++ b/google/cloud/vision_v1p3beta1/proto/image_annotator.proto @@ -561,7 +561,7 @@ message ImageContext { // 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](/vision/docs/languages). + // [supported languages](https://cloud.google.com/vision/docs/languages). repeated string language_hints = 2; // Parameters for crop hints annotation request. diff --git a/google/cloud/vision_v1p3beta1/proto/image_annotator_pb2.py b/google/cloud/vision_v1p3beta1/proto/image_annotator_pb2.py index 5b44a085..1e023200 100644 --- a/google/cloud/vision_v1p3beta1/proto/image_annotator_pb2.py +++ b/google/cloud/vision_v1p3beta1/proto/image_annotator_pb2.py @@ -3247,11 +3247,9 @@ 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 + __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. @@ -3274,10 +3272,8 @@ dict( 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 @@ -3312,10 +3308,7 @@ dict( 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 @@ -3343,8 +3336,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. @@ -3356,10 +3347,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 @@ -3423,8 +3411,6 @@ DESCRIPTOR=_LOCATIONINFO, __module__="google.cloud.vision_v1p3beta1.proto.image_annotator_pb2", __doc__="""Detected entity location information. - - Attributes: lat_lng: lat/long location coordinates. @@ -3440,10 +3426,7 @@ dict( 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. @@ -3464,8 +3447,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 @@ -3519,8 +3500,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. @@ -3547,11 +3526,9 @@ 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). - - + __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 @@ -3583,8 +3560,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. @@ -3602,10 +3577,8 @@ 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. - - + __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. @@ -3627,8 +3600,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. @@ -3645,8 +3616,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. @@ -3662,10 +3631,8 @@ 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. - - + __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 @@ -3688,10 +3655,8 @@ 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. - - + __doc__="""Set of crop hints that are used to generate new crops when serving + images. Attributes: crop_hints: Crop hint results. @@ -3708,8 +3673,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 @@ -3731,8 +3694,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 @@ -3750,8 +3711,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. @@ -3765,7 +3724,7 @@ 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. product_search_params: @@ -3784,10 +3743,8 @@ 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. - - + __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. @@ -3807,10 +3764,8 @@ 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. - - + __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. @@ -3830,8 +3785,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. @@ -3880,10 +3833,8 @@ 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. - - + __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 @@ -3902,10 +3853,8 @@ dict( 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. @@ -3922,8 +3871,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 @@ -3941,8 +3888,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. @@ -3967,8 +3912,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 @@ -3985,10 +3928,8 @@ 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. - - + __doc__="""Multiple async file annotation requests are batched into a single + service call. Attributes: requests: Required. Individual async file annotation requests for this @@ -4006,8 +3947,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 @@ -4025,8 +3964,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. @@ -4046,8 +3983,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. @@ -4073,10 +4008,7 @@ 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. - - + __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 @@ -4094,10 +4026,7 @@ 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. - - + __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. @@ -4124,8 +4053,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 b78eeb9b..fc451091 100644 --- a/google/cloud/vision_v1p3beta1/proto/product_search_pb2.py +++ b/google/cloud/vision_v1p3beta1/proto/product_search_pb2.py @@ -585,8 +585,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: @@ -644,8 +642,6 @@ DESCRIPTOR=_PRODUCTSEARCHRESULTS_PRODUCTINFO, __module__="google.cloud.vision_v1p3beta1.proto.product_search_pb2", __doc__="""Information about a product. - - Attributes: product_id: Product ID. @@ -668,8 +664,6 @@ DESCRIPTOR=_PRODUCTSEARCHRESULTS_RESULT, __module__="google.cloud.vision_v1p3beta1.proto.product_search_pb2", __doc__="""Information about a product. - - Attributes: product: The Product. @@ -687,8 +681,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 664b79d7..29bfd369 100644 --- a/google/cloud/vision_v1p3beta1/proto/product_search_service_pb2.py +++ b/google/cloud/vision_v1p3beta1/proto/product_search_service_pb2.py @@ -2088,8 +2088,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 @@ -2104,8 +2102,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: @@ -2144,11 +2140,9 @@ 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. - - + __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 @@ -2178,10 +2172,8 @@ 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. - - + __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 @@ -2212,8 +2204,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. @@ -2239,8 +2229,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 @@ -2264,8 +2252,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. @@ -2285,8 +2271,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: @@ -2304,8 +2288,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 @@ -2328,8 +2310,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: @@ -2347,8 +2327,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 @@ -2374,8 +2352,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. @@ -2399,8 +2375,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. @@ -2420,8 +2394,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: @@ -2440,8 +2412,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 @@ -2464,8 +2434,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 @@ -2484,8 +2452,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 @@ -2513,8 +2479,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 @@ -2541,8 +2505,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. @@ -2565,8 +2527,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. @@ -2585,8 +2545,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. @@ -2605,8 +2563,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. @@ -2628,10 +2584,7 @@ dict( 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. @@ -2653,10 +2606,7 @@ dict( 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 @@ -2680,10 +2630,7 @@ dict( 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. @@ -2702,10 +2649,8 @@ 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. - - + __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 @@ -2761,8 +2706,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. @@ -2782,8 +2725,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 @@ -2802,15 +2743,11 @@ 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.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. @@ -2832,14 +2769,10 @@ 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`` + __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 380b7318..5eb13ce9 100644 --- a/google/cloud/vision_v1p3beta1/proto/text_annotation_pb2.py +++ b/google/cloud/vision_v1p3beta1/proto/text_annotation_pb2.py @@ -896,8 +896,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 @@ -916,8 +914,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. @@ -933,10 +929,7 @@ dict( 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. @@ -948,16 +941,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. @@ -979,8 +970,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. @@ -1007,8 +996,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. @@ -1042,10 +1029,8 @@ 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. - - + __doc__="""Structural unit of text representing a number of words in certain + order. Attributes: property: Additional information detected for the paragraph. @@ -1076,8 +1061,6 @@ DESCRIPTOR=_WORD, __module__="google.cloud.vision_v1p3beta1.proto.text_annotation_pb2", __doc__="""A word representation. - - Attributes: property: Additional information detected for the word. @@ -1109,8 +1092,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 b5d3fbac..df70f6b8 100644 --- a/google/cloud/vision_v1p3beta1/proto/web_detection_pb2.py +++ b/google/cloud/vision_v1p3beta1/proto/web_detection_pb2.py @@ -499,8 +499,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. @@ -520,8 +518,6 @@ DESCRIPTOR=_WEBDETECTION_WEBIMAGE, __module__="google.cloud.vision_v1p3beta1.proto.web_detection_pb2", __doc__="""Metadata for online images. - - Attributes: url: The result image URL. @@ -538,8 +534,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. @@ -566,8 +560,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. @@ -582,8 +574,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 8fd9712f..5632853b 100644 --- a/google/cloud/vision_v1p4beta1/proto/face_pb2.py +++ b/google/cloud/vision_v1p4beta1/proto/face_pb2.py @@ -221,8 +221,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 @@ -244,8 +242,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 @@ -267,8 +263,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 d90740ef..b9633070 100644 --- a/google/cloud/vision_v1p4beta1/proto/geometry_pb2.py +++ b/google/cloud/vision_v1p4beta1/proto/geometry_pb2.py @@ -292,8 +292,6 @@ DESCRIPTOR=_VERTEX, __module__="google.cloud.vision_v1p4beta1.proto.geometry_pb2", __doc__="""X coordinate. - - Attributes: y: Y coordinate. @@ -310,8 +308,6 @@ DESCRIPTOR=_NORMALIZEDVERTEX, __module__="google.cloud.vision_v1p4beta1.proto.geometry_pb2", __doc__="""X coordinate. - - Attributes: y: Y coordinate. @@ -328,8 +324,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. @@ -347,12 +341,9 @@ 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. - - + __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.proto b/google/cloud/vision_v1p4beta1/proto/image_annotator.proto index 623dfe0a..9c18cccd 100644 --- a/google/cloud/vision_v1p4beta1/proto/image_annotator.proto +++ b/google/cloud/vision_v1p4beta1/proto/image_annotator.proto @@ -632,7 +632,7 @@ message ImageContext { // 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](/vision/docs/languages). + // [supported languages](https://cloud.google.com/vision/docs/languages). repeated string language_hints = 2; // Parameters for crop hints annotation request. diff --git a/google/cloud/vision_v1p4beta1/proto/image_annotator_pb2.py b/google/cloud/vision_v1p4beta1/proto/image_annotator_pb2.py index dc79c81c..61d99e14 100644 --- a/google/cloud/vision_v1p4beta1/proto/image_annotator_pb2.py +++ b/google/cloud/vision_v1p4beta1/proto/image_annotator_pb2.py @@ -3654,11 +3654,9 @@ 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 + __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. @@ -3681,10 +3679,8 @@ dict( 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 @@ -3719,10 +3715,7 @@ dict( 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 @@ -3750,8 +3743,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. @@ -3763,10 +3754,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 @@ -3837,8 +3825,6 @@ DESCRIPTOR=_LOCATIONINFO, __module__="google.cloud.vision_v1p4beta1.proto.image_annotator_pb2", __doc__="""Detected entity location information. - - Attributes: lat_lng: lat/long location coordinates. @@ -3854,10 +3840,7 @@ dict( 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. @@ -3878,8 +3861,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 @@ -3933,8 +3914,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. @@ -3961,11 +3940,9 @@ 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). - - + __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 @@ -3997,8 +3974,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. @@ -4016,10 +3991,8 @@ 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. - - + __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. @@ -4041,8 +4014,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. @@ -4059,8 +4030,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. @@ -4076,10 +4045,8 @@ 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. - - + __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 @@ -4101,10 +4068,8 @@ 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. - - + __doc__="""Set of crop hints that are used to generate new crops when serving + images. Attributes: crop_hints: Crop hint results. @@ -4121,8 +4086,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 @@ -4144,8 +4107,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 @@ -4163,8 +4124,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. @@ -4178,7 +4137,7 @@ 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. face_recognition_params: @@ -4199,11 +4158,9 @@ 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 + __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. @@ -4223,10 +4180,8 @@ 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. - - + __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. @@ -4246,8 +4201,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. @@ -4296,10 +4249,8 @@ dict( 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. @@ -4316,8 +4267,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 @@ -4334,10 +4283,7 @@ 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. - - + __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. @@ -4368,10 +4314,8 @@ 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. - - + __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 @@ -4396,10 +4340,7 @@ dict( 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 @@ -4418,8 +4359,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 @@ -4438,8 +4377,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. @@ -4464,8 +4401,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 @@ -4483,8 +4418,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. @@ -4504,8 +4437,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 @@ -4522,10 +4453,8 @@ 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. - - + __doc__="""Multiple async file annotation requests are batched into a single + service call. Attributes: requests: Required. Individual async file annotation requests for this @@ -4543,8 +4472,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 @@ -4562,8 +4489,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. @@ -4591,8 +4516,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. @@ -4618,10 +4541,7 @@ 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. - - + __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 @@ -4639,10 +4559,7 @@ 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. - - + __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 @@ -4677,8 +4594,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 ccaec75e..10c74eb7 100644 --- a/google/cloud/vision_v1p4beta1/proto/product_search_pb2.py +++ b/google/cloud/vision_v1p4beta1/proto/product_search_pb2.py @@ -501,8 +501,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. @@ -548,8 +546,6 @@ DESCRIPTOR=_PRODUCTSEARCHRESULTS_RESULT, __module__="google.cloud.vision_v1p4beta1.proto.product_search_pb2", __doc__="""Information about a product. - - Attributes: product: The Product. @@ -570,8 +566,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. @@ -593,10 +587,8 @@ 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. - - + __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 @@ -613,8 +605,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 47fa5309..53b16dae 100644 --- a/google/cloud/vision_v1p4beta1/proto/product_search_service_pb2.py +++ b/google/cloud/vision_v1p4beta1/proto/product_search_service_pb2.py @@ -2247,8 +2247,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 @@ -2263,8 +2261,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: @@ -2306,11 +2302,9 @@ 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. - - + __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 @@ -2341,10 +2335,8 @@ 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. - - + __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 @@ -2375,8 +2367,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. @@ -2402,8 +2392,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 @@ -2427,8 +2415,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. @@ -2448,8 +2434,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: @@ -2467,8 +2451,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 @@ -2491,8 +2473,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: @@ -2510,8 +2490,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 @@ -2537,8 +2515,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. @@ -2562,8 +2538,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. @@ -2583,8 +2557,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: @@ -2603,8 +2575,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 @@ -2627,8 +2597,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 @@ -2647,8 +2615,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 @@ -2676,8 +2642,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 @@ -2704,8 +2668,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. @@ -2728,8 +2690,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. @@ -2748,8 +2708,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. @@ -2768,8 +2726,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. @@ -2791,10 +2747,7 @@ dict( 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. @@ -2816,10 +2769,7 @@ dict( 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 @@ -2843,10 +2793,7 @@ dict( 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. @@ -2865,10 +2812,8 @@ 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. - - + __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 @@ -2930,8 +2875,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. @@ -2951,8 +2894,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 @@ -2971,15 +2912,11 @@ 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.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. @@ -3001,14 +2938,10 @@ 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`` + __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. @@ -3030,10 +2963,8 @@ 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. - - + __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 @@ -3052,8 +2983,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 afabc3ee..aa8abe22 100644 --- a/google/cloud/vision_v1p4beta1/proto/text_annotation_pb2.py +++ b/google/cloud/vision_v1p4beta1/proto/text_annotation_pb2.py @@ -896,8 +896,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 @@ -916,8 +914,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. @@ -933,10 +929,7 @@ dict( 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. @@ -948,16 +941,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. @@ -979,8 +970,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. @@ -1007,8 +996,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. @@ -1042,10 +1029,8 @@ 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. - - + __doc__="""Structural unit of text representing a number of words in certain + order. Attributes: property: Additional information detected for the paragraph. @@ -1076,8 +1061,6 @@ DESCRIPTOR=_WORD, __module__="google.cloud.vision_v1p4beta1.proto.text_annotation_pb2", __doc__="""A word representation. - - Attributes: property: Additional information detected for the word. @@ -1109,8 +1092,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 b8776254..2503b1fe 100644 --- a/google/cloud/vision_v1p4beta1/proto/web_detection_pb2.py +++ b/google/cloud/vision_v1p4beta1/proto/web_detection_pb2.py @@ -499,8 +499,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. @@ -520,8 +518,6 @@ DESCRIPTOR=_WEBDETECTION_WEBIMAGE, __module__="google.cloud.vision_v1p4beta1.proto.web_detection_pb2", __doc__="""Metadata for online images. - - Attributes: url: The result image URL. @@ -538,8 +534,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. @@ -566,8 +560,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. @@ -582,8 +574,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/noxfile.py b/noxfile.py index f70e358c..8846b9a2 100644 --- a/noxfile.py +++ b/noxfile.py @@ -72,6 +72,7 @@ def default(session): session.run( "py.test", "--quiet", + "--cov=google.cloud.vision", "--cov=google.cloud", "--cov=tests.unit", "--cov-append", @@ -109,10 +110,7 @@ def system(session): # Install all test dependencies, then install this package into the # virtualenv's dist-packages. - session.install("mock", "pytest") - - session.install("google-cloud-storage") - session.install("-e", "test_utils") + session.install("mock", "pytest", "google-cloud-testutils", "google-cloud-storage") session.install("-e", ".") # Run py.test against the system tests. @@ -140,7 +138,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/setup.cfg b/setup.cfg index 3bd55550..c3a2b39f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,3 +1,19 @@ +# -*- coding: utf-8 -*- +# +# 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. + # Generated by synthtool. DO NOT EDIT! [bdist_wheel] universal = 1 diff --git a/synth.metadata b/synth.metadata index 1fab2481..a5dda203 100644 --- a/synth.metadata +++ b/synth.metadata @@ -1,27 +1,32 @@ { - "updateTime": "2020-02-01T03:30:16.112488Z", "sources": [ { "generator": { "name": "artman", - "version": "0.44.4", - "dockerImage": "googleapis/artman@sha256:19e945954fc960a4bdfee6cb34695898ab21a8cf0bac063ee39b91f00a1faec8" + "version": "2.0.0", + "dockerImage": "googleapis/artman@sha256:b3b47805231a305d0f40c4bf069df20f6a2635574e6d4259fac651d3f9f6e098" + } + }, + { + "git": { + "name": ".", + "remote": "git@github.com:googleapis/python-vision", + "sha": "e067d8a283aaba44d9da7147c9ded5c8ab0e536c" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "b5cbe4a4ba64ab19e6627573ff52057a1657773d", - "internalRef": "292647187", - "log": "b5cbe4a4ba64ab19e6627573ff52057a1657773d\nSecurityCenter v1p1beta1: move file-level option on top to workaround protobuf.js bug.\n\nPiperOrigin-RevId: 292647187\n\nb224b317bf20c6a4fbc5030b4a969c3147f27ad3\nAdds API definitions for bigqueryreservation v1beta1.\n\nPiperOrigin-RevId: 292634722\n\nc1468702f9b17e20dd59007c0804a089b83197d2\nSynchronize new proto/yaml changes.\n\nPiperOrigin-RevId: 292626173\n\nffdfa4f55ab2f0afc11d0eb68f125ccbd5e404bd\nvision: v1p3beta1 publish annotations and retry config\n\nPiperOrigin-RevId: 292605599\n\n78f61482cd028fc1d9892aa5d89d768666a954cd\nvision: v1p1beta1 publish annotations and retry config\n\nPiperOrigin-RevId: 292605125\n\n60bb5a294a604fd1778c7ec87b265d13a7106171\nvision: v1p2beta1 publish annotations and retry config\n\nPiperOrigin-RevId: 292604980\n\n3bcf7aa79d45eb9ec29ab9036e9359ea325a7fc3\nvision: v1p4beta1 publish annotations and retry config\n\nPiperOrigin-RevId: 292604656\n\n2717b8a1c762b26911b45ecc2e4ee01d98401b28\nFix dataproc artman client library generation.\n\nPiperOrigin-RevId: 292555664\n\n7ac66d9be8a7d7de4f13566d8663978c9ee9dcd7\nAdd Dataproc Autoscaling API to V1.\n\nPiperOrigin-RevId: 292450564\n\n5d932b2c1be3a6ef487d094e3cf5c0673d0241dd\n- Improve documentation\n- Add a client_id field to StreamingPullRequest\n\nPiperOrigin-RevId: 292434036\n\neaff9fa8edec3e914995ce832b087039c5417ea7\nmonitoring: v3 publish annotations and client retry config\n\nPiperOrigin-RevId: 292425288\n\n70958bab8c5353870d31a23fb2c40305b050d3fe\nBigQuery Storage Read API v1 clients.\n\nPiperOrigin-RevId: 292407644\n\n7a15e7fe78ff4b6d5c9606a3264559e5bde341d1\nUpdate backend proto for Google Cloud Endpoints\n\nPiperOrigin-RevId: 292391607\n\n3ca2c014e24eb5111c8e7248b1e1eb833977c83d\nbazel: Add --flaky_test_attempts=3 argument to prevent CI failures caused by flaky tests\n\nPiperOrigin-RevId: 292382559\n\n9933347c1f677e81e19a844c2ef95bfceaf694fe\nbazel:Integrate latest protoc-java-resource-names-plugin changes (fix for PyYAML dependency in bazel rules)\n\nPiperOrigin-RevId: 292376626\n\nb835ab9d2f62c88561392aa26074c0b849fb0bd3\nasset: v1p2beta1 add client config annotations\n\n* remove unintentionally exposed RPCs\n* remove messages relevant to removed RPCs\n\nPiperOrigin-RevId: 292369593\n\n" + "sha": "756b174de4a122461993c1c583345533d819936d", + "internalRef": "308824110" } }, { - "template": { - "name": "python_split_library", - "origin": "synthtool.gcp", - "version": "2019.10.17" + "git": { + "name": "synthtool", + "remote": "https://github.com/googleapis/synthtool.git", + "sha": "01b6f23d24b27878b48667ce597876d66b59780e" } } ], diff --git a/synth.py b/synth.py index 1872b7a8..59023058 100644 --- a/synth.py +++ b/synth.py @@ -80,7 +80,7 @@ # Add templated files # ---------------------------------------------------------------------------- templated_files = common.py_library( - unit_cov_level=97, cov_level=100, system_test_dependencies=["../storage"] + cov_level=99, system_test_external_dependencies=["google-cloud-storage"] ) s.move(templated_files)