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(Iterable<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(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,
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() |
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.
|
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,
Object value) |
Voice.Builder |
setLanguageCodes(int index,
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(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,
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, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
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, 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, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Voice.Builder>
public Voice.Builder addRepeatedField(Descriptors.FieldDescriptor field, 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 IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Voice.Builder>
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 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
index
- The index of the element to return.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
index
- The index of the value to return.public Voice.Builder setLanguageCodes(int index, 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;
index
- The index to set the value at.value
- The languageCodes to set.public Voice.Builder addLanguageCodes(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;
value
- The languageCodes to add.public Voice.Builder addAllLanguageCodes(Iterable<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;
values
- The languageCodes to add.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;
value
- The bytes of the languageCodes to add.public 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(String value)
The name of this voice. Each distinct voice has a unique name.
string name = 2;
value
- The name to set.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;
value
- The bytes for name to set.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;
value
- The enum numeric value on the wire for ssmlGender to set.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;
value
- The ssmlGender to set.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;
value
- The naturalSampleRateHertz to set.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>
Copyright © 2022 Google LLC. All rights reserved.