Skip to content

Commit e23e5ba

Browse files
fix: remove gRPC send/recv limit; add enums to types/__init__.py (#57)
* 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: allowed custom to specify webhook headers through query parameters docs: suggested to always use version for production traffic when calling DetectIntent PiperOrigin-RevId: 346434847 Source-Author: Google APIs <[email protected]> Source-Date: Tue Dec 8 16:24:31 2020 -0800 Source-Repo: googleapis/googleapis Source-Sha: e4d01555afeb93d2f3b467056ea884b092567d1b Source-Link: googleapis/googleapis@e4d0155 * feat: Add the `UNORDERED_LIST` enum value for `google.api.field_behavior`. Also includes minor documentation changes that seem to have been made in the interim and never published. PiperOrigin-RevId: 346664095 Source-Author: Google APIs <[email protected]> Source-Date: Wed Dec 9 16:35:05 2020 -0800 Source-Repo: googleapis/googleapis Source-Sha: 468a94a87b9f80d22d1f5e3076d5bab73a5c996f Source-Link: googleapis/googleapis@468a94a * 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
1 parent 8175492 commit e23e5ba

File tree

14 files changed

+81
-9
lines changed

14 files changed

+81
-9
lines changed

google/cloud/errorreporting_v1beta1/services/error_group_service/transports/__init__.py

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
_transport_registry["grpc"] = ErrorGroupServiceGrpcTransport
2929
_transport_registry["grpc_asyncio"] = ErrorGroupServiceGrpcAsyncIOTransport
3030

31-
3231
__all__ = (
3332
"ErrorGroupServiceTransport",
3433
"ErrorGroupServiceGrpcTransport",

google/cloud/errorreporting_v1beta1/services/error_group_service/transports/grpc.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,10 @@ def __init__(
147147
ssl_credentials=ssl_credentials,
148148
scopes=scopes or self.AUTH_SCOPES,
149149
quota_project_id=quota_project_id,
150+
options=[
151+
("grpc.max_send_message_length", -1),
152+
("grpc.max_receive_message_length", -1),
153+
],
150154
)
151155
self._ssl_channel_credentials = ssl_credentials
152156
else:
@@ -165,6 +169,10 @@ def __init__(
165169
ssl_credentials=ssl_channel_credentials,
166170
scopes=scopes or self.AUTH_SCOPES,
167171
quota_project_id=quota_project_id,
172+
options=[
173+
("grpc.max_send_message_length", -1),
174+
("grpc.max_receive_message_length", -1),
175+
],
168176
)
169177

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

google/cloud/errorreporting_v1beta1/services/error_group_service/transports/grpc_asyncio.py

+8
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,10 @@ def __init__(
192192
ssl_credentials=ssl_credentials,
193193
scopes=scopes or self.AUTH_SCOPES,
194194
quota_project_id=quota_project_id,
195+
options=[
196+
("grpc.max_send_message_length", -1),
197+
("grpc.max_receive_message_length", -1),
198+
],
195199
)
196200
self._ssl_channel_credentials = ssl_credentials
197201
else:
@@ -210,6 +214,10 @@ def __init__(
210214
ssl_credentials=ssl_channel_credentials,
211215
scopes=scopes or self.AUTH_SCOPES,
212216
quota_project_id=quota_project_id,
217+
options=[
218+
("grpc.max_send_message_length", -1),
219+
("grpc.max_receive_message_length", -1),
220+
],
213221
)
214222

215223
# Run the base constructor.

google/cloud/errorreporting_v1beta1/services/error_stats_service/transports/__init__.py

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
_transport_registry["grpc"] = ErrorStatsServiceGrpcTransport
2929
_transport_registry["grpc_asyncio"] = ErrorStatsServiceGrpcAsyncIOTransport
3030

31-
3231
__all__ = (
3332
"ErrorStatsServiceTransport",
3433
"ErrorStatsServiceGrpcTransport",

google/cloud/errorreporting_v1beta1/services/error_stats_service/transports/grpc.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,10 @@ def __init__(
147147
ssl_credentials=ssl_credentials,
148148
scopes=scopes or self.AUTH_SCOPES,
149149
quota_project_id=quota_project_id,
150+
options=[
151+
("grpc.max_send_message_length", -1),
152+
("grpc.max_receive_message_length", -1),
153+
],
150154
)
151155
self._ssl_channel_credentials = ssl_credentials
152156
else:
@@ -165,6 +169,10 @@ def __init__(
165169
ssl_credentials=ssl_channel_credentials,
166170
scopes=scopes or self.AUTH_SCOPES,
167171
quota_project_id=quota_project_id,
172+
options=[
173+
("grpc.max_send_message_length", -1),
174+
("grpc.max_receive_message_length", -1),
175+
],
168176
)
169177

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

google/cloud/errorreporting_v1beta1/services/error_stats_service/transports/grpc_asyncio.py

+8
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,10 @@ def __init__(
192192
ssl_credentials=ssl_credentials,
193193
scopes=scopes or self.AUTH_SCOPES,
194194
quota_project_id=quota_project_id,
195+
options=[
196+
("grpc.max_send_message_length", -1),
197+
("grpc.max_receive_message_length", -1),
198+
],
195199
)
196200
self._ssl_channel_credentials = ssl_credentials
197201
else:
@@ -210,6 +214,10 @@ def __init__(
210214
ssl_credentials=ssl_channel_credentials,
211215
scopes=scopes or self.AUTH_SCOPES,
212216
quota_project_id=quota_project_id,
217+
options=[
218+
("grpc.max_send_message_length", -1),
219+
("grpc.max_receive_message_length", -1),
220+
],
213221
)
214222

215223
# Run the base constructor.

google/cloud/errorreporting_v1beta1/services/report_errors_service/transports/__init__.py

-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
_transport_registry["grpc"] = ReportErrorsServiceGrpcTransport
3131
_transport_registry["grpc_asyncio"] = ReportErrorsServiceGrpcAsyncIOTransport
3232

33-
3433
__all__ = (
3534
"ReportErrorsServiceTransport",
3635
"ReportErrorsServiceGrpcTransport",

google/cloud/errorreporting_v1beta1/services/report_errors_service/transports/grpc.py

+9-1
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

google/cloud/errorreporting_v1beta1/services/report_errors_service/transports/grpc_asyncio.py

+8
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.

google/cloud/errorreporting_v1beta1/types/__init__.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,15 @@
3939
ServiceContextFilter,
4040
DeleteEventsRequest,
4141
DeleteEventsResponse,
42+
TimedCountAlignment,
43+
ErrorGroupOrder,
4244
)
4345
from .report_errors_service import (
4446
ReportErrorEventRequest,
4547
ReportErrorEventResponse,
4648
ReportedErrorEvent,
4749
)
4850

49-
5051
__all__ = (
5152
"ErrorGroup",
5253
"TrackingIssue",
@@ -67,6 +68,8 @@
6768
"ServiceContextFilter",
6869
"DeleteEventsRequest",
6970
"DeleteEventsResponse",
71+
"TimedCountAlignment",
72+
"ErrorGroupOrder",
7073
"ReportErrorEventRequest",
7174
"ReportErrorEventResponse",
7275
"ReportedErrorEvent",

synth.metadata

+2-2
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": "24fb9e5d1f37110bfa198189c34324aa3fdb0896",
15-
"internalRef": "339381689"
14+
"sha": "dd372aa22ded7a8ba6f0e03a80e06358a3fa0907",
15+
"internalRef": "347055288"
1616
}
1717
},
1818
{

tests/unit/gapic/errorreporting_v1beta1/test_error_group_service.py

+8
Original file line numberDiff line numberDiff line change
@@ -1101,6 +1101,10 @@ def test_error_group_service_transport_channel_mtls_with_client_cert_source(
11011101
scopes=("https://www.googleapis.com/auth/cloud-platform",),
11021102
ssl_credentials=mock_ssl_cred,
11031103
quota_project_id=None,
1104+
options=[
1105+
("grpc.max_send_message_length", -1),
1106+
("grpc.max_receive_message_length", -1),
1107+
],
11041108
)
11051109
assert transport.grpc_channel == mock_grpc_channel
11061110
assert transport._ssl_channel_credentials == mock_ssl_cred
@@ -1142,6 +1146,10 @@ def test_error_group_service_transport_channel_mtls_with_adc(transport_class):
11421146
scopes=("https://www.googleapis.com/auth/cloud-platform",),
11431147
ssl_credentials=mock_ssl_cred,
11441148
quota_project_id=None,
1149+
options=[
1150+
("grpc.max_send_message_length", -1),
1151+
("grpc.max_receive_message_length", -1),
1152+
],
11451153
)
11461154
assert transport.grpc_channel == mock_grpc_channel
11471155

tests/unit/gapic/errorreporting_v1beta1/test_error_stats_service.py

+8
Original file line numberDiff line numberDiff line change
@@ -1662,6 +1662,10 @@ def test_error_stats_service_transport_channel_mtls_with_client_cert_source(
16621662
scopes=("https://www.googleapis.com/auth/cloud-platform",),
16631663
ssl_credentials=mock_ssl_cred,
16641664
quota_project_id=None,
1665+
options=[
1666+
("grpc.max_send_message_length", -1),
1667+
("grpc.max_receive_message_length", -1),
1668+
],
16651669
)
16661670
assert transport.grpc_channel == mock_grpc_channel
16671671
assert transport._ssl_channel_credentials == mock_ssl_cred
@@ -1703,6 +1707,10 @@ def test_error_stats_service_transport_channel_mtls_with_adc(transport_class):
17031707
scopes=("https://www.googleapis.com/auth/cloud-platform",),
17041708
ssl_credentials=mock_ssl_cred,
17051709
quota_project_id=None,
1710+
options=[
1711+
("grpc.max_send_message_length", -1),
1712+
("grpc.max_receive_message_length", -1),
1713+
],
17061714
)
17071715
assert transport.grpc_channel == mock_grpc_channel
17081716

tests/unit/gapic/errorreporting_v1beta1/test_report_errors_service.py

+8
Original file line numberDiff line numberDiff line change
@@ -947,6 +947,10 @@ def test_report_errors_service_transport_channel_mtls_with_client_cert_source(
947947
scopes=("https://www.googleapis.com/auth/cloud-platform",),
948948
ssl_credentials=mock_ssl_cred,
949949
quota_project_id=None,
950+
options=[
951+
("grpc.max_send_message_length", -1),
952+
("grpc.max_receive_message_length", -1),
953+
],
950954
)
951955
assert transport.grpc_channel == mock_grpc_channel
952956
assert transport._ssl_channel_credentials == mock_ssl_cred
@@ -988,6 +992,10 @@ def test_report_errors_service_transport_channel_mtls_with_adc(transport_class):
988992
scopes=("https://www.googleapis.com/auth/cloud-platform",),
989993
ssl_credentials=mock_ssl_cred,
990994
quota_project_id=None,
995+
options=[
996+
("grpc.max_send_message_length", -1),
997+
("grpc.max_receive_message_length", -1),
998+
],
991999
)
9921000
assert transport.grpc_channel == mock_grpc_channel
9931001

0 commit comments

Comments
 (0)