public static final class BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder extends GeneratedMessageV3.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.v2beta1.BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder |
|
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. |
clearField(Descriptors.FieldDescriptor field)
public BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder |
|
clearInputAudioEncoding()
public BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder clearInputAudioEncoding()Required. The encoding of input audio.
.google.cloud.dialogflow.v2beta1.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. |
clearOneof(Descriptors.OneofDescriptor oneof)
public BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder |
|
clearOutputAudioEncoding()
public BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder clearOutputAudioEncoding()Required. The encoding of output audio.
.google.cloud.dialogflow.v2beta1.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. |
clone()
public BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder clone()| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder |
|
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. |
getInputAudioEncoding()
public AudioEncoding getInputAudioEncoding()Required. The encoding of input audio.
.google.cloud.dialogflow.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.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. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.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 |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| 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. |
setField(Descriptors.FieldDescriptor field, Object value)
public BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| 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.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.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. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder |
|
setUnknownFields(UnknownFieldSet unknownFields)
public final BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentRequest.Config.VoiceSessionConfig.Builder |
|