public final class ReplicatedVoiceConfig extends GeneratedMessage implements ReplicatedVoiceConfigOrBuilderThe configuration for the replicated voice to use.
Protobuf type google.cloud.vertexai.v1.ReplicatedVoiceConfig
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > ReplicatedVoiceConfigImplements
ReplicatedVoiceConfigOrBuilderStatic Fields
MIME_TYPE_FIELD_NUMBER
public static final int MIME_TYPE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
VOICE_SAMPLE_AUDIO_FIELD_NUMBER
public static final int VOICE_SAMPLE_AUDIO_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static ReplicatedVoiceConfig getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
ReplicatedVoiceConfig |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static ReplicatedVoiceConfig.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
ReplicatedVoiceConfig.Builder |
|
newBuilder(ReplicatedVoiceConfig prototype)
public static ReplicatedVoiceConfig.Builder newBuilder(ReplicatedVoiceConfig prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
ReplicatedVoiceConfig |
| Returns | |
|---|---|
| Type | Description |
ReplicatedVoiceConfig.Builder |
|
parseDelimitedFrom(InputStream input)
public static ReplicatedVoiceConfig parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
ReplicatedVoiceConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ReplicatedVoiceConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ReplicatedVoiceConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static ReplicatedVoiceConfig parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
ReplicatedVoiceConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ReplicatedVoiceConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ReplicatedVoiceConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static ReplicatedVoiceConfig parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
ReplicatedVoiceConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ReplicatedVoiceConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ReplicatedVoiceConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static ReplicatedVoiceConfig parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
ReplicatedVoiceConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ReplicatedVoiceConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ReplicatedVoiceConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static ReplicatedVoiceConfig parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
ReplicatedVoiceConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ReplicatedVoiceConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ReplicatedVoiceConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static ReplicatedVoiceConfig parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
ReplicatedVoiceConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ReplicatedVoiceConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ReplicatedVoiceConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<ReplicatedVoiceConfig> parser()| Returns | |
|---|---|
| Type | Description |
Parser<ReplicatedVoiceConfig> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getDefaultInstanceForType()
public ReplicatedVoiceConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ReplicatedVoiceConfig |
|
getMimeType()
public String getMimeType() Optional. The mimetype of the voice sample. The only currently supported
value is audio/wav. This represents 16-bit signed little-endian wav data,
with a 24kHz sampling rate. mime_type will default to audio/wav if not
set.
string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The mimeType. |
getMimeTypeBytes()
public ByteString getMimeTypeBytes() Optional. The mimetype of the voice sample. The only currently supported
value is audio/wav. This represents 16-bit signed little-endian wav data,
with a 24kHz sampling rate. mime_type will default to audio/wav if not
set.
string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for mimeType. |
getParserForType()
public Parser<ReplicatedVoiceConfig> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<ReplicatedVoiceConfig> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
getVoiceSampleAudio()
public ByteString getVoiceSampleAudio()Optional. The sample of the custom voice.
bytes voice_sample_audio = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The voiceSampleAudio. |
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 ReplicatedVoiceConfig.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
ReplicatedVoiceConfig.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected ReplicatedVoiceConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
ReplicatedVoiceConfig.Builder |
|
toBuilder()
public ReplicatedVoiceConfig.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
ReplicatedVoiceConfig.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|