Class ListBatchesResponse.Builder (4.24.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.dataproc.v1.Batch>
Returns
TypeDescription
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
NameDescription
valueBatch
Returns
TypeDescription
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
NameDescription
builderForValueBatch.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueBatch
Returns
TypeDescription
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
NameDescription
indexint
builderForValueBatch.Builder
Returns
TypeDescription
ListBatchesResponse.Builder

addBatchesBuilder()

public Batch.Builder addBatchesBuilder()

The batches from the specified collection.

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

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListBatchesResponse build()
Returns
TypeDescription
ListBatchesResponse

buildPartial()

public ListBatchesResponse buildPartial()
Returns
TypeDescription
ListBatchesResponse

clear()

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

clearBatches()

public ListBatchesResponse.Builder clearBatches()

The batches from the specified collection.

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

Returns
TypeDescription
ListBatchesResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public ListBatchesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ListBatchesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getBatchesBuilderList()

public List<Batch.Builder> getBatchesBuilderList()

The batches from the specified collection.

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

Returns
TypeDescription
List<Builder>

getBatchesCount()

public int getBatchesCount()

The batches from the specified collection.

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

Returns
TypeDescription
int

getBatchesList()

public List<Batch> getBatchesList()

The batches from the specified collection.

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

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

getBatchesOrBuilderList()

public List<? extends BatchOrBuilder> getBatchesOrBuilderList()

The batches from the specified collection.

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

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

getDefaultInstanceForType()

public ListBatchesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListBatchesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
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(ListBatchesResponse other)

public ListBatchesResponse.Builder mergeFrom(ListBatchesResponse other)
Parameter
NameDescription
otherListBatchesResponse
Returns
TypeDescription
ListBatchesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListBatchesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueBatch
Returns
TypeDescription
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
NameDescription
indexint
builderForValueBatch.Builder
Returns
TypeDescription
ListBatchesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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