Skip to content

Commit

Permalink
Remove send/recv msg size limit (via synth). (#8981)
Browse files Browse the repository at this point in the history
Closes #8956.
  • Loading branch information
tseaver authored Aug 6, 2019
1 parent 9b32810 commit 1998312
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 36 deletions.
56 changes: 28 additions & 28 deletions packages/grafeas/grafeas/grafeas_v1/gapic/grafeas_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ def get_occurrence(
name (str): The name of the occurrence in the form of
``projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]``.
retry (Optional[google.api_core.retry.Retry]): A retry object used
to retry requests. If ``None`` is specified, requests will not
be retried.
to retry requests. If ``None`` is specified, requests will
be retried using a default configuration.
timeout (Optional[float]): The amount of time, in seconds, to wait
for the request to complete. Note that if ``retry`` is
specified, the timeout applies to each individual attempt.
Expand Down Expand Up @@ -267,8 +267,8 @@ def list_occurrences(
streaming is performed per-page, this determines the maximum number
of resources in a page.
retry (Optional[google.api_core.retry.Retry]): A retry object used
to retry requests. If ``None`` is specified, requests will not
be retried.
to retry requests. If ``None`` is specified, requests will
be retried using a default configuration.
timeout (Optional[float]): The amount of time, in seconds, to wait
for the request to complete. Note that if ``retry`` is
specified, the timeout applies to each individual attempt.
Expand Down Expand Up @@ -359,8 +359,8 @@ def delete_occurrence(
name (str): The name of the occurrence in the form of
``projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]``.
retry (Optional[google.api_core.retry.Retry]): A retry object used
to retry requests. If ``None`` is specified, requests will not
be retried.
to retry requests. If ``None`` is specified, requests will
be retried using a default configuration.
timeout (Optional[float]): The amount of time, in seconds, to wait
for the request to complete. Note that if ``retry`` is
specified, the timeout applies to each individual attempt.
Expand Down Expand Up @@ -438,8 +438,8 @@ def create_occurrence(
If a dict is provided, it must be of the same form as the protobuf
message :class:`~grafeas.grafeas_v1.types.Occurrence`
retry (Optional[google.api_core.retry.Retry]): A retry object used
to retry requests. If ``None`` is specified, requests will not
be retried.
to retry requests. If ``None`` is specified, requests will
be retried using a default configuration.
timeout (Optional[float]): The amount of time, in seconds, to wait
for the request to complete. Note that if ``retry`` is
specified, the timeout applies to each individual attempt.
Expand Down Expand Up @@ -522,8 +522,8 @@ def batch_create_occurrences(
If a dict is provided, it must be of the same form as the protobuf
message :class:`~grafeas.grafeas_v1.types.Occurrence`
retry (Optional[google.api_core.retry.Retry]): A retry object used
to retry requests. If ``None`` is specified, requests will not
be retried.
to retry requests. If ``None`` is specified, requests will
be retried using a default configuration.
timeout (Optional[float]): The amount of time, in seconds, to wait
for the request to complete. Note that if ``retry`` is
specified, the timeout applies to each individual attempt.
Expand Down Expand Up @@ -611,8 +611,8 @@ def update_occurrence(
If a dict is provided, it must be of the same form as the protobuf
message :class:`~grafeas.grafeas_v1.types.FieldMask`
retry (Optional[google.api_core.retry.Retry]): A retry object used
to retry requests. If ``None`` is specified, requests will not
be retried.
to retry requests. If ``None`` is specified, requests will
be retried using a default configuration.
timeout (Optional[float]): The amount of time, in seconds, to wait
for the request to complete. Note that if ``retry`` is
specified, the timeout applies to each individual attempt.
Expand Down Expand Up @@ -688,8 +688,8 @@ def get_occurrence_note(
name (str): The name of the occurrence in the form of
``projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]``.
retry (Optional[google.api_core.retry.Retry]): A retry object used
to retry requests. If ``None`` is specified, requests will not
be retried.
to retry requests. If ``None`` is specified, requests will
be retried using a default configuration.
timeout (Optional[float]): The amount of time, in seconds, to wait
for the request to complete. Note that if ``retry`` is
specified, the timeout applies to each individual attempt.
Expand Down Expand Up @@ -762,8 +762,8 @@ def get_note(
name (str): The name of the note in the form of
``projects/[PROVIDER_ID]/notes/[NOTE_ID]``.
retry (Optional[google.api_core.retry.Retry]): A retry object used
to retry requests. If ``None`` is specified, requests will not
be retried.
to retry requests. If ``None`` is specified, requests will
be retried using a default configuration.
timeout (Optional[float]): The amount of time, in seconds, to wait
for the request to complete. Note that if ``retry`` is
specified, the timeout applies to each individual attempt.
Expand Down Expand Up @@ -856,8 +856,8 @@ def list_notes(
streaming is performed per-page, this determines the maximum number
of resources in a page.
retry (Optional[google.api_core.retry.Retry]): A retry object used
to retry requests. If ``None`` is specified, requests will not
be retried.
to retry requests. If ``None`` is specified, requests will
be retried using a default configuration.
timeout (Optional[float]): The amount of time, in seconds, to wait
for the request to complete. Note that if ``retry`` is
specified, the timeout applies to each individual attempt.
Expand Down Expand Up @@ -946,8 +946,8 @@ def delete_note(
name (str): The name of the note in the form of
``projects/[PROVIDER_ID]/notes/[NOTE_ID]``.
retry (Optional[google.api_core.retry.Retry]): A retry object used
to retry requests. If ``None`` is specified, requests will not
be retried.
to retry requests. If ``None`` is specified, requests will
be retried using a default configuration.
timeout (Optional[float]): The amount of time, in seconds, to wait
for the request to complete. Note that if ``retry`` is
specified, the timeout applies to each individual attempt.
Expand Down Expand Up @@ -1030,8 +1030,8 @@ def create_note(
If a dict is provided, it must be of the same form as the protobuf
message :class:`~grafeas.grafeas_v1.types.Note`
retry (Optional[google.api_core.retry.Retry]): A retry object used
to retry requests. If ``None`` is specified, requests will not
be retried.
to retry requests. If ``None`` is specified, requests will
be retried using a default configuration.
timeout (Optional[float]): The amount of time, in seconds, to wait
for the request to complete. Note that if ``retry`` is
specified, the timeout applies to each individual attempt.
Expand Down Expand Up @@ -1114,8 +1114,8 @@ def batch_create_notes(
If a dict is provided, it must be of the same form as the protobuf
message :class:`~grafeas.grafeas_v1.types.Note`
retry (Optional[google.api_core.retry.Retry]): A retry object used
to retry requests. If ``None`` is specified, requests will not
be retried.
to retry requests. If ``None`` is specified, requests will
be retried using a default configuration.
timeout (Optional[float]): The amount of time, in seconds, to wait
for the request to complete. Note that if ``retry`` is
specified, the timeout applies to each individual attempt.
Expand Down Expand Up @@ -1201,8 +1201,8 @@ def update_note(
If a dict is provided, it must be of the same form as the protobuf
message :class:`~grafeas.grafeas_v1.types.FieldMask`
retry (Optional[google.api_core.retry.Retry]): A retry object used
to retry requests. If ``None`` is specified, requests will not
be retried.
to retry requests. If ``None`` is specified, requests will
be retried using a default configuration.
timeout (Optional[float]): The amount of time, in seconds, to wait
for the request to complete. Note that if ``retry`` is
specified, the timeout applies to each individual attempt.
Expand Down Expand Up @@ -1299,8 +1299,8 @@ def list_note_occurrences(
streaming is performed per-page, this determines the maximum number
of resources in a page.
retry (Optional[google.api_core.retry.Retry]): A retry object used
to retry requests. If ``None`` is specified, requests will not
be retried.
to retry requests. If ``None`` is specified, requests will
be retried using a default configuration.
timeout (Optional[float]): The amount of time, in seconds, to wait
for the request to complete. Note that if ``retry`` is
specified, the timeout applies to each individual attempt.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,15 @@ def __init__(self, address, scopes, channel=None, credentials=None):

# Create the channel.
if channel is None:
channel = self.create_channel(address, scopes, credentials=credentials)
channel = self.create_channel(
address,
scopes,
credentials=credentials,
options={
"grpc.max_send_message_length": -1,
"grpc.max_receive_message_length": -1,
}.items(),
)

self._channel = channel

Expand Down
9 changes: 4 additions & 5 deletions packages/grafeas/synth.metadata
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
{
"updateTime": "2019-07-12T23:41:44.676676Z",
"updateTime": "2019-08-06T18:36:30.465284Z",
"sources": [
{
"generator": {
"name": "artman",
"version": "0.29.4",
"dockerImage": "googleapis/artman@sha256:63f21e83cb92680b7001dc381069e962c9e6dee314fd8365ac554c07c89221fb"
"version": "0.32.1",
"dockerImage": "googleapis/artman@sha256:a684d40ba9a4e15946f5f2ca6b4bd9fe301192f522e9de4fff622118775f309b"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "47bd0c2ba33c28dd624a65dad382e02bb61d1618",
"internalRef": "257690259"
"sha": "53e641721f965a485af64331cfea9e5522294d78"
}
},
{
Expand Down
2 changes: 0 additions & 2 deletions packages/grafeas/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,15 +243,13 @@ def from_service_account_file\(cls, filename, \*args, \*\*kwargs\):
channel = self\.create_channel\(
address=address,
credentials=credentials,
\)
""",
""" # Create the channel.
if channel is None:
channel = self.create_channel(
address,
scopes,
credentials=credentials,
)
""",
)

Expand Down

0 comments on commit 1998312

Please sign in to comment.