From a985eeda90ae98e8519d2320bee4dec148eb8ccb Mon Sep 17 00:00:00 2001 From: Google APIs Date: Wed, 18 Dec 2019 07:55:13 -0800 Subject: [PATCH] Add default retry configurations for speech_v1p1beta1. Settings are copied from speech_gapic.legacy.yaml. The Python client library is being generated with timeouts that are too low. See https://github.com/GoogleCloudPlatform/python-docs-samples/issues/2578 PiperOrigin-RevId: 286191318 --- google/cloud/speech/v1p1beta1/speech_gapic.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/google/cloud/speech/v1p1beta1/speech_gapic.yaml b/google/cloud/speech/v1p1beta1/speech_gapic.yaml index 1d8a2e22..4ac56577 100644 --- a/google/cloud/speech/v1p1beta1/speech_gapic.yaml +++ b/google/cloud/speech/v1p1beta1/speech_gapic.yaml @@ -25,6 +25,15 @@ interfaces: - config.sample_rate_hertz=44100 - config.encoding=FLAC - audio.uri="gs://cloud-samples-data/speech/brooklyn_bridge.flac" + retry_params_def: + - name: default + initial_retry_delay_millis: 100 + retry_delay_multiplier: 1.3 + max_retry_delay_millis: 60000 + initial_rpc_timeout_millis: 1000000 + rpc_timeout_multiplier: 1 + max_rpc_timeout_millis: 1000000 + total_timeout_millis: 5000000 methods: - name: Recognize sample_code_init_fields: