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

Commit 302c071

Browse files
fix: remove client recv msg limit and add enums to types/__init__.py (#13)
PiperOrigin-RevId: 347055288 Source-Author: Google APIs <noreply@google.com> Source-Date: Fri Dec 11 12:44:37 2020 -0800 Source-Repo: googleapis/googleapis Source-Sha: dd372aa22ded7a8ba6f0e03a80e06358a3fa0907 Source-Link: googleapis/googleapis@dd372aa
1 parent a77e7c3 commit 302c071

6 files changed

Lines changed: 30 additions & 6 deletions

File tree

‎google/area120/tables_v1alpha1/services/tables_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"] = TablesServiceGrpcTransport
2929
_transport_registry["grpc_asyncio"] = TablesServiceGrpcAsyncIOTransport
3030

31-
3231
__all__ = (
3332
"TablesServiceTransport",
3433
"TablesServiceGrpcTransport",

‎google/area120/tables_v1alpha1/services/tables_service/transports/grpc.py‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ def __init__(
156156
ssl_credentials=ssl_credentials,
157157
scopes=scopes or self.AUTH_SCOPES,
158158
quota_project_id=quota_project_id,
159+
options=[
160+
("grpc.max_send_message_length", -1),
161+
("grpc.max_receive_message_length", -1),
162+
],
159163
)
160164
self._ssl_channel_credentials = ssl_credentials
161165
else:
@@ -174,6 +178,10 @@ def __init__(
174178
ssl_credentials=ssl_channel_credentials,
175179
scopes=scopes or self.AUTH_SCOPES,
176180
quota_project_id=quota_project_id,
181+
options=[
182+
("grpc.max_send_message_length", -1),
183+
("grpc.max_receive_message_length", -1),
184+
],
177185
)
178186

179187
self._stubs = {} # type: Dict[str, Callable]
@@ -200,7 +208,7 @@ def create_channel(
200208
) -> grpc.Channel:
201209
"""Create and return a gRPC channel object.
202210
Args:
203-
address (Optionsl[str]): The host for the channel to use.
211+
address (Optional[str]): The host for the channel to use.
204212
credentials (Optional[~.Credentials]): The
205213
authorization credentials to attach to requests. These
206214
credentials identify this application to the service. If

‎google/area120/tables_v1alpha1/services/tables_service/transports/grpc_asyncio.py‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,10 @@ def __init__(
201201
ssl_credentials=ssl_credentials,
202202
scopes=scopes or self.AUTH_SCOPES,
203203
quota_project_id=quota_project_id,
204+
options=[
205+
("grpc.max_send_message_length", -1),
206+
("grpc.max_receive_message_length", -1),
207+
],
204208
)
205209
self._ssl_channel_credentials = ssl_credentials
206210
else:
@@ -219,6 +223,10 @@ def __init__(
219223
ssl_credentials=ssl_channel_credentials,
220224
scopes=scopes or self.AUTH_SCOPES,
221225
quota_project_id=quota_project_id,
226+
options=[
227+
("grpc.max_send_message_length", -1),
228+
("grpc.max_receive_message_length", -1),
229+
],
222230
)
223231

224232
# Run the base constructor.

‎google/area120/tables_v1alpha1/types/__init__.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
Table,
3333
ColumnDescription,
3434
Row,
35+
View,
3536
)
3637

37-
3838
__all__ = (
3939
"GetTableRequest",
4040
"ListTablesRequest",
@@ -52,4 +52,5 @@
5252
"Table",
5353
"ColumnDescription",
5454
"Row",
55+
"View",
5556
)

‎synth.metadata‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
"git": {
55
"name": ".",
66
"remote": "https://github.com/googleapis/python-area120-tables.git",
7-
"sha": "e2367d0be19e5e8e353ad9757a5b2ba730168b4c"
7+
"sha": "a77e7c3bf60a89c4327a4c998160290233776a0c"
88
}
99
},
1010
{
1111
"git": {
1212
"name": "googleapis",
1313
"remote": "https://github.com/googleapis/googleapis.git",
14-
"sha": "6a69c750c3f01a69017662395f90515bbf1fe1ff",
15-
"internalRef": "342721036"
14+
"sha": "dd372aa22ded7a8ba6f0e03a80e06358a3fa0907",
15+
"internalRef": "347055288"
1616
}
1717
},
1818
{

‎tests/unit/gapic/tables_v1alpha1/test_tables_service.py‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2392,6 +2392,10 @@ def test_tables_service_transport_channel_mtls_with_client_cert_source(transport
23922392
),
23932393
ssl_credentials=mock_ssl_cred,
23942394
quota_project_id=None,
2395+
options=[
2396+
("grpc.max_send_message_length", -1),
2397+
("grpc.max_receive_message_length", -1),
2398+
],
23952399
)
23962400
assert transport.grpc_channel == mock_grpc_channel
23972401
assert transport._ssl_channel_credentials == mock_ssl_cred
@@ -2439,6 +2443,10 @@ def test_tables_service_transport_channel_mtls_with_adc(transport_class):
24392443
),
24402444
ssl_credentials=mock_ssl_cred,
24412445
quota_project_id=None,
2446+
options=[
2447+
("grpc.max_send_message_length", -1),
2448+
("grpc.max_receive_message_length", -1),
2449+
],
24422450
)
24432451
assert transport.grpc_channel == mock_grpc_channel
24442452

0 commit comments

Comments
 (0)