public static final class Voice.Builder extends GeneratedMessageV3.Builder<Voice.Builder> implements VoiceOrBuilder
Description of a voice supported by the TTS service.Protobuf type
google.cloud.texttospeech.v1beta1.Voice
Modifier and Type | Method and Description |
---|---|
Voice.Builder |
addAllLanguageCodes(java.lang.Iterable<java.lang.String> values)
The languages that this voice supports, expressed as
[BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
|
Voice.Builder |
addLanguageCodes(java.lang.String value)
The languages that this voice supports, expressed as
[BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
|
Voice.Builder |
addLanguageCodesBytes(ByteString value)
The languages that this voice supports, expressed as
[BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
|
Voice.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
Voice |
build() |
Voice |
buildPartial() |
Voice.Builder |
clear() |
Voice.Builder |
clearField(Descriptors.FieldDescriptor field) |
Voice.Builder |
clearLanguageCodes()
The languages that this voice supports, expressed as
[BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
|
Voice.Builder |
clearName()
The name of this voice.
|
Voice.Builder |
clearNaturalSampleRateHertz()
The natural sample rate (in hertz) for this voice.
|
Voice.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
Voice.Builder |
clearSsmlGender()
The gender of this voice.
|
Voice.Builder |
clone() |
Voice |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getLanguageCodes(int index)
The languages that this voice supports, expressed as
[BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
|
ByteString |
getLanguageCodesBytes(int index)
The languages that this voice supports, expressed as
[BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
|
int |
getLanguageCodesCount()
The languages that this voice supports, expressed as
[BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
|
ProtocolStringList |
getLanguageCodesList()
The languages that this voice supports, expressed as
[BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
|
java.lang.String |
getName()
The name of this voice.
|
ByteString |
getNameBytes()
The name of this voice.
|
int |
getNaturalSampleRateHertz()
The natural sample rate (in hertz) for this voice.
|
SsmlVoiceGender |
getSsmlGender()
The gender of this voice.
|
int |
getSsmlGenderValue()
The gender of this voice.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Voice.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
Voice.Builder |
mergeFrom(Message other) |
Voice.Builder |
mergeFrom(Voice other) |
Voice.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
Voice.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
Voice.Builder |
setLanguageCodes(int index,
java.lang.String value)
The languages that this voice supports, expressed as
[BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
|
Voice.Builder |
setName(java.lang.String value)
The name of this voice.
|
Voice.Builder |
setNameBytes(ByteString value)
The name of this voice.
|
Voice.Builder |
setNaturalSampleRateHertz(int value)
The natural sample rate (in hertz) for this voice.
|
Voice.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Voice.Builder |
setSsmlGender(SsmlVoiceGender value)
The gender of this voice.
|
Voice.Builder |
setSsmlGenderValue(int value)
The gender of this voice.
|
Voice.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<Voice.Builder>
public Voice.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Voice.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Voice.Builder>
public Voice getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Voice build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Voice buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Voice.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Voice.Builder>
public Voice.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Voice.Builder>
public Voice.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Voice.Builder>
public Voice.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<Voice.Builder>
public Voice.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Voice.Builder>
public Voice.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Voice.Builder>
public Voice.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Voice.Builder>
public Voice.Builder mergeFrom(Voice other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Voice.Builder>
public Voice.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Voice.Builder>
java.io.IOException
public ProtocolStringList getLanguageCodesList()
The languages that this voice supports, expressed as [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g. "en-US", "es-419", "cmn-tw").
repeated string language_codes = 1;
getLanguageCodesList
in interface VoiceOrBuilder
public int getLanguageCodesCount()
The languages that this voice supports, expressed as [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g. "en-US", "es-419", "cmn-tw").
repeated string language_codes = 1;
getLanguageCodesCount
in interface VoiceOrBuilder
public java.lang.String getLanguageCodes(int index)
The languages that this voice supports, expressed as [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g. "en-US", "es-419", "cmn-tw").
repeated string language_codes = 1;
getLanguageCodes
in interface VoiceOrBuilder
public ByteString getLanguageCodesBytes(int index)
The languages that this voice supports, expressed as [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g. "en-US", "es-419", "cmn-tw").
repeated string language_codes = 1;
getLanguageCodesBytes
in interface VoiceOrBuilder
public Voice.Builder setLanguageCodes(int index, java.lang.String value)
The languages that this voice supports, expressed as [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g. "en-US", "es-419", "cmn-tw").
repeated string language_codes = 1;
public Voice.Builder addLanguageCodes(java.lang.String value)
The languages that this voice supports, expressed as [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g. "en-US", "es-419", "cmn-tw").
repeated string language_codes = 1;
public Voice.Builder addAllLanguageCodes(java.lang.Iterable<java.lang.String> values)
The languages that this voice supports, expressed as [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g. "en-US", "es-419", "cmn-tw").
repeated string language_codes = 1;
public Voice.Builder clearLanguageCodes()
The languages that this voice supports, expressed as [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g. "en-US", "es-419", "cmn-tw").
repeated string language_codes = 1;
public Voice.Builder addLanguageCodesBytes(ByteString value)
The languages that this voice supports, expressed as [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g. "en-US", "es-419", "cmn-tw").
repeated string language_codes = 1;
public java.lang.String getName()
The name of this voice. Each distinct voice has a unique name.
string name = 2;
getName
in interface VoiceOrBuilder
public ByteString getNameBytes()
The name of this voice. Each distinct voice has a unique name.
string name = 2;
getNameBytes
in interface VoiceOrBuilder
public Voice.Builder setName(java.lang.String value)
The name of this voice. Each distinct voice has a unique name.
string name = 2;
public Voice.Builder clearName()
The name of this voice. Each distinct voice has a unique name.
string name = 2;
public Voice.Builder setNameBytes(ByteString value)
The name of this voice. Each distinct voice has a unique name.
string name = 2;
public int getSsmlGenderValue()
The gender of this voice.
.google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3;
getSsmlGenderValue
in interface VoiceOrBuilder
public Voice.Builder setSsmlGenderValue(int value)
The gender of this voice.
.google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3;
public SsmlVoiceGender getSsmlGender()
The gender of this voice.
.google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3;
getSsmlGender
in interface VoiceOrBuilder
public Voice.Builder setSsmlGender(SsmlVoiceGender value)
The gender of this voice.
.google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3;
public Voice.Builder clearSsmlGender()
The gender of this voice.
.google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3;
public int getNaturalSampleRateHertz()
The natural sample rate (in hertz) for this voice.
int32 natural_sample_rate_hertz = 4;
getNaturalSampleRateHertz
in interface VoiceOrBuilder
public Voice.Builder setNaturalSampleRateHertz(int value)
The natural sample rate (in hertz) for this voice.
int32 natural_sample_rate_hertz = 4;
public Voice.Builder clearNaturalSampleRateHertz()
The natural sample rate (in hertz) for this voice.
int32 natural_sample_rate_hertz = 4;
public final Voice.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Voice.Builder>
public final Voice.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Voice.Builder>