public final class Voice extends GeneratedMessageV3 implements VoiceOrBuilder
Description of a voice supported by the TTS service.Protobuf type
google.cloud.texttospeech.v1beta1.Voice| Modifier and Type | Class and Description |
|---|---|
static class |
Voice.Builder
Description of a voice supported by the TTS service.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
LANGUAGE_CODES_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
NATURAL_SAMPLE_RATE_HERTZ_FIELD_NUMBER |
static int |
SSML_GENDER_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCode| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
static Voice |
getDefaultInstance() |
Voice |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
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.
|
Parser<Voice> |
getParserForType() |
int |
getSerializedSize() |
SsmlVoiceGender |
getSsmlGender()
The gender of this voice.
|
int |
getSsmlGenderValue()
The gender of this voice.
|
UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Voice.Builder |
newBuilder() |
static Voice.Builder |
newBuilder(Voice prototype) |
Voice.Builder |
newBuilderForType() |
protected Voice.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static Voice |
parseDelimitedFrom(java.io.InputStream input) |
static Voice |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Voice |
parseFrom(byte[] data) |
static Voice |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static Voice |
parseFrom(java.nio.ByteBuffer data) |
static Voice |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static Voice |
parseFrom(ByteString data) |
static Voice |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static Voice |
parseFrom(CodedInputStream input) |
static Voice |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static Voice |
parseFrom(java.io.InputStream input) |
static Voice |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<Voice> |
parser() |
Voice.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int LANGUAGE_CODES_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
public static final int SSML_GENDER_FIELD_NUMBER
public static final int NATURAL_SAMPLE_RATE_HERTZ_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public 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 VoiceOrBuilderpublic 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 VoiceOrBuilderpublic 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 VoiceOrBuilderpublic 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 VoiceOrBuilderpublic java.lang.String getName()
The name of this voice. Each distinct voice has a unique name.
string name = 2;getName in interface VoiceOrBuilderpublic ByteString getNameBytes()
The name of this voice. Each distinct voice has a unique name.
string name = 2;getNameBytes in interface VoiceOrBuilderpublic int getSsmlGenderValue()
The gender of this voice.
.google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3;getSsmlGenderValue in interface VoiceOrBuilderpublic SsmlVoiceGender getSsmlGender()
The gender of this voice.
.google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3;getSsmlGender in interface VoiceOrBuilderpublic int getNaturalSampleRateHertz()
The natural sample rate (in hertz) for this voice.
int32 natural_sample_rate_hertz = 4;getNaturalSampleRateHertz in interface VoiceOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static Voice parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Voice parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Voice parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Voice parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Voice parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Voice parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Voice parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Voice parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Voice parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Voice parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Voice parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Voice parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Voice.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static Voice.Builder newBuilder()
public static Voice.Builder newBuilder(Voice prototype)
public Voice.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected Voice.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static Voice getDefaultInstance()
public Parser<Voice> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public Voice getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder