diff --git a/google-cloud-speech/google/cloud/speech_v1/services/speech/async_client.py b/google-cloud-speech/google/cloud/speech_v1/services/speech/async_client.py index d4ab04decd80..5fea5c7263b7 100644 --- a/google-cloud-speech/google/cloud/speech_v1/services/speech/async_client.py +++ b/google-cloud-speech/google/cloud/speech_v1/services/speech/async_client.py @@ -211,7 +211,7 @@ async def recognize( maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - exceptions.ServiceUnavailable, exceptions.DeadlineExceeded, + exceptions.DeadlineExceeded, exceptions.ServiceUnavailable, ), ), default_timeout=5000.0, @@ -422,7 +422,7 @@ def streaming_recognize( maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - exceptions.ServiceUnavailable, exceptions.DeadlineExceeded, + exceptions.DeadlineExceeded, exceptions.ServiceUnavailable, ), ), default_timeout=5000.0, diff --git a/google-cloud-speech/google/cloud/speech_v1/services/speech/transports/base.py b/google-cloud-speech/google/cloud/speech_v1/services/speech/transports/base.py index c9fa2199a9c8..a4adf0805c58 100644 --- a/google-cloud-speech/google/cloud/speech_v1/services/speech/transports/base.py +++ b/google-cloud-speech/google/cloud/speech_v1/services/speech/transports/base.py @@ -113,7 +113,7 @@ def _prep_wrapped_messages(self, client_info): maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - exceptions.ServiceUnavailable, exceptions.DeadlineExceeded, + exceptions.DeadlineExceeded, exceptions.ServiceUnavailable, ), ), default_timeout=5000.0, @@ -131,7 +131,7 @@ def _prep_wrapped_messages(self, client_info): maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - exceptions.ServiceUnavailable, exceptions.DeadlineExceeded, + exceptions.DeadlineExceeded, exceptions.ServiceUnavailable, ), ), default_timeout=5000.0, diff --git a/google-cloud-speech/synth.metadata b/google-cloud-speech/synth.metadata index 20577a4a2c07..df4dfd81b91c 100644 --- a/google-cloud-speech/synth.metadata +++ b/google-cloud-speech/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/python-speech.git", - "sha": "2cdb974d102ecea7fb57b1916a8c26f000c1fa17" + "sha": "29bd581e8364558c002b2f3e74ff7605ff9d434a" } }, {