Class ListVoicesResponse.Builder (2.44.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.v1beta1.ListVoicesResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllVoices(Iterable<? extends Voice> values)

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

The list of voices.

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

Parameter
Name Description
values Iterable<? extends com.google.cloud.texttospeech.v1beta1.Voice>
Returns
Type Description
ListVoicesResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListVoicesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListVoicesResponse.Builder
Overrides

addVoices(Voice value)

public ListVoicesResponse.Builder addVoices(Voice value)

The list of voices.

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

Parameter
Name Description
value Voice
Returns
Type Description
ListVoicesResponse.Builder

addVoices(Voice.Builder builderForValue)

public ListVoicesResponse.Builder addVoices(Voice.Builder builderForValue)

The list of voices.

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

Parameter
Name Description
builderForValue Voice.Builder
Returns
Type Description
ListVoicesResponse.Builder

addVoices(int index, Voice value)

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

The list of voices.

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

Parameters
Name Description
index int
value Voice
Returns
Type Description
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.v1beta1.Voice voices = 1;

Parameters
Name Description
index int
builderForValue Voice.Builder
Returns
Type Description
ListVoicesResponse.Builder

addVoicesBuilder()

public Voice.Builder addVoicesBuilder()

The list of voices.

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

Returns
Type Description
Voice.Builder

addVoicesBuilder(int index)

public Voice.Builder addVoicesBuilder(int index)

The list of voices.

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

Parameter
Name Description
index int
Returns
Type Description
Voice.Builder

build()

public ListVoicesResponse build()
Returns
Type Description
ListVoicesResponse

buildPartial()

public ListVoicesResponse buildPartial()
Returns
Type Description
ListVoicesResponse

clear()

public ListVoicesResponse.Builder clear()
Returns
Type Description
ListVoicesResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ListVoicesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListVoicesResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ListVoicesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ListVoicesResponse.Builder
Overrides

clearVoices()

public ListVoicesResponse.Builder clearVoices()

The list of voices.

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

Returns
Type Description
ListVoicesResponse.Builder

clone()

public ListVoicesResponse.Builder clone()
Returns
Type Description
ListVoicesResponse.Builder
Overrides

getDefaultInstanceForType()

public ListVoicesResponse getDefaultInstanceForType()
Returns
Type Description
ListVoicesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getVoices(int index)

public Voice getVoices(int index)

The list of voices.

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

Parameter
Name Description
index int
Returns
Type Description
Voice

getVoicesBuilder(int index)

public Voice.Builder getVoicesBuilder(int index)

The list of voices.

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

Parameter
Name Description
index int
Returns
Type Description
Voice.Builder

getVoicesBuilderList()

public List<Voice.Builder> getVoicesBuilderList()

The list of voices.

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

Returns
Type Description
List<Builder>

getVoicesCount()

public int getVoicesCount()

The list of voices.

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

Returns
Type Description
int

getVoicesList()

public List<Voice> getVoicesList()

The list of voices.

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

Returns
Type Description
List<Voice>

getVoicesOrBuilder(int index)

public VoiceOrBuilder getVoicesOrBuilder(int index)

The list of voices.

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

Parameter
Name Description
index int
Returns
Type Description
VoiceOrBuilder

getVoicesOrBuilderList()

public List<? extends VoiceOrBuilder> getVoicesOrBuilderList()

The list of voices.

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

Returns
Type Description
List<? extends com.google.cloud.texttospeech.v1beta1.VoiceOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListVoicesResponse other)

public ListVoicesResponse.Builder mergeFrom(ListVoicesResponse other)
Parameter
Name Description
other ListVoicesResponse
Returns
Type Description
ListVoicesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListVoicesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListVoicesResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ListVoicesResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ListVoicesResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListVoicesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListVoicesResponse.Builder
Overrides

removeVoices(int index)

public ListVoicesResponse.Builder removeVoices(int index)

The list of voices.

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

Parameter
Name Description
index int
Returns
Type Description
ListVoicesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListVoicesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListVoicesResponse.Builder
Overrides

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

public ListVoicesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListVoicesResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListVoicesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListVoicesResponse.Builder
Overrides

setVoices(int index, Voice value)

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

The list of voices.

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

Parameters
Name Description
index int
value Voice
Returns
Type Description
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.v1beta1.Voice voices = 1;

Parameters
Name Description
index int
builderForValue Voice.Builder
Returns
Type Description
ListVoicesResponse.Builder