Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.

Commit c8d639a

Browse files
fix: remove gRPC send/recv limits (#37)
* changes without context autosynth cannot find the source of changes triggered by earlier changes in this repository, or by version upgrades to tools such as linters. * fix: remove client recv msg limit fix: add enums to `types/__init__.py` PiperOrigin-RevId: 347055288 Source-Author: Google APIs <[email protected]> Source-Date: Fri Dec 11 12:44:37 2020 -0800 Source-Repo: googleapis/googleapis Source-Sha: dd372aa22ded7a8ba6f0e03a80e06358a3fa0907 Source-Link: googleapis/googleapis@dd372aa * docs: revert changes to google-auth intersphinx Co-authored-by: Tim Swast <[email protected]>
1 parent f2906bb commit c8d639a

File tree

6 files changed

+27
-5
lines changed

6 files changed

+27
-5
lines changed

google/cloud/bigquery_connection_v1/services/connection_service/transports/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
_transport_registry["grpc"] = ConnectionServiceGrpcTransport
2929
_transport_registry["grpc_asyncio"] = ConnectionServiceGrpcAsyncIOTransport
3030

31-
3231
__all__ = (
3332
"ConnectionServiceTransport",
3433
"ConnectionServiceGrpcTransport",

google/cloud/bigquery_connection_v1/services/connection_service/transports/grpc.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,10 @@ def __init__(
150150
ssl_credentials=ssl_credentials,
151151
scopes=scopes or self.AUTH_SCOPES,
152152
quota_project_id=quota_project_id,
153+
options=[
154+
("grpc.max_send_message_length", -1),
155+
("grpc.max_receive_message_length", -1),
156+
],
153157
)
154158
self._ssl_channel_credentials = ssl_credentials
155159
else:
@@ -168,6 +172,10 @@ def __init__(
168172
ssl_credentials=ssl_channel_credentials,
169173
scopes=scopes or self.AUTH_SCOPES,
170174
quota_project_id=quota_project_id,
175+
options=[
176+
("grpc.max_send_message_length", -1),
177+
("grpc.max_receive_message_length", -1),
178+
],
171179
)
172180

173181
self._stubs = {} # type: Dict[str, Callable]
@@ -194,7 +202,7 @@ def create_channel(
194202
) -> grpc.Channel:
195203
"""Create and return a gRPC channel object.
196204
Args:
197-
address (Optionsl[str]): The host for the channel to use.
205+
address (Optional[str]): The host for the channel to use.
198206
credentials (Optional[~.Credentials]): The
199207
authorization credentials to attach to requests. These
200208
credentials identify this application to the service. If

google/cloud/bigquery_connection_v1/services/connection_service/transports/grpc_asyncio.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,10 @@ def __init__(
195195
ssl_credentials=ssl_credentials,
196196
scopes=scopes or self.AUTH_SCOPES,
197197
quota_project_id=quota_project_id,
198+
options=[
199+
("grpc.max_send_message_length", -1),
200+
("grpc.max_receive_message_length", -1),
201+
],
198202
)
199203
self._ssl_channel_credentials = ssl_credentials
200204
else:
@@ -213,6 +217,10 @@ def __init__(
213217
ssl_credentials=ssl_channel_credentials,
214218
scopes=scopes or self.AUTH_SCOPES,
215219
quota_project_id=quota_project_id,
220+
options=[
221+
("grpc.max_send_message_length", -1),
222+
("grpc.max_receive_message_length", -1),
223+
],
216224
)
217225

218226
# Run the base constructor.

google/cloud/bigquery_connection_v1/types/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
AwsCrossAccountRole,
3030
)
3131

32-
3332
__all__ = (
3433
"CreateConnectionRequest",
3534
"GetConnectionRequest",

synth.metadata

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"git": {
1212
"name": "googleapis",
1313
"remote": "https://github.com/googleapis/googleapis.git",
14-
"sha": "ae77417a40098bf64d04047760153f47daf2975f",
15-
"internalRef": "339505822"
14+
"sha": "dd372aa22ded7a8ba6f0e03a80e06358a3fa0907",
15+
"internalRef": "347055288"
1616
}
1717
},
1818
{

tests/unit/gapic/bigquery_connection_v1/test_connection_service.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2695,6 +2695,10 @@ def test_connection_service_transport_channel_mtls_with_client_cert_source(
26952695
),
26962696
ssl_credentials=mock_ssl_cred,
26972697
quota_project_id=None,
2698+
options=[
2699+
("grpc.max_send_message_length", -1),
2700+
("grpc.max_receive_message_length", -1),
2701+
],
26982702
)
26992703
assert transport.grpc_channel == mock_grpc_channel
27002704
assert transport._ssl_channel_credentials == mock_ssl_cred
@@ -2739,6 +2743,10 @@ def test_connection_service_transport_channel_mtls_with_adc(transport_class):
27392743
),
27402744
ssl_credentials=mock_ssl_cred,
27412745
quota_project_id=None,
2746+
options=[
2747+
("grpc.max_send_message_length", -1),
2748+
("grpc.max_receive_message_length", -1),
2749+
],
27422750
)
27432751
assert transport.grpc_channel == mock_grpc_channel
27442752

0 commit comments

Comments
 (0)