Package com.google.cloud.aiplatform.v1
Class SpeechConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SpeechConfig.Builder>
com.google.cloud.aiplatform.v1.SpeechConfig.Builder
- All Implemented Interfaces:
SpeechConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SpeechConfig
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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.The configuration for a multi-speaker text-to-speech request.The configuration for the voice to use.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.The configuration for a multi-speaker text-to-speech request.The configuration for a multi-speaker text-to-speech request.The configuration for a multi-speaker text-to-speech request.The configuration for the voice to use.The configuration for the voice to use.The configuration for the voice to use.booleanThe configuration for a multi-speaker text-to-speech request.booleanThe configuration for the voice to use.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(SpeechConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The configuration for a multi-speaker text-to-speech request.mergeVoiceConfig(VoiceConfig value) The configuration for the voice to use.setLanguageCode(String value) Optional.setLanguageCodeBytes(com.google.protobuf.ByteString value) Optional.The configuration for a multi-speaker text-to-speech request.setMultiSpeakerVoiceConfig(MultiSpeakerVoiceConfig.Builder builderForValue) The configuration for a multi-speaker text-to-speech request.setVoiceConfig(VoiceConfig value) The configuration for the voice to use.setVoiceConfig(VoiceConfig.Builder builderForValue) The configuration for the voice to use.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SpeechConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<SpeechConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<SpeechConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SpeechConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SpeechConfig.Builder>
-
mergeFrom
public SpeechConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SpeechConfig.Builder>- Throws:
IOException
-
hasVoiceConfig
public boolean hasVoiceConfig()The configuration for the voice to use.
.google.cloud.aiplatform.v1.VoiceConfig voice_config = 1;- Specified by:
hasVoiceConfigin interfaceSpeechConfigOrBuilder- Returns:
- Whether the voiceConfig field is set.
-
getVoiceConfig
The configuration for the voice to use.
.google.cloud.aiplatform.v1.VoiceConfig voice_config = 1;- Specified by:
getVoiceConfigin interfaceSpeechConfigOrBuilder- Returns:
- The voiceConfig.
-
setVoiceConfig
The configuration for the voice to use.
.google.cloud.aiplatform.v1.VoiceConfig voice_config = 1; -
setVoiceConfig
The configuration for the voice to use.
.google.cloud.aiplatform.v1.VoiceConfig voice_config = 1; -
mergeVoiceConfig
The configuration for the voice to use.
.google.cloud.aiplatform.v1.VoiceConfig voice_config = 1; -
clearVoiceConfig
The configuration for the voice to use.
.google.cloud.aiplatform.v1.VoiceConfig voice_config = 1; -
getVoiceConfigBuilder
The configuration for the voice to use.
.google.cloud.aiplatform.v1.VoiceConfig voice_config = 1; -
getVoiceConfigOrBuilder
The configuration for the voice to use.
.google.cloud.aiplatform.v1.VoiceConfig voice_config = 1;- Specified by:
getVoiceConfigOrBuilderin interfaceSpeechConfigOrBuilder
-
getLanguageCode
Optional. The language code (ISO 639-1) for the speech synthesis.
string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLanguageCodein interfaceSpeechConfigOrBuilder- Returns:
- The languageCode.
-
getLanguageCodeBytes
public 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];- Specified by:
getLanguageCodeBytesin interfaceSpeechConfigOrBuilder- Returns:
- The bytes for languageCode.
-
setLanguageCode
Optional. The language code (ISO 639-1) for the speech synthesis.
string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The languageCode to set.- Returns:
- This builder for chaining.
-
clearLanguageCode
Optional. The language code (ISO 639-1) for the speech synthesis.
string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setLanguageCodeBytes
Optional. The language code (ISO 639-1) for the speech synthesis.
string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for languageCode to set.- Returns:
- This builder for chaining.
-
hasMultiSpeakerVoiceConfig
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;- Specified by:
hasMultiSpeakerVoiceConfigin interfaceSpeechConfigOrBuilder- Returns:
- Whether the multiSpeakerVoiceConfig field is set.
-
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;- Specified by:
getMultiSpeakerVoiceConfigin interfaceSpeechConfigOrBuilder- Returns:
- The multiSpeakerVoiceConfig.
-
setMultiSpeakerVoiceConfig
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; -
setMultiSpeakerVoiceConfig
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; -
mergeMultiSpeakerVoiceConfig
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; -
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; -
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; -
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;- Specified by:
getMultiSpeakerVoiceConfigOrBuilderin interfaceSpeechConfigOrBuilder
-