Class ListVoicesResponse (2.41.0)

public final class ListVoicesResponse extends GeneratedMessageV3 implements ListVoicesResponseOrBuilder

The message returned to the client by the ListVoices method.

Protobuf type google.cloud.texttospeech.v1.ListVoicesResponse

Static Fields

VOICES_FIELD_NUMBER

public static final int VOICES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ListVoicesResponse getDefaultInstance()
Returns
TypeDescription
ListVoicesResponse

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ListVoicesResponse.Builder newBuilder()
Returns
TypeDescription
ListVoicesResponse.Builder

newBuilder(ListVoicesResponse prototype)

public static ListVoicesResponse.Builder newBuilder(ListVoicesResponse prototype)
Parameter
NameDescription
prototypeListVoicesResponse
Returns
TypeDescription
ListVoicesResponse.Builder

parseDelimitedFrom(InputStream input)

public static ListVoicesResponse parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ListVoicesResponse
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ListVoicesResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListVoicesResponse
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ListVoicesResponse parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ListVoicesResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ListVoicesResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListVoicesResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ListVoicesResponse parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ListVoicesResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ListVoicesResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListVoicesResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ListVoicesResponse parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ListVoicesResponse
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ListVoicesResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListVoicesResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ListVoicesResponse parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ListVoicesResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ListVoicesResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListVoicesResponse
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ListVoicesResponse parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ListVoicesResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ListVoicesResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListVoicesResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ListVoicesResponse> parser()
Returns
TypeDescription
Parser<ListVoicesResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public ListVoicesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListVoicesResponse

getParserForType()

public Parser<ListVoicesResponse> getParserForType()
Returns
TypeDescription
Parser<ListVoicesResponse>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getVoices(int index)

public Voice getVoices(int index)

The list of voices.

repeated .google.cloud.texttospeech.v1.Voice voices = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Voice

getVoicesCount()

public int getVoicesCount()

The list of voices.

repeated .google.cloud.texttospeech.v1.Voice voices = 1;

Returns
TypeDescription
int

getVoicesList()

public List<Voice> getVoicesList()

The list of voices.

repeated .google.cloud.texttospeech.v1.Voice voices = 1;

Returns
TypeDescription
List<Voice>

getVoicesOrBuilder(int index)

public VoiceOrBuilder getVoicesOrBuilder(int index)

The list of voices.

repeated .google.cloud.texttospeech.v1.Voice voices = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
VoiceOrBuilder

getVoicesOrBuilderList()

public List<? extends VoiceOrBuilder> getVoicesOrBuilderList()

The list of voices.

repeated .google.cloud.texttospeech.v1.Voice voices = 1;

Returns
TypeDescription
List<? extends com.google.cloud.texttospeech.v1.VoiceOrBuilder>

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ListVoicesResponse.Builder newBuilderForType()
Returns
TypeDescription
ListVoicesResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ListVoicesResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ListVoicesResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ListVoicesResponse.Builder toBuilder()
Returns
TypeDescription
ListVoicesResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException