Skip to content

Commit a7e4cd1

Browse files
yoshi-automationtseaver
authored andcommitted
Remove send/recv msg size limit (via synth). (#8952)
1 parent 4e771c7 commit a7e4cd1

3 files changed

Lines changed: 27 additions & 20 deletions

File tree

datastore/google/cloud/datastore_v1/gapic/datastore_client.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,8 @@ def lookup(
229229
If a dict is provided, it must be of the same form as the protobuf
230230
message :class:`~google.cloud.datastore_v1.types.ReadOptions`
231231
retry (Optional[google.api_core.retry.Retry]): A retry object used
232-
to retry requests. If ``None`` is specified, requests will not
233-
be retried.
232+
to retry requests. If ``None`` is specified, requests will
233+
be retried using a default configuration.
234234
timeout (Optional[float]): The amount of time, in seconds, to wait
235235
for the request to complete. Note that if ``retry`` is
236236
specified, the timeout applies to each individual attempt.
@@ -327,8 +327,8 @@ def run_query(
327327
If a dict is provided, it must be of the same form as the protobuf
328328
message :class:`~google.cloud.datastore_v1.types.GqlQuery`
329329
retry (Optional[google.api_core.retry.Retry]): A retry object used
330-
to retry requests. If ``None`` is specified, requests will not
331-
be retried.
330+
to retry requests. If ``None`` is specified, requests will
331+
be retried using a default configuration.
332332
timeout (Optional[float]): The amount of time, in seconds, to wait
333333
for the request to complete. Note that if ``retry`` is
334334
specified, the timeout applies to each individual attempt.
@@ -412,8 +412,8 @@ def begin_transaction(
412412
If a dict is provided, it must be of the same form as the protobuf
413413
message :class:`~google.cloud.datastore_v1.types.TransactionOptions`
414414
retry (Optional[google.api_core.retry.Retry]): A retry object used
415-
to retry requests. If ``None`` is specified, requests will not
416-
be retried.
415+
to retry requests. If ``None`` is specified, requests will
416+
be retried using a default configuration.
417417
timeout (Optional[float]): The amount of time, in seconds, to wait
418418
for the request to complete. Note that if ``retry`` is
419419
specified, the timeout applies to each individual attempt.
@@ -515,8 +515,8 @@ def commit(
515515
transaction identifier is returned by a call to
516516
``Datastore.BeginTransaction``.
517517
retry (Optional[google.api_core.retry.Retry]): A retry object used
518-
to retry requests. If ``None`` is specified, requests will not
519-
be retried.
518+
to retry requests. If ``None`` is specified, requests will
519+
be retried using a default configuration.
520520
timeout (Optional[float]): The amount of time, in seconds, to wait
521521
for the request to complete. Note that if ``retry`` is
522522
specified, the timeout applies to each individual attempt.
@@ -600,8 +600,8 @@ def rollback(
600600
transaction (bytes): The transaction identifier, returned by a call to
601601
``Datastore.BeginTransaction``.
602602
retry (Optional[google.api_core.retry.Retry]): A retry object used
603-
to retry requests. If ``None`` is specified, requests will not
604-
be retried.
603+
to retry requests. If ``None`` is specified, requests will
604+
be retried using a default configuration.
605605
timeout (Optional[float]): The amount of time, in seconds, to wait
606606
for the request to complete. Note that if ``retry`` is
607607
specified, the timeout applies to each individual attempt.
@@ -682,8 +682,8 @@ def allocate_ids(
682682
If a dict is provided, it must be of the same form as the protobuf
683683
message :class:`~google.cloud.datastore_v1.types.Key`
684684
retry (Optional[google.api_core.retry.Retry]): A retry object used
685-
to retry requests. If ``None`` is specified, requests will not
686-
be retried.
685+
to retry requests. If ``None`` is specified, requests will
686+
be retried using a default configuration.
687687
timeout (Optional[float]): The amount of time, in seconds, to wait
688688
for the request to complete. Note that if ``retry`` is
689689
specified, the timeout applies to each individual attempt.
@@ -764,8 +764,8 @@ def reserve_ids(
764764
message :class:`~google.cloud.datastore_v1.types.Key`
765765
database_id (str): If not empty, the ID of the database against which to make the request.
766766
retry (Optional[google.api_core.retry.Retry]): A retry object used
767-
to retry requests. If ``None`` is specified, requests will not
768-
be retried.
767+
to retry requests. If ``None`` is specified, requests will
768+
be retried using a default configuration.
769769
timeout (Optional[float]): The amount of time, in seconds, to wait
770770
for the request to complete. Note that if ``retry`` is
771771
specified, the timeout applies to each individual attempt.

datastore/google/cloud/datastore_v1/gapic/transports/datastore_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

datastore/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:24:06.203156Z",
2+
"updateTime": "2019-08-06T12:22:10.473851Z",
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)