Class ListCustomClassesResponse.Builder (2.2.15)

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

Message returned to the client by the ListCustomClasses method.

Protobuf type google.cloud.speech.v1p1beta1.ListCustomClassesResponse

Static Methods

getDescriptor()

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

Methods

addAllCustomClasses(Iterable<? extends CustomClass> values)

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

The custom classes.

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

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.speech.v1p1beta1.CustomClass>
Returns
TypeDescription
ListCustomClassesResponse.Builder

addCustomClasses(CustomClass value)

public ListCustomClassesResponse.Builder addCustomClasses(CustomClass value)

The custom classes.

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

Parameter
NameDescription
valueCustomClass
Returns
TypeDescription
ListCustomClassesResponse.Builder

addCustomClasses(CustomClass.Builder builderForValue)

public ListCustomClassesResponse.Builder addCustomClasses(CustomClass.Builder builderForValue)

The custom classes.

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

Parameter
NameDescription
builderForValueCustomClass.Builder
Returns
TypeDescription
ListCustomClassesResponse.Builder

addCustomClasses(int index, CustomClass value)

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

The custom classes.

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

Parameters
NameDescription
indexint
valueCustomClass
Returns
TypeDescription
ListCustomClassesResponse.Builder

addCustomClasses(int index, CustomClass.Builder builderForValue)

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

The custom classes.

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

Parameters
NameDescription
indexint
builderForValueCustomClass.Builder
Returns
TypeDescription
ListCustomClassesResponse.Builder

addCustomClassesBuilder()

public CustomClass.Builder addCustomClassesBuilder()

The custom classes.

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

Returns
TypeDescription
CustomClass.Builder

addCustomClassesBuilder(int index)

public CustomClass.Builder addCustomClassesBuilder(int index)

The custom classes.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
CustomClass.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListCustomClassesResponse build()
Returns
TypeDescription
ListCustomClassesResponse

buildPartial()

public ListCustomClassesResponse buildPartial()
Returns
TypeDescription
ListCustomClassesResponse

clear()

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

clearCustomClasses()

public ListCustomClassesResponse.Builder clearCustomClasses()

The custom classes.

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

Returns
TypeDescription
ListCustomClassesResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public ListCustomClassesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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.

string next_page_token = 2;

Returns
TypeDescription
ListCustomClassesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCustomClasses(int index)

public CustomClass getCustomClasses(int index)

The custom classes.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
CustomClass

getCustomClassesBuilder(int index)

public CustomClass.Builder getCustomClassesBuilder(int index)

The custom classes.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
CustomClass.Builder

getCustomClassesBuilderList()

public List<CustomClass.Builder> getCustomClassesBuilderList()

The custom classes.

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

Returns
TypeDescription
List<Builder>

getCustomClassesCount()

public int getCustomClassesCount()

The custom classes.

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

Returns
TypeDescription
int

getCustomClassesList()

public List<CustomClass> getCustomClassesList()

The custom classes.

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

Returns
TypeDescription
List<CustomClass>

getCustomClassesOrBuilder(int index)

public CustomClassOrBuilder getCustomClassesOrBuilder(int index)

The custom classes.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
CustomClassOrBuilder

getCustomClassesOrBuilderList()

public List<? extends CustomClassOrBuilder> getCustomClassesOrBuilderList()

The custom classes.

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

Returns
TypeDescription
List<? extends com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder>

getDefaultInstanceForType()

public ListCustomClassesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListCustomClassesResponse

getDescriptorForType()

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

string next_page_token = 2;

Returns
TypeDescription
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.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListCustomClassesResponse other)

public ListCustomClassesResponse.Builder mergeFrom(ListCustomClassesResponse other)
Parameter
NameDescription
otherListCustomClassesResponse
Returns
TypeDescription
ListCustomClassesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeCustomClasses(int index)

public ListCustomClassesResponse.Builder removeCustomClasses(int index)

The custom classes.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ListCustomClassesResponse.Builder

setCustomClasses(int index, CustomClass value)

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

The custom classes.

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

Parameters
NameDescription
indexint
valueCustomClass
Returns
TypeDescription
ListCustomClassesResponse.Builder

setCustomClasses(int index, CustomClass.Builder builderForValue)

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

The custom classes.

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

Parameters
NameDescription
indexint
builderForValueCustomClass.Builder
Returns
TypeDescription
ListCustomClassesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListCustomClassesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
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.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListCustomClassesResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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