Skip to content

Commit 7344559

Browse files
docs: Minor formatting (#552)
* 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: googleapis/googleapis@42fd37b Source-Link: googleapis/googleapis-gen@280264c 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 <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 074541e commit 7344559

34 files changed

Lines changed: 47 additions & 10 deletions

File tree

packages/google-cloud-vision/google/cloud/vision_v1/services/image_annotator/async_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ async def batch_annotate_files(
344344
r"""Service that performs image detection and annotation
345345
for a batch of files. Now only "application/pdf",
346346
"image/tiff" and "image/gif" are supported.
347+
347348
This service will extract at most 5 (customers can
348349
specify which 5 in AnnotateFileRequest.pages) frames
349350
(gif) or pages (pdf or tiff) from each file provided and

packages/google-cloud-vision/google/cloud/vision_v1/services/image_annotator/client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,7 @@ def batch_annotate_files(
585585
r"""Service that performs image detection and annotation
586586
for a batch of files. Now only "application/pdf",
587587
"image/tiff" and "image/gif" are supported.
588+
588589
This service will extract at most 5 (customers can
589590
specify which 5 in AnnotateFileRequest.pages) frames
590591
(gif) or pages (pdf or tiff) from each file provided and

packages/google-cloud-vision/google/cloud/vision_v1/services/image_annotator/transports/grpc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ def batch_annotate_files(
291291
Service that performs image detection and annotation
292292
for a batch of files. Now only "application/pdf",
293293
"image/tiff" and "image/gif" are supported.
294+
294295
This service will extract at most 5 (customers can
295296
specify which 5 in AnnotateFileRequest.pages) frames
296297
(gif) or pages (pdf or tiff) from each file provided and

packages/google-cloud-vision/google/cloud/vision_v1/services/image_annotator/transports/grpc_asyncio.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ def batch_annotate_files(
296296
Service that performs image detection and annotation
297297
for a batch of files. Now only "application/pdf",
298298
"image/tiff" and "image/gif" are supported.
299+
299300
This service will extract at most 5 (customers can
300301
specify which 5 in AnnotateFileRequest.pages) frames
301302
(gif) or pages (pdf or tiff) from each file provided and

packages/google-cloud-vision/google/cloud/vision_v1/services/product_search/async_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,7 @@ async def delete_product_set(
789789
) -> None:
790790
r"""Permanently deletes a ProductSet. Products and
791791
ReferenceImages in the ProductSet are not deleted.
792+
792793
The actual image files are not deleted from Google Cloud
793794
Storage.
794795
@@ -1692,6 +1693,7 @@ async def delete_reference_image(
16921693
metadata: Sequence[Tuple[str, str]] = (),
16931694
) -> None:
16941695
r"""Permanently deletes a reference image.
1696+
16951697
The image metadata will be deleted right away, but
16961698
search queries against ProductSets containing the image
16971699
may still work until all related caches are refreshed.

packages/google-cloud-vision/google/cloud/vision_v1/services/product_search/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,6 +1021,7 @@ def delete_product_set(
10211021
) -> None:
10221022
r"""Permanently deletes a ProductSet. Products and
10231023
ReferenceImages in the ProductSet are not deleted.
1024+
10241025
The actual image files are not deleted from Google Cloud
10251026
Storage.
10261027
@@ -1860,6 +1861,7 @@ def delete_reference_image(
18601861
metadata: Sequence[Tuple[str, str]] = (),
18611862
) -> None:
18621863
r"""Permanently deletes a reference image.
1864+
18631865
The image metadata will be deleted right away, but
18641866
search queries against ProductSets containing the image
18651867
may still work until all related caches are refreshed.

packages/google-cloud-vision/google/cloud/vision_v1/services/product_search/transports/grpc.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,7 @@ def delete_product_set(
409409
410410
Permanently deletes a ProductSet. Products and
411411
ReferenceImages in the ProductSet are not deleted.
412+
412413
The actual image files are not deleted from Google Cloud
413414
Storage.
414415
@@ -666,6 +667,7 @@ def delete_reference_image(
666667
r"""Return a callable for the delete reference image method over gRPC.
667668
668669
Permanently deletes a reference image.
670+
669671
The image metadata will be deleted right away, but
670672
search queries against ProductSets containing the image
671673
may still work until all related caches are refreshed.

packages/google-cloud-vision/google/cloud/vision_v1/services/product_search/transports/grpc_asyncio.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,7 @@ def delete_product_set(
417417
418418
Permanently deletes a ProductSet. Products and
419419
ReferenceImages in the ProductSet are not deleted.
420+
420421
The actual image files are not deleted from Google Cloud
421422
Storage.
422423
@@ -679,6 +680,7 @@ def delete_reference_image(
679680
r"""Return a callable for the delete reference image method over gRPC.
680681
681682
Permanently deletes a reference image.
683+
682684
The image metadata will be deleted right away, but
683685
search queries against ProductSets containing the image
684686
may still work until all related caches are refreshed.

packages/google-cloud-vision/google/cloud/vision_v1/services/product_search/transports/rest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141

4242

4343
from google.cloud.vision_v1.types import product_search_service
44-
from google.longrunning import operations_pb2 # type: ignore
4544
from google.protobuf import empty_pb2 # type: ignore
45+
from google.longrunning import operations_pb2 # type: ignore
4646

4747
from .base import (
4848
ProductSearchTransport,

packages/google-cloud-vision/google/cloud/vision_v1/types/image_annotator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,13 +1259,15 @@ class AnnotateFileRequest(proto.Message):
12591259
Pages starts from 1, we assume the first page of
12601260
the file is page 1. At most 5 pages are
12611261
supported per request. Pages can be negative.
1262+
12621263
Page 1 means the first page.
12631264
Page 2 means the second page.
12641265
Page -1 means the last page.
12651266
Page -2 means the second to the last page.
12661267
12671268
If the file is GIF instead of PDF or TIFF, page
12681269
refers to GIF frames.
1270+
12691271
If this field is empty, by default the service
12701272
performs image annotation for the first 5 pages
12711273
of the file.

0 commit comments

Comments
 (0)