Class VoiceCloneParams.Builder (2.84.0)

public static final class VoiceCloneParams.Builder extends GeneratedMessage.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

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

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.

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 GeneratedMessage.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

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.