public final class Voice extends GeneratedMessageV3 implements VoiceOrBuilder
Description of a voice supported by the TTS service.Protobuf type
google.cloud.texttospeech.v1.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, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
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(Object obj) |
static Voice |
getDefaultInstance() |
Voice |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
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.
|
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) |
protected Object |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) |
static Voice |
parseDelimitedFrom(InputStream input) |
static Voice |
parseDelimitedFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Voice |
parseFrom(byte[] data) |
static Voice |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static Voice |
parseFrom(ByteBuffer data) |
static Voice |
parseFrom(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(InputStream input) |
static Voice |
parseFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<Voice> |
parser() |
Voice.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, 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
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
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 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 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.v1.SsmlVoiceGender ssml_gender = 3;
getSsmlGenderValue
in interface VoiceOrBuilder
public SsmlVoiceGender getSsmlGender()
The gender of this voice.
.google.cloud.texttospeech.v1.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 IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(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(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Voice parseFrom(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(InputStream input) throws IOException
IOException
public static Voice parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Voice parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Voice parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Voice parseFrom(CodedInputStream input) throws IOException
IOException
public static Voice parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
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
Copyright © 2022 Google LLC. All rights reserved.