From 2e05371e57260e2298b658aa120e8b9d0e93ed61 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 4 Apr 2024 13:50:57 -0400 Subject: [PATCH] feat: [speech] add `translation_config` in `RecognitionConfig` message (#10659) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: add `translation_config` in `RecognitionConfig` message Enables specifying target language to perform automatic translation to. PiperOrigin-RevId: 621862394 Source-Link: https://github.com/googleapis/googleapis/commit/9deb78bb23e38621a9e3e14986b4469d4f68c11c Source-Link: https://github.com/googleapis/googleapis-gen/commit/f109618460c3c2ad1c19f0ff6f59c451c2fc830e Copy-Tag: eyJwIjoiamF2YS1zcGVlY2gvLk93bEJvdC55YW1sIiwiaCI6ImYxMDk2MTg0NjBjM2MyYWQxYzE5ZjBmZjZmNTljNDUxYzJmYzgzMGUifQ== * 🦉 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 --- java-speech/README.md | 4 +- .../reflect-config.json | 18 + .../speech/v2/BatchRecognizeFileResult.java | 22 +- .../v2/BatchRecognizeFileResultOrBuilder.java | 8 +- .../cloud/speech/v2/CloudSpeechProto.java | 881 +++++++++--------- .../cloud/speech/v2/RecognitionConfig.java | 310 ++++++ .../speech/v2/RecognitionConfigOrBuilder.java | 44 + .../cloud/speech/v2/TranslationConfig.java | 626 +++++++++++++ .../speech/v2/TranslationConfigOrBuilder.java | 51 + .../google/cloud/speech/v2/cloud_speech.proto | 12 + 10 files changed, 1527 insertions(+), 449 deletions(-) create mode 100644 java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/TranslationConfig.java create mode 100644 java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/TranslationConfigOrBuilder.java diff --git a/java-speech/README.md b/java-speech/README.md index 67ec60c550e3..3e8aca6ee7f2 100644 --- a/java-speech/README.md +++ b/java-speech/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.34.0 + 26.36.0 pom import @@ -231,7 +231,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-speech.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-speech/4.33.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-speech/4.35.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-speech/google-cloud-speech/src/main/resources/META-INF/native-image/com.google.cloud.speech.v2/reflect-config.json b/java-speech/google-cloud-speech/src/main/resources/META-INF/native-image/com.google.cloud.speech.v2/reflect-config.json index 526fec371d5d..8b4f5c83fc09 100644 --- a/java-speech/google-cloud-speech/src/main/resources/META-INF/native-image/com.google.cloud.speech.v2/reflect-config.json +++ b/java-speech/google-cloud-speech/src/main/resources/META-INF/native-image/com.google.cloud.speech.v2/reflect-config.json @@ -1556,6 +1556,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.speech.v2.TranslationConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.speech.v2.TranslationConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.speech.v2.UndeleteCustomClassRequest", "queryAllDeclaredConstructors": true, diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResult.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResult.java index 5cf72cfb44af..3595a6acf3bd 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResult.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResult.java @@ -326,7 +326,7 @@ public com.google.cloud.speech.v2.InlineResultOrBuilder getInlineResultOrBuilder * string uri = 1 [deprecated = true]; * * @deprecated google.cloud.speech.v2.BatchRecognizeFileResult.uri is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=1406 + * google/cloud/speech/v2/cloud_speech.proto;l=1418 * @return The uri. */ @java.lang.Override @@ -352,7 +352,7 @@ public java.lang.String getUri() { * string uri = 1 [deprecated = true]; * * @deprecated google.cloud.speech.v2.BatchRecognizeFileResult.uri is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=1406 + * google/cloud/speech/v2/cloud_speech.proto;l=1418 * @return The bytes for uri. */ @java.lang.Override @@ -381,7 +381,7 @@ public com.google.protobuf.ByteString getUriBytes() { * .google.cloud.speech.v2.BatchRecognizeResults transcript = 4 [deprecated = true]; * * @deprecated google.cloud.speech.v2.BatchRecognizeFileResult.transcript is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=1409 + * google/cloud/speech/v2/cloud_speech.proto;l=1421 * @return Whether the transcript field is set. */ @java.lang.Override @@ -399,7 +399,7 @@ public boolean hasTranscript() { * .google.cloud.speech.v2.BatchRecognizeResults transcript = 4 [deprecated = true]; * * @deprecated google.cloud.speech.v2.BatchRecognizeFileResult.transcript is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=1409 + * google/cloud/speech/v2/cloud_speech.proto;l=1421 * @return The transcript. */ @java.lang.Override @@ -1766,7 +1766,7 @@ public com.google.cloud.speech.v2.InlineResultOrBuilder getInlineResultOrBuilder * string uri = 1 [deprecated = true]; * * @deprecated google.cloud.speech.v2.BatchRecognizeFileResult.uri is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=1406 + * google/cloud/speech/v2/cloud_speech.proto;l=1418 * @return The uri. */ @java.lang.Deprecated @@ -1791,7 +1791,7 @@ public java.lang.String getUri() { * string uri = 1 [deprecated = true]; * * @deprecated google.cloud.speech.v2.BatchRecognizeFileResult.uri is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=1406 + * google/cloud/speech/v2/cloud_speech.proto;l=1418 * @return The bytes for uri. */ @java.lang.Deprecated @@ -1816,7 +1816,7 @@ public com.google.protobuf.ByteString getUriBytes() { * string uri = 1 [deprecated = true]; * * @deprecated google.cloud.speech.v2.BatchRecognizeFileResult.uri is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=1406 + * google/cloud/speech/v2/cloud_speech.proto;l=1418 * @param value The uri to set. * @return This builder for chaining. */ @@ -1840,7 +1840,7 @@ public Builder setUri(java.lang.String value) { * string uri = 1 [deprecated = true]; * * @deprecated google.cloud.speech.v2.BatchRecognizeFileResult.uri is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=1406 + * google/cloud/speech/v2/cloud_speech.proto;l=1418 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1860,7 +1860,7 @@ public Builder clearUri() { * string uri = 1 [deprecated = true]; * * @deprecated google.cloud.speech.v2.BatchRecognizeFileResult.uri is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=1406 + * google/cloud/speech/v2/cloud_speech.proto;l=1418 * @param value The bytes for uri to set. * @return This builder for chaining. */ @@ -1893,7 +1893,7 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.cloud.speech.v2.BatchRecognizeFileResult.transcript is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=1409 + * google/cloud/speech/v2/cloud_speech.proto;l=1421 * @return Whether the transcript field is set. */ @java.lang.Deprecated @@ -1911,7 +1911,7 @@ public boolean hasTranscript() { * * * @deprecated google.cloud.speech.v2.BatchRecognizeFileResult.transcript is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=1409 + * google/cloud/speech/v2/cloud_speech.proto;l=1421 * @return The transcript. */ @java.lang.Deprecated diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResultOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResultOrBuilder.java index 913ee77402bc..2d6c0a8a2edc 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResultOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResultOrBuilder.java @@ -175,7 +175,7 @@ public interface BatchRecognizeFileResultOrBuilder * string uri = 1 [deprecated = true]; * * @deprecated google.cloud.speech.v2.BatchRecognizeFileResult.uri is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=1406 + * google/cloud/speech/v2/cloud_speech.proto;l=1418 * @return The uri. */ @java.lang.Deprecated @@ -190,7 +190,7 @@ public interface BatchRecognizeFileResultOrBuilder * string uri = 1 [deprecated = true]; * * @deprecated google.cloud.speech.v2.BatchRecognizeFileResult.uri is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=1406 + * google/cloud/speech/v2/cloud_speech.proto;l=1418 * @return The bytes for uri. */ @java.lang.Deprecated @@ -206,7 +206,7 @@ public interface BatchRecognizeFileResultOrBuilder * .google.cloud.speech.v2.BatchRecognizeResults transcript = 4 [deprecated = true]; * * @deprecated google.cloud.speech.v2.BatchRecognizeFileResult.transcript is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=1409 + * google/cloud/speech/v2/cloud_speech.proto;l=1421 * @return Whether the transcript field is set. */ @java.lang.Deprecated @@ -221,7 +221,7 @@ public interface BatchRecognizeFileResultOrBuilder * .google.cloud.speech.v2.BatchRecognizeResults transcript = 4 [deprecated = true]; * * @deprecated google.cloud.speech.v2.BatchRecognizeFileResult.transcript is deprecated. See - * google/cloud/speech/v2/cloud_speech.proto;l=1409 + * google/cloud/speech/v2/cloud_speech.proto;l=1421 * @return The transcript. */ @java.lang.Deprecated diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CloudSpeechProto.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CloudSpeechProto.java index 680ba94257b5..19a1748de0be 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CloudSpeechProto.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CloudSpeechProto.java @@ -92,6 +92,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_speech_v2_TranscriptNormalization_Entry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_speech_v2_TranscriptNormalization_Entry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_TranslationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_TranslationConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_speech_v2_SpeechAdaptation_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -448,392 +452,396 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "iptNormalization\022F\n\007entries\030\001 \003(\01325.goog" + "le.cloud.speech.v2.TranscriptNormalizati" + "on.Entry\032@\n\005Entry\022\016\n\006search\030\001 \001(\t\022\017\n\007rep" - + "lace\030\002 \001(\t\022\026\n\016case_sensitive\030\003 \001(\010\"\277\002\n\020S" - + "peechAdaptation\022Q\n\013phrase_sets\030\001 \003(\0132<.g" - + "oogle.cloud.speech.v2.SpeechAdaptation.A" - + "daptationPhraseSet\022;\n\016custom_classes\030\002 \003" - + "(\0132#.google.cloud.speech.v2.CustomClass\032" - + "\232\001\n\023AdaptationPhraseSet\022:\n\nphrase_set\030\001 " - + "\001(\tB$\372A!\n\037speech.googleapis.com/PhraseSe" - + "tH\000\022>\n\021inline_phrase_set\030\002 \001(\0132!.google." - + "cloud.speech.v2.PhraseSetH\000B\007\n\005value\"\322\003\n" - + "\021RecognitionConfig\022P\n\024auto_decoding_conf" - + "ig\030\007 \001(\01320.google.cloud.speech.v2.AutoDe" - + "tectDecodingConfigH\000\022R\n\030explicit_decodin" - + "g_config\030\010 \001(\0132..google.cloud.speech.v2." - + "ExplicitDecodingConfigH\000\022\022\n\005model\030\t \001(\tB" - + "\003\340A\001\022\033\n\016language_codes\030\n \003(\tB\003\340A\001\022=\n\010fea" - + "tures\030\002 \001(\0132+.google.cloud.speech.v2.Rec" - + "ognitionFeatures\022<\n\nadaptation\030\006 \001(\0132(.g" - + "oogle.cloud.speech.v2.SpeechAdaptation\022V" - + "\n\030transcript_normalization\030\013 \001(\0132/.googl" - + "e.cloud.speech.v2.TranscriptNormalizatio" - + "nB\003\340A\001B\021\n\017decoding_config\"\356\001\n\020RecognizeR" - + "equest\022<\n\nrecognizer\030\003 \001(\tB(\340A\002\372A\"\n spee" - + "ch.googleapis.com/Recognizer\0229\n\006config\030\001" - + " \001(\0132).google.cloud.speech.v2.Recognitio" - + "nConfig\022/\n\013config_mask\030\010 \001(\0132\032.google.pr" - + "otobuf.FieldMask\022\021\n\007content\030\005 \001(\014H\000\022\r\n\003u" - + "ri\030\006 \001(\tH\000B\016\n\014audio_source\"W\n\033Recognitio" - + "nResponseMetadata\0228\n\025total_billed_durati" - + "on\030\006 \001(\0132\031.google.protobuf.Duration\"w\n\034S" - + "peechRecognitionAlternative\022\022\n\ntranscrip" - + "t\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\022/\n\005words\030\003 \003" - + "(\0132 .google.cloud.speech.v2.WordInfo\"\243\001\n" - + "\010WordInfo\022/\n\014start_offset\030\001 \001(\0132\031.google" - + ".protobuf.Duration\022-\n\nend_offset\030\002 \001(\0132\031" - + ".google.protobuf.Duration\022\014\n\004word\030\003 \001(\t\022" - + "\022\n\nconfidence\030\004 \001(\002\022\025\n\rspeaker_label\030\006 \001" - + "(\t\"\314\001\n\027SpeechRecognitionResult\022J\n\014altern" - + "atives\030\001 \003(\01324.google.cloud.speech.v2.Sp" - + "eechRecognitionAlternative\022\023\n\013channel_ta" - + "g\030\002 \001(\005\0224\n\021result_end_offset\030\004 \001(\0132\031.goo" - + "gle.protobuf.Duration\022\032\n\rlanguage_code\030\005" - + " \001(\tB\003\340A\003\"\234\001\n\021RecognizeResponse\022@\n\007resul" - + "ts\030\003 \003(\0132/.google.cloud.speech.v2.Speech" - + "RecognitionResult\022E\n\010metadata\030\002 \001(\01323.go" - + "ogle.cloud.speech.v2.RecognitionResponse" - + "Metadata\"\321\002\n\034StreamingRecognitionFeature" - + "s\022$\n\034enable_voice_activity_events\030\001 \001(\010\022" - + "\027\n\017interim_results\030\002 \001(\010\022i\n\026voice_activi" - + "ty_timeout\030\003 \001(\0132I.google.cloud.speech.v" - + "2.StreamingRecognitionFeatures.VoiceActi" - + "vityTimeout\032\206\001\n\024VoiceActivityTimeout\0227\n\024" - + "speech_start_timeout\030\001 \001(\0132\031.google.prot" - + "obuf.Duration\0225\n\022speech_end_timeout\030\002 \001(" - + "\0132\031.google.protobuf.Duration\"\337\001\n\032Streami" - + "ngRecognitionConfig\022>\n\006config\030\001 \001(\0132).go" - + "ogle.cloud.speech.v2.RecognitionConfigB\003" - + "\340A\002\022/\n\013config_mask\030\003 \001(\0132\032.google.protob" - + "uf.FieldMask\022P\n\022streaming_features\030\002 \001(\013" - + "24.google.cloud.speech.v2.StreamingRecog" - + "nitionFeatures\"\317\001\n\031StreamingRecognizeReq" - + "uest\022<\n\nrecognizer\030\003 \001(\tB(\340A\002\372A\"\n speech" - + ".googleapis.com/Recognizer\022N\n\020streaming_" - + "config\030\006 \001(\01322.google.cloud.speech.v2.St" - + "reamingRecognitionConfigH\000\022\017\n\005audio\030\005 \001(" - + "\014H\000B\023\n\021streaming_request\"\210\004\n\025BatchRecogn" - + "izeRequest\022<\n\nrecognizer\030\001 \001(\tB(\340A\002\372A\"\n " - + "speech.googleapis.com/Recognizer\0229\n\006conf" - + "ig\030\004 \001(\0132).google.cloud.speech.v2.Recogn" - + "itionConfig\022/\n\013config_mask\030\005 \001(\0132\032.googl" - + "e.protobuf.FieldMask\022A\n\005files\030\003 \003(\01322.go" - + "ogle.cloud.speech.v2.BatchRecognizeFileM" - + "etadata\022R\n\031recognition_output_config\030\006 \001" - + "(\0132/.google.cloud.speech.v2.RecognitionO" - + "utputConfig\022]\n\023processing_strategy\030\007 \001(\016" - + "2@.google.cloud.speech.v2.BatchRecognize" - + "Request.ProcessingStrategy\"O\n\022Processing" - + "Strategy\022#\n\037PROCESSING_STRATEGY_UNSPECIF" - + "IED\020\000\022\024\n\020DYNAMIC_BATCHING\020\001\"\036\n\017GcsOutput" - + "Config\022\013\n\003uri\030\001 \001(\t\"\024\n\022InlineOutputConfi" - + "g\"\036\n\034NativeOutputFileFormatConfig\"\033\n\031Vtt" - + "OutputFileFormatConfig\"\033\n\031SrtOutputFileF" - + "ormatConfig\"\332\001\n\022OutputFormatConfig\022D\n\006na" - + "tive\030\001 \001(\01324.google.cloud.speech.v2.Nati" - + "veOutputFileFormatConfig\022>\n\003vtt\030\002 \001(\01321." - + "google.cloud.speech.v2.VttOutputFileForm" - + "atConfig\022>\n\003srt\030\003 \001(\01321.google.cloud.spe" - + "ech.v2.SrtOutputFileFormatConfig\"\206\002\n\027Rec" - + "ognitionOutputConfig\022D\n\021gcs_output_confi" - + "g\030\001 \001(\0132\'.google.cloud.speech.v2.GcsOutp" - + "utConfigH\000\022L\n\026inline_response_config\030\002 \001" - + "(\0132*.google.cloud.speech.v2.InlineOutput" - + "ConfigH\000\022M\n\024output_format_config\030\003 \001(\0132*" - + ".google.cloud.speech.v2.OutputFormatConf" - + "igB\003\340A\001B\010\n\006output\"\202\002\n\026BatchRecognizeResp" - + "onse\022L\n\007results\030\001 \003(\0132;.google.cloud.spe" - + "ech.v2.BatchRecognizeResponse.ResultsEnt" - + "ry\0228\n\025total_billed_duration\030\002 \001(\0132\031.goog" - + "le.protobuf.Duration\032`\n\014ResultsEntry\022\013\n\003" - + "key\030\001 \001(\t\022?\n\005value\030\002 \001(\01320.google.cloud." - + "speech.v2.BatchRecognizeFileResult:\0028\001\"\240" - + "\001\n\025BatchRecognizeResults\022@\n\007results\030\001 \003(" - + "\0132/.google.cloud.speech.v2.SpeechRecogni" - + "tionResult\022E\n\010metadata\030\002 \001(\01323.google.cl" - + "oud.speech.v2.RecognitionResponseMetadat" - + "a\"Q\n\022CloudStorageResult\022\013\n\003uri\030\001 \001(\t\022\026\n\016" - + "vtt_format_uri\030\002 \001(\t\022\026\n\016srt_format_uri\030\003" - + " \001(\t\"}\n\014InlineResult\022A\n\ntranscript\030\001 \001(\013" - + "2-.google.cloud.speech.v2.BatchRecognize" - + "Results\022\024\n\014vtt_captions\030\002 \001(\t\022\024\n\014srt_cap" - + "tions\030\003 \001(\t\"\361\002\n\030BatchRecognizeFileResult" - + "\022!\n\005error\030\002 \001(\0132\022.google.rpc.Status\022E\n\010m" - + "etadata\030\003 \001(\01323.google.cloud.speech.v2.R" - + "ecognitionResponseMetadata\022J\n\024cloud_stor" - + "age_result\030\005 \001(\0132*.google.cloud.speech.v" - + "2.CloudStorageResultH\000\022=\n\rinline_result\030" - + "\006 \001(\0132$.google.cloud.speech.v2.InlineRes" - + "ultH\000\022\017\n\003uri\030\001 \001(\tB\002\030\001\022E\n\ntranscript\030\004 \001" - + "(\0132-.google.cloud.speech.v2.BatchRecogni" - + "zeResultsB\002\030\001B\010\n\006result\"o\n#BatchRecogniz" - + "eTranscriptionMetadata\022\030\n\020progress_perce" - + "nt\030\001 \001(\005\022!\n\005error\030\002 \001(\0132\022.google.rpc.Sta" - + "tus\022\013\n\003uri\030\003 \001(\t\"\376\001\n\026BatchRecognizeMetad" - + "ata\022i\n\026transcription_metadata\030\001 \003(\0132I.go" - + "ogle.cloud.speech.v2.BatchRecognizeMetad" - + "ata.TranscriptionMetadataEntry\032y\n\032Transc" - + "riptionMetadataEntry\022\013\n\003key\030\001 \001(\t\022J\n\005val" - + "ue\030\002 \001(\0132;.google.cloud.speech.v2.BatchR" - + "ecognizeTranscriptionMetadata:\0028\001\"\247\001\n\032Ba" - + "tchRecognizeFileMetadata\022\r\n\003uri\030\001 \001(\tH\000\022" + + "lace\030\002 \001(\t\022\026\n\016case_sensitive\030\003 \001(\010\"1\n\021Tr" + + "anslationConfig\022\034\n\017target_language\030\001 \001(\t" + + "B\003\340A\002\"\277\002\n\020SpeechAdaptation\022Q\n\013phrase_set" + + "s\030\001 \003(\0132<.google.cloud.speech.v2.SpeechA" + + "daptation.AdaptationPhraseSet\022;\n\016custom_" + + "classes\030\002 \003(\0132#.google.cloud.speech.v2.C" + + "ustomClass\032\232\001\n\023AdaptationPhraseSet\022:\n\nph" + + "rase_set\030\001 \001(\tB$\372A!\n\037speech.googleapis.c" + + "om/PhraseSetH\000\022>\n\021inline_phrase_set\030\002 \001(" + + "\0132!.google.cloud.speech.v2.PhraseSetH\000B\007" + + "\n\005value\"\236\004\n\021RecognitionConfig\022P\n\024auto_de" + + "coding_config\030\007 \001(\01320.google.cloud.speec" + + "h.v2.AutoDetectDecodingConfigH\000\022R\n\030expli" + + "cit_decoding_config\030\010 \001(\0132..google.cloud" + + ".speech.v2.ExplicitDecodingConfigH\000\022\022\n\005m" + + "odel\030\t \001(\tB\003\340A\001\022\033\n\016language_codes\030\n \003(\tB" + + "\003\340A\001\022=\n\010features\030\002 \001(\0132+.google.cloud.sp" + + "eech.v2.RecognitionFeatures\022<\n\nadaptatio" + + "n\030\006 \001(\0132(.google.cloud.speech.v2.SpeechA" + + "daptation\022V\n\030transcript_normalization\030\013 " + + "\001(\0132/.google.cloud.speech.v2.TranscriptN" + + "ormalizationB\003\340A\001\022J\n\022translation_config\030" + + "\017 \001(\0132).google.cloud.speech.v2.Translati" + + "onConfigB\003\340A\001B\021\n\017decoding_config\"\356\001\n\020Rec" + + "ognizeRequest\022<\n\nrecognizer\030\003 \001(\tB(\340A\002\372A" + + "\"\n speech.googleapis.com/Recognizer\0229\n\006c" + + "onfig\030\001 \001(\0132).google.cloud.speech.v2.Rec" + + "ognitionConfig\022/\n\013config_mask\030\010 \001(\0132\032.go" + + "ogle.protobuf.FieldMask\022\021\n\007content\030\005 \001(\014" + + "H\000\022\r\n\003uri\030\006 \001(\tH\000B\016\n\014audio_source\"W\n\033Rec" + + "ognitionResponseMetadata\0228\n\025total_billed" + + "_duration\030\006 \001(\0132\031.google.protobuf.Durati" + + "on\"w\n\034SpeechRecognitionAlternative\022\022\n\ntr" + + "anscript\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\022/\n\005wo" + + "rds\030\003 \003(\0132 .google.cloud.speech.v2.WordI" + + "nfo\"\243\001\n\010WordInfo\022/\n\014start_offset\030\001 \001(\0132\031" + + ".google.protobuf.Duration\022-\n\nend_offset\030" + + "\002 \001(\0132\031.google.protobuf.Duration\022\014\n\004word" + + "\030\003 \001(\t\022\022\n\nconfidence\030\004 \001(\002\022\025\n\rspeaker_la" + + "bel\030\006 \001(\t\"\314\001\n\027SpeechRecognitionResult\022J\n" + + "\014alternatives\030\001 \003(\01324.google.cloud.speec" + + "h.v2.SpeechRecognitionAlternative\022\023\n\013cha" + + "nnel_tag\030\002 \001(\005\0224\n\021result_end_offset\030\004 \001(" + + "\0132\031.google.protobuf.Duration\022\032\n\rlanguage" + + "_code\030\005 \001(\tB\003\340A\003\"\234\001\n\021RecognizeResponse\022@" + + "\n\007results\030\003 \003(\0132/.google.cloud.speech.v2" + + ".SpeechRecognitionResult\022E\n\010metadata\030\002 \001" + + "(\01323.google.cloud.speech.v2.RecognitionR" + + "esponseMetadata\"\321\002\n\034StreamingRecognition" + + "Features\022$\n\034enable_voice_activity_events" + + "\030\001 \001(\010\022\027\n\017interim_results\030\002 \001(\010\022i\n\026voice" + + "_activity_timeout\030\003 \001(\0132I.google.cloud.s" + + "peech.v2.StreamingRecognitionFeatures.Vo" + + "iceActivityTimeout\032\206\001\n\024VoiceActivityTime" + + "out\0227\n\024speech_start_timeout\030\001 \001(\0132\031.goog" + + "le.protobuf.Duration\0225\n\022speech_end_timeo" + + "ut\030\002 \001(\0132\031.google.protobuf.Duration\"\337\001\n\032" + + "StreamingRecognitionConfig\022>\n\006config\030\001 \001" + + "(\0132).google.cloud.speech.v2.RecognitionC" + + "onfigB\003\340A\002\022/\n\013config_mask\030\003 \001(\0132\032.google" + + ".protobuf.FieldMask\022P\n\022streaming_feature" + + "s\030\002 \001(\01324.google.cloud.speech.v2.Streami" + + "ngRecognitionFeatures\"\317\001\n\031StreamingRecog" + + "nizeRequest\022<\n\nrecognizer\030\003 \001(\tB(\340A\002\372A\"\n" + + " speech.googleapis.com/Recognizer\022N\n\020str" + + "eaming_config\030\006 \001(\01322.google.cloud.speec" + + "h.v2.StreamingRecognitionConfigH\000\022\017\n\005aud" + + "io\030\005 \001(\014H\000B\023\n\021streaming_request\"\210\004\n\025Batc" + + "hRecognizeRequest\022<\n\nrecognizer\030\001 \001(\tB(\340" + + "A\002\372A\"\n speech.googleapis.com/Recognizer\022" + "9\n\006config\030\004 \001(\0132).google.cloud.speech.v2" + ".RecognitionConfig\022/\n\013config_mask\030\005 \001(\0132" - + "\032.google.protobuf.FieldMaskB\016\n\014audio_sou" - + "rce\"\364\001\n\032StreamingRecognitionResult\022J\n\014al" - + "ternatives\030\001 \003(\01324.google.cloud.speech.v" - + "2.SpeechRecognitionAlternative\022\020\n\010is_fin" - + "al\030\002 \001(\010\022\021\n\tstability\030\003 \001(\002\0224\n\021result_en" - + "d_offset\030\004 \001(\0132\031.google.protobuf.Duratio" - + "n\022\023\n\013channel_tag\030\005 \001(\005\022\032\n\rlanguage_code\030" - + "\006 \001(\tB\003\340A\003\"\307\003\n\032StreamingRecognizeRespons" - + "e\022C\n\007results\030\006 \003(\01322.google.cloud.speech" - + ".v2.StreamingRecognitionResult\022]\n\021speech" - + "_event_type\030\003 \001(\0162B.google.cloud.speech." - + "v2.StreamingRecognizeResponse.SpeechEven" - + "tType\0226\n\023speech_event_offset\030\007 \001(\0132\031.goo" - + "gle.protobuf.Duration\022E\n\010metadata\030\005 \001(\0132" - + "3.google.cloud.speech.v2.RecognitionResp" - + "onseMetadata\"\205\001\n\017SpeechEventType\022!\n\035SPEE" - + "CH_EVENT_TYPE_UNSPECIFIED\020\000\022\033\n\027END_OF_SI" - + "NGLE_UTTERANCE\020\001\022\031\n\025SPEECH_ACTIVITY_BEGI" - + "N\020\002\022\027\n\023SPEECH_ACTIVITY_END\020\003\"\350\001\n\006Config\022" - + "\024\n\004name\030\001 \001(\tB\006\340A\003\340A\010\022?\n\014kms_key_name\030\002 " - + "\001(\tB)\340A\001\372A#\n!cloudkms.googleapis.com/Cry" - + "ptoKey\0224\n\013update_time\030\003 \001(\0132\032.google.pro" - + "tobuf.TimestampB\003\340A\003:Q\352AN\n\034speech.google" - + "apis.com/Config\022.projects/{project}/loca" - + "tions/{location}/config\"F\n\020GetConfigRequ" - + "est\0222\n\004name\030\001 \001(\tB$\340A\002\372A\036\n\034speech.google" - + "apis.com/Config\"{\n\023UpdateConfigRequest\0223" - + "\n\006config\030\001 \001(\0132\036.google.cloud.speech.v2." - + "ConfigB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.googl" - + "e.protobuf.FieldMask\"\255\007\n\013CustomClass\022\024\n\004" - + "name\030\001 \001(\tB\006\340A\003\340A\010\022\020\n\003uid\030\002 \001(\tB\003\340A\003\022\031\n\014" - + "display_name\030\004 \001(\tB\003\340A\001\022<\n\005items\030\005 \003(\0132-" - + ".google.cloud.speech.v2.CustomClass.Clas" - + "sItem\022=\n\005state\030\017 \001(\0162).google.cloud.spee" - + "ch.v2.CustomClass.StateB\003\340A\003\0224\n\013create_t" - + "ime\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340" - + "A\003\0224\n\013update_time\030\007 \001(\0132\032.google.protobu" - + "f.TimestampB\003\340A\003\0224\n\013delete_time\030\010 \001(\0132\032." - + "google.protobuf.TimestampB\003\340A\003\0224\n\013expire" - + "_time\030\t \001(\0132\032.google.protobuf.TimestampB" - + "\003\340A\003\022N\n\013annotations\030\n \003(\01324.google.cloud" - + ".speech.v2.CustomClass.AnnotationsEntryB" - + "\003\340A\001\022\021\n\004etag\030\013 \001(\tB\003\340A\003\022\030\n\013reconciling\030\014" - + " \001(\010B\003\340A\003\022?\n\014kms_key_name\030\r \001(\tB)\340A\003\372A#\n" - + "!cloudkms.googleapis.com/CryptoKey\022N\n\024km" - + "s_key_version_name\030\016 \001(\tB0\340A\003\372A*\n(cloudk" - + "ms.googleapis.com/CryptoKeyVersion\032\032\n\tCl" - + "assItem\022\r\n\005value\030\001 \001(\t\0322\n\020AnnotationsEnt" - + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"7\n\005St" - + "ate\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\002\022\013" - + "\n\007DELETED\020\004:o\352Al\n!speech.googleapis.com/" - + "CustomClass\022Dprojects/{project}/location" - + "s/{location}/customClasses/{custom_class" - + "}R\001\001\"\256\007\n\tPhraseSet\022\024\n\004name\030\001 \001(\tB\006\340A\003\340A\010" - + "\022\020\n\003uid\030\002 \001(\tB\003\340A\003\0229\n\007phrases\030\003 \003(\0132(.go" - + "ogle.cloud.speech.v2.PhraseSet.Phrase\022\r\n" - + "\005boost\030\004 \001(\002\022\024\n\014display_name\030\005 \001(\t\022;\n\005st" - + "ate\030\017 \001(\0162\'.google.cloud.speech.v2.Phras" - + "eSet.StateB\003\340A\003\0224\n\013create_time\030\006 \001(\0132\032.g" - + "oogle.protobuf.TimestampB\003\340A\003\0224\n\013update_" - + "time\030\007 \001(\0132\032.google.protobuf.TimestampB\003" - + "\340A\003\0224\n\013delete_time\030\010 \001(\0132\032.google.protob" - + "uf.TimestampB\003\340A\003\0224\n\013expire_time\030\t \001(\0132\032" - + ".google.protobuf.TimestampB\003\340A\003\022G\n\013annot" - + "ations\030\n \003(\01322.google.cloud.speech.v2.Ph" - + "raseSet.AnnotationsEntry\022\021\n\004etag\030\013 \001(\tB\003" - + "\340A\003\022\030\n\013reconciling\030\014 \001(\010B\003\340A\003\022?\n\014kms_key" - + "_name\030\r \001(\tB)\340A\003\372A#\n!cloudkms.googleapis" - + ".com/CryptoKey\022N\n\024kms_key_version_name\030\016" - + " \001(\tB0\340A\003\372A*\n(cloudkms.googleapis.com/Cr" - + "yptoKeyVersion\032&\n\006Phrase\022\r\n\005value\030\001 \001(\t\022" - + "\r\n\005boost\030\002 \001(\002\0322\n\020AnnotationsEntry\022\013\n\003ke" - + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"7\n\005State\022\025\n\021S" - + "TATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\002\022\013\n\007DELETE" - + "D\020\004:h\352Ae\n\037speech.googleapis.com/PhraseSe" - + "t\022?projects/{project}/locations/{locatio" - + "n}/phraseSets/{phrase_set}R\001\001\"\305\001\n\030Create" - + "CustomClassRequest\022>\n\014custom_class\030\001 \001(\013" - + "2#.google.cloud.speech.v2.CustomClassB\003\340" - + "A\002\022\025\n\rvalidate_only\030\002 \001(\010\022\027\n\017custom_clas" - + "s_id\030\003 \001(\t\0229\n\006parent\030\004 \001(\tB)\340A\002\372A#\022!spee" - + "ch.googleapis.com/CustomClass\"\222\001\n\030ListCu" - + "stomClassesRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372" - + "A#\n!locations.googleapis.com/Location\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\024\n\014" - + "show_deleted\030\004 \001(\010\"q\n\031ListCustomClassesR" - + "esponse\022;\n\016custom_classes\030\001 \003(\0132#.google" - + ".cloud.speech.v2.CustomClass\022\027\n\017next_pag" - + "e_token\030\002 \001(\t\"P\n\025GetCustomClassRequest\0227" - + "\n\004name\030\001 \001(\tB)\340A\002\372A#\n!speech.googleapis." - + "com/CustomClass\"\242\001\n\030UpdateCustomClassReq" - + "uest\022>\n\014custom_class\030\001 \001(\0132#.google.clou" - + "d.speech.v2.CustomClassB\003\340A\002\022/\n\013update_m" - + "ask\030\002 \001(\0132\032.google.protobuf.FieldMask\022\025\n" - + "\rvalidate_only\030\004 \001(\010\"\217\001\n\030DeleteCustomCla" - + "ssRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!speech." - + "googleapis.com/CustomClass\022\025\n\rvalidate_o" - + "nly\030\002 \001(\010\022\025\n\rallow_missing\030\004 \001(\010\022\014\n\004etag" - + "\030\003 \001(\t\"z\n\032UndeleteCustomClassRequest\0227\n\004" - + "name\030\001 \001(\tB)\340A\002\372A#\n!speech.googleapis.co" - + "m/CustomClass\022\025\n\rvalidate_only\030\003 \001(\010\022\014\n\004" - + "etag\030\004 \001(\t\"\273\001\n\026CreatePhraseSetRequest\022:\n" - + "\nphrase_set\030\001 \001(\0132!.google.cloud.speech." - + "v2.PhraseSetB\003\340A\002\022\025\n\rvalidate_only\030\002 \001(\010" - + "\022\025\n\rphrase_set_id\030\003 \001(\t\0227\n\006parent\030\004 \001(\tB" - + "\'\340A\002\372A!\022\037speech.googleapis.com/PhraseSet" - + "\"\217\001\n\025ListPhraseSetsRequest\0229\n\006parent\030\001 \001" - + "(\tB)\340A\002\372A#\n!locations.googleapis.com/Loc" - + "ation\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003" - + " \001(\t\022\024\n\014show_deleted\030\004 \001(\010\"i\n\026ListPhrase" - + "SetsResponse\0226\n\013phrase_sets\030\001 \003(\0132!.goog" - + "le.cloud.speech.v2.PhraseSet\022\027\n\017next_pag" - + "e_token\030\002 \001(\t\"L\n\023GetPhraseSetRequest\0225\n\004" - + "name\030\001 \001(\tB\'\340A\002\372A!\n\037speech.googleapis.co" - + "m/PhraseSet\"\234\001\n\026UpdatePhraseSetRequest\022:" - + "\n\nphrase_set\030\001 \001(\0132!.google.cloud.speech" - + ".v2.PhraseSetB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132" - + "\032.google.protobuf.FieldMask\022\025\n\rvalidate_" - + "only\030\004 \001(\010\"\213\001\n\026DeletePhraseSetRequest\0225\n" - + "\004name\030\001 \001(\tB\'\340A\002\372A!\n\037speech.googleapis.c" - + "om/PhraseSet\022\025\n\rvalidate_only\030\002 \001(\010\022\025\n\ra" - + "llow_missing\030\004 \001(\010\022\014\n\004etag\030\003 \001(\t\"v\n\030Unde" - + "letePhraseSetRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372" - + "A!\n\037speech.googleapis.com/PhraseSet\022\025\n\rv" - + "alidate_only\030\003 \001(\010\022\014\n\004etag\030\004 \001(\t2\277%\n\006Spe" - + "ech\022\354\001\n\020CreateRecognizer\022/.google.cloud." - + "speech.v2.CreateRecognizerRequest\032\035.goog" - + "le.longrunning.Operation\"\207\001\312A\037\n\nRecogniz" - + "er\022\021OperationMetadata\332A\037parent,recognize" - + "r,recognizer_id\202\323\344\223\002=\"//v2/{parent=proje" - + "cts/*/locations/*}/recognizers:\nrecogniz" - + "er\022\264\001\n\017ListRecognizers\022..google.cloud.sp" - + "eech.v2.ListRecognizersRequest\032/.google." - + "cloud.speech.v2.ListRecognizersResponse\"" - + "@\332A\006parent\202\323\344\223\0021\022//v2/{parent=projects/*" - + "/locations/*}/recognizers\022\241\001\n\rGetRecogni" - + "zer\022,.google.cloud.speech.v2.GetRecogniz" - + "erRequest\032\".google.cloud.speech.v2.Recog" - + "nizer\">\332A\004name\202\323\344\223\0021\022//v2/{name=projects" - + "/*/locations/*/recognizers/*}\022\356\001\n\020Update" - + "Recognizer\022/.google.cloud.speech.v2.Upda" - + "teRecognizerRequest\032\035.google.longrunning" - + ".Operation\"\211\001\312A\037\n\nRecognizer\022\021OperationM" - + "etadata\332A\026recognizer,update_mask\202\323\344\223\002H2:" - + "/v2/{recognizer.name=projects/*/location" - + "s/*/recognizers/*}:\nrecognizer\022\304\001\n\020Delet", - "eRecognizer\022/.google.cloud.speech.v2.Del" - + "eteRecognizerRequest\032\035.google.longrunnin" - + "g.Operation\"`\312A\037\n\nRecognizer\022\021OperationM" - + "etadata\332A\004name\202\323\344\223\0021*//v2/{name=projects" - + "/*/locations/*/recognizers/*}\022\324\001\n\022Undele" - + "teRecognizer\0221.google.cloud.speech.v2.Un" - + "deleteRecognizerRequest\032\035.google.longrun" - + "ning.Operation\"l\312A\037\n\nRecognizer\022\021Operati" - + "onMetadata\332A\004name\202\323\344\223\002=\"8/v2/{name=proje" - + "cts/*/locations/*/recognizers/*}:undelet" - + "e:\001*\022\371\001\n\tRecognize\022(.google.cloud.speech" - + ".v2.RecognizeRequest\032).google.cloud.spee" - + "ch.v2.RecognizeResponse\"\226\001\332A%recognizer," - + "config,config_mask,content\332A!recognizer," - + "config,config_mask,uri\202\323\344\223\002D\"?/v2/{recog" - + "nizer=projects/*/locations/*/recognizers" - + "/*}:recognize:\001*\022\201\001\n\022StreamingRecognize\022" - + "1.google.cloud.speech.v2.StreamingRecogn" - + "izeRequest\0322.google.cloud.speech.v2.Stre" - + "amingRecognizeResponse\"\000(\0010\001\022\204\002\n\016BatchRe" - + "cognize\022-.google.cloud.speech.v2.BatchRe" - + "cognizeRequest\032\035.google.longrunning.Oper" - + "ation\"\243\001\312A+\n\026BatchRecognizeResponse\022\021Ope" - + "rationMetadata\332A#recognizer,config,confi" - + "g_mask,files\202\323\344\223\002I\"D/v2/{recognizer=proj" - + "ects/*/locations/*/recognizers/*}:batchR" - + "ecognize:\001*\022\216\001\n\tGetConfig\022(.google.cloud" - + ".speech.v2.GetConfigRequest\032\036.google.clo" - + "ud.speech.v2.Config\"7\332A\004name\202\323\344\223\002*\022(/v2/" - + "{name=projects/*/locations/*/config}\022\261\001\n" - + "\014UpdateConfig\022+.google.cloud.speech.v2.U" - + "pdateConfigRequest\032\036.google.cloud.speech" - + ".v2.Config\"T\332A\022config,update_mask\202\323\344\223\00292" - + "//v2/{config.name=projects/*/locations/*" - + "/config}:\006config\022\367\001\n\021CreateCustomClass\0220" - + ".google.cloud.speech.v2.CreateCustomClas" - + "sRequest\032\035.google.longrunning.Operation\"" - + "\220\001\312A \n\013CustomClass\022\021OperationMetadata\332A#" - + "parent,custom_class,custom_class_id\202\323\344\223\002" - + "A\"1/v2/{parent=projects/*/locations/*}/c" - + "ustomClasses:\014custom_class\022\274\001\n\021ListCusto" - + "mClasses\0220.google.cloud.speech.v2.ListCu" - + "stomClassesRequest\0321.google.cloud.speech" - + ".v2.ListCustomClassesResponse\"B\332A\006parent" - + "\202\323\344\223\0023\0221/v2/{parent=projects/*/locations" - + "/*}/customClasses\022\246\001\n\016GetCustomClass\022-.g" - + "oogle.cloud.speech.v2.GetCustomClassRequ" - + "est\032#.google.cloud.speech.v2.CustomClass" - + "\"@\332A\004name\202\323\344\223\0023\0221/v2/{name=projects/*/lo" - + "cations/*/customClasses/*}\022\371\001\n\021UpdateCus" - + "tomClass\0220.google.cloud.speech.v2.Update" - + "CustomClassRequest\032\035.google.longrunning." - + "Operation\"\222\001\312A \n\013CustomClass\022\021OperationM" - + "etadata\332A\030custom_class,update_mask\202\323\344\223\002N" - + "2>/v2/{custom_class.name=projects/*/loca" - + "tions/*/customClasses/*}:\014custom_class\022\311" - + "\001\n\021DeleteCustomClass\0220.google.cloud.spee" - + "ch.v2.DeleteCustomClassRequest\032\035.google." - + "longrunning.Operation\"c\312A \n\013CustomClass\022" - + "\021OperationMetadata\332A\004name\202\323\344\223\0023*1/v2/{na" - + "me=projects/*/locations/*/customClasses/" - + "*}\022\331\001\n\023UndeleteCustomClass\0222.google.clou" - + "d.speech.v2.UndeleteCustomClassRequest\032\035" - + ".google.longrunning.Operation\"o\312A \n\013Cust" - + "omClass\022\021OperationMetadata\332A\004name\202\323\344\223\002?\"" - + ":/v2/{name=projects/*/locations/*/custom" - + "Classes/*}:undelete:\001*\022\350\001\n\017CreatePhraseS" - + "et\022..google.cloud.speech.v2.CreatePhrase" - + "SetRequest\032\035.google.longrunning.Operatio" - + "n\"\205\001\312A\036\n\tPhraseSet\022\021OperationMetadata\332A\037" - + "parent,phrase_set,phrase_set_id\202\323\344\223\002<\"./" - + "v2/{parent=projects/*/locations/*}/phras" - + "eSets:\nphrase_set\022\260\001\n\016ListPhraseSets\022-.g" - + "oogle.cloud.speech.v2.ListPhraseSetsRequ" - + "est\032..google.cloud.speech.v2.ListPhraseS" - + "etsResponse\"?\332A\006parent\202\323\344\223\0020\022./v2/{paren" - + "t=projects/*/locations/*}/phraseSets\022\235\001\n" - + "\014GetPhraseSet\022+.google.cloud.speech.v2.G" - + "etPhraseSetRequest\032!.google.cloud.speech" - + ".v2.PhraseSet\"=\332A\004name\202\323\344\223\0020\022./v2/{name=" - + "projects/*/locations/*/phraseSets/*}\022\352\001\n" - + "\017UpdatePhraseSet\022..google.cloud.speech.v" - + "2.UpdatePhraseSetRequest\032\035.google.longru" - + "nning.Operation\"\207\001\312A\036\n\tPhraseSet\022\021Operat" - + "ionMetadata\332A\026phrase_set,update_mask\202\323\344\223" - + "\002G29/v2/{phrase_set.name=projects/*/loca" - + "tions/*/phraseSets/*}:\nphrase_set\022\300\001\n\017De" - + "letePhraseSet\022..google.cloud.speech.v2.D" - + "eletePhraseSetRequest\032\035.google.longrunni" - + "ng.Operation\"^\312A\036\n\tPhraseSet\022\021OperationM" - + "etadata\332A\004name\202\323\344\223\0020*./v2/{name=projects" - + "/*/locations/*/phraseSets/*}\022\320\001\n\021Undelet" - + "ePhraseSet\0220.google.cloud.speech.v2.Unde" - + "letePhraseSetRequest\032\035.google.longrunnin" - + "g.Operation\"j\312A\036\n\tPhraseSet\022\021OperationMe" - + "tadata\332A\004name\202\323\344\223\002<\"7/v2/{name=projects/" - + "*/locations/*/phraseSets/*}:undelete:\001*\032" - + "I\312A\025speech.googleapis.com\322A.https://www." - + "googleapis.com/auth/cloud-platformB\211\003\n\032c" - + "om.google.cloud.speech.v2B\020CloudSpeechPr" - + "otoP\001Z2cloud.google.com/go/speech/apiv2/" - + "speechpb;speechpb\352Ax\n!cloudkms.googleapi" - + "s.com/CryptoKey\022Sprojects/{project}/loca" - + "tions/{location}/keyRings/{key_ring}/cry" - + "ptoKeys/{crypto_key}\352A\246\001\n(cloudkms.googl" - + "eapis.com/CryptoKeyVersion\022zprojects/{pr" - + "oject}/locations/{location}/keyRings/{ke" - + "y_ring}/cryptoKeys/{crypto_key}/cryptoKe" - + "yVersions/{crypto_key_version}b\006proto3" + + "\032.google.protobuf.FieldMask\022A\n\005files\030\003 \003" + + "(\01322.google.cloud.speech.v2.BatchRecogni" + + "zeFileMetadata\022R\n\031recognition_output_con" + + "fig\030\006 \001(\0132/.google.cloud.speech.v2.Recog" + + "nitionOutputConfig\022]\n\023processing_strateg" + + "y\030\007 \001(\0162@.google.cloud.speech.v2.BatchRe" + + "cognizeRequest.ProcessingStrategy\"O\n\022Pro" + + "cessingStrategy\022#\n\037PROCESSING_STRATEGY_U" + + "NSPECIFIED\020\000\022\024\n\020DYNAMIC_BATCHING\020\001\"\036\n\017Gc" + + "sOutputConfig\022\013\n\003uri\030\001 \001(\t\"\024\n\022InlineOutp" + + "utConfig\"\036\n\034NativeOutputFileFormatConfig" + + "\"\033\n\031VttOutputFileFormatConfig\"\033\n\031SrtOutp" + + "utFileFormatConfig\"\332\001\n\022OutputFormatConfi" + + "g\022D\n\006native\030\001 \001(\01324.google.cloud.speech." + + "v2.NativeOutputFileFormatConfig\022>\n\003vtt\030\002" + + " \001(\01321.google.cloud.speech.v2.VttOutputF" + + "ileFormatConfig\022>\n\003srt\030\003 \001(\01321.google.cl" + + "oud.speech.v2.SrtOutputFileFormatConfig\"" + + "\206\002\n\027RecognitionOutputConfig\022D\n\021gcs_outpu" + + "t_config\030\001 \001(\0132\'.google.cloud.speech.v2." + + "GcsOutputConfigH\000\022L\n\026inline_response_con" + + "fig\030\002 \001(\0132*.google.cloud.speech.v2.Inlin" + + "eOutputConfigH\000\022M\n\024output_format_config\030" + + "\003 \001(\0132*.google.cloud.speech.v2.OutputFor" + + "matConfigB\003\340A\001B\010\n\006output\"\202\002\n\026BatchRecogn" + + "izeResponse\022L\n\007results\030\001 \003(\0132;.google.cl" + + "oud.speech.v2.BatchRecognizeResponse.Res" + + "ultsEntry\0228\n\025total_billed_duration\030\002 \001(\013" + + "2\031.google.protobuf.Duration\032`\n\014ResultsEn" + + "try\022\013\n\003key\030\001 \001(\t\022?\n\005value\030\002 \001(\01320.google" + + ".cloud.speech.v2.BatchRecognizeFileResul" + + "t:\0028\001\"\240\001\n\025BatchRecognizeResults\022@\n\007resul" + + "ts\030\001 \003(\0132/.google.cloud.speech.v2.Speech" + + "RecognitionResult\022E\n\010metadata\030\002 \001(\01323.go" + + "ogle.cloud.speech.v2.RecognitionResponse" + + "Metadata\"Q\n\022CloudStorageResult\022\013\n\003uri\030\001 " + + "\001(\t\022\026\n\016vtt_format_uri\030\002 \001(\t\022\026\n\016srt_forma" + + "t_uri\030\003 \001(\t\"}\n\014InlineResult\022A\n\ntranscrip" + + "t\030\001 \001(\0132-.google.cloud.speech.v2.BatchRe" + + "cognizeResults\022\024\n\014vtt_captions\030\002 \001(\t\022\024\n\014" + + "srt_captions\030\003 \001(\t\"\361\002\n\030BatchRecognizeFil" + + "eResult\022!\n\005error\030\002 \001(\0132\022.google.rpc.Stat" + + "us\022E\n\010metadata\030\003 \001(\01323.google.cloud.spee" + + "ch.v2.RecognitionResponseMetadata\022J\n\024clo" + + "ud_storage_result\030\005 \001(\0132*.google.cloud.s" + + "peech.v2.CloudStorageResultH\000\022=\n\rinline_" + + "result\030\006 \001(\0132$.google.cloud.speech.v2.In" + + "lineResultH\000\022\017\n\003uri\030\001 \001(\tB\002\030\001\022E\n\ntranscr" + + "ipt\030\004 \001(\0132-.google.cloud.speech.v2.Batch" + + "RecognizeResultsB\002\030\001B\010\n\006result\"o\n#BatchR" + + "ecognizeTranscriptionMetadata\022\030\n\020progres" + + "s_percent\030\001 \001(\005\022!\n\005error\030\002 \001(\0132\022.google." + + "rpc.Status\022\013\n\003uri\030\003 \001(\t\"\376\001\n\026BatchRecogni" + + "zeMetadata\022i\n\026transcription_metadata\030\001 \003" + + "(\0132I.google.cloud.speech.v2.BatchRecogni" + + "zeMetadata.TranscriptionMetadataEntry\032y\n" + + "\032TranscriptionMetadataEntry\022\013\n\003key\030\001 \001(\t" + + "\022J\n\005value\030\002 \001(\0132;.google.cloud.speech.v2" + + ".BatchRecognizeTranscriptionMetadata:\0028\001" + + "\"\247\001\n\032BatchRecognizeFileMetadata\022\r\n\003uri\030\001" + + " \001(\tH\000\0229\n\006config\030\004 \001(\0132).google.cloud.sp" + + "eech.v2.RecognitionConfig\022/\n\013config_mask" + + "\030\005 \001(\0132\032.google.protobuf.FieldMaskB\016\n\014au" + + "dio_source\"\364\001\n\032StreamingRecognitionResul" + + "t\022J\n\014alternatives\030\001 \003(\01324.google.cloud.s" + + "peech.v2.SpeechRecognitionAlternative\022\020\n" + + "\010is_final\030\002 \001(\010\022\021\n\tstability\030\003 \001(\002\0224\n\021re" + + "sult_end_offset\030\004 \001(\0132\031.google.protobuf." + + "Duration\022\023\n\013channel_tag\030\005 \001(\005\022\032\n\rlanguag" + + "e_code\030\006 \001(\tB\003\340A\003\"\307\003\n\032StreamingRecognize" + + "Response\022C\n\007results\030\006 \003(\01322.google.cloud" + + ".speech.v2.StreamingRecognitionResult\022]\n" + + "\021speech_event_type\030\003 \001(\0162B.google.cloud." + + "speech.v2.StreamingRecognizeResponse.Spe" + + "echEventType\0226\n\023speech_event_offset\030\007 \001(" + + "\0132\031.google.protobuf.Duration\022E\n\010metadata" + + "\030\005 \001(\01323.google.cloud.speech.v2.Recognit" + + "ionResponseMetadata\"\205\001\n\017SpeechEventType\022" + + "!\n\035SPEECH_EVENT_TYPE_UNSPECIFIED\020\000\022\033\n\027EN" + + "D_OF_SINGLE_UTTERANCE\020\001\022\031\n\025SPEECH_ACTIVI" + + "TY_BEGIN\020\002\022\027\n\023SPEECH_ACTIVITY_END\020\003\"\350\001\n\006" + + "Config\022\024\n\004name\030\001 \001(\tB\006\340A\003\340A\010\022?\n\014kms_key_" + + "name\030\002 \001(\tB)\340A\001\372A#\n!cloudkms.googleapis." + + "com/CryptoKey\0224\n\013update_time\030\003 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\003:Q\352AN\n\034speech" + + ".googleapis.com/Config\022.projects/{projec" + + "t}/locations/{location}/config\"F\n\020GetCon" + + "figRequest\0222\n\004name\030\001 \001(\tB$\340A\002\372A\036\n\034speech" + + ".googleapis.com/Config\"{\n\023UpdateConfigRe" + + "quest\0223\n\006config\030\001 \001(\0132\036.google.cloud.spe" + + "ech.v2.ConfigB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132" + + "\032.google.protobuf.FieldMask\"\255\007\n\013CustomCl" + + "ass\022\024\n\004name\030\001 \001(\tB\006\340A\003\340A\010\022\020\n\003uid\030\002 \001(\tB\003" + + "\340A\003\022\031\n\014display_name\030\004 \001(\tB\003\340A\001\022<\n\005items\030" + + "\005 \003(\0132-.google.cloud.speech.v2.CustomCla" + + "ss.ClassItem\022=\n\005state\030\017 \001(\0162).google.clo" + + "ud.speech.v2.CustomClass.StateB\003\340A\003\0224\n\013c" + + "reate_time\030\006 \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\0224\n\013update_time\030\007 \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\0224\n\013delete_time\030\010" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013expire_time\030\t \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\003\022N\n\013annotations\030\n \003(\01324.googl" + + "e.cloud.speech.v2.CustomClass.Annotation" + + "sEntryB\003\340A\001\022\021\n\004etag\030\013 \001(\tB\003\340A\003\022\030\n\013reconc" + + "iling\030\014 \001(\010B\003\340A\003\022?\n\014kms_key_name\030\r \001(\tB)" + + "\340A\003\372A#\n!cloudkms.googleapis.com/CryptoKe" + + "y\022N\n\024kms_key_version_name\030\016 \001(\tB0\340A\003\372A*\n" + + "(cloudkms.googleapis.com/CryptoKeyVersio" + + "n\032\032\n\tClassItem\022\r\n\005value\030\001 \001(\t\0322\n\020Annotat" + + "ionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001\"7\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACT" + + "IVE\020\002\022\013\n\007DELETED\020\004:o\352Al\n!speech.googleap" + + "is.com/CustomClass\022Dprojects/{project}/l" + + "ocations/{location}/customClasses/{custo" + + "m_class}R\001\001\"\256\007\n\tPhraseSet\022\024\n\004name\030\001 \001(\tB" + + "\006\340A\003\340A\010\022\020\n\003uid\030\002 \001(\tB\003\340A\003\0229\n\007phrases\030\003 \003" + + "(\0132(.google.cloud.speech.v2.PhraseSet.Ph" + + "rase\022\r\n\005boost\030\004 \001(\002\022\024\n\014display_name\030\005 \001(" + + "\t\022;\n\005state\030\017 \001(\0162\'.google.cloud.speech.v" + + "2.PhraseSet.StateB\003\340A\003\0224\n\013create_time\030\006 " + + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013" + + "update_time\030\007 \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\0224\n\013delete_time\030\010 \001(\0132\032.google" + + ".protobuf.TimestampB\003\340A\003\0224\n\013expire_time\030" + + "\t \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022G" + + "\n\013annotations\030\n \003(\01322.google.cloud.speec" + + "h.v2.PhraseSet.AnnotationsEntry\022\021\n\004etag\030" + + "\013 \001(\tB\003\340A\003\022\030\n\013reconciling\030\014 \001(\010B\003\340A\003\022?\n\014" + + "kms_key_name\030\r \001(\tB)\340A\003\372A#\n!cloudkms.goo" + + "gleapis.com/CryptoKey\022N\n\024kms_key_version" + + "_name\030\016 \001(\tB0\340A\003\372A*\n(cloudkms.googleapis" + + ".com/CryptoKeyVersion\032&\n\006Phrase\022\r\n\005value" + + "\030\001 \001(\t\022\r\n\005boost\030\002 \001(\002\0322\n\020AnnotationsEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"7\n\005Sta" + + "te\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\002\022\013\n" + + "\007DELETED\020\004:h\352Ae\n\037speech.googleapis.com/P" + + "hraseSet\022?projects/{project}/locations/{" + + "location}/phraseSets/{phrase_set}R\001\001\"\305\001\n" + + "\030CreateCustomClassRequest\022>\n\014custom_clas" + + "s\030\001 \001(\0132#.google.cloud.speech.v2.CustomC" + + "lassB\003\340A\002\022\025\n\rvalidate_only\030\002 \001(\010\022\027\n\017cust" + + "om_class_id\030\003 \001(\t\0229\n\006parent\030\004 \001(\tB)\340A\002\372A" + + "#\022!speech.googleapis.com/CustomClass\"\222\001\n" + + "\030ListCustomClassesRequest\0229\n\006parent\030\001 \001(" + + "\tB)\340A\002\372A#\n!locations.googleapis.com/Loca" + + "tion\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " + + "\001(\t\022\024\n\014show_deleted\030\004 \001(\010\"q\n\031ListCustomC" + + "lassesResponse\022;\n\016custom_classes\030\001 \003(\0132#" + + ".google.cloud.speech.v2.CustomClass\022\027\n\017n" + + "ext_page_token\030\002 \001(\t\"P\n\025GetCustomClassRe" + + "quest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!speech.goog" + + "leapis.com/CustomClass\"\242\001\n\030UpdateCustomC" + + "lassRequest\022>\n\014custom_class\030\001 \001(\0132#.goog" + + "le.cloud.speech.v2.CustomClassB\003\340A\002\022/\n\013u" + + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field" + + "Mask\022\025\n\rvalidate_only\030\004 \001(\010\"\217\001\n\030DeleteCu" + + "stomClassRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!" + + "speech.googleapis.com/CustomClass\022\025\n\rval" + + "idate_only\030\002 \001(\010\022\025\n\rallow_missing\030\004 \001(\010\022" + + "\014\n\004etag\030\003 \001(\t\"z\n\032UndeleteCustomClassRequ" + + "est\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!speech.google" + + "apis.com/CustomClass\022\025\n\rvalidate_only\030\003 " + + "\001(\010\022\014\n\004etag\030\004 \001(\t\"\273\001\n\026CreatePhraseSetReq" + + "uest\022:\n\nphrase_set\030\001 \001(\0132!.google.cloud." + + "speech.v2.PhraseSetB\003\340A\002\022\025\n\rvalidate_onl" + + "y\030\002 \001(\010\022\025\n\rphrase_set_id\030\003 \001(\t\0227\n\006parent" + + "\030\004 \001(\tB\'\340A\002\372A!\022\037speech.googleapis.com/Ph" + + "raseSet\"\217\001\n\025ListPhraseSetsRequest\0229\n\006par" + + "ent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis." + + "com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_" + + "token\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001(\010\"i\n\026Lis" + + "tPhraseSetsResponse\0226\n\013phrase_sets\030\001 \003(\013" + + "2!.google.cloud.speech.v2.PhraseSet\022\027\n\017n" + + "ext_page_token\030\002 \001(\t\"L\n\023GetPhraseSetRequ" + + "est\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037speech.google" + + "apis.com/PhraseSet\"\234\001\n\026UpdatePhraseSetRe" + + "quest\022:\n\nphrase_set\030\001 \001(\0132!.google.cloud" + + ".speech.v2.PhraseSetB\003\340A\002\022/\n\013update_mask" + + "\030\002 \001(\0132\032.google.protobuf.FieldMask\022\025\n\rva" + + "lidate_only\030\004 \001(\010\"\213\001\n\026DeletePhraseSetReq" + + "uest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037speech.googl" + + "eapis.com/PhraseSet\022\025\n\rvalidate_only\030\002 \001" + + "(\010\022\025\n\rallow_missing\030\004 \001(\010\022\014\n\004etag\030\003 \001(\t\"" + + "v\n\030UndeletePhraseSetRequest\0225\n\004name\030\001 \001(" + + "\tB\'\340A\002\372A!\n\037speech.googleapis.com/PhraseS" + + "et\022\025\n\rvalidate_only\030\003 \001(\010\022\014\n\004etag\030\004 \001(\t2" + + "\277%\n\006Speech\022\354\001\n\020CreateRecognizer\022/.google" + + ".cloud.speech.v2.CreateRecognizerRequest" + + "\032\035.google.longrunning.Operation\"\207\001\312A\037\n\nR" + + "ecognizer\022\021OperationMetadata\332A\037parent,re" + + "cognizer,recognizer_id\202\323\344\223\002=\"//v2/{paren" + + "t=projects/*/locations/*}/recognizers:\nr" + + "ecognizer\022\264\001\n\017ListRecognizers\022..google.c" + + "loud.speech.v2.ListRecognizersRequest\032/." + + "google.cloud.speech.v2.ListRecognizersRe" + + "sponse\"@\332A\006parent\202\323\344\223\0021\022//v2/{parent=pro" + + "jects/*/locations/*}/recognizers\022\241\001\n\rGet" + + "Recognizer\022,.google.cloud.speech.v2.GetR" + + "ecognizerRequest\032\".google.cloud.speech.v" + + "2.Recognizer\">\332A\004name\202\323\344\223\0021\022//v2/{name=p" + + "rojects/*/locations/*/recognizers/*}\022\356\001\n" + + "\020UpdateRecognizer\022/.google.cloud.speech." + + "v2.UpdateRecognizerRequest\032\035.google.long" + + "running.Operation\"\211\001\312A\037\n\nRecognizer\022\021Ope", + "rationMetadata\332A\026recognizer,update_mask\202" + + "\323\344\223\002H2:/v2/{recognizer.name=projects/*/l" + + "ocations/*/recognizers/*}:\nrecognizer\022\304\001" + + "\n\020DeleteRecognizer\022/.google.cloud.speech" + + ".v2.DeleteRecognizerRequest\032\035.google.lon" + + "grunning.Operation\"`\312A\037\n\nRecognizer\022\021Ope" + + "rationMetadata\332A\004name\202\323\344\223\0021*//v2/{name=p" + + "rojects/*/locations/*/recognizers/*}\022\324\001\n" + + "\022UndeleteRecognizer\0221.google.cloud.speec" + + "h.v2.UndeleteRecognizerRequest\032\035.google." + + "longrunning.Operation\"l\312A\037\n\nRecognizer\022\021" + + "OperationMetadata\332A\004name\202\323\344\223\002=\"8/v2/{nam" + + "e=projects/*/locations/*/recognizers/*}:" + + "undelete:\001*\022\371\001\n\tRecognize\022(.google.cloud" + + ".speech.v2.RecognizeRequest\032).google.clo" + + "ud.speech.v2.RecognizeResponse\"\226\001\332A%reco" + + "gnizer,config,config_mask,content\332A!reco" + + "gnizer,config,config_mask,uri\202\323\344\223\002D\"?/v2" + + "/{recognizer=projects/*/locations/*/reco" + + "gnizers/*}:recognize:\001*\022\201\001\n\022StreamingRec" + + "ognize\0221.google.cloud.speech.v2.Streamin" + + "gRecognizeRequest\0322.google.cloud.speech." + + "v2.StreamingRecognizeResponse\"\000(\0010\001\022\204\002\n\016" + + "BatchRecognize\022-.google.cloud.speech.v2." + + "BatchRecognizeRequest\032\035.google.longrunni" + + "ng.Operation\"\243\001\312A+\n\026BatchRecognizeRespon" + + "se\022\021OperationMetadata\332A#recognizer,confi" + + "g,config_mask,files\202\323\344\223\002I\"D/v2/{recogniz" + + "er=projects/*/locations/*/recognizers/*}" + + ":batchRecognize:\001*\022\216\001\n\tGetConfig\022(.googl" + + "e.cloud.speech.v2.GetConfigRequest\032\036.goo" + + "gle.cloud.speech.v2.Config\"7\332A\004name\202\323\344\223\002" + + "*\022(/v2/{name=projects/*/locations/*/conf" + + "ig}\022\261\001\n\014UpdateConfig\022+.google.cloud.spee" + + "ch.v2.UpdateConfigRequest\032\036.google.cloud" + + ".speech.v2.Config\"T\332A\022config,update_mask" + + "\202\323\344\223\00292//v2/{config.name=projects/*/loca" + + "tions/*/config}:\006config\022\367\001\n\021CreateCustom" + + "Class\0220.google.cloud.speech.v2.CreateCus" + + "tomClassRequest\032\035.google.longrunning.Ope" + + "ration\"\220\001\312A \n\013CustomClass\022\021OperationMeta" + + "data\332A#parent,custom_class,custom_class_" + + "id\202\323\344\223\002A\"1/v2/{parent=projects/*/locatio" + + "ns/*}/customClasses:\014custom_class\022\274\001\n\021Li" + + "stCustomClasses\0220.google.cloud.speech.v2" + + ".ListCustomClassesRequest\0321.google.cloud" + + ".speech.v2.ListCustomClassesResponse\"B\332A" + + "\006parent\202\323\344\223\0023\0221/v2/{parent=projects/*/lo" + + "cations/*}/customClasses\022\246\001\n\016GetCustomCl" + + "ass\022-.google.cloud.speech.v2.GetCustomCl" + + "assRequest\032#.google.cloud.speech.v2.Cust" + + "omClass\"@\332A\004name\202\323\344\223\0023\0221/v2/{name=projec" + + "ts/*/locations/*/customClasses/*}\022\371\001\n\021Up" + + "dateCustomClass\0220.google.cloud.speech.v2" + + ".UpdateCustomClassRequest\032\035.google.longr" + + "unning.Operation\"\222\001\312A \n\013CustomClass\022\021Ope" + + "rationMetadata\332A\030custom_class,update_mas" + + "k\202\323\344\223\002N2>/v2/{custom_class.name=projects" + + "/*/locations/*/customClasses/*}:\014custom_" + + "class\022\311\001\n\021DeleteCustomClass\0220.google.clo" + + "ud.speech.v2.DeleteCustomClassRequest\032\035." + + "google.longrunning.Operation\"c\312A \n\013Custo" + + "mClass\022\021OperationMetadata\332A\004name\202\323\344\223\0023*1" + + "/v2/{name=projects/*/locations/*/customC" + + "lasses/*}\022\331\001\n\023UndeleteCustomClass\0222.goog" + + "le.cloud.speech.v2.UndeleteCustomClassRe" + + "quest\032\035.google.longrunning.Operation\"o\312A" + + " \n\013CustomClass\022\021OperationMetadata\332A\004name" + + "\202\323\344\223\002?\":/v2/{name=projects/*/locations/*" + + "/customClasses/*}:undelete:\001*\022\350\001\n\017Create" + + "PhraseSet\022..google.cloud.speech.v2.Creat" + + "ePhraseSetRequest\032\035.google.longrunning.O" + + "peration\"\205\001\312A\036\n\tPhraseSet\022\021OperationMeta" + + "data\332A\037parent,phrase_set,phrase_set_id\202\323" + + "\344\223\002<\"./v2/{parent=projects/*/locations/*" + + "}/phraseSets:\nphrase_set\022\260\001\n\016ListPhraseS" + + "ets\022-.google.cloud.speech.v2.ListPhraseS" + + "etsRequest\032..google.cloud.speech.v2.List" + + "PhraseSetsResponse\"?\332A\006parent\202\323\344\223\0020\022./v2" + + "/{parent=projects/*/locations/*}/phraseS" + + "ets\022\235\001\n\014GetPhraseSet\022+.google.cloud.spee" + + "ch.v2.GetPhraseSetRequest\032!.google.cloud" + + ".speech.v2.PhraseSet\"=\332A\004name\202\323\344\223\0020\022./v2" + + "/{name=projects/*/locations/*/phraseSets" + + "/*}\022\352\001\n\017UpdatePhraseSet\022..google.cloud.s" + + "peech.v2.UpdatePhraseSetRequest\032\035.google" + + ".longrunning.Operation\"\207\001\312A\036\n\tPhraseSet\022" + + "\021OperationMetadata\332A\026phrase_set,update_m" + + "ask\202\323\344\223\002G29/v2/{phrase_set.name=projects" + + "/*/locations/*/phraseSets/*}:\nphrase_set" + + "\022\300\001\n\017DeletePhraseSet\022..google.cloud.spee" + + "ch.v2.DeletePhraseSetRequest\032\035.google.lo" + + "ngrunning.Operation\"^\312A\036\n\tPhraseSet\022\021Ope" + + "rationMetadata\332A\004name\202\323\344\223\0020*./v2/{name=p" + + "rojects/*/locations/*/phraseSets/*}\022\320\001\n\021" + + "UndeletePhraseSet\0220.google.cloud.speech." + + "v2.UndeletePhraseSetRequest\032\035.google.lon" + + "grunning.Operation\"j\312A\036\n\tPhraseSet\022\021Oper" + + "ationMetadata\332A\004name\202\323\344\223\002<\"7/v2/{name=pr" + + "ojects/*/locations/*/phraseSets/*}:undel" + + "ete:\001*\032I\312A\025speech.googleapis.com\322A.https" + + "://www.googleapis.com/auth/cloud-platfor" + + "mB\211\003\n\032com.google.cloud.speech.v2B\020CloudS" + + "peechProtoP\001Z2cloud.google.com/go/speech" + + "/apiv2/speechpb;speechpb\352Ax\n!cloudkms.go" + + "ogleapis.com/CryptoKey\022Sprojects/{projec" + + "t}/locations/{location}/keyRings/{key_ri" + + "ng}/cryptoKeys/{crypto_key}\352A\246\001\n(cloudkm" + + "s.googleapis.com/CryptoKeyVersion\022zproje" + + "cts/{project}/locations/{location}/keyRi" + + "ngs/{key_ring}/cryptoKeys/{crypto_key}/c" + + "ryptoKeyVersions/{crypto_key_version}b\006p" + + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1023,8 +1031,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Search", "Replace", "CaseSensitive", }); - internal_static_google_cloud_speech_v2_SpeechAdaptation_descriptor = + internal_static_google_cloud_speech_v2_TranslationConfig_descriptor = getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_speech_v2_TranslationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v2_TranslationConfig_descriptor, + new java.lang.String[] { + "TargetLanguage", + }); + internal_static_google_cloud_speech_v2_SpeechAdaptation_descriptor = + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_speech_v2_SpeechAdaptation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_SpeechAdaptation_descriptor, @@ -1040,7 +1056,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PhraseSet", "InlinePhraseSet", "Value", }); internal_static_google_cloud_speech_v2_RecognitionConfig_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_speech_v2_RecognitionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_RecognitionConfig_descriptor, @@ -1052,10 +1068,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Features", "Adaptation", "TranscriptNormalization", + "TranslationConfig", "DecodingConfig", }); internal_static_google_cloud_speech_v2_RecognizeRequest_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_speech_v2_RecognizeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_RecognizeRequest_descriptor, @@ -1063,7 +1080,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Recognizer", "Config", "ConfigMask", "Content", "Uri", "AudioSource", }); internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_descriptor, @@ -1071,7 +1088,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TotalBilledDuration", }); internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_descriptor, @@ -1079,7 +1096,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Transcript", "Confidence", "Words", }); internal_static_google_cloud_speech_v2_WordInfo_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_speech_v2_WordInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_WordInfo_descriptor, @@ -1087,7 +1104,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StartOffset", "EndOffset", "Word", "Confidence", "SpeakerLabel", }); internal_static_google_cloud_speech_v2_SpeechRecognitionResult_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_speech_v2_SpeechRecognitionResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_SpeechRecognitionResult_descriptor, @@ -1095,7 +1112,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Alternatives", "ChannelTag", "ResultEndOffset", "LanguageCode", }); internal_static_google_cloud_speech_v2_RecognizeResponse_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_speech_v2_RecognizeResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_RecognizeResponse_descriptor, @@ -1103,7 +1120,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Results", "Metadata", }); internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_descriptor, @@ -1121,7 +1138,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SpeechStartTimeout", "SpeechEndTimeout", }); internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_descriptor, @@ -1129,7 +1146,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Config", "ConfigMask", "StreamingFeatures", }); internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_descriptor, @@ -1137,7 +1154,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Recognizer", "StreamingConfig", "Audio", "StreamingRequest", }); internal_static_google_cloud_speech_v2_BatchRecognizeRequest_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_speech_v2_BatchRecognizeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_BatchRecognizeRequest_descriptor, @@ -1150,7 +1167,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProcessingStrategy", }); internal_static_google_cloud_speech_v2_GcsOutputConfig_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_speech_v2_GcsOutputConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_GcsOutputConfig_descriptor, @@ -1158,31 +1175,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Uri", }); internal_static_google_cloud_speech_v2_InlineOutputConfig_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_speech_v2_InlineOutputConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_InlineOutputConfig_descriptor, new java.lang.String[] {}); internal_static_google_cloud_speech_v2_NativeOutputFileFormatConfig_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_speech_v2_NativeOutputFileFormatConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_NativeOutputFileFormatConfig_descriptor, new java.lang.String[] {}); internal_static_google_cloud_speech_v2_VttOutputFileFormatConfig_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_speech_v2_VttOutputFileFormatConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_VttOutputFileFormatConfig_descriptor, new java.lang.String[] {}); internal_static_google_cloud_speech_v2_SrtOutputFileFormatConfig_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_speech_v2_SrtOutputFileFormatConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_SrtOutputFileFormatConfig_descriptor, new java.lang.String[] {}); internal_static_google_cloud_speech_v2_OutputFormatConfig_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(32); internal_static_google_cloud_speech_v2_OutputFormatConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_OutputFormatConfig_descriptor, @@ -1190,7 +1207,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Native", "Vtt", "Srt", }); internal_static_google_cloud_speech_v2_RecognitionOutputConfig_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(33); internal_static_google_cloud_speech_v2_RecognitionOutputConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_RecognitionOutputConfig_descriptor, @@ -1198,7 +1215,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GcsOutputConfig", "InlineResponseConfig", "OutputFormatConfig", "Output", }); internal_static_google_cloud_speech_v2_BatchRecognizeResponse_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(34); internal_static_google_cloud_speech_v2_BatchRecognizeResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_BatchRecognizeResponse_descriptor, @@ -1216,7 +1233,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_speech_v2_BatchRecognizeResults_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(35); internal_static_google_cloud_speech_v2_BatchRecognizeResults_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_BatchRecognizeResults_descriptor, @@ -1224,7 +1241,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Results", "Metadata", }); internal_static_google_cloud_speech_v2_CloudStorageResult_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(36); internal_static_google_cloud_speech_v2_CloudStorageResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_CloudStorageResult_descriptor, @@ -1232,7 +1249,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Uri", "VttFormatUri", "SrtFormatUri", }); internal_static_google_cloud_speech_v2_InlineResult_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(37); internal_static_google_cloud_speech_v2_InlineResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_InlineResult_descriptor, @@ -1240,7 +1257,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Transcript", "VttCaptions", "SrtCaptions", }); internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(38); internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_descriptor, @@ -1254,7 +1271,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Result", }); internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(39); internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_descriptor, @@ -1262,7 +1279,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProgressPercent", "Error", "Uri", }); internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(40); internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_descriptor, @@ -1280,7 +1297,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(41); internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_descriptor, @@ -1288,7 +1305,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Uri", "Config", "ConfigMask", "AudioSource", }); internal_static_google_cloud_speech_v2_StreamingRecognitionResult_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(42); internal_static_google_cloud_speech_v2_StreamingRecognitionResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_StreamingRecognitionResult_descriptor, @@ -1301,7 +1318,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LanguageCode", }); internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(43); internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_descriptor, @@ -1309,7 +1326,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Results", "SpeechEventType", "SpeechEventOffset", "Metadata", }); internal_static_google_cloud_speech_v2_Config_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageTypes().get(44); internal_static_google_cloud_speech_v2_Config_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_Config_descriptor, @@ -1317,7 +1334,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "KmsKeyName", "UpdateTime", }); internal_static_google_cloud_speech_v2_GetConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(44); + getDescriptor().getMessageTypes().get(45); internal_static_google_cloud_speech_v2_GetConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_GetConfigRequest_descriptor, @@ -1325,7 +1342,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_speech_v2_UpdateConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(45); + getDescriptor().getMessageTypes().get(46); internal_static_google_cloud_speech_v2_UpdateConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_UpdateConfigRequest_descriptor, @@ -1333,7 +1350,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Config", "UpdateMask", }); internal_static_google_cloud_speech_v2_CustomClass_descriptor = - getDescriptor().getMessageTypes().get(46); + getDescriptor().getMessageTypes().get(47); internal_static_google_cloud_speech_v2_CustomClass_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_CustomClass_descriptor, @@ -1370,7 +1387,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_speech_v2_PhraseSet_descriptor = - getDescriptor().getMessageTypes().get(47); + getDescriptor().getMessageTypes().get(48); internal_static_google_cloud_speech_v2_PhraseSet_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_PhraseSet_descriptor, @@ -1408,7 +1425,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_speech_v2_CreateCustomClassRequest_descriptor = - getDescriptor().getMessageTypes().get(48); + getDescriptor().getMessageTypes().get(49); internal_static_google_cloud_speech_v2_CreateCustomClassRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_CreateCustomClassRequest_descriptor, @@ -1416,7 +1433,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CustomClass", "ValidateOnly", "CustomClassId", "Parent", }); internal_static_google_cloud_speech_v2_ListCustomClassesRequest_descriptor = - getDescriptor().getMessageTypes().get(49); + getDescriptor().getMessageTypes().get(50); internal_static_google_cloud_speech_v2_ListCustomClassesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_ListCustomClassesRequest_descriptor, @@ -1424,7 +1441,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "ShowDeleted", }); internal_static_google_cloud_speech_v2_ListCustomClassesResponse_descriptor = - getDescriptor().getMessageTypes().get(50); + getDescriptor().getMessageTypes().get(51); internal_static_google_cloud_speech_v2_ListCustomClassesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_ListCustomClassesResponse_descriptor, @@ -1432,7 +1449,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CustomClasses", "NextPageToken", }); internal_static_google_cloud_speech_v2_GetCustomClassRequest_descriptor = - getDescriptor().getMessageTypes().get(51); + getDescriptor().getMessageTypes().get(52); internal_static_google_cloud_speech_v2_GetCustomClassRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_GetCustomClassRequest_descriptor, @@ -1440,7 +1457,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_descriptor = - getDescriptor().getMessageTypes().get(52); + getDescriptor().getMessageTypes().get(53); internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_descriptor, @@ -1448,7 +1465,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CustomClass", "UpdateMask", "ValidateOnly", }); internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_descriptor = - getDescriptor().getMessageTypes().get(53); + getDescriptor().getMessageTypes().get(54); internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_descriptor, @@ -1456,7 +1473,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "ValidateOnly", "AllowMissing", "Etag", }); internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_descriptor = - getDescriptor().getMessageTypes().get(54); + getDescriptor().getMessageTypes().get(55); internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_descriptor, @@ -1464,7 +1481,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "ValidateOnly", "Etag", }); internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_descriptor = - getDescriptor().getMessageTypes().get(55); + getDescriptor().getMessageTypes().get(56); internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_descriptor, @@ -1472,7 +1489,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PhraseSet", "ValidateOnly", "PhraseSetId", "Parent", }); internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_descriptor = - getDescriptor().getMessageTypes().get(56); + getDescriptor().getMessageTypes().get(57); internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_descriptor, @@ -1480,7 +1497,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "ShowDeleted", }); internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_descriptor = - getDescriptor().getMessageTypes().get(57); + getDescriptor().getMessageTypes().get(58); internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_descriptor, @@ -1488,7 +1505,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PhraseSets", "NextPageToken", }); internal_static_google_cloud_speech_v2_GetPhraseSetRequest_descriptor = - getDescriptor().getMessageTypes().get(58); + getDescriptor().getMessageTypes().get(59); internal_static_google_cloud_speech_v2_GetPhraseSetRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_GetPhraseSetRequest_descriptor, @@ -1496,7 +1513,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_descriptor = - getDescriptor().getMessageTypes().get(59); + getDescriptor().getMessageTypes().get(60); internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_descriptor, @@ -1504,7 +1521,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PhraseSet", "UpdateMask", "ValidateOnly", }); internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_descriptor = - getDescriptor().getMessageTypes().get(60); + getDescriptor().getMessageTypes().get(61); internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_descriptor, @@ -1512,7 +1529,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "ValidateOnly", "AllowMissing", "Etag", }); internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_descriptor = - getDescriptor().getMessageTypes().get(61); + getDescriptor().getMessageTypes().get(62); internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_descriptor, diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfig.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfig.java index 949d134f079b..3a6f9ea432d9 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfig.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfig.java @@ -565,6 +565,65 @@ public com.google.cloud.speech.v2.TranscriptNormalization getTranscriptNormaliza : transcriptNormalization_; } + public static final int TRANSLATION_CONFIG_FIELD_NUMBER = 15; + private com.google.cloud.speech.v2.TranslationConfig translationConfig_; + /** + * + * + *
+   * Optional. Optional configuration used to automatically run translation on
+   * the given audio to the desired language for supported models.
+   * 
+ * + * + * .google.cloud.speech.v2.TranslationConfig translation_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the translationConfig field is set. + */ + @java.lang.Override + public boolean hasTranslationConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+   * Optional. Optional configuration used to automatically run translation on
+   * the given audio to the desired language for supported models.
+   * 
+ * + * + * .google.cloud.speech.v2.TranslationConfig translation_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The translationConfig. + */ + @java.lang.Override + public com.google.cloud.speech.v2.TranslationConfig getTranslationConfig() { + return translationConfig_ == null + ? com.google.cloud.speech.v2.TranslationConfig.getDefaultInstance() + : translationConfig_; + } + /** + * + * + *
+   * Optional. Optional configuration used to automatically run translation on
+   * the given audio to the desired language for supported models.
+   * 
+ * + * + * .google.cloud.speech.v2.TranslationConfig translation_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.speech.v2.TranslationConfigOrBuilder getTranslationConfigOrBuilder() { + return translationConfig_ == null + ? com.google.cloud.speech.v2.TranslationConfig.getDefaultInstance() + : translationConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -600,6 +659,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(11, getTranscriptNormalization()); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(15, getTranslationConfig()); + } getUnknownFields().writeTo(output); } @@ -641,6 +703,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 11, getTranscriptNormalization()); } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getTranslationConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -671,6 +736,10 @@ public boolean equals(final java.lang.Object obj) { if (hasTranscriptNormalization()) { if (!getTranscriptNormalization().equals(other.getTranscriptNormalization())) return false; } + if (hasTranslationConfig() != other.hasTranslationConfig()) return false; + if (hasTranslationConfig()) { + if (!getTranslationConfig().equals(other.getTranslationConfig())) return false; + } if (!getDecodingConfigCase().equals(other.getDecodingConfigCase())) return false; switch (decodingConfigCase_) { case 7: @@ -711,6 +780,10 @@ public int hashCode() { hash = (37 * hash) + TRANSCRIPT_NORMALIZATION_FIELD_NUMBER; hash = (53 * hash) + getTranscriptNormalization().hashCode(); } + if (hasTranslationConfig()) { + hash = (37 * hash) + TRANSLATION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getTranslationConfig().hashCode(); + } switch (decodingConfigCase_) { case 7: hash = (37 * hash) + AUTO_DECODING_CONFIG_FIELD_NUMBER; @@ -867,6 +940,7 @@ private void maybeForceBuilderInitialization() { getFeaturesFieldBuilder(); getAdaptationFieldBuilder(); getTranscriptNormalizationFieldBuilder(); + getTranslationConfigFieldBuilder(); } } @@ -897,6 +971,11 @@ public Builder clear() { transcriptNormalizationBuilder_.dispose(); transcriptNormalizationBuilder_ = null; } + translationConfig_ = null; + if (translationConfigBuilder_ != null) { + translationConfigBuilder_.dispose(); + translationConfigBuilder_ = null; + } decodingConfigCase_ = 0; decodingConfig_ = null; return this; @@ -959,6 +1038,13 @@ private void buildPartial0(com.google.cloud.speech.v2.RecognitionConfig result) : transcriptNormalizationBuilder_.build(); to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.translationConfig_ = + translationConfigBuilder_ == null + ? translationConfig_ + : translationConfigBuilder_.build(); + to_bitField0_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; } @@ -1042,6 +1128,9 @@ public Builder mergeFrom(com.google.cloud.speech.v2.RecognitionConfig other) { if (other.hasTranscriptNormalization()) { mergeTranscriptNormalization(other.getTranscriptNormalization()); } + if (other.hasTranslationConfig()) { + mergeTranslationConfig(other.getTranslationConfig()); + } switch (other.getDecodingConfigCase()) { case AUTO_DECODING_CONFIG: { @@ -1130,6 +1219,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 90 + case 122: + { + input.readMessage( + getTranslationConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 122 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2637,6 +2733,220 @@ public Builder clearTranscriptNormalization() { return transcriptNormalizationBuilder_; } + private com.google.cloud.speech.v2.TranslationConfig translationConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.TranslationConfig, + com.google.cloud.speech.v2.TranslationConfig.Builder, + com.google.cloud.speech.v2.TranslationConfigOrBuilder> + translationConfigBuilder_; + /** + * + * + *
+     * Optional. Optional configuration used to automatically run translation on
+     * the given audio to the desired language for supported models.
+     * 
+ * + * + * .google.cloud.speech.v2.TranslationConfig translation_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the translationConfig field is set. + */ + public boolean hasTranslationConfig() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
+     * Optional. Optional configuration used to automatically run translation on
+     * the given audio to the desired language for supported models.
+     * 
+ * + * + * .google.cloud.speech.v2.TranslationConfig translation_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The translationConfig. + */ + public com.google.cloud.speech.v2.TranslationConfig getTranslationConfig() { + if (translationConfigBuilder_ == null) { + return translationConfig_ == null + ? com.google.cloud.speech.v2.TranslationConfig.getDefaultInstance() + : translationConfig_; + } else { + return translationConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Optional configuration used to automatically run translation on
+     * the given audio to the desired language for supported models.
+     * 
+ * + * + * .google.cloud.speech.v2.TranslationConfig translation_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTranslationConfig(com.google.cloud.speech.v2.TranslationConfig value) { + if (translationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + translationConfig_ = value; + } else { + translationConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Optional configuration used to automatically run translation on
+     * the given audio to the desired language for supported models.
+     * 
+ * + * + * .google.cloud.speech.v2.TranslationConfig translation_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTranslationConfig( + com.google.cloud.speech.v2.TranslationConfig.Builder builderForValue) { + if (translationConfigBuilder_ == null) { + translationConfig_ = builderForValue.build(); + } else { + translationConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Optional configuration used to automatically run translation on
+     * the given audio to the desired language for supported models.
+     * 
+ * + * + * .google.cloud.speech.v2.TranslationConfig translation_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeTranslationConfig(com.google.cloud.speech.v2.TranslationConfig value) { + if (translationConfigBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && translationConfig_ != null + && translationConfig_ + != com.google.cloud.speech.v2.TranslationConfig.getDefaultInstance()) { + getTranslationConfigBuilder().mergeFrom(value); + } else { + translationConfig_ = value; + } + } else { + translationConfigBuilder_.mergeFrom(value); + } + if (translationConfig_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Optional configuration used to automatically run translation on
+     * the given audio to the desired language for supported models.
+     * 
+ * + * + * .google.cloud.speech.v2.TranslationConfig translation_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTranslationConfig() { + bitField0_ = (bitField0_ & ~0x00000080); + translationConfig_ = null; + if (translationConfigBuilder_ != null) { + translationConfigBuilder_.dispose(); + translationConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Optional configuration used to automatically run translation on
+     * the given audio to the desired language for supported models.
+     * 
+ * + * + * .google.cloud.speech.v2.TranslationConfig translation_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.speech.v2.TranslationConfig.Builder getTranslationConfigBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getTranslationConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Optional configuration used to automatically run translation on
+     * the given audio to the desired language for supported models.
+     * 
+ * + * + * .google.cloud.speech.v2.TranslationConfig translation_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.speech.v2.TranslationConfigOrBuilder getTranslationConfigOrBuilder() { + if (translationConfigBuilder_ != null) { + return translationConfigBuilder_.getMessageOrBuilder(); + } else { + return translationConfig_ == null + ? com.google.cloud.speech.v2.TranslationConfig.getDefaultInstance() + : translationConfig_; + } + } + /** + * + * + *
+     * Optional. Optional configuration used to automatically run translation on
+     * the given audio to the desired language for supported models.
+     * 
+ * + * + * .google.cloud.speech.v2.TranslationConfig translation_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.TranslationConfig, + com.google.cloud.speech.v2.TranslationConfig.Builder, + com.google.cloud.speech.v2.TranslationConfigOrBuilder> + getTranslationConfigFieldBuilder() { + if (translationConfigBuilder_ == null) { + translationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.TranslationConfig, + com.google.cloud.speech.v2.TranslationConfig.Builder, + com.google.cloud.speech.v2.TranslationConfigOrBuilder>( + getTranslationConfig(), getParentForChildren(), isClean()); + translationConfig_ = null; + } + return translationConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfigOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfigOrBuilder.java index afaccb549a0e..85ab62eaf925 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfigOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfigOrBuilder.java @@ -355,5 +355,49 @@ public interface RecognitionConfigOrBuilder */ com.google.cloud.speech.v2.TranscriptNormalizationOrBuilder getTranscriptNormalizationOrBuilder(); + /** + * + * + *
+   * Optional. Optional configuration used to automatically run translation on
+   * the given audio to the desired language for supported models.
+   * 
+ * + * + * .google.cloud.speech.v2.TranslationConfig translation_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the translationConfig field is set. + */ + boolean hasTranslationConfig(); + /** + * + * + *
+   * Optional. Optional configuration used to automatically run translation on
+   * the given audio to the desired language for supported models.
+   * 
+ * + * + * .google.cloud.speech.v2.TranslationConfig translation_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The translationConfig. + */ + com.google.cloud.speech.v2.TranslationConfig getTranslationConfig(); + /** + * + * + *
+   * Optional. Optional configuration used to automatically run translation on
+   * the given audio to the desired language for supported models.
+   * 
+ * + * + * .google.cloud.speech.v2.TranslationConfig translation_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.speech.v2.TranslationConfigOrBuilder getTranslationConfigOrBuilder(); + com.google.cloud.speech.v2.RecognitionConfig.DecodingConfigCase getDecodingConfigCase(); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/TranslationConfig.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/TranslationConfig.java new file mode 100644 index 000000000000..42a8886087b0 --- /dev/null +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/TranslationConfig.java @@ -0,0 +1,626 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v2/cloud_speech.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.speech.v2; + +/** + * + * + *
+ * Translation configuration. Use to translate the given audio into text for the
+ * desired language.
+ * 
+ * + * Protobuf type {@code google.cloud.speech.v2.TranslationConfig} + */ +public final class TranslationConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.TranslationConfig) + TranslationConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use TranslationConfig.newBuilder() to construct. + private TranslationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TranslationConfig() { + targetLanguage_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TranslationConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_TranslationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_TranslationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.speech.v2.TranslationConfig.class, + com.google.cloud.speech.v2.TranslationConfig.Builder.class); + } + + public static final int TARGET_LANGUAGE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object targetLanguage_ = ""; + /** + * + * + *
+   * Required. The language code to translate to.
+   * 
+ * + * string target_language = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The targetLanguage. + */ + @java.lang.Override + public java.lang.String getTargetLanguage() { + java.lang.Object ref = targetLanguage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetLanguage_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The language code to translate to.
+   * 
+ * + * string target_language = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for targetLanguage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetLanguageBytes() { + java.lang.Object ref = targetLanguage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetLanguage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetLanguage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, targetLanguage_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetLanguage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, targetLanguage_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.speech.v2.TranslationConfig)) { + return super.equals(obj); + } + com.google.cloud.speech.v2.TranslationConfig other = + (com.google.cloud.speech.v2.TranslationConfig) obj; + + if (!getTargetLanguage().equals(other.getTargetLanguage())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TARGET_LANGUAGE_FIELD_NUMBER; + hash = (53 * hash) + getTargetLanguage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.speech.v2.TranslationConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.speech.v2.TranslationConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.speech.v2.TranslationConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.speech.v2.TranslationConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.speech.v2.TranslationConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.speech.v2.TranslationConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.speech.v2.TranslationConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.speech.v2.TranslationConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.speech.v2.TranslationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.speech.v2.TranslationConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.speech.v2.TranslationConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.speech.v2.TranslationConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.speech.v2.TranslationConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Translation configuration. Use to translate the given audio into text for the
+   * desired language.
+   * 
+ * + * Protobuf type {@code google.cloud.speech.v2.TranslationConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.speech.v2.TranslationConfig) + com.google.cloud.speech.v2.TranslationConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_TranslationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_TranslationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.speech.v2.TranslationConfig.class, + com.google.cloud.speech.v2.TranslationConfig.Builder.class); + } + + // Construct using com.google.cloud.speech.v2.TranslationConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + targetLanguage_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_TranslationConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.speech.v2.TranslationConfig getDefaultInstanceForType() { + return com.google.cloud.speech.v2.TranslationConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.speech.v2.TranslationConfig build() { + com.google.cloud.speech.v2.TranslationConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.speech.v2.TranslationConfig buildPartial() { + com.google.cloud.speech.v2.TranslationConfig result = + new com.google.cloud.speech.v2.TranslationConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.speech.v2.TranslationConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.targetLanguage_ = targetLanguage_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.speech.v2.TranslationConfig) { + return mergeFrom((com.google.cloud.speech.v2.TranslationConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.speech.v2.TranslationConfig other) { + if (other == com.google.cloud.speech.v2.TranslationConfig.getDefaultInstance()) return this; + if (!other.getTargetLanguage().isEmpty()) { + targetLanguage_ = other.targetLanguage_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + targetLanguage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object targetLanguage_ = ""; + /** + * + * + *
+     * Required. The language code to translate to.
+     * 
+ * + * string target_language = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The targetLanguage. + */ + public java.lang.String getTargetLanguage() { + java.lang.Object ref = targetLanguage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetLanguage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The language code to translate to.
+     * 
+ * + * string target_language = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for targetLanguage. + */ + public com.google.protobuf.ByteString getTargetLanguageBytes() { + java.lang.Object ref = targetLanguage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetLanguage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The language code to translate to.
+     * 
+ * + * string target_language = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The targetLanguage to set. + * @return This builder for chaining. + */ + public Builder setTargetLanguage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + targetLanguage_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The language code to translate to.
+     * 
+ * + * string target_language = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTargetLanguage() { + targetLanguage_ = getDefaultInstance().getTargetLanguage(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The language code to translate to.
+     * 
+ * + * string target_language = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for targetLanguage to set. + * @return This builder for chaining. + */ + public Builder setTargetLanguageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetLanguage_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.TranslationConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.TranslationConfig) + private static final com.google.cloud.speech.v2.TranslationConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.speech.v2.TranslationConfig(); + } + + public static com.google.cloud.speech.v2.TranslationConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.speech.v2.TranslationConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/TranslationConfigOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/TranslationConfigOrBuilder.java new file mode 100644 index 000000000000..5b7328a5635e --- /dev/null +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/TranslationConfigOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v2/cloud_speech.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.speech.v2; + +public interface TranslationConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.TranslationConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The language code to translate to.
+   * 
+ * + * string target_language = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The targetLanguage. + */ + java.lang.String getTargetLanguage(); + /** + * + * + *
+   * Required. The language code to translate to.
+   * 
+ * + * string target_language = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for targetLanguage. + */ + com.google.protobuf.ByteString getTargetLanguageBytes(); +} diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/proto/google/cloud/speech/v2/cloud_speech.proto b/java-speech/proto-google-cloud-speech-v2/src/main/proto/google/cloud/speech/v2/cloud_speech.proto index a8f23239e0c4..3e7b979a0e69 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/proto/google/cloud/speech/v2/cloud_speech.proto +++ b/java-speech/proto-google-cloud-speech-v2/src/main/proto/google/cloud/speech/v2/cloud_speech.proto @@ -865,6 +865,13 @@ message TranscriptNormalization { repeated Entry entries = 1; } +// Translation configuration. Use to translate the given audio into text for the +// desired language. +message TranslationConfig { + // Required. The language code to translate to. + string target_language = 1 [(google.api.field_behavior) = REQUIRED]; +} + // Provides "hints" to the speech recognizer to favor specific words and phrases // in the results. PhraseSets can be specified as an inline resource, or a // reference to an existing PhraseSet resource. @@ -943,6 +950,11 @@ message RecognitionConfig { // and final transcripts. TranscriptNormalization transcript_normalization = 11 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Optional configuration used to automatically run translation on + // the given audio to the desired language for supported models. + TranslationConfig translation_config = 15 + [(google.api.field_behavior) = OPTIONAL]; } // Request message for the