diff --git a/java-dialogflow/README.md b/java-dialogflow/README.md index 8341d0be9e31..9ba0f45343d8 100644 --- a/java-dialogflow/README.md +++ b/java-dialogflow/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.17.0 + 26.18.0 pom import @@ -195,7 +195,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-dialogflow.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow/4.25.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow/4.26.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-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioConfigProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioConfigProto.java index 5b2d7f83eeae..32ddce8d5b81 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioConfigProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioConfigProto.java @@ -72,75 +72,77 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "g.proto\022\032google.cloud.dialogflow.v2\032\037goo" + "gle/api/field_behavior.proto\032\031google/api" + "/resource.proto\032\036google/protobuf/duratio" - + "n.proto\"/\n\rSpeechContext\022\017\n\007phrases\030\001 \003(" - + "\t\022\r\n\005boost\030\002 \001(\002\"\222\001\n\016SpeechWordInfo\022\014\n\004w" - + "ord\030\003 \001(\t\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\022\n\nconfidence\030" - + "\004 \001(\002\"\301\003\n\020InputAudioConfig\022A\n\016audio_enco" - + "ding\030\001 \001(\0162).google.cloud.dialogflow.v2." - + "AudioEncoding\022\031\n\021sample_rate_hertz\030\002 \001(\005" - + "\022\025\n\rlanguage_code\030\003 \001(\t\022\030\n\020enable_word_i" - + "nfo\030\r \001(\010\022\030\n\014phrase_hints\030\004 \003(\tB\002\030\001\022B\n\017s" - + "peech_contexts\030\013 \003(\0132).google.cloud.dial" - + "ogflow.v2.SpeechContext\022\r\n\005model\030\007 \001(\t\022E" - + "\n\rmodel_variant\030\n \001(\0162..google.cloud.dia" - + "logflow.v2.SpeechModelVariant\022\030\n\020single_" - + "utterance\030\010 \001(\010\022*\n\"disable_no_speech_rec" - + "ognized_event\030\016 \001(\010\022$\n\034enable_automatic_" - + "punctuation\030\021 \001(\010\"f\n\024VoiceSelectionParam" - + "s\022\014\n\004name\030\001 \001(\t\022@\n\013ssml_gender\030\002 \001(\0162+.g" - + "oogle.cloud.dialogflow.v2.SsmlVoiceGende" - + "r\"\263\001\n\026SynthesizeSpeechConfig\022\025\n\rspeaking" - + "_rate\030\001 \001(\001\022\r\n\005pitch\030\002 \001(\001\022\026\n\016volume_gai" - + "n_db\030\003 \001(\001\022\032\n\022effects_profile_id\030\005 \003(\t\022?" - + "\n\005voice\030\004 \001(\01320.google.cloud.dialogflow." - + "v2.VoiceSelectionParams\"\323\001\n\021OutputAudioC" - + "onfig\022M\n\016audio_encoding\030\001 \001(\0162/.google.c" - + "loud.dialogflow.v2.OutputAudioEncodingB\004" - + "\342A\001\002\022\031\n\021sample_rate_hertz\030\002 \001(\005\022T\n\030synth" - + "esize_speech_config\030\003 \001(\01322.google.cloud" - + ".dialogflow.v2.SynthesizeSpeechConfig\"U\n" - + "\023TelephonyDtmfEvents\022>\n\013dtmf_events\030\001 \003(" - + "\0162).google.cloud.dialogflow.v2.Telephony" - + "Dtmf\"q\n\022SpeechToTextConfig\022L\n\024speech_mod" - + "el_variant\030\001 \001(\0162..google.cloud.dialogfl" - + "ow.v2.SpeechModelVariant\022\r\n\005model\030\002 \001(\t*" - + "\373\001\n\rAudioEncoding\022\036\n\032AUDIO_ENCODING_UNSP" - + "ECIFIED\020\000\022\034\n\030AUDIO_ENCODING_LINEAR_16\020\001\022" - + "\027\n\023AUDIO_ENCODING_FLAC\020\002\022\030\n\024AUDIO_ENCODI" - + "NG_MULAW\020\003\022\026\n\022AUDIO_ENCODING_AMR\020\004\022\031\n\025AU" - + "DIO_ENCODING_AMR_WB\020\005\022\033\n\027AUDIO_ENCODING_" - + "OGG_OPUS\020\006\022)\n%AUDIO_ENCODING_SPEEX_WITH_" - + "HEADER_BYTE\020\007*v\n\022SpeechModelVariant\022$\n S" - + "PEECH_MODEL_VARIANT_UNSPECIFIED\020\000\022\026\n\022USE" - + "_BEST_AVAILABLE\020\001\022\020\n\014USE_STANDARD\020\002\022\020\n\014U" - + "SE_ENHANCED\020\003*\215\001\n\017SsmlVoiceGender\022!\n\035SSM" - + "L_VOICE_GENDER_UNSPECIFIED\020\000\022\032\n\026SSML_VOI" - + "CE_GENDER_MALE\020\001\022\034\n\030SSML_VOICE_GENDER_FE" - + "MALE\020\002\022\035\n\031SSML_VOICE_GENDER_NEUTRAL\020\003*\354\001" - + "\n\023OutputAudioEncoding\022%\n!OUTPUT_AUDIO_EN" - + "CODING_UNSPECIFIED\020\000\022#\n\037OUTPUT_AUDIO_ENC" - + "ODING_LINEAR_16\020\001\022\035\n\031OUTPUT_AUDIO_ENCODI" - + "NG_MP3\020\002\022%\n!OUTPUT_AUDIO_ENCODING_MP3_64" - + "_KBPS\020\004\022\"\n\036OUTPUT_AUDIO_ENCODING_OGG_OPU" - + "S\020\003\022\037\n\033OUTPUT_AUDIO_ENCODING_MULAW\020\005*\224\002\n" - + "\rTelephonyDtmf\022\036\n\032TELEPHONY_DTMF_UNSPECI" - + "FIED\020\000\022\014\n\010DTMF_ONE\020\001\022\014\n\010DTMF_TWO\020\002\022\016\n\nDT" - + "MF_THREE\020\003\022\r\n\tDTMF_FOUR\020\004\022\r\n\tDTMF_FIVE\020\005" - + "\022\014\n\010DTMF_SIX\020\006\022\016\n\nDTMF_SEVEN\020\007\022\016\n\nDTMF_E" - + "IGHT\020\010\022\r\n\tDTMF_NINE\020\t\022\r\n\tDTMF_ZERO\020\n\022\n\n\006" - + "DTMF_A\020\013\022\n\n\006DTMF_B\020\014\022\n\n\006DTMF_C\020\r\022\n\n\006DTMF" - + "_D\020\016\022\r\n\tDTMF_STAR\020\017\022\016\n\nDTMF_POUND\020\020B\326\002\n\036" - + "com.google.cloud.dialogflow.v2B\020AudioCon" - + "figProtoP\001Z>cloud.google.com/go/dialogfl" - + "ow/apiv2/dialogflowpb;dialogflowpb\370\001\001\242\002\002" - + "DF\252\002\032Google.Cloud.Dialogflow.V2\352AU\n\033auto" - + "ml.googleapis.com/Model\0226projects/{proje" - + "ct}/locations/{location}/models/{model}\352" - + "Ab\n\037speech.googleapis.com/PhraseSet\022?pro" - + "jects/{project}/locations/{location}/phr" - + "aseSets/{phrase_set}b\006proto3" + + "n.proto\";\n\rSpeechContext\022\025\n\007phrases\030\001 \003(" + + "\tB\004\342A\001\001\022\023\n\005boost\030\002 \001(\002B\004\342A\001\001\"\222\001\n\016SpeechW" + + "ordInfo\022\014\n\004word\030\003 \001(\t\022/\n\014start_offset\030\001 " + + "\001(\0132\031.google.protobuf.Duration\022-\n\nend_of" + + "fset\030\002 \001(\0132\031.google.protobuf.Duration\022\022\n" + + "\nconfidence\030\004 \001(\002\"\323\003\n\020InputAudioConfig\022G" + + "\n\016audio_encoding\030\001 \001(\0162).google.cloud.di" + + "alogflow.v2.AudioEncodingB\004\342A\001\002\022\037\n\021sampl" + + "e_rate_hertz\030\002 \001(\005B\004\342A\001\002\022\033\n\rlanguage_cod" + + "e\030\003 \001(\tB\004\342A\001\002\022\030\n\020enable_word_info\030\r \001(\010\022" + + "\030\n\014phrase_hints\030\004 \003(\tB\002\030\001\022B\n\017speech_cont" + + "exts\030\013 \003(\0132).google.cloud.dialogflow.v2." + + "SpeechContext\022\r\n\005model\030\007 \001(\t\022E\n\rmodel_va" + + "riant\030\n \001(\0162..google.cloud.dialogflow.v2" + + ".SpeechModelVariant\022\030\n\020single_utterance\030" + + "\010 \001(\010\022*\n\"disable_no_speech_recognized_ev" + + "ent\030\016 \001(\010\022$\n\034enable_automatic_punctuatio" + + "n\030\021 \001(\010\"r\n\024VoiceSelectionParams\022\022\n\004name\030" + + "\001 \001(\tB\004\342A\001\001\022F\n\013ssml_gender\030\002 \001(\0162+.googl" + + "e.cloud.dialogflow.v2.SsmlVoiceGenderB\004\342" + + "A\001\001\"\321\001\n\026SynthesizeSpeechConfig\022\033\n\rspeaki" + + "ng_rate\030\001 \001(\001B\004\342A\001\001\022\023\n\005pitch\030\002 \001(\001B\004\342A\001\001" + + "\022\034\n\016volume_gain_db\030\003 \001(\001B\004\342A\001\001\022 \n\022effect" + + "s_profile_id\030\005 \003(\tB\004\342A\001\001\022E\n\005voice\030\004 \001(\0132" + + "0.google.cloud.dialogflow.v2.VoiceSelect" + + "ionParamsB\004\342A\001\001\"\323\001\n\021OutputAudioConfig\022M\n" + + "\016audio_encoding\030\001 \001(\0162/.google.cloud.dia" + + "logflow.v2.OutputAudioEncodingB\004\342A\001\002\022\031\n\021" + + "sample_rate_hertz\030\002 \001(\005\022T\n\030synthesize_sp" + + "eech_config\030\003 \001(\01322.google.cloud.dialogf" + + "low.v2.SynthesizeSpeechConfig\"U\n\023Telepho" + + "nyDtmfEvents\022>\n\013dtmf_events\030\001 \003(\0162).goog" + + "le.cloud.dialogflow.v2.TelephonyDtmf\"q\n\022" + + "SpeechToTextConfig\022L\n\024speech_model_varia" + + "nt\030\001 \001(\0162..google.cloud.dialogflow.v2.Sp" + + "eechModelVariant\022\r\n\005model\030\002 \001(\t*\224\002\n\rTele" + + "phonyDtmf\022\036\n\032TELEPHONY_DTMF_UNSPECIFIED\020" + + "\000\022\014\n\010DTMF_ONE\020\001\022\014\n\010DTMF_TWO\020\002\022\016\n\nDTMF_TH" + + "REE\020\003\022\r\n\tDTMF_FOUR\020\004\022\r\n\tDTMF_FIVE\020\005\022\014\n\010D" + + "TMF_SIX\020\006\022\016\n\nDTMF_SEVEN\020\007\022\016\n\nDTMF_EIGHT\020" + + "\010\022\r\n\tDTMF_NINE\020\t\022\r\n\tDTMF_ZERO\020\n\022\n\n\006DTMF_" + + "A\020\013\022\n\n\006DTMF_B\020\014\022\n\n\006DTMF_C\020\r\022\n\n\006DTMF_D\020\016\022" + + "\r\n\tDTMF_STAR\020\017\022\016\n\nDTMF_POUND\020\020*\373\001\n\rAudio" + + "Encoding\022\036\n\032AUDIO_ENCODING_UNSPECIFIED\020\000" + + "\022\034\n\030AUDIO_ENCODING_LINEAR_16\020\001\022\027\n\023AUDIO_" + + "ENCODING_FLAC\020\002\022\030\n\024AUDIO_ENCODING_MULAW\020" + + "\003\022\026\n\022AUDIO_ENCODING_AMR\020\004\022\031\n\025AUDIO_ENCOD" + + "ING_AMR_WB\020\005\022\033\n\027AUDIO_ENCODING_OGG_OPUS\020" + + "\006\022)\n%AUDIO_ENCODING_SPEEX_WITH_HEADER_BY" + + "TE\020\007*v\n\022SpeechModelVariant\022$\n SPEECH_MOD" + + "EL_VARIANT_UNSPECIFIED\020\000\022\026\n\022USE_BEST_AVA" + + "ILABLE\020\001\022\020\n\014USE_STANDARD\020\002\022\020\n\014USE_ENHANC" + + "ED\020\003*\215\001\n\017SsmlVoiceGender\022!\n\035SSML_VOICE_G" + + "ENDER_UNSPECIFIED\020\000\022\032\n\026SSML_VOICE_GENDER" + + "_MALE\020\001\022\034\n\030SSML_VOICE_GENDER_FEMALE\020\002\022\035\n" + + "\031SSML_VOICE_GENDER_NEUTRAL\020\003*\354\001\n\023OutputA" + + "udioEncoding\022%\n!OUTPUT_AUDIO_ENCODING_UN" + + "SPECIFIED\020\000\022#\n\037OUTPUT_AUDIO_ENCODING_LIN" + + "EAR_16\020\001\022\035\n\031OUTPUT_AUDIO_ENCODING_MP3\020\002\022" + + "%\n!OUTPUT_AUDIO_ENCODING_MP3_64_KBPS\020\004\022\"" + + "\n\036OUTPUT_AUDIO_ENCODING_OGG_OPUS\020\003\022\037\n\033OU" + + "TPUT_AUDIO_ENCODING_MULAW\020\005B\326\002\n\036com.goog" + + "le.cloud.dialogflow.v2B\020AudioConfigProto" + + "P\001Z>cloud.google.com/go/dialogflow/apiv2" + + "/dialogflowpb;dialogflowpb\370\001\001\242\002\002DF\252\002\032Goo" + + "gle.Cloud.Dialogflow.V2\352AU\n\033automl.googl" + + "eapis.com/Model\0226projects/{project}/loca" + + "tions/{location}/models/{model}\352Ab\n\037spee" + + "ch.googleapis.com/PhraseSet\022?projects/{p" + + "roject}/locations/{location}/phraseSets/" + + "{phrase_set}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioEncoding.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioEncoding.java index 75198af8dbd3..c5b383116248 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioEncoding.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioEncoding.java @@ -301,7 +301,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.AudioConfigProto.getDescriptor().getEnumTypes().get(0); + return com.google.cloud.dialogflow.v2.AudioConfigProto.getDescriptor().getEnumTypes().get(1); } private static final AudioEncoding[] VALUES = values(); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfig.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfig.java index 3dabd1ed4954..7c411bd91dd0 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfig.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfig.java @@ -76,7 +76,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Required. Audio encoding of the audio content to process. * * - * .google.cloud.dialogflow.v2.AudioEncoding audio_encoding = 1; + * + * .google.cloud.dialogflow.v2.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The enum numeric value on the wire for audioEncoding. */ @@ -91,7 +93,9 @@ public int getAudioEncodingValue() { * Required. Audio encoding of the audio content to process. * * - * .google.cloud.dialogflow.v2.AudioEncoding audio_encoding = 1; + * + * .google.cloud.dialogflow.v2.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The audioEncoding. */ @@ -109,13 +113,12 @@ public com.google.cloud.dialogflow.v2.AudioEncoding getAudioEncoding() { * *
    * Required. Sample rate (in Hertz) of the audio content sent in the query.
-   * Refer to
-   * [Cloud Speech API
+   * Refer to [Cloud Speech API
    * documentation](https://cloud.google.com/speech-to-text/docs/basics) for
    * more details.
    * 
* - * int32 sample_rate_hertz = 2; + * int32 sample_rate_hertz = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The sampleRateHertz. */ @@ -139,7 +142,7 @@ public int getSampleRateHertz() { * the same session do not necessarily need to specify the same language. * * - * string language_code = 3; + * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The languageCode. */ @@ -166,7 +169,7 @@ public java.lang.String getLanguageCode() { * the same session do not necessarily need to specify the same language. * * - * string language_code = 3; + * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for languageCode. */ @@ -230,7 +233,7 @@ public boolean getEnableWordInfo() { * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2/audio_config.proto;l=223 + * google/cloud/dialogflow/v2/audio_config.proto;l=129 * @return A list containing the phraseHints. */ @java.lang.Deprecated @@ -256,7 +259,7 @@ public com.google.protobuf.ProtocolStringList getPhraseHintsList() { * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2/audio_config.proto;l=223 + * google/cloud/dialogflow/v2/audio_config.proto;l=129 * @return The count of phraseHints. */ @java.lang.Deprecated @@ -282,7 +285,7 @@ public int getPhraseHintsCount() { * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2/audio_config.proto;l=223 + * google/cloud/dialogflow/v2/audio_config.proto;l=129 * @param index The index of the element to return. * @return The phraseHints at the given index. */ @@ -309,7 +312,7 @@ public java.lang.String getPhraseHints(int index) { * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2/audio_config.proto;l=223 + * google/cloud/dialogflow/v2/audio_config.proto;l=129 * @param index The index of the value to return. * @return The bytes of the phraseHints at the given index. */ @@ -1247,7 +1250,9 @@ public Builder mergeFrom( * Required. Audio encoding of the audio content to process. * * - * .google.cloud.dialogflow.v2.AudioEncoding audio_encoding = 1; + * + * .google.cloud.dialogflow.v2.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The enum numeric value on the wire for audioEncoding. */ @@ -1262,7 +1267,9 @@ public int getAudioEncodingValue() { * Required. Audio encoding of the audio content to process. * * - * .google.cloud.dialogflow.v2.AudioEncoding audio_encoding = 1; + * + * .google.cloud.dialogflow.v2.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @param value The enum numeric value on the wire for audioEncoding to set. * @return This builder for chaining. @@ -1280,7 +1287,9 @@ public Builder setAudioEncodingValue(int value) { * Required. Audio encoding of the audio content to process. * * - * .google.cloud.dialogflow.v2.AudioEncoding audio_encoding = 1; + * + * .google.cloud.dialogflow.v2.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The audioEncoding. */ @@ -1297,7 +1306,9 @@ public com.google.cloud.dialogflow.v2.AudioEncoding getAudioEncoding() { * Required. Audio encoding of the audio content to process. * * - * .google.cloud.dialogflow.v2.AudioEncoding audio_encoding = 1; + * + * .google.cloud.dialogflow.v2.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @param value The audioEncoding to set. * @return This builder for chaining. @@ -1318,7 +1329,9 @@ public Builder setAudioEncoding(com.google.cloud.dialogflow.v2.AudioEncoding val * Required. Audio encoding of the audio content to process. * * - * .google.cloud.dialogflow.v2.AudioEncoding audio_encoding = 1; + * + * .google.cloud.dialogflow.v2.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return This builder for chaining. */ @@ -1335,13 +1348,12 @@ public Builder clearAudioEncoding() { * *
      * Required. Sample rate (in Hertz) of the audio content sent in the query.
-     * Refer to
-     * [Cloud Speech API
+     * Refer to [Cloud Speech API
      * documentation](https://cloud.google.com/speech-to-text/docs/basics) for
      * more details.
      * 
* - * int32 sample_rate_hertz = 2; + * int32 sample_rate_hertz = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The sampleRateHertz. */ @@ -1354,13 +1366,12 @@ public int getSampleRateHertz() { * *
      * Required. Sample rate (in Hertz) of the audio content sent in the query.
-     * Refer to
-     * [Cloud Speech API
+     * Refer to [Cloud Speech API
      * documentation](https://cloud.google.com/speech-to-text/docs/basics) for
      * more details.
      * 
* - * int32 sample_rate_hertz = 2; + * int32 sample_rate_hertz = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param value The sampleRateHertz to set. * @return This builder for chaining. @@ -1377,13 +1388,12 @@ public Builder setSampleRateHertz(int value) { * *
      * Required. Sample rate (in Hertz) of the audio content sent in the query.
-     * Refer to
-     * [Cloud Speech API
+     * Refer to [Cloud Speech API
      * documentation](https://cloud.google.com/speech-to-text/docs/basics) for
      * more details.
      * 
* - * int32 sample_rate_hertz = 2; + * int32 sample_rate_hertz = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ @@ -1406,7 +1416,7 @@ public Builder clearSampleRateHertz() { * the same session do not necessarily need to specify the same language. * * - * string language_code = 3; + * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The languageCode. */ @@ -1432,7 +1442,7 @@ public java.lang.String getLanguageCode() { * the same session do not necessarily need to specify the same language. * * - * string language_code = 3; + * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for languageCode. */ @@ -1458,7 +1468,7 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { * the same session do not necessarily need to specify the same language. * * - * string language_code = 3; + * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; * * @param value The languageCode to set. * @return This builder for chaining. @@ -1483,7 +1493,7 @@ public Builder setLanguageCode(java.lang.String value) { * the same session do not necessarily need to specify the same language. * * - * string language_code = 3; + * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ @@ -1504,7 +1514,7 @@ public Builder clearLanguageCode() { * the same session do not necessarily need to specify the same language. * * - * string language_code = 3; + * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for languageCode to set. * @return This builder for chaining. @@ -1616,7 +1626,7 @@ private void ensurePhraseHintsIsMutable() { * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2/audio_config.proto;l=223 + * google/cloud/dialogflow/v2/audio_config.proto;l=129 * @return A list containing the phraseHints. */ @java.lang.Deprecated @@ -1643,7 +1653,7 @@ public com.google.protobuf.ProtocolStringList getPhraseHintsList() { * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2/audio_config.proto;l=223 + * google/cloud/dialogflow/v2/audio_config.proto;l=129 * @return The count of phraseHints. */ @java.lang.Deprecated @@ -1669,7 +1679,7 @@ public int getPhraseHintsCount() { * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2/audio_config.proto;l=223 + * google/cloud/dialogflow/v2/audio_config.proto;l=129 * @param index The index of the element to return. * @return The phraseHints at the given index. */ @@ -1696,7 +1706,7 @@ public java.lang.String getPhraseHints(int index) { * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2/audio_config.proto;l=223 + * google/cloud/dialogflow/v2/audio_config.proto;l=129 * @param index The index of the value to return. * @return The bytes of the phraseHints at the given index. */ @@ -1723,7 +1733,7 @@ public com.google.protobuf.ByteString getPhraseHintsBytes(int index) { * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2/audio_config.proto;l=223 + * google/cloud/dialogflow/v2/audio_config.proto;l=129 * @param index The index to set the value at. * @param value The phraseHints to set. * @return This builder for chaining. @@ -1758,7 +1768,7 @@ public Builder setPhraseHints(int index, java.lang.String value) { * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2/audio_config.proto;l=223 + * google/cloud/dialogflow/v2/audio_config.proto;l=129 * @param value The phraseHints to add. * @return This builder for chaining. */ @@ -1792,7 +1802,7 @@ public Builder addPhraseHints(java.lang.String value) { * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2/audio_config.proto;l=223 + * google/cloud/dialogflow/v2/audio_config.proto;l=129 * @param values The phraseHints to add. * @return This builder for chaining. */ @@ -1823,7 +1833,7 @@ public Builder addAllPhraseHints(java.lang.Iterable values) { * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2/audio_config.proto;l=223 + * google/cloud/dialogflow/v2/audio_config.proto;l=129 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1853,7 +1863,7 @@ public Builder clearPhraseHints() { * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2/audio_config.proto;l=223 + * google/cloud/dialogflow/v2/audio_config.proto;l=129 * @param value The bytes of the phraseHints to add. * @return This builder for chaining. */ diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfigOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfigOrBuilder.java index 3102613bcc5d..a99be0696069 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfigOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfigOrBuilder.java @@ -30,7 +30,9 @@ public interface InputAudioConfigOrBuilder * Required. Audio encoding of the audio content to process. * * - * .google.cloud.dialogflow.v2.AudioEncoding audio_encoding = 1; + * + * .google.cloud.dialogflow.v2.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The enum numeric value on the wire for audioEncoding. */ @@ -42,7 +44,9 @@ public interface InputAudioConfigOrBuilder * Required. Audio encoding of the audio content to process. * * - * .google.cloud.dialogflow.v2.AudioEncoding audio_encoding = 1; + * + * .google.cloud.dialogflow.v2.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The audioEncoding. */ @@ -53,13 +57,12 @@ public interface InputAudioConfigOrBuilder * *
    * Required. Sample rate (in Hertz) of the audio content sent in the query.
-   * Refer to
-   * [Cloud Speech API
+   * Refer to [Cloud Speech API
    * documentation](https://cloud.google.com/speech-to-text/docs/basics) for
    * more details.
    * 
* - * int32 sample_rate_hertz = 2; + * int32 sample_rate_hertz = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The sampleRateHertz. */ @@ -76,7 +79,7 @@ public interface InputAudioConfigOrBuilder * the same session do not necessarily need to specify the same language. * * - * string language_code = 3; + * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The languageCode. */ @@ -92,7 +95,7 @@ public interface InputAudioConfigOrBuilder * the same session do not necessarily need to specify the same language. * * - * string language_code = 3; + * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for languageCode. */ @@ -135,7 +138,7 @@ public interface InputAudioConfigOrBuilder * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2/audio_config.proto;l=223 + * google/cloud/dialogflow/v2/audio_config.proto;l=129 * @return A list containing the phraseHints. */ @java.lang.Deprecated @@ -159,7 +162,7 @@ public interface InputAudioConfigOrBuilder * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2/audio_config.proto;l=223 + * google/cloud/dialogflow/v2/audio_config.proto;l=129 * @return The count of phraseHints. */ @java.lang.Deprecated @@ -183,7 +186,7 @@ public interface InputAudioConfigOrBuilder * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2/audio_config.proto;l=223 + * google/cloud/dialogflow/v2/audio_config.proto;l=129 * @param index The index of the element to return. * @return The phraseHints at the given index. */ @@ -208,7 +211,7 @@ public interface InputAudioConfigOrBuilder * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2/audio_config.proto;l=223 + * google/cloud/dialogflow/v2/audio_config.proto;l=129 * @param index The index of the value to return. * @return The bytes of the phraseHints at the given index. */ diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OutputAudioEncoding.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OutputAudioEncoding.java index b315e6a0abc1..cd09e154305d 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OutputAudioEncoding.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OutputAudioEncoding.java @@ -227,7 +227,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.AudioConfigProto.getDescriptor().getEnumTypes().get(3); + return com.google.cloud.dialogflow.v2.AudioConfigProto.getDescriptor().getEnumTypes().get(4); } private static final OutputAudioEncoding[] VALUES = values(); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SpeechContext.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SpeechContext.java index 439515d8aad2..d324f4508f8e 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SpeechContext.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SpeechContext.java @@ -87,7 +87,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * limits. * * - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the phrases. */ @@ -113,7 +113,7 @@ public com.google.protobuf.ProtocolStringList getPhrasesList() { * limits. * * - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of phrases. */ @@ -139,7 +139,7 @@ public int getPhrasesCount() { * limits. * * - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The phrases at the given index. @@ -166,7 +166,7 @@ public java.lang.String getPhrases(int index) { * limits. * * - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the phrases at the given index. @@ -192,7 +192,7 @@ public com.google.protobuf.ByteString getPhrasesBytes(int index) { * find a value that fits your use case with binary search. * * - * float boost = 2; + * float boost = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The boost. */ @@ -608,7 +608,7 @@ private void ensurePhrasesIsMutable() { * limits. * * - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the phrases. */ @@ -635,7 +635,7 @@ public com.google.protobuf.ProtocolStringList getPhrasesList() { * limits. * * - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of phrases. */ @@ -661,7 +661,7 @@ public int getPhrasesCount() { * limits. * * - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The phrases at the given index. @@ -688,7 +688,7 @@ public java.lang.String getPhrases(int index) { * limits. * * - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the phrases at the given index. @@ -715,7 +715,7 @@ public com.google.protobuf.ByteString getPhrasesBytes(int index) { * limits. * * - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index to set the value at. * @param value The phrases to set. @@ -750,7 +750,7 @@ public Builder setPhrases(int index, java.lang.String value) { * limits. * * - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The phrases to add. * @return This builder for chaining. @@ -784,7 +784,7 @@ public Builder addPhrases(java.lang.String value) { * limits. * * - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param values The phrases to add. * @return This builder for chaining. @@ -815,7 +815,7 @@ public Builder addAllPhrases(java.lang.Iterable values) { * limits. * * - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -845,7 +845,7 @@ public Builder clearPhrases() { * limits. * * - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes of the phrases to add. * @return This builder for chaining. @@ -878,7 +878,7 @@ public Builder addPhrasesBytes(com.google.protobuf.ByteString value) { * find a value that fits your use case with binary search. * * - * float boost = 2; + * float boost = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The boost. */ @@ -901,7 +901,7 @@ public float getBoost() { * find a value that fits your use case with binary search. * * - * float boost = 2; + * float boost = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The boost to set. * @return This builder for chaining. @@ -928,7 +928,7 @@ public Builder setBoost(float value) { * find a value that fits your use case with binary search. * * - * float boost = 2; + * float boost = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SpeechContextOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SpeechContextOrBuilder.java index 20855ff8b5cd..b22b99321bf5 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SpeechContextOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SpeechContextOrBuilder.java @@ -42,7 +42,7 @@ public interface SpeechContextOrBuilder * limits. * * - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the phrases. */ @@ -66,7 +66,7 @@ public interface SpeechContextOrBuilder * limits. * * - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of phrases. */ @@ -90,7 +90,7 @@ public interface SpeechContextOrBuilder * limits. * * - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The phrases at the given index. @@ -115,7 +115,7 @@ public interface SpeechContextOrBuilder * limits. * * - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the phrases at the given index. @@ -137,7 +137,7 @@ public interface SpeechContextOrBuilder * find a value that fits your use case with binary search. * * - * float boost = 2; + * float boost = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The boost. */ diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SpeechModelVariant.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SpeechModelVariant.java index 7b679d03e146..193162a88114 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SpeechModelVariant.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SpeechModelVariant.java @@ -225,7 +225,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.AudioConfigProto.getDescriptor().getEnumTypes().get(1); + return com.google.cloud.dialogflow.v2.AudioConfigProto.getDescriptor().getEnumTypes().get(2); } private static final SpeechModelVariant[] VALUES = values(); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SsmlVoiceGender.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SsmlVoiceGender.java index 377c4136ef0b..5b94ea7682e4 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SsmlVoiceGender.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SsmlVoiceGender.java @@ -176,7 +176,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.AudioConfigProto.getDescriptor().getEnumTypes().get(2); + return com.google.cloud.dialogflow.v2.AudioConfigProto.getDescriptor().getEnumTypes().get(3); } private static final SsmlVoiceGender[] VALUES = values(); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SynthesizeSpeechConfig.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SynthesizeSpeechConfig.java index 36e35c9c632d..6c578cadb7f8 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SynthesizeSpeechConfig.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SynthesizeSpeechConfig.java @@ -69,12 +69,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal
-   * native speed supported by the specific voice. 2.0 is twice as fast, and
-   * 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any
-   * other values < 0.25 or > 4.0 will return an error.
+   * native speed supported by the specific voice. 2.0 is twice as fast, and 0.5
+   * is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any other
+   * values < 0.25 or > 4.0 will return an error.
    * 
* - * double speaking_rate = 1; + * double speaking_rate = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The speakingRate. */ @@ -94,7 +94,7 @@ public double getSpeakingRate() { * original pitch. * * - * double pitch = 2; + * double pitch = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pitch. */ @@ -119,7 +119,7 @@ public double getPitch() { * any value greater than that. * * - * double volume_gain_db = 3; + * double volume_gain_db = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The volumeGainDb. */ @@ -142,7 +142,7 @@ public double getVolumeGainDb() { * each other in the order they are given. * * - * repeated string effects_profile_id = 5; + * repeated string effects_profile_id = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the effectsProfileId. */ @@ -158,7 +158,7 @@ public com.google.protobuf.ProtocolStringList getEffectsProfileIdList() { * each other in the order they are given. * * - * repeated string effects_profile_id = 5; + * repeated string effects_profile_id = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of effectsProfileId. */ @@ -174,7 +174,7 @@ public int getEffectsProfileIdCount() { * each other in the order they are given. * * - * repeated string effects_profile_id = 5; + * repeated string effects_profile_id = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The effectsProfileId at the given index. @@ -191,7 +191,7 @@ public java.lang.String getEffectsProfileId(int index) { * each other in the order they are given. * * - * repeated string effects_profile_id = 5; + * repeated string effects_profile_id = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the effectsProfileId at the given index. @@ -209,7 +209,9 @@ public com.google.protobuf.ByteString getEffectsProfileIdBytes(int index) { * Optional. The desired voice of the synthesized audio. * * - * .google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4; + * + * .google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the voice field is set. */ @@ -224,7 +226,9 @@ public boolean hasVoice() { * Optional. The desired voice of the synthesized audio. * * - * .google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4; + * + * .google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The voice. */ @@ -241,7 +245,9 @@ public com.google.cloud.dialogflow.v2.VoiceSelectionParams getVoice() { * Optional. The desired voice of the synthesized audio. * * - * .google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4; + * + * .google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dialogflow.v2.VoiceSelectionParamsOrBuilder getVoiceOrBuilder() { @@ -721,12 +727,12 @@ public Builder mergeFrom( * *
      * Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal
-     * native speed supported by the specific voice. 2.0 is twice as fast, and
-     * 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any
-     * other values < 0.25 or > 4.0 will return an error.
+     * native speed supported by the specific voice. 2.0 is twice as fast, and 0.5
+     * is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any other
+     * values < 0.25 or > 4.0 will return an error.
      * 
* - * double speaking_rate = 1; + * double speaking_rate = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The speakingRate. */ @@ -739,12 +745,12 @@ public double getSpeakingRate() { * *
      * Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal
-     * native speed supported by the specific voice. 2.0 is twice as fast, and
-     * 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any
-     * other values < 0.25 or > 4.0 will return an error.
+     * native speed supported by the specific voice. 2.0 is twice as fast, and 0.5
+     * is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any other
+     * values < 0.25 or > 4.0 will return an error.
      * 
* - * double speaking_rate = 1; + * double speaking_rate = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The speakingRate to set. * @return This builder for chaining. @@ -761,12 +767,12 @@ public Builder setSpeakingRate(double value) { * *
      * Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal
-     * native speed supported by the specific voice. 2.0 is twice as fast, and
-     * 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any
-     * other values < 0.25 or > 4.0 will return an error.
+     * native speed supported by the specific voice. 2.0 is twice as fast, and 0.5
+     * is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any other
+     * values < 0.25 or > 4.0 will return an error.
      * 
* - * double speaking_rate = 1; + * double speaking_rate = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -787,7 +793,7 @@ public Builder clearSpeakingRate() { * original pitch. * * - * double pitch = 2; + * double pitch = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pitch. */ @@ -804,7 +810,7 @@ public double getPitch() { * original pitch. * * - * double pitch = 2; + * double pitch = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pitch to set. * @return This builder for chaining. @@ -825,7 +831,7 @@ public Builder setPitch(double value) { * original pitch. * * - * double pitch = 2; + * double pitch = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -851,7 +857,7 @@ public Builder clearPitch() { * any value greater than that. * * - * double volume_gain_db = 3; + * double volume_gain_db = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The volumeGainDb. */ @@ -873,7 +879,7 @@ public double getVolumeGainDb() { * any value greater than that. * * - * double volume_gain_db = 3; + * double volume_gain_db = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The volumeGainDb to set. * @return This builder for chaining. @@ -899,7 +905,7 @@ public Builder setVolumeGainDb(double value) { * any value greater than that. * * - * double volume_gain_db = 3; + * double volume_gain_db = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -928,7 +934,8 @@ private void ensureEffectsProfileIdIsMutable() { * each other in the order they are given. * * - * repeated string effects_profile_id = 5; + * repeated string effects_profile_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return A list containing the effectsProfileId. */ @@ -945,7 +952,8 @@ public com.google.protobuf.ProtocolStringList getEffectsProfileIdList() { * each other in the order they are given. * * - * repeated string effects_profile_id = 5; + * repeated string effects_profile_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The count of effectsProfileId. */ @@ -961,7 +969,8 @@ public int getEffectsProfileIdCount() { * each other in the order they are given. * * - * repeated string effects_profile_id = 5; + * repeated string effects_profile_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the element to return. * @return The effectsProfileId at the given index. @@ -978,7 +987,8 @@ public java.lang.String getEffectsProfileId(int index) { * each other in the order they are given. * * - * repeated string effects_profile_id = 5; + * repeated string effects_profile_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the value to return. * @return The bytes of the effectsProfileId at the given index. @@ -995,7 +1005,8 @@ public com.google.protobuf.ByteString getEffectsProfileIdBytes(int index) { * each other in the order they are given. * * - * repeated string effects_profile_id = 5; + * repeated string effects_profile_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index to set the value at. * @param value The effectsProfileId to set. @@ -1020,7 +1031,8 @@ public Builder setEffectsProfileId(int index, java.lang.String value) { * each other in the order they are given. * * - * repeated string effects_profile_id = 5; + * repeated string effects_profile_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The effectsProfileId to add. * @return This builder for chaining. @@ -1044,7 +1056,8 @@ public Builder addEffectsProfileId(java.lang.String value) { * each other in the order they are given. * * - * repeated string effects_profile_id = 5; + * repeated string effects_profile_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param values The effectsProfileId to add. * @return This builder for chaining. @@ -1065,7 +1078,8 @@ public Builder addAllEffectsProfileId(java.lang.Iterable value * each other in the order they are given. * * - * repeated string effects_profile_id = 5; + * repeated string effects_profile_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return This builder for chaining. */ @@ -1085,7 +1099,8 @@ public Builder clearEffectsProfileId() { * each other in the order they are given. * * - * repeated string effects_profile_id = 5; + * repeated string effects_profile_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The bytes of the effectsProfileId to add. * @return This builder for chaining. @@ -1115,7 +1130,9 @@ public Builder addEffectsProfileIdBytes(com.google.protobuf.ByteString value) { * Optional. The desired voice of the synthesized audio. * * - * .google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4; + * + * .google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the voice field is set. */ @@ -1129,7 +1146,9 @@ public boolean hasVoice() { * Optional. The desired voice of the synthesized audio. * * - * .google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4; + * + * .google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The voice. */ @@ -1149,7 +1168,9 @@ public com.google.cloud.dialogflow.v2.VoiceSelectionParams getVoice() { * Optional. The desired voice of the synthesized audio. * * - * .google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4; + * + * .google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setVoice(com.google.cloud.dialogflow.v2.VoiceSelectionParams value) { if (voiceBuilder_ == null) { @@ -1171,7 +1192,9 @@ public Builder setVoice(com.google.cloud.dialogflow.v2.VoiceSelectionParams valu * Optional. The desired voice of the synthesized audio. * * - * .google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4; + * + * .google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setVoice( com.google.cloud.dialogflow.v2.VoiceSelectionParams.Builder builderForValue) { @@ -1191,7 +1214,9 @@ public Builder setVoice( * Optional. The desired voice of the synthesized audio. * * - * .google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4; + * + * .google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeVoice(com.google.cloud.dialogflow.v2.VoiceSelectionParams value) { if (voiceBuilder_ == null) { @@ -1216,7 +1241,9 @@ public Builder mergeVoice(com.google.cloud.dialogflow.v2.VoiceSelectionParams va * Optional. The desired voice of the synthesized audio. * * - * .google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4; + * + * .google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearVoice() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1235,7 +1262,9 @@ public Builder clearVoice() { * Optional. The desired voice of the synthesized audio. * * - * .google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4; + * + * .google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dialogflow.v2.VoiceSelectionParams.Builder getVoiceBuilder() { bitField0_ |= 0x00000010; @@ -1249,7 +1278,9 @@ public com.google.cloud.dialogflow.v2.VoiceSelectionParams.Builder getVoiceBuild * Optional. The desired voice of the synthesized audio. * * - * .google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4; + * + * .google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dialogflow.v2.VoiceSelectionParamsOrBuilder getVoiceOrBuilder() { if (voiceBuilder_ != null) { @@ -1267,7 +1298,9 @@ public com.google.cloud.dialogflow.v2.VoiceSelectionParamsOrBuilder getVoiceOrBu * Optional. The desired voice of the synthesized audio. * * - * .google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4; + * + * .google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.v2.VoiceSelectionParams, diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SynthesizeSpeechConfigOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SynthesizeSpeechConfigOrBuilder.java index b441f725ae54..2e2e832a3309 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SynthesizeSpeechConfigOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SynthesizeSpeechConfigOrBuilder.java @@ -28,12 +28,12 @@ public interface SynthesizeSpeechConfigOrBuilder * *
    * Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal
-   * native speed supported by the specific voice. 2.0 is twice as fast, and
-   * 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any
-   * other values < 0.25 or > 4.0 will return an error.
+   * native speed supported by the specific voice. 2.0 is twice as fast, and 0.5
+   * is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any other
+   * values < 0.25 or > 4.0 will return an error.
    * 
* - * double speaking_rate = 1; + * double speaking_rate = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The speakingRate. */ @@ -48,7 +48,7 @@ public interface SynthesizeSpeechConfigOrBuilder * original pitch. * * - * double pitch = 2; + * double pitch = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pitch. */ @@ -68,7 +68,7 @@ public interface SynthesizeSpeechConfigOrBuilder * any value greater than that. * * - * double volume_gain_db = 3; + * double volume_gain_db = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The volumeGainDb. */ @@ -83,7 +83,7 @@ public interface SynthesizeSpeechConfigOrBuilder * each other in the order they are given. * * - * repeated string effects_profile_id = 5; + * repeated string effects_profile_id = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the effectsProfileId. */ @@ -97,7 +97,7 @@ public interface SynthesizeSpeechConfigOrBuilder * each other in the order they are given. * * - * repeated string effects_profile_id = 5; + * repeated string effects_profile_id = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of effectsProfileId. */ @@ -111,7 +111,7 @@ public interface SynthesizeSpeechConfigOrBuilder * each other in the order they are given. * * - * repeated string effects_profile_id = 5; + * repeated string effects_profile_id = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The effectsProfileId at the given index. @@ -126,7 +126,7 @@ public interface SynthesizeSpeechConfigOrBuilder * each other in the order they are given. * * - * repeated string effects_profile_id = 5; + * repeated string effects_profile_id = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the effectsProfileId at the given index. @@ -140,7 +140,9 @@ public interface SynthesizeSpeechConfigOrBuilder * Optional. The desired voice of the synthesized audio. * * - * .google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4; + * + * .google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the voice field is set. */ @@ -152,7 +154,9 @@ public interface SynthesizeSpeechConfigOrBuilder * Optional. The desired voice of the synthesized audio. * * - * .google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4; + * + * .google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The voice. */ @@ -164,7 +168,9 @@ public interface SynthesizeSpeechConfigOrBuilder * Optional. The desired voice of the synthesized audio. * * - * .google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4; + * + * .google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dialogflow.v2.VoiceSelectionParamsOrBuilder getVoiceOrBuilder(); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/TelephonyDtmf.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/TelephonyDtmf.java index 59d855dbd304..8b204a2d2beb 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/TelephonyDtmf.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/TelephonyDtmf.java @@ -460,7 +460,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.AudioConfigProto.getDescriptor().getEnumTypes().get(4); + return com.google.cloud.dialogflow.v2.AudioConfigProto.getDescriptor().getEnumTypes().get(0); } private static final TelephonyDtmf[] VALUES = values(); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VoiceSelectionParams.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VoiceSelectionParams.java index ba9d4728c368..26a2a5f121c2 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VoiceSelectionParams.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VoiceSelectionParams.java @@ -76,7 +76,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * [ssml_gender][google.cloud.dialogflow.v2.VoiceSelectionParams.ssml_gender]. * * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The name. */ @@ -101,7 +101,7 @@ public java.lang.String getName() { * [ssml_gender][google.cloud.dialogflow.v2.VoiceSelectionParams.ssml_gender]. * * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for name. */ @@ -132,7 +132,9 @@ public com.google.protobuf.ByteString getNameBytes() { * different gender rather than failing the request. * * - * .google.cloud.dialogflow.v2.SsmlVoiceGender ssml_gender = 2; + * + * .google.cloud.dialogflow.v2.SsmlVoiceGender ssml_gender = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The enum numeric value on the wire for ssmlGender. */ @@ -152,7 +154,9 @@ public int getSsmlGenderValue() { * different gender rather than failing the request. * * - * .google.cloud.dialogflow.v2.SsmlVoiceGender ssml_gender = 2; + * + * .google.cloud.dialogflow.v2.SsmlVoiceGender ssml_gender = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The ssmlGender. */ @@ -541,7 +545,7 @@ public Builder mergeFrom( * [ssml_gender][google.cloud.dialogflow.v2.VoiceSelectionParams.ssml_gender]. * * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The name. */ @@ -565,7 +569,7 @@ public java.lang.String getName() { * [ssml_gender][google.cloud.dialogflow.v2.VoiceSelectionParams.ssml_gender]. * * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for name. */ @@ -589,7 +593,7 @@ public com.google.protobuf.ByteString getNameBytes() { * [ssml_gender][google.cloud.dialogflow.v2.VoiceSelectionParams.ssml_gender]. * * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The name to set. * @return This builder for chaining. @@ -612,7 +616,7 @@ public Builder setName(java.lang.String value) { * [ssml_gender][google.cloud.dialogflow.v2.VoiceSelectionParams.ssml_gender]. * * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -631,7 +635,7 @@ public Builder clearName() { * [ssml_gender][google.cloud.dialogflow.v2.VoiceSelectionParams.ssml_gender]. * * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for name to set. * @return This builder for chaining. @@ -660,7 +664,9 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * different gender rather than failing the request. * * - * .google.cloud.dialogflow.v2.SsmlVoiceGender ssml_gender = 2; + * + * .google.cloud.dialogflow.v2.SsmlVoiceGender ssml_gender = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The enum numeric value on the wire for ssmlGender. */ @@ -680,7 +686,9 @@ public int getSsmlGenderValue() { * different gender rather than failing the request. * * - * .google.cloud.dialogflow.v2.SsmlVoiceGender ssml_gender = 2; + * + * .google.cloud.dialogflow.v2.SsmlVoiceGender ssml_gender = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The enum numeric value on the wire for ssmlGender to set. * @return This builder for chaining. @@ -703,7 +711,9 @@ public Builder setSsmlGenderValue(int value) { * different gender rather than failing the request. * * - * .google.cloud.dialogflow.v2.SsmlVoiceGender ssml_gender = 2; + * + * .google.cloud.dialogflow.v2.SsmlVoiceGender ssml_gender = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The ssmlGender. */ @@ -725,7 +735,9 @@ public com.google.cloud.dialogflow.v2.SsmlVoiceGender getSsmlGender() { * different gender rather than failing the request. * * - * .google.cloud.dialogflow.v2.SsmlVoiceGender ssml_gender = 2; + * + * .google.cloud.dialogflow.v2.SsmlVoiceGender ssml_gender = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The ssmlGender to set. * @return This builder for chaining. @@ -751,7 +763,9 @@ public Builder setSsmlGender(com.google.cloud.dialogflow.v2.SsmlVoiceGender valu * different gender rather than failing the request. * * - * .google.cloud.dialogflow.v2.SsmlVoiceGender ssml_gender = 2; + * + * .google.cloud.dialogflow.v2.SsmlVoiceGender ssml_gender = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return This builder for chaining. */ diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VoiceSelectionParamsOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VoiceSelectionParamsOrBuilder.java index 3edbf00c40ce..7d187d0804a7 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VoiceSelectionParamsOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VoiceSelectionParamsOrBuilder.java @@ -32,7 +32,7 @@ public interface VoiceSelectionParamsOrBuilder * [ssml_gender][google.cloud.dialogflow.v2.VoiceSelectionParams.ssml_gender]. * * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The name. */ @@ -46,7 +46,7 @@ public interface VoiceSelectionParamsOrBuilder * [ssml_gender][google.cloud.dialogflow.v2.VoiceSelectionParams.ssml_gender]. * * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for name. */ @@ -64,7 +64,9 @@ public interface VoiceSelectionParamsOrBuilder * different gender rather than failing the request. * * - * .google.cloud.dialogflow.v2.SsmlVoiceGender ssml_gender = 2; + * + * .google.cloud.dialogflow.v2.SsmlVoiceGender ssml_gender = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The enum numeric value on the wire for ssmlGender. */ @@ -81,7 +83,9 @@ public interface VoiceSelectionParamsOrBuilder * different gender rather than failing the request. * * - * .google.cloud.dialogflow.v2.SsmlVoiceGender ssml_gender = 2; + * + * .google.cloud.dialogflow.v2.SsmlVoiceGender ssml_gender = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The ssmlGender. */ diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto index d45dbc8fdbcd..bcb035e5a89f 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto @@ -36,55 +36,6 @@ option (google.api.resource_definition) = { pattern: "projects/{project}/locations/{location}/phraseSets/{phrase_set}" }; -// Audio encoding of the audio content sent in the conversational query request. -// Refer to the -// [Cloud Speech API -// documentation](https://cloud.google.com/speech-to-text/docs/basics) for more -// details. -enum AudioEncoding { - // Not specified. - AUDIO_ENCODING_UNSPECIFIED = 0; - - // Uncompressed 16-bit signed little-endian samples (Linear PCM). - AUDIO_ENCODING_LINEAR_16 = 1; - - // [`FLAC`](https://xiph.org/flac/documentation.html) (Free Lossless Audio - // Codec) is the recommended encoding because it is lossless (therefore - // recognition is not compromised) and requires only about half the - // bandwidth of `LINEAR16`. `FLAC` stream encoding supports 16-bit and - // 24-bit samples, however, not all fields in `STREAMINFO` are supported. - AUDIO_ENCODING_FLAC = 2; - - // 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law. - AUDIO_ENCODING_MULAW = 3; - - // Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000. - AUDIO_ENCODING_AMR = 4; - - // Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000. - AUDIO_ENCODING_AMR_WB = 5; - - // Opus encoded audio frames in Ogg container - // ([OggOpus](https://wiki.xiph.org/OggOpus)). - // `sample_rate_hertz` must be 16000. - AUDIO_ENCODING_OGG_OPUS = 6; - - // Although the use of lossy encodings is not recommended, if a very low - // bitrate encoding is required, `OGG_OPUS` is highly preferred over - // Speex encoding. The [Speex](https://speex.org/) encoding supported by - // Dialogflow API has a header byte in each block, as in MIME type - // `audio/x-speex-with-header-byte`. - // It is a variant of the RTP Speex encoding defined in - // [RFC 5574](https://tools.ietf.org/html/rfc5574). - // The stream is a sequence of blocks, one block per RTP packet. Each block - // starts with a byte containing the length of the block, in bytes, followed - // by one or more frames of Speex data, padded to an integral number of - // bytes (octets) as specified in RFC 5574. In other words, each RTP header - // is replaced with a single byte containing the block length. Only Speex - // wideband is supported. `sample_rate_hertz` must be 16000. - AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE = 7; -} - // Hints for the speech recognizer to help with recognition in a specific // conversation state. message SpeechContext { @@ -101,7 +52,7 @@ message SpeechContext { // See the [Cloud Speech // documentation](https://cloud.google.com/speech-to-text/quotas) for usage // limits. - repeated string phrases = 1; + repeated string phrases = 1 [(google.api.field_behavior) = OPTIONAL]; // Optional. Boost for this context compared to other contexts: // @@ -112,51 +63,7 @@ message SpeechContext { // // Dialogflow recommends that you use boosts in the range (0, 20] and that you // find a value that fits your use case with binary search. - float boost = 2; -} - -// Variant of the specified [Speech -// model][google.cloud.dialogflow.v2.InputAudioConfig.model] to use. -// -// See the [Cloud Speech -// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models) -// for which models have different variants. For example, the "phone_call" model -// has both a standard and an enhanced variant. When you use an enhanced model, -// you will generally receive higher quality results than for a standard model. -enum SpeechModelVariant { - // No model variant specified. In this case Dialogflow defaults to - // USE_BEST_AVAILABLE. - SPEECH_MODEL_VARIANT_UNSPECIFIED = 0; - - // Use the best available variant of the [Speech - // model][InputAudioConfig.model] that the caller is eligible for. - // - // Please see the [Dialogflow - // docs](https://cloud.google.com/dialogflow/docs/data-logging) for - // how to make your project eligible for enhanced models. - USE_BEST_AVAILABLE = 1; - - // Use standard model variant even if an enhanced model is available. See the - // [Cloud Speech - // documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models) - // for details about enhanced models. - USE_STANDARD = 2; - - // Use an enhanced model variant: - // - // * If an enhanced variant does not exist for the given - // [model][google.cloud.dialogflow.v2.InputAudioConfig.model] and request - // language, Dialogflow falls back to the standard variant. - // - // The [Cloud Speech - // documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models) - // describes which models have enhanced variants. - // - // * If the API caller isn't eligible for enhanced models, Dialogflow returns - // an error. Please see the [Dialogflow - // docs](https://cloud.google.com/dialogflow/docs/data-logging) - // for how to make your project eligible. - USE_ENHANCED = 3; + float boost = 2 [(google.api.field_behavior) = OPTIONAL]; } // Information for a word recognized by the speech recognizer. @@ -187,21 +94,20 @@ message SpeechWordInfo { // Instructs the speech recognizer how to process the audio content. message InputAudioConfig { // Required. Audio encoding of the audio content to process. - AudioEncoding audio_encoding = 1; + AudioEncoding audio_encoding = 1 [(google.api.field_behavior) = REQUIRED]; // Required. Sample rate (in Hertz) of the audio content sent in the query. - // Refer to - // [Cloud Speech API + // Refer to [Cloud Speech API // documentation](https://cloud.google.com/speech-to-text/docs/basics) for // more details. - int32 sample_rate_hertz = 2; + int32 sample_rate_hertz = 2 [(google.api.field_behavior) = REQUIRED]; // Required. The language of the supplied audio. Dialogflow does not do // translations. See [Language // Support](https://cloud.google.com/dialogflow/docs/reference/language) // for a list of the currently supported language codes. Note that queries in // the same session do not necessarily need to specify the same language. - string language_code = 3; + string language_code = 3 [(google.api.field_behavior) = REQUIRED]; // If `true`, Dialogflow returns // [SpeechWordInfo][google.cloud.dialogflow.v2.SpeechWordInfo] in @@ -277,29 +183,12 @@ message InputAudioConfig { bool enable_automatic_punctuation = 17; } -// Gender of the voice as described in -// [SSML voice element](https://www.w3.org/TR/speech-synthesis11/#edef_voice). -enum SsmlVoiceGender { - // An unspecified gender, which means that the client doesn't care which - // gender the selected voice will have. - SSML_VOICE_GENDER_UNSPECIFIED = 0; - - // A male voice. - SSML_VOICE_GENDER_MALE = 1; - - // A female voice. - SSML_VOICE_GENDER_FEMALE = 2; - - // A gender-neutral voice. - SSML_VOICE_GENDER_NEUTRAL = 3; -} - // Description of which voice to use for speech synthesis. message VoiceSelectionParams { // Optional. The name of the voice. If not set, the service will choose a // voice based on the other parameters such as language_code and // [ssml_gender][google.cloud.dialogflow.v2.VoiceSelectionParams.ssml_gender]. - string name = 1; + string name = 1 [(google.api.field_behavior) = OPTIONAL]; // Optional. The preferred gender of the voice. If not set, the service will // choose a voice based on the other parameters such as language_code and @@ -307,21 +196,21 @@ message VoiceSelectionParams { // this is only a preference, not requirement. If a voice of the appropriate // gender is not available, the synthesizer should substitute a voice with a // different gender rather than failing the request. - SsmlVoiceGender ssml_gender = 2; + SsmlVoiceGender ssml_gender = 2 [(google.api.field_behavior) = OPTIONAL]; } // Configuration of how speech should be synthesized. message SynthesizeSpeechConfig { // Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal - // native speed supported by the specific voice. 2.0 is twice as fast, and - // 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any - // other values < 0.25 or > 4.0 will return an error. - double speaking_rate = 1; + // native speed supported by the specific voice. 2.0 is twice as fast, and 0.5 + // is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any other + // values < 0.25 or > 4.0 will return an error. + double speaking_rate = 1 [(google.api.field_behavior) = OPTIONAL]; // Optional. Speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20 // semitones from the original pitch. -20 means decrease 20 semitones from the // original pitch. - double pitch = 2; + double pitch = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. Volume gain (in dB) of the normal native volume supported by the // specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of @@ -331,40 +220,16 @@ message SynthesizeSpeechConfig { // amplitude of the normal native signal amplitude. We strongly recommend not // to exceed +10 (dB) as there's usually no effective increase in loudness for // any value greater than that. - double volume_gain_db = 3; + double volume_gain_db = 3 [(google.api.field_behavior) = OPTIONAL]; // Optional. An identifier which selects 'audio effects' profiles that are // applied on (post synthesized) text to speech. Effects are applied on top of // each other in the order they are given. - repeated string effects_profile_id = 5; + repeated string effects_profile_id = 5 + [(google.api.field_behavior) = OPTIONAL]; // Optional. The desired voice of the synthesized audio. - VoiceSelectionParams voice = 4; -} - -// Audio encoding of the output audio format in Text-To-Speech. -enum OutputAudioEncoding { - // Not specified. - OUTPUT_AUDIO_ENCODING_UNSPECIFIED = 0; - - // Uncompressed 16-bit signed little-endian samples (Linear PCM). - // Audio content returned as LINEAR16 also contains a WAV header. - OUTPUT_AUDIO_ENCODING_LINEAR_16 = 1; - - // MP3 audio at 32kbps. - OUTPUT_AUDIO_ENCODING_MP3 = 2; - - // MP3 audio at 64kbps. - OUTPUT_AUDIO_ENCODING_MP3_64_KBPS = 4; - - // Opus encoded audio wrapped in an ogg container. The result will be a - // file which can be played natively on Android, and in browsers (at least - // Chrome and Firefox). The quality of the encoding is considerably higher - // than MP3 while using approximately the same bitrate. - OUTPUT_AUDIO_ENCODING_OGG_OPUS = 3; - - // 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law. - OUTPUT_AUDIO_ENCODING_MULAW = 5; + VoiceSelectionParams voice = 4 [(google.api.field_behavior) = OPTIONAL]; } // Instructs the speech synthesizer on how to generate the output audio content. @@ -386,6 +251,36 @@ message OutputAudioConfig { SynthesizeSpeechConfig synthesize_speech_config = 3; } +// A wrapper of repeated TelephonyDtmf digits. +message TelephonyDtmfEvents { + // A sequence of TelephonyDtmf digits. + repeated TelephonyDtmf dtmf_events = 1; +} + +// Configures speech transcription for +// [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile]. +message SpeechToTextConfig { + // The speech model used in speech to text. + // `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will be treated as + // `USE_ENHANCED`. It can be overridden in + // [AnalyzeContentRequest][google.cloud.dialogflow.v2.AnalyzeContentRequest] + // and + // [StreamingAnalyzeContentRequest][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest] + // request. If enhanced model variant is specified and an enhanced version of + // the specified model for the language does not exist, then it would emit an + // error. + SpeechModelVariant speech_model_variant = 1; + + // Which Speech model to select. Select the model best suited to your domain + // to get best results. If a model is not explicitly specified, then a default + // model is used. + // Refer to + // [Cloud Speech API + // documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) + // for more details. + string model = 2; +} + // [DTMF](https://en.wikipedia.org/wiki/Dual-tone_multi-frequency_signaling) // digit in Telephony Gateway. enum TelephonyDtmf { @@ -441,32 +336,137 @@ enum TelephonyDtmf { DTMF_POUND = 16; } -// A wrapper of repeated TelephonyDtmf digits. -message TelephonyDtmfEvents { - // A sequence of TelephonyDtmf digits. - repeated TelephonyDtmf dtmf_events = 1; +// Audio encoding of the audio content sent in the conversational query request. +// Refer to the +// [Cloud Speech API +// documentation](https://cloud.google.com/speech-to-text/docs/basics) for more +// details. +enum AudioEncoding { + // Not specified. + AUDIO_ENCODING_UNSPECIFIED = 0; + + // Uncompressed 16-bit signed little-endian samples (Linear PCM). + AUDIO_ENCODING_LINEAR_16 = 1; + + // [`FLAC`](https://xiph.org/flac/documentation.html) (Free Lossless Audio + // Codec) is the recommended encoding because it is lossless (therefore + // recognition is not compromised) and requires only about half the + // bandwidth of `LINEAR16`. `FLAC` stream encoding supports 16-bit and + // 24-bit samples, however, not all fields in `STREAMINFO` are supported. + AUDIO_ENCODING_FLAC = 2; + + // 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law. + AUDIO_ENCODING_MULAW = 3; + + // Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000. + AUDIO_ENCODING_AMR = 4; + + // Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000. + AUDIO_ENCODING_AMR_WB = 5; + + // Opus encoded audio frames in Ogg container + // ([OggOpus](https://wiki.xiph.org/OggOpus)). + // `sample_rate_hertz` must be 16000. + AUDIO_ENCODING_OGG_OPUS = 6; + + // Although the use of lossy encodings is not recommended, if a very low + // bitrate encoding is required, `OGG_OPUS` is highly preferred over + // Speex encoding. The [Speex](https://speex.org/) encoding supported by + // Dialogflow API has a header byte in each block, as in MIME type + // `audio/x-speex-with-header-byte`. + // It is a variant of the RTP Speex encoding defined in + // [RFC 5574](https://tools.ietf.org/html/rfc5574). + // The stream is a sequence of blocks, one block per RTP packet. Each block + // starts with a byte containing the length of the block, in bytes, followed + // by one or more frames of Speex data, padded to an integral number of + // bytes (octets) as specified in RFC 5574. In other words, each RTP header + // is replaced with a single byte containing the block length. Only Speex + // wideband is supported. `sample_rate_hertz` must be 16000. + AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE = 7; } -// Configures speech transcription for -// [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile]. -message SpeechToTextConfig { - // The speech model used in speech to text. - // `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will be treated as - // `USE_ENHANCED`. It can be overridden in - // [AnalyzeContentRequest][google.cloud.dialogflow.v2.AnalyzeContentRequest] - // and - // [StreamingAnalyzeContentRequest][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest] - // request. If enhanced model variant is specified and an enhanced version of - // the specified model for the language does not exist, then it would emit an - // error. - SpeechModelVariant speech_model_variant = 1; +// Variant of the specified [Speech +// model][google.cloud.dialogflow.v2.InputAudioConfig.model] to use. +// +// See the [Cloud Speech +// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models) +// for which models have different variants. For example, the "phone_call" model +// has both a standard and an enhanced variant. When you use an enhanced model, +// you will generally receive higher quality results than for a standard model. +enum SpeechModelVariant { + // No model variant specified. In this case Dialogflow defaults to + // USE_BEST_AVAILABLE. + SPEECH_MODEL_VARIANT_UNSPECIFIED = 0; - // Which Speech model to select. Select the model best suited to your domain - // to get best results. If a model is not explicitly specified, then a default - // model is used. - // Refer to - // [Cloud Speech API - // documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) - // for more details. - string model = 2; + // Use the best available variant of the [Speech + // model][InputAudioConfig.model] that the caller is eligible for. + // + // Please see the [Dialogflow + // docs](https://cloud.google.com/dialogflow/docs/data-logging) for + // how to make your project eligible for enhanced models. + USE_BEST_AVAILABLE = 1; + + // Use standard model variant even if an enhanced model is available. See the + // [Cloud Speech + // documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models) + // for details about enhanced models. + USE_STANDARD = 2; + + // Use an enhanced model variant: + // + // * If an enhanced variant does not exist for the given + // [model][google.cloud.dialogflow.v2.InputAudioConfig.model] and request + // language, Dialogflow falls back to the standard variant. + // + // The [Cloud Speech + // documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models) + // describes which models have enhanced variants. + // + // * If the API caller isn't eligible for enhanced models, Dialogflow returns + // an error. Please see the [Dialogflow + // docs](https://cloud.google.com/dialogflow/docs/data-logging) + // for how to make your project eligible. + USE_ENHANCED = 3; +} + +// Gender of the voice as described in +// [SSML voice element](https://www.w3.org/TR/speech-synthesis11/#edef_voice). +enum SsmlVoiceGender { + // An unspecified gender, which means that the client doesn't care which + // gender the selected voice will have. + SSML_VOICE_GENDER_UNSPECIFIED = 0; + + // A male voice. + SSML_VOICE_GENDER_MALE = 1; + + // A female voice. + SSML_VOICE_GENDER_FEMALE = 2; + + // A gender-neutral voice. + SSML_VOICE_GENDER_NEUTRAL = 3; +} + +// Audio encoding of the output audio format in Text-To-Speech. +enum OutputAudioEncoding { + // Not specified. + OUTPUT_AUDIO_ENCODING_UNSPECIFIED = 0; + + // Uncompressed 16-bit signed little-endian samples (Linear PCM). + // Audio content returned as LINEAR16 also contains a WAV header. + OUTPUT_AUDIO_ENCODING_LINEAR_16 = 1; + + // MP3 audio at 32kbps. + OUTPUT_AUDIO_ENCODING_MP3 = 2; + + // MP3 audio at 64kbps. + OUTPUT_AUDIO_ENCODING_MP3_64_KBPS = 4; + + // Opus encoded audio wrapped in an ogg container. The result will be a + // file which can be played natively on Android, and in browsers (at least + // Chrome and Firefox). The quality of the encoding is considerably higher + // than MP3 while using approximately the same bitrate. + OUTPUT_AUDIO_ENCODING_OGG_OPUS = 3; + + // 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law. + OUTPUT_AUDIO_ENCODING_MULAW = 5; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioConfigProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioConfigProto.java index 037923a7f469..ac83ead960b3 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioConfigProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioConfigProto.java @@ -76,82 +76,84 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "config.proto\022\037google.cloud.dialogflow.v2" + "beta1\032\037google/api/field_behavior.proto\032\031" + "google/api/resource.proto\032\036google/protob" - + "uf/duration.proto\"/\n\rSpeechContext\022\017\n\007ph" - + "rases\030\001 \003(\t\022\r\n\005boost\030\002 \001(\002\"\222\001\n\016SpeechWor" - + "dInfo\022\014\n\004word\030\003 \001(\t\022/\n\014start_offset\030\001 \001(" - + "\0132\031.google.protobuf.Duration\022-\n\nend_offs" - + "et\030\002 \001(\0132\031.google.protobuf.Duration\022\022\n\nc" - + "onfidence\030\004 \001(\002\"{\n\rBargeInConfig\0227\n\024no_b" - + "arge_in_duration\030\001 \001(\0132\031.google.protobuf" - + ".Duration\0221\n\016total_duration\030\002 \001(\0132\031.goog" - + "le.protobuf.Duration\"\231\004\n\020InputAudioConfi" - + "g\022F\n\016audio_encoding\030\001 \001(\0162..google.cloud" - + ".dialogflow.v2beta1.AudioEncoding\022\031\n\021sam" - + "ple_rate_hertz\030\002 \001(\005\022\025\n\rlanguage_code\030\003 " - + "\001(\t\022\030\n\020enable_word_info\030\r \001(\010\022\030\n\014phrase_" - + "hints\030\004 \003(\tB\002\030\001\022G\n\017speech_contexts\030\013 \003(\013" - + "2..google.cloud.dialogflow.v2beta1.Speec" - + "hContext\022\r\n\005model\030\007 \001(\t\022J\n\rmodel_variant" - + "\030\n \001(\01623.google.cloud.dialogflow.v2beta1" - + ".SpeechModelVariant\022\030\n\020single_utterance\030" - + "\010 \001(\010\022*\n\"disable_no_speech_recognized_ev" - + "ent\030\016 \001(\010\022G\n\017barge_in_config\030\017 \001(\0132..goo" - + "gle.cloud.dialogflow.v2beta1.BargeInConf" - + "ig\022$\n\034enable_automatic_punctuation\030\021 \001(\010" - + "\"k\n\024VoiceSelectionParams\022\014\n\004name\030\001 \001(\t\022E" - + "\n\013ssml_gender\030\002 \001(\01620.google.cloud.dialo" - + "gflow.v2beta1.SsmlVoiceGender\"\270\001\n\026Synthe" - + "sizeSpeechConfig\022\025\n\rspeaking_rate\030\001 \001(\001\022" - + "\r\n\005pitch\030\002 \001(\001\022\026\n\016volume_gain_db\030\003 \001(\001\022\032" - + "\n\022effects_profile_id\030\005 \003(\t\022D\n\005voice\030\004 \001(" - + "\01325.google.cloud.dialogflow.v2beta1.Voic" - + "eSelectionParams\"\335\001\n\021OutputAudioConfig\022R" - + "\n\016audio_encoding\030\001 \001(\01624.google.cloud.di" - + "alogflow.v2beta1.OutputAudioEncodingB\004\342A" - + "\001\002\022\031\n\021sample_rate_hertz\030\002 \001(\005\022Y\n\030synthes" - + "ize_speech_config\030\003 \001(\01327.google.cloud.d" - + "ialogflow.v2beta1.SynthesizeSpeechConfig" - + "\"Z\n\023TelephonyDtmfEvents\022C\n\013dtmf_events\030\001" - + " \003(\0162..google.cloud.dialogflow.v2beta1.T" - + "elephonyDtmf\"v\n\022SpeechToTextConfig\022Q\n\024sp" - + "eech_model_variant\030\001 \001(\01623.google.cloud." - + "dialogflow.v2beta1.SpeechModelVariant\022\r\n" - + "\005model\030\002 \001(\t*\373\001\n\rAudioEncoding\022\036\n\032AUDIO_" - + "ENCODING_UNSPECIFIED\020\000\022\034\n\030AUDIO_ENCODING" - + "_LINEAR_16\020\001\022\027\n\023AUDIO_ENCODING_FLAC\020\002\022\030\n" - + "\024AUDIO_ENCODING_MULAW\020\003\022\026\n\022AUDIO_ENCODIN" - + "G_AMR\020\004\022\031\n\025AUDIO_ENCODING_AMR_WB\020\005\022\033\n\027AU" - + "DIO_ENCODING_OGG_OPUS\020\006\022)\n%AUDIO_ENCODIN" - + "G_SPEEX_WITH_HEADER_BYTE\020\007*v\n\022SpeechMode" - + "lVariant\022$\n SPEECH_MODEL_VARIANT_UNSPECI" - + "FIED\020\000\022\026\n\022USE_BEST_AVAILABLE\020\001\022\020\n\014USE_ST" - + "ANDARD\020\002\022\020\n\014USE_ENHANCED\020\003*\215\001\n\017SsmlVoice" - + "Gender\022!\n\035SSML_VOICE_GENDER_UNSPECIFIED\020" - + "\000\022\032\n\026SSML_VOICE_GENDER_MALE\020\001\022\034\n\030SSML_VO" - + "ICE_GENDER_FEMALE\020\002\022\035\n\031SSML_VOICE_GENDER" - + "_NEUTRAL\020\003*\354\001\n\023OutputAudioEncoding\022%\n!OU" - + "TPUT_AUDIO_ENCODING_UNSPECIFIED\020\000\022#\n\037OUT" - + "PUT_AUDIO_ENCODING_LINEAR_16\020\001\022\035\n\031OUTPUT" - + "_AUDIO_ENCODING_MP3\020\002\022%\n!OUTPUT_AUDIO_EN" - + "CODING_MP3_64_KBPS\020\004\022\"\n\036OUTPUT_AUDIO_ENC" - + "ODING_OGG_OPUS\020\003\022\037\n\033OUTPUT_AUDIO_ENCODIN" - + "G_MULAW\020\005*\224\002\n\rTelephonyDtmf\022\036\n\032TELEPHONY" - + "_DTMF_UNSPECIFIED\020\000\022\014\n\010DTMF_ONE\020\001\022\014\n\010DTM" - + "F_TWO\020\002\022\016\n\nDTMF_THREE\020\003\022\r\n\tDTMF_FOUR\020\004\022\r" - + "\n\tDTMF_FIVE\020\005\022\014\n\010DTMF_SIX\020\006\022\016\n\nDTMF_SEVE" - + "N\020\007\022\016\n\nDTMF_EIGHT\020\010\022\r\n\tDTMF_NINE\020\t\022\r\n\tDT" - + "MF_ZERO\020\n\022\n\n\006DTMF_A\020\013\022\n\n\006DTMF_B\020\014\022\n\n\006DTM" - + "F_C\020\r\022\n\n\006DTMF_D\020\016\022\r\n\tDTMF_STAR\020\017\022\016\n\nDTMF" - + "_POUND\020\020B\345\002\n#com.google.cloud.dialogflow" - + ".v2beta1B\020AudioConfigProtoP\001ZCcloud.goog" - + "le.com/go/dialogflow/apiv2beta1/dialogfl" - + "owpb;dialogflowpb\370\001\001\242\002\002DF\252\002\037Google.Cloud" - + ".Dialogflow.V2Beta1\352AU\n\033automl.googleapi" - + "s.com/Model\0226projects/{project}/location" - + "s/{location}/models/{model}\352Ab\n\037speech.g" - + "oogleapis.com/PhraseSet\022?projects/{proje" - + "ct}/locations/{location}/phraseSets/{phr" - + "ase_set}b\006proto3" + + "uf/duration.proto\";\n\rSpeechContext\022\025\n\007ph" + + "rases\030\001 \003(\tB\004\342A\001\001\022\023\n\005boost\030\002 \001(\002B\004\342A\001\001\"\222" + + "\001\n\016SpeechWordInfo\022\014\n\004word\030\003 \001(\t\022/\n\014start" + + "_offset\030\001 \001(\0132\031.google.protobuf.Duration" + + "\022-\n\nend_offset\030\002 \001(\0132\031.google.protobuf.D" + + "uration\022\022\n\nconfidence\030\004 \001(\002\"{\n\rBargeInCo" + + "nfig\0227\n\024no_barge_in_duration\030\001 \001(\0132\031.goo" + + "gle.protobuf.Duration\0221\n\016total_duration\030" + + "\002 \001(\0132\031.google.protobuf.Duration\"\253\004\n\020Inp" + + "utAudioConfig\022L\n\016audio_encoding\030\001 \001(\0162.." + + "google.cloud.dialogflow.v2beta1.AudioEnc" + + "odingB\004\342A\001\002\022\037\n\021sample_rate_hertz\030\002 \001(\005B\004" + + "\342A\001\002\022\033\n\rlanguage_code\030\003 \001(\tB\004\342A\001\002\022\030\n\020ena" + + "ble_word_info\030\r \001(\010\022\030\n\014phrase_hints\030\004 \003(" + + "\tB\002\030\001\022G\n\017speech_contexts\030\013 \003(\0132..google." + + "cloud.dialogflow.v2beta1.SpeechContext\022\r" + + "\n\005model\030\007 \001(\t\022J\n\rmodel_variant\030\n \001(\01623.g" + + "oogle.cloud.dialogflow.v2beta1.SpeechMod" + + "elVariant\022\030\n\020single_utterance\030\010 \001(\010\022*\n\"d" + + "isable_no_speech_recognized_event\030\016 \001(\010\022" + + "G\n\017barge_in_config\030\017 \001(\0132..google.cloud." + + "dialogflow.v2beta1.BargeInConfig\022$\n\034enab" + + "le_automatic_punctuation\030\021 \001(\010\"w\n\024VoiceS" + + "electionParams\022\022\n\004name\030\001 \001(\tB\004\342A\001\001\022K\n\013ss" + + "ml_gender\030\002 \001(\01620.google.cloud.dialogflo" + + "w.v2beta1.SsmlVoiceGenderB\004\342A\001\001\"\326\001\n\026Synt" + + "hesizeSpeechConfig\022\033\n\rspeaking_rate\030\001 \001(" + + "\001B\004\342A\001\001\022\023\n\005pitch\030\002 \001(\001B\004\342A\001\001\022\034\n\016volume_g" + + "ain_db\030\003 \001(\001B\004\342A\001\001\022 \n\022effects_profile_id" + + "\030\005 \003(\tB\004\342A\001\001\022J\n\005voice\030\004 \001(\01325.google.clo" + + "ud.dialogflow.v2beta1.VoiceSelectionPara" + + "msB\004\342A\001\001\"\335\001\n\021OutputAudioConfig\022R\n\016audio_" + + "encoding\030\001 \001(\01624.google.cloud.dialogflow" + + ".v2beta1.OutputAudioEncodingB\004\342A\001\002\022\031\n\021sa" + + "mple_rate_hertz\030\002 \001(\005\022Y\n\030synthesize_spee" + + "ch_config\030\003 \001(\01327.google.cloud.dialogflo" + + "w.v2beta1.SynthesizeSpeechConfig\"Z\n\023Tele" + + "phonyDtmfEvents\022C\n\013dtmf_events\030\001 \003(\0162..g" + + "oogle.cloud.dialogflow.v2beta1.Telephony" + + "Dtmf\"v\n\022SpeechToTextConfig\022Q\n\024speech_mod" + + "el_variant\030\001 \001(\01623.google.cloud.dialogfl" + + "ow.v2beta1.SpeechModelVariant\022\r\n\005model\030\002" + + " \001(\t*\224\002\n\rTelephonyDtmf\022\036\n\032TELEPHONY_DTMF" + + "_UNSPECIFIED\020\000\022\014\n\010DTMF_ONE\020\001\022\014\n\010DTMF_TWO" + + "\020\002\022\016\n\nDTMF_THREE\020\003\022\r\n\tDTMF_FOUR\020\004\022\r\n\tDTM" + + "F_FIVE\020\005\022\014\n\010DTMF_SIX\020\006\022\016\n\nDTMF_SEVEN\020\007\022\016" + + "\n\nDTMF_EIGHT\020\010\022\r\n\tDTMF_NINE\020\t\022\r\n\tDTMF_ZE" + + "RO\020\n\022\n\n\006DTMF_A\020\013\022\n\n\006DTMF_B\020\014\022\n\n\006DTMF_C\020\r" + + "\022\n\n\006DTMF_D\020\016\022\r\n\tDTMF_STAR\020\017\022\016\n\nDTMF_POUN" + + "D\020\020*\373\001\n\rAudioEncoding\022\036\n\032AUDIO_ENCODING_" + + "UNSPECIFIED\020\000\022\034\n\030AUDIO_ENCODING_LINEAR_1" + + "6\020\001\022\027\n\023AUDIO_ENCODING_FLAC\020\002\022\030\n\024AUDIO_EN" + + "CODING_MULAW\020\003\022\026\n\022AUDIO_ENCODING_AMR\020\004\022\031" + + "\n\025AUDIO_ENCODING_AMR_WB\020\005\022\033\n\027AUDIO_ENCOD" + + "ING_OGG_OPUS\020\006\022)\n%AUDIO_ENCODING_SPEEX_W" + + "ITH_HEADER_BYTE\020\007*v\n\022SpeechModelVariant\022" + + "$\n SPEECH_MODEL_VARIANT_UNSPECIFIED\020\000\022\026\n" + + "\022USE_BEST_AVAILABLE\020\001\022\020\n\014USE_STANDARD\020\002\022" + + "\020\n\014USE_ENHANCED\020\003*\215\001\n\017SsmlVoiceGender\022!\n" + + "\035SSML_VOICE_GENDER_UNSPECIFIED\020\000\022\032\n\026SSML" + + "_VOICE_GENDER_MALE\020\001\022\034\n\030SSML_VOICE_GENDE" + + "R_FEMALE\020\002\022\035\n\031SSML_VOICE_GENDER_NEUTRAL\020" + + "\003*\354\001\n\023OutputAudioEncoding\022%\n!OUTPUT_AUDI" + + "O_ENCODING_UNSPECIFIED\020\000\022#\n\037OUTPUT_AUDIO" + + "_ENCODING_LINEAR_16\020\001\022\035\n\031OUTPUT_AUDIO_EN" + + "CODING_MP3\020\002\022%\n!OUTPUT_AUDIO_ENCODING_MP" + + "3_64_KBPS\020\004\022\"\n\036OUTPUT_AUDIO_ENCODING_OGG" + + "_OPUS\020\003\022\037\n\033OUTPUT_AUDIO_ENCODING_MULAW\020\005" + + "B\345\002\n#com.google.cloud.dialogflow.v2beta1" + + "B\020AudioConfigProtoP\001ZCcloud.google.com/g" + + "o/dialogflow/apiv2beta1/dialogflowpb;dia" + + "logflowpb\370\001\001\242\002\002DF\252\002\037Google.Cloud.Dialogf" + + "low.V2Beta1\352AU\n\033automl.googleapis.com/Mo" + + "del\0226projects/{project}/locations/{locat" + + "ion}/models/{model}\352Ab\n\037speech.googleapi" + + "s.com/PhraseSet\022?projects/{project}/loca" + + "tions/{location}/phraseSets/{phrase_set}" + + "b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioEncoding.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioEncoding.java index 4d06f0e6ff35..738be67b028d 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioEncoding.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioEncoding.java @@ -303,7 +303,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.dialogflow.v2beta1.AudioConfigProto.getDescriptor() .getEnumTypes() - .get(0); + .get(1); } private static final AudioEncoding[] VALUES = values(); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/HumanAgentAssistantConfig.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/HumanAgentAssistantConfig.java index ab9287af96f5..bb81a345f930 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/HumanAgentAssistantConfig.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/HumanAgentAssistantConfig.java @@ -816,7 +816,8 @@ public interface SuggestionFeatureConfigOrBuilder * Automatically iterates all participants and tries to compile * suggestions. * - * Supported features: ARTICLE_SUGGESTION, FAQ, DIALOGFLOW_ASSIST. + * Supported features: ARTICLE_SUGGESTION, FAQ, DIALOGFLOW_ASSIST, + * ENTITY_EXTRACTION. * * * bool enable_event_based_suggestion = 3; @@ -1111,7 +1112,8 @@ public com.google.cloud.dialogflow.v2beta1.SuggestionFeature getSuggestionFeatur * Automatically iterates all participants and tries to compile * suggestions. * - * Supported features: ARTICLE_SUGGESTION, FAQ, DIALOGFLOW_ASSIST. + * Supported features: ARTICLE_SUGGESTION, FAQ, DIALOGFLOW_ASSIST, + * ENTITY_EXTRACTION. * * * bool enable_event_based_suggestion = 3; @@ -2148,7 +2150,8 @@ public Builder clearSuggestionFeature() { * Automatically iterates all participants and tries to compile * suggestions. * - * Supported features: ARTICLE_SUGGESTION, FAQ, DIALOGFLOW_ASSIST. + * Supported features: ARTICLE_SUGGESTION, FAQ, DIALOGFLOW_ASSIST, + * ENTITY_EXTRACTION. * * * bool enable_event_based_suggestion = 3; @@ -2166,7 +2169,8 @@ public boolean getEnableEventBasedSuggestion() { * Automatically iterates all participants and tries to compile * suggestions. * - * Supported features: ARTICLE_SUGGESTION, FAQ, DIALOGFLOW_ASSIST. + * Supported features: ARTICLE_SUGGESTION, FAQ, DIALOGFLOW_ASSIST, + * ENTITY_EXTRACTION. * * * bool enable_event_based_suggestion = 3; @@ -2188,7 +2192,8 @@ public Builder setEnableEventBasedSuggestion(boolean value) { * Automatically iterates all participants and tries to compile * suggestions. * - * Supported features: ARTICLE_SUGGESTION, FAQ, DIALOGFLOW_ASSIST. + * Supported features: ARTICLE_SUGGESTION, FAQ, DIALOGFLOW_ASSIST, + * ENTITY_EXTRACTION. * * * bool enable_event_based_suggestion = 3; @@ -4635,7 +4640,8 @@ public interface SuggestionQueryConfigOrBuilder * * *
-     * Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.
+     * Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST,
+     * ENTITY_EXTRACTION.
      * 
* * @@ -4649,7 +4655,8 @@ public interface SuggestionQueryConfigOrBuilder * * *
-     * Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.
+     * Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST,
+     * ENTITY_EXTRACTION.
      * 
* * @@ -4665,7 +4672,8 @@ public interface SuggestionQueryConfigOrBuilder * * *
-     * Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.
+     * Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST,
+     * ENTITY_EXTRACTION.
      * 
* * @@ -6755,7 +6763,7 @@ public interface DialogflowQuerySourceOrBuilder *
      * Dialogflow source setting.
      *
-     * Supported feature: DIALOGFLOW_ASSIST.
+     * Supported feature: DIALOGFLOW_ASSIST, ENTITY_EXTRACTION.
      * 
* * Protobuf type {@code @@ -7892,7 +7900,7 @@ protected Builder newBuilderForType( *
        * Dialogflow source setting.
        *
-       * Supported feature: DIALOGFLOW_ASSIST.
+       * Supported feature: DIALOGFLOW_ASSIST, ENTITY_EXTRACTION.
        * 
* * Protobuf type {@code @@ -9590,7 +9598,8 @@ public boolean hasDocumentQuerySource() { * * *
-     * Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.
+     * Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST,
+     * ENTITY_EXTRACTION.
      * 
* * @@ -9607,7 +9616,8 @@ public boolean hasDialogflowQuerySource() { * * *
-     * Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.
+     * Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST,
+     * ENTITY_EXTRACTION.
      * 
* * @@ -9632,7 +9642,8 @@ public boolean hasDialogflowQuerySource() { * * *
-     * Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.
+     * Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST,
+     * ENTITY_EXTRACTION.
      * 
* * @@ -10942,7 +10953,8 @@ public Builder clearDocumentQuerySource() { * * *
-       * Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.
+       * Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST,
+       * ENTITY_EXTRACTION.
        * 
* * @@ -10959,7 +10971,8 @@ public boolean hasDialogflowQuerySource() { * * *
-       * Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.
+       * Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST,
+       * ENTITY_EXTRACTION.
        * 
* * @@ -10992,7 +11005,8 @@ public boolean hasDialogflowQuerySource() { * * *
-       * Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.
+       * Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST,
+       * ENTITY_EXTRACTION.
        * 
* * @@ -11019,7 +11033,8 @@ public Builder setDialogflowQuerySource( * * *
-       * Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.
+       * Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST,
+       * ENTITY_EXTRACTION.
        * 
* * @@ -11043,7 +11058,8 @@ public Builder setDialogflowQuerySource( * * *
-       * Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.
+       * Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST,
+       * ENTITY_EXTRACTION.
        * 
* * @@ -11085,7 +11101,8 @@ public Builder mergeDialogflowQuerySource( * * *
-       * Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.
+       * Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST,
+       * ENTITY_EXTRACTION.
        * 
* * @@ -11112,7 +11129,8 @@ public Builder clearDialogflowQuerySource() { * * *
-       * Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.
+       * Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST,
+       * ENTITY_EXTRACTION.
        * 
* * @@ -11128,7 +11146,8 @@ public Builder clearDialogflowQuerySource() { * * *
-       * Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.
+       * Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST,
+       * ENTITY_EXTRACTION.
        * 
* * @@ -11155,7 +11174,8 @@ public Builder clearDialogflowQuerySource() { * * *
-       * Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.
+       * Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST,
+       * ENTITY_EXTRACTION.
        * 
* * diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfig.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfig.java index fbe10aaf06d2..370215f9fae2 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfig.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfig.java @@ -76,7 +76,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Required. Audio encoding of the audio content to process. * * - * .google.cloud.dialogflow.v2beta1.AudioEncoding audio_encoding = 1; + * + * .google.cloud.dialogflow.v2beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The enum numeric value on the wire for audioEncoding. */ @@ -91,7 +93,9 @@ public int getAudioEncodingValue() { * Required. Audio encoding of the audio content to process. * * - * .google.cloud.dialogflow.v2beta1.AudioEncoding audio_encoding = 1; + * + * .google.cloud.dialogflow.v2beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The audioEncoding. */ @@ -109,13 +113,12 @@ public com.google.cloud.dialogflow.v2beta1.AudioEncoding getAudioEncoding() { * *
    * Required. Sample rate (in Hertz) of the audio content sent in the query.
-   * Refer to
-   * [Cloud Speech API
+   * Refer to [Cloud Speech API
    * documentation](https://cloud.google.com/speech-to-text/docs/basics) for
    * more details.
    * 
* - * int32 sample_rate_hertz = 2; + * int32 sample_rate_hertz = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The sampleRateHertz. */ @@ -139,7 +142,7 @@ public int getSampleRateHertz() { * the same session do not necessarily need to specify the same language. * * - * string language_code = 3; + * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The languageCode. */ @@ -166,7 +169,7 @@ public java.lang.String getLanguageCode() { * the same session do not necessarily need to specify the same language. * * - * string language_code = 3; + * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for languageCode. */ @@ -230,7 +233,7 @@ public boolean getEnableWordInfo() { * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2beta1.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2beta1/audio_config.proto;l=266 + * google/cloud/dialogflow/v2beta1/audio_config.proto;l=172 * @return A list containing the phraseHints. */ @java.lang.Deprecated @@ -256,7 +259,7 @@ public com.google.protobuf.ProtocolStringList getPhraseHintsList() { * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2beta1.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2beta1/audio_config.proto;l=266 + * google/cloud/dialogflow/v2beta1/audio_config.proto;l=172 * @return The count of phraseHints. */ @java.lang.Deprecated @@ -282,7 +285,7 @@ public int getPhraseHintsCount() { * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2beta1.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2beta1/audio_config.proto;l=266 + * google/cloud/dialogflow/v2beta1/audio_config.proto;l=172 * @param index The index of the element to return. * @return The phraseHints at the given index. */ @@ -309,7 +312,7 @@ public java.lang.String getPhraseHints(int index) { * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2beta1.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2beta1/audio_config.proto;l=266 + * google/cloud/dialogflow/v2beta1/audio_config.proto;l=172 * @param index The index of the value to return. * @return The bytes of the phraseHints at the given index. */ @@ -1334,7 +1337,9 @@ public Builder mergeFrom( * Required. Audio encoding of the audio content to process. * * - * .google.cloud.dialogflow.v2beta1.AudioEncoding audio_encoding = 1; + * + * .google.cloud.dialogflow.v2beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The enum numeric value on the wire for audioEncoding. */ @@ -1349,7 +1354,9 @@ public int getAudioEncodingValue() { * Required. Audio encoding of the audio content to process. * * - * .google.cloud.dialogflow.v2beta1.AudioEncoding audio_encoding = 1; + * + * .google.cloud.dialogflow.v2beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @param value The enum numeric value on the wire for audioEncoding to set. * @return This builder for chaining. @@ -1367,7 +1374,9 @@ public Builder setAudioEncodingValue(int value) { * Required. Audio encoding of the audio content to process. * * - * .google.cloud.dialogflow.v2beta1.AudioEncoding audio_encoding = 1; + * + * .google.cloud.dialogflow.v2beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The audioEncoding. */ @@ -1386,7 +1395,9 @@ public com.google.cloud.dialogflow.v2beta1.AudioEncoding getAudioEncoding() { * Required. Audio encoding of the audio content to process. * * - * .google.cloud.dialogflow.v2beta1.AudioEncoding audio_encoding = 1; + * + * .google.cloud.dialogflow.v2beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @param value The audioEncoding to set. * @return This builder for chaining. @@ -1407,7 +1418,9 @@ public Builder setAudioEncoding(com.google.cloud.dialogflow.v2beta1.AudioEncodin * Required. Audio encoding of the audio content to process. * * - * .google.cloud.dialogflow.v2beta1.AudioEncoding audio_encoding = 1; + * + * .google.cloud.dialogflow.v2beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return This builder for chaining. */ @@ -1424,13 +1437,12 @@ public Builder clearAudioEncoding() { * *
      * Required. Sample rate (in Hertz) of the audio content sent in the query.
-     * Refer to
-     * [Cloud Speech API
+     * Refer to [Cloud Speech API
      * documentation](https://cloud.google.com/speech-to-text/docs/basics) for
      * more details.
      * 
* - * int32 sample_rate_hertz = 2; + * int32 sample_rate_hertz = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The sampleRateHertz. */ @@ -1443,13 +1455,12 @@ public int getSampleRateHertz() { * *
      * Required. Sample rate (in Hertz) of the audio content sent in the query.
-     * Refer to
-     * [Cloud Speech API
+     * Refer to [Cloud Speech API
      * documentation](https://cloud.google.com/speech-to-text/docs/basics) for
      * more details.
      * 
* - * int32 sample_rate_hertz = 2; + * int32 sample_rate_hertz = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param value The sampleRateHertz to set. * @return This builder for chaining. @@ -1466,13 +1477,12 @@ public Builder setSampleRateHertz(int value) { * *
      * Required. Sample rate (in Hertz) of the audio content sent in the query.
-     * Refer to
-     * [Cloud Speech API
+     * Refer to [Cloud Speech API
      * documentation](https://cloud.google.com/speech-to-text/docs/basics) for
      * more details.
      * 
* - * int32 sample_rate_hertz = 2; + * int32 sample_rate_hertz = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ @@ -1495,7 +1505,7 @@ public Builder clearSampleRateHertz() { * the same session do not necessarily need to specify the same language. * * - * string language_code = 3; + * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The languageCode. */ @@ -1521,7 +1531,7 @@ public java.lang.String getLanguageCode() { * the same session do not necessarily need to specify the same language. * * - * string language_code = 3; + * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for languageCode. */ @@ -1547,7 +1557,7 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { * the same session do not necessarily need to specify the same language. * * - * string language_code = 3; + * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; * * @param value The languageCode to set. * @return This builder for chaining. @@ -1572,7 +1582,7 @@ public Builder setLanguageCode(java.lang.String value) { * the same session do not necessarily need to specify the same language. * * - * string language_code = 3; + * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ @@ -1593,7 +1603,7 @@ public Builder clearLanguageCode() { * the same session do not necessarily need to specify the same language. * * - * string language_code = 3; + * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for languageCode to set. * @return This builder for chaining. @@ -1705,7 +1715,7 @@ private void ensurePhraseHintsIsMutable() { * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2beta1.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2beta1/audio_config.proto;l=266 + * google/cloud/dialogflow/v2beta1/audio_config.proto;l=172 * @return A list containing the phraseHints. */ @java.lang.Deprecated @@ -1732,7 +1742,7 @@ public com.google.protobuf.ProtocolStringList getPhraseHintsList() { * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2beta1.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2beta1/audio_config.proto;l=266 + * google/cloud/dialogflow/v2beta1/audio_config.proto;l=172 * @return The count of phraseHints. */ @java.lang.Deprecated @@ -1758,7 +1768,7 @@ public int getPhraseHintsCount() { * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2beta1.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2beta1/audio_config.proto;l=266 + * google/cloud/dialogflow/v2beta1/audio_config.proto;l=172 * @param index The index of the element to return. * @return The phraseHints at the given index. */ @@ -1785,7 +1795,7 @@ public java.lang.String getPhraseHints(int index) { * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2beta1.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2beta1/audio_config.proto;l=266 + * google/cloud/dialogflow/v2beta1/audio_config.proto;l=172 * @param index The index of the value to return. * @return The bytes of the phraseHints at the given index. */ @@ -1812,7 +1822,7 @@ public com.google.protobuf.ByteString getPhraseHintsBytes(int index) { * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2beta1.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2beta1/audio_config.proto;l=266 + * google/cloud/dialogflow/v2beta1/audio_config.proto;l=172 * @param index The index to set the value at. * @param value The phraseHints to set. * @return This builder for chaining. @@ -1847,7 +1857,7 @@ public Builder setPhraseHints(int index, java.lang.String value) { * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2beta1.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2beta1/audio_config.proto;l=266 + * google/cloud/dialogflow/v2beta1/audio_config.proto;l=172 * @param value The phraseHints to add. * @return This builder for chaining. */ @@ -1881,7 +1891,7 @@ public Builder addPhraseHints(java.lang.String value) { * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2beta1.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2beta1/audio_config.proto;l=266 + * google/cloud/dialogflow/v2beta1/audio_config.proto;l=172 * @param values The phraseHints to add. * @return This builder for chaining. */ @@ -1912,7 +1922,7 @@ public Builder addAllPhraseHints(java.lang.Iterable values) { * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2beta1.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2beta1/audio_config.proto;l=266 + * google/cloud/dialogflow/v2beta1/audio_config.proto;l=172 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1942,7 +1952,7 @@ public Builder clearPhraseHints() { * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2beta1.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2beta1/audio_config.proto;l=266 + * google/cloud/dialogflow/v2beta1/audio_config.proto;l=172 * @param value The bytes of the phraseHints to add. * @return This builder for chaining. */ diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfigOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfigOrBuilder.java index 96292290cdf1..f9316941a8f5 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfigOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfigOrBuilder.java @@ -30,7 +30,9 @@ public interface InputAudioConfigOrBuilder * Required. Audio encoding of the audio content to process. * * - * .google.cloud.dialogflow.v2beta1.AudioEncoding audio_encoding = 1; + * + * .google.cloud.dialogflow.v2beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The enum numeric value on the wire for audioEncoding. */ @@ -42,7 +44,9 @@ public interface InputAudioConfigOrBuilder * Required. Audio encoding of the audio content to process. * * - * .google.cloud.dialogflow.v2beta1.AudioEncoding audio_encoding = 1; + * + * .google.cloud.dialogflow.v2beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The audioEncoding. */ @@ -53,13 +57,12 @@ public interface InputAudioConfigOrBuilder * *
    * Required. Sample rate (in Hertz) of the audio content sent in the query.
-   * Refer to
-   * [Cloud Speech API
+   * Refer to [Cloud Speech API
    * documentation](https://cloud.google.com/speech-to-text/docs/basics) for
    * more details.
    * 
* - * int32 sample_rate_hertz = 2; + * int32 sample_rate_hertz = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The sampleRateHertz. */ @@ -76,7 +79,7 @@ public interface InputAudioConfigOrBuilder * the same session do not necessarily need to specify the same language. * * - * string language_code = 3; + * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The languageCode. */ @@ -92,7 +95,7 @@ public interface InputAudioConfigOrBuilder * the same session do not necessarily need to specify the same language. * * - * string language_code = 3; + * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for languageCode. */ @@ -135,7 +138,7 @@ public interface InputAudioConfigOrBuilder * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2beta1.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2beta1/audio_config.proto;l=266 + * google/cloud/dialogflow/v2beta1/audio_config.proto;l=172 * @return A list containing the phraseHints. */ @java.lang.Deprecated @@ -159,7 +162,7 @@ public interface InputAudioConfigOrBuilder * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2beta1.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2beta1/audio_config.proto;l=266 + * google/cloud/dialogflow/v2beta1/audio_config.proto;l=172 * @return The count of phraseHints. */ @java.lang.Deprecated @@ -183,7 +186,7 @@ public interface InputAudioConfigOrBuilder * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2beta1.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2beta1/audio_config.proto;l=266 + * google/cloud/dialogflow/v2beta1/audio_config.proto;l=172 * @param index The index of the element to return. * @return The phraseHints at the given index. */ @@ -208,7 +211,7 @@ public interface InputAudioConfigOrBuilder * repeated string phrase_hints = 4 [deprecated = true]; * * @deprecated google.cloud.dialogflow.v2beta1.InputAudioConfig.phrase_hints is deprecated. See - * google/cloud/dialogflow/v2beta1/audio_config.proto;l=266 + * google/cloud/dialogflow/v2beta1/audio_config.proto;l=172 * @param index The index of the value to return. * @return The bytes of the phraseHints at the given index. */ diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OutputAudioEncoding.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OutputAudioEncoding.java index a9a190597e83..0e92cbd8bb03 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OutputAudioEncoding.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OutputAudioEncoding.java @@ -229,7 +229,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.dialogflow.v2beta1.AudioConfigProto.getDescriptor() .getEnumTypes() - .get(3); + .get(4); } private static final OutputAudioEncoding[] VALUES = values(); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechContext.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechContext.java index ebab47ed8bd3..707d5f4adf95 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechContext.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechContext.java @@ -87,7 +87,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * limits. * * - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the phrases. */ @@ -113,7 +113,7 @@ public com.google.protobuf.ProtocolStringList getPhrasesList() { * limits. * * - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of phrases. */ @@ -139,7 +139,7 @@ public int getPhrasesCount() { * limits. * * - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The phrases at the given index. @@ -166,7 +166,7 @@ public java.lang.String getPhrases(int index) { * limits. * * - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the phrases at the given index. @@ -192,7 +192,7 @@ public com.google.protobuf.ByteString getPhrasesBytes(int index) { * find a value that fits your use case with binary search. * * - * float boost = 2; + * float boost = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The boost. */ @@ -609,7 +609,7 @@ private void ensurePhrasesIsMutable() { * limits. * * - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the phrases. */ @@ -636,7 +636,7 @@ public com.google.protobuf.ProtocolStringList getPhrasesList() { * limits. * * - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of phrases. */ @@ -662,7 +662,7 @@ public int getPhrasesCount() { * limits. * * - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The phrases at the given index. @@ -689,7 +689,7 @@ public java.lang.String getPhrases(int index) { * limits. * * - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the phrases at the given index. @@ -716,7 +716,7 @@ public com.google.protobuf.ByteString getPhrasesBytes(int index) { * limits. * * - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index to set the value at. * @param value The phrases to set. @@ -751,7 +751,7 @@ public Builder setPhrases(int index, java.lang.String value) { * limits. * * - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The phrases to add. * @return This builder for chaining. @@ -785,7 +785,7 @@ public Builder addPhrases(java.lang.String value) { * limits. * * - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param values The phrases to add. * @return This builder for chaining. @@ -816,7 +816,7 @@ public Builder addAllPhrases(java.lang.Iterable values) { * limits. * * - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -846,7 +846,7 @@ public Builder clearPhrases() { * limits. * * - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes of the phrases to add. * @return This builder for chaining. @@ -879,7 +879,7 @@ public Builder addPhrasesBytes(com.google.protobuf.ByteString value) { * find a value that fits your use case with binary search. * * - * float boost = 2; + * float boost = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The boost. */ @@ -902,7 +902,7 @@ public float getBoost() { * find a value that fits your use case with binary search. * * - * float boost = 2; + * float boost = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The boost to set. * @return This builder for chaining. @@ -929,7 +929,7 @@ public Builder setBoost(float value) { * find a value that fits your use case with binary search. * * - * float boost = 2; + * float boost = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechContextOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechContextOrBuilder.java index beeacafa766a..17281e4e8316 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechContextOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechContextOrBuilder.java @@ -42,7 +42,7 @@ public interface SpeechContextOrBuilder * limits. * * - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the phrases. */ @@ -66,7 +66,7 @@ public interface SpeechContextOrBuilder * limits. * * - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of phrases. */ @@ -90,7 +90,7 @@ public interface SpeechContextOrBuilder * limits. * * - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The phrases at the given index. @@ -115,7 +115,7 @@ public interface SpeechContextOrBuilder * limits. * * - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the phrases at the given index. @@ -137,7 +137,7 @@ public interface SpeechContextOrBuilder * find a value that fits your use case with binary search. * * - * float boost = 2; + * float boost = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The boost. */ diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechModelVariant.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechModelVariant.java index 30a7bb1ef295..cdf52dfad130 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechModelVariant.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechModelVariant.java @@ -227,7 +227,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.dialogflow.v2beta1.AudioConfigProto.getDescriptor() .getEnumTypes() - .get(1); + .get(2); } private static final SpeechModelVariant[] VALUES = values(); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SsmlVoiceGender.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SsmlVoiceGender.java index f366c3aec0d2..d23475ac6e16 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SsmlVoiceGender.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SsmlVoiceGender.java @@ -178,7 +178,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.dialogflow.v2beta1.AudioConfigProto.getDescriptor() .getEnumTypes() - .get(2); + .get(3); } private static final SsmlVoiceGender[] VALUES = values(); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SynthesizeSpeechConfig.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SynthesizeSpeechConfig.java index edf3c900f4c6..525fa8bd472a 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SynthesizeSpeechConfig.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SynthesizeSpeechConfig.java @@ -69,12 +69,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal
-   * native speed supported by the specific voice. 2.0 is twice as fast, and
-   * 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any
-   * other values < 0.25 or > 4.0 will return an error.
+   * native speed supported by the specific voice. 2.0 is twice as fast, and 0.5
+   * is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any other
+   * values < 0.25 or > 4.0 will return an error.
    * 
* - * double speaking_rate = 1; + * double speaking_rate = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The speakingRate. */ @@ -94,7 +94,7 @@ public double getSpeakingRate() { * original pitch. * * - * double pitch = 2; + * double pitch = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pitch. */ @@ -119,7 +119,7 @@ public double getPitch() { * any value greater than that. * * - * double volume_gain_db = 3; + * double volume_gain_db = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The volumeGainDb. */ @@ -142,7 +142,7 @@ public double getVolumeGainDb() { * each other in the order they are given. * * - * repeated string effects_profile_id = 5; + * repeated string effects_profile_id = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the effectsProfileId. */ @@ -158,7 +158,7 @@ public com.google.protobuf.ProtocolStringList getEffectsProfileIdList() { * each other in the order they are given. * * - * repeated string effects_profile_id = 5; + * repeated string effects_profile_id = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of effectsProfileId. */ @@ -174,7 +174,7 @@ public int getEffectsProfileIdCount() { * each other in the order they are given. * * - * repeated string effects_profile_id = 5; + * repeated string effects_profile_id = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The effectsProfileId at the given index. @@ -191,7 +191,7 @@ public java.lang.String getEffectsProfileId(int index) { * each other in the order they are given. * * - * repeated string effects_profile_id = 5; + * repeated string effects_profile_id = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the effectsProfileId at the given index. @@ -209,7 +209,9 @@ public com.google.protobuf.ByteString getEffectsProfileIdBytes(int index) { * Optional. The desired voice of the synthesized audio. * * - * .google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4; + * + * .google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the voice field is set. */ @@ -224,7 +226,9 @@ public boolean hasVoice() { * Optional. The desired voice of the synthesized audio. * * - * .google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4; + * + * .google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The voice. */ @@ -241,7 +245,9 @@ public com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams getVoice() { * Optional. The desired voice of the synthesized audio. * * - * .google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4; + * + * .google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dialogflow.v2beta1.VoiceSelectionParamsOrBuilder getVoiceOrBuilder() { @@ -721,12 +727,12 @@ public Builder mergeFrom( * *
      * Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal
-     * native speed supported by the specific voice. 2.0 is twice as fast, and
-     * 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any
-     * other values < 0.25 or > 4.0 will return an error.
+     * native speed supported by the specific voice. 2.0 is twice as fast, and 0.5
+     * is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any other
+     * values < 0.25 or > 4.0 will return an error.
      * 
* - * double speaking_rate = 1; + * double speaking_rate = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The speakingRate. */ @@ -739,12 +745,12 @@ public double getSpeakingRate() { * *
      * Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal
-     * native speed supported by the specific voice. 2.0 is twice as fast, and
-     * 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any
-     * other values < 0.25 or > 4.0 will return an error.
+     * native speed supported by the specific voice. 2.0 is twice as fast, and 0.5
+     * is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any other
+     * values < 0.25 or > 4.0 will return an error.
      * 
* - * double speaking_rate = 1; + * double speaking_rate = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The speakingRate to set. * @return This builder for chaining. @@ -761,12 +767,12 @@ public Builder setSpeakingRate(double value) { * *
      * Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal
-     * native speed supported by the specific voice. 2.0 is twice as fast, and
-     * 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any
-     * other values < 0.25 or > 4.0 will return an error.
+     * native speed supported by the specific voice. 2.0 is twice as fast, and 0.5
+     * is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any other
+     * values < 0.25 or > 4.0 will return an error.
      * 
* - * double speaking_rate = 1; + * double speaking_rate = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -787,7 +793,7 @@ public Builder clearSpeakingRate() { * original pitch. * * - * double pitch = 2; + * double pitch = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pitch. */ @@ -804,7 +810,7 @@ public double getPitch() { * original pitch. * * - * double pitch = 2; + * double pitch = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pitch to set. * @return This builder for chaining. @@ -825,7 +831,7 @@ public Builder setPitch(double value) { * original pitch. * * - * double pitch = 2; + * double pitch = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -851,7 +857,7 @@ public Builder clearPitch() { * any value greater than that. * * - * double volume_gain_db = 3; + * double volume_gain_db = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The volumeGainDb. */ @@ -873,7 +879,7 @@ public double getVolumeGainDb() { * any value greater than that. * * - * double volume_gain_db = 3; + * double volume_gain_db = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The volumeGainDb to set. * @return This builder for chaining. @@ -899,7 +905,7 @@ public Builder setVolumeGainDb(double value) { * any value greater than that. * * - * double volume_gain_db = 3; + * double volume_gain_db = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -928,7 +934,8 @@ private void ensureEffectsProfileIdIsMutable() { * each other in the order they are given. * * - * repeated string effects_profile_id = 5; + * repeated string effects_profile_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return A list containing the effectsProfileId. */ @@ -945,7 +952,8 @@ public com.google.protobuf.ProtocolStringList getEffectsProfileIdList() { * each other in the order they are given. * * - * repeated string effects_profile_id = 5; + * repeated string effects_profile_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The count of effectsProfileId. */ @@ -961,7 +969,8 @@ public int getEffectsProfileIdCount() { * each other in the order they are given. * * - * repeated string effects_profile_id = 5; + * repeated string effects_profile_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the element to return. * @return The effectsProfileId at the given index. @@ -978,7 +987,8 @@ public java.lang.String getEffectsProfileId(int index) { * each other in the order they are given. * * - * repeated string effects_profile_id = 5; + * repeated string effects_profile_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the value to return. * @return The bytes of the effectsProfileId at the given index. @@ -995,7 +1005,8 @@ public com.google.protobuf.ByteString getEffectsProfileIdBytes(int index) { * each other in the order they are given. * * - * repeated string effects_profile_id = 5; + * repeated string effects_profile_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index to set the value at. * @param value The effectsProfileId to set. @@ -1020,7 +1031,8 @@ public Builder setEffectsProfileId(int index, java.lang.String value) { * each other in the order they are given. * * - * repeated string effects_profile_id = 5; + * repeated string effects_profile_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The effectsProfileId to add. * @return This builder for chaining. @@ -1044,7 +1056,8 @@ public Builder addEffectsProfileId(java.lang.String value) { * each other in the order they are given. * * - * repeated string effects_profile_id = 5; + * repeated string effects_profile_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param values The effectsProfileId to add. * @return This builder for chaining. @@ -1065,7 +1078,8 @@ public Builder addAllEffectsProfileId(java.lang.Iterable value * each other in the order they are given. * * - * repeated string effects_profile_id = 5; + * repeated string effects_profile_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return This builder for chaining. */ @@ -1085,7 +1099,8 @@ public Builder clearEffectsProfileId() { * each other in the order they are given. * * - * repeated string effects_profile_id = 5; + * repeated string effects_profile_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The bytes of the effectsProfileId to add. * @return This builder for chaining. @@ -1115,7 +1130,9 @@ public Builder addEffectsProfileIdBytes(com.google.protobuf.ByteString value) { * Optional. The desired voice of the synthesized audio. * * - * .google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4; + * + * .google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the voice field is set. */ @@ -1129,7 +1146,9 @@ public boolean hasVoice() { * Optional. The desired voice of the synthesized audio. * * - * .google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4; + * + * .google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The voice. */ @@ -1149,7 +1168,9 @@ public com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams getVoice() { * Optional. The desired voice of the synthesized audio. * * - * .google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4; + * + * .google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setVoice(com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams value) { if (voiceBuilder_ == null) { @@ -1171,7 +1192,9 @@ public Builder setVoice(com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams * Optional. The desired voice of the synthesized audio. * * - * .google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4; + * + * .google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setVoice( com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams.Builder builderForValue) { @@ -1191,7 +1214,9 @@ public Builder setVoice( * Optional. The desired voice of the synthesized audio. * * - * .google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4; + * + * .google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeVoice(com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams value) { if (voiceBuilder_ == null) { @@ -1217,7 +1242,9 @@ public Builder mergeVoice(com.google.cloud.dialogflow.v2beta1.VoiceSelectionPara * Optional. The desired voice of the synthesized audio. * * - * .google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4; + * + * .google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearVoice() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1236,7 +1263,9 @@ public Builder clearVoice() { * Optional. The desired voice of the synthesized audio. * * - * .google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4; + * + * .google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams.Builder getVoiceBuilder() { bitField0_ |= 0x00000010; @@ -1250,7 +1279,9 @@ public com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams.Builder getVoice * Optional. The desired voice of the synthesized audio. * * - * .google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4; + * + * .google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dialogflow.v2beta1.VoiceSelectionParamsOrBuilder getVoiceOrBuilder() { if (voiceBuilder_ != null) { @@ -1268,7 +1299,9 @@ public com.google.cloud.dialogflow.v2beta1.VoiceSelectionParamsOrBuilder getVoic * Optional. The desired voice of the synthesized audio. * * - * .google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4; + * + * .google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.v2beta1.VoiceSelectionParams, diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SynthesizeSpeechConfigOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SynthesizeSpeechConfigOrBuilder.java index 90f3551d0cad..11e03c34008f 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SynthesizeSpeechConfigOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SynthesizeSpeechConfigOrBuilder.java @@ -28,12 +28,12 @@ public interface SynthesizeSpeechConfigOrBuilder * *
    * Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal
-   * native speed supported by the specific voice. 2.0 is twice as fast, and
-   * 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any
-   * other values < 0.25 or > 4.0 will return an error.
+   * native speed supported by the specific voice. 2.0 is twice as fast, and 0.5
+   * is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any other
+   * values < 0.25 or > 4.0 will return an error.
    * 
* - * double speaking_rate = 1; + * double speaking_rate = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The speakingRate. */ @@ -48,7 +48,7 @@ public interface SynthesizeSpeechConfigOrBuilder * original pitch. * * - * double pitch = 2; + * double pitch = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pitch. */ @@ -68,7 +68,7 @@ public interface SynthesizeSpeechConfigOrBuilder * any value greater than that. * * - * double volume_gain_db = 3; + * double volume_gain_db = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The volumeGainDb. */ @@ -83,7 +83,7 @@ public interface SynthesizeSpeechConfigOrBuilder * each other in the order they are given. * * - * repeated string effects_profile_id = 5; + * repeated string effects_profile_id = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the effectsProfileId. */ @@ -97,7 +97,7 @@ public interface SynthesizeSpeechConfigOrBuilder * each other in the order they are given. * * - * repeated string effects_profile_id = 5; + * repeated string effects_profile_id = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of effectsProfileId. */ @@ -111,7 +111,7 @@ public interface SynthesizeSpeechConfigOrBuilder * each other in the order they are given. * * - * repeated string effects_profile_id = 5; + * repeated string effects_profile_id = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The effectsProfileId at the given index. @@ -126,7 +126,7 @@ public interface SynthesizeSpeechConfigOrBuilder * each other in the order they are given. * * - * repeated string effects_profile_id = 5; + * repeated string effects_profile_id = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the effectsProfileId at the given index. @@ -140,7 +140,9 @@ public interface SynthesizeSpeechConfigOrBuilder * Optional. The desired voice of the synthesized audio. * * - * .google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4; + * + * .google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the voice field is set. */ @@ -152,7 +154,9 @@ public interface SynthesizeSpeechConfigOrBuilder * Optional. The desired voice of the synthesized audio. * * - * .google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4; + * + * .google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The voice. */ @@ -164,7 +168,9 @@ public interface SynthesizeSpeechConfigOrBuilder * Optional. The desired voice of the synthesized audio. * * - * .google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4; + * + * .google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dialogflow.v2beta1.VoiceSelectionParamsOrBuilder getVoiceOrBuilder(); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/TelephonyDtmf.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/TelephonyDtmf.java index 5d6f22c79a37..75f0f20a4c43 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/TelephonyDtmf.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/TelephonyDtmf.java @@ -462,7 +462,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.dialogflow.v2beta1.AudioConfigProto.getDescriptor() .getEnumTypes() - .get(4); + .get(0); } private static final TelephonyDtmf[] VALUES = values(); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/VoiceSelectionParams.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/VoiceSelectionParams.java index a84d9590b10a..9d82de84b803 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/VoiceSelectionParams.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/VoiceSelectionParams.java @@ -79,7 +79,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * languages](https://cloud.google.com/text-to-speech/docs/voices). * * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The name. */ @@ -107,7 +107,7 @@ public java.lang.String getName() { * languages](https://cloud.google.com/text-to-speech/docs/voices). * * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for name. */ @@ -138,7 +138,9 @@ public com.google.protobuf.ByteString getNameBytes() { * voice with a different gender rather than failing the request. * * - * .google.cloud.dialogflow.v2beta1.SsmlVoiceGender ssml_gender = 2; + * + * .google.cloud.dialogflow.v2beta1.SsmlVoiceGender ssml_gender = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The enum numeric value on the wire for ssmlGender. */ @@ -158,7 +160,9 @@ public int getSsmlGenderValue() { * voice with a different gender rather than failing the request. * * - * .google.cloud.dialogflow.v2beta1.SsmlVoiceGender ssml_gender = 2; + * + * .google.cloud.dialogflow.v2beta1.SsmlVoiceGender ssml_gender = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The ssmlGender. */ @@ -553,7 +557,7 @@ public Builder mergeFrom( * languages](https://cloud.google.com/text-to-speech/docs/voices). * * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The name. */ @@ -580,7 +584,7 @@ public java.lang.String getName() { * languages](https://cloud.google.com/text-to-speech/docs/voices). * * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for name. */ @@ -607,7 +611,7 @@ public com.google.protobuf.ByteString getNameBytes() { * languages](https://cloud.google.com/text-to-speech/docs/voices). * * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The name to set. * @return This builder for chaining. @@ -633,7 +637,7 @@ public Builder setName(java.lang.String value) { * languages](https://cloud.google.com/text-to-speech/docs/voices). * * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -655,7 +659,7 @@ public Builder clearName() { * languages](https://cloud.google.com/text-to-speech/docs/voices). * * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for name to set. * @return This builder for chaining. @@ -684,7 +688,9 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * voice with a different gender rather than failing the request. * * - * .google.cloud.dialogflow.v2beta1.SsmlVoiceGender ssml_gender = 2; + * + * .google.cloud.dialogflow.v2beta1.SsmlVoiceGender ssml_gender = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The enum numeric value on the wire for ssmlGender. */ @@ -704,7 +710,9 @@ public int getSsmlGenderValue() { * voice with a different gender rather than failing the request. * * - * .google.cloud.dialogflow.v2beta1.SsmlVoiceGender ssml_gender = 2; + * + * .google.cloud.dialogflow.v2beta1.SsmlVoiceGender ssml_gender = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The enum numeric value on the wire for ssmlGender to set. * @return This builder for chaining. @@ -727,7 +735,9 @@ public Builder setSsmlGenderValue(int value) { * voice with a different gender rather than failing the request. * * - * .google.cloud.dialogflow.v2beta1.SsmlVoiceGender ssml_gender = 2; + * + * .google.cloud.dialogflow.v2beta1.SsmlVoiceGender ssml_gender = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The ssmlGender. */ @@ -751,7 +761,9 @@ public com.google.cloud.dialogflow.v2beta1.SsmlVoiceGender getSsmlGender() { * voice with a different gender rather than failing the request. * * - * .google.cloud.dialogflow.v2beta1.SsmlVoiceGender ssml_gender = 2; + * + * .google.cloud.dialogflow.v2beta1.SsmlVoiceGender ssml_gender = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The ssmlGender to set. * @return This builder for chaining. @@ -777,7 +789,9 @@ public Builder setSsmlGender(com.google.cloud.dialogflow.v2beta1.SsmlVoiceGender * voice with a different gender rather than failing the request. * * - * .google.cloud.dialogflow.v2beta1.SsmlVoiceGender ssml_gender = 2; + * + * .google.cloud.dialogflow.v2beta1.SsmlVoiceGender ssml_gender = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return This builder for chaining. */ diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/VoiceSelectionParamsOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/VoiceSelectionParamsOrBuilder.java index 59b7372c4a88..d8d57b3e2201 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/VoiceSelectionParamsOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/VoiceSelectionParamsOrBuilder.java @@ -35,7 +35,7 @@ public interface VoiceSelectionParamsOrBuilder * languages](https://cloud.google.com/text-to-speech/docs/voices). * * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The name. */ @@ -52,7 +52,7 @@ public interface VoiceSelectionParamsOrBuilder * languages](https://cloud.google.com/text-to-speech/docs/voices). * * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for name. */ @@ -70,7 +70,9 @@ public interface VoiceSelectionParamsOrBuilder * voice with a different gender rather than failing the request. * * - * .google.cloud.dialogflow.v2beta1.SsmlVoiceGender ssml_gender = 2; + * + * .google.cloud.dialogflow.v2beta1.SsmlVoiceGender ssml_gender = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The enum numeric value on the wire for ssmlGender. */ @@ -87,7 +89,9 @@ public interface VoiceSelectionParamsOrBuilder * voice with a different gender rather than failing the request. * * - * .google.cloud.dialogflow.v2beta1.SsmlVoiceGender ssml_gender = 2; + * + * .google.cloud.dialogflow.v2beta1.SsmlVoiceGender ssml_gender = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The ssmlGender. */ diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/audio_config.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/audio_config.proto index 79c19c87b310..4c39fbc85563 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/audio_config.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/audio_config.proto @@ -36,55 +36,6 @@ option (google.api.resource_definition) = { pattern: "projects/{project}/locations/{location}/phraseSets/{phrase_set}" }; -// Audio encoding of the audio content sent in the conversational query request. -// Refer to the -// [Cloud Speech API -// documentation](https://cloud.google.com/speech-to-text/docs/basics) for more -// details. -enum AudioEncoding { - // Not specified. - AUDIO_ENCODING_UNSPECIFIED = 0; - - // Uncompressed 16-bit signed little-endian samples (Linear PCM). - AUDIO_ENCODING_LINEAR_16 = 1; - - // [`FLAC`](https://xiph.org/flac/documentation.html) (Free Lossless Audio - // Codec) is the recommended encoding because it is lossless (therefore - // recognition is not compromised) and requires only about half the - // bandwidth of `LINEAR16`. `FLAC` stream encoding supports 16-bit and - // 24-bit samples, however, not all fields in `STREAMINFO` are supported. - AUDIO_ENCODING_FLAC = 2; - - // 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law. - AUDIO_ENCODING_MULAW = 3; - - // Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000. - AUDIO_ENCODING_AMR = 4; - - // Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000. - AUDIO_ENCODING_AMR_WB = 5; - - // Opus encoded audio frames in Ogg container - // ([OggOpus](https://wiki.xiph.org/OggOpus)). - // `sample_rate_hertz` must be 16000. - AUDIO_ENCODING_OGG_OPUS = 6; - - // Although the use of lossy encodings is not recommended, if a very low - // bitrate encoding is required, `OGG_OPUS` is highly preferred over - // Speex encoding. The [Speex](https://speex.org/) encoding supported by - // Dialogflow API has a header byte in each block, as in MIME type - // `audio/x-speex-with-header-byte`. - // It is a variant of the RTP Speex encoding defined in - // [RFC 5574](https://tools.ietf.org/html/rfc5574). - // The stream is a sequence of blocks, one block per RTP packet. Each block - // starts with a byte containing the length of the block, in bytes, followed - // by one or more frames of Speex data, padded to an integral number of - // bytes (octets) as specified in RFC 5574. In other words, each RTP header - // is replaced with a single byte containing the block length. Only Speex - // wideband is supported. `sample_rate_hertz` must be 16000. - AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE = 7; -} - // Hints for the speech recognizer to help with recognition in a specific // conversation state. message SpeechContext { @@ -101,7 +52,7 @@ message SpeechContext { // See the [Cloud Speech // documentation](https://cloud.google.com/speech-to-text/quotas) for usage // limits. - repeated string phrases = 1; + repeated string phrases = 1 [(google.api.field_behavior) = OPTIONAL]; // Optional. Boost for this context compared to other contexts: // @@ -112,51 +63,7 @@ message SpeechContext { // // Dialogflow recommends that you use boosts in the range (0, 20] and that you // find a value that fits your use case with binary search. - float boost = 2; -} - -// Variant of the specified [Speech -// model][google.cloud.dialogflow.v2beta1.InputAudioConfig.model] to use. -// -// See the [Cloud Speech -// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models) -// for which models have different variants. For example, the "phone_call" model -// has both a standard and an enhanced variant. When you use an enhanced model, -// you will generally receive higher quality results than for a standard model. -enum SpeechModelVariant { - // No model variant specified. In this case Dialogflow defaults to - // USE_BEST_AVAILABLE. - SPEECH_MODEL_VARIANT_UNSPECIFIED = 0; - - // Use the best available variant of the [Speech - // model][InputAudioConfig.model] that the caller is eligible for. - // - // Please see the [Dialogflow - // docs](https://cloud.google.com/dialogflow/docs/data-logging) for - // how to make your project eligible for enhanced models. - USE_BEST_AVAILABLE = 1; - - // Use standard model variant even if an enhanced model is available. See the - // [Cloud Speech - // documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models) - // for details about enhanced models. - USE_STANDARD = 2; - - // Use an enhanced model variant: - // - // * If an enhanced variant does not exist for the given - // [model][google.cloud.dialogflow.v2beta1.InputAudioConfig.model] and - // request language, Dialogflow falls back to the standard variant. - // - // The [Cloud Speech - // documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models) - // describes which models have enhanced variants. - // - // * If the API caller isn't eligible for enhanced models, Dialogflow returns - // an error. Please see the [Dialogflow - // docs](https://cloud.google.com/dialogflow/docs/data-logging) - // for how to make your project eligible. - USE_ENHANCED = 3; + float boost = 2 [(google.api.field_behavior) = OPTIONAL]; } // Information for a word recognized by the speech recognizer. @@ -230,21 +137,20 @@ message BargeInConfig { // Instructs the speech recognizer on how to process the audio content. message InputAudioConfig { // Required. Audio encoding of the audio content to process. - AudioEncoding audio_encoding = 1; + AudioEncoding audio_encoding = 1 [(google.api.field_behavior) = REQUIRED]; // Required. Sample rate (in Hertz) of the audio content sent in the query. - // Refer to - // [Cloud Speech API + // Refer to [Cloud Speech API // documentation](https://cloud.google.com/speech-to-text/docs/basics) for // more details. - int32 sample_rate_hertz = 2; + int32 sample_rate_hertz = 2 [(google.api.field_behavior) = REQUIRED]; // Required. The language of the supplied audio. Dialogflow does not do // translations. See [Language // Support](https://cloud.google.com/dialogflow/docs/reference/language) // for a list of the currently supported language codes. Note that queries in // the same session do not necessarily need to specify the same language. - string language_code = 3; + string language_code = 3 [(google.api.field_behavior) = REQUIRED]; // If `true`, Dialogflow returns // [SpeechWordInfo][google.cloud.dialogflow.v2beta1.SpeechWordInfo] in @@ -323,23 +229,6 @@ message InputAudioConfig { bool enable_automatic_punctuation = 17; } -// Gender of the voice as described in -// [SSML voice element](https://www.w3.org/TR/speech-synthesis11/#edef_voice). -enum SsmlVoiceGender { - // An unspecified gender, which means that the client doesn't care which - // gender the selected voice will have. - SSML_VOICE_GENDER_UNSPECIFIED = 0; - - // A male voice. - SSML_VOICE_GENDER_MALE = 1; - - // A female voice. - SSML_VOICE_GENDER_FEMALE = 2; - - // A gender-neutral voice. - SSML_VOICE_GENDER_NEUTRAL = 3; -} - // Description of which voice to use for speech synthesis. message VoiceSelectionParams { // Optional. The name of the voice. If not set, the service will choose a @@ -348,7 +237,7 @@ message VoiceSelectionParams { // // For the list of available voices, please refer to [Supported voices and // languages](https://cloud.google.com/text-to-speech/docs/voices). - string name = 1; + string name = 1 [(google.api.field_behavior) = OPTIONAL]; // Optional. The preferred gender of the voice. If not set, the service will // choose a voice based on the other parameters such as language_code and @@ -356,21 +245,21 @@ message VoiceSelectionParams { // that this is only a preference, not requirement. If a voice of the // appropriate gender is not available, the synthesizer should substitute a // voice with a different gender rather than failing the request. - SsmlVoiceGender ssml_gender = 2; + SsmlVoiceGender ssml_gender = 2 [(google.api.field_behavior) = OPTIONAL]; } // Configuration of how speech should be synthesized. message SynthesizeSpeechConfig { // Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal - // native speed supported by the specific voice. 2.0 is twice as fast, and - // 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any - // other values < 0.25 or > 4.0 will return an error. - double speaking_rate = 1; + // native speed supported by the specific voice. 2.0 is twice as fast, and 0.5 + // is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any other + // values < 0.25 or > 4.0 will return an error. + double speaking_rate = 1 [(google.api.field_behavior) = OPTIONAL]; // Optional. Speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20 // semitones from the original pitch. -20 means decrease 20 semitones from the // original pitch. - double pitch = 2; + double pitch = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. Volume gain (in dB) of the normal native volume supported by the // specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of @@ -380,40 +269,16 @@ message SynthesizeSpeechConfig { // amplitude of the normal native signal amplitude. We strongly recommend not // to exceed +10 (dB) as there's usually no effective increase in loudness for // any value greater than that. - double volume_gain_db = 3; + double volume_gain_db = 3 [(google.api.field_behavior) = OPTIONAL]; // Optional. An identifier which selects 'audio effects' profiles that are // applied on (post synthesized) text to speech. Effects are applied on top of // each other in the order they are given. - repeated string effects_profile_id = 5; + repeated string effects_profile_id = 5 + [(google.api.field_behavior) = OPTIONAL]; // Optional. The desired voice of the synthesized audio. - VoiceSelectionParams voice = 4; -} - -// Audio encoding of the output audio format in Text-To-Speech. -enum OutputAudioEncoding { - // Not specified. - OUTPUT_AUDIO_ENCODING_UNSPECIFIED = 0; - - // Uncompressed 16-bit signed little-endian samples (Linear PCM). - // Audio content returned as LINEAR16 also contains a WAV header. - OUTPUT_AUDIO_ENCODING_LINEAR_16 = 1; - - // MP3 audio at 32kbps. - OUTPUT_AUDIO_ENCODING_MP3 = 2; - - // MP3 audio at 64kbps. - OUTPUT_AUDIO_ENCODING_MP3_64_KBPS = 4; - - // Opus encoded audio wrapped in an ogg container. The result will be a - // file which can be played natively on Android, and in browsers (at least - // Chrome and Firefox). The quality of the encoding is considerably higher - // than MP3 while using approximately the same bitrate. - OUTPUT_AUDIO_ENCODING_OGG_OPUS = 3; - - // 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law. - OUTPUT_AUDIO_ENCODING_MULAW = 5; + VoiceSelectionParams voice = 4 [(google.api.field_behavior) = OPTIONAL]; } // Instructs the speech synthesizer how to generate the output audio content. @@ -435,6 +300,36 @@ message OutputAudioConfig { SynthesizeSpeechConfig synthesize_speech_config = 3; } +// A wrapper of repeated TelephonyDtmf digits. +message TelephonyDtmfEvents { + // A sequence of TelephonyDtmf digits. + repeated TelephonyDtmf dtmf_events = 1; +} + +// Configures speech transcription for +// [ConversationProfile][google.cloud.dialogflow.v2beta1.ConversationProfile]. +message SpeechToTextConfig { + // The speech model used in speech to text. + // `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will be treated as + // `USE_ENHANCED`. It can be overridden in + // [AnalyzeContentRequest][google.cloud.dialogflow.v2beta1.AnalyzeContentRequest] + // and + // [StreamingAnalyzeContentRequest][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest] + // request. If enhanced model variant is specified and an enhanced version of + // the specified model for the language does not exist, then it would emit an + // error. + SpeechModelVariant speech_model_variant = 1; + + // Which Speech model to select. Select the model best suited to your domain + // to get best results. If a model is not explicitly specified, then a default + // model is used. + // Refer to + // [Cloud Speech API + // documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) + // for more details. + string model = 2; +} + // [DTMF](https://en.wikipedia.org/wiki/Dual-tone_multi-frequency_signaling) // digit in Telephony Gateway. enum TelephonyDtmf { @@ -490,32 +385,137 @@ enum TelephonyDtmf { DTMF_POUND = 16; } -// A wrapper of repeated TelephonyDtmf digits. -message TelephonyDtmfEvents { - // A sequence of TelephonyDtmf digits. - repeated TelephonyDtmf dtmf_events = 1; +// Audio encoding of the audio content sent in the conversational query request. +// Refer to the +// [Cloud Speech API +// documentation](https://cloud.google.com/speech-to-text/docs/basics) for more +// details. +enum AudioEncoding { + // Not specified. + AUDIO_ENCODING_UNSPECIFIED = 0; + + // Uncompressed 16-bit signed little-endian samples (Linear PCM). + AUDIO_ENCODING_LINEAR_16 = 1; + + // [`FLAC`](https://xiph.org/flac/documentation.html) (Free Lossless Audio + // Codec) is the recommended encoding because it is lossless (therefore + // recognition is not compromised) and requires only about half the + // bandwidth of `LINEAR16`. `FLAC` stream encoding supports 16-bit and + // 24-bit samples, however, not all fields in `STREAMINFO` are supported. + AUDIO_ENCODING_FLAC = 2; + + // 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law. + AUDIO_ENCODING_MULAW = 3; + + // Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000. + AUDIO_ENCODING_AMR = 4; + + // Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000. + AUDIO_ENCODING_AMR_WB = 5; + + // Opus encoded audio frames in Ogg container + // ([OggOpus](https://wiki.xiph.org/OggOpus)). + // `sample_rate_hertz` must be 16000. + AUDIO_ENCODING_OGG_OPUS = 6; + + // Although the use of lossy encodings is not recommended, if a very low + // bitrate encoding is required, `OGG_OPUS` is highly preferred over + // Speex encoding. The [Speex](https://speex.org/) encoding supported by + // Dialogflow API has a header byte in each block, as in MIME type + // `audio/x-speex-with-header-byte`. + // It is a variant of the RTP Speex encoding defined in + // [RFC 5574](https://tools.ietf.org/html/rfc5574). + // The stream is a sequence of blocks, one block per RTP packet. Each block + // starts with a byte containing the length of the block, in bytes, followed + // by one or more frames of Speex data, padded to an integral number of + // bytes (octets) as specified in RFC 5574. In other words, each RTP header + // is replaced with a single byte containing the block length. Only Speex + // wideband is supported. `sample_rate_hertz` must be 16000. + AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE = 7; } -// Configures speech transcription for -// [ConversationProfile][google.cloud.dialogflow.v2beta1.ConversationProfile]. -message SpeechToTextConfig { - // The speech model used in speech to text. - // `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will be treated as - // `USE_ENHANCED`. It can be overridden in - // [AnalyzeContentRequest][google.cloud.dialogflow.v2beta1.AnalyzeContentRequest] - // and - // [StreamingAnalyzeContentRequest][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest] - // request. If enhanced model variant is specified and an enhanced version of - // the specified model for the language does not exist, then it would emit an - // error. - SpeechModelVariant speech_model_variant = 1; +// Variant of the specified [Speech +// model][google.cloud.dialogflow.v2beta1.InputAudioConfig.model] to use. +// +// See the [Cloud Speech +// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models) +// for which models have different variants. For example, the "phone_call" model +// has both a standard and an enhanced variant. When you use an enhanced model, +// you will generally receive higher quality results than for a standard model. +enum SpeechModelVariant { + // No model variant specified. In this case Dialogflow defaults to + // USE_BEST_AVAILABLE. + SPEECH_MODEL_VARIANT_UNSPECIFIED = 0; - // Which Speech model to select. Select the model best suited to your domain - // to get best results. If a model is not explicitly specified, then a default - // model is used. - // Refer to - // [Cloud Speech API - // documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) - // for more details. - string model = 2; + // Use the best available variant of the [Speech + // model][InputAudioConfig.model] that the caller is eligible for. + // + // Please see the [Dialogflow + // docs](https://cloud.google.com/dialogflow/docs/data-logging) for + // how to make your project eligible for enhanced models. + USE_BEST_AVAILABLE = 1; + + // Use standard model variant even if an enhanced model is available. See the + // [Cloud Speech + // documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models) + // for details about enhanced models. + USE_STANDARD = 2; + + // Use an enhanced model variant: + // + // * If an enhanced variant does not exist for the given + // [model][google.cloud.dialogflow.v2beta1.InputAudioConfig.model] and + // request language, Dialogflow falls back to the standard variant. + // + // The [Cloud Speech + // documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models) + // describes which models have enhanced variants. + // + // * If the API caller isn't eligible for enhanced models, Dialogflow returns + // an error. Please see the [Dialogflow + // docs](https://cloud.google.com/dialogflow/docs/data-logging) + // for how to make your project eligible. + USE_ENHANCED = 3; +} + +// Gender of the voice as described in +// [SSML voice element](https://www.w3.org/TR/speech-synthesis11/#edef_voice). +enum SsmlVoiceGender { + // An unspecified gender, which means that the client doesn't care which + // gender the selected voice will have. + SSML_VOICE_GENDER_UNSPECIFIED = 0; + + // A male voice. + SSML_VOICE_GENDER_MALE = 1; + + // A female voice. + SSML_VOICE_GENDER_FEMALE = 2; + + // A gender-neutral voice. + SSML_VOICE_GENDER_NEUTRAL = 3; +} + +// Audio encoding of the output audio format in Text-To-Speech. +enum OutputAudioEncoding { + // Not specified. + OUTPUT_AUDIO_ENCODING_UNSPECIFIED = 0; + + // Uncompressed 16-bit signed little-endian samples (Linear PCM). + // Audio content returned as LINEAR16 also contains a WAV header. + OUTPUT_AUDIO_ENCODING_LINEAR_16 = 1; + + // MP3 audio at 32kbps. + OUTPUT_AUDIO_ENCODING_MP3 = 2; + + // MP3 audio at 64kbps. + OUTPUT_AUDIO_ENCODING_MP3_64_KBPS = 4; + + // Opus encoded audio wrapped in an ogg container. The result will be a + // file which can be played natively on Android, and in browsers (at least + // Chrome and Firefox). The quality of the encoding is considerably higher + // than MP3 while using approximately the same bitrate. + OUTPUT_AUDIO_ENCODING_OGG_OPUS = 3; + + // 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law. + OUTPUT_AUDIO_ENCODING_MULAW = 5; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation_profile.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation_profile.proto index 6d38b89ba93e..6462c3f61741 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation_profile.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation_profile.proto @@ -324,7 +324,8 @@ message HumanAgentAssistantConfig { // Automatically iterates all participants and tries to compile // suggestions. // - // Supported features: ARTICLE_SUGGESTION, FAQ, DIALOGFLOW_ASSIST. + // Supported features: ARTICLE_SUGGESTION, FAQ, DIALOGFLOW_ASSIST, + // ENTITY_EXTRACTION. bool enable_event_based_suggestion = 3; // Settings of suggestion trigger. @@ -398,7 +399,7 @@ message HumanAgentAssistantConfig { // Dialogflow source setting. // - // Supported feature: DIALOGFLOW_ASSIST. + // Supported feature: DIALOGFLOW_ASSIST, ENTITY_EXTRACTION. message DialogflowQuerySource { // The configuration used for human agent side Dialogflow assist // suggestion. @@ -453,7 +454,8 @@ message HumanAgentAssistantConfig { // SMART_REPLY, SMART_COMPOSE. DocumentQuerySource document_query_source = 2; - // Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST. + // Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST, + // ENTITY_EXTRACTION. DialogflowQuerySource dialogflow_query_source = 3; }