From b143f88020e135913f0cea762fe03f135427f4d4 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 14 Apr 2022 13:06:10 -0400 Subject: [PATCH] chore: use gapic-generator-python 0.65.1 (#361) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: use gapic-generator-python 0.65.1 PiperOrigin-RevId: 441524537 Source-Link: https://github.com/googleapis/googleapis/commit/2a273915b3f70fe86c9d2a75470a0b83e48d0abf Source-Link: https://github.com/googleapis/googleapis-gen/commit/ab6756a48c89b5bcb9fb73443cb8e55d574f4643 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWI2NzU2YTQ4Yzg5YjViY2I5ZmI3MzQ0M2NiOGU1NWQ1NzRmNDY0MyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot Co-authored-by: Anthonios Partheniou --- .../speech_v1/services/speech/async_client.py | 6 +- .../services/speech/transports/base.py | 6 +- .../services/speech/async_client.py | 6 +- .../services/speech/transports/base.py | 6 +- .../snippet_metadata_speech_v1.json | 258 +++- .../snippet_metadata_speech_v1p1beta1.json | 1102 ++++++++++++++++- 6 files changed, 1312 insertions(+), 72 deletions(-) diff --git a/packages/google-cloud-python-speech/google/cloud/speech_v1/services/speech/async_client.py b/packages/google-cloud-python-speech/google/cloud/speech_v1/services/speech/async_client.py index 9aa04551d398..bea3a57ec3f7 100644 --- a/packages/google-cloud-python-speech/google/cloud/speech_v1/services/speech/async_client.py +++ b/packages/google-cloud-python-speech/google/cloud/speech_v1/services/speech/async_client.py @@ -307,7 +307,8 @@ def sample_recognize(): maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.DeadlineExceeded, + core_exceptions.ServiceUnavailable, ), deadline=5000.0, ), @@ -590,7 +591,8 @@ def request_generator(): maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.DeadlineExceeded, + core_exceptions.ServiceUnavailable, ), deadline=5000.0, ), diff --git a/packages/google-cloud-python-speech/google/cloud/speech_v1/services/speech/transports/base.py b/packages/google-cloud-python-speech/google/cloud/speech_v1/services/speech/transports/base.py index 992405c91b7a..48ad8e8f84fa 100644 --- a/packages/google-cloud-python-speech/google/cloud/speech_v1/services/speech/transports/base.py +++ b/packages/google-cloud-python-speech/google/cloud/speech_v1/services/speech/transports/base.py @@ -130,7 +130,8 @@ def _prep_wrapped_messages(self, client_info): maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.DeadlineExceeded, + core_exceptions.ServiceUnavailable, ), deadline=5000.0, ), @@ -149,7 +150,8 @@ def _prep_wrapped_messages(self, client_info): maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.DeadlineExceeded, + core_exceptions.ServiceUnavailable, ), deadline=5000.0, ), diff --git a/packages/google-cloud-python-speech/google/cloud/speech_v1p1beta1/services/speech/async_client.py b/packages/google-cloud-python-speech/google/cloud/speech_v1p1beta1/services/speech/async_client.py index e11238b22618..2d02bab1944e 100644 --- a/packages/google-cloud-python-speech/google/cloud/speech_v1p1beta1/services/speech/async_client.py +++ b/packages/google-cloud-python-speech/google/cloud/speech_v1p1beta1/services/speech/async_client.py @@ -307,7 +307,8 @@ def sample_recognize(): maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.DeadlineExceeded, + core_exceptions.ServiceUnavailable, ), deadline=5000.0, ), @@ -590,7 +591,8 @@ def request_generator(): maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.DeadlineExceeded, + core_exceptions.ServiceUnavailable, ), deadline=5000.0, ), diff --git a/packages/google-cloud-python-speech/google/cloud/speech_v1p1beta1/services/speech/transports/base.py b/packages/google-cloud-python-speech/google/cloud/speech_v1p1beta1/services/speech/transports/base.py index 1a18a1971f16..439a0d5cb388 100644 --- a/packages/google-cloud-python-speech/google/cloud/speech_v1p1beta1/services/speech/transports/base.py +++ b/packages/google-cloud-python-speech/google/cloud/speech_v1p1beta1/services/speech/transports/base.py @@ -130,7 +130,8 @@ def _prep_wrapped_messages(self, client_info): maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.DeadlineExceeded, + core_exceptions.ServiceUnavailable, ), deadline=5000.0, ), @@ -149,7 +150,8 @@ def _prep_wrapped_messages(self, client_info): maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.DeadlineExceeded, + core_exceptions.ServiceUnavailable, ), deadline=5000.0, ), diff --git a/packages/google-cloud-python-speech/samples/generated_samples/snippet_metadata_speech_v1.json b/packages/google-cloud-python-speech/samples/generated_samples/snippet_metadata_speech_v1.json index 2871799e25f4..6171e66f38bb 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/snippet_metadata_speech_v1.json +++ b/packages/google-cloud-python-speech/samples/generated_samples/snippet_metadata_speech_v1.json @@ -1,16 +1,65 @@ { + "clientLibrary": { + "apis": [ + { + "id": "google.cloud.speech.v1", + "version": "v1" + } + ], + "language": "PYTHON", + "name": "google-cloud-speech" + }, "snippets": [ { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.speech_v1.SpeechAsyncClient", + "shortName": "SpeechAsyncClient" + }, + "fullName": "google.cloud.speech_v1.SpeechAsyncClient.long_running_recognize", "method": { + "fullName": "google.cloud.speech.v1.Speech.LongRunningRecognize", "service": { + "fullName": "google.cloud.speech.v1.Speech", "shortName": "Speech" }, "shortName": "LongRunningRecognize" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.speech_v1.types.LongRunningRecognizeRequest" + }, + { + "name": "config", + "type": "google.cloud.speech_v1.types.RecognitionConfig" + }, + { + "name": "audio", + "type": "google.cloud.speech_v1.types.RecognitionAudio" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation_async.AsyncOperation", + "shortName": "long_running_recognize" }, + "description": "Sample for LongRunningRecognize", "file": "speech_v1_generated_speech_long_running_recognize_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "speech_v1_generated_Speech_LongRunningRecognize_async", "segments": [ { @@ -43,18 +92,58 @@ "start": 53, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "speech_v1_generated_speech_long_running_recognize_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.speech_v1.SpeechClient", + "shortName": "SpeechClient" + }, + "fullName": "google.cloud.speech_v1.SpeechClient.long_running_recognize", "method": { + "fullName": "google.cloud.speech.v1.Speech.LongRunningRecognize", "service": { + "fullName": "google.cloud.speech.v1.Speech", "shortName": "Speech" }, "shortName": "LongRunningRecognize" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.speech_v1.types.LongRunningRecognizeRequest" + }, + { + "name": "config", + "type": "google.cloud.speech_v1.types.RecognitionConfig" + }, + { + "name": "audio", + "type": "google.cloud.speech_v1.types.RecognitionAudio" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation.Operation", + "shortName": "long_running_recognize" }, + "description": "Sample for LongRunningRecognize", "file": "speech_v1_generated_speech_long_running_recognize_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "speech_v1_generated_Speech_LongRunningRecognize_sync", "segments": [ { @@ -87,19 +176,59 @@ "start": 53, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "speech_v1_generated_speech_long_running_recognize_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.speech_v1.SpeechAsyncClient", + "shortName": "SpeechAsyncClient" + }, + "fullName": "google.cloud.speech_v1.SpeechAsyncClient.recognize", "method": { + "fullName": "google.cloud.speech.v1.Speech.Recognize", "service": { + "fullName": "google.cloud.speech.v1.Speech", "shortName": "Speech" }, "shortName": "Recognize" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.speech_v1.types.RecognizeRequest" + }, + { + "name": "config", + "type": "google.cloud.speech_v1.types.RecognitionConfig" + }, + { + "name": "audio", + "type": "google.cloud.speech_v1.types.RecognitionAudio" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.speech_v1.types.RecognizeResponse", + "shortName": "recognize" }, + "description": "Sample for Recognize", "file": "speech_v1_generated_speech_recognize_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "speech_v1_generated_Speech_Recognize_async", "segments": [ { @@ -132,18 +261,58 @@ "start": 49, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "speech_v1_generated_speech_recognize_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.speech_v1.SpeechClient", + "shortName": "SpeechClient" + }, + "fullName": "google.cloud.speech_v1.SpeechClient.recognize", "method": { + "fullName": "google.cloud.speech.v1.Speech.Recognize", "service": { + "fullName": "google.cloud.speech.v1.Speech", "shortName": "Speech" }, "shortName": "Recognize" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.speech_v1.types.RecognizeRequest" + }, + { + "name": "config", + "type": "google.cloud.speech_v1.types.RecognitionConfig" + }, + { + "name": "audio", + "type": "google.cloud.speech_v1.types.RecognitionAudio" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.speech_v1.types.RecognizeResponse", + "shortName": "recognize" }, + "description": "Sample for Recognize", "file": "speech_v1_generated_speech_recognize_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "speech_v1_generated_Speech_Recognize_sync", "segments": [ { @@ -176,19 +345,51 @@ "start": 49, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "speech_v1_generated_speech_recognize_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.speech_v1.SpeechAsyncClient", + "shortName": "SpeechAsyncClient" + }, + "fullName": "google.cloud.speech_v1.SpeechAsyncClient.streaming_recognize", "method": { + "fullName": "google.cloud.speech.v1.Speech.StreamingRecognize", "service": { + "fullName": "google.cloud.speech.v1.Speech", "shortName": "Speech" }, "shortName": "StreamingRecognize" - } + }, + "parameters": [ + { + "name": "requests", + "type": "Iterator[google.cloud.speech_v1.types.StreamingRecognizeRequest]" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "Iterable[google.cloud.speech_v1.types.StreamingRecognizeResponse]", + "shortName": "streaming_recognize" }, + "description": "Sample for StreamingRecognize", "file": "speech_v1_generated_speech_streaming_recognize_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "speech_v1_generated_Speech_StreamingRecognize_async", "segments": [ { @@ -221,18 +422,50 @@ "start": 55, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "speech_v1_generated_speech_streaming_recognize_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.speech_v1.SpeechClient", + "shortName": "SpeechClient" + }, + "fullName": "google.cloud.speech_v1.SpeechClient.streaming_recognize", "method": { + "fullName": "google.cloud.speech.v1.Speech.StreamingRecognize", "service": { + "fullName": "google.cloud.speech.v1.Speech", "shortName": "Speech" }, "shortName": "StreamingRecognize" - } + }, + "parameters": [ + { + "name": "requests", + "type": "Iterator[google.cloud.speech_v1.types.StreamingRecognizeRequest]" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "Iterable[google.cloud.speech_v1.types.StreamingRecognizeResponse]", + "shortName": "streaming_recognize" }, + "description": "Sample for StreamingRecognize", "file": "speech_v1_generated_speech_streaming_recognize_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "speech_v1_generated_Speech_StreamingRecognize_sync", "segments": [ { @@ -265,7 +498,8 @@ "start": 55, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "speech_v1_generated_speech_streaming_recognize_sync.py" } ] } diff --git a/packages/google-cloud-python-speech/samples/generated_samples/snippet_metadata_speech_v1p1beta1.json b/packages/google-cloud-python-speech/samples/generated_samples/snippet_metadata_speech_v1p1beta1.json index 76518ffb3c99..e3efb2c67d61 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/snippet_metadata_speech_v1p1beta1.json +++ b/packages/google-cloud-python-speech/samples/generated_samples/snippet_metadata_speech_v1p1beta1.json @@ -1,16 +1,69 @@ { + "clientLibrary": { + "apis": [ + { + "id": "google.cloud.speech.v1p1beta1", + "version": "v1p1beta1" + } + ], + "language": "PYTHON", + "name": "google-cloud-speech" + }, "snippets": [ { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.speech_v1p1beta1.AdaptationAsyncClient", + "shortName": "AdaptationAsyncClient" + }, + "fullName": "google.cloud.speech_v1p1beta1.AdaptationAsyncClient.create_custom_class", "method": { + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.CreateCustomClass", "service": { + "fullName": "google.cloud.speech.v1p1beta1.Adaptation", "shortName": "Adaptation" }, "shortName": "CreateCustomClass" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.speech_v1p1beta1.types.CreateCustomClassRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "custom_class", + "type": "google.cloud.speech_v1p1beta1.types.CustomClass" + }, + { + "name": "custom_class_id", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.speech_v1p1beta1.types.CustomClass", + "shortName": "create_custom_class" }, + "description": "Sample for CreateCustomClass", "file": "speech_v1p1beta1_generated_adaptation_create_custom_class_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "speech_v1p1beta1_generated_Adaptation_CreateCustomClass_async", "segments": [ { @@ -43,18 +96,62 @@ "start": 43, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "speech_v1p1beta1_generated_adaptation_create_custom_class_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.speech_v1p1beta1.AdaptationClient", + "shortName": "AdaptationClient" + }, + "fullName": "google.cloud.speech_v1p1beta1.AdaptationClient.create_custom_class", "method": { + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.CreateCustomClass", "service": { + "fullName": "google.cloud.speech.v1p1beta1.Adaptation", "shortName": "Adaptation" }, "shortName": "CreateCustomClass" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.speech_v1p1beta1.types.CreateCustomClassRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "custom_class", + "type": "google.cloud.speech_v1p1beta1.types.CustomClass" + }, + { + "name": "custom_class_id", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.speech_v1p1beta1.types.CustomClass", + "shortName": "create_custom_class" }, + "description": "Sample for CreateCustomClass", "file": "speech_v1p1beta1_generated_adaptation_create_custom_class_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "speech_v1p1beta1_generated_Adaptation_CreateCustomClass_sync", "segments": [ { @@ -87,19 +184,63 @@ "start": 43, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "speech_v1p1beta1_generated_adaptation_create_custom_class_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.speech_v1p1beta1.AdaptationAsyncClient", + "shortName": "AdaptationAsyncClient" + }, + "fullName": "google.cloud.speech_v1p1beta1.AdaptationAsyncClient.create_phrase_set", "method": { + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.CreatePhraseSet", "service": { + "fullName": "google.cloud.speech.v1p1beta1.Adaptation", "shortName": "Adaptation" }, "shortName": "CreatePhraseSet" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.speech_v1p1beta1.types.CreatePhraseSetRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "phrase_set", + "type": "google.cloud.speech_v1p1beta1.types.PhraseSet" + }, + { + "name": "phrase_set_id", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.speech_v1p1beta1.types.PhraseSet", + "shortName": "create_phrase_set" }, + "description": "Sample for CreatePhraseSet", "file": "speech_v1p1beta1_generated_adaptation_create_phrase_set_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "speech_v1p1beta1_generated_Adaptation_CreatePhraseSet_async", "segments": [ { @@ -132,18 +273,62 @@ "start": 43, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "speech_v1p1beta1_generated_adaptation_create_phrase_set_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.speech_v1p1beta1.AdaptationClient", + "shortName": "AdaptationClient" + }, + "fullName": "google.cloud.speech_v1p1beta1.AdaptationClient.create_phrase_set", "method": { + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.CreatePhraseSet", "service": { + "fullName": "google.cloud.speech.v1p1beta1.Adaptation", "shortName": "Adaptation" }, "shortName": "CreatePhraseSet" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.speech_v1p1beta1.types.CreatePhraseSetRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "phrase_set", + "type": "google.cloud.speech_v1p1beta1.types.PhraseSet" + }, + { + "name": "phrase_set_id", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.speech_v1p1beta1.types.PhraseSet", + "shortName": "create_phrase_set" }, + "description": "Sample for CreatePhraseSet", "file": "speech_v1p1beta1_generated_adaptation_create_phrase_set_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "speech_v1p1beta1_generated_Adaptation_CreatePhraseSet_sync", "segments": [ { @@ -176,19 +361,54 @@ "start": 43, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "speech_v1p1beta1_generated_adaptation_create_phrase_set_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.speech_v1p1beta1.AdaptationAsyncClient", + "shortName": "AdaptationAsyncClient" + }, + "fullName": "google.cloud.speech_v1p1beta1.AdaptationAsyncClient.delete_custom_class", "method": { + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.DeleteCustomClass", "service": { + "fullName": "google.cloud.speech.v1p1beta1.Adaptation", "shortName": "Adaptation" }, "shortName": "DeleteCustomClass" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.speech_v1p1beta1.types.DeleteCustomClassRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "shortName": "delete_custom_class" }, + "description": "Sample for DeleteCustomClass", "file": "speech_v1p1beta1_generated_adaptation_delete_custom_class_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "speech_v1p1beta1_generated_Adaptation_DeleteCustomClass_async", "segments": [ { @@ -219,18 +439,53 @@ "end": 43, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "speech_v1p1beta1_generated_adaptation_delete_custom_class_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.speech_v1p1beta1.AdaptationClient", + "shortName": "AdaptationClient" + }, + "fullName": "google.cloud.speech_v1p1beta1.AdaptationClient.delete_custom_class", "method": { + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.DeleteCustomClass", "service": { + "fullName": "google.cloud.speech.v1p1beta1.Adaptation", "shortName": "Adaptation" }, "shortName": "DeleteCustomClass" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.speech_v1p1beta1.types.DeleteCustomClassRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "shortName": "delete_custom_class" }, + "description": "Sample for DeleteCustomClass", "file": "speech_v1p1beta1_generated_adaptation_delete_custom_class_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "speech_v1p1beta1_generated_Adaptation_DeleteCustomClass_sync", "segments": [ { @@ -261,19 +516,54 @@ "end": 43, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "speech_v1p1beta1_generated_adaptation_delete_custom_class_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.speech_v1p1beta1.AdaptationAsyncClient", + "shortName": "AdaptationAsyncClient" + }, + "fullName": "google.cloud.speech_v1p1beta1.AdaptationAsyncClient.delete_phrase_set", "method": { + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.DeletePhraseSet", "service": { + "fullName": "google.cloud.speech.v1p1beta1.Adaptation", "shortName": "Adaptation" }, "shortName": "DeletePhraseSet" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.speech_v1p1beta1.types.DeletePhraseSetRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "shortName": "delete_phrase_set" }, + "description": "Sample for DeletePhraseSet", "file": "speech_v1p1beta1_generated_adaptation_delete_phrase_set_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "speech_v1p1beta1_generated_Adaptation_DeletePhraseSet_async", "segments": [ { @@ -304,18 +594,53 @@ "end": 43, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "speech_v1p1beta1_generated_adaptation_delete_phrase_set_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.speech_v1p1beta1.AdaptationClient", + "shortName": "AdaptationClient" + }, + "fullName": "google.cloud.speech_v1p1beta1.AdaptationClient.delete_phrase_set", "method": { + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.DeletePhraseSet", "service": { + "fullName": "google.cloud.speech.v1p1beta1.Adaptation", "shortName": "Adaptation" }, "shortName": "DeletePhraseSet" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.speech_v1p1beta1.types.DeletePhraseSetRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "shortName": "delete_phrase_set" }, + "description": "Sample for DeletePhraseSet", "file": "speech_v1p1beta1_generated_adaptation_delete_phrase_set_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "speech_v1p1beta1_generated_Adaptation_DeletePhraseSet_sync", "segments": [ { @@ -346,19 +671,55 @@ "end": 43, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "speech_v1p1beta1_generated_adaptation_delete_phrase_set_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.speech_v1p1beta1.AdaptationAsyncClient", + "shortName": "AdaptationAsyncClient" + }, + "fullName": "google.cloud.speech_v1p1beta1.AdaptationAsyncClient.get_custom_class", "method": { + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.GetCustomClass", "service": { + "fullName": "google.cloud.speech.v1p1beta1.Adaptation", "shortName": "Adaptation" }, "shortName": "GetCustomClass" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.speech_v1p1beta1.types.GetCustomClassRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.speech_v1p1beta1.types.CustomClass", + "shortName": "get_custom_class" }, + "description": "Sample for GetCustomClass", "file": "speech_v1p1beta1_generated_adaptation_get_custom_class_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "speech_v1p1beta1_generated_Adaptation_GetCustomClass_async", "segments": [ { @@ -391,18 +752,54 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "speech_v1p1beta1_generated_adaptation_get_custom_class_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.speech_v1p1beta1.AdaptationClient", + "shortName": "AdaptationClient" + }, + "fullName": "google.cloud.speech_v1p1beta1.AdaptationClient.get_custom_class", "method": { + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.GetCustomClass", "service": { + "fullName": "google.cloud.speech.v1p1beta1.Adaptation", "shortName": "Adaptation" }, "shortName": "GetCustomClass" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.speech_v1p1beta1.types.GetCustomClassRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.speech_v1p1beta1.types.CustomClass", + "shortName": "get_custom_class" }, + "description": "Sample for GetCustomClass", "file": "speech_v1p1beta1_generated_adaptation_get_custom_class_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "speech_v1p1beta1_generated_Adaptation_GetCustomClass_sync", "segments": [ { @@ -435,19 +832,55 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "speech_v1p1beta1_generated_adaptation_get_custom_class_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.speech_v1p1beta1.AdaptationAsyncClient", + "shortName": "AdaptationAsyncClient" + }, + "fullName": "google.cloud.speech_v1p1beta1.AdaptationAsyncClient.get_phrase_set", "method": { + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.GetPhraseSet", "service": { + "fullName": "google.cloud.speech.v1p1beta1.Adaptation", "shortName": "Adaptation" }, "shortName": "GetPhraseSet" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.speech_v1p1beta1.types.GetPhraseSetRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.speech_v1p1beta1.types.PhraseSet", + "shortName": "get_phrase_set" }, + "description": "Sample for GetPhraseSet", "file": "speech_v1p1beta1_generated_adaptation_get_phrase_set_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "speech_v1p1beta1_generated_Adaptation_GetPhraseSet_async", "segments": [ { @@ -480,18 +913,54 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "speech_v1p1beta1_generated_adaptation_get_phrase_set_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.speech_v1p1beta1.AdaptationClient", + "shortName": "AdaptationClient" + }, + "fullName": "google.cloud.speech_v1p1beta1.AdaptationClient.get_phrase_set", "method": { + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.GetPhraseSet", "service": { + "fullName": "google.cloud.speech.v1p1beta1.Adaptation", "shortName": "Adaptation" }, "shortName": "GetPhraseSet" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.speech_v1p1beta1.types.GetPhraseSetRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.speech_v1p1beta1.types.PhraseSet", + "shortName": "get_phrase_set" }, + "description": "Sample for GetPhraseSet", "file": "speech_v1p1beta1_generated_adaptation_get_phrase_set_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "speech_v1p1beta1_generated_Adaptation_GetPhraseSet_sync", "segments": [ { @@ -524,19 +993,55 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "speech_v1p1beta1_generated_adaptation_get_phrase_set_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.speech_v1p1beta1.AdaptationAsyncClient", + "shortName": "AdaptationAsyncClient" + }, + "fullName": "google.cloud.speech_v1p1beta1.AdaptationAsyncClient.list_custom_classes", "method": { + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.ListCustomClasses", "service": { + "fullName": "google.cloud.speech.v1p1beta1.Adaptation", "shortName": "Adaptation" }, "shortName": "ListCustomClasses" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.speech_v1p1beta1.types.ListCustomClassesRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.speech_v1p1beta1.services.adaptation.pagers.ListCustomClassesAsyncPager", + "shortName": "list_custom_classes" }, + "description": "Sample for ListCustomClasses", "file": "speech_v1p1beta1_generated_adaptation_list_custom_classes_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "speech_v1p1beta1_generated_Adaptation_ListCustomClasses_async", "segments": [ { @@ -569,18 +1074,54 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "speech_v1p1beta1_generated_adaptation_list_custom_classes_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.speech_v1p1beta1.AdaptationClient", + "shortName": "AdaptationClient" + }, + "fullName": "google.cloud.speech_v1p1beta1.AdaptationClient.list_custom_classes", "method": { + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.ListCustomClasses", "service": { + "fullName": "google.cloud.speech.v1p1beta1.Adaptation", "shortName": "Adaptation" }, "shortName": "ListCustomClasses" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.speech_v1p1beta1.types.ListCustomClassesRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.speech_v1p1beta1.services.adaptation.pagers.ListCustomClassesPager", + "shortName": "list_custom_classes" }, + "description": "Sample for ListCustomClasses", "file": "speech_v1p1beta1_generated_adaptation_list_custom_classes_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "speech_v1p1beta1_generated_Adaptation_ListCustomClasses_sync", "segments": [ { @@ -613,19 +1154,55 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "speech_v1p1beta1_generated_adaptation_list_custom_classes_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.speech_v1p1beta1.AdaptationAsyncClient", + "shortName": "AdaptationAsyncClient" + }, + "fullName": "google.cloud.speech_v1p1beta1.AdaptationAsyncClient.list_phrase_set", "method": { + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.ListPhraseSet", "service": { + "fullName": "google.cloud.speech.v1p1beta1.Adaptation", "shortName": "Adaptation" }, "shortName": "ListPhraseSet" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.speech_v1p1beta1.types.ListPhraseSetRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.speech_v1p1beta1.services.adaptation.pagers.ListPhraseSetAsyncPager", + "shortName": "list_phrase_set" }, + "description": "Sample for ListPhraseSet", "file": "speech_v1p1beta1_generated_adaptation_list_phrase_set_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "speech_v1p1beta1_generated_Adaptation_ListPhraseSet_async", "segments": [ { @@ -658,18 +1235,54 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "speech_v1p1beta1_generated_adaptation_list_phrase_set_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.speech_v1p1beta1.AdaptationClient", + "shortName": "AdaptationClient" + }, + "fullName": "google.cloud.speech_v1p1beta1.AdaptationClient.list_phrase_set", "method": { + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.ListPhraseSet", "service": { + "fullName": "google.cloud.speech.v1p1beta1.Adaptation", "shortName": "Adaptation" }, "shortName": "ListPhraseSet" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.speech_v1p1beta1.types.ListPhraseSetRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.speech_v1p1beta1.services.adaptation.pagers.ListPhraseSetPager", + "shortName": "list_phrase_set" }, + "description": "Sample for ListPhraseSet", "file": "speech_v1p1beta1_generated_adaptation_list_phrase_set_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "speech_v1p1beta1_generated_Adaptation_ListPhraseSet_sync", "segments": [ { @@ -702,19 +1315,59 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "speech_v1p1beta1_generated_adaptation_list_phrase_set_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.speech_v1p1beta1.AdaptationAsyncClient", + "shortName": "AdaptationAsyncClient" + }, + "fullName": "google.cloud.speech_v1p1beta1.AdaptationAsyncClient.update_custom_class", "method": { + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.UpdateCustomClass", "service": { + "fullName": "google.cloud.speech.v1p1beta1.Adaptation", "shortName": "Adaptation" }, "shortName": "UpdateCustomClass" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.speech_v1p1beta1.types.UpdateCustomClassRequest" + }, + { + "name": "custom_class", + "type": "google.cloud.speech_v1p1beta1.types.CustomClass" + }, + { + "name": "update_mask", + "type": "google.protobuf.field_mask_pb2.FieldMask" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.speech_v1p1beta1.types.CustomClass", + "shortName": "update_custom_class" }, + "description": "Sample for UpdateCustomClass", "file": "speech_v1p1beta1_generated_adaptation_update_custom_class_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "speech_v1p1beta1_generated_Adaptation_UpdateCustomClass_async", "segments": [ { @@ -747,18 +1400,58 @@ "start": 41, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "speech_v1p1beta1_generated_adaptation_update_custom_class_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.speech_v1p1beta1.AdaptationClient", + "shortName": "AdaptationClient" + }, + "fullName": "google.cloud.speech_v1p1beta1.AdaptationClient.update_custom_class", "method": { + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.UpdateCustomClass", "service": { + "fullName": "google.cloud.speech.v1p1beta1.Adaptation", "shortName": "Adaptation" }, "shortName": "UpdateCustomClass" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.speech_v1p1beta1.types.UpdateCustomClassRequest" + }, + { + "name": "custom_class", + "type": "google.cloud.speech_v1p1beta1.types.CustomClass" + }, + { + "name": "update_mask", + "type": "google.protobuf.field_mask_pb2.FieldMask" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.speech_v1p1beta1.types.CustomClass", + "shortName": "update_custom_class" }, + "description": "Sample for UpdateCustomClass", "file": "speech_v1p1beta1_generated_adaptation_update_custom_class_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "speech_v1p1beta1_generated_Adaptation_UpdateCustomClass_sync", "segments": [ { @@ -791,19 +1484,59 @@ "start": 41, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "speech_v1p1beta1_generated_adaptation_update_custom_class_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.speech_v1p1beta1.AdaptationAsyncClient", + "shortName": "AdaptationAsyncClient" + }, + "fullName": "google.cloud.speech_v1p1beta1.AdaptationAsyncClient.update_phrase_set", "method": { + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.UpdatePhraseSet", "service": { + "fullName": "google.cloud.speech.v1p1beta1.Adaptation", "shortName": "Adaptation" }, "shortName": "UpdatePhraseSet" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.speech_v1p1beta1.types.UpdatePhraseSetRequest" + }, + { + "name": "phrase_set", + "type": "google.cloud.speech_v1p1beta1.types.PhraseSet" + }, + { + "name": "update_mask", + "type": "google.protobuf.field_mask_pb2.FieldMask" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.speech_v1p1beta1.types.PhraseSet", + "shortName": "update_phrase_set" }, + "description": "Sample for UpdatePhraseSet", "file": "speech_v1p1beta1_generated_adaptation_update_phrase_set_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "speech_v1p1beta1_generated_Adaptation_UpdatePhraseSet_async", "segments": [ { @@ -836,18 +1569,58 @@ "start": 41, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "speech_v1p1beta1_generated_adaptation_update_phrase_set_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.speech_v1p1beta1.AdaptationClient", + "shortName": "AdaptationClient" + }, + "fullName": "google.cloud.speech_v1p1beta1.AdaptationClient.update_phrase_set", "method": { + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.UpdatePhraseSet", "service": { + "fullName": "google.cloud.speech.v1p1beta1.Adaptation", "shortName": "Adaptation" }, "shortName": "UpdatePhraseSet" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.speech_v1p1beta1.types.UpdatePhraseSetRequest" + }, + { + "name": "phrase_set", + "type": "google.cloud.speech_v1p1beta1.types.PhraseSet" + }, + { + "name": "update_mask", + "type": "google.protobuf.field_mask_pb2.FieldMask" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.speech_v1p1beta1.types.PhraseSet", + "shortName": "update_phrase_set" }, + "description": "Sample for UpdatePhraseSet", "file": "speech_v1p1beta1_generated_adaptation_update_phrase_set_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "speech_v1p1beta1_generated_Adaptation_UpdatePhraseSet_sync", "segments": [ { @@ -880,19 +1653,59 @@ "start": 41, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "speech_v1p1beta1_generated_adaptation_update_phrase_set_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.speech_v1p1beta1.SpeechAsyncClient", + "shortName": "SpeechAsyncClient" + }, + "fullName": "google.cloud.speech_v1p1beta1.SpeechAsyncClient.long_running_recognize", "method": { + "fullName": "google.cloud.speech.v1p1beta1.Speech.LongRunningRecognize", "service": { + "fullName": "google.cloud.speech.v1p1beta1.Speech", "shortName": "Speech" }, "shortName": "LongRunningRecognize" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.speech_v1p1beta1.types.LongRunningRecognizeRequest" + }, + { + "name": "config", + "type": "google.cloud.speech_v1p1beta1.types.RecognitionConfig" + }, + { + "name": "audio", + "type": "google.cloud.speech_v1p1beta1.types.RecognitionAudio" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation_async.AsyncOperation", + "shortName": "long_running_recognize" }, + "description": "Sample for LongRunningRecognize", "file": "speech_v1p1beta1_generated_speech_long_running_recognize_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "speech_v1p1beta1_generated_Speech_LongRunningRecognize_async", "segments": [ { @@ -925,18 +1738,58 @@ "start": 53, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "speech_v1p1beta1_generated_speech_long_running_recognize_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.speech_v1p1beta1.SpeechClient", + "shortName": "SpeechClient" + }, + "fullName": "google.cloud.speech_v1p1beta1.SpeechClient.long_running_recognize", "method": { + "fullName": "google.cloud.speech.v1p1beta1.Speech.LongRunningRecognize", "service": { + "fullName": "google.cloud.speech.v1p1beta1.Speech", "shortName": "Speech" }, "shortName": "LongRunningRecognize" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.speech_v1p1beta1.types.LongRunningRecognizeRequest" + }, + { + "name": "config", + "type": "google.cloud.speech_v1p1beta1.types.RecognitionConfig" + }, + { + "name": "audio", + "type": "google.cloud.speech_v1p1beta1.types.RecognitionAudio" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation.Operation", + "shortName": "long_running_recognize" }, + "description": "Sample for LongRunningRecognize", "file": "speech_v1p1beta1_generated_speech_long_running_recognize_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "speech_v1p1beta1_generated_Speech_LongRunningRecognize_sync", "segments": [ { @@ -969,19 +1822,59 @@ "start": 53, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "speech_v1p1beta1_generated_speech_long_running_recognize_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.speech_v1p1beta1.SpeechAsyncClient", + "shortName": "SpeechAsyncClient" + }, + "fullName": "google.cloud.speech_v1p1beta1.SpeechAsyncClient.recognize", "method": { + "fullName": "google.cloud.speech.v1p1beta1.Speech.Recognize", "service": { + "fullName": "google.cloud.speech.v1p1beta1.Speech", "shortName": "Speech" }, "shortName": "Recognize" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.speech_v1p1beta1.types.RecognizeRequest" + }, + { + "name": "config", + "type": "google.cloud.speech_v1p1beta1.types.RecognitionConfig" + }, + { + "name": "audio", + "type": "google.cloud.speech_v1p1beta1.types.RecognitionAudio" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.speech_v1p1beta1.types.RecognizeResponse", + "shortName": "recognize" }, + "description": "Sample for Recognize", "file": "speech_v1p1beta1_generated_speech_recognize_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "speech_v1p1beta1_generated_Speech_Recognize_async", "segments": [ { @@ -1014,18 +1907,58 @@ "start": 49, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "speech_v1p1beta1_generated_speech_recognize_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.speech_v1p1beta1.SpeechClient", + "shortName": "SpeechClient" + }, + "fullName": "google.cloud.speech_v1p1beta1.SpeechClient.recognize", "method": { + "fullName": "google.cloud.speech.v1p1beta1.Speech.Recognize", "service": { + "fullName": "google.cloud.speech.v1p1beta1.Speech", "shortName": "Speech" }, "shortName": "Recognize" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.speech_v1p1beta1.types.RecognizeRequest" + }, + { + "name": "config", + "type": "google.cloud.speech_v1p1beta1.types.RecognitionConfig" + }, + { + "name": "audio", + "type": "google.cloud.speech_v1p1beta1.types.RecognitionAudio" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.speech_v1p1beta1.types.RecognizeResponse", + "shortName": "recognize" }, + "description": "Sample for Recognize", "file": "speech_v1p1beta1_generated_speech_recognize_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "speech_v1p1beta1_generated_Speech_Recognize_sync", "segments": [ { @@ -1058,19 +1991,51 @@ "start": 49, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "speech_v1p1beta1_generated_speech_recognize_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.speech_v1p1beta1.SpeechAsyncClient", + "shortName": "SpeechAsyncClient" + }, + "fullName": "google.cloud.speech_v1p1beta1.SpeechAsyncClient.streaming_recognize", "method": { + "fullName": "google.cloud.speech.v1p1beta1.Speech.StreamingRecognize", "service": { + "fullName": "google.cloud.speech.v1p1beta1.Speech", "shortName": "Speech" }, "shortName": "StreamingRecognize" - } + }, + "parameters": [ + { + "name": "requests", + "type": "Iterator[google.cloud.speech_v1p1beta1.types.StreamingRecognizeRequest]" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "Iterable[google.cloud.speech_v1p1beta1.types.StreamingRecognizeResponse]", + "shortName": "streaming_recognize" }, + "description": "Sample for StreamingRecognize", "file": "speech_v1p1beta1_generated_speech_streaming_recognize_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "speech_v1p1beta1_generated_Speech_StreamingRecognize_async", "segments": [ { @@ -1103,18 +2068,50 @@ "start": 55, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "speech_v1p1beta1_generated_speech_streaming_recognize_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.speech_v1p1beta1.SpeechClient", + "shortName": "SpeechClient" + }, + "fullName": "google.cloud.speech_v1p1beta1.SpeechClient.streaming_recognize", "method": { + "fullName": "google.cloud.speech.v1p1beta1.Speech.StreamingRecognize", "service": { + "fullName": "google.cloud.speech.v1p1beta1.Speech", "shortName": "Speech" }, "shortName": "StreamingRecognize" - } + }, + "parameters": [ + { + "name": "requests", + "type": "Iterator[google.cloud.speech_v1p1beta1.types.StreamingRecognizeRequest]" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "Iterable[google.cloud.speech_v1p1beta1.types.StreamingRecognizeResponse]", + "shortName": "streaming_recognize" }, + "description": "Sample for StreamingRecognize", "file": "speech_v1p1beta1_generated_speech_streaming_recognize_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "speech_v1p1beta1_generated_Speech_StreamingRecognize_sync", "segments": [ { @@ -1147,7 +2144,8 @@ "start": 55, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "speech_v1p1beta1_generated_speech_streaming_recognize_sync.py" } ] }