public static final class OutputAudioConfig.Builder extends GeneratedMessageV3.Builder<OutputAudioConfig.Builder> implements OutputAudioConfigOrBuilder
Instructs the speech synthesizer on how to generate the output audio content. If this audio config is supplied in a request, it overrides all existing text-to-speech settings applied to the agent.Protobuf type
google.cloud.dialogflow.v2.OutputAudioConfig
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<OutputAudioConfig.Builder>
public OutputAudioConfig.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<OutputAudioConfig.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<OutputAudioConfig.Builder>
public OutputAudioConfig getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public OutputAudioConfig build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public OutputAudioConfig buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public OutputAudioConfig.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<OutputAudioConfig.Builder>
public OutputAudioConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<OutputAudioConfig.Builder>
public OutputAudioConfig.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<OutputAudioConfig.Builder>
public OutputAudioConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<OutputAudioConfig.Builder>
public OutputAudioConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<OutputAudioConfig.Builder>
public OutputAudioConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<OutputAudioConfig.Builder>
public OutputAudioConfig.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<OutputAudioConfig.Builder>
public OutputAudioConfig.Builder mergeFrom(OutputAudioConfig other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<OutputAudioConfig.Builder>
public OutputAudioConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<OutputAudioConfig.Builder>
IOException
public int getAudioEncodingValue()
Required. Audio encoding of the synthesized audio content.
.google.cloud.dialogflow.v2.OutputAudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];
getAudioEncodingValue
in interface OutputAudioConfigOrBuilder
public OutputAudioConfig.Builder setAudioEncodingValue(int value)
Required. Audio encoding of the synthesized audio content.
.google.cloud.dialogflow.v2.OutputAudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];
value
- The enum numeric value on the wire for audioEncoding to set.public OutputAudioEncoding getAudioEncoding()
Required. Audio encoding of the synthesized audio content.
.google.cloud.dialogflow.v2.OutputAudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];
getAudioEncoding
in interface OutputAudioConfigOrBuilder
public OutputAudioConfig.Builder setAudioEncoding(OutputAudioEncoding value)
Required. Audio encoding of the synthesized audio content.
.google.cloud.dialogflow.v2.OutputAudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];
value
- The audioEncoding to set.public OutputAudioConfig.Builder clearAudioEncoding()
Required. Audio encoding of the synthesized audio content.
.google.cloud.dialogflow.v2.OutputAudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];
public int getSampleRateHertz()
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;
getSampleRateHertz
in interface OutputAudioConfigOrBuilder
public OutputAudioConfig.Builder setSampleRateHertz(int value)
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;
value
- The sampleRateHertz to set.public OutputAudioConfig.Builder clearSampleRateHertz()
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;
public boolean hasSynthesizeSpeechConfig()
Configuration of how speech should be synthesized.
.google.cloud.dialogflow.v2.SynthesizeSpeechConfig synthesize_speech_config = 3;
hasSynthesizeSpeechConfig
in interface OutputAudioConfigOrBuilder
public SynthesizeSpeechConfig getSynthesizeSpeechConfig()
Configuration of how speech should be synthesized.
.google.cloud.dialogflow.v2.SynthesizeSpeechConfig synthesize_speech_config = 3;
getSynthesizeSpeechConfig
in interface OutputAudioConfigOrBuilder
public OutputAudioConfig.Builder setSynthesizeSpeechConfig(SynthesizeSpeechConfig value)
Configuration of how speech should be synthesized.
.google.cloud.dialogflow.v2.SynthesizeSpeechConfig synthesize_speech_config = 3;
public OutputAudioConfig.Builder setSynthesizeSpeechConfig(SynthesizeSpeechConfig.Builder builderForValue)
Configuration of how speech should be synthesized.
.google.cloud.dialogflow.v2.SynthesizeSpeechConfig synthesize_speech_config = 3;
public OutputAudioConfig.Builder mergeSynthesizeSpeechConfig(SynthesizeSpeechConfig value)
Configuration of how speech should be synthesized.
.google.cloud.dialogflow.v2.SynthesizeSpeechConfig synthesize_speech_config = 3;
public OutputAudioConfig.Builder clearSynthesizeSpeechConfig()
Configuration of how speech should be synthesized.
.google.cloud.dialogflow.v2.SynthesizeSpeechConfig synthesize_speech_config = 3;
public SynthesizeSpeechConfig.Builder getSynthesizeSpeechConfigBuilder()
Configuration of how speech should be synthesized.
.google.cloud.dialogflow.v2.SynthesizeSpeechConfig synthesize_speech_config = 3;
public SynthesizeSpeechConfigOrBuilder getSynthesizeSpeechConfigOrBuilder()
Configuration of how speech should be synthesized.
.google.cloud.dialogflow.v2.SynthesizeSpeechConfig synthesize_speech_config = 3;
getSynthesizeSpeechConfigOrBuilder
in interface OutputAudioConfigOrBuilder
public final OutputAudioConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<OutputAudioConfig.Builder>
public final OutputAudioConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<OutputAudioConfig.Builder>
Copyright © 2022 Google LLC. All rights reserved.