From 3e9cde4697b5da630347c67cffa37c2561a75f88 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 23 Jan 2023 10:13:42 -0500 Subject: [PATCH 1/2] docs: Add documentation for enums (#513) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: Add documentation for enums fix: Add context manager return types chore: Update gapic-generator-python to v1.8.1 PiperOrigin-RevId: 503210727 Source-Link: https://github.com/googleapis/googleapis/commit/a391fd1dac18dfdfa00c18c8404f2c3a6ff8e98e Source-Link: https://github.com/googleapis/googleapis-gen/commit/0080f830dec37c3384157082bce279e37079ea58 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDA4MGY4MzBkZWMzN2MzMzg0MTU3MDgyYmNlMjc5ZTM3MDc5ZWE1OCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../services/image_annotator/client.py | 2 +- .../services/product_search/client.py | 2 +- .../cloud/vision_v1/types/image_annotator.py | 144 ++++++++++++++++- .../vision_v1/types/product_search_service.py | 18 +++ .../cloud/vision_v1/types/text_annotation.py | 36 ++++- .../services/image_annotator/client.py | 2 +- .../vision_v1p1beta1/types/image_annotator.py | 122 ++++++++++++++- .../vision_v1p1beta1/types/text_annotation.py | 36 ++++- .../services/image_annotator/client.py | 2 +- .../vision_v1p2beta1/types/image_annotator.py | 141 ++++++++++++++++- .../vision_v1p2beta1/types/text_annotation.py | 36 ++++- .../services/image_annotator/client.py | 2 +- .../services/product_search/client.py | 2 +- .../vision_v1p3beta1/types/image_annotator.py | 145 +++++++++++++++++- .../types/product_search_service.py | 18 +++ .../vision_v1p3beta1/types/text_annotation.py | 36 ++++- .../services/image_annotator/client.py | 2 +- .../services/product_search/client.py | 2 +- .../vision_v1p4beta1/types/image_annotator.py | 140 ++++++++++++++++- .../types/product_search_service.py | 18 +++ .../vision_v1p4beta1/types/text_annotation.py | 36 ++++- ...ippet_metadata_google.cloud.vision.v1.json | 2 +- ...etadata_google.cloud.vision.v1p1beta1.json | 2 +- ...etadata_google.cloud.vision.v1p2beta1.json | 2 +- ...etadata_google.cloud.vision.v1p3beta1.json | 2 +- ...etadata_google.cloud.vision.v1p4beta1.json | 2 +- 26 files changed, 920 insertions(+), 32 deletions(-) diff --git a/google/cloud/vision_v1/services/image_annotator/client.py b/google/cloud/vision_v1/services/image_annotator/client.py index f915f42e..aa3ca435 100644 --- a/google/cloud/vision_v1/services/image_annotator/client.py +++ b/google/cloud/vision_v1/services/image_annotator/client.py @@ -944,7 +944,7 @@ def sample_async_batch_annotate_files(): # Done; return the response. return response - def __enter__(self): + def __enter__(self) -> "ImageAnnotatorClient": return self def __exit__(self, type, value, traceback): diff --git a/google/cloud/vision_v1/services/product_search/client.py b/google/cloud/vision_v1/services/product_search/client.py index 2f49a658..ccb04876 100644 --- a/google/cloud/vision_v1/services/product_search/client.py +++ b/google/cloud/vision_v1/services/product_search/client.py @@ -2863,7 +2863,7 @@ def sample_purge_products(): # Done; return the response. return response - def __enter__(self): + def __enter__(self) -> "ProductSearchClient": return self def __exit__(self, type, value, traceback): diff --git a/google/cloud/vision_v1/types/image_annotator.py b/google/cloud/vision_v1/types/image_annotator.py index 371727b4..76790bc0 100644 --- a/google/cloud/vision_v1/types/image_annotator.py +++ b/google/cloud/vision_v1/types/image_annotator.py @@ -77,6 +77,20 @@ class Likelihood(proto.Enum): r"""A bucketized representation of likelihood, which is intended to give clients highly stable results across model upgrades. + + Values: + UNKNOWN (0): + Unknown likelihood. + VERY_UNLIKELY (1): + It is very unlikely. + UNLIKELY (2): + It is unlikely. + POSSIBLE (3): + It is possible. + LIKELY (4): + It is likely. + VERY_LIKELY (5): + It is very likely. """ UNKNOWN = 0 VERY_UNLIKELY = 1 @@ -107,7 +121,43 @@ class Feature(proto.Message): """ class Type(proto.Enum): - r"""Type of Google Cloud Vision API feature to be extracted.""" + r"""Type of Google Cloud Vision API feature to be extracted. + + Values: + TYPE_UNSPECIFIED (0): + Unspecified feature type. + FACE_DETECTION (1): + Run face detection. + LANDMARK_DETECTION (2): + Run landmark detection. + LOGO_DETECTION (3): + Run logo detection. + LABEL_DETECTION (4): + Run label detection. + TEXT_DETECTION (5): + Run text detection / optical character recognition (OCR). + Text detection is optimized for areas of text within a + larger image; if the image is a document, use + ``DOCUMENT_TEXT_DETECTION`` instead. + DOCUMENT_TEXT_DETECTION (11): + Run dense text document OCR. Takes precedence when both + ``DOCUMENT_TEXT_DETECTION`` and ``TEXT_DETECTION`` are + present. + SAFE_SEARCH_DETECTION (6): + Run Safe Search to detect potentially unsafe + or undesirable content. + IMAGE_PROPERTIES (7): + Compute a set of image properties, such as + the image's dominant colors. + CROP_HINTS (9): + Run crop hints. + WEB_DETECTION (10): + Run web detection. + PRODUCT_SEARCH (12): + Run Product Search. + OBJECT_LOCALIZATION (19): + Run localizer for object detection. + """ TYPE_UNSPECIFIED = 0 FACE_DETECTION = 1 LANDMARK_DETECTION = 2 @@ -283,6 +333,83 @@ class Type(proto.Enum): vantage of the viewer of the image without considering mirror projections typical of photos. So, ``LEFT_EYE``, typically, is the person's right eye. + + Values: + UNKNOWN_LANDMARK (0): + Unknown face landmark detected. Should not be + filled. + LEFT_EYE (1): + Left eye. + RIGHT_EYE (2): + Right eye. + LEFT_OF_LEFT_EYEBROW (3): + Left of left eyebrow. + RIGHT_OF_LEFT_EYEBROW (4): + Right of left eyebrow. + LEFT_OF_RIGHT_EYEBROW (5): + Left of right eyebrow. + RIGHT_OF_RIGHT_EYEBROW (6): + Right of right eyebrow. + MIDPOINT_BETWEEN_EYES (7): + Midpoint between eyes. + NOSE_TIP (8): + Nose tip. + UPPER_LIP (9): + Upper lip. + LOWER_LIP (10): + Lower lip. + MOUTH_LEFT (11): + Mouth left. + MOUTH_RIGHT (12): + Mouth right. + MOUTH_CENTER (13): + Mouth center. + NOSE_BOTTOM_RIGHT (14): + Nose, bottom right. + NOSE_BOTTOM_LEFT (15): + Nose, bottom left. + NOSE_BOTTOM_CENTER (16): + Nose, bottom center. + LEFT_EYE_TOP_BOUNDARY (17): + Left eye, top boundary. + LEFT_EYE_RIGHT_CORNER (18): + Left eye, right corner. + LEFT_EYE_BOTTOM_BOUNDARY (19): + Left eye, bottom boundary. + LEFT_EYE_LEFT_CORNER (20): + Left eye, left corner. + RIGHT_EYE_TOP_BOUNDARY (21): + Right eye, top boundary. + RIGHT_EYE_RIGHT_CORNER (22): + Right eye, right corner. + RIGHT_EYE_BOTTOM_BOUNDARY (23): + Right eye, bottom boundary. + RIGHT_EYE_LEFT_CORNER (24): + Right eye, left corner. + LEFT_EYEBROW_UPPER_MIDPOINT (25): + Left eyebrow, upper midpoint. + RIGHT_EYEBROW_UPPER_MIDPOINT (26): + Right eyebrow, upper midpoint. + LEFT_EAR_TRAGION (27): + Left ear tragion. + RIGHT_EAR_TRAGION (28): + Right ear tragion. + LEFT_EYE_PUPIL (29): + Left eye pupil. + RIGHT_EYE_PUPIL (30): + Right eye pupil. + FOREHEAD_GLABELLA (31): + Forehead glabella. + CHIN_GNATHION (32): + Chin gnathion. + CHIN_LEFT_GONION (33): + Chin left gonion. + CHIN_RIGHT_GONION (34): + Chin right gonion. + LEFT_CHEEK_CENTER (35): + Left cheek center. + RIGHT_CHEEK_CENTER (36): + Right cheek center. """ UNKNOWN_LANDMARK = 0 LEFT_EYE = 1 @@ -1559,7 +1686,20 @@ class OperationMetadata(proto.Message): """ class State(proto.Enum): - r"""Batch operation states.""" + r"""Batch operation states. + + Values: + STATE_UNSPECIFIED (0): + Invalid. + CREATED (1): + Request is received. + RUNNING (2): + Request is actively being processed. + DONE (3): + The batch processing is done. + CANCELLED (4): + The batch processing was cancelled. + """ STATE_UNSPECIFIED = 0 CREATED = 1 RUNNING = 2 diff --git a/google/cloud/vision_v1/types/product_search_service.py b/google/cloud/vision_v1/types/product_search_service.py index 3b91b3e7..24f715c3 100644 --- a/google/cloud/vision_v1/types/product_search_service.py +++ b/google/cloud/vision_v1/types/product_search_service.py @@ -997,6 +997,24 @@ class BatchOperationMetadata(proto.Message): class State(proto.Enum): r"""Enumerates the possible states that the batch request can be in. + + Values: + STATE_UNSPECIFIED (0): + Invalid. + PROCESSING (1): + Request is actively being processed. + SUCCESSFUL (2): + The request is done and at least one item has + been successfully processed. + FAILED (3): + The request is done and no item has been + successfully processed. + CANCELLED (4): + The request is done after the + longrunning.Operations.CancelOperation has been + called by the user. Any records that were + processed before the cancel command are output + as specified in the request. """ STATE_UNSPECIFIED = 0 PROCESSING = 1 diff --git a/google/cloud/vision_v1/types/text_annotation.py b/google/cloud/vision_v1/types/text_annotation.py index 2298ad0b..febc9963 100644 --- a/google/cloud/vision_v1/types/text_annotation.py +++ b/google/cloud/vision_v1/types/text_annotation.py @@ -82,7 +82,24 @@ class DetectedBreak(proto.Message): """ class BreakType(proto.Enum): - r"""Enum to denote the type of break found. New line, space etc.""" + r"""Enum to denote the type of break found. New line, space etc. + + Values: + UNKNOWN (0): + Unknown break label type. + SPACE (1): + Regular space. + SURE_SPACE (2): + Sure space (very wide). + EOL_SURE_SPACE (3): + Line-wrapping break. + HYPHEN (4): + End-line hyphen that is not present in text; does not + co-occur with ``SPACE``, ``LEADER_SPACE``, or + ``LINE_BREAK``. + LINE_BREAK (5): + Line break that ends a paragraph. + """ UNKNOWN = 0 SPACE = 1 SURE_SPACE = 2 @@ -221,7 +238,22 @@ class Block(proto.Message): """ class BlockType(proto.Enum): - r"""Type of a block (text, image etc) as identified by OCR.""" + r"""Type of a block (text, image etc) as identified by OCR. + + Values: + UNKNOWN (0): + Unknown block type. + TEXT (1): + Regular text block. + TABLE (2): + Table block. + PICTURE (3): + Image block. + RULER (4): + Horizontal/vertical line box. + BARCODE (5): + Barcode block. + """ UNKNOWN = 0 TEXT = 1 TABLE = 2 diff --git a/google/cloud/vision_v1p1beta1/services/image_annotator/client.py b/google/cloud/vision_v1p1beta1/services/image_annotator/client.py index 204442d4..bb3945a7 100644 --- a/google/cloud/vision_v1p1beta1/services/image_annotator/client.py +++ b/google/cloud/vision_v1p1beta1/services/image_annotator/client.py @@ -524,7 +524,7 @@ def sample_batch_annotate_images(): # Done; return the response. return response - def __enter__(self): + def __enter__(self) -> "ImageAnnotatorClient": return self def __exit__(self, type, value, traceback): diff --git a/google/cloud/vision_v1p1beta1/types/image_annotator.py b/google/cloud/vision_v1p1beta1/types/image_annotator.py index c2d0d464..e68965ac 100644 --- a/google/cloud/vision_v1p1beta1/types/image_annotator.py +++ b/google/cloud/vision_v1p1beta1/types/image_annotator.py @@ -58,6 +58,25 @@ class Likelihood(proto.Enum): r"""A bucketized representation of likelihood, which is intended to give clients highly stable results across model upgrades. + + Values: + UNKNOWN (0): + Unknown likelihood. + VERY_UNLIKELY (1): + It is very unlikely that the image belongs to + the specified vertical. + UNLIKELY (2): + It is unlikely that the image belongs to the + specified vertical. + POSSIBLE (3): + It is possible that the image belongs to the + specified vertical. + LIKELY (4): + It is likely that the image belongs to the + specified vertical. + VERY_LIKELY (5): + It is very likely that the image belongs to + the specified vertical. """ UNKNOWN = 0 VERY_UNLIKELY = 1 @@ -88,7 +107,35 @@ class Feature(proto.Message): """ class Type(proto.Enum): - r"""Type of image feature.""" + r"""Type of image feature. + + Values: + TYPE_UNSPECIFIED (0): + Unspecified feature type. + FACE_DETECTION (1): + Run face detection. + LANDMARK_DETECTION (2): + Run landmark detection. + LOGO_DETECTION (3): + Run logo detection. + LABEL_DETECTION (4): + Run label detection. + TEXT_DETECTION (5): + Run OCR. + DOCUMENT_TEXT_DETECTION (11): + Run dense text document OCR. Takes precedence when both + DOCUMENT_TEXT_DETECTION and TEXT_DETECTION are present. + SAFE_SEARCH_DETECTION (6): + Run computer vision models to compute image + safe-search properties. + IMAGE_PROPERTIES (7): + Compute a set of image properties, such as + the image's dominant colors. + CROP_HINTS (9): + Run crop hints. + WEB_DETECTION (10): + Run web detection. + """ TYPE_UNSPECIFIED = 0 FACE_DETECTION = 1 LANDMARK_DETECTION = 2 @@ -249,6 +296,79 @@ class Type(proto.Enum): vantage of the viewer of the image without considering mirror projections typical of photos. So, ``LEFT_EYE``, typically, is the person's right eye. + + Values: + UNKNOWN_LANDMARK (0): + Unknown face landmark detected. Should not be + filled. + LEFT_EYE (1): + Left eye. + RIGHT_EYE (2): + Right eye. + LEFT_OF_LEFT_EYEBROW (3): + Left of left eyebrow. + RIGHT_OF_LEFT_EYEBROW (4): + Right of left eyebrow. + LEFT_OF_RIGHT_EYEBROW (5): + Left of right eyebrow. + RIGHT_OF_RIGHT_EYEBROW (6): + Right of right eyebrow. + MIDPOINT_BETWEEN_EYES (7): + Midpoint between eyes. + NOSE_TIP (8): + Nose tip. + UPPER_LIP (9): + Upper lip. + LOWER_LIP (10): + Lower lip. + MOUTH_LEFT (11): + Mouth left. + MOUTH_RIGHT (12): + Mouth right. + MOUTH_CENTER (13): + Mouth center. + NOSE_BOTTOM_RIGHT (14): + Nose, bottom right. + NOSE_BOTTOM_LEFT (15): + Nose, bottom left. + NOSE_BOTTOM_CENTER (16): + Nose, bottom center. + LEFT_EYE_TOP_BOUNDARY (17): + Left eye, top boundary. + LEFT_EYE_RIGHT_CORNER (18): + Left eye, right corner. + LEFT_EYE_BOTTOM_BOUNDARY (19): + Left eye, bottom boundary. + LEFT_EYE_LEFT_CORNER (20): + Left eye, left corner. + RIGHT_EYE_TOP_BOUNDARY (21): + Right eye, top boundary. + RIGHT_EYE_RIGHT_CORNER (22): + Right eye, right corner. + RIGHT_EYE_BOTTOM_BOUNDARY (23): + Right eye, bottom boundary. + RIGHT_EYE_LEFT_CORNER (24): + Right eye, left corner. + LEFT_EYEBROW_UPPER_MIDPOINT (25): + Left eyebrow, upper midpoint. + RIGHT_EYEBROW_UPPER_MIDPOINT (26): + Right eyebrow, upper midpoint. + LEFT_EAR_TRAGION (27): + Left ear tragion. + RIGHT_EAR_TRAGION (28): + Right ear tragion. + LEFT_EYE_PUPIL (29): + Left eye pupil. + RIGHT_EYE_PUPIL (30): + Right eye pupil. + FOREHEAD_GLABELLA (31): + Forehead glabella. + CHIN_GNATHION (32): + Chin gnathion. + CHIN_LEFT_GONION (33): + Chin left gonion. + CHIN_RIGHT_GONION (34): + Chin right gonion. """ UNKNOWN_LANDMARK = 0 LEFT_EYE = 1 diff --git a/google/cloud/vision_v1p1beta1/types/text_annotation.py b/google/cloud/vision_v1p1beta1/types/text_annotation.py index 2b307133..294fdbe1 100644 --- a/google/cloud/vision_v1p1beta1/types/text_annotation.py +++ b/google/cloud/vision_v1p1beta1/types/text_annotation.py @@ -82,7 +82,24 @@ class DetectedBreak(proto.Message): """ class BreakType(proto.Enum): - r"""Enum to denote the type of break found. New line, space etc.""" + r"""Enum to denote the type of break found. New line, space etc. + + Values: + UNKNOWN (0): + Unknown break label type. + SPACE (1): + Regular space. + SURE_SPACE (2): + Sure space (very wide). + EOL_SURE_SPACE (3): + Line-wrapping break. + HYPHEN (4): + End-line hyphen that is not present in text; does not + co-occur with ``SPACE``, ``LEADER_SPACE``, or + ``LINE_BREAK``. + LINE_BREAK (5): + Line break that ends a paragraph. + """ UNKNOWN = 0 SPACE = 1 SURE_SPACE = 2 @@ -206,7 +223,22 @@ class Block(proto.Message): """ class BlockType(proto.Enum): - r"""Type of a block (text, image etc) as identified by OCR.""" + r"""Type of a block (text, image etc) as identified by OCR. + + Values: + UNKNOWN (0): + Unknown block type. + TEXT (1): + Regular text block. + TABLE (2): + Table block. + PICTURE (3): + Image block. + RULER (4): + Horizontal/vertical line box. + BARCODE (5): + Barcode block. + """ UNKNOWN = 0 TEXT = 1 TABLE = 2 diff --git a/google/cloud/vision_v1p2beta1/services/image_annotator/client.py b/google/cloud/vision_v1p2beta1/services/image_annotator/client.py index ba233b13..ea05405e 100644 --- a/google/cloud/vision_v1p2beta1/services/image_annotator/client.py +++ b/google/cloud/vision_v1p2beta1/services/image_annotator/client.py @@ -651,7 +651,7 @@ def sample_async_batch_annotate_files(): # Done; return the response. return response - def __enter__(self): + def __enter__(self) -> "ImageAnnotatorClient": return self def __exit__(self, type, value, traceback): diff --git a/google/cloud/vision_v1p2beta1/types/image_annotator.py b/google/cloud/vision_v1p2beta1/types/image_annotator.py index a0ca57ad..929c7648 100644 --- a/google/cloud/vision_v1p2beta1/types/image_annotator.py +++ b/google/cloud/vision_v1p2beta1/types/image_annotator.py @@ -70,6 +70,25 @@ class Likelihood(proto.Enum): r"""A bucketized representation of likelihood, which is intended to give clients highly stable results across model upgrades. + + Values: + UNKNOWN (0): + Unknown likelihood. + VERY_UNLIKELY (1): + It is very unlikely that the image belongs to + the specified vertical. + UNLIKELY (2): + It is unlikely that the image belongs to the + specified vertical. + POSSIBLE (3): + It is possible that the image belongs to the + specified vertical. + LIKELY (4): + It is likely that the image belongs to the + specified vertical. + VERY_LIKELY (5): + It is very likely that the image belongs to + the specified vertical. """ UNKNOWN = 0 VERY_UNLIKELY = 1 @@ -100,7 +119,39 @@ class Feature(proto.Message): """ class Type(proto.Enum): - r"""Type of Google Cloud Vision API feature to be extracted.""" + r"""Type of Google Cloud Vision API feature to be extracted. + + Values: + TYPE_UNSPECIFIED (0): + Unspecified feature type. + FACE_DETECTION (1): + Run face detection. + LANDMARK_DETECTION (2): + Run landmark detection. + LOGO_DETECTION (3): + Run logo detection. + LABEL_DETECTION (4): + Run label detection. + TEXT_DETECTION (5): + Run text detection / optical character recognition (OCR). + Text detection is optimized for areas of text within a + larger image; if the image is a document, use + ``DOCUMENT_TEXT_DETECTION`` instead. + DOCUMENT_TEXT_DETECTION (11): + Run dense text document OCR. Takes precedence when both + ``DOCUMENT_TEXT_DETECTION`` and ``TEXT_DETECTION`` are + present. + SAFE_SEARCH_DETECTION (6): + Run Safe Search to detect potentially unsafe + or undesirable content. + IMAGE_PROPERTIES (7): + Compute a set of image properties, such as + the image's dominant colors. + CROP_HINTS (9): + Run crop hints. + WEB_DETECTION (10): + Run web detection. + """ TYPE_UNSPECIFIED = 0 FACE_DETECTION = 1 LANDMARK_DETECTION = 2 @@ -271,6 +322,79 @@ class Type(proto.Enum): vantage of the viewer of the image without considering mirror projections typical of photos. So, ``LEFT_EYE``, typically, is the person's right eye. + + Values: + UNKNOWN_LANDMARK (0): + Unknown face landmark detected. Should not be + filled. + LEFT_EYE (1): + Left eye. + RIGHT_EYE (2): + Right eye. + LEFT_OF_LEFT_EYEBROW (3): + Left of left eyebrow. + RIGHT_OF_LEFT_EYEBROW (4): + Right of left eyebrow. + LEFT_OF_RIGHT_EYEBROW (5): + Left of right eyebrow. + RIGHT_OF_RIGHT_EYEBROW (6): + Right of right eyebrow. + MIDPOINT_BETWEEN_EYES (7): + Midpoint between eyes. + NOSE_TIP (8): + Nose tip. + UPPER_LIP (9): + Upper lip. + LOWER_LIP (10): + Lower lip. + MOUTH_LEFT (11): + Mouth left. + MOUTH_RIGHT (12): + Mouth right. + MOUTH_CENTER (13): + Mouth center. + NOSE_BOTTOM_RIGHT (14): + Nose, bottom right. + NOSE_BOTTOM_LEFT (15): + Nose, bottom left. + NOSE_BOTTOM_CENTER (16): + Nose, bottom center. + LEFT_EYE_TOP_BOUNDARY (17): + Left eye, top boundary. + LEFT_EYE_RIGHT_CORNER (18): + Left eye, right corner. + LEFT_EYE_BOTTOM_BOUNDARY (19): + Left eye, bottom boundary. + LEFT_EYE_LEFT_CORNER (20): + Left eye, left corner. + RIGHT_EYE_TOP_BOUNDARY (21): + Right eye, top boundary. + RIGHT_EYE_RIGHT_CORNER (22): + Right eye, right corner. + RIGHT_EYE_BOTTOM_BOUNDARY (23): + Right eye, bottom boundary. + RIGHT_EYE_LEFT_CORNER (24): + Right eye, left corner. + LEFT_EYEBROW_UPPER_MIDPOINT (25): + Left eyebrow, upper midpoint. + RIGHT_EYEBROW_UPPER_MIDPOINT (26): + Right eyebrow, upper midpoint. + LEFT_EAR_TRAGION (27): + Left ear tragion. + RIGHT_EAR_TRAGION (28): + Right ear tragion. + LEFT_EYE_PUPIL (29): + Left eye pupil. + RIGHT_EYE_PUPIL (30): + Right eye pupil. + FOREHEAD_GLABELLA (31): + Forehead glabella. + CHIN_GNATHION (32): + Chin gnathion. + CHIN_LEFT_GONION (33): + Chin left gonion. + CHIN_RIGHT_GONION (34): + Chin right gonion. """ UNKNOWN_LANDMARK = 0 LEFT_EYE = 1 @@ -1243,7 +1367,20 @@ class OperationMetadata(proto.Message): """ class State(proto.Enum): - r"""Batch operation states.""" + r"""Batch operation states. + + Values: + STATE_UNSPECIFIED (0): + Invalid. + CREATED (1): + Request is received. + RUNNING (2): + Request is actively being processed. + DONE (3): + The batch processing is done. + CANCELLED (4): + The batch processing was cancelled. + """ STATE_UNSPECIFIED = 0 CREATED = 1 RUNNING = 2 diff --git a/google/cloud/vision_v1p2beta1/types/text_annotation.py b/google/cloud/vision_v1p2beta1/types/text_annotation.py index 9ab0d967..71c2bab1 100644 --- a/google/cloud/vision_v1p2beta1/types/text_annotation.py +++ b/google/cloud/vision_v1p2beta1/types/text_annotation.py @@ -82,7 +82,24 @@ class DetectedBreak(proto.Message): """ class BreakType(proto.Enum): - r"""Enum to denote the type of break found. New line, space etc.""" + r"""Enum to denote the type of break found. New line, space etc. + + Values: + UNKNOWN (0): + Unknown break label type. + SPACE (1): + Regular space. + SURE_SPACE (2): + Sure space (very wide). + EOL_SURE_SPACE (3): + Line-wrapping break. + HYPHEN (4): + End-line hyphen that is not present in text; does not + co-occur with ``SPACE``, ``LEADER_SPACE``, or + ``LINE_BREAK``. + LINE_BREAK (5): + Line break that ends a paragraph. + """ UNKNOWN = 0 SPACE = 1 SURE_SPACE = 2 @@ -221,7 +238,22 @@ class Block(proto.Message): """ class BlockType(proto.Enum): - r"""Type of a block (text, image etc) as identified by OCR.""" + r"""Type of a block (text, image etc) as identified by OCR. + + Values: + UNKNOWN (0): + Unknown block type. + TEXT (1): + Regular text block. + TABLE (2): + Table block. + PICTURE (3): + Image block. + RULER (4): + Horizontal/vertical line box. + BARCODE (5): + Barcode block. + """ UNKNOWN = 0 TEXT = 1 TABLE = 2 diff --git a/google/cloud/vision_v1p3beta1/services/image_annotator/client.py b/google/cloud/vision_v1p3beta1/services/image_annotator/client.py index 6d28b974..8dc71ced 100644 --- a/google/cloud/vision_v1p3beta1/services/image_annotator/client.py +++ b/google/cloud/vision_v1p3beta1/services/image_annotator/client.py @@ -697,7 +697,7 @@ def sample_async_batch_annotate_files(): # Done; return the response. return response - def __enter__(self): + def __enter__(self) -> "ImageAnnotatorClient": return self def __exit__(self, type, value, traceback): diff --git a/google/cloud/vision_v1p3beta1/services/product_search/client.py b/google/cloud/vision_v1p3beta1/services/product_search/client.py index 820ac248..e05cf1e2 100644 --- a/google/cloud/vision_v1p3beta1/services/product_search/client.py +++ b/google/cloud/vision_v1p3beta1/services/product_search/client.py @@ -2730,7 +2730,7 @@ def sample_import_product_sets(): # Done; return the response. return response - def __enter__(self): + def __enter__(self) -> "ProductSearchClient": return self def __exit__(self, type, value, traceback): diff --git a/google/cloud/vision_v1p3beta1/types/image_annotator.py b/google/cloud/vision_v1p3beta1/types/image_annotator.py index e3fec2ac..7bf9ec32 100644 --- a/google/cloud/vision_v1p3beta1/types/image_annotator.py +++ b/google/cloud/vision_v1p3beta1/types/image_annotator.py @@ -72,6 +72,25 @@ class Likelihood(proto.Enum): r"""A bucketized representation of likelihood, which is intended to give clients highly stable results across model upgrades. + + Values: + UNKNOWN (0): + Unknown likelihood. + VERY_UNLIKELY (1): + It is very unlikely that the image belongs to + the specified vertical. + UNLIKELY (2): + It is unlikely that the image belongs to the + specified vertical. + POSSIBLE (3): + It is possible that the image belongs to the + specified vertical. + LIKELY (4): + It is likely that the image belongs to the + specified vertical. + VERY_LIKELY (5): + It is very likely that the image belongs to + the specified vertical. """ UNKNOWN = 0 VERY_UNLIKELY = 1 @@ -102,7 +121,43 @@ class Feature(proto.Message): """ class Type(proto.Enum): - r"""Type of Google Cloud Vision API feature to be extracted.""" + r"""Type of Google Cloud Vision API feature to be extracted. + + Values: + TYPE_UNSPECIFIED (0): + Unspecified feature type. + FACE_DETECTION (1): + Run face detection. + LANDMARK_DETECTION (2): + Run landmark detection. + LOGO_DETECTION (3): + Run logo detection. + LABEL_DETECTION (4): + Run label detection. + TEXT_DETECTION (5): + Run text detection / optical character recognition (OCR). + Text detection is optimized for areas of text within a + larger image; if the image is a document, use + ``DOCUMENT_TEXT_DETECTION`` instead. + DOCUMENT_TEXT_DETECTION (11): + Run dense text document OCR. Takes precedence when both + ``DOCUMENT_TEXT_DETECTION`` and ``TEXT_DETECTION`` are + present. + SAFE_SEARCH_DETECTION (6): + Run Safe Search to detect potentially unsafe + or undesirable content. + IMAGE_PROPERTIES (7): + Compute a set of image properties, such as + the image's dominant colors. + CROP_HINTS (9): + Run crop hints. + WEB_DETECTION (10): + Run web detection. + PRODUCT_SEARCH (12): + Run Product Search. + OBJECT_LOCALIZATION (19): + Run localizer for object detection. + """ TYPE_UNSPECIFIED = 0 FACE_DETECTION = 1 LANDMARK_DETECTION = 2 @@ -275,6 +330,79 @@ class Type(proto.Enum): vantage of the viewer of the image without considering mirror projections typical of photos. So, ``LEFT_EYE``, typically, is the person's right eye. + + Values: + UNKNOWN_LANDMARK (0): + Unknown face landmark detected. Should not be + filled. + LEFT_EYE (1): + Left eye. + RIGHT_EYE (2): + Right eye. + LEFT_OF_LEFT_EYEBROW (3): + Left of left eyebrow. + RIGHT_OF_LEFT_EYEBROW (4): + Right of left eyebrow. + LEFT_OF_RIGHT_EYEBROW (5): + Left of right eyebrow. + RIGHT_OF_RIGHT_EYEBROW (6): + Right of right eyebrow. + MIDPOINT_BETWEEN_EYES (7): + Midpoint between eyes. + NOSE_TIP (8): + Nose tip. + UPPER_LIP (9): + Upper lip. + LOWER_LIP (10): + Lower lip. + MOUTH_LEFT (11): + Mouth left. + MOUTH_RIGHT (12): + Mouth right. + MOUTH_CENTER (13): + Mouth center. + NOSE_BOTTOM_RIGHT (14): + Nose, bottom right. + NOSE_BOTTOM_LEFT (15): + Nose, bottom left. + NOSE_BOTTOM_CENTER (16): + Nose, bottom center. + LEFT_EYE_TOP_BOUNDARY (17): + Left eye, top boundary. + LEFT_EYE_RIGHT_CORNER (18): + Left eye, right corner. + LEFT_EYE_BOTTOM_BOUNDARY (19): + Left eye, bottom boundary. + LEFT_EYE_LEFT_CORNER (20): + Left eye, left corner. + RIGHT_EYE_TOP_BOUNDARY (21): + Right eye, top boundary. + RIGHT_EYE_RIGHT_CORNER (22): + Right eye, right corner. + RIGHT_EYE_BOTTOM_BOUNDARY (23): + Right eye, bottom boundary. + RIGHT_EYE_LEFT_CORNER (24): + Right eye, left corner. + LEFT_EYEBROW_UPPER_MIDPOINT (25): + Left eyebrow, upper midpoint. + RIGHT_EYEBROW_UPPER_MIDPOINT (26): + Right eyebrow, upper midpoint. + LEFT_EAR_TRAGION (27): + Left ear tragion. + RIGHT_EAR_TRAGION (28): + Right ear tragion. + LEFT_EYE_PUPIL (29): + Left eye pupil. + RIGHT_EYE_PUPIL (30): + Right eye pupil. + FOREHEAD_GLABELLA (31): + Forehead glabella. + CHIN_GNATHION (32): + Chin gnathion. + CHIN_LEFT_GONION (33): + Chin left gonion. + CHIN_RIGHT_GONION (34): + Chin right gonion. """ UNKNOWN_LANDMARK = 0 LEFT_EYE = 1 @@ -1316,7 +1444,20 @@ class OperationMetadata(proto.Message): """ class State(proto.Enum): - r"""Batch operation states.""" + r"""Batch operation states. + + Values: + STATE_UNSPECIFIED (0): + Invalid. + CREATED (1): + Request is received. + RUNNING (2): + Request is actively being processed. + DONE (3): + The batch processing is done. + CANCELLED (4): + The batch processing was cancelled. + """ STATE_UNSPECIFIED = 0 CREATED = 1 RUNNING = 2 diff --git a/google/cloud/vision_v1p3beta1/types/product_search_service.py b/google/cloud/vision_v1p3beta1/types/product_search_service.py index 9590d9f9..32635f61 100644 --- a/google/cloud/vision_v1p3beta1/types/product_search_service.py +++ b/google/cloud/vision_v1p3beta1/types/product_search_service.py @@ -978,6 +978,24 @@ class BatchOperationMetadata(proto.Message): class State(proto.Enum): r"""Enumerates the possible states that the batch request can be in. + + Values: + STATE_UNSPECIFIED (0): + Invalid. + PROCESSING (1): + Request is actively being processed. + SUCCESSFUL (2): + The request is done and at least one item has + been successfully processed. + FAILED (3): + The request is done and no item has been + successfully processed. + CANCELLED (4): + The request is done after the + longrunning.Operations.CancelOperation has been + called by the user. Any records that were + processed before the cancel command are output + as specified in the request. """ STATE_UNSPECIFIED = 0 PROCESSING = 1 diff --git a/google/cloud/vision_v1p3beta1/types/text_annotation.py b/google/cloud/vision_v1p3beta1/types/text_annotation.py index aac0c22a..689548dc 100644 --- a/google/cloud/vision_v1p3beta1/types/text_annotation.py +++ b/google/cloud/vision_v1p3beta1/types/text_annotation.py @@ -82,7 +82,24 @@ class DetectedBreak(proto.Message): """ class BreakType(proto.Enum): - r"""Enum to denote the type of break found. New line, space etc.""" + r"""Enum to denote the type of break found. New line, space etc. + + Values: + UNKNOWN (0): + Unknown break label type. + SPACE (1): + Regular space. + SURE_SPACE (2): + Sure space (very wide). + EOL_SURE_SPACE (3): + Line-wrapping break. + HYPHEN (4): + End-line hyphen that is not present in text; does not + co-occur with ``SPACE``, ``LEADER_SPACE``, or + ``LINE_BREAK``. + LINE_BREAK (5): + Line break that ends a paragraph. + """ UNKNOWN = 0 SPACE = 1 SURE_SPACE = 2 @@ -221,7 +238,22 @@ class Block(proto.Message): """ class BlockType(proto.Enum): - r"""Type of a block (text, image etc) as identified by OCR.""" + r"""Type of a block (text, image etc) as identified by OCR. + + Values: + UNKNOWN (0): + Unknown block type. + TEXT (1): + Regular text block. + TABLE (2): + Table block. + PICTURE (3): + Image block. + RULER (4): + Horizontal/vertical line box. + BARCODE (5): + Barcode block. + """ UNKNOWN = 0 TEXT = 1 TABLE = 2 diff --git a/google/cloud/vision_v1p4beta1/services/image_annotator/client.py b/google/cloud/vision_v1p4beta1/services/image_annotator/client.py index 1776dfa4..abcc8a1d 100644 --- a/google/cloud/vision_v1p4beta1/services/image_annotator/client.py +++ b/google/cloud/vision_v1p4beta1/services/image_annotator/client.py @@ -944,7 +944,7 @@ def sample_async_batch_annotate_files(): # Done; return the response. return response - def __enter__(self): + def __enter__(self) -> "ImageAnnotatorClient": return self def __exit__(self, type, value, traceback): diff --git a/google/cloud/vision_v1p4beta1/services/product_search/client.py b/google/cloud/vision_v1p4beta1/services/product_search/client.py index d1f22522..e94709ae 100644 --- a/google/cloud/vision_v1p4beta1/services/product_search/client.py +++ b/google/cloud/vision_v1p4beta1/services/product_search/client.py @@ -2867,7 +2867,7 @@ def sample_purge_products(): # Done; return the response. return response - def __enter__(self): + def __enter__(self) -> "ProductSearchClient": return self def __exit__(self, type, value, traceback): diff --git a/google/cloud/vision_v1p4beta1/types/image_annotator.py b/google/cloud/vision_v1p4beta1/types/image_annotator.py index 5b5a557a..fb61a846 100644 --- a/google/cloud/vision_v1p4beta1/types/image_annotator.py +++ b/google/cloud/vision_v1p4beta1/types/image_annotator.py @@ -78,6 +78,20 @@ class Likelihood(proto.Enum): r"""A bucketized representation of likelihood, which is intended to give clients highly stable results across model upgrades. + + Values: + UNKNOWN (0): + Unknown likelihood. + VERY_UNLIKELY (1): + It is very unlikely. + UNLIKELY (2): + It is unlikely. + POSSIBLE (3): + It is possible. + LIKELY (4): + It is likely. + VERY_LIKELY (5): + It is very likely. """ UNKNOWN = 0 VERY_UNLIKELY = 1 @@ -108,7 +122,43 @@ class Feature(proto.Message): """ class Type(proto.Enum): - r"""Type of Google Cloud Vision API feature to be extracted.""" + r"""Type of Google Cloud Vision API feature to be extracted. + + Values: + TYPE_UNSPECIFIED (0): + Unspecified feature type. + FACE_DETECTION (1): + Run face detection. + LANDMARK_DETECTION (2): + Run landmark detection. + LOGO_DETECTION (3): + Run logo detection. + LABEL_DETECTION (4): + Run label detection. + TEXT_DETECTION (5): + Run text detection / optical character recognition (OCR). + Text detection is optimized for areas of text within a + larger image; if the image is a document, use + ``DOCUMENT_TEXT_DETECTION`` instead. + DOCUMENT_TEXT_DETECTION (11): + Run dense text document OCR. Takes precedence when both + ``DOCUMENT_TEXT_DETECTION`` and ``TEXT_DETECTION`` are + present. + SAFE_SEARCH_DETECTION (6): + Run Safe Search to detect potentially unsafe + or undesirable content. + IMAGE_PROPERTIES (7): + Compute a set of image properties, such as + the image's dominant colors. + CROP_HINTS (9): + Run crop hints. + WEB_DETECTION (10): + Run web detection. + PRODUCT_SEARCH (12): + Run Product Search. + OBJECT_LOCALIZATION (19): + Run localizer for object detection. + """ TYPE_UNSPECIFIED = 0 FACE_DETECTION = 1 LANDMARK_DETECTION = 2 @@ -289,6 +339,79 @@ class Type(proto.Enum): vantage of the viewer of the image without considering mirror projections typical of photos. So, ``LEFT_EYE``, typically, is the person's right eye. + + Values: + UNKNOWN_LANDMARK (0): + Unknown face landmark detected. Should not be + filled. + LEFT_EYE (1): + Left eye. + RIGHT_EYE (2): + Right eye. + LEFT_OF_LEFT_EYEBROW (3): + Left of left eyebrow. + RIGHT_OF_LEFT_EYEBROW (4): + Right of left eyebrow. + LEFT_OF_RIGHT_EYEBROW (5): + Left of right eyebrow. + RIGHT_OF_RIGHT_EYEBROW (6): + Right of right eyebrow. + MIDPOINT_BETWEEN_EYES (7): + Midpoint between eyes. + NOSE_TIP (8): + Nose tip. + UPPER_LIP (9): + Upper lip. + LOWER_LIP (10): + Lower lip. + MOUTH_LEFT (11): + Mouth left. + MOUTH_RIGHT (12): + Mouth right. + MOUTH_CENTER (13): + Mouth center. + NOSE_BOTTOM_RIGHT (14): + Nose, bottom right. + NOSE_BOTTOM_LEFT (15): + Nose, bottom left. + NOSE_BOTTOM_CENTER (16): + Nose, bottom center. + LEFT_EYE_TOP_BOUNDARY (17): + Left eye, top boundary. + LEFT_EYE_RIGHT_CORNER (18): + Left eye, right corner. + LEFT_EYE_BOTTOM_BOUNDARY (19): + Left eye, bottom boundary. + LEFT_EYE_LEFT_CORNER (20): + Left eye, left corner. + RIGHT_EYE_TOP_BOUNDARY (21): + Right eye, top boundary. + RIGHT_EYE_RIGHT_CORNER (22): + Right eye, right corner. + RIGHT_EYE_BOTTOM_BOUNDARY (23): + Right eye, bottom boundary. + RIGHT_EYE_LEFT_CORNER (24): + Right eye, left corner. + LEFT_EYEBROW_UPPER_MIDPOINT (25): + Left eyebrow, upper midpoint. + RIGHT_EYEBROW_UPPER_MIDPOINT (26): + Right eyebrow, upper midpoint. + LEFT_EAR_TRAGION (27): + Left ear tragion. + RIGHT_EAR_TRAGION (28): + Right ear tragion. + LEFT_EYE_PUPIL (29): + Left eye pupil. + RIGHT_EYE_PUPIL (30): + Right eye pupil. + FOREHEAD_GLABELLA (31): + Forehead glabella. + CHIN_GNATHION (32): + Chin gnathion. + CHIN_LEFT_GONION (33): + Chin left gonion. + CHIN_RIGHT_GONION (34): + Chin right gonion. """ UNKNOWN_LANDMARK = 0 LEFT_EYE = 1 @@ -1509,7 +1632,20 @@ class OperationMetadata(proto.Message): """ class State(proto.Enum): - r"""Batch operation states.""" + r"""Batch operation states. + + Values: + STATE_UNSPECIFIED (0): + Invalid. + CREATED (1): + Request is received. + RUNNING (2): + Request is actively being processed. + DONE (3): + The batch processing is done. + CANCELLED (4): + The batch processing was cancelled. + """ STATE_UNSPECIFIED = 0 CREATED = 1 RUNNING = 2 diff --git a/google/cloud/vision_v1p4beta1/types/product_search_service.py b/google/cloud/vision_v1p4beta1/types/product_search_service.py index 92663457..90f87814 100644 --- a/google/cloud/vision_v1p4beta1/types/product_search_service.py +++ b/google/cloud/vision_v1p4beta1/types/product_search_service.py @@ -999,6 +999,24 @@ class BatchOperationMetadata(proto.Message): class State(proto.Enum): r"""Enumerates the possible states that the batch request can be in. + + Values: + STATE_UNSPECIFIED (0): + Invalid. + PROCESSING (1): + Request is actively being processed. + SUCCESSFUL (2): + The request is done and at least one item has + been successfully processed. + FAILED (3): + The request is done and no item has been + successfully processed. + CANCELLED (4): + The request is done after the + longrunning.Operations.CancelOperation has been + called by the user. Any records that were + processed before the cancel command are output + as specified in the request. """ STATE_UNSPECIFIED = 0 PROCESSING = 1 diff --git a/google/cloud/vision_v1p4beta1/types/text_annotation.py b/google/cloud/vision_v1p4beta1/types/text_annotation.py index 11c93270..ccf90ea8 100644 --- a/google/cloud/vision_v1p4beta1/types/text_annotation.py +++ b/google/cloud/vision_v1p4beta1/types/text_annotation.py @@ -82,7 +82,24 @@ class DetectedBreak(proto.Message): """ class BreakType(proto.Enum): - r"""Enum to denote the type of break found. New line, space etc.""" + r"""Enum to denote the type of break found. New line, space etc. + + Values: + UNKNOWN (0): + Unknown break label type. + SPACE (1): + Regular space. + SURE_SPACE (2): + Sure space (very wide). + EOL_SURE_SPACE (3): + Line-wrapping break. + HYPHEN (4): + End-line hyphen that is not present in text; does not + co-occur with ``SPACE``, ``LEADER_SPACE``, or + ``LINE_BREAK``. + LINE_BREAK (5): + Line break that ends a paragraph. + """ UNKNOWN = 0 SPACE = 1 SURE_SPACE = 2 @@ -221,7 +238,22 @@ class Block(proto.Message): """ class BlockType(proto.Enum): - r"""Type of a block (text, image etc) as identified by OCR.""" + r"""Type of a block (text, image etc) as identified by OCR. + + Values: + UNKNOWN (0): + Unknown block type. + TEXT (1): + Regular text block. + TABLE (2): + Table block. + PICTURE (3): + Image block. + RULER (4): + Horizontal/vertical line box. + BARCODE (5): + Barcode block. + """ UNKNOWN = 0 TEXT = 1 TABLE = 2 diff --git a/samples/generated_samples/snippet_metadata_google.cloud.vision.v1.json b/samples/generated_samples/snippet_metadata_google.cloud.vision.v1.json index d37e6933..e29e0ec2 100644 --- a/samples/generated_samples/snippet_metadata_google.cloud.vision.v1.json +++ b/samples/generated_samples/snippet_metadata_google.cloud.vision.v1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-vision", - "version": "3.3.0" + "version": "0.1.0" }, "snippets": [ { diff --git a/samples/generated_samples/snippet_metadata_google.cloud.vision.v1p1beta1.json b/samples/generated_samples/snippet_metadata_google.cloud.vision.v1p1beta1.json index ec4fe303..70f20c5e 100644 --- a/samples/generated_samples/snippet_metadata_google.cloud.vision.v1p1beta1.json +++ b/samples/generated_samples/snippet_metadata_google.cloud.vision.v1p1beta1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-vision", - "version": "3.3.0" + "version": "0.1.0" }, "snippets": [ { diff --git a/samples/generated_samples/snippet_metadata_google.cloud.vision.v1p2beta1.json b/samples/generated_samples/snippet_metadata_google.cloud.vision.v1p2beta1.json index 0cd619f3..52e22f36 100644 --- a/samples/generated_samples/snippet_metadata_google.cloud.vision.v1p2beta1.json +++ b/samples/generated_samples/snippet_metadata_google.cloud.vision.v1p2beta1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-vision", - "version": "3.3.0" + "version": "0.1.0" }, "snippets": [ { diff --git a/samples/generated_samples/snippet_metadata_google.cloud.vision.v1p3beta1.json b/samples/generated_samples/snippet_metadata_google.cloud.vision.v1p3beta1.json index 4406cd93..2dae915e 100644 --- a/samples/generated_samples/snippet_metadata_google.cloud.vision.v1p3beta1.json +++ b/samples/generated_samples/snippet_metadata_google.cloud.vision.v1p3beta1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-vision", - "version": "3.3.0" + "version": "0.1.0" }, "snippets": [ { diff --git a/samples/generated_samples/snippet_metadata_google.cloud.vision.v1p4beta1.json b/samples/generated_samples/snippet_metadata_google.cloud.vision.v1p4beta1.json index a9b1e5d3..a1201ce4 100644 --- a/samples/generated_samples/snippet_metadata_google.cloud.vision.v1p4beta1.json +++ b/samples/generated_samples/snippet_metadata_google.cloud.vision.v1p4beta1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-vision", - "version": "3.3.0" + "version": "0.1.0" }, "snippets": [ { From c6e2cc3a7a41c6b30fe59ed1e1b42db67cee9e17 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 23 Jan 2023 10:36:13 -0500 Subject: [PATCH 2/2] chore(main): release 3.3.1 (#514) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- .release-please-manifest.json | 2 +- CHANGELOG.md | 12 ++++++++++++ google/cloud/vision/gapic_version.py | 2 +- google/cloud/vision_v1/gapic_version.py | 2 +- google/cloud/vision_v1p1beta1/gapic_version.py | 2 +- google/cloud/vision_v1p2beta1/gapic_version.py | 2 +- google/cloud/vision_v1p3beta1/gapic_version.py | 2 +- google/cloud/vision_v1p4beta1/gapic_version.py | 2 +- .../snippet_metadata_google.cloud.vision.v1.json | 2 +- ...ippet_metadata_google.cloud.vision.v1p1beta1.json | 2 +- ...ippet_metadata_google.cloud.vision.v1p2beta1.json | 2 +- ...ippet_metadata_google.cloud.vision.v1p3beta1.json | 2 +- ...ippet_metadata_google.cloud.vision.v1p4beta1.json | 2 +- 13 files changed, 24 insertions(+), 12 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index d4353363..1e585527 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,4 +1,4 @@ { - ".": "3.3.0" + ".": "3.3.1" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 22b31296..6f1fb624 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,18 @@ [1]: https://pypi.org/project/google-cloud-vision/#history +## [3.3.1](https://github.com/googleapis/python-vision/compare/v3.3.0...v3.3.1) (2023-01-23) + + +### Bug Fixes + +* Add context manager return types ([3e9cde4](https://github.com/googleapis/python-vision/commit/3e9cde4697b5da630347c67cffa37c2561a75f88)) + + +### Documentation + +* Add documentation for enums ([3e9cde4](https://github.com/googleapis/python-vision/commit/3e9cde4697b5da630347c67cffa37c2561a75f88)) + ## [3.3.0](https://github.com/googleapis/python-vision/compare/v3.2.0...v3.3.0) (2023-01-10) diff --git a/google/cloud/vision/gapic_version.py b/google/cloud/vision/gapic_version.py index 0f12e282..c443818a 100644 --- a/google/cloud/vision/gapic_version.py +++ b/google/cloud/vision/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "3.3.0" # {x-release-please-version} +__version__ = "3.3.1" # {x-release-please-version} diff --git a/google/cloud/vision_v1/gapic_version.py b/google/cloud/vision_v1/gapic_version.py index 0f12e282..c443818a 100644 --- a/google/cloud/vision_v1/gapic_version.py +++ b/google/cloud/vision_v1/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "3.3.0" # {x-release-please-version} +__version__ = "3.3.1" # {x-release-please-version} diff --git a/google/cloud/vision_v1p1beta1/gapic_version.py b/google/cloud/vision_v1p1beta1/gapic_version.py index 0f12e282..c443818a 100644 --- a/google/cloud/vision_v1p1beta1/gapic_version.py +++ b/google/cloud/vision_v1p1beta1/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "3.3.0" # {x-release-please-version} +__version__ = "3.3.1" # {x-release-please-version} diff --git a/google/cloud/vision_v1p2beta1/gapic_version.py b/google/cloud/vision_v1p2beta1/gapic_version.py index 0f12e282..c443818a 100644 --- a/google/cloud/vision_v1p2beta1/gapic_version.py +++ b/google/cloud/vision_v1p2beta1/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "3.3.0" # {x-release-please-version} +__version__ = "3.3.1" # {x-release-please-version} diff --git a/google/cloud/vision_v1p3beta1/gapic_version.py b/google/cloud/vision_v1p3beta1/gapic_version.py index 0f12e282..c443818a 100644 --- a/google/cloud/vision_v1p3beta1/gapic_version.py +++ b/google/cloud/vision_v1p3beta1/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "3.3.0" # {x-release-please-version} +__version__ = "3.3.1" # {x-release-please-version} diff --git a/google/cloud/vision_v1p4beta1/gapic_version.py b/google/cloud/vision_v1p4beta1/gapic_version.py index 0f12e282..c443818a 100644 --- a/google/cloud/vision_v1p4beta1/gapic_version.py +++ b/google/cloud/vision_v1p4beta1/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "3.3.0" # {x-release-please-version} +__version__ = "3.3.1" # {x-release-please-version} diff --git a/samples/generated_samples/snippet_metadata_google.cloud.vision.v1.json b/samples/generated_samples/snippet_metadata_google.cloud.vision.v1.json index e29e0ec2..051caa58 100644 --- a/samples/generated_samples/snippet_metadata_google.cloud.vision.v1.json +++ b/samples/generated_samples/snippet_metadata_google.cloud.vision.v1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-vision", - "version": "0.1.0" + "version": "3.3.1" }, "snippets": [ { diff --git a/samples/generated_samples/snippet_metadata_google.cloud.vision.v1p1beta1.json b/samples/generated_samples/snippet_metadata_google.cloud.vision.v1p1beta1.json index 70f20c5e..c435168f 100644 --- a/samples/generated_samples/snippet_metadata_google.cloud.vision.v1p1beta1.json +++ b/samples/generated_samples/snippet_metadata_google.cloud.vision.v1p1beta1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-vision", - "version": "0.1.0" + "version": "3.3.1" }, "snippets": [ { diff --git a/samples/generated_samples/snippet_metadata_google.cloud.vision.v1p2beta1.json b/samples/generated_samples/snippet_metadata_google.cloud.vision.v1p2beta1.json index 52e22f36..c1f19518 100644 --- a/samples/generated_samples/snippet_metadata_google.cloud.vision.v1p2beta1.json +++ b/samples/generated_samples/snippet_metadata_google.cloud.vision.v1p2beta1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-vision", - "version": "0.1.0" + "version": "3.3.1" }, "snippets": [ { diff --git a/samples/generated_samples/snippet_metadata_google.cloud.vision.v1p3beta1.json b/samples/generated_samples/snippet_metadata_google.cloud.vision.v1p3beta1.json index 2dae915e..b046ce7b 100644 --- a/samples/generated_samples/snippet_metadata_google.cloud.vision.v1p3beta1.json +++ b/samples/generated_samples/snippet_metadata_google.cloud.vision.v1p3beta1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-vision", - "version": "0.1.0" + "version": "3.3.1" }, "snippets": [ { diff --git a/samples/generated_samples/snippet_metadata_google.cloud.vision.v1p4beta1.json b/samples/generated_samples/snippet_metadata_google.cloud.vision.v1p4beta1.json index a1201ce4..ff7df131 100644 --- a/samples/generated_samples/snippet_metadata_google.cloud.vision.v1p4beta1.json +++ b/samples/generated_samples/snippet_metadata_google.cloud.vision.v1p4beta1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-vision", - "version": "0.1.0" + "version": "3.3.1" }, "snippets": [ {