Class ListDataItemsResponse.Builder (0.168.0)

public static final class ListDataItemsResponse.Builder extends GeneratedMessageV3.Builder<ListDataItemsResponse.Builder> implements ListDataItemsResponseOrBuilder

Results of listing data items in a dataset.

Protobuf type google.cloud.datalabeling.v1beta1.ListDataItemsResponse

Static Methods

getDescriptor()

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

Methods

addAllDataItems(Iterable<? extends DataItem> values)

public ListDataItemsResponse.Builder addAllDataItems(Iterable<? extends DataItem> values)

The list of data items to return.

repeated .google.cloud.datalabeling.v1beta1.DataItem data_items = 1;

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

addDataItems(DataItem value)

public ListDataItemsResponse.Builder addDataItems(DataItem value)

The list of data items to return.

repeated .google.cloud.datalabeling.v1beta1.DataItem data_items = 1;

Parameter
Name Description
value DataItem
Returns
Type Description
ListDataItemsResponse.Builder

addDataItems(DataItem.Builder builderForValue)

public ListDataItemsResponse.Builder addDataItems(DataItem.Builder builderForValue)

The list of data items to return.

repeated .google.cloud.datalabeling.v1beta1.DataItem data_items = 1;

Parameter
Name Description
builderForValue DataItem.Builder
Returns
Type Description
ListDataItemsResponse.Builder

addDataItems(int index, DataItem value)

public ListDataItemsResponse.Builder addDataItems(int index, DataItem value)

The list of data items to return.

repeated .google.cloud.datalabeling.v1beta1.DataItem data_items = 1;

Parameters
Name Description
index int
value DataItem
Returns
Type Description
ListDataItemsResponse.Builder

addDataItems(int index, DataItem.Builder builderForValue)

public ListDataItemsResponse.Builder addDataItems(int index, DataItem.Builder builderForValue)

The list of data items to return.

repeated .google.cloud.datalabeling.v1beta1.DataItem data_items = 1;

Parameters
Name Description
index int
builderForValue DataItem.Builder
Returns
Type Description
ListDataItemsResponse.Builder

addDataItemsBuilder()

public DataItem.Builder addDataItemsBuilder()

The list of data items to return.

repeated .google.cloud.datalabeling.v1beta1.DataItem data_items = 1;

Returns
Type Description
DataItem.Builder

addDataItemsBuilder(int index)

public DataItem.Builder addDataItemsBuilder(int index)

The list of data items to return.

repeated .google.cloud.datalabeling.v1beta1.DataItem data_items = 1;

Parameter
Name Description
index int
Returns
Type Description
DataItem.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListDataItemsResponse build()
Returns
Type Description
ListDataItemsResponse

buildPartial()

public ListDataItemsResponse buildPartial()
Returns
Type Description
ListDataItemsResponse

clear()

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

clearDataItems()

public ListDataItemsResponse.Builder clearDataItems()

The list of data items to return.

repeated .google.cloud.datalabeling.v1beta1.DataItem data_items = 1;

Returns
Type Description
ListDataItemsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListDataItemsResponse.Builder clearNextPageToken()

A token to retrieve next page of results.

string next_page_token = 2;

Returns
Type Description
ListDataItemsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDataItems(int index)

public DataItem getDataItems(int index)

The list of data items to return.

repeated .google.cloud.datalabeling.v1beta1.DataItem data_items = 1;

Parameter
Name Description
index int
Returns
Type Description
DataItem

getDataItemsBuilder(int index)

public DataItem.Builder getDataItemsBuilder(int index)

The list of data items to return.

repeated .google.cloud.datalabeling.v1beta1.DataItem data_items = 1;

Parameter
Name Description
index int
Returns
Type Description
DataItem.Builder

getDataItemsBuilderList()

public List<DataItem.Builder> getDataItemsBuilderList()

The list of data items to return.

repeated .google.cloud.datalabeling.v1beta1.DataItem data_items = 1;

Returns
Type Description
List<Builder>

getDataItemsCount()

public int getDataItemsCount()

The list of data items to return.

repeated .google.cloud.datalabeling.v1beta1.DataItem data_items = 1;

Returns
Type Description
int

getDataItemsList()

public List<DataItem> getDataItemsList()

The list of data items to return.

repeated .google.cloud.datalabeling.v1beta1.DataItem data_items = 1;

Returns
Type Description
List<DataItem>

getDataItemsOrBuilder(int index)

public DataItemOrBuilder getDataItemsOrBuilder(int index)

The list of data items to return.

repeated .google.cloud.datalabeling.v1beta1.DataItem data_items = 1;

Parameter
Name Description
index int
Returns
Type Description
DataItemOrBuilder

getDataItemsOrBuilderList()

public List<? extends DataItemOrBuilder> getDataItemsOrBuilderList()

The list of data items to return.

repeated .google.cloud.datalabeling.v1beta1.DataItem data_items = 1;

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

getDefaultInstanceForType()

public ListDataItemsResponse getDefaultInstanceForType()
Returns
Type Description
ListDataItemsResponse

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeDataItems(int index)

public ListDataItemsResponse.Builder removeDataItems(int index)

The list of data items to return.

repeated .google.cloud.datalabeling.v1beta1.DataItem data_items = 1;

Parameter
Name Description
index int
Returns
Type Description
ListDataItemsResponse.Builder

setDataItems(int index, DataItem value)

public ListDataItemsResponse.Builder setDataItems(int index, DataItem value)

The list of data items to return.

repeated .google.cloud.datalabeling.v1beta1.DataItem data_items = 1;

Parameters
Name Description
index int
value DataItem
Returns
Type Description
ListDataItemsResponse.Builder

setDataItems(int index, DataItem.Builder builderForValue)

public ListDataItemsResponse.Builder setDataItems(int index, DataItem.Builder builderForValue)

The list of data items to return.

repeated .google.cloud.datalabeling.v1beta1.DataItem data_items = 1;

Parameters
Name Description
index int
builderForValue DataItem.Builder
Returns
Type Description
ListDataItemsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListDataItemsResponse.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
ListDataItemsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListDataItemsResponse.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
ListDataItemsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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