From 15ca4d95f8be4f17e5b2b8c8e49fb9f513afeb09 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 6 Aug 2019 11:07:24 -0700 Subject: [PATCH] Remove send/recv msg size limit (via synth). (#8977) --- .../web_risk_service_v1_beta1_grpc_transport.py | 9 ++++++++- .../gapic/web_risk_service_v1_beta1_client.py | 12 ++++++------ packages/google-cloud-webrisk/synth.metadata | 10 +++++----- 3 files changed, 19 insertions(+), 12 deletions(-) diff --git a/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/gapic/transports/web_risk_service_v1_beta1_grpc_transport.py b/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/gapic/transports/web_risk_service_v1_beta1_grpc_transport.py index 80b0e1c4f5fa..773c0afc9601 100644 --- a/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/gapic/transports/web_risk_service_v1_beta1_grpc_transport.py +++ b/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/gapic/transports/web_risk_service_v1_beta1_grpc_transport.py @@ -58,7 +58,14 @@ def __init__( # Create the channel. if channel is None: - channel = self.create_channel(address=address, credentials=credentials) + channel = self.create_channel( + address=address, + credentials=credentials, + options={ + "grpc.max_send_message_length": -1, + "grpc.max_receive_message_length": -1, + }.items(), + ) self._channel = channel diff --git a/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/gapic/web_risk_service_v1_beta1_client.py b/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/gapic/web_risk_service_v1_beta1_client.py index 64705a4c5cc7..93cefba2b5d1 100644 --- a/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/gapic/web_risk_service_v1_beta1_client.py +++ b/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/gapic/web_risk_service_v1_beta1_client.py @@ -220,8 +220,8 @@ def compute_threat_list_diff( version_token (bytes): The current version token of the client for the requested list (the client version that was received from the last successful diff). retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. + to retry requests. If ``None`` is specified, requests will + be retried using a default configuration. timeout (Optional[float]): The amount of time, in seconds, to wait for the request to complete. Note that if ``retry`` is specified, the timeout applies to each individual attempt. @@ -287,8 +287,8 @@ def search_uris( uri (str): The URI to be checked for matches. threat_types (list[~google.cloud.webrisk_v1beta1.types.ThreatType]): Required. The ThreatLists to search in. retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. + to retry requests. If ``None`` is specified, requests will + be retried using a default configuration. timeout (Optional[float]): The amount of time, in seconds, to wait for the request to complete. Note that if ``retry`` is specified, the timeout applies to each individual attempt. @@ -348,8 +348,8 @@ def search_hashes( hash. For JSON requests, this field is base64-encoded. threat_types (list[~google.cloud.webrisk_v1beta1.types.ThreatType]): Required. The ThreatLists to search in. retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. + to retry requests. If ``None`` is specified, requests will + be retried using a default configuration. timeout (Optional[float]): The amount of time, in seconds, to wait for the request to complete. Note that if ``retry`` is specified, the timeout applies to each individual attempt. diff --git a/packages/google-cloud-webrisk/synth.metadata b/packages/google-cloud-webrisk/synth.metadata index 743fc638cdcc..c5119433795c 100644 --- a/packages/google-cloud-webrisk/synth.metadata +++ b/packages/google-cloud-webrisk/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-06-28T12:45:14.902407Z", + "updateTime": "2019-08-06T12:51:28.182890Z", "sources": [ { "generator": { "name": "artman", - "version": "0.29.2", - "dockerImage": "googleapis/artman@sha256:45263333b058a4b3c26a8b7680a2710f43eae3d250f791a6cb66423991dcb2df" + "version": "0.32.1", + "dockerImage": "googleapis/artman@sha256:a684d40ba9a4e15946f5f2ca6b4bd9fe301192f522e9de4fff622118775f309b" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "84c8ad4e52f8eec8f08a60636cfa597b86969b5c", - "internalRef": "255474859" + "sha": "e699b0cba64ffddfae39633417180f1f65875896", + "internalRef": "261759677" } }, {