Class ListAnnotatedDatasetsResponse.Builder (0.126.0)

public static final class ListAnnotatedDatasetsResponse.Builder extends GeneratedMessageV3.Builder<ListAnnotatedDatasetsResponse.Builder> implements ListAnnotatedDatasetsResponseOrBuilder

Results of listing annotated datasets for a dataset.

Protobuf type google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

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

Methods

addAllAnnotatedDatasets(Iterable<? extends AnnotatedDataset> values)

public ListAnnotatedDatasetsResponse.Builder addAllAnnotatedDatasets(Iterable<? extends AnnotatedDataset> values)

The list of annotated datasets to return.

repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.datalabeling.v1beta1.AnnotatedDataset>
Returns

addAnnotatedDatasets(AnnotatedDataset value)

public ListAnnotatedDatasetsResponse.Builder addAnnotatedDatasets(AnnotatedDataset value)

The list of annotated datasets to return.

repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1;

Parameter
NameDescription
valueAnnotatedDataset
Returns

addAnnotatedDatasets(AnnotatedDataset.Builder builderForValue)

public ListAnnotatedDatasetsResponse.Builder addAnnotatedDatasets(AnnotatedDataset.Builder builderForValue)

The list of annotated datasets to return.

repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1;

Parameter
NameDescription
builderForValueAnnotatedDataset.Builder
Returns

addAnnotatedDatasets(int index, AnnotatedDataset value)

public ListAnnotatedDatasetsResponse.Builder addAnnotatedDatasets(int index, AnnotatedDataset value)

The list of annotated datasets to return.

repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1;

Parameters
NameDescription
indexint
valueAnnotatedDataset
Returns

addAnnotatedDatasets(int index, AnnotatedDataset.Builder builderForValue)

public ListAnnotatedDatasetsResponse.Builder addAnnotatedDatasets(int index, AnnotatedDataset.Builder builderForValue)

The list of annotated datasets to return.

repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1;

Parameters
NameDescription
indexint
builderForValueAnnotatedDataset.Builder
Returns

addAnnotatedDatasetsBuilder()

public AnnotatedDataset.Builder addAnnotatedDatasetsBuilder()

The list of annotated datasets to return.

repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1;

Returns

addAnnotatedDatasetsBuilder(int index)

public AnnotatedDataset.Builder addAnnotatedDatasetsBuilder(int index)

The list of annotated datasets to return.

repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1;

Parameter
NameDescription
indexint
Returns

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListAnnotatedDatasetsResponse build()
Returns

buildPartial()

public ListAnnotatedDatasetsResponse buildPartial()
Returns

clear()

public ListAnnotatedDatasetsResponse.Builder clear()
Returns Overrides

clearAnnotatedDatasets()

public ListAnnotatedDatasetsResponse.Builder clearAnnotatedDatasets()

The list of annotated datasets to return.

repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1;

Returns

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListAnnotatedDatasetsResponse.Builder clearNextPageToken()

A token to retrieve next page of results.

string next_page_token = 2;

Returns
TypeDescription
ListAnnotatedDatasetsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public ListAnnotatedDatasetsResponse.Builder clone()
Returns Overrides

getAnnotatedDatasets(int index)

public AnnotatedDataset getAnnotatedDatasets(int index)

The list of annotated datasets to return.

repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
AnnotatedDataset

getAnnotatedDatasetsBuilder(int index)

public AnnotatedDataset.Builder getAnnotatedDatasetsBuilder(int index)

The list of annotated datasets to return.

repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1;

Parameter
NameDescription
indexint
Returns

getAnnotatedDatasetsBuilderList()

public List<AnnotatedDataset.Builder> getAnnotatedDatasetsBuilderList()

The list of annotated datasets to return.

repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1;

Returns
TypeDescription
List<Builder>

getAnnotatedDatasetsCount()

public int getAnnotatedDatasetsCount()

The list of annotated datasets to return.

repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1;

Returns
TypeDescription
int

getAnnotatedDatasetsList()

public List<AnnotatedDataset> getAnnotatedDatasetsList()

The list of annotated datasets to return.

repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1;

Returns
TypeDescription
List<AnnotatedDataset>

getAnnotatedDatasetsOrBuilder(int index)

public AnnotatedDatasetOrBuilder getAnnotatedDatasetsOrBuilder(int index)

The list of annotated datasets to return.

repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1;

Parameter
NameDescription
indexint
Returns

getAnnotatedDatasetsOrBuilderList()

public List<? extends AnnotatedDatasetOrBuilder> getAnnotatedDatasetsOrBuilderList()

The list of annotated datasets to return.

repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1;

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

getDefaultInstanceForType()

public ListAnnotatedDatasetsResponse getDefaultInstanceForType()
Returns

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

public ListAnnotatedDatasetsResponse.Builder mergeFrom(ListAnnotatedDatasetsResponse other)
Parameter
NameDescription
otherListAnnotatedDatasetsResponse
Returns

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeAnnotatedDatasets(int index)

public ListAnnotatedDatasetsResponse.Builder removeAnnotatedDatasets(int index)

The list of annotated datasets to return.

repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1;

Parameter
NameDescription
indexint
Returns

setAnnotatedDatasets(int index, AnnotatedDataset value)

public ListAnnotatedDatasetsResponse.Builder setAnnotatedDatasets(int index, AnnotatedDataset value)

The list of annotated datasets to return.

repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1;

Parameters
NameDescription
indexint
valueAnnotatedDataset
Returns

setAnnotatedDatasets(int index, AnnotatedDataset.Builder builderForValue)

public ListAnnotatedDatasetsResponse.Builder setAnnotatedDatasets(int index, AnnotatedDataset.Builder builderForValue)

The list of annotated datasets to return.

repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1;

Parameters
NameDescription
indexint
builderForValueAnnotatedDataset.Builder
Returns

setField(Descriptors.FieldDescriptor field, Object value)

public ListAnnotatedDatasetsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns Overrides

setNextPageToken(String value)

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

This builder for chaining.

setNextPageTokenBytes(ByteString value)

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

This builder for chaining.

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

public ListAnnotatedDatasetsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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