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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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 |
Name |
Description |
values |
Iterable<? extends com.google.cloud.texttospeech.v1.Voice>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListVoicesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
addVoices(Voice value)
public ListVoicesResponse.Builder addVoices(Voice value)
The list of voices.
repeated .google.cloud.texttospeech.v1.Voice voices = 1;
Parameter |
Name |
Description |
value |
Voice
|
addVoices(Voice.Builder builderForValue)
public ListVoicesResponse.Builder addVoices(Voice.Builder builderForValue)
The list of voices.
repeated .google.cloud.texttospeech.v1.Voice voices = 1;
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 |
Name |
Description |
index |
int
|
value |
Voice
|
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;
addVoicesBuilder()
public Voice.Builder addVoicesBuilder()
The list of voices.
repeated .google.cloud.texttospeech.v1.Voice voices = 1;
addVoicesBuilder(int index)
public Voice.Builder addVoicesBuilder(int index)
The list of voices.
repeated .google.cloud.texttospeech.v1.Voice voices = 1;
Parameter |
Name |
Description |
index |
int
|
build()
public ListVoicesResponse build()
buildPartial()
public ListVoicesResponse buildPartial()
clear()
public ListVoicesResponse.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public ListVoicesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ListVoicesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearVoices()
public ListVoicesResponse.Builder clearVoices()
The list of voices.
repeated .google.cloud.texttospeech.v1.Voice voices = 1;
clone()
public ListVoicesResponse.Builder clone()
Overrides
getDefaultInstanceForType()
public ListVoicesResponse getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getVoices(int index)
public Voice getVoices(int index)
The list of voices.
repeated .google.cloud.texttospeech.v1.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.v1.Voice voices = 1;
Parameter |
Name |
Description |
index |
int
|
getVoicesBuilderList()
public List<Voice.Builder> getVoicesBuilderList()
The list of voices.
repeated .google.cloud.texttospeech.v1.Voice voices = 1;
getVoicesCount()
public int getVoicesCount()
The list of voices.
repeated .google.cloud.texttospeech.v1.Voice voices = 1;
Returns |
Type |
Description |
int |
|
getVoicesList()
public List<Voice> getVoicesList()
The list of voices.
repeated .google.cloud.texttospeech.v1.Voice voices = 1;
getVoicesOrBuilder(int index)
public VoiceOrBuilder getVoicesOrBuilder(int index)
The list of voices.
repeated .google.cloud.texttospeech.v1.Voice voices = 1;
Parameter |
Name |
Description |
index |
int
|
getVoicesOrBuilderList()
public List<? extends VoiceOrBuilder> getVoicesOrBuilderList()
The list of voices.
repeated .google.cloud.texttospeech.v1.Voice voices = 1;
Returns |
Type |
Description |
List<? extends com.google.cloud.texttospeech.v1.VoiceOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ListVoicesResponse other)
public ListVoicesResponse.Builder mergeFrom(ListVoicesResponse other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ListVoicesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ListVoicesResponse.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListVoicesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeVoices(int index)
public ListVoicesResponse.Builder removeVoices(int index)
The list of voices.
repeated .google.cloud.texttospeech.v1.Voice voices = 1;
Parameter |
Name |
Description |
index |
int
|
setField(Descriptors.FieldDescriptor field, Object value)
public ListVoicesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListVoicesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ListVoicesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
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 |
Name |
Description |
index |
int
|
value |
Voice
|
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;