Skip to content

Commit 16b483e

Browse files
yoshi-automationtseaver
authored andcommitted
Remove send/recv msg size limit (via synth). (googleapis#8974)
1 parent 8c651d5 commit 16b483e

3 files changed

Lines changed: 29 additions & 22 deletions

File tree

translate/google/cloud/translate_v3beta1/gapic/translation_service_client.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,8 @@ def translate_text(
283283
If a dict is provided, it must be of the same form as the protobuf
284284
message :class:`~google.cloud.translate_v3beta1.types.TranslateTextGlossaryConfig`
285285
retry (Optional[google.api_core.retry.Retry]): A retry object used
286-
to retry requests. If ``None`` is specified, requests will not
287-
be retried.
286+
to retry requests. If ``None`` is specified, requests will
287+
be retried using a default configuration.
288288
timeout (Optional[float]): The amount of time, in seconds, to wait
289289
for the request to complete. Note that if ``retry`` is
290290
specified, the timeout applies to each individual attempt.
@@ -380,8 +380,8 @@ def detect_language(
380380
mime_type (str): Optional. The format of the source text, for example, "text/html",
381381
"text/plain". If left blank, the MIME type defaults to "text/html".
382382
retry (Optional[google.api_core.retry.Retry]): A retry object used
383-
to retry requests. If ``None`` is specified, requests will not
384-
be retried.
383+
to retry requests. If ``None`` is specified, requests will
384+
be retried using a default configuration.
385385
timeout (Optional[float]): The amount of time, in seconds, to wait
386386
for the request to complete. Note that if ``retry`` is
387387
specified, the timeout applies to each individual attempt.
@@ -478,8 +478,8 @@ def get_supported_languages(
478478
Returns languages supported by the specified model. If missing, we get
479479
supported languages of Google general base (PBMT) model.
480480
retry (Optional[google.api_core.retry.Retry]): A retry object used
481-
to retry requests. If ``None`` is specified, requests will not
482-
be retried.
481+
to retry requests. If ``None`` is specified, requests will
482+
be retried using a default configuration.
483483
timeout (Optional[float]): The amount of time, in seconds, to wait
484484
for the request to complete. Note that if ``retry`` is
485485
specified, the timeout applies to each individual attempt.
@@ -623,8 +623,8 @@ def batch_translate_text(
623623
If a dict is provided, it must be of the same form as the protobuf
624624
message :class:`~google.cloud.translate_v3beta1.types.TranslateTextGlossaryConfig`
625625
retry (Optional[google.api_core.retry.Retry]): A retry object used
626-
to retry requests. If ``None`` is specified, requests will not
627-
be retried.
626+
to retry requests. If ``None`` is specified, requests will
627+
be retried using a default configuration.
628628
timeout (Optional[float]): The amount of time, in seconds, to wait
629629
for the request to complete. Note that if ``retry`` is
630630
specified, the timeout applies to each individual attempt.
@@ -724,8 +724,8 @@ def create_glossary(
724724
If a dict is provided, it must be of the same form as the protobuf
725725
message :class:`~google.cloud.translate_v3beta1.types.Glossary`
726726
retry (Optional[google.api_core.retry.Retry]): A retry object used
727-
to retry requests. If ``None`` is specified, requests will not
728-
be retried.
727+
to retry requests. If ``None`` is specified, requests will
728+
be retried using a default configuration.
729729
timeout (Optional[float]): The amount of time, in seconds, to wait
730730
for the request to complete. Note that if ``retry`` is
731731
specified, the timeout applies to each individual attempt.
@@ -822,8 +822,8 @@ def list_glossaries(
822822
Filtering is not supported yet, and the parameter currently has no effect.
823823
If missing, no filtering is performed.
824824
retry (Optional[google.api_core.retry.Retry]): A retry object used
825-
to retry requests. If ``None`` is specified, requests will not
826-
be retried.
825+
to retry requests. If ``None`` is specified, requests will
826+
be retried using a default configuration.
827827
timeout (Optional[float]): The amount of time, in seconds, to wait
828828
for the request to complete. Note that if ``retry`` is
829829
specified, the timeout applies to each individual attempt.
@@ -907,8 +907,8 @@ def get_glossary(
907907
Args:
908908
name (str): Required. The name of the glossary to retrieve.
909909
retry (Optional[google.api_core.retry.Retry]): A retry object used
910-
to retry requests. If ``None`` is specified, requests will not
911-
be retried.
910+
to retry requests. If ``None`` is specified, requests will
911+
be retried using a default configuration.
912912
timeout (Optional[float]): The amount of time, in seconds, to wait
913913
for the request to complete. Note that if ``retry`` is
914914
specified, the timeout applies to each individual attempt.
@@ -986,8 +986,8 @@ def delete_glossary(
986986
Args:
987987
name (str): Required. The name of the glossary to delete.
988988
retry (Optional[google.api_core.retry.Retry]): A retry object used
989-
to retry requests. If ``None`` is specified, requests will not
990-
be retried.
989+
to retry requests. If ``None`` is specified, requests will
990+
be retried using a default configuration.
991991
timeout (Optional[float]): The amount of time, in seconds, to wait
992992
for the request to complete. Note that if ``retry`` is
993993
specified, the timeout applies to each individual attempt.

translate/google/cloud/translate_v3beta1/gapic/transports/translation_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

translate/synth.metadata

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
2-
"updateTime": "2019-07-03T12:43:20.608285Z",
2+
"updateTime": "2019-08-06T12:45:19.878568Z",
33
"sources": [
44
{
55
"generator": {
66
"name": "artman",
7-
"version": "0.29.3",
8-
"dockerImage": "googleapis/artman@sha256:8900f94a81adaab0238965aa8a7b3648791f4f3a95ee65adc6a56cfcc3753101"
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": "69916b6ffbb7717fa009033351777d0c9909fb79",
16-
"internalRef": "256241904"
15+
"sha": "e699b0cba64ffddfae39633417180f1f65875896",
16+
"internalRef": "261759677"
1717
}
1818
},
1919
{

0 commit comments

Comments
 (0)