From 747296fd25f53bc7bfd64f7b10825431516c0b9f Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 13 Sep 2023 15:37:18 -0700 Subject: [PATCH] docs: Minor formatting (#552) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: Minor formatting chore: Update gapic-generator-python to v1.11.5 build: Update rules_python to 0.24.0 PiperOrigin-RevId: 563436317 Source-Link: https://github.com/googleapis/googleapis/commit/42fd37b18d706f6f51f52f209973b3b2c28f509a Source-Link: https://github.com/googleapis/googleapis-gen/commit/280264ca02fb9316b4237a96d0af1a2343a81a56 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjgwMjY0Y2EwMmZiOTMxNmI0MjM3YTk2ZDBhZjFhMjM0M2E4MWE1NiJ9 * 🦉 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 --- google/cloud/vision_v1/services/image_annotator/async_client.py | 1 + google/cloud/vision_v1/services/image_annotator/client.py | 1 + .../cloud/vision_v1/services/image_annotator/transports/grpc.py | 1 + .../services/image_annotator/transports/grpc_asyncio.py | 1 + google/cloud/vision_v1/services/product_search/async_client.py | 2 ++ google/cloud/vision_v1/services/product_search/client.py | 2 ++ .../cloud/vision_v1/services/product_search/transports/grpc.py | 2 ++ .../services/product_search/transports/grpc_asyncio.py | 2 ++ .../cloud/vision_v1/services/product_search/transports/rest.py | 2 +- google/cloud/vision_v1/types/image_annotator.py | 2 ++ google/cloud/vision_v1/types/product_search.py | 1 + google/cloud/vision_v1/types/product_search_service.py | 2 ++ .../vision_v1p3beta1/services/product_search/transports/rest.py | 2 +- google/cloud/vision_v1p3beta1/types/product_search.py | 1 + google/cloud/vision_v1p3beta1/types/product_search_service.py | 2 ++ .../vision_v1p4beta1/services/image_annotator/async_client.py | 1 + .../cloud/vision_v1p4beta1/services/image_annotator/client.py | 1 + .../services/image_annotator/transports/grpc.py | 1 + .../services/image_annotator/transports/grpc_asyncio.py | 1 + .../vision_v1p4beta1/services/product_search/async_client.py | 2 ++ google/cloud/vision_v1p4beta1/services/product_search/client.py | 2 ++ .../vision_v1p4beta1/services/product_search/transports/grpc.py | 2 ++ .../services/product_search/transports/grpc_asyncio.py | 2 ++ .../vision_v1p4beta1/services/product_search/transports/rest.py | 2 +- google/cloud/vision_v1p4beta1/types/image_annotator.py | 2 ++ google/cloud/vision_v1p4beta1/types/product_search.py | 1 + google/cloud/vision_v1p4beta1/types/product_search_service.py | 2 ++ tests/unit/gapic/vision_v1/test_image_annotator.py | 2 +- tests/unit/gapic/vision_v1/test_product_search.py | 2 +- tests/unit/gapic/vision_v1p2beta1/test_image_annotator.py | 2 +- tests/unit/gapic/vision_v1p3beta1/test_image_annotator.py | 2 +- tests/unit/gapic/vision_v1p3beta1/test_product_search.py | 2 +- tests/unit/gapic/vision_v1p4beta1/test_image_annotator.py | 2 +- tests/unit/gapic/vision_v1p4beta1/test_product_search.py | 2 +- 34 files changed, 47 insertions(+), 10 deletions(-) diff --git a/google/cloud/vision_v1/services/image_annotator/async_client.py b/google/cloud/vision_v1/services/image_annotator/async_client.py index 63258ee7..0c914c0c 100644 --- a/google/cloud/vision_v1/services/image_annotator/async_client.py +++ b/google/cloud/vision_v1/services/image_annotator/async_client.py @@ -344,6 +344,7 @@ async def batch_annotate_files( r"""Service that performs image detection and annotation for a batch of files. Now only "application/pdf", "image/tiff" and "image/gif" are supported. + This service will extract at most 5 (customers can specify which 5 in AnnotateFileRequest.pages) frames (gif) or pages (pdf or tiff) from each file provided and diff --git a/google/cloud/vision_v1/services/image_annotator/client.py b/google/cloud/vision_v1/services/image_annotator/client.py index b1233d31..03e754c3 100644 --- a/google/cloud/vision_v1/services/image_annotator/client.py +++ b/google/cloud/vision_v1/services/image_annotator/client.py @@ -585,6 +585,7 @@ def batch_annotate_files( r"""Service that performs image detection and annotation for a batch of files. Now only "application/pdf", "image/tiff" and "image/gif" are supported. + This service will extract at most 5 (customers can specify which 5 in AnnotateFileRequest.pages) frames (gif) or pages (pdf or tiff) from each file provided and diff --git a/google/cloud/vision_v1/services/image_annotator/transports/grpc.py b/google/cloud/vision_v1/services/image_annotator/transports/grpc.py index 9668b73b..44cdba0a 100644 --- a/google/cloud/vision_v1/services/image_annotator/transports/grpc.py +++ b/google/cloud/vision_v1/services/image_annotator/transports/grpc.py @@ -291,6 +291,7 @@ def batch_annotate_files( Service that performs image detection and annotation for a batch of files. Now only "application/pdf", "image/tiff" and "image/gif" are supported. + This service will extract at most 5 (customers can specify which 5 in AnnotateFileRequest.pages) frames (gif) or pages (pdf or tiff) from each file provided and diff --git a/google/cloud/vision_v1/services/image_annotator/transports/grpc_asyncio.py b/google/cloud/vision_v1/services/image_annotator/transports/grpc_asyncio.py index ca67d30f..314a8b8b 100644 --- a/google/cloud/vision_v1/services/image_annotator/transports/grpc_asyncio.py +++ b/google/cloud/vision_v1/services/image_annotator/transports/grpc_asyncio.py @@ -296,6 +296,7 @@ def batch_annotate_files( Service that performs image detection and annotation for a batch of files. Now only "application/pdf", "image/tiff" and "image/gif" are supported. + This service will extract at most 5 (customers can specify which 5 in AnnotateFileRequest.pages) frames (gif) or pages (pdf or tiff) from each file provided and diff --git a/google/cloud/vision_v1/services/product_search/async_client.py b/google/cloud/vision_v1/services/product_search/async_client.py index e1f899d0..5acf019d 100644 --- a/google/cloud/vision_v1/services/product_search/async_client.py +++ b/google/cloud/vision_v1/services/product_search/async_client.py @@ -789,6 +789,7 @@ async def delete_product_set( ) -> None: r"""Permanently deletes a ProductSet. Products and ReferenceImages in the ProductSet are not deleted. + The actual image files are not deleted from Google Cloud Storage. @@ -1692,6 +1693,7 @@ async def delete_reference_image( metadata: Sequence[Tuple[str, str]] = (), ) -> None: r"""Permanently deletes a reference image. + The image metadata will be deleted right away, but search queries against ProductSets containing the image may still work until all related caches are refreshed. diff --git a/google/cloud/vision_v1/services/product_search/client.py b/google/cloud/vision_v1/services/product_search/client.py index 2e6611a1..1dfa3b78 100644 --- a/google/cloud/vision_v1/services/product_search/client.py +++ b/google/cloud/vision_v1/services/product_search/client.py @@ -1021,6 +1021,7 @@ def delete_product_set( ) -> None: r"""Permanently deletes a ProductSet. Products and ReferenceImages in the ProductSet are not deleted. + The actual image files are not deleted from Google Cloud Storage. @@ -1860,6 +1861,7 @@ def delete_reference_image( metadata: Sequence[Tuple[str, str]] = (), ) -> None: r"""Permanently deletes a reference image. + The image metadata will be deleted right away, but search queries against ProductSets containing the image may still work until all related caches are refreshed. diff --git a/google/cloud/vision_v1/services/product_search/transports/grpc.py b/google/cloud/vision_v1/services/product_search/transports/grpc.py index 4e15b32c..61319a2d 100644 --- a/google/cloud/vision_v1/services/product_search/transports/grpc.py +++ b/google/cloud/vision_v1/services/product_search/transports/grpc.py @@ -409,6 +409,7 @@ def delete_product_set( Permanently deletes a ProductSet. Products and ReferenceImages in the ProductSet are not deleted. + The actual image files are not deleted from Google Cloud Storage. @@ -666,6 +667,7 @@ def delete_reference_image( r"""Return a callable for the delete reference image method over gRPC. Permanently deletes a reference image. + The image metadata will be deleted right away, but search queries against ProductSets containing the image may still work until all related caches are refreshed. diff --git a/google/cloud/vision_v1/services/product_search/transports/grpc_asyncio.py b/google/cloud/vision_v1/services/product_search/transports/grpc_asyncio.py index d03cf4b5..45b2f257 100644 --- a/google/cloud/vision_v1/services/product_search/transports/grpc_asyncio.py +++ b/google/cloud/vision_v1/services/product_search/transports/grpc_asyncio.py @@ -417,6 +417,7 @@ def delete_product_set( Permanently deletes a ProductSet. Products and ReferenceImages in the ProductSet are not deleted. + The actual image files are not deleted from Google Cloud Storage. @@ -679,6 +680,7 @@ def delete_reference_image( r"""Return a callable for the delete reference image method over gRPC. Permanently deletes a reference image. + The image metadata will be deleted right away, but search queries against ProductSets containing the image may still work until all related caches are refreshed. diff --git a/google/cloud/vision_v1/services/product_search/transports/rest.py b/google/cloud/vision_v1/services/product_search/transports/rest.py index 225759f3..6e4c525c 100644 --- a/google/cloud/vision_v1/services/product_search/transports/rest.py +++ b/google/cloud/vision_v1/services/product_search/transports/rest.py @@ -41,8 +41,8 @@ from google.cloud.vision_v1.types import product_search_service -from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore +from google.longrunning import operations_pb2 # type: ignore from .base import ( ProductSearchTransport, diff --git a/google/cloud/vision_v1/types/image_annotator.py b/google/cloud/vision_v1/types/image_annotator.py index 97a57f60..e244cb8c 100644 --- a/google/cloud/vision_v1/types/image_annotator.py +++ b/google/cloud/vision_v1/types/image_annotator.py @@ -1259,6 +1259,7 @@ class AnnotateFileRequest(proto.Message): Pages starts from 1, we assume the first page of the file is page 1. At most 5 pages are supported per request. Pages can be negative. + Page 1 means the first page. Page 2 means the second page. Page -1 means the last page. @@ -1266,6 +1267,7 @@ class AnnotateFileRequest(proto.Message): If the file is GIF instead of PDF or TIFF, page refers to GIF frames. + If this field is empty, by default the service performs image annotation for the first 5 pages of the file. diff --git a/google/cloud/vision_v1/types/product_search.py b/google/cloud/vision_v1/types/product_search.py index 7570f836..3bbf11a2 100644 --- a/google/cloud/vision_v1/types/product_search.py +++ b/google/cloud/vision_v1/types/product_search.py @@ -67,6 +67,7 @@ class ProductSearchParams(proto.Message): expressions, where each expression within an OR must have the same key. An '=' should be used to connect the key and value. + For example, "(color = red OR color = blue) AND brand = Google" is acceptable, but "(color = red OR brand = Google)" is not acceptable. "color: diff --git a/google/cloud/vision_v1/types/product_search_service.py b/google/cloud/vision_v1/types/product_search_service.py index c582ab80..2de3c555 100644 --- a/google/cloud/vision_v1/types/product_search_service.py +++ b/google/cloud/vision_v1/types/product_search_service.py @@ -183,6 +183,7 @@ class ProductSet(proto.Message): Output only. If there was an error with indexing the product set, the field is populated. + This field is ignored when creating a ProductSet. """ @@ -230,6 +231,7 @@ class ReferenceImage(proto.Message): field is empty, the system will try to detect regions of interest. At most 10 bounding polygons will be used. + The provided shape is converted into a non-rotated rectangle. Once converted, the small edge of the rectangle must be greater than or diff --git a/google/cloud/vision_v1p3beta1/services/product_search/transports/rest.py b/google/cloud/vision_v1p3beta1/services/product_search/transports/rest.py index cdb79494..5ac69db0 100644 --- a/google/cloud/vision_v1p3beta1/services/product_search/transports/rest.py +++ b/google/cloud/vision_v1p3beta1/services/product_search/transports/rest.py @@ -41,8 +41,8 @@ from google.cloud.vision_v1p3beta1.types import product_search_service -from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore +from google.longrunning import operations_pb2 # type: ignore from .base import ( ProductSearchTransport, diff --git a/google/cloud/vision_v1p3beta1/types/product_search.py b/google/cloud/vision_v1p3beta1/types/product_search.py index 1944ff0e..7c993871 100644 --- a/google/cloud/vision_v1p3beta1/types/product_search.py +++ b/google/cloud/vision_v1p3beta1/types/product_search.py @@ -67,6 +67,7 @@ class ProductSearchParams(proto.Message): expressions, where each expression within an OR must have the same key. An '=' should be used to connect the key and value. + For example, "(color = red OR color = blue) AND brand = Google" is acceptable, but "(color = red OR brand = Google)" is not acceptable. "color: diff --git a/google/cloud/vision_v1p3beta1/types/product_search_service.py b/google/cloud/vision_v1p3beta1/types/product_search_service.py index 3b79832f..982ad0b2 100644 --- a/google/cloud/vision_v1p3beta1/types/product_search_service.py +++ b/google/cloud/vision_v1p3beta1/types/product_search_service.py @@ -174,6 +174,7 @@ class ProductSet(proto.Message): Output only. If there was an error with indexing the product set, the field is populated. + This field is ignored when creating a ProductSet. """ @@ -222,6 +223,7 @@ class ReferenceImage(proto.Message): field is empty, the system will try to detect regions of interest. At most 10 bounding polygons will be used. + The provided shape is converted into a non-rotated rectangle. Once converted, the small edge of the rectangle must be greater than or diff --git a/google/cloud/vision_v1p4beta1/services/image_annotator/async_client.py b/google/cloud/vision_v1p4beta1/services/image_annotator/async_client.py index 97bc15bb..3cb45a1a 100644 --- a/google/cloud/vision_v1p4beta1/services/image_annotator/async_client.py +++ b/google/cloud/vision_v1p4beta1/services/image_annotator/async_client.py @@ -341,6 +341,7 @@ async def batch_annotate_files( r"""Service that performs image detection and annotation for a batch of files. Now only "application/pdf", "image/tiff" and "image/gif" are supported. + This service will extract at most 5 (customers can specify which 5 in AnnotateFileRequest.pages) frames (gif) or pages (pdf or tiff) from each file provided and diff --git a/google/cloud/vision_v1p4beta1/services/image_annotator/client.py b/google/cloud/vision_v1p4beta1/services/image_annotator/client.py index c4a17316..51efdd8f 100644 --- a/google/cloud/vision_v1p4beta1/services/image_annotator/client.py +++ b/google/cloud/vision_v1p4beta1/services/image_annotator/client.py @@ -585,6 +585,7 @@ def batch_annotate_files( r"""Service that performs image detection and annotation for a batch of files. Now only "application/pdf", "image/tiff" and "image/gif" are supported. + This service will extract at most 5 (customers can specify which 5 in AnnotateFileRequest.pages) frames (gif) or pages (pdf or tiff) from each file provided and diff --git a/google/cloud/vision_v1p4beta1/services/image_annotator/transports/grpc.py b/google/cloud/vision_v1p4beta1/services/image_annotator/transports/grpc.py index 29cd0d5e..e70ee4ad 100644 --- a/google/cloud/vision_v1p4beta1/services/image_annotator/transports/grpc.py +++ b/google/cloud/vision_v1p4beta1/services/image_annotator/transports/grpc.py @@ -291,6 +291,7 @@ def batch_annotate_files( Service that performs image detection and annotation for a batch of files. Now only "application/pdf", "image/tiff" and "image/gif" are supported. + This service will extract at most 5 (customers can specify which 5 in AnnotateFileRequest.pages) frames (gif) or pages (pdf or tiff) from each file provided and diff --git a/google/cloud/vision_v1p4beta1/services/image_annotator/transports/grpc_asyncio.py b/google/cloud/vision_v1p4beta1/services/image_annotator/transports/grpc_asyncio.py index 61b1ac67..817bff4a 100644 --- a/google/cloud/vision_v1p4beta1/services/image_annotator/transports/grpc_asyncio.py +++ b/google/cloud/vision_v1p4beta1/services/image_annotator/transports/grpc_asyncio.py @@ -296,6 +296,7 @@ def batch_annotate_files( Service that performs image detection and annotation for a batch of files. Now only "application/pdf", "image/tiff" and "image/gif" are supported. + This service will extract at most 5 (customers can specify which 5 in AnnotateFileRequest.pages) frames (gif) or pages (pdf or tiff) from each file provided and diff --git a/google/cloud/vision_v1p4beta1/services/product_search/async_client.py b/google/cloud/vision_v1p4beta1/services/product_search/async_client.py index 9bfbe9bf..b5d7f8a5 100644 --- a/google/cloud/vision_v1p4beta1/services/product_search/async_client.py +++ b/google/cloud/vision_v1p4beta1/services/product_search/async_client.py @@ -788,6 +788,7 @@ async def delete_product_set( ) -> None: r"""Permanently deletes a ProductSet. Products and ReferenceImages in the ProductSet are not deleted. + The actual image files are not deleted from Google Cloud Storage. @@ -1688,6 +1689,7 @@ async def delete_reference_image( metadata: Sequence[Tuple[str, str]] = (), ) -> None: r"""Permanently deletes a reference image. + The image metadata will be deleted right away, but search queries against ProductSets containing the image may still work until all related caches are refreshed. diff --git a/google/cloud/vision_v1p4beta1/services/product_search/client.py b/google/cloud/vision_v1p4beta1/services/product_search/client.py index 468f88b6..80b7059c 100644 --- a/google/cloud/vision_v1p4beta1/services/product_search/client.py +++ b/google/cloud/vision_v1p4beta1/services/product_search/client.py @@ -1023,6 +1023,7 @@ def delete_product_set( ) -> None: r"""Permanently deletes a ProductSet. Products and ReferenceImages in the ProductSet are not deleted. + The actual image files are not deleted from Google Cloud Storage. @@ -1862,6 +1863,7 @@ def delete_reference_image( metadata: Sequence[Tuple[str, str]] = (), ) -> None: r"""Permanently deletes a reference image. + The image metadata will be deleted right away, but search queries against ProductSets containing the image may still work until all related caches are refreshed. diff --git a/google/cloud/vision_v1p4beta1/services/product_search/transports/grpc.py b/google/cloud/vision_v1p4beta1/services/product_search/transports/grpc.py index ad1318b5..ef1f74f2 100644 --- a/google/cloud/vision_v1p4beta1/services/product_search/transports/grpc.py +++ b/google/cloud/vision_v1p4beta1/services/product_search/transports/grpc.py @@ -411,6 +411,7 @@ def delete_product_set( Permanently deletes a ProductSet. Products and ReferenceImages in the ProductSet are not deleted. + The actual image files are not deleted from Google Cloud Storage. @@ -668,6 +669,7 @@ def delete_reference_image( r"""Return a callable for the delete reference image method over gRPC. Permanently deletes a reference image. + The image metadata will be deleted right away, but search queries against ProductSets containing the image may still work until all related caches are refreshed. diff --git a/google/cloud/vision_v1p4beta1/services/product_search/transports/grpc_asyncio.py b/google/cloud/vision_v1p4beta1/services/product_search/transports/grpc_asyncio.py index 7c184904..c39885fb 100644 --- a/google/cloud/vision_v1p4beta1/services/product_search/transports/grpc_asyncio.py +++ b/google/cloud/vision_v1p4beta1/services/product_search/transports/grpc_asyncio.py @@ -419,6 +419,7 @@ def delete_product_set( Permanently deletes a ProductSet. Products and ReferenceImages in the ProductSet are not deleted. + The actual image files are not deleted from Google Cloud Storage. @@ -681,6 +682,7 @@ def delete_reference_image( r"""Return a callable for the delete reference image method over gRPC. Permanently deletes a reference image. + The image metadata will be deleted right away, but search queries against ProductSets containing the image may still work until all related caches are refreshed. diff --git a/google/cloud/vision_v1p4beta1/services/product_search/transports/rest.py b/google/cloud/vision_v1p4beta1/services/product_search/transports/rest.py index 42cf5136..d9b5bd76 100644 --- a/google/cloud/vision_v1p4beta1/services/product_search/transports/rest.py +++ b/google/cloud/vision_v1p4beta1/services/product_search/transports/rest.py @@ -41,8 +41,8 @@ from google.cloud.vision_v1p4beta1.types import product_search_service -from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore +from google.longrunning import operations_pb2 # type: ignore from .base import ( ProductSearchTransport, diff --git a/google/cloud/vision_v1p4beta1/types/image_annotator.py b/google/cloud/vision_v1p4beta1/types/image_annotator.py index 95f68c49..cf8aa685 100644 --- a/google/cloud/vision_v1p4beta1/types/image_annotator.py +++ b/google/cloud/vision_v1p4beta1/types/image_annotator.py @@ -1256,6 +1256,7 @@ class AnnotateFileRequest(proto.Message): Pages starts from 1, we assume the first page of the file is page 1. At most 5 pages are supported per request. Pages can be negative. + Page 1 means the first page. Page 2 means the second page. Page -1 means the last page. @@ -1263,6 +1264,7 @@ class AnnotateFileRequest(proto.Message): If the file is GIF instead of PDF or TIFF, page refers to GIF frames. + If this field is empty, by default the service performs image annotation for the first 5 pages of the file. diff --git a/google/cloud/vision_v1p4beta1/types/product_search.py b/google/cloud/vision_v1p4beta1/types/product_search.py index ac94ff46..30d48679 100644 --- a/google/cloud/vision_v1p4beta1/types/product_search.py +++ b/google/cloud/vision_v1p4beta1/types/product_search.py @@ -67,6 +67,7 @@ class ProductSearchParams(proto.Message): expressions, where each expression within an OR must have the same key. An '=' should be used to connect the key and value. + For example, "(color = red OR color = blue) AND brand = Google" is acceptable, but "(color = red OR brand = Google)" is not acceptable. "color: diff --git a/google/cloud/vision_v1p4beta1/types/product_search_service.py b/google/cloud/vision_v1p4beta1/types/product_search_service.py index b470d8a5..98c60897 100644 --- a/google/cloud/vision_v1p4beta1/types/product_search_service.py +++ b/google/cloud/vision_v1p4beta1/types/product_search_service.py @@ -182,6 +182,7 @@ class ProductSet(proto.Message): Output only. If there was an error with indexing the product set, the field is populated. + This field is ignored when creating a ProductSet. """ @@ -230,6 +231,7 @@ class ReferenceImage(proto.Message): field is empty, the system will try to detect regions of interest. At most 10 bounding polygons will be used. + The provided shape is converted into a non-rotated rectangle. Once converted, the small edge of the rectangle must be greater than or diff --git a/tests/unit/gapic/vision_v1/test_image_annotator.py b/tests/unit/gapic/vision_v1/test_image_annotator.py index 74b68019..70675a95 100644 --- a/tests/unit/gapic/vision_v1/test_image_annotator.py +++ b/tests/unit/gapic/vision_v1/test_image_annotator.py @@ -54,7 +54,7 @@ from google.cloud.vision_v1.types import geometry from google.cloud.vision_v1.types import image_annotator from google.cloud.vision_v1.types import product_search -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.type import latlng_pb2 # type: ignore import google.auth diff --git a/tests/unit/gapic/vision_v1/test_product_search.py b/tests/unit/gapic/vision_v1/test_product_search.py index cf899692..3f99bf1c 100644 --- a/tests/unit/gapic/vision_v1/test_product_search.py +++ b/tests/unit/gapic/vision_v1/test_product_search.py @@ -54,7 +54,7 @@ from google.cloud.vision_v1.services.product_search import transports from google.cloud.vision_v1.types import geometry from google.cloud.vision_v1.types import product_search_service -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import any_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore diff --git a/tests/unit/gapic/vision_v1p2beta1/test_image_annotator.py b/tests/unit/gapic/vision_v1p2beta1/test_image_annotator.py index 57e51b9a..e74b0988 100644 --- a/tests/unit/gapic/vision_v1p2beta1/test_image_annotator.py +++ b/tests/unit/gapic/vision_v1p2beta1/test_image_annotator.py @@ -54,7 +54,7 @@ from google.cloud.vision_v1p2beta1.services.image_annotator import ImageAnnotatorClient from google.cloud.vision_v1p2beta1.services.image_annotator import transports from google.cloud.vision_v1p2beta1.types import image_annotator -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.type import latlng_pb2 # type: ignore import google.auth diff --git a/tests/unit/gapic/vision_v1p3beta1/test_image_annotator.py b/tests/unit/gapic/vision_v1p3beta1/test_image_annotator.py index bdb6d9cd..f70d8333 100644 --- a/tests/unit/gapic/vision_v1p3beta1/test_image_annotator.py +++ b/tests/unit/gapic/vision_v1p3beta1/test_image_annotator.py @@ -56,7 +56,7 @@ from google.cloud.vision_v1p3beta1.types import geometry from google.cloud.vision_v1p3beta1.types import image_annotator from google.cloud.vision_v1p3beta1.types import product_search -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.type import latlng_pb2 # type: ignore import google.auth diff --git a/tests/unit/gapic/vision_v1p3beta1/test_product_search.py b/tests/unit/gapic/vision_v1p3beta1/test_product_search.py index 41ce43ce..8ec70fd6 100644 --- a/tests/unit/gapic/vision_v1p3beta1/test_product_search.py +++ b/tests/unit/gapic/vision_v1p3beta1/test_product_search.py @@ -56,7 +56,7 @@ from google.cloud.vision_v1p3beta1.services.product_search import transports from google.cloud.vision_v1p3beta1.types import geometry from google.cloud.vision_v1p3beta1.types import product_search_service -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import any_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore diff --git a/tests/unit/gapic/vision_v1p4beta1/test_image_annotator.py b/tests/unit/gapic/vision_v1p4beta1/test_image_annotator.py index d0f94d9c..91e44751 100644 --- a/tests/unit/gapic/vision_v1p4beta1/test_image_annotator.py +++ b/tests/unit/gapic/vision_v1p4beta1/test_image_annotator.py @@ -57,7 +57,7 @@ from google.cloud.vision_v1p4beta1.types import geometry from google.cloud.vision_v1p4beta1.types import image_annotator from google.cloud.vision_v1p4beta1.types import product_search -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.type import latlng_pb2 # type: ignore import google.auth diff --git a/tests/unit/gapic/vision_v1p4beta1/test_product_search.py b/tests/unit/gapic/vision_v1p4beta1/test_product_search.py index c82e3171..f6f0c66d 100644 --- a/tests/unit/gapic/vision_v1p4beta1/test_product_search.py +++ b/tests/unit/gapic/vision_v1p4beta1/test_product_search.py @@ -56,7 +56,7 @@ from google.cloud.vision_v1p4beta1.services.product_search import transports from google.cloud.vision_v1p4beta1.types import geometry from google.cloud.vision_v1p4beta1.types import product_search_service -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import any_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore