public static final class ReplicatedVoiceConfig.Builder extends GeneratedMessage.Builder<ReplicatedVoiceConfig.Builder> implements ReplicatedVoiceConfigOrBuilderThe configuration for the replicated voice to use.
Protobuf type google.cloud.vertexai.v1.ReplicatedVoiceConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ReplicatedVoiceConfig.BuilderImplements
ReplicatedVoiceConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ReplicatedVoiceConfig build()| Returns | |
|---|---|
| Type | Description |
ReplicatedVoiceConfig |
|
buildPartial()
public ReplicatedVoiceConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
ReplicatedVoiceConfig |
|
clear()
public ReplicatedVoiceConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
ReplicatedVoiceConfig.Builder |
|
clearMimeType()
public ReplicatedVoiceConfig.Builder clearMimeType() 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 |
ReplicatedVoiceConfig.Builder |
This builder for chaining. |
clearVoiceSampleAudio()
public ReplicatedVoiceConfig.Builder clearVoiceSampleAudio()Optional. The sample of the custom voice.
bytes voice_sample_audio = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ReplicatedVoiceConfig.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public ReplicatedVoiceConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ReplicatedVoiceConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ReplicatedVoiceConfig other)
public ReplicatedVoiceConfig.Builder mergeFrom(ReplicatedVoiceConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
ReplicatedVoiceConfig |
| Returns | |
|---|---|
| Type | Description |
ReplicatedVoiceConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ReplicatedVoiceConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ReplicatedVoiceConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ReplicatedVoiceConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ReplicatedVoiceConfig.Builder |
|
setMimeType(String value)
public ReplicatedVoiceConfig.Builder setMimeType(String value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe mimeType to set. |
| Returns | |
|---|---|
| Type | Description |
ReplicatedVoiceConfig.Builder |
This builder for chaining. |
setMimeTypeBytes(ByteString value)
public ReplicatedVoiceConfig.Builder setMimeTypeBytes(ByteString value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for mimeType to set. |
| Returns | |
|---|---|
| Type | Description |
ReplicatedVoiceConfig.Builder |
This builder for chaining. |
setVoiceSampleAudio(ByteString value)
public ReplicatedVoiceConfig.Builder setVoiceSampleAudio(ByteString value)Optional. The sample of the custom voice.
bytes voice_sample_audio = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe voiceSampleAudio to set. |
| Returns | |
|---|---|
| Type | Description |
ReplicatedVoiceConfig.Builder |
This builder for chaining. |