Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8804020

Browse files
yoshi-automationbusunkim96
authored andcommitted
Remove send/recv msg size limit (via synth). (googleapis#8973)
1 parent 2dbe769 commit 8804020

File tree

5 files changed

+31
-17
lines changed

5 files changed

+31
-17
lines changed

trace/google/cloud/trace_v1/gapic/trace_service_client.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,8 @@ def patch_traces(
226226
If a dict is provided, it must be of the same form as the protobuf
227227
message :class:`~google.cloud.trace_v1.types.Traces`
228228
retry (Optional[google.api_core.retry.Retry]): A retry object used
229-
to retry requests. If ``None`` is specified, requests will not
230-
be retried.
229+
to retry requests. If ``None`` is specified, requests will
230+
be retried using a default configuration.
231231
timeout (Optional[float]): The amount of time, in seconds, to wait
232232
for the request to complete. Note that if ``retry`` is
233233
specified, the timeout applies to each individual attempt.
@@ -298,8 +298,8 @@ def get_trace(
298298
project_id (str): ID of the Cloud project where the trace data is stored.
299299
trace_id (str): ID of the trace to return.
300300
retry (Optional[google.api_core.retry.Retry]): A retry object used
301-
to retry requests. If ``None`` is specified, requests will not
302-
be retried.
301+
to retry requests. If ``None`` is specified, requests will
302+
be retried using a default configuration.
303303
timeout (Optional[float]): The amount of time, in seconds, to wait
304304
for the request to complete. Note that if ``retry`` is
305305
specified, the timeout applies to each individual attempt.
@@ -433,8 +433,8 @@ def list_traces(
433433
434434
Only one sort field is permitted.
435435
retry (Optional[google.api_core.retry.Retry]): A retry object used
436-
to retry requests. If ``None`` is specified, requests will not
437-
be retried.
436+
to retry requests. If ``None`` is specified, requests will
437+
be retried using a default configuration.
438438
timeout (Optional[float]): The amount of time, in seconds, to wait
439439
for the request to complete. Note that if ``retry`` is
440440
specified, the timeout applies to each individual attempt.

trace/google/cloud/trace_v1/gapic/transports/trace_service_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

trace/google/cloud/trace_v2/gapic/trace_service_client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,8 @@ def batch_write_spans(
243243
If a dict is provided, it must be of the same form as the protobuf
244244
message :class:`~google.cloud.trace_v2.types.Span`
245245
retry (Optional[google.api_core.retry.Retry]): A retry object used
246-
to retry requests. If ``None`` is specified, requests will not
247-
be retried.
246+
to retry requests. If ``None`` is specified, requests will
247+
be retried using a default configuration.
248248
timeout (Optional[float]): The amount of time, in seconds, to wait
249249
for the request to complete. Note that if ``retry`` is
250250
specified, the timeout applies to each individual attempt.
@@ -402,8 +402,8 @@ def create_span(
402402
If a dict is provided, it must be of the same form as the protobuf
403403
message :class:`~google.cloud.trace_v2.types.Int32Value`
404404
retry (Optional[google.api_core.retry.Retry]): A retry object used
405-
to retry requests. If ``None`` is specified, requests will not
406-
be retried.
405+
to retry requests. If ``None`` is specified, requests will
406+
be retried using a default configuration.
407407
timeout (Optional[float]): The amount of time, in seconds, to wait
408408
for the request to complete. Note that if ``retry`` is
409409
specified, the timeout applies to each individual attempt.

trace/google/cloud/trace_v2/gapic/transports/trace_service_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

trace/synth.metadata

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
2-
"updateTime": "2019-06-28T12:38:56.381646Z",
2+
"updateTime": "2019-08-06T12:44:36.453837Z",
33
"sources": [
44
{
55
"generator": {
66
"name": "artman",
7-
"version": "0.29.2",
8-
"dockerImage": "googleapis/artman@sha256:45263333b058a4b3c26a8b7680a2710f43eae3d250f791a6cb66423991dcb2df"
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": "84c8ad4e52f8eec8f08a60636cfa597b86969b5c",
16-
"internalRef": "255474859"
15+
"sha": "e699b0cba64ffddfae39633417180f1f65875896",
16+
"internalRef": "261759677"
1717
}
1818
},
1919
{

0 commit comments

Comments
 (0)