Skip to content

Commit e6aed36

Browse files
committed
main version
1 parent afa2fb5 commit e6aed36

32 files changed

Lines changed: 462 additions & 485 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,7 @@ async def async_batch_annotate_images(
535535
) -> operation_async.AsyncOperation:
536536
r"""Run asynchronous image detection and annotation for a list of
537537
images.
538+
538539
Progress and results can be retrieved through the
539540
``google.longrunning.Operations`` interface.
540541
``Operation.metadata`` contains ``OperationMetadata``
@@ -679,8 +680,7 @@ async def async_batch_annotate_files(
679680
generic files, such as PDF files, which may contain multiple
680681
pages and multiple images per page. Progress and results can be
681682
retrieved through the ``google.longrunning.Operations``
682-
interface.
683-
``Operation.metadata`` contains ``OperationMetadata``
683+
interface. ``Operation.metadata`` contains ``OperationMetadata``
684684
(metadata). ``Operation.response`` contains
685685
``AsyncBatchAnnotateFilesResponse`` (results).
686686

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -992,6 +992,7 @@ def async_batch_annotate_images(
992992
) -> operation.Operation:
993993
r"""Run asynchronous image detection and annotation for a list of
994994
images.
995+
995996
Progress and results can be retrieved through the
996997
``google.longrunning.Operations`` interface.
997998
``Operation.metadata`` contains ``OperationMetadata``
@@ -1135,8 +1136,7 @@ def async_batch_annotate_files(
11351136
generic files, such as PDF files, which may contain multiple
11361137
pages and multiple images per page. Progress and results can be
11371138
retrieved through the ``google.longrunning.Operations``
1138-
interface.
1139-
``Operation.metadata`` contains ``OperationMetadata``
1139+
interface. ``Operation.metadata`` contains ``OperationMetadata``
11401140
(metadata). ``Operation.response`` contains
11411141
``AsyncBatchAnnotateFilesResponse`` (results).
11421142

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,7 @@ def async_batch_annotate_images(
419419
420420
Run asynchronous image detection and annotation for a list of
421421
images.
422+
422423
Progress and results can be retrieved through the
423424
``google.longrunning.Operations`` interface.
424425
``Operation.metadata`` contains ``OperationMetadata``
@@ -461,8 +462,7 @@ def async_batch_annotate_files(
461462
generic files, such as PDF files, which may contain multiple
462463
pages and multiple images per page. Progress and results can be
463464
retrieved through the ``google.longrunning.Operations``
464-
interface.
465-
``Operation.metadata`` contains ``OperationMetadata``
465+
interface. ``Operation.metadata`` contains ``OperationMetadata``
466466
(metadata). ``Operation.response`` contains
467467
``AsyncBatchAnnotateFilesResponse`` (results).
468468

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@ def async_batch_annotate_images(
428428
429429
Run asynchronous image detection and annotation for a list of
430430
images.
431+
431432
Progress and results can be retrieved through the
432433
``google.longrunning.Operations`` interface.
433434
``Operation.metadata`` contains ``OperationMetadata``
@@ -471,8 +472,7 @@ def async_batch_annotate_files(
471472
generic files, such as PDF files, which may contain multiple
472473
pages and multiple images per page. Progress and results can be
473474
retrieved through the ``google.longrunning.Operations``
474-
interface.
475-
``Operation.metadata`` contains ``OperationMetadata``
475+
interface. ``Operation.metadata`` contains ``OperationMetadata``
476476
(metadata). ``Operation.response`` contains
477477
``AsyncBatchAnnotateFilesResponse`` (results).
478478

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

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,7 @@ async def sample_create_product_set():
371371
parent (:class:`str`):
372372
Required. The project in which the ProductSet should be
373373
created.
374+
374375
Format is ``projects/PROJECT_ID/locations/LOC_ID``.
375376
376377
This corresponds to the ``parent`` field
@@ -512,6 +513,7 @@ async def sample_list_product_sets():
512513
parent (:class:`str`):
513514
Required. The project from which ProductSets should be
514515
listed.
516+
515517
Format is ``projects/PROJECT_ID/locations/LOC_ID``.
516518
517519
This corresponds to the ``parent`` field
@@ -527,7 +529,7 @@ async def sample_list_product_sets():
527529
528530
Returns:
529531
google.cloud.vision_v1.services.product_search.pagers.ListProductSetsAsyncPager:
530-
Response message for the ``ListProductSets`` method.
532+
Response message for the ListProductSets method.
531533
532534
Iterating over this object will yield results and
533535
resolve additional pages automatically.
@@ -643,7 +645,6 @@ async def sample_get_product_set():
643645
Required. Resource name of the ProductSet to get.
644646
645647
Format is:
646-
647648
``projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID``
648649
649650
This corresponds to the ``name`` field
@@ -898,7 +899,6 @@ async def sample_delete_product_set():
898899
Required. Resource name of the ProductSet to delete.
899900
900901
Format is:
901-
902902
``projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID``
903903
904904
This corresponds to the ``name`` field
@@ -1014,8 +1014,8 @@ async def sample_create_product():
10141014
parent (:class:`str`):
10151015
Required. The project in which the Product should be
10161016
created.
1017-
Format is
1018-
``projects/PROJECT_ID/locations/LOC_ID``.
1017+
1018+
Format is ``projects/PROJECT_ID/locations/LOC_ID``.
10191019
10201020
This corresponds to the ``parent`` field
10211021
on the ``request`` instance; if ``request`` is provided, this
@@ -1151,9 +1151,8 @@ async def sample_list_products():
11511151
parent (:class:`str`):
11521152
Required. The project OR ProductSet from which Products
11531153
should be listed.
1154-
Format:
11551154
1156-
``projects/PROJECT_ID/locations/LOC_ID``
1155+
Format: ``projects/PROJECT_ID/locations/LOC_ID``
11571156
11581157
This corresponds to the ``parent`` field
11591158
on the ``request`` instance; if ``request`` is provided, this
@@ -1168,7 +1167,7 @@ async def sample_list_products():
11681167
11691168
Returns:
11701169
google.cloud.vision_v1.services.product_search.pagers.ListProductsAsyncPager:
1171-
Response message for the ``ListProducts`` method.
1170+
Response message for the ListProducts method.
11721171
11731172
Iterating over this object will yield results and
11741173
resolve additional pages automatically.
@@ -1282,7 +1281,6 @@ async def sample_get_product():
12821281
Required. Resource name of the Product to get.
12831282
12841283
Format is:
1285-
12861284
``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID``
12871285
12881286
This corresponds to the ``name`` field
@@ -1537,7 +1535,6 @@ async def sample_delete_product():
15371535
Required. Resource name of product to delete.
15381536
15391537
Format is:
1540-
15411538
``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID``
15421539
15431540
This corresponds to the ``name`` field
@@ -1704,8 +1701,8 @@ async def sample_create_reference_image():
17041701
17051702
Returns:
17061703
google.cloud.vision_v1.types.ReferenceImage:
1707-
A ``ReferenceImage`` represents a product image and its
1708-
associated metadata, such as bounding boxes.
1704+
A ReferenceImage represents a product image and its associated metadata,
1705+
such as bounding boxes.
17091706
17101707
"""
17111708
# Create or coerce a protobuf request object.
@@ -1810,8 +1807,8 @@ async def sample_delete_reference_image():
18101807
name (:class:`str`):
18111808
Required. The resource name of the reference image to
18121809
delete.
1813-
Format is:
18141810
1811+
Format is:
18151812
``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID``
18161813
18171814
This corresponds to the ``name`` field
@@ -1923,6 +1920,7 @@ async def sample_list_reference_images():
19231920
parent (:class:`str`):
19241921
Required. Resource name of the product containing the
19251922
reference images.
1923+
19261924
Format is
19271925
``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID``.
19281926
@@ -1939,7 +1937,7 @@ async def sample_list_reference_images():
19391937
19401938
Returns:
19411939
google.cloud.vision_v1.services.product_search.pagers.ListReferenceImagesAsyncPager:
1942-
Response message for the ``ListReferenceImages`` method.
1940+
Response message for the ListReferenceImages method.
19431941
19441942
Iterating over this object will yield results and
19451943
resolve additional pages automatically.
@@ -2054,8 +2052,8 @@ async def sample_get_reference_image():
20542052
name (:class:`str`):
20552053
Required. The resource name of the ReferenceImage to
20562054
get.
2057-
Format is:
20582055
2056+
Format is:
20592057
``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID``.
20602058
20612059
This corresponds to the ``name`` field
@@ -2071,8 +2069,8 @@ async def sample_get_reference_image():
20712069
20722070
Returns:
20732071
google.cloud.vision_v1.types.ReferenceImage:
2074-
A ``ReferenceImage`` represents a product image and its
2075-
associated metadata, such as bounding boxes.
2072+
A ReferenceImage represents a product image and its associated metadata,
2073+
such as bounding boxes.
20762074
20772075
"""
20782076
# Create or coerce a protobuf request object.
@@ -2177,8 +2175,8 @@ async def sample_add_product_to_product_set():
21772175
name (:class:`str`):
21782176
Required. The resource name for the ProductSet to
21792177
modify.
2180-
Format is:
21812178
2179+
Format is:
21822180
``projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID``
21832181
21842182
This corresponds to the ``name`` field
@@ -2187,8 +2185,8 @@ async def sample_add_product_to_product_set():
21872185
product (:class:`str`):
21882186
Required. The resource name for the Product to be added
21892187
to this ProductSet.
2190-
Format is:
21912188
2189+
Format is:
21922190
``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID``
21932191
21942192
This corresponds to the ``product`` field
@@ -2297,8 +2295,8 @@ async def sample_remove_product_from_product_set():
22972295
name (:class:`str`):
22982296
Required. The resource name for the ProductSet to
22992297
modify.
2300-
Format is:
23012298
2299+
Format is:
23022300
``projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID``
23032301
23042302
This corresponds to the ``name`` field
@@ -2309,7 +2307,6 @@ async def sample_remove_product_from_product_set():
23092307
removed from this ProductSet.
23102308
23112309
Format is:
2312-
23132310
``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID``
23142311
23152312
This corresponds to the ``product`` field
@@ -2427,8 +2424,8 @@ async def sample_list_products_in_product_set():
24272424
name (:class:`str`):
24282425
Required. The ProductSet resource for which to retrieve
24292426
Products.
2430-
Format is:
24312427
2428+
Format is:
24322429
``projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID``
24332430
24342431
This corresponds to the ``name`` field
@@ -2444,8 +2441,9 @@ async def sample_list_products_in_product_set():
24442441
24452442
Returns:
24462443
google.cloud.vision_v1.services.product_search.pagers.ListProductsInProductSetAsyncPager:
2447-
Response message for the ``ListProductsInProductSet``
2444+
Response message for the ListProductsInProductSet
24482445
method.
2446+
24492447
Iterating over this object will yield results and
24502448
resolve additional pages automatically.
24512449
@@ -2575,6 +2573,7 @@ async def sample_import_product_sets():
25752573
parent (:class:`str`):
25762574
Required. The project in which the ProductSets should be
25772575
imported.
2576+
25782577
Format is ``projects/PROJECT_ID/locations/LOC_ID``.
25792578
25802579
This corresponds to the ``parent`` field
@@ -2744,6 +2743,7 @@ async def sample_purge_products():
27442743
parent (:class:`str`):
27452744
Required. The project and location in which the Products
27462745
should be deleted.
2746+
27472747
Format is ``projects/PROJECT_ID/locations/LOC_ID``.
27482748
27492749
This corresponds to the ``parent`` field
@@ -2761,16 +2761,16 @@ async def sample_purge_products():
27612761
google.api_core.operation_async.AsyncOperation:
27622762
An object representing a long-running operation.
27632763
2764-
The result type for the operation will be
2765-
:class:`google.protobuf.empty_pb2.Empty` A generic empty
2766-
message that you can re-use to avoid defining duplicated
2767-
empty messages in your APIs. A typical example is to use
2768-
it as the request or the response type of an API method.
2769-
For instance:
2770-
2771-
service Foo {
2772-
rpc Bar(google.protobuf.Empty) returns
2773-
(google.protobuf.Empty); }
2764+
The result type for the operation will be :class:`google.protobuf.empty_pb2.Empty` A generic empty message that you can re-use to avoid defining duplicated
2765+
empty messages in your APIs. A typical example is to
2766+
use it as the request or the response type of an API
2767+
method. For instance:
2768+
2769+
service Foo {
2770+
rpc Bar(google.protobuf.Empty) returns
2771+
(google.protobuf.Empty);
2772+
2773+
}
27742774
27752775
"""
27762776
# Create or coerce a protobuf request object.

0 commit comments

Comments
 (0)