Class ListDataItemsResponse.Builder (0.132.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.datalabeling.v1beta1.DataItem>
Returns
TypeDescription
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
NameDescription
valueDataItem
Returns
TypeDescription
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
NameDescription
builderForValueDataItem.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueDataItem
Returns
TypeDescription
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
NameDescription
indexint
builderForValueDataItem.Builder
Returns
TypeDescription
ListDataItemsResponse.Builder

addDataItemsBuilder()

public DataItem.Builder addDataItemsBuilder()

The list of data items to return.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
DataItem.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListDataItemsResponse build()
Returns
TypeDescription
ListDataItemsResponse

buildPartial()

public ListDataItemsResponse buildPartial()
Returns
TypeDescription
ListDataItemsResponse

clear()

public ListDataItemsResponse.Builder clear()
Returns
TypeDescription
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
TypeDescription
ListDataItemsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public ListDataItemsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ListDataItemsResponse.Builder
Overrides

clearNextPageToken()

public ListDataItemsResponse.Builder clearNextPageToken()

A token to retrieve next page of results.

string next_page_token = 2;

Returns
TypeDescription
ListDataItemsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public ListDataItemsResponse.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<Builder>

getDataItemsCount()

public int getDataItemsCount()

The list of data items to return.

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

Returns
TypeDescription
int

getDataItemsList()

public List<DataItem> getDataItemsList()

The list of data items to return.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
DataItemOrBuilder

getDataItemsOrBuilderList()

public List<? extends DataItemOrBuilder> getDataItemsOrBuilderList()

The list of data items to return.

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

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

getDefaultInstanceForType()

public ListDataItemsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListDataItemsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

A token to retrieve next page of results.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token to retrieve next page of results.

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

public ListDataItemsResponse.Builder mergeFrom(ListDataItemsResponse other)
Parameter
NameDescription
otherListDataItemsResponse
Returns
TypeDescription
ListDataItemsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListDataItemsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueDataItem
Returns
TypeDescription
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
NameDescription
indexint
builderForValueDataItem.Builder
Returns
TypeDescription
ListDataItemsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for nextPageToken to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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