From 1d59efb214bb4f990a1c1e3ce5f02f3499efcb1b Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Wed, 13 Nov 2019 05:23:51 -0800 Subject: [PATCH] [CHANGE ME] Re-generated pubsub to pick up changes in the API or client library generator. --- .../cloud/pubsub_v1/gapic/publisher_client_config.py | 8 ++++---- .../cloud/pubsub_v1/gapic/subscriber_client_config.py | 10 ++++++++-- pubsub/synth.metadata | 6 +++--- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/pubsub/google/cloud/pubsub_v1/gapic/publisher_client_config.py b/pubsub/google/cloud/pubsub_v1/gapic/publisher_client_config.py index 1b8982b639b2..055b3424e6cd 100644 --- a/pubsub/google/cloud/pubsub_v1/gapic/publisher_client_config.py +++ b/pubsub/google/cloud/pubsub_v1/gapic/publisher_client_config.py @@ -31,8 +31,8 @@ "max_retry_delay_millis": 60000, "initial_rpc_timeout_millis": 5000, "rpc_timeout_multiplier": 1.3, - "max_rpc_timeout_millis": 600000, - "total_timeout_millis": 600000, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000, }, }, "methods": { @@ -51,9 +51,9 @@ "retry_codes_name": "publish", "retry_params_name": "messaging", "bundling": { - "element_count_threshold": 10, + "element_count_threshold": 100, "element_count_limit": 1000, - "request_byte_threshold": 1024, + "request_byte_threshold": 1048576, "request_byte_limit": 10485760, "delay_threshold_millis": 10, }, diff --git a/pubsub/google/cloud/pubsub_v1/gapic/subscriber_client_config.py b/pubsub/google/cloud/pubsub_v1/gapic/subscriber_client_config.py index 083a6c19a440..3955f2da1dcb 100644 --- a/pubsub/google/cloud/pubsub_v1/gapic/subscriber_client_config.py +++ b/pubsub/google/cloud/pubsub_v1/gapic/subscriber_client_config.py @@ -4,7 +4,13 @@ "retry_codes": { "idempotent": ["ABORTED", "UNAVAILABLE", "UNKNOWN"], "non_idempotent": ["UNAVAILABLE"], - "none": [], + "streaming_pull": [ + "ABORTED", + "DEADLINE_EXCEEDED", + "INTERNAL", + "RESOURCE_EXHAUSTED", + "UNAVAILABLE", + ], }, "retry_params": { "default": { @@ -78,7 +84,7 @@ }, "StreamingPull": { "timeout_millis": 900000, - "retry_codes_name": "none", + "retry_codes_name": "streaming_pull", "retry_params_name": "streaming_messaging", }, "ModifyPushConfig": { diff --git a/pubsub/synth.metadata b/pubsub/synth.metadata index 6d615c0f3310..d732bd24e76a 100644 --- a/pubsub/synth.metadata +++ b/pubsub/synth.metadata @@ -1,5 +1,5 @@ { - "updateTime": "2019-11-12T13:34:45.693013Z", + "updateTime": "2019-11-13T13:23:51.614817Z", "sources": [ { "generator": { @@ -12,8 +12,8 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "f69562be0608904932bdcfbc5ad8b9a22d9dceb8", - "internalRef": "279774957" + "sha": "88bbf96b90089994ed16208a0f38cdd07f743742", + "internalRef": "280134477" } }, {