Class ListDatasetsResponse.Builder (2.35.0)

public static final class ListDatasetsResponse.Builder extends GeneratedMessageV3.Builder<ListDatasetsResponse.Builder> implements ListDatasetsResponseOrBuilder

Response message for AutoMl.ListDatasets.

Protobuf type google.cloud.automl.v1beta1.ListDatasetsResponse

Static Methods

getDescriptor()

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

Methods

addAllDatasets(Iterable<? extends Dataset> values)

public ListDatasetsResponse.Builder addAllDatasets(Iterable<? extends Dataset> values)

The datasets read.

repeated .google.cloud.automl.v1beta1.Dataset datasets = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.automl.v1beta1.Dataset>
Returns
TypeDescription
ListDatasetsResponse.Builder

addDatasets(Dataset value)

public ListDatasetsResponse.Builder addDatasets(Dataset value)

The datasets read.

repeated .google.cloud.automl.v1beta1.Dataset datasets = 1;

Parameter
NameDescription
valueDataset
Returns
TypeDescription
ListDatasetsResponse.Builder

addDatasets(Dataset.Builder builderForValue)

public ListDatasetsResponse.Builder addDatasets(Dataset.Builder builderForValue)

The datasets read.

repeated .google.cloud.automl.v1beta1.Dataset datasets = 1;

Parameter
NameDescription
builderForValueDataset.Builder
Returns
TypeDescription
ListDatasetsResponse.Builder

addDatasets(int index, Dataset value)

public ListDatasetsResponse.Builder addDatasets(int index, Dataset value)

The datasets read.

repeated .google.cloud.automl.v1beta1.Dataset datasets = 1;

Parameters
NameDescription
indexint
valueDataset
Returns
TypeDescription
ListDatasetsResponse.Builder

addDatasets(int index, Dataset.Builder builderForValue)

public ListDatasetsResponse.Builder addDatasets(int index, Dataset.Builder builderForValue)

The datasets read.

repeated .google.cloud.automl.v1beta1.Dataset datasets = 1;

Parameters
NameDescription
indexint
builderForValueDataset.Builder
Returns
TypeDescription
ListDatasetsResponse.Builder

addDatasetsBuilder()

public Dataset.Builder addDatasetsBuilder()

The datasets read.

repeated .google.cloud.automl.v1beta1.Dataset datasets = 1;

Returns
TypeDescription
Dataset.Builder

addDatasetsBuilder(int index)

public Dataset.Builder addDatasetsBuilder(int index)

The datasets read.

repeated .google.cloud.automl.v1beta1.Dataset datasets = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Dataset.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListDatasetsResponse build()
Returns
TypeDescription
ListDatasetsResponse

buildPartial()

public ListDatasetsResponse buildPartial()
Returns
TypeDescription
ListDatasetsResponse

clear()

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

clearDatasets()

public ListDatasetsResponse.Builder clearDatasets()

The datasets read.

repeated .google.cloud.automl.v1beta1.Dataset datasets = 1;

Returns
TypeDescription
ListDatasetsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListDatasetsResponse.Builder clearNextPageToken()

A token to retrieve next page of results. Pass to ListDatasetsRequest.page_token to obtain that page.

string next_page_token = 2;

Returns
TypeDescription
ListDatasetsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDatasets(int index)

public Dataset getDatasets(int index)

The datasets read.

repeated .google.cloud.automl.v1beta1.Dataset datasets = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Dataset

getDatasetsBuilder(int index)

public Dataset.Builder getDatasetsBuilder(int index)

The datasets read.

repeated .google.cloud.automl.v1beta1.Dataset datasets = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Dataset.Builder

getDatasetsBuilderList()

public List<Dataset.Builder> getDatasetsBuilderList()

The datasets read.

repeated .google.cloud.automl.v1beta1.Dataset datasets = 1;

Returns
TypeDescription
List<Builder>

getDatasetsCount()

public int getDatasetsCount()

The datasets read.

repeated .google.cloud.automl.v1beta1.Dataset datasets = 1;

Returns
TypeDescription
int

getDatasetsList()

public List<Dataset> getDatasetsList()

The datasets read.

repeated .google.cloud.automl.v1beta1.Dataset datasets = 1;

Returns
TypeDescription
List<Dataset>

getDatasetsOrBuilder(int index)

public DatasetOrBuilder getDatasetsOrBuilder(int index)

The datasets read.

repeated .google.cloud.automl.v1beta1.Dataset datasets = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
DatasetOrBuilder

getDatasetsOrBuilderList()

public List<? extends DatasetOrBuilder> getDatasetsOrBuilderList()

The datasets read.

repeated .google.cloud.automl.v1beta1.Dataset datasets = 1;

Returns
TypeDescription
List<? extends com.google.cloud.automl.v1beta1.DatasetOrBuilder>

getDefaultInstanceForType()

public ListDatasetsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListDatasetsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

A token to retrieve next page of results. Pass to ListDatasetsRequest.page_token to obtain that page.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token to retrieve next page of results. Pass to ListDatasetsRequest.page_token to obtain that page.

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

public ListDatasetsResponse.Builder mergeFrom(ListDatasetsResponse other)
Parameter
NameDescription
otherListDatasetsResponse
Returns
TypeDescription
ListDatasetsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeDatasets(int index)

public ListDatasetsResponse.Builder removeDatasets(int index)

The datasets read.

repeated .google.cloud.automl.v1beta1.Dataset datasets = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListDatasetsResponse.Builder

setDatasets(int index, Dataset value)

public ListDatasetsResponse.Builder setDatasets(int index, Dataset value)

The datasets read.

repeated .google.cloud.automl.v1beta1.Dataset datasets = 1;

Parameters
NameDescription
indexint
valueDataset
Returns
TypeDescription
ListDatasetsResponse.Builder

setDatasets(int index, Dataset.Builder builderForValue)

public ListDatasetsResponse.Builder setDatasets(int index, Dataset.Builder builderForValue)

The datasets read.

repeated .google.cloud.automl.v1beta1.Dataset datasets = 1;

Parameters
NameDescription
indexint
builderForValueDataset.Builder
Returns
TypeDescription
ListDatasetsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListDatasetsResponse.Builder setNextPageToken(String value)

A token to retrieve next page of results. Pass to ListDatasetsRequest.page_token to obtain that page.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListDatasetsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListDatasetsResponse.Builder setNextPageTokenBytes(ByteString value)

A token to retrieve next page of results. Pass to ListDatasetsRequest.page_token to obtain that page.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListDatasetsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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