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, unknownFields
memoizedSize
memoizedHashCode
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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public 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 MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
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 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 int getSsmlGenderValue()
The gender of this voice.
.google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3;
getSsmlGenderValue
in interface VoiceOrBuilder
public SsmlVoiceGender getSsmlGender()
The gender of this voice.
.google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3;
getSsmlGender
in interface VoiceOrBuilder
public int getNaturalSampleRateHertz()
The natural sample rate (in hertz) for this voice.
int32 natural_sample_rate_hertz = 4;
getNaturalSampleRateHertz
in interface VoiceOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static Voice parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Voice parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Voice parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Voice parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Voice parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Voice parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Voice parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Voice parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Voice parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Voice parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Voice parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Voice parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public Voice.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static Voice.Builder newBuilder()
public static Voice.Builder newBuilder(Voice prototype)
public Voice.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected Voice.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static Voice getDefaultInstance()
public Parser<Voice> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public Voice getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder