Class SpeakerVoiceConfig (3.82.0)

public final class SpeakerVoiceConfig extends GeneratedMessageV3 implements SpeakerVoiceConfigOrBuilder

Configuration for a single speaker in a multi-speaker setup.

Protobuf type google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig

Static Fields

SPEAKER_FIELD_NUMBER

public static final int SPEAKER_FIELD_NUMBER
Field Value
Type Description
int

VOICE_CONFIG_FIELD_NUMBER

public static final int VOICE_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SpeakerVoiceConfig getDefaultInstance()
Returns
Type Description
SpeakerVoiceConfig

getDescriptor()

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

newBuilder()

public static SpeakerVoiceConfig.Builder newBuilder()
Returns
Type Description
SpeakerVoiceConfig.Builder

newBuilder(SpeakerVoiceConfig prototype)

public static SpeakerVoiceConfig.Builder newBuilder(SpeakerVoiceConfig prototype)
Parameter
Name Description
prototype SpeakerVoiceConfig
Returns
Type Description
SpeakerVoiceConfig.Builder

parseDelimitedFrom(InputStream input)

public static SpeakerVoiceConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SpeakerVoiceConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SpeakerVoiceConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SpeakerVoiceConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static SpeakerVoiceConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
SpeakerVoiceConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SpeakerVoiceConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SpeakerVoiceConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SpeakerVoiceConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
SpeakerVoiceConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SpeakerVoiceConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SpeakerVoiceConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SpeakerVoiceConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SpeakerVoiceConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SpeakerVoiceConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SpeakerVoiceConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static SpeakerVoiceConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SpeakerVoiceConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SpeakerVoiceConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SpeakerVoiceConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static SpeakerVoiceConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SpeakerVoiceConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SpeakerVoiceConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SpeakerVoiceConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<SpeakerVoiceConfig> parser()
Returns
Type Description
Parser<SpeakerVoiceConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public SpeakerVoiceConfig getDefaultInstanceForType()
Returns
Type Description
SpeakerVoiceConfig

getParserForType()

public Parser<SpeakerVoiceConfig> getParserForType()
Returns
Type Description
Parser<SpeakerVoiceConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSpeaker()

public String getSpeaker()

Required. The name of the speaker. This should be the same as the speaker name used in the prompt.

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

Returns
Type Description
String

The speaker.

getSpeakerBytes()

public ByteString getSpeakerBytes()

Required. The name of the speaker. This should be the same as the speaker name used in the prompt.

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

Returns
Type Description
ByteString

The bytes for speaker.

getVoiceConfig()

public VoiceConfig getVoiceConfig()

Required. The configuration for the voice of this speaker.

.google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
VoiceConfig

The voiceConfig.

getVoiceConfigOrBuilder()

public VoiceConfigOrBuilder getVoiceConfigOrBuilder()

Required. The configuration for the voice of this speaker.

.google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
VoiceConfigOrBuilder

hasVoiceConfig()

public boolean hasVoiceConfig()

Required. The configuration for the voice of this speaker.

.google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the voiceConfig field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public SpeakerVoiceConfig.Builder newBuilderForType()
Returns
Type Description
SpeakerVoiceConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SpeakerVoiceConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SpeakerVoiceConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public SpeakerVoiceConfig.Builder toBuilder()
Returns
Type Description
SpeakerVoiceConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException