Class ListAnnotationSpecSetsResponse.Builder (0.172.0)

public static final class ListAnnotationSpecSetsResponse.Builder extends GeneratedMessageV3.Builder<ListAnnotationSpecSetsResponse.Builder> implements ListAnnotationSpecSetsResponseOrBuilder

Results of listing annotation spec set under a project.

Protobuf type google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse

Static Methods

getDescriptor()

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

Methods

addAllAnnotationSpecSets(Iterable<? extends AnnotationSpecSet> values)

public ListAnnotationSpecSetsResponse.Builder addAllAnnotationSpecSets(Iterable<? extends AnnotationSpecSet> values)

The list of annotation spec sets.

repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet>
Returns
Type Description
ListAnnotationSpecSetsResponse.Builder

addAnnotationSpecSets(AnnotationSpecSet value)

public ListAnnotationSpecSetsResponse.Builder addAnnotationSpecSets(AnnotationSpecSet value)

The list of annotation spec sets.

repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1;

Parameter
Name Description
value AnnotationSpecSet
Returns
Type Description
ListAnnotationSpecSetsResponse.Builder

addAnnotationSpecSets(AnnotationSpecSet.Builder builderForValue)

public ListAnnotationSpecSetsResponse.Builder addAnnotationSpecSets(AnnotationSpecSet.Builder builderForValue)

The list of annotation spec sets.

repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1;

Parameter
Name Description
builderForValue AnnotationSpecSet.Builder
Returns
Type Description
ListAnnotationSpecSetsResponse.Builder

addAnnotationSpecSets(int index, AnnotationSpecSet value)

public ListAnnotationSpecSetsResponse.Builder addAnnotationSpecSets(int index, AnnotationSpecSet value)

The list of annotation spec sets.

repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1;

Parameters
Name Description
index int
value AnnotationSpecSet
Returns
Type Description
ListAnnotationSpecSetsResponse.Builder

addAnnotationSpecSets(int index, AnnotationSpecSet.Builder builderForValue)

public ListAnnotationSpecSetsResponse.Builder addAnnotationSpecSets(int index, AnnotationSpecSet.Builder builderForValue)

The list of annotation spec sets.

repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1;

Parameters
Name Description
index int
builderForValue AnnotationSpecSet.Builder
Returns
Type Description
ListAnnotationSpecSetsResponse.Builder

addAnnotationSpecSetsBuilder()

public AnnotationSpecSet.Builder addAnnotationSpecSetsBuilder()

The list of annotation spec sets.

repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1;

Returns
Type Description
AnnotationSpecSet.Builder

addAnnotationSpecSetsBuilder(int index)

public AnnotationSpecSet.Builder addAnnotationSpecSetsBuilder(int index)

The list of annotation spec sets.

repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1;

Parameter
Name Description
index int
Returns
Type Description
AnnotationSpecSet.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListAnnotationSpecSetsResponse build()
Returns
Type Description
ListAnnotationSpecSetsResponse

buildPartial()

public ListAnnotationSpecSetsResponse buildPartial()
Returns
Type Description
ListAnnotationSpecSetsResponse

clear()

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

clearAnnotationSpecSets()

public ListAnnotationSpecSetsResponse.Builder clearAnnotationSpecSets()

The list of annotation spec sets.

repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1;

Returns
Type Description
ListAnnotationSpecSetsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListAnnotationSpecSetsResponse.Builder clearNextPageToken()

A token to retrieve next page of results.

string next_page_token = 2;

Returns
Type Description
ListAnnotationSpecSetsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAnnotationSpecSets(int index)

public AnnotationSpecSet getAnnotationSpecSets(int index)

The list of annotation spec sets.

repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1;

Parameter
Name Description
index int
Returns
Type Description
AnnotationSpecSet

getAnnotationSpecSetsBuilder(int index)

public AnnotationSpecSet.Builder getAnnotationSpecSetsBuilder(int index)

The list of annotation spec sets.

repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1;

Parameter
Name Description
index int
Returns
Type Description
AnnotationSpecSet.Builder

getAnnotationSpecSetsBuilderList()

public List<AnnotationSpecSet.Builder> getAnnotationSpecSetsBuilderList()

The list of annotation spec sets.

repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1;

Returns
Type Description
List<Builder>

getAnnotationSpecSetsCount()

public int getAnnotationSpecSetsCount()

The list of annotation spec sets.

repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1;

Returns
Type Description
int

getAnnotationSpecSetsList()

public List<AnnotationSpecSet> getAnnotationSpecSetsList()

The list of annotation spec sets.

repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1;

Returns
Type Description
List<AnnotationSpecSet>

getAnnotationSpecSetsOrBuilder(int index)

public AnnotationSpecSetOrBuilder getAnnotationSpecSetsOrBuilder(int index)

The list of annotation spec sets.

repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1;

Parameter
Name Description
index int
Returns
Type Description
AnnotationSpecSetOrBuilder

getAnnotationSpecSetsOrBuilderList()

public List<? extends AnnotationSpecSetOrBuilder> getAnnotationSpecSetsOrBuilderList()

The list of annotation spec sets.

repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1;

Returns
Type Description
List<? extends com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder>

getDefaultInstanceForType()

public ListAnnotationSpecSetsResponse getDefaultInstanceForType()
Returns
Type Description
ListAnnotationSpecSetsResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

A token to retrieve next page of results.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token to retrieve next page of results.

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(ListAnnotationSpecSetsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeAnnotationSpecSets(int index)

public ListAnnotationSpecSetsResponse.Builder removeAnnotationSpecSets(int index)

The list of annotation spec sets.

repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1;

Parameter
Name Description
index int
Returns
Type Description
ListAnnotationSpecSetsResponse.Builder

setAnnotationSpecSets(int index, AnnotationSpecSet value)

public ListAnnotationSpecSetsResponse.Builder setAnnotationSpecSets(int index, AnnotationSpecSet value)

The list of annotation spec sets.

repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1;

Parameters
Name Description
index int
value AnnotationSpecSet
Returns
Type Description
ListAnnotationSpecSetsResponse.Builder

setAnnotationSpecSets(int index, AnnotationSpecSet.Builder builderForValue)

public ListAnnotationSpecSetsResponse.Builder setAnnotationSpecSets(int index, AnnotationSpecSet.Builder builderForValue)

The list of annotation spec sets.

repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1;

Parameters
Name Description
index int
builderForValue AnnotationSpecSet.Builder
Returns
Type Description
ListAnnotationSpecSetsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListAnnotationSpecSetsResponse.Builder setNextPageToken(String value)

A token to retrieve next page of results.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListAnnotationSpecSetsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListAnnotationSpecSetsResponse.Builder setNextPageTokenBytes(ByteString value)

A token to retrieve next page of results.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListAnnotationSpecSetsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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