Class ListVoicesResponse.Builder (2.40.0)

public static final class ListVoicesResponse.Builder extends GeneratedMessageV3.Builder<ListVoicesResponse.Builder> implements ListVoicesResponseOrBuilder

The message returned to the client by the ListVoices method.

Protobuf type google.cloud.texttospeech.v1.ListVoicesResponse

Static Methods

getDescriptor()

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

Methods

addAllVoices(Iterable<? extends Voice> values)

public ListVoicesResponse.Builder addAllVoices(Iterable<? extends Voice> values)

The list of voices.

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

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.texttospeech.v1.Voice>
Returns
TypeDescription
ListVoicesResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListVoicesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListVoicesResponse.Builder
Overrides

addVoices(Voice value)

public ListVoicesResponse.Builder addVoices(Voice value)

The list of voices.

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

Parameter
NameDescription
valueVoice
Returns
TypeDescription
ListVoicesResponse.Builder

addVoices(Voice.Builder builderForValue)

public ListVoicesResponse.Builder addVoices(Voice.Builder builderForValue)

The list of voices.

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

Parameter
NameDescription
builderForValueVoice.Builder
Returns
TypeDescription
ListVoicesResponse.Builder

addVoices(int index, Voice value)

public ListVoicesResponse.Builder addVoices(int index, Voice value)

The list of voices.

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

Parameters
NameDescription
indexint
valueVoice
Returns
TypeDescription
ListVoicesResponse.Builder

addVoices(int index, Voice.Builder builderForValue)

public ListVoicesResponse.Builder addVoices(int index, Voice.Builder builderForValue)

The list of voices.

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

Parameters
NameDescription
indexint
builderForValueVoice.Builder
Returns
TypeDescription
ListVoicesResponse.Builder

addVoicesBuilder()

public Voice.Builder addVoicesBuilder()

The list of voices.

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

Returns
TypeDescription
Voice.Builder

addVoicesBuilder(int index)

public Voice.Builder addVoicesBuilder(int index)

The list of voices.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Voice.Builder

build()

public ListVoicesResponse build()
Returns
TypeDescription
ListVoicesResponse

buildPartial()

public ListVoicesResponse buildPartial()
Returns
TypeDescription
ListVoicesResponse

clear()

public ListVoicesResponse.Builder clear()
Returns
TypeDescription
ListVoicesResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ListVoicesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ListVoicesResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ListVoicesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ListVoicesResponse.Builder
Overrides

clearVoices()

public ListVoicesResponse.Builder clearVoices()

The list of voices.

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

Returns
TypeDescription
ListVoicesResponse.Builder

clone()

public ListVoicesResponse.Builder clone()
Returns
TypeDescription
ListVoicesResponse.Builder
Overrides

getDefaultInstanceForType()

public ListVoicesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListVoicesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
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

getVoicesBuilder(int index)

public Voice.Builder getVoicesBuilder(int index)

The list of voices.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Voice.Builder

getVoicesBuilderList()

public List<Voice.Builder> getVoicesBuilderList()

The list of voices.

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

Returns
TypeDescription
List<Builder>

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>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListVoicesResponse other)

public ListVoicesResponse.Builder mergeFrom(ListVoicesResponse other)
Parameter
NameDescription
otherListVoicesResponse
Returns
TypeDescription
ListVoicesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListVoicesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListVoicesResponse.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ListVoicesResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ListVoicesResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListVoicesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListVoicesResponse.Builder
Overrides

removeVoices(int index)

public ListVoicesResponse.Builder removeVoices(int index)

The list of voices.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ListVoicesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListVoicesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListVoicesResponse.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ListVoicesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListVoicesResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListVoicesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListVoicesResponse.Builder
Overrides

setVoices(int index, Voice value)

public ListVoicesResponse.Builder setVoices(int index, Voice value)

The list of voices.

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

Parameters
NameDescription
indexint
valueVoice
Returns
TypeDescription
ListVoicesResponse.Builder

setVoices(int index, Voice.Builder builderForValue)

public ListVoicesResponse.Builder setVoices(int index, Voice.Builder builderForValue)

The list of voices.

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

Parameters
NameDescription
indexint
builderForValueVoice.Builder
Returns
TypeDescription
ListVoicesResponse.Builder