Skip to content

Commit cb0e798

Browse files
fix: remove gRPC send/recv limits (#39)
* 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. * feat: add a Type field to Product.proto. This field is currently output only. docs: Keep the API doc up-to-date PiperOrigin-RevId: 346583028 Source-Author: Google APIs <noreply@google.com> Source-Date: Wed Dec 9 10:31:15 2020 -0800 Source-Repo: googleapis/googleapis Source-Sha: 98476faded3ae01f2e0277f98086fc861d250325 Source-Link: googleapis/googleapis@98476fa * fix: remove client recv msg limit fix: add enums to `types/__init__.py` 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 * feat: Add ComputeHeadCursor RPC for Pub/Sub Lite. PiperOrigin-RevId: 347681363 Source-Author: Google APIs <noreply@google.com> Source-Date: Tue Dec 15 13:31:04 2020 -0800 Source-Repo: googleapis/googleapis Source-Sha: f967ea0c0437a269515665ff9dbb69fcf134ddd9 Source-Link: googleapis/googleapis@f967ea0
1 parent e463e78 commit cb0e798

File tree

20 files changed

+105
-15
lines changed

20 files changed

+105
-15
lines changed

packages/google-cloud-service-directory/google/cloud/servicedirectory_v1/services/lookup_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"] = LookupServiceGrpcTransport
2929
_transport_registry["grpc_asyncio"] = LookupServiceGrpcAsyncIOTransport
3030

31-
3231
__all__ = (
3332
"LookupServiceTransport",
3433
"LookupServiceGrpcTransport",

packages/google-cloud-service-directory/google/cloud/servicedirectory_v1/services/lookup_service/transports/grpc.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,10 @@ def __init__(
146146
ssl_credentials=ssl_credentials,
147147
scopes=scopes or self.AUTH_SCOPES,
148148
quota_project_id=quota_project_id,
149+
options=[
150+
("grpc.max_send_message_length", -1),
151+
("grpc.max_receive_message_length", -1),
152+
],
149153
)
150154
self._ssl_channel_credentials = ssl_credentials
151155
else:
@@ -164,6 +168,10 @@ def __init__(
164168
ssl_credentials=ssl_channel_credentials,
165169
scopes=scopes or self.AUTH_SCOPES,
166170
quota_project_id=quota_project_id,
171+
options=[
172+
("grpc.max_send_message_length", -1),
173+
("grpc.max_receive_message_length", -1),
174+
],
167175
)
168176

169177
self._stubs = {} # type: Dict[str, Callable]
@@ -190,7 +198,7 @@ def create_channel(
190198
) -> grpc.Channel:
191199
"""Create and return a gRPC channel object.
192200
Args:
193-
address (Optionsl[str]): The host for the channel to use.
201+
address (Optional[str]): The host for the channel to use.
194202
credentials (Optional[~.Credentials]): The
195203
authorization credentials to attach to requests. These
196204
credentials identify this application to the service. If

packages/google-cloud-service-directory/google/cloud/servicedirectory_v1/services/lookup_service/transports/grpc_asyncio.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,10 @@ def __init__(
191191
ssl_credentials=ssl_credentials,
192192
scopes=scopes or self.AUTH_SCOPES,
193193
quota_project_id=quota_project_id,
194+
options=[
195+
("grpc.max_send_message_length", -1),
196+
("grpc.max_receive_message_length", -1),
197+
],
194198
)
195199
self._ssl_channel_credentials = ssl_credentials
196200
else:
@@ -209,6 +213,10 @@ def __init__(
209213
ssl_credentials=ssl_channel_credentials,
210214
scopes=scopes or self.AUTH_SCOPES,
211215
quota_project_id=quota_project_id,
216+
options=[
217+
("grpc.max_send_message_length", -1),
218+
("grpc.max_receive_message_length", -1),
219+
],
212220
)
213221

214222
# Run the base constructor.

packages/google-cloud-service-directory/google/cloud/servicedirectory_v1/services/registration_service/transports/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
_transport_registry["grpc"] = RegistrationServiceGrpcTransport
3131
_transport_registry["grpc_asyncio"] = RegistrationServiceGrpcAsyncIOTransport
3232

33-
3433
__all__ = (
3534
"RegistrationServiceTransport",
3635
"RegistrationServiceGrpcTransport",

packages/google-cloud-service-directory/google/cloud/servicedirectory_v1/services/registration_service/transports/grpc.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,10 @@ def __init__(
169169
ssl_credentials=ssl_credentials,
170170
scopes=scopes or self.AUTH_SCOPES,
171171
quota_project_id=quota_project_id,
172+
options=[
173+
("grpc.max_send_message_length", -1),
174+
("grpc.max_receive_message_length", -1),
175+
],
172176
)
173177
self._ssl_channel_credentials = ssl_credentials
174178
else:
@@ -187,6 +191,10 @@ def __init__(
187191
ssl_credentials=ssl_channel_credentials,
188192
scopes=scopes or self.AUTH_SCOPES,
189193
quota_project_id=quota_project_id,
194+
options=[
195+
("grpc.max_send_message_length", -1),
196+
("grpc.max_receive_message_length", -1),
197+
],
190198
)
191199

192200
self._stubs = {} # type: Dict[str, Callable]
@@ -213,7 +221,7 @@ def create_channel(
213221
) -> grpc.Channel:
214222
"""Create and return a gRPC channel object.
215223
Args:
216-
address (Optionsl[str]): The host for the channel to use.
224+
address (Optional[str]): The host for the channel to use.
217225
credentials (Optional[~.Credentials]): The
218226
authorization credentials to attach to requests. These
219227
credentials identify this application to the service. If

packages/google-cloud-service-directory/google/cloud/servicedirectory_v1/services/registration_service/transports/grpc_asyncio.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,10 @@ def __init__(
214214
ssl_credentials=ssl_credentials,
215215
scopes=scopes or self.AUTH_SCOPES,
216216
quota_project_id=quota_project_id,
217+
options=[
218+
("grpc.max_send_message_length", -1),
219+
("grpc.max_receive_message_length", -1),
220+
],
217221
)
218222
self._ssl_channel_credentials = ssl_credentials
219223
else:
@@ -232,6 +236,10 @@ def __init__(
232236
ssl_credentials=ssl_channel_credentials,
233237
scopes=scopes or self.AUTH_SCOPES,
234238
quota_project_id=quota_project_id,
239+
options=[
240+
("grpc.max_send_message_length", -1),
241+
("grpc.max_receive_message_length", -1),
242+
],
235243
)
236244

237245
# Run the base constructor.

packages/google-cloud-service-directory/google/cloud/servicedirectory_v1/types/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
DeleteEndpointRequest,
4444
)
4545

46-
4746
__all__ = (
4847
"Endpoint",
4948
"Service",

packages/google-cloud-service-directory/google/cloud/servicedirectory_v1beta1/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@
5959
"ListNamespacesResponse",
6060
"ListServicesRequest",
6161
"ListServicesResponse",
62-
"LookupServiceClient",
6362
"Namespace",
63+
"RegistrationServiceClient",
6464
"ResolveServiceRequest",
6565
"ResolveServiceResponse",
6666
"Service",
6767
"UpdateEndpointRequest",
6868
"UpdateNamespaceRequest",
6969
"UpdateServiceRequest",
70-
"RegistrationServiceClient",
70+
"LookupServiceClient",
7171
)

packages/google-cloud-service-directory/google/cloud/servicedirectory_v1beta1/services/lookup_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"] = LookupServiceGrpcTransport
2929
_transport_registry["grpc_asyncio"] = LookupServiceGrpcAsyncIOTransport
3030

31-
3231
__all__ = (
3332
"LookupServiceTransport",
3433
"LookupServiceGrpcTransport",

packages/google-cloud-service-directory/google/cloud/servicedirectory_v1beta1/services/lookup_service/transports/grpc.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,10 @@ def __init__(
146146
ssl_credentials=ssl_credentials,
147147
scopes=scopes or self.AUTH_SCOPES,
148148
quota_project_id=quota_project_id,
149+
options=[
150+
("grpc.max_send_message_length", -1),
151+
("grpc.max_receive_message_length", -1),
152+
],
149153
)
150154
self._ssl_channel_credentials = ssl_credentials
151155
else:
@@ -164,6 +168,10 @@ def __init__(
164168
ssl_credentials=ssl_channel_credentials,
165169
scopes=scopes or self.AUTH_SCOPES,
166170
quota_project_id=quota_project_id,
171+
options=[
172+
("grpc.max_send_message_length", -1),
173+
("grpc.max_receive_message_length", -1),
174+
],
167175
)
168176

169177
self._stubs = {} # type: Dict[str, Callable]
@@ -190,7 +198,7 @@ def create_channel(
190198
) -> grpc.Channel:
191199
"""Create and return a gRPC channel object.
192200
Args:
193-
address (Optionsl[str]): The host for the channel to use.
201+
address (Optional[str]): The host for the channel to use.
194202
credentials (Optional[~.Credentials]): The
195203
authorization credentials to attach to requests. These
196204
credentials identify this application to the service. If

0 commit comments

Comments
 (0)