Class PrebuiltVoiceConfig.Builder (3.56.0)

public static final class PrebuiltVoiceConfig.Builder extends GeneratedMessageV3.Builder<PrebuiltVoiceConfig.Builder> implements PrebuiltVoiceConfigOrBuilder

The configuration for the prebuilt speaker to use.

Protobuf type google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PrebuiltVoiceConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PrebuiltVoiceConfig.Builder
Overrides

build()

public PrebuiltVoiceConfig build()
Returns
Type Description
PrebuiltVoiceConfig

buildPartial()

public PrebuiltVoiceConfig buildPartial()
Returns
Type Description
PrebuiltVoiceConfig

clear()

public PrebuiltVoiceConfig.Builder clear()
Returns
Type Description
PrebuiltVoiceConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public PrebuiltVoiceConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PrebuiltVoiceConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public PrebuiltVoiceConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PrebuiltVoiceConfig.Builder
Overrides

clearVoiceName()

public PrebuiltVoiceConfig.Builder clearVoiceName()

The name of the preset voice to use.

optional string voice_name = 1;

Returns
Type Description
PrebuiltVoiceConfig.Builder

This builder for chaining.

clone()

public PrebuiltVoiceConfig.Builder clone()
Returns
Type Description
PrebuiltVoiceConfig.Builder
Overrides

getDefaultInstanceForType()

public PrebuiltVoiceConfig getDefaultInstanceForType()
Returns
Type Description
PrebuiltVoiceConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getVoiceName()

public String getVoiceName()

The name of the preset voice to use.

optional string voice_name = 1;

Returns
Type Description
String

The voiceName.

getVoiceNameBytes()

public ByteString getVoiceNameBytes()

The name of the preset voice to use.

optional string voice_name = 1;

Returns
Type Description
ByteString

The bytes for voiceName.

hasVoiceName()

public boolean hasVoiceName()

The name of the preset voice to use.

optional string voice_name = 1;

Returns
Type Description
boolean

Whether the voiceName field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PrebuiltVoiceConfig other)

public PrebuiltVoiceConfig.Builder mergeFrom(PrebuiltVoiceConfig other)
Parameter
Name Description
other PrebuiltVoiceConfig
Returns
Type Description
PrebuiltVoiceConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PrebuiltVoiceConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PrebuiltVoiceConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PrebuiltVoiceConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PrebuiltVoiceConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PrebuiltVoiceConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PrebuiltVoiceConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public PrebuiltVoiceConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PrebuiltVoiceConfig.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public PrebuiltVoiceConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PrebuiltVoiceConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PrebuiltVoiceConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PrebuiltVoiceConfig.Builder
Overrides

setVoiceName(String value)

public PrebuiltVoiceConfig.Builder setVoiceName(String value)

The name of the preset voice to use.

optional string voice_name = 1;

Parameter
Name Description
value String

The voiceName to set.

Returns
Type Description
PrebuiltVoiceConfig.Builder

This builder for chaining.

setVoiceNameBytes(ByteString value)

public PrebuiltVoiceConfig.Builder setVoiceNameBytes(ByteString value)

The name of the preset voice to use.

optional string voice_name = 1;

Parameter
Name Description
value ByteString

The bytes for voiceName to set.

Returns
Type Description
PrebuiltVoiceConfig.Builder

This builder for chaining.