Skip to content
Permalink
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
  • Loading branch information
yoshi-automation committed Dec 23, 2020
1 parent e689791 commit 07908c009307485955886fc042c1c2b18b43adbd
Showing with 105 additions and 15 deletions.
  1. +0 −1 google/cloud/servicedirectory_v1/services/lookup_service/transports/__init__.py
  2. +9 −1 google/cloud/servicedirectory_v1/services/lookup_service/transports/grpc.py
  3. +8 −0 google/cloud/servicedirectory_v1/services/lookup_service/transports/grpc_asyncio.py
  4. +0 −1 google/cloud/servicedirectory_v1/services/registration_service/transports/__init__.py
  5. +9 −1 google/cloud/servicedirectory_v1/services/registration_service/transports/grpc.py
  6. +8 −0 google/cloud/servicedirectory_v1/services/registration_service/transports/grpc_asyncio.py
  7. +0 −1 google/cloud/servicedirectory_v1/types/__init__.py
  8. +2 −2 google/cloud/servicedirectory_v1beta1/__init__.py
  9. +0 −1 google/cloud/servicedirectory_v1beta1/services/lookup_service/transports/__init__.py
  10. +9 −1 google/cloud/servicedirectory_v1beta1/services/lookup_service/transports/grpc.py
  11. +8 −0 google/cloud/servicedirectory_v1beta1/services/lookup_service/transports/grpc_asyncio.py
  12. +0 −1 google/cloud/servicedirectory_v1beta1/services/registration_service/transports/__init__.py
  13. +9 −1 google/cloud/servicedirectory_v1beta1/services/registration_service/transports/grpc.py
  14. +8 −0 google/cloud/servicedirectory_v1beta1/services/registration_service/transports/grpc_asyncio.py
  15. +0 −1 google/cloud/servicedirectory_v1beta1/types/__init__.py
  16. +3 −3 synth.metadata
  17. +8 −0 tests/unit/gapic/servicedirectory_v1/test_lookup_service.py
  18. +8 −0 tests/unit/gapic/servicedirectory_v1/test_registration_service.py
  19. +8 −0 tests/unit/gapic/servicedirectory_v1beta1/test_lookup_service.py
  20. +8 −0 tests/unit/gapic/servicedirectory_v1beta1/test_registration_service.py
@@ -28,7 +28,6 @@
_transport_registry["grpc"] = LookupServiceGrpcTransport
_transport_registry["grpc_asyncio"] = LookupServiceGrpcAsyncIOTransport


__all__ = (
"LookupServiceTransport",
"LookupServiceGrpcTransport",
@@ -146,6 +146,10 @@ def __init__(
ssl_credentials=ssl_credentials,
scopes=scopes or self.AUTH_SCOPES,
quota_project_id=quota_project_id,
options=[
("grpc.max_send_message_length", -1),
("grpc.max_receive_message_length", -1),
],
)
self._ssl_channel_credentials = ssl_credentials
else:
@@ -164,6 +168,10 @@ def __init__(
ssl_credentials=ssl_channel_credentials,
scopes=scopes or self.AUTH_SCOPES,
quota_project_id=quota_project_id,
options=[
("grpc.max_send_message_length", -1),
("grpc.max_receive_message_length", -1),
],
)

self._stubs = {} # type: Dict[str, Callable]
@@ -190,7 +198,7 @@ def create_channel(
) -> grpc.Channel:
"""Create and return a gRPC channel object.
Args:
address (Optionsl[str]): The host for the channel to use.
address (Optional[str]): The host for the channel to use.
credentials (Optional[~.Credentials]): The
authorization credentials to attach to requests. These
credentials identify this application to the service. If
@@ -191,6 +191,10 @@ def __init__(
ssl_credentials=ssl_credentials,
scopes=scopes or self.AUTH_SCOPES,
quota_project_id=quota_project_id,
options=[
("grpc.max_send_message_length", -1),
("grpc.max_receive_message_length", -1),
],
)
self._ssl_channel_credentials = ssl_credentials
else:
@@ -209,6 +213,10 @@ def __init__(
ssl_credentials=ssl_channel_credentials,
scopes=scopes or self.AUTH_SCOPES,
quota_project_id=quota_project_id,
options=[
("grpc.max_send_message_length", -1),
("grpc.max_receive_message_length", -1),
],
)

# Run the base constructor.
@@ -30,7 +30,6 @@
_transport_registry["grpc"] = RegistrationServiceGrpcTransport
_transport_registry["grpc_asyncio"] = RegistrationServiceGrpcAsyncIOTransport


__all__ = (
"RegistrationServiceTransport",
"RegistrationServiceGrpcTransport",
@@ -169,6 +169,10 @@ def __init__(
ssl_credentials=ssl_credentials,
scopes=scopes or self.AUTH_SCOPES,
quota_project_id=quota_project_id,
options=[
("grpc.max_send_message_length", -1),
("grpc.max_receive_message_length", -1),
],
)
self._ssl_channel_credentials = ssl_credentials
else:
@@ -187,6 +191,10 @@ def __init__(
ssl_credentials=ssl_channel_credentials,
scopes=scopes or self.AUTH_SCOPES,
quota_project_id=quota_project_id,
options=[
("grpc.max_send_message_length", -1),
("grpc.max_receive_message_length", -1),
],
)

self._stubs = {} # type: Dict[str, Callable]
@@ -213,7 +221,7 @@ def create_channel(
) -> grpc.Channel:
"""Create and return a gRPC channel object.
Args:
address (Optionsl[str]): The host for the channel to use.
address (Optional[str]): The host for the channel to use.
credentials (Optional[~.Credentials]): The
authorization credentials to attach to requests. These
credentials identify this application to the service. If
@@ -214,6 +214,10 @@ def __init__(
ssl_credentials=ssl_credentials,
scopes=scopes or self.AUTH_SCOPES,
quota_project_id=quota_project_id,
options=[
("grpc.max_send_message_length", -1),
("grpc.max_receive_message_length", -1),
],
)
self._ssl_channel_credentials = ssl_credentials
else:
@@ -232,6 +236,10 @@ def __init__(
ssl_credentials=ssl_channel_credentials,
scopes=scopes or self.AUTH_SCOPES,
quota_project_id=quota_project_id,
options=[
("grpc.max_send_message_length", -1),
("grpc.max_receive_message_length", -1),
],
)

# Run the base constructor.
@@ -43,7 +43,6 @@
DeleteEndpointRequest,
)


__all__ = (
"Endpoint",
"Service",
@@ -59,13 +59,13 @@
"ListNamespacesResponse",
"ListServicesRequest",
"ListServicesResponse",
"LookupServiceClient",
"Namespace",
"RegistrationServiceClient",
"ResolveServiceRequest",
"ResolveServiceResponse",
"Service",
"UpdateEndpointRequest",
"UpdateNamespaceRequest",
"UpdateServiceRequest",
"RegistrationServiceClient",
"LookupServiceClient",
)
@@ -28,7 +28,6 @@
_transport_registry["grpc"] = LookupServiceGrpcTransport
_transport_registry["grpc_asyncio"] = LookupServiceGrpcAsyncIOTransport


__all__ = (
"LookupServiceTransport",
"LookupServiceGrpcTransport",
@@ -146,6 +146,10 @@ def __init__(
ssl_credentials=ssl_credentials,
scopes=scopes or self.AUTH_SCOPES,
quota_project_id=quota_project_id,
options=[
("grpc.max_send_message_length", -1),
("grpc.max_receive_message_length", -1),
],
)
self._ssl_channel_credentials = ssl_credentials
else:
@@ -164,6 +168,10 @@ def __init__(
ssl_credentials=ssl_channel_credentials,
scopes=scopes or self.AUTH_SCOPES,
quota_project_id=quota_project_id,
options=[
("grpc.max_send_message_length", -1),
("grpc.max_receive_message_length", -1),
],
)

self._stubs = {} # type: Dict[str, Callable]
@@ -190,7 +198,7 @@ def create_channel(
) -> grpc.Channel:
"""Create and return a gRPC channel object.
Args:
address (Optionsl[str]): The host for the channel to use.
address (Optional[str]): The host for the channel to use.
credentials (Optional[~.Credentials]): The
authorization credentials to attach to requests. These
credentials identify this application to the service. If
@@ -191,6 +191,10 @@ def __init__(
ssl_credentials=ssl_credentials,
scopes=scopes or self.AUTH_SCOPES,
quota_project_id=quota_project_id,
options=[
("grpc.max_send_message_length", -1),
("grpc.max_receive_message_length", -1),
],
)
self._ssl_channel_credentials = ssl_credentials
else:
@@ -209,6 +213,10 @@ def __init__(
ssl_credentials=ssl_channel_credentials,
scopes=scopes or self.AUTH_SCOPES,
quota_project_id=quota_project_id,
options=[
("grpc.max_send_message_length", -1),
("grpc.max_receive_message_length", -1),
],
)

# Run the base constructor.
@@ -30,7 +30,6 @@
_transport_registry["grpc"] = RegistrationServiceGrpcTransport
_transport_registry["grpc_asyncio"] = RegistrationServiceGrpcAsyncIOTransport


__all__ = (
"RegistrationServiceTransport",
"RegistrationServiceGrpcTransport",
@@ -170,6 +170,10 @@ def __init__(
ssl_credentials=ssl_credentials,
scopes=scopes or self.AUTH_SCOPES,
quota_project_id=quota_project_id,
options=[
("grpc.max_send_message_length", -1),
("grpc.max_receive_message_length", -1),
],
)
self._ssl_channel_credentials = ssl_credentials
else:
@@ -188,6 +192,10 @@ def __init__(
ssl_credentials=ssl_channel_credentials,
scopes=scopes or self.AUTH_SCOPES,
quota_project_id=quota_project_id,
options=[
("grpc.max_send_message_length", -1),
("grpc.max_receive_message_length", -1),
],
)

self._stubs = {} # type: Dict[str, Callable]
@@ -214,7 +222,7 @@ def create_channel(
) -> grpc.Channel:
"""Create and return a gRPC channel object.
Args:
address (Optionsl[str]): The host for the channel to use.
address (Optional[str]): The host for the channel to use.
credentials (Optional[~.Credentials]): The
authorization credentials to attach to requests. These
credentials identify this application to the service. If
@@ -215,6 +215,10 @@ def __init__(
ssl_credentials=ssl_credentials,
scopes=scopes or self.AUTH_SCOPES,
quota_project_id=quota_project_id,
options=[
("grpc.max_send_message_length", -1),
("grpc.max_receive_message_length", -1),
],
)
self._ssl_channel_credentials = ssl_credentials
else:
@@ -233,6 +237,10 @@ def __init__(
ssl_credentials=ssl_channel_credentials,
scopes=scopes or self.AUTH_SCOPES,
quota_project_id=quota_project_id,
options=[
("grpc.max_send_message_length", -1),
("grpc.max_receive_message_length", -1),
],
)

# Run the base constructor.
@@ -43,7 +43,6 @@
DeleteEndpointRequest,
)


__all__ = (
"Endpoint",
"Service",
@@ -4,15 +4,15 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/python-service-directory.git",
"sha": "1258a54cfd6cd82a73787b0d2c9ff5df076f71e7"
"sha": "e689791bf2024af664b36d1101c1af4b7b6b7582"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "2d22118d88946059ab0c3a05588f577a6e82a0c4",
"internalRef": "345621354"
"sha": "f967ea0c0437a269515665ff9dbb69fcf134ddd9",
"internalRef": "347681363"
}
},
{
@@ -801,6 +801,10 @@ def test_lookup_service_transport_channel_mtls_with_client_cert_source(transport
scopes=("https://www.googleapis.com/auth/cloud-platform",),
ssl_credentials=mock_ssl_cred,
quota_project_id=None,
options=[
("grpc.max_send_message_length", -1),
("grpc.max_receive_message_length", -1),
],
)
assert transport.grpc_channel == mock_grpc_channel
assert transport._ssl_channel_credentials == mock_ssl_cred
@@ -842,6 +846,10 @@ def test_lookup_service_transport_channel_mtls_with_adc(transport_class):
scopes=("https://www.googleapis.com/auth/cloud-platform",),
ssl_credentials=mock_ssl_cred,
quota_project_id=None,
options=[
("grpc.max_send_message_length", -1),
("grpc.max_receive_message_length", -1),
],
)
assert transport.grpc_channel == mock_grpc_channel

@@ -4692,6 +4692,10 @@ def test_registration_service_transport_channel_mtls_with_client_cert_source(
scopes=("https://www.googleapis.com/auth/cloud-platform",),
ssl_credentials=mock_ssl_cred,
quota_project_id=None,
options=[
("grpc.max_send_message_length", -1),
("grpc.max_receive_message_length", -1),
],
)
assert transport.grpc_channel == mock_grpc_channel
assert transport._ssl_channel_credentials == mock_ssl_cred
@@ -4733,6 +4737,10 @@ def test_registration_service_transport_channel_mtls_with_adc(transport_class):
scopes=("https://www.googleapis.com/auth/cloud-platform",),
ssl_credentials=mock_ssl_cred,
quota_project_id=None,
options=[
("grpc.max_send_message_length", -1),
("grpc.max_receive_message_length", -1),
],
)
assert transport.grpc_channel == mock_grpc_channel

@@ -803,6 +803,10 @@ def test_lookup_service_transport_channel_mtls_with_client_cert_source(transport
scopes=("https://www.googleapis.com/auth/cloud-platform",),
ssl_credentials=mock_ssl_cred,
quota_project_id=None,
options=[
("grpc.max_send_message_length", -1),
("grpc.max_receive_message_length", -1),
],
)
assert transport.grpc_channel == mock_grpc_channel
assert transport._ssl_channel_credentials == mock_ssl_cred
@@ -844,6 +848,10 @@ def test_lookup_service_transport_channel_mtls_with_adc(transport_class):
scopes=("https://www.googleapis.com/auth/cloud-platform",),
ssl_credentials=mock_ssl_cred,
quota_project_id=None,
options=[
("grpc.max_send_message_length", -1),
("grpc.max_receive_message_length", -1),
],
)
assert transport.grpc_channel == mock_grpc_channel

@@ -4694,6 +4694,10 @@ def test_registration_service_transport_channel_mtls_with_client_cert_source(
scopes=("https://www.googleapis.com/auth/cloud-platform",),
ssl_credentials=mock_ssl_cred,
quota_project_id=None,
options=[
("grpc.max_send_message_length", -1),
("grpc.max_receive_message_length", -1),
],
)
assert transport.grpc_channel == mock_grpc_channel
assert transport._ssl_channel_credentials == mock_ssl_cred
@@ -4735,6 +4739,10 @@ def test_registration_service_transport_channel_mtls_with_adc(transport_class):
scopes=("https://www.googleapis.com/auth/cloud-platform",),
ssl_credentials=mock_ssl_cred,
quota_project_id=None,
options=[
("grpc.max_send_message_length", -1),
("grpc.max_receive_message_length", -1),
],
)
assert transport.grpc_channel == mock_grpc_channel

0 comments on commit 07908c0

Please sign in to comment.