public static final class SpeechConfig.Builder extends GeneratedMessageV3.Builder<SpeechConfig.Builder> implements SpeechConfigOrBuilder
Configuration for speech generation.
Protobuf type google.cloud.aiplatform.v1.SpeechConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public SpeechConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public SpeechConfig build()
public SpeechConfig buildPartial()
public SpeechConfig.Builder clear()
Overrides
public SpeechConfig.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public SpeechConfig.Builder clearLanguageCode()
Optional. The language code (ISO 639-1) for the speech synthesis.
string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
public SpeechConfig.Builder clearMultiSpeakerVoiceConfig()
The configuration for a multi-speaker text-to-speech request.
This field is mutually exclusive with voice_config.
.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
public SpeechConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public SpeechConfig.Builder clearVoiceConfig()
The configuration for the voice to use.
.google.cloud.aiplatform.v1.VoiceConfig voice_config = 1;
public SpeechConfig.Builder clone()
Overrides
public SpeechConfig getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public String getLanguageCode()
Optional. The language code (ISO 639-1) for the speech synthesis.
string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The languageCode.
|
public ByteString getLanguageCodeBytes()
Optional. The language code (ISO 639-1) for the speech synthesis.
string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for languageCode.
|
public MultiSpeakerVoiceConfig getMultiSpeakerVoiceConfig()
The configuration for a multi-speaker text-to-speech request.
This field is mutually exclusive with voice_config.
.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
public MultiSpeakerVoiceConfig.Builder getMultiSpeakerVoiceConfigBuilder()
The configuration for a multi-speaker text-to-speech request.
This field is mutually exclusive with voice_config.
.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
public MultiSpeakerVoiceConfigOrBuilder getMultiSpeakerVoiceConfigOrBuilder()
The configuration for a multi-speaker text-to-speech request.
This field is mutually exclusive with voice_config.
.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
public VoiceConfig getVoiceConfig()
The configuration for the voice to use.
.google.cloud.aiplatform.v1.VoiceConfig voice_config = 1;
public VoiceConfig.Builder getVoiceConfigBuilder()
The configuration for the voice to use.
.google.cloud.aiplatform.v1.VoiceConfig voice_config = 1;
public VoiceConfigOrBuilder getVoiceConfigOrBuilder()
The configuration for the voice to use.
.google.cloud.aiplatform.v1.VoiceConfig voice_config = 1;
public boolean hasMultiSpeakerVoiceConfig()
The configuration for a multi-speaker text-to-speech request.
This field is mutually exclusive with voice_config.
.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
| Returns |
| Type |
Description |
boolean |
Whether the multiSpeakerVoiceConfig field is set.
|
public boolean hasVoiceConfig()
The configuration for the voice to use.
.google.cloud.aiplatform.v1.VoiceConfig voice_config = 1;
| Returns |
| Type |
Description |
boolean |
Whether the voiceConfig field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public SpeechConfig.Builder mergeFrom(SpeechConfig other)
public SpeechConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public SpeechConfig.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
public SpeechConfig.Builder mergeMultiSpeakerVoiceConfig(MultiSpeakerVoiceConfig value)
The configuration for a multi-speaker text-to-speech request.
This field is mutually exclusive with voice_config.
.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
public final SpeechConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public SpeechConfig.Builder mergeVoiceConfig(VoiceConfig value)
The configuration for the voice to use.
.google.cloud.aiplatform.v1.VoiceConfig voice_config = 1;
public SpeechConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public SpeechConfig.Builder setLanguageCode(String value)
Optional. The language code (ISO 639-1) for the speech synthesis.
string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
value |
String
The languageCode to set.
|
public SpeechConfig.Builder setLanguageCodeBytes(ByteString value)
Optional. The language code (ISO 639-1) for the speech synthesis.
string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
value |
ByteString
The bytes for languageCode to set.
|
public SpeechConfig.Builder setMultiSpeakerVoiceConfig(MultiSpeakerVoiceConfig value)
The configuration for a multi-speaker text-to-speech request.
This field is mutually exclusive with voice_config.
.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
public SpeechConfig.Builder setMultiSpeakerVoiceConfig(MultiSpeakerVoiceConfig.Builder builderForValue)
The configuration for a multi-speaker text-to-speech request.
This field is mutually exclusive with voice_config.
.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
public SpeechConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final SpeechConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
public SpeechConfig.Builder setVoiceConfig(VoiceConfig value)
The configuration for the voice to use.
.google.cloud.aiplatform.v1.VoiceConfig voice_config = 1;
public SpeechConfig.Builder setVoiceConfig(VoiceConfig.Builder builderForValue)
The configuration for the voice to use.
.google.cloud.aiplatform.v1.VoiceConfig voice_config = 1;