public final class SpeakerVoiceConfig extends GeneratedMessage implements SpeakerVoiceConfigOrBuilderConfiguration for a single speaker in a multi-speaker setup.
Protobuf type google.cloud.vertexai.v1.SpeakerVoiceConfig
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > SpeakerVoiceConfigImplements
SpeakerVoiceConfigOrBuilderStatic 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 |
|
getDefaultInstanceForType()
public SpeakerVoiceConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
SpeakerVoiceConfig |
|
getParserForType()
public Parser<SpeakerVoiceConfig> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<SpeakerVoiceConfig> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
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.vertexai.v1.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.vertexai.v1.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.vertexai.v1.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 |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public SpeakerVoiceConfig.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
SpeakerVoiceConfig.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected SpeakerVoiceConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
SpeakerVoiceConfig.Builder |
|
toBuilder()
public SpeakerVoiceConfig.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
SpeakerVoiceConfig.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|