Class ListBatchesResponse.Builder (4.44.0)

public static final class ListBatchesResponse.Builder extends GeneratedMessageV3.Builder<ListBatchesResponse.Builder> implements ListBatchesResponseOrBuilder

A list of batch workloads.

Protobuf type google.cloud.dataproc.v1.ListBatchesResponse

Static Methods

getDescriptor()

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

Methods

addAllBatches(Iterable<? extends Batch> values)

public ListBatchesResponse.Builder addAllBatches(Iterable<? extends Batch> values)

The batches from the specified collection.

repeated .google.cloud.dataproc.v1.Batch batches = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.dataproc.v1.Batch>
Returns
Type Description
ListBatchesResponse.Builder

addBatches(Batch value)

public ListBatchesResponse.Builder addBatches(Batch value)

The batches from the specified collection.

repeated .google.cloud.dataproc.v1.Batch batches = 1;

Parameter
Name Description
value Batch
Returns
Type Description
ListBatchesResponse.Builder

addBatches(Batch.Builder builderForValue)

public ListBatchesResponse.Builder addBatches(Batch.Builder builderForValue)

The batches from the specified collection.

repeated .google.cloud.dataproc.v1.Batch batches = 1;

Parameter
Name Description
builderForValue Batch.Builder
Returns
Type Description
ListBatchesResponse.Builder

addBatches(int index, Batch value)

public ListBatchesResponse.Builder addBatches(int index, Batch value)

The batches from the specified collection.

repeated .google.cloud.dataproc.v1.Batch batches = 1;

Parameters
Name Description
index int
value Batch
Returns
Type Description
ListBatchesResponse.Builder

addBatches(int index, Batch.Builder builderForValue)

public ListBatchesResponse.Builder addBatches(int index, Batch.Builder builderForValue)

The batches from the specified collection.

repeated .google.cloud.dataproc.v1.Batch batches = 1;

Parameters
Name Description
index int
builderForValue Batch.Builder
Returns
Type Description
ListBatchesResponse.Builder

addBatchesBuilder()

public Batch.Builder addBatchesBuilder()

The batches from the specified collection.

repeated .google.cloud.dataproc.v1.Batch batches = 1;

Returns
Type Description
Batch.Builder

addBatchesBuilder(int index)

public Batch.Builder addBatchesBuilder(int index)

The batches from the specified collection.

repeated .google.cloud.dataproc.v1.Batch batches = 1;

Parameter
Name Description
index int
Returns
Type Description
Batch.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListBatchesResponse build()
Returns
Type Description
ListBatchesResponse

buildPartial()

public ListBatchesResponse buildPartial()
Returns
Type Description
ListBatchesResponse

clear()

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

clearBatches()

public ListBatchesResponse.Builder clearBatches()

The batches from the specified collection.

repeated .google.cloud.dataproc.v1.Batch batches = 1;

Returns
Type Description
ListBatchesResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListBatchesResponse.Builder clearNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
ListBatchesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getBatches(int index)

public Batch getBatches(int index)

The batches from the specified collection.

repeated .google.cloud.dataproc.v1.Batch batches = 1;

Parameter
Name Description
index int
Returns
Type Description
Batch

getBatchesBuilder(int index)

public Batch.Builder getBatchesBuilder(int index)

The batches from the specified collection.

repeated .google.cloud.dataproc.v1.Batch batches = 1;

Parameter
Name Description
index int
Returns
Type Description
Batch.Builder

getBatchesBuilderList()

public List<Batch.Builder> getBatchesBuilderList()

The batches from the specified collection.

repeated .google.cloud.dataproc.v1.Batch batches = 1;

Returns
Type Description
List<Builder>

getBatchesCount()

public int getBatchesCount()

The batches from the specified collection.

repeated .google.cloud.dataproc.v1.Batch batches = 1;

Returns
Type Description
int

getBatchesList()

public List<Batch> getBatchesList()

The batches from the specified collection.

repeated .google.cloud.dataproc.v1.Batch batches = 1;

Returns
Type Description
List<Batch>

getBatchesOrBuilder(int index)

public BatchOrBuilder getBatchesOrBuilder(int index)

The batches from the specified collection.

repeated .google.cloud.dataproc.v1.Batch batches = 1;

Parameter
Name Description
index int
Returns
Type Description
BatchOrBuilder

getBatchesOrBuilderList()

public List<? extends BatchOrBuilder> getBatchesOrBuilderList()

The batches from the specified collection.

repeated .google.cloud.dataproc.v1.Batch batches = 1;

Returns
Type Description
List<? extends com.google.cloud.dataproc.v1.BatchOrBuilder>

getDefaultInstanceForType()

public ListBatchesResponse getDefaultInstanceForType()
Returns
Type Description
ListBatchesResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeBatches(int index)

public ListBatchesResponse.Builder removeBatches(int index)

The batches from the specified collection.

repeated .google.cloud.dataproc.v1.Batch batches = 1;

Parameter
Name Description
index int
Returns
Type Description
ListBatchesResponse.Builder

setBatches(int index, Batch value)

public ListBatchesResponse.Builder setBatches(int index, Batch value)

The batches from the specified collection.

repeated .google.cloud.dataproc.v1.Batch batches = 1;

Parameters
Name Description
index int
value Batch
Returns
Type Description
ListBatchesResponse.Builder

setBatches(int index, Batch.Builder builderForValue)

public ListBatchesResponse.Builder setBatches(int index, Batch.Builder builderForValue)

The batches from the specified collection.

repeated .google.cloud.dataproc.v1.Batch batches = 1;

Parameters
Name Description
index int
builderForValue Batch.Builder
Returns
Type Description
ListBatchesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListBatchesResponse.Builder setNextPageToken(String value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListBatchesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListBatchesResponse.Builder setNextPageTokenBytes(ByteString value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListBatchesResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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