public static final class BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder extends GeneratedMessage.Builder<BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder> implements BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfigOrBuilderThe config about how to process the audio for a voice-based session.
Protobuf type
google.cloud.dialogflow.v2.BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig build()| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig |
|
buildPartial()
public BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig |
|
clear()
public BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder |
|
clearEnableCxProactiveProcessing()
public BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder clearEnableCxProactiveProcessing()Optional. Whether to enable CX proactive processing.
bool enable_cx_proactive_processing = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder |
This builder for chaining. |
clearEnableStreamingSynthesize()
public BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder clearEnableStreamingSynthesize()Optional. If true, Dialogflow will stream the audio bytes from Cloud TTS for speech synthesis using the StreamingSynthesize api.
bool enable_streaming_synthesize = 23 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder |
This builder for chaining. |
clearGeminiAsrConfig()
public BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder clearGeminiAsrConfig() Optional. Configuration for using Gemini ASR models served via Vertex
AI.
This field is only used when use_gemini_asr is true.
.google.cloud.dialogflow.v2.SpeechToTextConfig.GeminiAsrConfig gemini_asr_config = 24 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder |
|
clearInputAudioEncoding()
public BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder clearInputAudioEncoding()Required. The encoding of input audio.
.google.cloud.dialogflow.v2.AudioEncoding input_audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder |
This builder for chaining. |
clearInputAudioSampleRateHertz()
public BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder clearInputAudioSampleRateHertz()Required. The sample rate of input audio.
int32 input_audio_sample_rate_hertz = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder |
This builder for chaining. |
clearOutputAudioEncoding()
public BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder clearOutputAudioEncoding()Required. The encoding of output audio.
.google.cloud.dialogflow.v2.OutputAudioEncoding output_audio_encoding = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder |
This builder for chaining. |
clearOutputAudioSampleRateHertz()
public BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder clearOutputAudioSampleRateHertz()Required. The sample rate of output audio.
int32 output_audio_sample_rate_hertz = 4 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder |
This builder for chaining. |
clearUseGeminiAsr()
public BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder clearUseGeminiAsr()Optional. If true, Gemini ASR will be used for transcription instead of Cloud Speech-to-Text. If false, Cloud Speech-to-Text will be used. If unset, this setting is inherited from the ConversationProfile.
optional bool use_gemini_asr = 25 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getEnableCxProactiveProcessing()
public boolean getEnableCxProactiveProcessing()Optional. Whether to enable CX proactive processing.
bool enable_cx_proactive_processing = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The enableCxProactiveProcessing. |
getEnableStreamingSynthesize()
public boolean getEnableStreamingSynthesize()Optional. If true, Dialogflow will stream the audio bytes from Cloud TTS for speech synthesis using the StreamingSynthesize api.
bool enable_streaming_synthesize = 23 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The enableStreamingSynthesize. |
getGeminiAsrConfig()
public SpeechToTextConfig.GeminiAsrConfig getGeminiAsrConfig() Optional. Configuration for using Gemini ASR models served via Vertex
AI.
This field is only used when use_gemini_asr is true.
.google.cloud.dialogflow.v2.SpeechToTextConfig.GeminiAsrConfig gemini_asr_config = 24 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SpeechToTextConfig.GeminiAsrConfig |
The geminiAsrConfig. |
getGeminiAsrConfigBuilder()
public SpeechToTextConfig.GeminiAsrConfig.Builder getGeminiAsrConfigBuilder() Optional. Configuration for using Gemini ASR models served via Vertex
AI.
This field is only used when use_gemini_asr is true.
.google.cloud.dialogflow.v2.SpeechToTextConfig.GeminiAsrConfig gemini_asr_config = 24 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SpeechToTextConfig.GeminiAsrConfig.Builder |
|
getGeminiAsrConfigOrBuilder()
public SpeechToTextConfig.GeminiAsrConfigOrBuilder getGeminiAsrConfigOrBuilder() Optional. Configuration for using Gemini ASR models served via Vertex
AI.
This field is only used when use_gemini_asr is true.
.google.cloud.dialogflow.v2.SpeechToTextConfig.GeminiAsrConfig gemini_asr_config = 24 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SpeechToTextConfig.GeminiAsrConfigOrBuilder |
|
getInputAudioEncoding()
public AudioEncoding getInputAudioEncoding()Required. The encoding of input audio.
.google.cloud.dialogflow.v2.AudioEncoding input_audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AudioEncoding |
The inputAudioEncoding. |
getInputAudioEncodingValue()
public int getInputAudioEncodingValue()Required. The encoding of input audio.
.google.cloud.dialogflow.v2.AudioEncoding input_audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for inputAudioEncoding. |
getInputAudioSampleRateHertz()
public int getInputAudioSampleRateHertz()Required. The sample rate of input audio.
int32 input_audio_sample_rate_hertz = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The inputAudioSampleRateHertz. |
getOutputAudioEncoding()
public OutputAudioEncoding getOutputAudioEncoding()Required. The encoding of output audio.
.google.cloud.dialogflow.v2.OutputAudioEncoding output_audio_encoding = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
OutputAudioEncoding |
The outputAudioEncoding. |
getOutputAudioEncodingValue()
public int getOutputAudioEncodingValue()Required. The encoding of output audio.
.google.cloud.dialogflow.v2.OutputAudioEncoding output_audio_encoding = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for outputAudioEncoding. |
getOutputAudioSampleRateHertz()
public int getOutputAudioSampleRateHertz()Required. The sample rate of output audio.
int32 output_audio_sample_rate_hertz = 4 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The outputAudioSampleRateHertz. |
getUseGeminiAsr()
public boolean getUseGeminiAsr()Optional. If true, Gemini ASR will be used for transcription instead of Cloud Speech-to-Text. If false, Cloud Speech-to-Text will be used. If unset, this setting is inherited from the ConversationProfile.
optional bool use_gemini_asr = 25 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The useGeminiAsr. |
hasGeminiAsrConfig()
public boolean hasGeminiAsrConfig() Optional. Configuration for using Gemini ASR models served via Vertex
AI.
This field is only used when use_gemini_asr is true.
.google.cloud.dialogflow.v2.SpeechToTextConfig.GeminiAsrConfig gemini_asr_config = 24 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the geminiAsrConfig field is set. |
hasUseGeminiAsr()
public boolean hasUseGeminiAsr()Optional. If true, Gemini ASR will be used for transcription instead of Cloud Speech-to-Text. If false, Cloud Speech-to-Text will be used. If unset, this setting is inherited from the ConversationProfile.
optional bool use_gemini_asr = 25 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the useGeminiAsr field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig other)
public BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder mergeFrom(BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig |
| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder |
|
mergeGeminiAsrConfig(SpeechToTextConfig.GeminiAsrConfig value)
public BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder mergeGeminiAsrConfig(SpeechToTextConfig.GeminiAsrConfig value) Optional. Configuration for using Gemini ASR models served via Vertex
AI.
This field is only used when use_gemini_asr is true.
.google.cloud.dialogflow.v2.SpeechToTextConfig.GeminiAsrConfig gemini_asr_config = 24 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
SpeechToTextConfig.GeminiAsrConfig |
| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder |
|
setEnableCxProactiveProcessing(boolean value)
public BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder setEnableCxProactiveProcessing(boolean value)Optional. Whether to enable CX proactive processing.
bool enable_cx_proactive_processing = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe enableCxProactiveProcessing to set. |
| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder |
This builder for chaining. |
setEnableStreamingSynthesize(boolean value)
public BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder setEnableStreamingSynthesize(boolean value)Optional. If true, Dialogflow will stream the audio bytes from Cloud TTS for speech synthesis using the StreamingSynthesize api.
bool enable_streaming_synthesize = 23 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe enableStreamingSynthesize to set. |
| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder |
This builder for chaining. |
setGeminiAsrConfig(SpeechToTextConfig.GeminiAsrConfig value)
public BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder setGeminiAsrConfig(SpeechToTextConfig.GeminiAsrConfig value) Optional. Configuration for using Gemini ASR models served via Vertex
AI.
This field is only used when use_gemini_asr is true.
.google.cloud.dialogflow.v2.SpeechToTextConfig.GeminiAsrConfig gemini_asr_config = 24 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
SpeechToTextConfig.GeminiAsrConfig |
| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder |
|
setGeminiAsrConfig(SpeechToTextConfig.GeminiAsrConfig.Builder builderForValue)
public BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder setGeminiAsrConfig(SpeechToTextConfig.GeminiAsrConfig.Builder builderForValue) Optional. Configuration for using Gemini ASR models served via Vertex
AI.
This field is only used when use_gemini_asr is true.
.google.cloud.dialogflow.v2.SpeechToTextConfig.GeminiAsrConfig gemini_asr_config = 24 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
SpeechToTextConfig.GeminiAsrConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder |
|
setInputAudioEncoding(AudioEncoding value)
public BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder setInputAudioEncoding(AudioEncoding value)Required. The encoding of input audio.
.google.cloud.dialogflow.v2.AudioEncoding input_audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
AudioEncodingThe inputAudioEncoding to set. |
| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder |
This builder for chaining. |
setInputAudioEncodingValue(int value)
public BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder setInputAudioEncodingValue(int value)Required. The encoding of input audio.
.google.cloud.dialogflow.v2.AudioEncoding input_audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for inputAudioEncoding to set. |
| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder |
This builder for chaining. |
setInputAudioSampleRateHertz(int value)
public BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder setInputAudioSampleRateHertz(int value)Required. The sample rate of input audio.
int32 input_audio_sample_rate_hertz = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe inputAudioSampleRateHertz to set. |
| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder |
This builder for chaining. |
setOutputAudioEncoding(OutputAudioEncoding value)
public BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder setOutputAudioEncoding(OutputAudioEncoding value)Required. The encoding of output audio.
.google.cloud.dialogflow.v2.OutputAudioEncoding output_audio_encoding = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
OutputAudioEncodingThe outputAudioEncoding to set. |
| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder |
This builder for chaining. |
setOutputAudioEncodingValue(int value)
public BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder setOutputAudioEncodingValue(int value)Required. The encoding of output audio.
.google.cloud.dialogflow.v2.OutputAudioEncoding output_audio_encoding = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for outputAudioEncoding to set. |
| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder |
This builder for chaining. |
setOutputAudioSampleRateHertz(int value)
public BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder setOutputAudioSampleRateHertz(int value)Required. The sample rate of output audio.
int32 output_audio_sample_rate_hertz = 4 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe outputAudioSampleRateHertz to set. |
| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder |
This builder for chaining. |
setUseGeminiAsr(boolean value)
public BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder setUseGeminiAsr(boolean value)Optional. If true, Gemini ASR will be used for transcription instead of Cloud Speech-to-Text. If false, Cloud Speech-to-Text will be used. If unset, this setting is inherited from the ConversationProfile.
optional bool use_gemini_asr = 25 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe useGeminiAsr to set. |
| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder |
This builder for chaining. |