public static final class TextToSpeechSettings.Builder extends GeneratedMessageV3.Builder<TextToSpeechSettings.Builder> implements TextToSpeechSettingsOrBuilder
Instructs the speech synthesizer on how to generate the output audio content.Protobuf type
google.cloud.dialogflow.v2beta1.TextToSpeechSettings
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, 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 MapField internalGetMapField(int number)
internalGetMapField
in class GeneratedMessageV3.Builder<TextToSpeechSettings.Builder>
protected MapField internalGetMutableMapField(int number)
internalGetMutableMapField
in class GeneratedMessageV3.Builder<TextToSpeechSettings.Builder>
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<TextToSpeechSettings.Builder>
public TextToSpeechSettings.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<TextToSpeechSettings.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<TextToSpeechSettings.Builder>
public TextToSpeechSettings getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public TextToSpeechSettings build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public TextToSpeechSettings buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public TextToSpeechSettings.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<TextToSpeechSettings.Builder>
public TextToSpeechSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<TextToSpeechSettings.Builder>
public TextToSpeechSettings.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<TextToSpeechSettings.Builder>
public TextToSpeechSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<TextToSpeechSettings.Builder>
public TextToSpeechSettings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<TextToSpeechSettings.Builder>
public TextToSpeechSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<TextToSpeechSettings.Builder>
public TextToSpeechSettings.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<TextToSpeechSettings.Builder>
public TextToSpeechSettings.Builder mergeFrom(TextToSpeechSettings other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<TextToSpeechSettings.Builder>
public TextToSpeechSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<TextToSpeechSettings.Builder>
IOException
public boolean getEnableTextToSpeech()
Optional. Indicates whether text to speech is enabled. Even when this field is false, other settings in this proto are still retained.
bool enable_text_to_speech = 1 [(.google.api.field_behavior) = OPTIONAL];
getEnableTextToSpeech
in interface TextToSpeechSettingsOrBuilder
public TextToSpeechSettings.Builder setEnableTextToSpeech(boolean value)
Optional. Indicates whether text to speech is enabled. Even when this field is false, other settings in this proto are still retained.
bool enable_text_to_speech = 1 [(.google.api.field_behavior) = OPTIONAL];
value
- The enableTextToSpeech to set.public TextToSpeechSettings.Builder clearEnableTextToSpeech()
Optional. Indicates whether text to speech is enabled. Even when this field is false, other settings in this proto are still retained.
bool enable_text_to_speech = 1 [(.google.api.field_behavior) = OPTIONAL];
public int getOutputAudioEncodingValue()
Required. Audio encoding of the synthesized audio content.
.google.cloud.dialogflow.v2beta1.OutputAudioEncoding output_audio_encoding = 2 [(.google.api.field_behavior) = REQUIRED];
getOutputAudioEncodingValue
in interface TextToSpeechSettingsOrBuilder
public TextToSpeechSettings.Builder setOutputAudioEncodingValue(int value)
Required. Audio encoding of the synthesized audio content.
.google.cloud.dialogflow.v2beta1.OutputAudioEncoding output_audio_encoding = 2 [(.google.api.field_behavior) = REQUIRED];
value
- The enum numeric value on the wire for outputAudioEncoding to set.public OutputAudioEncoding getOutputAudioEncoding()
Required. Audio encoding of the synthesized audio content.
.google.cloud.dialogflow.v2beta1.OutputAudioEncoding output_audio_encoding = 2 [(.google.api.field_behavior) = REQUIRED];
getOutputAudioEncoding
in interface TextToSpeechSettingsOrBuilder
public TextToSpeechSettings.Builder setOutputAudioEncoding(OutputAudioEncoding value)
Required. Audio encoding of the synthesized audio content.
.google.cloud.dialogflow.v2beta1.OutputAudioEncoding output_audio_encoding = 2 [(.google.api.field_behavior) = REQUIRED];
value
- The outputAudioEncoding to set.public TextToSpeechSettings.Builder clearOutputAudioEncoding()
Required. Audio encoding of the synthesized audio content.
.google.cloud.dialogflow.v2beta1.OutputAudioEncoding output_audio_encoding = 2 [(.google.api.field_behavior) = REQUIRED];
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 = 3 [(.google.api.field_behavior) = OPTIONAL];
getSampleRateHertz
in interface TextToSpeechSettingsOrBuilder
public TextToSpeechSettings.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 = 3 [(.google.api.field_behavior) = OPTIONAL];
value
- The sampleRateHertz to set.public TextToSpeechSettings.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 = 3 [(.google.api.field_behavior) = OPTIONAL];
public int getSynthesizeSpeechConfigsCount()
TextToSpeechSettingsOrBuilder
Optional. Configuration of how speech should be synthesized, mapping from language (https://cloud.google.com/dialogflow/docs/reference/language) to SynthesizeSpeechConfig.
map<string, .google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig> synthesize_speech_configs = 4 [(.google.api.field_behavior) = OPTIONAL];
getSynthesizeSpeechConfigsCount
in interface TextToSpeechSettingsOrBuilder
public boolean containsSynthesizeSpeechConfigs(String key)
Optional. Configuration of how speech should be synthesized, mapping from language (https://cloud.google.com/dialogflow/docs/reference/language) to SynthesizeSpeechConfig.
map<string, .google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig> synthesize_speech_configs = 4 [(.google.api.field_behavior) = OPTIONAL];
containsSynthesizeSpeechConfigs
in interface TextToSpeechSettingsOrBuilder
@Deprecated public Map<String,SynthesizeSpeechConfig> getSynthesizeSpeechConfigs()
getSynthesizeSpeechConfigsMap()
instead.getSynthesizeSpeechConfigs
in interface TextToSpeechSettingsOrBuilder
public Map<String,SynthesizeSpeechConfig> getSynthesizeSpeechConfigsMap()
Optional. Configuration of how speech should be synthesized, mapping from language (https://cloud.google.com/dialogflow/docs/reference/language) to SynthesizeSpeechConfig.
map<string, .google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig> synthesize_speech_configs = 4 [(.google.api.field_behavior) = OPTIONAL];
getSynthesizeSpeechConfigsMap
in interface TextToSpeechSettingsOrBuilder
public SynthesizeSpeechConfig getSynthesizeSpeechConfigsOrDefault(String key, SynthesizeSpeechConfig defaultValue)
Optional. Configuration of how speech should be synthesized, mapping from language (https://cloud.google.com/dialogflow/docs/reference/language) to SynthesizeSpeechConfig.
map<string, .google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig> synthesize_speech_configs = 4 [(.google.api.field_behavior) = OPTIONAL];
getSynthesizeSpeechConfigsOrDefault
in interface TextToSpeechSettingsOrBuilder
public SynthesizeSpeechConfig getSynthesizeSpeechConfigsOrThrow(String key)
Optional. Configuration of how speech should be synthesized, mapping from language (https://cloud.google.com/dialogflow/docs/reference/language) to SynthesizeSpeechConfig.
map<string, .google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig> synthesize_speech_configs = 4 [(.google.api.field_behavior) = OPTIONAL];
getSynthesizeSpeechConfigsOrThrow
in interface TextToSpeechSettingsOrBuilder
public TextToSpeechSettings.Builder clearSynthesizeSpeechConfigs()
public TextToSpeechSettings.Builder removeSynthesizeSpeechConfigs(String key)
Optional. Configuration of how speech should be synthesized, mapping from language (https://cloud.google.com/dialogflow/docs/reference/language) to SynthesizeSpeechConfig.
map<string, .google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig> synthesize_speech_configs = 4 [(.google.api.field_behavior) = OPTIONAL];
@Deprecated public Map<String,SynthesizeSpeechConfig> getMutableSynthesizeSpeechConfigs()
public TextToSpeechSettings.Builder putSynthesizeSpeechConfigs(String key, SynthesizeSpeechConfig value)
Optional. Configuration of how speech should be synthesized, mapping from language (https://cloud.google.com/dialogflow/docs/reference/language) to SynthesizeSpeechConfig.
map<string, .google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig> synthesize_speech_configs = 4 [(.google.api.field_behavior) = OPTIONAL];
public TextToSpeechSettings.Builder putAllSynthesizeSpeechConfigs(Map<String,SynthesizeSpeechConfig> values)
Optional. Configuration of how speech should be synthesized, mapping from language (https://cloud.google.com/dialogflow/docs/reference/language) to SynthesizeSpeechConfig.
map<string, .google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig> synthesize_speech_configs = 4 [(.google.api.field_behavior) = OPTIONAL];
public final TextToSpeechSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<TextToSpeechSettings.Builder>
public final TextToSpeechSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<TextToSpeechSettings.Builder>
Copyright © 2022 Google LLC. All rights reserved.