From acad2c97e8027729c4f6070806caeccee2a8b7f8 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 16 Aug 2019 09:53:31 -0700 Subject: [PATCH] Update docstring to say at most 5 frames can be batch annotated (via synth). (#9041) --- .../vision_v1p4beta1/gapic/image_annotator_client.py | 7 ++++--- .../gapic/transports/image_annotator_grpc_transport.py | 7 ++++--- .../cloud/vision_v1p4beta1/proto/image_annotator.proto | 7 ++++--- .../vision_v1p4beta1/proto/image_annotator_pb2_grpc.py | 7 ++++--- packages/google-cloud-vision/synth.metadata | 10 +++++----- 5 files changed, 21 insertions(+), 17 deletions(-) diff --git a/packages/google-cloud-vision/google/cloud/vision_v1p4beta1/gapic/image_annotator_client.py b/packages/google-cloud-vision/google/cloud/vision_v1p4beta1/gapic/image_annotator_client.py index 26e7792db0cf..bd176adf4a7c 100644 --- a/packages/google-cloud-vision/google/cloud/vision_v1p4beta1/gapic/image_annotator_client.py +++ b/packages/google-cloud-vision/google/cloud/vision_v1p4beta1/gapic/image_annotator_client.py @@ -264,9 +264,10 @@ 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 the first 10 frames (gif) or pages - (pdf or tiff) from each file provided and perform detection and annotation - for each image extracted. + This service will extract at most 5 (customers can specify which 5 in + AnnotateFileRequest.pages) frames (gif) or pages (pdf or tiff) from each + file provided and perform detection and annotation for each image + extracted. Example: >>> from google.cloud import vision_v1p4beta1 diff --git a/packages/google-cloud-vision/google/cloud/vision_v1p4beta1/gapic/transports/image_annotator_grpc_transport.py b/packages/google-cloud-vision/google/cloud/vision_v1p4beta1/gapic/transports/image_annotator_grpc_transport.py index 6dc6147d13a4..7d832e49eda1 100644 --- a/packages/google-cloud-vision/google/cloud/vision_v1p4beta1/gapic/transports/image_annotator_grpc_transport.py +++ b/packages/google-cloud-vision/google/cloud/vision_v1p4beta1/gapic/transports/image_annotator_grpc_transport.py @@ -138,9 +138,10 @@ def batch_annotate_files(self): 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 the first 10 frames (gif) or pages - (pdf or tiff) from each file provided and perform detection and annotation - for each image extracted. + This service will extract at most 5 (customers can specify which 5 in + AnnotateFileRequest.pages) frames (gif) or pages (pdf or tiff) from each + file provided and perform detection and annotation for each image + extracted. Returns: Callable: A callable which accepts the appropriate diff --git a/packages/google-cloud-vision/google/cloud/vision_v1p4beta1/proto/image_annotator.proto b/packages/google-cloud-vision/google/cloud/vision_v1p4beta1/proto/image_annotator.proto index ebbf92c35b11..30318044a676 100644 --- a/packages/google-cloud-vision/google/cloud/vision_v1p4beta1/proto/image_annotator.proto +++ b/packages/google-cloud-vision/google/cloud/vision_v1p4beta1/proto/image_annotator.proto @@ -52,9 +52,10 @@ service ImageAnnotator { // 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 the first 10 frames (gif) or pages - // (pdf or tiff) from each file provided and perform detection and annotation - // for each image extracted. + // This service will extract at most 5 (customers can specify which 5 in + // AnnotateFileRequest.pages) frames (gif) or pages (pdf or tiff) from each + // file provided and perform detection and annotation for each image + // extracted. rpc BatchAnnotateFiles(BatchAnnotateFilesRequest) returns (BatchAnnotateFilesResponse) { option (google.api.http) = { diff --git a/packages/google-cloud-vision/google/cloud/vision_v1p4beta1/proto/image_annotator_pb2_grpc.py b/packages/google-cloud-vision/google/cloud/vision_v1p4beta1/proto/image_annotator_pb2_grpc.py index 73560417438f..380e78b07975 100644 --- a/packages/google-cloud-vision/google/cloud/vision_v1p4beta1/proto/image_annotator_pb2_grpc.py +++ b/packages/google-cloud-vision/google/cloud/vision_v1p4beta1/proto/image_annotator_pb2_grpc.py @@ -60,9 +60,10 @@ def BatchAnnotateFiles(self, request, context): """Service that performs image detection and annotation for a batch of files. Now only "application/pdf", "image/tiff" and "image/gif" are supported. - This service will extract at most the first 10 frames (gif) or pages - (pdf or tiff) from each file provided and perform detection and annotation - for each image extracted. + This service will extract at most 5 (customers can specify which 5 in + AnnotateFileRequest.pages) frames (gif) or pages (pdf or tiff) from each + file provided and perform detection and annotation for each image + extracted. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") diff --git a/packages/google-cloud-vision/synth.metadata b/packages/google-cloud-vision/synth.metadata index 19264ad8ea8d..e33b7b952bad 100644 --- a/packages/google-cloud-vision/synth.metadata +++ b/packages/google-cloud-vision/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-08-07T12:44:14.015099Z", + "updateTime": "2019-08-16T12:45:12.445594Z", "sources": [ { "generator": { "name": "artman", - "version": "0.32.1", - "dockerImage": "googleapis/artman@sha256:a684d40ba9a4e15946f5f2ca6b4bd9fe301192f522e9de4fff622118775f309b" + "version": "0.33.0", + "dockerImage": "googleapis/artman@sha256:c6231efb525569736226b1f7af7565dbc84248efafb3692a5bb1d2d8a7975d53" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "6d29882872298c8bfbaef33bd69bfca275c4d2eb", - "internalRef": "262019251" + "sha": "2a02e33c79cbf23d316c57e1c78f915e1d905eee", + "internalRef": "263682410" } }, {