diff --git a/packages/google-cloud-node/samples/generated/v1/snippet_metadata.google.cloud.speech.v1.json b/packages/google-cloud-node/samples/generated/v1/snippet_metadata.google.cloud.speech.v1.json index fcfa8b4e9da2..0e132bd1329d 100644 --- a/packages/google-cloud-node/samples/generated/v1/snippet_metadata.google.cloud.speech.v1.json +++ b/packages/google-cloud-node/samples/generated/v1/snippet_metadata.google.cloud.speech.v1.json @@ -1,151 +1,151 @@ { - "clientLibrary": { - "name": "nodejs-speech", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.speech.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "speech_v1_generated_Speech_Recognize_async", - "title": "Speech recognize Sample", - "origin": "API_DEFINITION", - "description": " Performs synchronous speech recognition: receive results after all audio has been sent and processed.", - "canonical": true, - "file": "speech.recognize.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Recognize", - "fullName": "google.cloud.speech.v1.Speech.Recognize", - "async": true, - "parameters": [ - { - "name": "config", - "type": ".google.cloud.speech.v1.RecognitionConfig" - }, - { - "name": "audio", - "type": ".google.cloud.speech.v1.RecognitionAudio" - } - ], - "resultType": ".google.cloud.speech.v1.RecognizeResponse", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v1.SpeechClient" - }, - "method": { - "shortName": "Recognize", - "fullName": "google.cloud.speech.v1.Speech.Recognize", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v1.Speech" - } - } - } + "clientLibrary": { + "name": "nodejs-speech", + "version": "4.10.1", + "language": "TYPESCRIPT", + "apis": [ + { + "id": "google.cloud.speech.v1", + "version": "v1" + } + ] }, - { - "regionTag": "speech_v1_generated_Speech_LongRunningRecognize_async", - "title": "Speech longRunningRecognize Sample", - "origin": "API_DEFINITION", - "description": " Performs asynchronous speech recognition: receive results via the google.longrunning.Operations interface. Returns either an `Operation.error` or an `Operation.response` which contains a `LongRunningRecognizeResponse` message. For more information on asynchronous speech recognition, see the [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).", - "canonical": true, - "file": "speech.long_running_recognize.js", - "language": "JAVASCRIPT", - "segments": [ + "snippets": [ { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LongRunningRecognize", - "fullName": "google.cloud.speech.v1.Speech.LongRunningRecognize", - "async": true, - "parameters": [ - { - "name": "config", - "type": ".google.cloud.speech.v1.RecognitionConfig" - }, - { - "name": "audio", - "type": ".google.cloud.speech.v1.RecognitionAudio" - }, - { - "name": "output_config", - "type": ".google.cloud.speech.v1.TranscriptOutputConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v1.SpeechClient" + "regionTag": "speech_v1_generated_Speech_Recognize_async", + "title": "Speech recognize Sample", + "origin": "API_DEFINITION", + "description": " Performs synchronous speech recognition: receive results after all audio has been sent and processed.", + "canonical": true, + "file": "speech.recognize.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Recognize", + "fullName": "google.cloud.speech.v1.Speech.Recognize", + "async": true, + "parameters": [ + { + "name": "config", + "type": ".google.cloud.speech.v1.RecognitionConfig" + }, + { + "name": "audio", + "type": ".google.cloud.speech.v1.RecognitionAudio" + } + ], + "resultType": ".google.cloud.speech.v1.RecognizeResponse", + "client": { + "shortName": "SpeechClient", + "fullName": "google.cloud.speech.v1.SpeechClient" + }, + "method": { + "shortName": "Recognize", + "fullName": "google.cloud.speech.v1.Speech.Recognize", + "service": { + "shortName": "Speech", + "fullName": "google.cloud.speech.v1.Speech" + } + } + } }, - "method": { - "shortName": "LongRunningRecognize", - "fullName": "google.cloud.speech.v1.Speech.LongRunningRecognize", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v1.Speech" - } - } - } - }, - { - "regionTag": "speech_v1_generated_Speech_StreamingRecognize_async", - "title": "Speech streamingRecognize Sample", - "origin": "API_DEFINITION", - "description": " Performs bidirectional streaming speech recognition: receive results while sending audio. This method is only available via the gRPC API (not REST).", - "canonical": true, - "file": "speech.streaming_recognize.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamingRecognize", - "fullName": "google.cloud.speech.v1.Speech.StreamingRecognize", - "async": true, - "parameters": [ - { - "name": "streaming_config", - "type": ".google.cloud.speech.v1.StreamingRecognitionConfig" - }, - { - "name": "audio_content", - "type": "TYPE_BYTES" - } - ], - "resultType": ".google.cloud.speech.v1.StreamingRecognizeResponse", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v1.SpeechClient" + "regionTag": "speech_v1_generated_Speech_LongRunningRecognize_async", + "title": "Speech longRunningRecognize Sample", + "origin": "API_DEFINITION", + "description": " Performs asynchronous speech recognition: receive results via the google.longrunning.Operations interface. Returns either an `Operation.error` or an `Operation.response` which contains a `LongRunningRecognizeResponse` message. For more information on asynchronous speech recognition, see the [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).", + "canonical": true, + "file": "speech.long_running_recognize.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 61, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "LongRunningRecognize", + "fullName": "google.cloud.speech.v1.Speech.LongRunningRecognize", + "async": true, + "parameters": [ + { + "name": "config", + "type": ".google.cloud.speech.v1.RecognitionConfig" + }, + { + "name": "audio", + "type": ".google.cloud.speech.v1.RecognitionAudio" + }, + { + "name": "output_config", + "type": ".google.cloud.speech.v1.TranscriptOutputConfig" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "SpeechClient", + "fullName": "google.cloud.speech.v1.SpeechClient" + }, + "method": { + "shortName": "LongRunningRecognize", + "fullName": "google.cloud.speech.v1.Speech.LongRunningRecognize", + "service": { + "shortName": "Speech", + "fullName": "google.cloud.speech.v1.Speech" + } + } + } }, - "method": { - "shortName": "StreamingRecognize", - "fullName": "google.cloud.speech.v1.Speech.StreamingRecognize", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v1.Speech" - } + { + "regionTag": "speech_v1_generated_Speech_StreamingRecognize_async", + "title": "Speech streamingRecognize Sample", + "origin": "API_DEFINITION", + "description": " Performs bidirectional streaming speech recognition: receive results while sending audio. This method is only available via the gRPC API (not REST).", + "canonical": true, + "file": "speech.streaming_recognize.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 66, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "StreamingRecognize", + "fullName": "google.cloud.speech.v1.Speech.StreamingRecognize", + "async": true, + "parameters": [ + { + "name": "streaming_config", + "type": ".google.cloud.speech.v1.StreamingRecognitionConfig" + }, + { + "name": "audio_content", + "type": "TYPE_BYTES" + } + ], + "resultType": ".google.cloud.speech.v1.StreamingRecognizeResponse", + "client": { + "shortName": "SpeechClient", + "fullName": "google.cloud.speech.v1.SpeechClient" + }, + "method": { + "shortName": "StreamingRecognize", + "fullName": "google.cloud.speech.v1.Speech.StreamingRecognize", + "service": { + "shortName": "Speech", + "fullName": "google.cloud.speech.v1.Speech" + } + } + } } - } - } - ] -} + ] +} \ No newline at end of file diff --git a/packages/google-cloud-node/samples/generated/v1p1beta1/snippet_metadata.google.cloud.speech.v1p1beta1.json b/packages/google-cloud-node/samples/generated/v1p1beta1/snippet_metadata.google.cloud.speech.v1p1beta1.json index 4e4907bfd4e5..927d4f7eabee 100644 --- a/packages/google-cloud-node/samples/generated/v1p1beta1/snippet_metadata.google.cloud.speech.v1p1beta1.json +++ b/packages/google-cloud-node/samples/generated/v1p1beta1/snippet_metadata.google.cloud.speech.v1p1beta1.json @@ -1,591 +1,591 @@ { - "clientLibrary": { - "name": "nodejs-speech", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.speech.v1p1beta1", - "version": "v1p1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "speech_v1p1beta1_generated_Adaptation_CreatePhraseSet_async", - "title": "Adaptation createPhraseSet Sample", - "origin": "API_DEFINITION", - "description": " Create a set of phrase hints. Each item in the set can be a single word or a multi-word phrase. The items in the PhraseSet are favored by the recognition model when you send a call that includes the PhraseSet.", - "canonical": true, - "file": "adaptation.create_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePhraseSet", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.CreatePhraseSet", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "phrase_set_id", - "type": "TYPE_STRING" - }, - { - "name": "phrase_set", - "type": ".google.cloud.speech.v1p1beta1.PhraseSet" - } - ], - "resultType": ".google.cloud.speech.v1p1beta1.PhraseSet", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" - }, - "method": { - "shortName": "CreatePhraseSet", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.CreatePhraseSet", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation" - } - } - } + "clientLibrary": { + "name": "nodejs-speech", + "version": "4.10.1", + "language": "TYPESCRIPT", + "apis": [ + { + "id": "google.cloud.speech.v1p1beta1", + "version": "v1p1beta1" + } + ] }, - { - "regionTag": "speech_v1p1beta1_generated_Adaptation_GetPhraseSet_async", - "title": "Adaptation getPhraseSet Sample", - "origin": "API_DEFINITION", - "description": " Get a phrase set.", - "canonical": true, - "file": "adaptation.get_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ + "snippets": [ { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPhraseSet", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.GetPhraseSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.speech.v1p1beta1.PhraseSet", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" + "regionTag": "speech_v1p1beta1_generated_Adaptation_CreatePhraseSet_async", + "title": "Adaptation createPhraseSet Sample", + "origin": "API_DEFINITION", + "description": " Create a set of phrase hints. Each item in the set can be a single word or a multi-word phrase. The items in the PhraseSet are favored by the recognition model when you send a call that includes the PhraseSet.", + "canonical": true, + "file": "adaptation.create_phrase_set.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 70, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreatePhraseSet", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.CreatePhraseSet", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "phrase_set_id", + "type": "TYPE_STRING" + }, + { + "name": "phrase_set", + "type": ".google.cloud.speech.v1p1beta1.PhraseSet" + } + ], + "resultType": ".google.cloud.speech.v1p1beta1.PhraseSet", + "client": { + "shortName": "AdaptationClient", + "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" + }, + "method": { + "shortName": "CreatePhraseSet", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.CreatePhraseSet", + "service": { + "shortName": "Adaptation", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation" + } + } + } }, - "method": { - "shortName": "GetPhraseSet", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.GetPhraseSet", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Adaptation_ListPhraseSet_async", - "title": "Adaptation listPhraseSet Sample", - "origin": "API_DEFINITION", - "description": " List phrase sets.", - "canonical": true, - "file": "adaptation.list_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPhraseSet", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.ListPhraseSet", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.speech.v1p1beta1.ListPhraseSetResponse", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" + "regionTag": "speech_v1p1beta1_generated_Adaptation_GetPhraseSet_async", + "title": "Adaptation getPhraseSet Sample", + "origin": "API_DEFINITION", + "description": " Get a phrase set.", + "canonical": true, + "file": "adaptation.get_phrase_set.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetPhraseSet", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.GetPhraseSet", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.speech.v1p1beta1.PhraseSet", + "client": { + "shortName": "AdaptationClient", + "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" + }, + "method": { + "shortName": "GetPhraseSet", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.GetPhraseSet", + "service": { + "shortName": "Adaptation", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation" + } + } + } }, - "method": { - "shortName": "ListPhraseSet", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.ListPhraseSet", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Adaptation_UpdatePhraseSet_async", - "title": "Adaptation updatePhraseSet Sample", - "origin": "API_DEFINITION", - "description": " Update a phrase set.", - "canonical": true, - "file": "adaptation.update_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePhraseSet", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.UpdatePhraseSet", - "async": true, - "parameters": [ - { - "name": "phrase_set", - "type": ".google.cloud.speech.v1p1beta1.PhraseSet" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.speech.v1p1beta1.PhraseSet", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" + "regionTag": "speech_v1p1beta1_generated_Adaptation_ListPhraseSet_async", + "title": "Adaptation listPhraseSet Sample", + "origin": "API_DEFINITION", + "description": " List phrase sets.", + "canonical": true, + "file": "adaptation.list_phrase_set.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 72, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListPhraseSet", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.ListPhraseSet", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.speech.v1p1beta1.ListPhraseSetResponse", + "client": { + "shortName": "AdaptationClient", + "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" + }, + "method": { + "shortName": "ListPhraseSet", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.ListPhraseSet", + "service": { + "shortName": "Adaptation", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation" + } + } + } }, - "method": { - "shortName": "UpdatePhraseSet", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.UpdatePhraseSet", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Adaptation_DeletePhraseSet_async", - "title": "Adaptation deletePhraseSet Sample", - "origin": "API_DEFINITION", - "description": " Delete a phrase set.", - "canonical": true, - "file": "adaptation.delete_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePhraseSet", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.DeletePhraseSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" + "regionTag": "speech_v1p1beta1_generated_Adaptation_UpdatePhraseSet_async", + "title": "Adaptation updatePhraseSet Sample", + "origin": "API_DEFINITION", + "description": " Update a phrase set.", + "canonical": true, + "file": "adaptation.update_phrase_set.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 62, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdatePhraseSet", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.UpdatePhraseSet", + "async": true, + "parameters": [ + { + "name": "phrase_set", + "type": ".google.cloud.speech.v1p1beta1.PhraseSet" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.cloud.speech.v1p1beta1.PhraseSet", + "client": { + "shortName": "AdaptationClient", + "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" + }, + "method": { + "shortName": "UpdatePhraseSet", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.UpdatePhraseSet", + "service": { + "shortName": "Adaptation", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation" + } + } + } }, - "method": { - "shortName": "DeletePhraseSet", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.DeletePhraseSet", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Adaptation_CreateCustomClass_async", - "title": "Adaptation createCustomClass Sample", - "origin": "API_DEFINITION", - "description": " Create a custom class.", - "canonical": true, - "file": "adaptation.create_custom_class.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCustomClass", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.CreateCustomClass", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "custom_class_id", - "type": "TYPE_STRING" - }, - { - "name": "custom_class", - "type": ".google.cloud.speech.v1p1beta1.CustomClass" - } - ], - "resultType": ".google.cloud.speech.v1p1beta1.CustomClass", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" + "regionTag": "speech_v1p1beta1_generated_Adaptation_DeletePhraseSet_async", + "title": "Adaptation deletePhraseSet Sample", + "origin": "API_DEFINITION", + "description": " Delete a phrase set.", + "canonical": true, + "file": "adaptation.delete_phrase_set.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeletePhraseSet", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.DeletePhraseSet", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "AdaptationClient", + "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" + }, + "method": { + "shortName": "DeletePhraseSet", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.DeletePhraseSet", + "service": { + "shortName": "Adaptation", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation" + } + } + } }, - "method": { - "shortName": "CreateCustomClass", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.CreateCustomClass", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Adaptation_GetCustomClass_async", - "title": "Adaptation getCustomClass Sample", - "origin": "API_DEFINITION", - "description": " Get a custom class.", - "canonical": true, - "file": "adaptation.get_custom_class.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCustomClass", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.GetCustomClass", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.speech.v1p1beta1.CustomClass", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" + "regionTag": "speech_v1p1beta1_generated_Adaptation_CreateCustomClass_async", + "title": "Adaptation createCustomClass Sample", + "origin": "API_DEFINITION", + "description": " Create a custom class.", + "canonical": true, + "file": "adaptation.create_custom_class.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 70, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateCustomClass", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.CreateCustomClass", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "custom_class_id", + "type": "TYPE_STRING" + }, + { + "name": "custom_class", + "type": ".google.cloud.speech.v1p1beta1.CustomClass" + } + ], + "resultType": ".google.cloud.speech.v1p1beta1.CustomClass", + "client": { + "shortName": "AdaptationClient", + "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" + }, + "method": { + "shortName": "CreateCustomClass", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.CreateCustomClass", + "service": { + "shortName": "Adaptation", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation" + } + } + } }, - "method": { - "shortName": "GetCustomClass", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.GetCustomClass", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Adaptation_ListCustomClasses_async", - "title": "Adaptation listCustomClasses Sample", - "origin": "API_DEFINITION", - "description": " List custom classes.", - "canonical": true, - "file": "adaptation.list_custom_classes.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCustomClasses", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.ListCustomClasses", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.speech.v1p1beta1.ListCustomClassesResponse", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" + "regionTag": "speech_v1p1beta1_generated_Adaptation_GetCustomClass_async", + "title": "Adaptation getCustomClass Sample", + "origin": "API_DEFINITION", + "description": " Get a custom class.", + "canonical": true, + "file": "adaptation.get_custom_class.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetCustomClass", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.GetCustomClass", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.speech.v1p1beta1.CustomClass", + "client": { + "shortName": "AdaptationClient", + "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" + }, + "method": { + "shortName": "GetCustomClass", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.GetCustomClass", + "service": { + "shortName": "Adaptation", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation" + } + } + } }, - "method": { - "shortName": "ListCustomClasses", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.ListCustomClasses", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Adaptation_UpdateCustomClass_async", - "title": "Adaptation updateCustomClass Sample", - "origin": "API_DEFINITION", - "description": " Update a custom class.", - "canonical": true, - "file": "adaptation.update_custom_class.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCustomClass", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.UpdateCustomClass", - "async": true, - "parameters": [ - { - "name": "custom_class", - "type": ".google.cloud.speech.v1p1beta1.CustomClass" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.speech.v1p1beta1.CustomClass", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" + "regionTag": "speech_v1p1beta1_generated_Adaptation_ListCustomClasses_async", + "title": "Adaptation listCustomClasses Sample", + "origin": "API_DEFINITION", + "description": " List custom classes.", + "canonical": true, + "file": "adaptation.list_custom_classes.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 72, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListCustomClasses", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.ListCustomClasses", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.speech.v1p1beta1.ListCustomClassesResponse", + "client": { + "shortName": "AdaptationClient", + "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" + }, + "method": { + "shortName": "ListCustomClasses", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.ListCustomClasses", + "service": { + "shortName": "Adaptation", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation" + } + } + } }, - "method": { - "shortName": "UpdateCustomClass", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.UpdateCustomClass", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Adaptation_DeleteCustomClass_async", - "title": "Adaptation deleteCustomClass Sample", - "origin": "API_DEFINITION", - "description": " Delete a custom class.", - "canonical": true, - "file": "adaptation.delete_custom_class.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCustomClass", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.DeleteCustomClass", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" + "regionTag": "speech_v1p1beta1_generated_Adaptation_UpdateCustomClass_async", + "title": "Adaptation updateCustomClass Sample", + "origin": "API_DEFINITION", + "description": " Update a custom class.", + "canonical": true, + "file": "adaptation.update_custom_class.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 62, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateCustomClass", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.UpdateCustomClass", + "async": true, + "parameters": [ + { + "name": "custom_class", + "type": ".google.cloud.speech.v1p1beta1.CustomClass" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.cloud.speech.v1p1beta1.CustomClass", + "client": { + "shortName": "AdaptationClient", + "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" + }, + "method": { + "shortName": "UpdateCustomClass", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.UpdateCustomClass", + "service": { + "shortName": "Adaptation", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation" + } + } + } }, - "method": { - "shortName": "DeleteCustomClass", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.DeleteCustomClass", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Speech_Recognize_async", - "title": "Adaptation recognize Sample", - "origin": "API_DEFINITION", - "description": " Performs synchronous speech recognition: receive results after all audio has been sent and processed.", - "canonical": true, - "file": "speech.recognize.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Recognize", - "fullName": "google.cloud.speech.v1p1beta1.Speech.Recognize", - "async": true, - "parameters": [ - { - "name": "config", - "type": ".google.cloud.speech.v1p1beta1.RecognitionConfig" - }, - { - "name": "audio", - "type": ".google.cloud.speech.v1p1beta1.RecognitionAudio" - } - ], - "resultType": ".google.cloud.speech.v1p1beta1.RecognizeResponse", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v1p1beta1.SpeechClient" + "regionTag": "speech_v1p1beta1_generated_Adaptation_DeleteCustomClass_async", + "title": "Adaptation deleteCustomClass Sample", + "origin": "API_DEFINITION", + "description": " Delete a custom class.", + "canonical": true, + "file": "adaptation.delete_custom_class.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteCustomClass", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.DeleteCustomClass", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "AdaptationClient", + "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" + }, + "method": { + "shortName": "DeleteCustomClass", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.DeleteCustomClass", + "service": { + "shortName": "Adaptation", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation" + } + } + } }, - "method": { - "shortName": "Recognize", - "fullName": "google.cloud.speech.v1p1beta1.Speech.Recognize", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v1p1beta1.Speech" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Speech_LongRunningRecognize_async", - "title": "Adaptation longRunningRecognize Sample", - "origin": "API_DEFINITION", - "description": " Performs asynchronous speech recognition: receive results via the google.longrunning.Operations interface. Returns either an `Operation.error` or an `Operation.response` which contains a `LongRunningRecognizeResponse` message. For more information on asynchronous speech recognition, see the [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).", - "canonical": true, - "file": "speech.long_running_recognize.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LongRunningRecognize", - "fullName": "google.cloud.speech.v1p1beta1.Speech.LongRunningRecognize", - "async": true, - "parameters": [ - { - "name": "config", - "type": ".google.cloud.speech.v1p1beta1.RecognitionConfig" - }, - { - "name": "audio", - "type": ".google.cloud.speech.v1p1beta1.RecognitionAudio" - }, - { - "name": "output_config", - "type": ".google.cloud.speech.v1p1beta1.TranscriptOutputConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v1p1beta1.SpeechClient" + "regionTag": "speech_v1p1beta1_generated_Speech_Recognize_async", + "title": "Adaptation recognize Sample", + "origin": "API_DEFINITION", + "description": " Performs synchronous speech recognition: receive results after all audio has been sent and processed.", + "canonical": true, + "file": "speech.recognize.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Recognize", + "fullName": "google.cloud.speech.v1p1beta1.Speech.Recognize", + "async": true, + "parameters": [ + { + "name": "config", + "type": ".google.cloud.speech.v1p1beta1.RecognitionConfig" + }, + { + "name": "audio", + "type": ".google.cloud.speech.v1p1beta1.RecognitionAudio" + } + ], + "resultType": ".google.cloud.speech.v1p1beta1.RecognizeResponse", + "client": { + "shortName": "SpeechClient", + "fullName": "google.cloud.speech.v1p1beta1.SpeechClient" + }, + "method": { + "shortName": "Recognize", + "fullName": "google.cloud.speech.v1p1beta1.Speech.Recognize", + "service": { + "shortName": "Speech", + "fullName": "google.cloud.speech.v1p1beta1.Speech" + } + } + } }, - "method": { - "shortName": "LongRunningRecognize", - "fullName": "google.cloud.speech.v1p1beta1.Speech.LongRunningRecognize", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v1p1beta1.Speech" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Speech_StreamingRecognize_async", - "title": "Adaptation streamingRecognize Sample", - "origin": "API_DEFINITION", - "description": " Performs bidirectional streaming speech recognition: receive results while sending audio. This method is only available via the gRPC API (not REST).", - "canonical": true, - "file": "speech.streaming_recognize.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamingRecognize", - "fullName": "google.cloud.speech.v1p1beta1.Speech.StreamingRecognize", - "async": true, - "parameters": [ - { - "name": "streaming_config", - "type": ".google.cloud.speech.v1p1beta1.StreamingRecognitionConfig" - }, - { - "name": "audio_content", - "type": "TYPE_BYTES" - } - ], - "resultType": ".google.cloud.speech.v1p1beta1.StreamingRecognizeResponse", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v1p1beta1.SpeechClient" + "regionTag": "speech_v1p1beta1_generated_Speech_LongRunningRecognize_async", + "title": "Adaptation longRunningRecognize Sample", + "origin": "API_DEFINITION", + "description": " Performs asynchronous speech recognition: receive results via the google.longrunning.Operations interface. Returns either an `Operation.error` or an `Operation.response` which contains a `LongRunningRecognizeResponse` message. For more information on asynchronous speech recognition, see the [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).", + "canonical": true, + "file": "speech.long_running_recognize.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 61, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "LongRunningRecognize", + "fullName": "google.cloud.speech.v1p1beta1.Speech.LongRunningRecognize", + "async": true, + "parameters": [ + { + "name": "config", + "type": ".google.cloud.speech.v1p1beta1.RecognitionConfig" + }, + { + "name": "audio", + "type": ".google.cloud.speech.v1p1beta1.RecognitionAudio" + }, + { + "name": "output_config", + "type": ".google.cloud.speech.v1p1beta1.TranscriptOutputConfig" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "SpeechClient", + "fullName": "google.cloud.speech.v1p1beta1.SpeechClient" + }, + "method": { + "shortName": "LongRunningRecognize", + "fullName": "google.cloud.speech.v1p1beta1.Speech.LongRunningRecognize", + "service": { + "shortName": "Speech", + "fullName": "google.cloud.speech.v1p1beta1.Speech" + } + } + } }, - "method": { - "shortName": "StreamingRecognize", - "fullName": "google.cloud.speech.v1p1beta1.Speech.StreamingRecognize", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v1p1beta1.Speech" - } + { + "regionTag": "speech_v1p1beta1_generated_Speech_StreamingRecognize_async", + "title": "Adaptation streamingRecognize Sample", + "origin": "API_DEFINITION", + "description": " Performs bidirectional streaming speech recognition: receive results while sending audio. This method is only available via the gRPC API (not REST).", + "canonical": true, + "file": "speech.streaming_recognize.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 66, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "StreamingRecognize", + "fullName": "google.cloud.speech.v1p1beta1.Speech.StreamingRecognize", + "async": true, + "parameters": [ + { + "name": "streaming_config", + "type": ".google.cloud.speech.v1p1beta1.StreamingRecognitionConfig" + }, + { + "name": "audio_content", + "type": "TYPE_BYTES" + } + ], + "resultType": ".google.cloud.speech.v1p1beta1.StreamingRecognizeResponse", + "client": { + "shortName": "SpeechClient", + "fullName": "google.cloud.speech.v1p1beta1.SpeechClient" + }, + "method": { + "shortName": "StreamingRecognize", + "fullName": "google.cloud.speech.v1p1beta1.Speech.StreamingRecognize", + "service": { + "shortName": "Speech", + "fullName": "google.cloud.speech.v1p1beta1.Speech" + } + } + } } - } - } - ] -} + ] +} \ No newline at end of file