public static final class SpeechConfig.Builder extends GeneratedMessage.Builder<SpeechConfig.Builder> implements SpeechConfigOrBuilderConfiguration for speech generation.
Protobuf type google.cloud.vertexai.v1.SpeechConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > SpeechConfig.BuilderImplements
SpeechConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public SpeechConfig build()| Returns | |
|---|---|
| Type | Description |
SpeechConfig |
|
buildPartial()
public SpeechConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
SpeechConfig |
|
clear()
public SpeechConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
SpeechConfig.Builder |
|
clearLanguageCode()
public SpeechConfig.Builder clearLanguageCode()Optional. The language code (ISO 639-1) for the speech synthesis.
string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SpeechConfig.Builder |
This builder for chaining. |
clearMultiSpeakerVoiceConfig()
public SpeechConfig.Builder clearMultiSpeakerVoiceConfig() The configuration for a multi-speaker text-to-speech request.
This field is mutually exclusive with voice_config.
.google.cloud.vertexai.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
| Returns | |
|---|---|
| Type | Description |
SpeechConfig.Builder |
|
clearVoiceConfig()
public SpeechConfig.Builder clearVoiceConfig()The configuration for the voice to use.
.google.cloud.vertexai.v1.VoiceConfig voice_config = 1;
| Returns | |
|---|---|
| Type | Description |
SpeechConfig.Builder |
|
getDefaultInstanceForType()
public SpeechConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
SpeechConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getLanguageCode()
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. |
getLanguageCodeBytes()
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. |
getMultiSpeakerVoiceConfig()
public MultiSpeakerVoiceConfig getMultiSpeakerVoiceConfig() The configuration for a multi-speaker text-to-speech request.
This field is mutually exclusive with voice_config.
.google.cloud.vertexai.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
| Returns | |
|---|---|
| Type | Description |
MultiSpeakerVoiceConfig |
The multiSpeakerVoiceConfig. |
getMultiSpeakerVoiceConfigBuilder()
public MultiSpeakerVoiceConfig.Builder getMultiSpeakerVoiceConfigBuilder() The configuration for a multi-speaker text-to-speech request.
This field is mutually exclusive with voice_config.
.google.cloud.vertexai.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
| Returns | |
|---|---|
| Type | Description |
MultiSpeakerVoiceConfig.Builder |
|
getMultiSpeakerVoiceConfigOrBuilder()
public MultiSpeakerVoiceConfigOrBuilder getMultiSpeakerVoiceConfigOrBuilder() The configuration for a multi-speaker text-to-speech request.
This field is mutually exclusive with voice_config.
.google.cloud.vertexai.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
| Returns | |
|---|---|
| Type | Description |
MultiSpeakerVoiceConfigOrBuilder |
|
getVoiceConfig()
public VoiceConfig getVoiceConfig()The configuration for the voice to use.
.google.cloud.vertexai.v1.VoiceConfig voice_config = 1;
| Returns | |
|---|---|
| Type | Description |
VoiceConfig |
The voiceConfig. |
getVoiceConfigBuilder()
public VoiceConfig.Builder getVoiceConfigBuilder()The configuration for the voice to use.
.google.cloud.vertexai.v1.VoiceConfig voice_config = 1;
| Returns | |
|---|---|
| Type | Description |
VoiceConfig.Builder |
|
getVoiceConfigOrBuilder()
public VoiceConfigOrBuilder getVoiceConfigOrBuilder()The configuration for the voice to use.
.google.cloud.vertexai.v1.VoiceConfig voice_config = 1;
| Returns | |
|---|---|
| Type | Description |
VoiceConfigOrBuilder |
|
hasMultiSpeakerVoiceConfig()
public boolean hasMultiSpeakerVoiceConfig() The configuration for a multi-speaker text-to-speech request.
This field is mutually exclusive with voice_config.
.google.cloud.vertexai.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the multiSpeakerVoiceConfig field is set. |
hasVoiceConfig()
public boolean hasVoiceConfig()The configuration for the voice to use.
.google.cloud.vertexai.v1.VoiceConfig voice_config = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the voiceConfig field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(SpeechConfig other)
public SpeechConfig.Builder mergeFrom(SpeechConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
SpeechConfig |
| Returns | |
|---|---|
| Type | Description |
SpeechConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SpeechConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SpeechConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public SpeechConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
SpeechConfig.Builder |
|
mergeMultiSpeakerVoiceConfig(MultiSpeakerVoiceConfig value)
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.vertexai.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
MultiSpeakerVoiceConfig |
| Returns | |
|---|---|
| Type | Description |
SpeechConfig.Builder |
|
mergeVoiceConfig(VoiceConfig value)
public SpeechConfig.Builder mergeVoiceConfig(VoiceConfig value)The configuration for the voice to use.
.google.cloud.vertexai.v1.VoiceConfig voice_config = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
VoiceConfig |
| Returns | |
|---|---|
| Type | Description |
SpeechConfig.Builder |
|
setLanguageCode(String value)
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 |
StringThe languageCode to set. |
| Returns | |
|---|---|
| Type | Description |
SpeechConfig.Builder |
This builder for chaining. |
setLanguageCodeBytes(ByteString value)
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 |
ByteStringThe bytes for languageCode to set. |
| Returns | |
|---|---|
| Type | Description |
SpeechConfig.Builder |
This builder for chaining. |
setMultiSpeakerVoiceConfig(MultiSpeakerVoiceConfig value)
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.vertexai.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
MultiSpeakerVoiceConfig |
| Returns | |
|---|---|
| Type | Description |
SpeechConfig.Builder |
|
setMultiSpeakerVoiceConfig(MultiSpeakerVoiceConfig.Builder builderForValue)
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.vertexai.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
MultiSpeakerVoiceConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
SpeechConfig.Builder |
|
setVoiceConfig(VoiceConfig value)
public SpeechConfig.Builder setVoiceConfig(VoiceConfig value)The configuration for the voice to use.
.google.cloud.vertexai.v1.VoiceConfig voice_config = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
VoiceConfig |
| Returns | |
|---|---|
| Type | Description |
SpeechConfig.Builder |
|
setVoiceConfig(VoiceConfig.Builder builderForValue)
public SpeechConfig.Builder setVoiceConfig(VoiceConfig.Builder builderForValue)The configuration for the voice to use.
.google.cloud.vertexai.v1.VoiceConfig voice_config = 1;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
VoiceConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
SpeechConfig.Builder |
|