Skip to content

Commit 2643d5f

Browse files
yoshi-automationtseaver
authored andcommitted
Remove send/recv msg size limit (via synth). (#8976)
1 parent 16b483e commit 2643d5f

17 files changed

+203
-147
lines changed

vision/google/cloud/vision_v1/gapic/image_annotator_client.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,8 @@ def batch_annotate_images(
213213
If a dict is provided, it must be of the same form as the protobuf
214214
message :class:`~google.cloud.vision_v1.types.AnnotateImageRequest`
215215
retry (Optional[google.api_core.retry.Retry]): A retry object used
216-
to retry requests. If ``None`` is specified, requests will not
217-
be retried.
216+
to retry requests. If ``None`` is specified, requests will
217+
be retried using a default configuration.
218218
timeout (Optional[float]): The amount of time, in seconds, to wait
219219
for the request to complete. Note that if ``retry`` is
220220
specified, the timeout applies to each individual attempt.
@@ -280,8 +280,8 @@ def batch_annotate_files(
280280
If a dict is provided, it must be of the same form as the protobuf
281281
message :class:`~google.cloud.vision_v1.types.AnnotateFileRequest`
282282
retry (Optional[google.api_core.retry.Retry]): A retry object used
283-
to retry requests. If ``None`` is specified, requests will not
284-
be retried.
283+
to retry requests. If ``None`` is specified, requests will
284+
be retried using a default configuration.
285285
timeout (Optional[float]): The amount of time, in seconds, to wait
286286
for the request to complete. Note that if ``retry`` is
287287
specified, the timeout applies to each individual attempt.
@@ -366,8 +366,8 @@ def async_batch_annotate_images(
366366
If a dict is provided, it must be of the same form as the protobuf
367367
message :class:`~google.cloud.vision_v1.types.OutputConfig`
368368
retry (Optional[google.api_core.retry.Retry]): A retry object used
369-
to retry requests. If ``None`` is specified, requests will not
370-
be retried.
369+
to retry requests. If ``None`` is specified, requests will
370+
be retried using a default configuration.
371371
timeout (Optional[float]): The amount of time, in seconds, to wait
372372
for the request to complete. Note that if ``retry`` is
373373
specified, the timeout applies to each individual attempt.
@@ -450,8 +450,8 @@ def async_batch_annotate_files(
450450
If a dict is provided, it must be of the same form as the protobuf
451451
message :class:`~google.cloud.vision_v1.types.AsyncAnnotateFileRequest`
452452
retry (Optional[google.api_core.retry.Retry]): A retry object used
453-
to retry requests. If ``None`` is specified, requests will not
454-
be retried.
453+
to retry requests. If ``None`` is specified, requests will
454+
be retried using a default configuration.
455455
timeout (Optional[float]): The amount of time, in seconds, to wait
456456
for the request to complete. Note that if ``retry`` is
457457
specified, the timeout applies to each individual attempt.

vision/google/cloud/vision_v1/gapic/product_search_client.py

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,8 @@ def create_product_set(
288288
an error is returned with code ALREADY\_EXISTS. Must be at most 128
289289
characters long. It cannot contain the character ``/``.
290290
retry (Optional[google.api_core.retry.Retry]): A retry object used
291-
to retry requests. If ``None`` is specified, requests will not
292-
be retried.
291+
to retry requests. If ``None`` is specified, requests will
292+
be retried using a default configuration.
293293
timeout (Optional[float]): The amount of time, in seconds, to wait
294294
for the request to complete. Note that if ``retry`` is
295295
specified, the timeout applies to each individual attempt.
@@ -384,8 +384,8 @@ def list_product_sets(
384384
streaming is performed per-page, this determines the maximum number
385385
of resources in a page.
386386
retry (Optional[google.api_core.retry.Retry]): A retry object used
387-
to retry requests. If ``None`` is specified, requests will not
388-
be retried.
387+
to retry requests. If ``None`` is specified, requests will
388+
be retried using a default configuration.
389389
timeout (Optional[float]): The amount of time, in seconds, to wait
390390
for the request to complete. Note that if ``retry`` is
391391
specified, the timeout applies to each individual attempt.
@@ -476,8 +476,8 @@ def get_product_set(
476476
Format is:
477477
``projects/PROJECT_ID/locations/LOG_ID/productSets/PRODUCT_SET_ID``
478478
retry (Optional[google.api_core.retry.Retry]): A retry object used
479-
to retry requests. If ``None`` is specified, requests will not
480-
be retried.
479+
to retry requests. If ``None`` is specified, requests will
480+
be retried using a default configuration.
481481
timeout (Optional[float]): The amount of time, in seconds, to wait
482482
for the request to complete. Note that if ``retry`` is
483483
specified, the timeout applies to each individual attempt.
@@ -563,8 +563,8 @@ def update_product_set(
563563
If a dict is provided, it must be of the same form as the protobuf
564564
message :class:`~google.cloud.vision_v1.types.FieldMask`
565565
retry (Optional[google.api_core.retry.Retry]): A retry object used
566-
to retry requests. If ``None`` is specified, requests will not
567-
be retried.
566+
to retry requests. If ``None`` is specified, requests will
567+
be retried using a default configuration.
568568
timeout (Optional[float]): The amount of time, in seconds, to wait
569569
for the request to complete. Note that if ``retry`` is
570570
specified, the timeout applies to each individual attempt.
@@ -640,8 +640,8 @@ def delete_product_set(
640640
Format is:
641641
``projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID``
642642
retry (Optional[google.api_core.retry.Retry]): A retry object used
643-
to retry requests. If ``None`` is specified, requests will not
644-
be retried.
643+
to retry requests. If ``None`` is specified, requests will
644+
be retried using a default configuration.
645645
timeout (Optional[float]): The amount of time, in seconds, to wait
646646
for the request to complete. Note that if ``retry`` is
647647
specified, the timeout applies to each individual attempt.
@@ -729,8 +729,8 @@ def create_product(
729729
an error is returned with code ALREADY\_EXISTS. Must be at most 128
730730
characters long. It cannot contain the character ``/``.
731731
retry (Optional[google.api_core.retry.Retry]): A retry object used
732-
to retry requests. If ``None`` is specified, requests will not
733-
be retried.
732+
to retry requests. If ``None`` is specified, requests will
733+
be retried using a default configuration.
734734
timeout (Optional[float]): The amount of time, in seconds, to wait
735735
for the request to complete. Note that if ``retry`` is
736736
specified, the timeout applies to each individual attempt.
@@ -825,8 +825,8 @@ def list_products(
825825
streaming is performed per-page, this determines the maximum number
826826
of resources in a page.
827827
retry (Optional[google.api_core.retry.Retry]): A retry object used
828-
to retry requests. If ``None`` is specified, requests will not
829-
be retried.
828+
to retry requests. If ``None`` is specified, requests will
829+
be retried using a default configuration.
830830
timeout (Optional[float]): The amount of time, in seconds, to wait
831831
for the request to complete. Note that if ``retry`` is
832832
specified, the timeout applies to each individual attempt.
@@ -916,8 +916,8 @@ def get_product(
916916
917917
Format is: ``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID``
918918
retry (Optional[google.api_core.retry.Retry]): A retry object used
919-
to retry requests. If ``None`` is specified, requests will not
920-
be retried.
919+
to retry requests. If ``None`` is specified, requests will
920+
be retried using a default configuration.
921921
timeout (Optional[float]): The amount of time, in seconds, to wait
922922
for the request to complete. Note that if ``retry`` is
923923
specified, the timeout applies to each individual attempt.
@@ -1011,8 +1011,8 @@ def update_product(
10111011
If a dict is provided, it must be of the same form as the protobuf
10121012
message :class:`~google.cloud.vision_v1.types.FieldMask`
10131013
retry (Optional[google.api_core.retry.Retry]): A retry object used
1014-
to retry requests. If ``None`` is specified, requests will not
1015-
be retried.
1014+
to retry requests. If ``None`` is specified, requests will
1015+
be retried using a default configuration.
10161016
timeout (Optional[float]): The amount of time, in seconds, to wait
10171017
for the request to complete. Note that if ``retry`` is
10181018
specified, the timeout applies to each individual attempt.
@@ -1088,8 +1088,8 @@ def delete_product(
10881088
10891089
Format is: ``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID``
10901090
retry (Optional[google.api_core.retry.Retry]): A retry object used
1091-
to retry requests. If ``None`` is specified, requests will not
1092-
be retried.
1091+
to retry requests. If ``None`` is specified, requests will
1092+
be retried using a default configuration.
10931093
timeout (Optional[float]): The amount of time, in seconds, to wait
10941094
for the request to complete. Note that if ``retry`` is
10951095
specified, the timeout applies to each individual attempt.
@@ -1190,8 +1190,8 @@ def create_reference_image(
11901190
already in use, an error is returned with code ALREADY\_EXISTS. Must be
11911191
at most 128 characters long. It cannot contain the character ``/``.
11921192
retry (Optional[google.api_core.retry.Retry]): A retry object used
1193-
to retry requests. If ``None`` is specified, requests will not
1194-
be retried.
1193+
to retry requests. If ``None`` is specified, requests will
1194+
be retried using a default configuration.
11951195
timeout (Optional[float]): The amount of time, in seconds, to wait
11961196
for the request to complete. Note that if ``retry`` is
11971197
specified, the timeout applies to each individual attempt.
@@ -1273,8 +1273,8 @@ def delete_reference_image(
12731273
12741274
``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID``
12751275
retry (Optional[google.api_core.retry.Retry]): A retry object used
1276-
to retry requests. If ``None`` is specified, requests will not
1277-
be retried.
1276+
to retry requests. If ``None`` is specified, requests will
1277+
be retried using a default configuration.
12781278
timeout (Optional[float]): The amount of time, in seconds, to wait
12791279
for the request to complete. Note that if ``retry`` is
12801280
specified, the timeout applies to each individual attempt.
@@ -1365,8 +1365,8 @@ def list_reference_images(
13651365
streaming is performed per-page, this determines the maximum number
13661366
of resources in a page.
13671367
retry (Optional[google.api_core.retry.Retry]): A retry object used
1368-
to retry requests. If ``None`` is specified, requests will not
1369-
be retried.
1368+
to retry requests. If ``None`` is specified, requests will
1369+
be retried using a default configuration.
13701370
timeout (Optional[float]): The amount of time, in seconds, to wait
13711371
for the request to complete. Note that if ``retry`` is
13721372
specified, the timeout applies to each individual attempt.
@@ -1458,8 +1458,8 @@ def get_reference_image(
14581458
14591459
``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID``.
14601460
retry (Optional[google.api_core.retry.Retry]): A retry object used
1461-
to retry requests. If ``None`` is specified, requests will not
1462-
be retried.
1461+
to retry requests. If ``None`` is specified, requests will
1462+
be retried using a default configuration.
14631463
timeout (Optional[float]): The amount of time, in seconds, to wait
14641464
for the request to complete. Note that if ``retry`` is
14651465
specified, the timeout applies to each individual attempt.
@@ -1542,8 +1542,8 @@ def add_product_to_product_set(
15421542
15431543
Format is: ``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID``
15441544
retry (Optional[google.api_core.retry.Retry]): A retry object used
1545-
to retry requests. If ``None`` is specified, requests will not
1546-
be retried.
1545+
to retry requests. If ``None`` is specified, requests will
1546+
be retried using a default configuration.
15471547
timeout (Optional[float]): The amount of time, in seconds, to wait
15481548
for the request to complete. Note that if ``retry`` is
15491549
specified, the timeout applies to each individual attempt.
@@ -1618,8 +1618,8 @@ def remove_product_from_product_set(
16181618
16191619
Format is: ``projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID``
16201620
retry (Optional[google.api_core.retry.Retry]): A retry object used
1621-
to retry requests. If ``None`` is specified, requests will not
1622-
be retried.
1621+
to retry requests. If ``None`` is specified, requests will
1622+
be retried using a default configuration.
16231623
timeout (Optional[float]): The amount of time, in seconds, to wait
16241624
for the request to complete. Note that if ``retry`` is
16251625
specified, the timeout applies to each individual attempt.
@@ -1716,8 +1716,8 @@ def list_products_in_product_set(
17161716
streaming is performed per-page, this determines the maximum number
17171717
of resources in a page.
17181718
retry (Optional[google.api_core.retry.Retry]): A retry object used
1719-
to retry requests. If ``None`` is specified, requests will not
1720-
be retried.
1719+
to retry requests. If ``None`` is specified, requests will
1720+
be retried using a default configuration.
17211721
timeout (Optional[float]): The amount of time, in seconds, to wait
17221722
for the request to complete. Note that if ``retry`` is
17231723
specified, the timeout applies to each individual attempt.
@@ -1832,8 +1832,8 @@ def import_product_sets(
18321832
If a dict is provided, it must be of the same form as the protobuf
18331833
message :class:`~google.cloud.vision_v1.types.ImportProductSetsInputConfig`
18341834
retry (Optional[google.api_core.retry.Retry]): A retry object used
1835-
to retry requests. If ``None`` is specified, requests will not
1836-
be retried.
1835+
to retry requests. If ``None`` is specified, requests will
1836+
be retried using a default configuration.
18371837
timeout (Optional[float]): The amount of time, in seconds, to wait
18381838
for the request to complete. Note that if ``retry`` is
18391839
specified, the timeout applies to each individual attempt.

vision/google/cloud/vision_v1/gapic/transports/image_annotator_grpc_transport.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,14 @@ def __init__(
6262

6363
# Create the channel.
6464
if channel is None:
65-
channel = self.create_channel(address=address, credentials=credentials)
65+
channel = self.create_channel(
66+
address=address,
67+
credentials=credentials,
68+
options={
69+
"grpc.max_send_message_length": -1,
70+
"grpc.max_receive_message_length": -1,
71+
}.items(),
72+
)
6673

6774
self._channel = channel
6875

vision/google/cloud/vision_v1/gapic/transports/product_search_grpc_transport.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,14 @@ def __init__(
6262

6363
# Create the channel.
6464
if channel is None:
65-
channel = self.create_channel(address=address, credentials=credentials)
65+
channel = self.create_channel(
66+
address=address,
67+
credentials=credentials,
68+
options={
69+
"grpc.max_send_message_length": -1,
70+
"grpc.max_receive_message_length": -1,
71+
}.items(),
72+
)
6673

6774
self._channel = channel
6875

vision/google/cloud/vision_v1p1beta1/gapic/image_annotator_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,8 @@ def batch_annotate_images(
212212
If a dict is provided, it must be of the same form as the protobuf
213213
message :class:`~google.cloud.vision_v1p1beta1.types.AnnotateImageRequest`
214214
retry (Optional[google.api_core.retry.Retry]): A retry object used
215-
to retry requests. If ``None`` is specified, requests will not
216-
be retried.
215+
to retry requests. If ``None`` is specified, requests will
216+
be retried using a default configuration.
217217
timeout (Optional[float]): The amount of time, in seconds, to wait
218218
for the request to complete. Note that if ``retry`` is
219219
specified, the timeout applies to each individual attempt.

vision/google/cloud/vision_v1p1beta1/gapic/transports/image_annotator_grpc_transport.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,14 @@ def __init__(
6161

6262
# Create the channel.
6363
if channel is None:
64-
channel = self.create_channel(address=address, credentials=credentials)
64+
channel = self.create_channel(
65+
address=address,
66+
credentials=credentials,
67+
options={
68+
"grpc.max_send_message_length": -1,
69+
"grpc.max_receive_message_length": -1,
70+
}.items(),
71+
)
6572

6673
self._channel = channel
6774

vision/google/cloud/vision_v1p2beta1/gapic/image_annotator_client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@ def batch_annotate_images(
215215
If a dict is provided, it must be of the same form as the protobuf
216216
message :class:`~google.cloud.vision_v1p2beta1.types.AnnotateImageRequest`
217217
retry (Optional[google.api_core.retry.Retry]): A retry object used
218-
to retry requests. If ``None`` is specified, requests will not
219-
be retried.
218+
to retry requests. If ``None`` is specified, requests will
219+
be retried using a default configuration.
220220
timeout (Optional[float]): The amount of time, in seconds, to wait
221221
for the request to complete. Note that if ``retry`` is
222222
specified, the timeout applies to each individual attempt.
@@ -289,8 +289,8 @@ def async_batch_annotate_files(
289289
If a dict is provided, it must be of the same form as the protobuf
290290
message :class:`~google.cloud.vision_v1p2beta1.types.AsyncAnnotateFileRequest`
291291
retry (Optional[google.api_core.retry.Retry]): A retry object used
292-
to retry requests. If ``None`` is specified, requests will not
293-
be retried.
292+
to retry requests. If ``None`` is specified, requests will
293+
be retried using a default configuration.
294294
timeout (Optional[float]): The amount of time, in seconds, to wait
295295
for the request to complete. Note that if ``retry`` is
296296
specified, the timeout applies to each individual attempt.

0 commit comments

Comments
 (0)