Skip to content

Commit 1998312

Browse files
authored
Remove send/recv msg size limit (via synth). (#8981)
Closes #8956.
1 parent 9b32810 commit 1998312

4 files changed

Lines changed: 41 additions & 36 deletions

File tree

packages/grafeas/grafeas/grafeas_v1/gapic/grafeas_client.py

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ def get_occurrence(
173173
name (str): The name of the occurrence in the form of
174174
``projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]``.
175175
retry (Optional[google.api_core.retry.Retry]): A retry object used
176-
to retry requests. If ``None`` is specified, requests will not
177-
be retried.
176+
to retry requests. If ``None`` is specified, requests will
177+
be retried using a default configuration.
178178
timeout (Optional[float]): The amount of time, in seconds, to wait
179179
for the request to complete. Note that if ``retry`` is
180180
specified, the timeout applies to each individual attempt.
@@ -267,8 +267,8 @@ def list_occurrences(
267267
streaming is performed per-page, this determines the maximum number
268268
of resources in a page.
269269
retry (Optional[google.api_core.retry.Retry]): A retry object used
270-
to retry requests. If ``None`` is specified, requests will not
271-
be retried.
270+
to retry requests. If ``None`` is specified, requests will
271+
be retried using a default configuration.
272272
timeout (Optional[float]): The amount of time, in seconds, to wait
273273
for the request to complete. Note that if ``retry`` is
274274
specified, the timeout applies to each individual attempt.
@@ -359,8 +359,8 @@ def delete_occurrence(
359359
name (str): The name of the occurrence in the form of
360360
``projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]``.
361361
retry (Optional[google.api_core.retry.Retry]): A retry object used
362-
to retry requests. If ``None`` is specified, requests will not
363-
be retried.
362+
to retry requests. If ``None`` is specified, requests will
363+
be retried using a default configuration.
364364
timeout (Optional[float]): The amount of time, in seconds, to wait
365365
for the request to complete. Note that if ``retry`` is
366366
specified, the timeout applies to each individual attempt.
@@ -438,8 +438,8 @@ def create_occurrence(
438438
If a dict is provided, it must be of the same form as the protobuf
439439
message :class:`~grafeas.grafeas_v1.types.Occurrence`
440440
retry (Optional[google.api_core.retry.Retry]): A retry object used
441-
to retry requests. If ``None`` is specified, requests will not
442-
be retried.
441+
to retry requests. If ``None`` is specified, requests will
442+
be retried using a default configuration.
443443
timeout (Optional[float]): The amount of time, in seconds, to wait
444444
for the request to complete. Note that if ``retry`` is
445445
specified, the timeout applies to each individual attempt.
@@ -522,8 +522,8 @@ def batch_create_occurrences(
522522
If a dict is provided, it must be of the same form as the protobuf
523523
message :class:`~grafeas.grafeas_v1.types.Occurrence`
524524
retry (Optional[google.api_core.retry.Retry]): A retry object used
525-
to retry requests. If ``None`` is specified, requests will not
526-
be retried.
525+
to retry requests. If ``None`` is specified, requests will
526+
be retried using a default configuration.
527527
timeout (Optional[float]): The amount of time, in seconds, to wait
528528
for the request to complete. Note that if ``retry`` is
529529
specified, the timeout applies to each individual attempt.
@@ -611,8 +611,8 @@ def update_occurrence(
611611
If a dict is provided, it must be of the same form as the protobuf
612612
message :class:`~grafeas.grafeas_v1.types.FieldMask`
613613
retry (Optional[google.api_core.retry.Retry]): A retry object used
614-
to retry requests. If ``None`` is specified, requests will not
615-
be retried.
614+
to retry requests. If ``None`` is specified, requests will
615+
be retried using a default configuration.
616616
timeout (Optional[float]): The amount of time, in seconds, to wait
617617
for the request to complete. Note that if ``retry`` is
618618
specified, the timeout applies to each individual attempt.
@@ -688,8 +688,8 @@ def get_occurrence_note(
688688
name (str): The name of the occurrence in the form of
689689
``projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]``.
690690
retry (Optional[google.api_core.retry.Retry]): A retry object used
691-
to retry requests. If ``None`` is specified, requests will not
692-
be retried.
691+
to retry requests. If ``None`` is specified, requests will
692+
be retried using a default configuration.
693693
timeout (Optional[float]): The amount of time, in seconds, to wait
694694
for the request to complete. Note that if ``retry`` is
695695
specified, the timeout applies to each individual attempt.
@@ -762,8 +762,8 @@ def get_note(
762762
name (str): The name of the note in the form of
763763
``projects/[PROVIDER_ID]/notes/[NOTE_ID]``.
764764
retry (Optional[google.api_core.retry.Retry]): A retry object used
765-
to retry requests. If ``None`` is specified, requests will not
766-
be retried.
765+
to retry requests. If ``None`` is specified, requests will
766+
be retried using a default configuration.
767767
timeout (Optional[float]): The amount of time, in seconds, to wait
768768
for the request to complete. Note that if ``retry`` is
769769
specified, the timeout applies to each individual attempt.
@@ -856,8 +856,8 @@ def list_notes(
856856
streaming is performed per-page, this determines the maximum number
857857
of resources in a page.
858858
retry (Optional[google.api_core.retry.Retry]): A retry object used
859-
to retry requests. If ``None`` is specified, requests will not
860-
be retried.
859+
to retry requests. If ``None`` is specified, requests will
860+
be retried using a default configuration.
861861
timeout (Optional[float]): The amount of time, in seconds, to wait
862862
for the request to complete. Note that if ``retry`` is
863863
specified, the timeout applies to each individual attempt.
@@ -946,8 +946,8 @@ def delete_note(
946946
name (str): The name of the note in the form of
947947
``projects/[PROVIDER_ID]/notes/[NOTE_ID]``.
948948
retry (Optional[google.api_core.retry.Retry]): A retry object used
949-
to retry requests. If ``None`` is specified, requests will not
950-
be retried.
949+
to retry requests. If ``None`` is specified, requests will
950+
be retried using a default configuration.
951951
timeout (Optional[float]): The amount of time, in seconds, to wait
952952
for the request to complete. Note that if ``retry`` is
953953
specified, the timeout applies to each individual attempt.
@@ -1030,8 +1030,8 @@ def create_note(
10301030
If a dict is provided, it must be of the same form as the protobuf
10311031
message :class:`~grafeas.grafeas_v1.types.Note`
10321032
retry (Optional[google.api_core.retry.Retry]): A retry object used
1033-
to retry requests. If ``None`` is specified, requests will not
1034-
be retried.
1033+
to retry requests. If ``None`` is specified, requests will
1034+
be retried using a default configuration.
10351035
timeout (Optional[float]): The amount of time, in seconds, to wait
10361036
for the request to complete. Note that if ``retry`` is
10371037
specified, the timeout applies to each individual attempt.
@@ -1114,8 +1114,8 @@ def batch_create_notes(
11141114
If a dict is provided, it must be of the same form as the protobuf
11151115
message :class:`~grafeas.grafeas_v1.types.Note`
11161116
retry (Optional[google.api_core.retry.Retry]): A retry object used
1117-
to retry requests. If ``None`` is specified, requests will not
1118-
be retried.
1117+
to retry requests. If ``None`` is specified, requests will
1118+
be retried using a default configuration.
11191119
timeout (Optional[float]): The amount of time, in seconds, to wait
11201120
for the request to complete. Note that if ``retry`` is
11211121
specified, the timeout applies to each individual attempt.
@@ -1201,8 +1201,8 @@ def update_note(
12011201
If a dict is provided, it must be of the same form as the protobuf
12021202
message :class:`~grafeas.grafeas_v1.types.FieldMask`
12031203
retry (Optional[google.api_core.retry.Retry]): A retry object used
1204-
to retry requests. If ``None`` is specified, requests will not
1205-
be retried.
1204+
to retry requests. If ``None`` is specified, requests will
1205+
be retried using a default configuration.
12061206
timeout (Optional[float]): The amount of time, in seconds, to wait
12071207
for the request to complete. Note that if ``retry`` is
12081208
specified, the timeout applies to each individual attempt.
@@ -1299,8 +1299,8 @@ def list_note_occurrences(
12991299
streaming is performed per-page, this determines the maximum number
13001300
of resources in a page.
13011301
retry (Optional[google.api_core.retry.Retry]): A retry object used
1302-
to retry requests. If ``None`` is specified, requests will not
1303-
be retried.
1302+
to retry requests. If ``None`` is specified, requests will
1303+
be retried using a default configuration.
13041304
timeout (Optional[float]): The amount of time, in seconds, to wait
13051305
for the request to complete. Note that if ``retry`` is
13061306
specified, the timeout applies to each individual attempt.

packages/grafeas/grafeas/grafeas_v1/gapic/transports/grafeas_grpc_transport.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,15 @@ def __init__(self, address, scopes, channel=None, credentials=None):
5454

5555
# Create the channel.
5656
if channel is None:
57-
channel = self.create_channel(address, scopes, credentials=credentials)
57+
channel = self.create_channel(
58+
address,
59+
scopes,
60+
credentials=credentials,
61+
options={
62+
"grpc.max_send_message_length": -1,
63+
"grpc.max_receive_message_length": -1,
64+
}.items(),
65+
)
5866

5967
self._channel = channel
6068

packages/grafeas/synth.metadata

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
{
2-
"updateTime": "2019-07-12T23:41:44.676676Z",
2+
"updateTime": "2019-08-06T18:36:30.465284Z",
33
"sources": [
44
{
55
"generator": {
66
"name": "artman",
7-
"version": "0.29.4",
8-
"dockerImage": "googleapis/artman@sha256:63f21e83cb92680b7001dc381069e962c9e6dee314fd8365ac554c07c89221fb"
7+
"version": "0.32.1",
8+
"dockerImage": "googleapis/artman@sha256:a684d40ba9a4e15946f5f2ca6b4bd9fe301192f522e9de4fff622118775f309b"
99
}
1010
},
1111
{
1212
"git": {
1313
"name": "googleapis",
1414
"remote": "https://github.com/googleapis/googleapis.git",
15-
"sha": "47bd0c2ba33c28dd624a65dad382e02bb61d1618",
16-
"internalRef": "257690259"
15+
"sha": "53e641721f965a485af64331cfea9e5522294d78"
1716
}
1817
},
1918
{

packages/grafeas/synth.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,15 +243,13 @@ def from_service_account_file\(cls, filename, \*args, \*\*kwargs\):
243243
channel = self\.create_channel\(
244244
address=address,
245245
credentials=credentials,
246-
\)
247246
""",
248247
""" # Create the channel.
249248
if channel is None:
250249
channel = self.create_channel(
251250
address,
252251
scopes,
253252
credentials=credentials,
254-
)
255253
""",
256254
)
257255

0 commit comments

Comments
 (0)