Skip to content
This repository was archived by the owner on Feb 1, 2024. It is now read-only.

Commit 089612f

Browse files
yoshi-automationtseaver
authored andcommitted
Remove send/recv msg size limit (via synth). (#8971)
1 parent 774bfd4 commit 089612f

File tree

7 files changed

+133
-112
lines changed

7 files changed

+133
-112
lines changed

google/cloud/tasks_v2/gapic/cloud_tasks_client.py

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,8 @@ def list_queues(
287287
streaming is performed per-page, this determines the maximum number
288288
of resources in a page.
289289
retry (Optional[google.api_core.retry.Retry]): A retry object used
290-
to retry requests. If ``None`` is specified, requests will not
291-
be retried.
290+
to retry requests. If ``None`` is specified, requests will
291+
be retried using a default configuration.
292292
timeout (Optional[float]): The amount of time, in seconds, to wait
293293
for the request to complete. Note that if ``retry`` is
294294
specified, the timeout applies to each individual attempt.
@@ -375,8 +375,8 @@ def get_queue(
375375
The resource name of the queue. For example:
376376
``projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID``
377377
retry (Optional[google.api_core.retry.Retry]): A retry object used
378-
to retry requests. If ``None`` is specified, requests will not
379-
be retried.
378+
to retry requests. If ``None`` is specified, requests will
379+
be retried using a default configuration.
380380
timeout (Optional[float]): The amount of time, in seconds, to wait
381381
for the request to complete. Note that if ``retry`` is
382382
specified, the timeout applies to each individual attempt.
@@ -472,8 +472,8 @@ def create_queue(
472472
If a dict is provided, it must be of the same form as the protobuf
473473
message :class:`~google.cloud.tasks_v2.types.Queue`
474474
retry (Optional[google.api_core.retry.Retry]): A retry object used
475-
to retry requests. If ``None`` is specified, requests will not
476-
be retried.
475+
to retry requests. If ``None`` is specified, requests will
476+
be retried using a default configuration.
477477
timeout (Optional[float]): The amount of time, in seconds, to wait
478478
for the request to complete. Note that if ``retry`` is
479479
specified, the timeout applies to each individual attempt.
@@ -573,8 +573,8 @@ def update_queue(
573573
If a dict is provided, it must be of the same form as the protobuf
574574
message :class:`~google.cloud.tasks_v2.types.FieldMask`
575575
retry (Optional[google.api_core.retry.Retry]): A retry object used
576-
to retry requests. If ``None`` is specified, requests will not
577-
be retried.
576+
to retry requests. If ``None`` is specified, requests will
577+
be retried using a default configuration.
578578
timeout (Optional[float]): The amount of time, in seconds, to wait
579579
for the request to complete. Note that if ``retry`` is
580580
specified, the timeout applies to each individual attempt.
@@ -658,8 +658,8 @@ def delete_queue(
658658
The queue name. For example:
659659
``projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID``
660660
retry (Optional[google.api_core.retry.Retry]): A retry object used
661-
to retry requests. If ``None`` is specified, requests will not
662-
be retried.
661+
to retry requests. If ``None`` is specified, requests will
662+
be retried using a default configuration.
663663
timeout (Optional[float]): The amount of time, in seconds, to wait
664664
for the request to complete. Note that if ``retry`` is
665665
specified, the timeout applies to each individual attempt.
@@ -732,8 +732,8 @@ def purge_queue(
732732
The queue name. For example:
733733
``projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID``
734734
retry (Optional[google.api_core.retry.Retry]): A retry object used
735-
to retry requests. If ``None`` is specified, requests will not
736-
be retried.
735+
to retry requests. If ``None`` is specified, requests will
736+
be retried using a default configuration.
737737
timeout (Optional[float]): The amount of time, in seconds, to wait
738738
for the request to complete. Note that if ``retry`` is
739739
specified, the timeout applies to each individual attempt.
@@ -808,8 +808,8 @@ def pause_queue(
808808
The queue name. For example:
809809
``projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID``
810810
retry (Optional[google.api_core.retry.Retry]): A retry object used
811-
to retry requests. If ``None`` is specified, requests will not
812-
be retried.
811+
to retry requests. If ``None`` is specified, requests will
812+
be retried using a default configuration.
813813
timeout (Optional[float]): The amount of time, in seconds, to wait
814814
for the request to complete. Note that if ``retry`` is
815815
specified, the timeout applies to each individual attempt.
@@ -889,8 +889,8 @@ def resume_queue(
889889
The queue name. For example:
890890
``projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID``
891891
retry (Optional[google.api_core.retry.Retry]): A retry object used
892-
to retry requests. If ``None`` is specified, requests will not
893-
be retried.
892+
to retry requests. If ``None`` is specified, requests will
893+
be retried using a default configuration.
894894
timeout (Optional[float]): The amount of time, in seconds, to wait
895895
for the request to complete. Note that if ``retry`` is
896896
specified, the timeout applies to each individual attempt.
@@ -972,8 +972,8 @@ def get_iam_policy(
972972
If a dict is provided, it must be of the same form as the protobuf
973973
message :class:`~google.cloud.tasks_v2.types.GetPolicyOptions`
974974
retry (Optional[google.api_core.retry.Retry]): A retry object used
975-
to retry requests. If ``None`` is specified, requests will not
976-
be retried.
975+
to retry requests. If ``None`` is specified, requests will
976+
be retried using a default configuration.
977977
timeout (Optional[float]): The amount of time, in seconds, to wait
978978
for the request to complete. Note that if ``retry`` is
979979
specified, the timeout applies to each individual attempt.
@@ -1065,8 +1065,8 @@ def set_iam_policy(
10651065
If a dict is provided, it must be of the same form as the protobuf
10661066
message :class:`~google.cloud.tasks_v2.types.Policy`
10671067
retry (Optional[google.api_core.retry.Retry]): A retry object used
1068-
to retry requests. If ``None`` is specified, requests will not
1069-
be retried.
1068+
to retry requests. If ``None`` is specified, requests will
1069+
be retried using a default configuration.
10701070
timeout (Optional[float]): The amount of time, in seconds, to wait
10711071
for the request to complete. Note that if ``retry`` is
10721072
specified, the timeout applies to each individual attempt.
@@ -1149,8 +1149,8 @@ def test_iam_permissions(
11491149
information see `IAM
11501150
Overview <https://cloud.google.com/iam/docs/overview#permissions>`__.
11511151
retry (Optional[google.api_core.retry.Retry]): A retry object used
1152-
to retry requests. If ``None`` is specified, requests will not
1153-
be retried.
1152+
to retry requests. If ``None`` is specified, requests will
1153+
be retried using a default configuration.
11541154
timeout (Optional[float]): The amount of time, in seconds, to wait
11551155
for the request to complete. Note that if ``retry`` is
11561156
specified, the timeout applies to each individual attempt.
@@ -1260,8 +1260,8 @@ def list_tasks(
12601260
streaming is performed per-page, this determines the maximum number
12611261
of resources in a page.
12621262
retry (Optional[google.api_core.retry.Retry]): A retry object used
1263-
to retry requests. If ``None`` is specified, requests will not
1264-
be retried.
1263+
to retry requests. If ``None`` is specified, requests will
1264+
be retried using a default configuration.
12651265
timeout (Optional[float]): The amount of time, in seconds, to wait
12661266
for the request to complete. Note that if ``retry`` is
12671267
specified, the timeout applies to each individual attempt.
@@ -1360,8 +1360,8 @@ def get_task(
13601360
`Google IAM <https://cloud.google.com/iam/>`___ permission on the
13611361
``Task`` resource.
13621362
retry (Optional[google.api_core.retry.Retry]): A retry object used
1363-
to retry requests. If ``None`` is specified, requests will not
1364-
be retried.
1363+
to retry requests. If ``None`` is specified, requests will
1364+
be retried using a default configuration.
13651365
timeout (Optional[float]): The amount of time, in seconds, to wait
13661366
for the request to complete. Note that if ``retry`` is
13671367
specified, the timeout applies to each individual attempt.
@@ -1489,8 +1489,8 @@ def create_task(
14891489
`Google IAM <https://cloud.google.com/iam/>`___ permission on the
14901490
``Task`` resource.
14911491
retry (Optional[google.api_core.retry.Retry]): A retry object used
1492-
to retry requests. If ``None`` is specified, requests will not
1493-
be retried.
1492+
to retry requests. If ``None`` is specified, requests will
1493+
be retried using a default configuration.
14941494
timeout (Optional[float]): The amount of time, in seconds, to wait
14951495
for the request to complete. Note that if ``retry`` is
14961496
specified, the timeout applies to each individual attempt.
@@ -1567,8 +1567,8 @@ def delete_task(
15671567
The task name. For example:
15681568
``projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID``
15691569
retry (Optional[google.api_core.retry.Retry]): A retry object used
1570-
to retry requests. If ``None`` is specified, requests will not
1571-
be retried.
1570+
to retry requests. If ``None`` is specified, requests will
1571+
be retried using a default configuration.
15721572
timeout (Optional[float]): The amount of time, in seconds, to wait
15731573
for the request to complete. Note that if ``retry`` is
15741574
specified, the timeout applies to each individual attempt.
@@ -1668,8 +1668,8 @@ def run_task(
16681668
`Google IAM <https://cloud.google.com/iam/>`___ permission on the
16691669
``Task`` resource.
16701670
retry (Optional[google.api_core.retry.Retry]): A retry object used
1671-
to retry requests. If ``None`` is specified, requests will not
1672-
be retried.
1671+
to retry requests. If ``None`` is specified, requests will
1672+
be retried using a default configuration.
16731673
timeout (Optional[float]): The amount of time, in seconds, to wait
16741674
for the request to complete. Note that if ``retry`` is
16751675
specified, the timeout applies to each individual attempt.

google/cloud/tasks_v2/gapic/transports/cloud_tasks_grpc_transport.py

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

5959
# Create the channel.
6060
if channel is None:
61-
channel = self.create_channel(address=address, credentials=credentials)
61+
channel = self.create_channel(
62+
address=address,
63+
credentials=credentials,
64+
options={
65+
"grpc.max_send_message_length": -1,
66+
"grpc.max_receive_message_length": -1,
67+
}.items(),
68+
)
6269

6370
self._channel = channel
6471

0 commit comments

Comments
 (0)