Class ListCustomClassesResponse.Builder (4.47.0)

public static final class ListCustomClassesResponse.Builder extends GeneratedMessageV3.Builder<ListCustomClassesResponse.Builder> implements ListCustomClassesResponseOrBuilder

Response message for the ListCustomClasses method.

Protobuf type google.cloud.speech.v2.ListCustomClassesResponse

Static Methods

getDescriptor()

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

Methods

addAllCustomClasses(Iterable<? extends CustomClass> values)

public ListCustomClassesResponse.Builder addAllCustomClasses(Iterable<? extends CustomClass> values)

The list of requested CustomClasses.

repeated .google.cloud.speech.v2.CustomClass custom_classes = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.speech.v2.CustomClass>
Returns
Type Description
ListCustomClassesResponse.Builder

addCustomClasses(CustomClass value)

public ListCustomClassesResponse.Builder addCustomClasses(CustomClass value)

The list of requested CustomClasses.

repeated .google.cloud.speech.v2.CustomClass custom_classes = 1;

Parameter
Name Description
value CustomClass
Returns
Type Description
ListCustomClassesResponse.Builder

addCustomClasses(CustomClass.Builder builderForValue)

public ListCustomClassesResponse.Builder addCustomClasses(CustomClass.Builder builderForValue)

The list of requested CustomClasses.

repeated .google.cloud.speech.v2.CustomClass custom_classes = 1;

Parameter
Name Description
builderForValue CustomClass.Builder
Returns
Type Description
ListCustomClassesResponse.Builder

addCustomClasses(int index, CustomClass value)

public ListCustomClassesResponse.Builder addCustomClasses(int index, CustomClass value)

The list of requested CustomClasses.

repeated .google.cloud.speech.v2.CustomClass custom_classes = 1;

Parameters
Name Description
index int
value CustomClass
Returns
Type Description
ListCustomClassesResponse.Builder

addCustomClasses(int index, CustomClass.Builder builderForValue)

public ListCustomClassesResponse.Builder addCustomClasses(int index, CustomClass.Builder builderForValue)

The list of requested CustomClasses.

repeated .google.cloud.speech.v2.CustomClass custom_classes = 1;

Parameters
Name Description
index int
builderForValue CustomClass.Builder
Returns
Type Description
ListCustomClassesResponse.Builder

addCustomClassesBuilder()

public CustomClass.Builder addCustomClassesBuilder()

The list of requested CustomClasses.

repeated .google.cloud.speech.v2.CustomClass custom_classes = 1;

Returns
Type Description
CustomClass.Builder

addCustomClassesBuilder(int index)

public CustomClass.Builder addCustomClassesBuilder(int index)

The list of requested CustomClasses.

repeated .google.cloud.speech.v2.CustomClass custom_classes = 1;

Parameter
Name Description
index int
Returns
Type Description
CustomClass.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListCustomClassesResponse build()
Returns
Type Description
ListCustomClassesResponse

buildPartial()

public ListCustomClassesResponse buildPartial()
Returns
Type Description
ListCustomClassesResponse

clear()

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

clearCustomClasses()

public ListCustomClassesResponse.Builder clearCustomClasses()

The list of requested CustomClasses.

repeated .google.cloud.speech.v2.CustomClass custom_classes = 1;

Returns
Type Description
ListCustomClassesResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListCustomClassesResponse.Builder clearNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages. This token expires after 72 hours.

string next_page_token = 2;

Returns
Type Description
ListCustomClassesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCustomClasses(int index)

public CustomClass getCustomClasses(int index)

The list of requested CustomClasses.

repeated .google.cloud.speech.v2.CustomClass custom_classes = 1;

Parameter
Name Description
index int
Returns
Type Description
CustomClass

getCustomClassesBuilder(int index)

public CustomClass.Builder getCustomClassesBuilder(int index)

The list of requested CustomClasses.

repeated .google.cloud.speech.v2.CustomClass custom_classes = 1;

Parameter
Name Description
index int
Returns
Type Description
CustomClass.Builder

getCustomClassesBuilderList()

public List<CustomClass.Builder> getCustomClassesBuilderList()

The list of requested CustomClasses.

repeated .google.cloud.speech.v2.CustomClass custom_classes = 1;

Returns
Type Description
List<Builder>

getCustomClassesCount()

public int getCustomClassesCount()

The list of requested CustomClasses.

repeated .google.cloud.speech.v2.CustomClass custom_classes = 1;

Returns
Type Description
int

getCustomClassesList()

public List<CustomClass> getCustomClassesList()

The list of requested CustomClasses.

repeated .google.cloud.speech.v2.CustomClass custom_classes = 1;

Returns
Type Description
List<CustomClass>

getCustomClassesOrBuilder(int index)

public CustomClassOrBuilder getCustomClassesOrBuilder(int index)

The list of requested CustomClasses.

repeated .google.cloud.speech.v2.CustomClass custom_classes = 1;

Parameter
Name Description
index int
Returns
Type Description
CustomClassOrBuilder

getCustomClassesOrBuilderList()

public List<? extends CustomClassOrBuilder> getCustomClassesOrBuilderList()

The list of requested CustomClasses.

repeated .google.cloud.speech.v2.CustomClass custom_classes = 1;

Returns
Type Description
List<? extends com.google.cloud.speech.v2.CustomClassOrBuilder>

getDefaultInstanceForType()

public ListCustomClassesResponse getDefaultInstanceForType()
Returns
Type Description
ListCustomClassesResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages. This token expires after 72 hours.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages. This token expires after 72 hours.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListCustomClassesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeCustomClasses(int index)

public ListCustomClassesResponse.Builder removeCustomClasses(int index)

The list of requested CustomClasses.

repeated .google.cloud.speech.v2.CustomClass custom_classes = 1;

Parameter
Name Description
index int
Returns
Type Description
ListCustomClassesResponse.Builder

setCustomClasses(int index, CustomClass value)

public ListCustomClassesResponse.Builder setCustomClasses(int index, CustomClass value)

The list of requested CustomClasses.

repeated .google.cloud.speech.v2.CustomClass custom_classes = 1;

Parameters
Name Description
index int
value CustomClass
Returns
Type Description
ListCustomClassesResponse.Builder

setCustomClasses(int index, CustomClass.Builder builderForValue)

public ListCustomClassesResponse.Builder setCustomClasses(int index, CustomClass.Builder builderForValue)

The list of requested CustomClasses.

repeated .google.cloud.speech.v2.CustomClass custom_classes = 1;

Parameters
Name Description
index int
builderForValue CustomClass.Builder
Returns
Type Description
ListCustomClassesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListCustomClassesResponse.Builder setNextPageToken(String value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages. This token expires after 72 hours.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListCustomClassesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListCustomClassesResponse.Builder setNextPageTokenBytes(ByteString value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages. This token expires after 72 hours.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListCustomClassesResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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