public static final class SpeechConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<SpeechConfig.Builder> implements SpeechConfigOrBuilder
Configuration for speech generation.Protobuf type
google.cloud.aiplatform.v1.SpeechConfig| Modifier and Type | Method and Description |
|---|---|
SpeechConfig |
build() |
SpeechConfig |
buildPartial() |
SpeechConfig.Builder |
clear() |
SpeechConfig.Builder |
clearLanguageCode()
Optional.
|
SpeechConfig.Builder |
clearMultiSpeakerVoiceConfig()
The configuration for a multi-speaker text-to-speech request.
|
SpeechConfig.Builder |
clearVoiceConfig()
The configuration for the voice to use.
|
SpeechConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getLanguageCode()
Optional.
|
com.google.protobuf.ByteString |
getLanguageCodeBytes()
Optional.
|
MultiSpeakerVoiceConfig |
getMultiSpeakerVoiceConfig()
The configuration for a multi-speaker text-to-speech request.
|
MultiSpeakerVoiceConfig.Builder |
getMultiSpeakerVoiceConfigBuilder()
The configuration for a multi-speaker text-to-speech request.
|
MultiSpeakerVoiceConfigOrBuilder |
getMultiSpeakerVoiceConfigOrBuilder()
The configuration for a multi-speaker text-to-speech request.
|
VoiceConfig |
getVoiceConfig()
The configuration for the voice to use.
|
VoiceConfig.Builder |
getVoiceConfigBuilder()
The configuration for the voice to use.
|
VoiceConfigOrBuilder |
getVoiceConfigOrBuilder()
The configuration for the voice to use.
|
boolean |
hasMultiSpeakerVoiceConfig()
The configuration for a multi-speaker text-to-speech request.
|
boolean |
hasVoiceConfig()
The configuration for the voice to use.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
SpeechConfig.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SpeechConfig.Builder |
mergeFrom(com.google.protobuf.Message other) |
SpeechConfig.Builder |
mergeFrom(SpeechConfig other) |
SpeechConfig.Builder |
mergeMultiSpeakerVoiceConfig(MultiSpeakerVoiceConfig value)
The configuration for a multi-speaker text-to-speech request.
|
SpeechConfig.Builder |
mergeVoiceConfig(VoiceConfig value)
The configuration for the voice to use.
|
SpeechConfig.Builder |
setLanguageCode(String value)
Optional.
|
SpeechConfig.Builder |
setLanguageCodeBytes(com.google.protobuf.ByteString value)
Optional.
|
SpeechConfig.Builder |
setMultiSpeakerVoiceConfig(MultiSpeakerVoiceConfig.Builder builderForValue)
The configuration for a multi-speaker text-to-speech request.
|
SpeechConfig.Builder |
setMultiSpeakerVoiceConfig(MultiSpeakerVoiceConfig value)
The configuration for a multi-speaker text-to-speech request.
|
SpeechConfig.Builder |
setVoiceConfig(VoiceConfig.Builder builderForValue)
The configuration for the voice to use.
|
SpeechConfig.Builder |
setVoiceConfig(VoiceConfig value)
The configuration for the voice to use.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<SpeechConfig.Builder>public SpeechConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<SpeechConfig.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<SpeechConfig.Builder>public SpeechConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SpeechConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SpeechConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SpeechConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SpeechConfig.Builder>public SpeechConfig.Builder mergeFrom(SpeechConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<SpeechConfig.Builder>public SpeechConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SpeechConfig.Builder>IOExceptionpublic boolean hasVoiceConfig()
The configuration for the voice to use.
.google.cloud.aiplatform.v1.VoiceConfig voice_config = 1;hasVoiceConfig in interface SpeechConfigOrBuilderpublic VoiceConfig getVoiceConfig()
The configuration for the voice to use.
.google.cloud.aiplatform.v1.VoiceConfig voice_config = 1;getVoiceConfig in interface SpeechConfigOrBuilderpublic 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;public SpeechConfig.Builder mergeVoiceConfig(VoiceConfig value)
The configuration for the voice to use.
.google.cloud.aiplatform.v1.VoiceConfig voice_config = 1;public SpeechConfig.Builder clearVoiceConfig()
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;getVoiceConfigOrBuilder in interface SpeechConfigOrBuilderpublic String getLanguageCode()
Optional. The language code (ISO 639-1) for the speech synthesis.
string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];getLanguageCode in interface SpeechConfigOrBuilderpublic com.google.protobuf.ByteString getLanguageCodeBytes()
Optional. The language code (ISO 639-1) for the speech synthesis.
string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];getLanguageCodeBytes in interface SpeechConfigOrBuilderpublic 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];value - The languageCode to set.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 setLanguageCodeBytes(com.google.protobuf.ByteString value)
Optional. The language code (ISO 639-1) for the speech synthesis.
string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];value - The bytes for languageCode to set.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;
hasMultiSpeakerVoiceConfig in interface SpeechConfigOrBuilderpublic 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;
getMultiSpeakerVoiceConfig in interface SpeechConfigOrBuilderpublic 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 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 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 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;
getMultiSpeakerVoiceConfigOrBuilder in interface SpeechConfigOrBuilderCopyright © 2026 Google LLC. All rights reserved.