Class VoiceCloneParams.Builder (2.56.0)

public static final class VoiceCloneParams.Builder extends GeneratedMessageV3.Builder<VoiceCloneParams.Builder> implements VoiceCloneParamsOrBuilder

The configuration of Voice Clone feature.

Protobuf type google.cloud.texttospeech.v1.VoiceCloneParams

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public VoiceCloneParams build()
Returns
Type Description
VoiceCloneParams

buildPartial()

public VoiceCloneParams buildPartial()
Returns
Type Description
VoiceCloneParams

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearVoiceCloningKey()

public VoiceCloneParams.Builder clearVoiceCloningKey()

Required. Created by GenerateVoiceCloningKey.

string voice_cloning_key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
VoiceCloneParams.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public VoiceCloneParams getDefaultInstanceForType()
Returns
Type Description
VoiceCloneParams

getDescriptorForType()

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

getVoiceCloningKey()

public String getVoiceCloningKey()

Required. Created by GenerateVoiceCloningKey.

string voice_cloning_key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The voiceCloningKey.

getVoiceCloningKeyBytes()

public ByteString getVoiceCloningKeyBytes()

Required. Created by GenerateVoiceCloningKey.

string voice_cloning_key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for voiceCloningKey.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(VoiceCloneParams other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setVoiceCloningKey(String value)

public VoiceCloneParams.Builder setVoiceCloningKey(String value)

Required. Created by GenerateVoiceCloningKey.

string voice_cloning_key = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The voiceCloningKey to set.

Returns
Type Description
VoiceCloneParams.Builder

This builder for chaining.

setVoiceCloningKeyBytes(ByteString value)

public VoiceCloneParams.Builder setVoiceCloningKeyBytes(ByteString value)

Required. Created by GenerateVoiceCloningKey.

string voice_cloning_key = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for voiceCloningKey to set.

Returns
Type Description
VoiceCloneParams.Builder

This builder for chaining.