Class OutputAudioConfig.Builder (0.66.0)

public static final class OutputAudioConfig.Builder extends GeneratedMessageV3.Builder<OutputAudioConfig.Builder> implements OutputAudioConfigOrBuilder

Instructs the speech synthesizer how to generate the output audio content.

Protobuf type google.cloud.dialogflow.cx.v3.OutputAudioConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public OutputAudioConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
OutputAudioConfig.Builder
Overrides

build()

public OutputAudioConfig build()
Returns
Type Description
OutputAudioConfig

buildPartial()

public OutputAudioConfig buildPartial()
Returns
Type Description
OutputAudioConfig

clear()

public OutputAudioConfig.Builder clear()
Returns
Type Description
OutputAudioConfig.Builder
Overrides

clearAudioEncoding()

public OutputAudioConfig.Builder clearAudioEncoding()

Required. Audio encoding of the synthesized audio content.

.google.cloud.dialogflow.cx.v3.OutputAudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
OutputAudioConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public OutputAudioConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
OutputAudioConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public OutputAudioConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
OutputAudioConfig.Builder
Overrides

clearSampleRateHertz()

public OutputAudioConfig.Builder clearSampleRateHertz()

Optional. The synthesis sample rate (in hertz) for this audio. If not provided, then the synthesizer will use the default sample rate based on the audio encoding. If this is different from the voice's natural sample rate, then the synthesizer will honor this request by converting to the desired sample rate (which might result in worse audio quality).

int32 sample_rate_hertz = 2;

Returns
Type Description
OutputAudioConfig.Builder

This builder for chaining.

clearSynthesizeSpeechConfig()

public OutputAudioConfig.Builder clearSynthesizeSpeechConfig()

Optional. Configuration of how speech should be synthesized. If not specified, Agent.text_to_speech_settings is applied.

.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig synthesize_speech_config = 3;

Returns
Type Description
OutputAudioConfig.Builder

clone()

public OutputAudioConfig.Builder clone()
Returns
Type Description
OutputAudioConfig.Builder
Overrides

getAudioEncoding()

public OutputAudioEncoding getAudioEncoding()

Required. Audio encoding of the synthesized audio content.

.google.cloud.dialogflow.cx.v3.OutputAudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
OutputAudioEncoding

The audioEncoding.

getAudioEncodingValue()

public int getAudioEncodingValue()

Required. Audio encoding of the synthesized audio content.

.google.cloud.dialogflow.cx.v3.OutputAudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for audioEncoding.

getDefaultInstanceForType()

public OutputAudioConfig getDefaultInstanceForType()
Returns
Type Description
OutputAudioConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getSampleRateHertz()

public int getSampleRateHertz()

Optional. The synthesis sample rate (in hertz) for this audio. If not provided, then the synthesizer will use the default sample rate based on the audio encoding. If this is different from the voice's natural sample rate, then the synthesizer will honor this request by converting to the desired sample rate (which might result in worse audio quality).

int32 sample_rate_hertz = 2;

Returns
Type Description
int

The sampleRateHertz.

getSynthesizeSpeechConfig()

public SynthesizeSpeechConfig getSynthesizeSpeechConfig()

Optional. Configuration of how speech should be synthesized. If not specified, Agent.text_to_speech_settings is applied.

.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig synthesize_speech_config = 3;

Returns
Type Description
SynthesizeSpeechConfig

The synthesizeSpeechConfig.

getSynthesizeSpeechConfigBuilder()

public SynthesizeSpeechConfig.Builder getSynthesizeSpeechConfigBuilder()

Optional. Configuration of how speech should be synthesized. If not specified, Agent.text_to_speech_settings is applied.

.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig synthesize_speech_config = 3;

Returns
Type Description
SynthesizeSpeechConfig.Builder

getSynthesizeSpeechConfigOrBuilder()

public SynthesizeSpeechConfigOrBuilder getSynthesizeSpeechConfigOrBuilder()

Optional. Configuration of how speech should be synthesized. If not specified, Agent.text_to_speech_settings is applied.

.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig synthesize_speech_config = 3;

Returns
Type Description
SynthesizeSpeechConfigOrBuilder

hasSynthesizeSpeechConfig()

public boolean hasSynthesizeSpeechConfig()

Optional. Configuration of how speech should be synthesized. If not specified, Agent.text_to_speech_settings is applied.

.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig synthesize_speech_config = 3;

Returns
Type Description
boolean

Whether the synthesizeSpeechConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(OutputAudioConfig other)

public OutputAudioConfig.Builder mergeFrom(OutputAudioConfig other)
Parameter
Name Description
other OutputAudioConfig
Returns
Type Description
OutputAudioConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public OutputAudioConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OutputAudioConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public OutputAudioConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
OutputAudioConfig.Builder
Overrides

mergeSynthesizeSpeechConfig(SynthesizeSpeechConfig value)

public OutputAudioConfig.Builder mergeSynthesizeSpeechConfig(SynthesizeSpeechConfig value)

Optional. Configuration of how speech should be synthesized. If not specified, Agent.text_to_speech_settings is applied.

.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig synthesize_speech_config = 3;

Parameter
Name Description
value SynthesizeSpeechConfig
Returns
Type Description
OutputAudioConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final OutputAudioConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
OutputAudioConfig.Builder
Overrides

setAudioEncoding(OutputAudioEncoding value)

public OutputAudioConfig.Builder setAudioEncoding(OutputAudioEncoding value)

Required. Audio encoding of the synthesized audio content.

.google.cloud.dialogflow.cx.v3.OutputAudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value OutputAudioEncoding

The audioEncoding to set.

Returns
Type Description
OutputAudioConfig.Builder

This builder for chaining.

setAudioEncodingValue(int value)

public OutputAudioConfig.Builder setAudioEncodingValue(int value)

Required. Audio encoding of the synthesized audio content.

.google.cloud.dialogflow.cx.v3.OutputAudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for audioEncoding to set.

Returns
Type Description
OutputAudioConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public OutputAudioConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
OutputAudioConfig.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public OutputAudioConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
OutputAudioConfig.Builder
Overrides

setSampleRateHertz(int value)

public OutputAudioConfig.Builder setSampleRateHertz(int value)

Optional. The synthesis sample rate (in hertz) for this audio. If not provided, then the synthesizer will use the default sample rate based on the audio encoding. If this is different from the voice's natural sample rate, then the synthesizer will honor this request by converting to the desired sample rate (which might result in worse audio quality).

int32 sample_rate_hertz = 2;

Parameter
Name Description
value int

The sampleRateHertz to set.

Returns
Type Description
OutputAudioConfig.Builder

This builder for chaining.

setSynthesizeSpeechConfig(SynthesizeSpeechConfig value)

public OutputAudioConfig.Builder setSynthesizeSpeechConfig(SynthesizeSpeechConfig value)

Optional. Configuration of how speech should be synthesized. If not specified, Agent.text_to_speech_settings is applied.

.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig synthesize_speech_config = 3;

Parameter
Name Description
value SynthesizeSpeechConfig
Returns
Type Description
OutputAudioConfig.Builder

setSynthesizeSpeechConfig(SynthesizeSpeechConfig.Builder builderForValue)

public OutputAudioConfig.Builder setSynthesizeSpeechConfig(SynthesizeSpeechConfig.Builder builderForValue)

Optional. Configuration of how speech should be synthesized. If not specified, Agent.text_to_speech_settings is applied.

.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig synthesize_speech_config = 3;

Parameter
Name Description
builderForValue SynthesizeSpeechConfig.Builder
Returns
Type Description
OutputAudioConfig.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final OutputAudioConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
OutputAudioConfig.Builder
Overrides