Class ListClustersResponse.Builder (2.3.1)

public static final class ListClustersResponse.Builder extends GeneratedMessageV3.Builder<ListClustersResponse.Builder> implements ListClustersResponseOrBuilder

The list of all clusters in a project.

Protobuf type google.cloud.dataproc.v1.ListClustersResponse

Methods

addAllClusters(Iterable<? extends Cluster> values)

public ListClustersResponse.Builder addAllClusters(Iterable<? extends Cluster> values)

Output only. The clusters in the project.

repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.dataproc.v1.Cluster>
Returns
TypeDescription
ListClustersResponse.Builder

addClusters(Cluster value)

public ListClustersResponse.Builder addClusters(Cluster value)

Output only. The clusters in the project.

repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueCluster
Returns
TypeDescription
ListClustersResponse.Builder

addClusters(Cluster.Builder builderForValue)

public ListClustersResponse.Builder addClusters(Cluster.Builder builderForValue)

Output only. The clusters in the project.

repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueCluster.Builder
Returns
TypeDescription
ListClustersResponse.Builder

addClusters(int index, Cluster value)

public ListClustersResponse.Builder addClusters(int index, Cluster value)

Output only. The clusters in the project.

repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
valueCluster
Returns
TypeDescription
ListClustersResponse.Builder

addClusters(int index, Cluster.Builder builderForValue)

public ListClustersResponse.Builder addClusters(int index, Cluster.Builder builderForValue)

Output only. The clusters in the project.

repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
builderForValueCluster.Builder
Returns
TypeDescription
ListClustersResponse.Builder

addClustersBuilder()

public Cluster.Builder addClustersBuilder()

Output only. The clusters in the project.

repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Cluster.Builder

addClustersBuilder(int index)

public Cluster.Builder addClustersBuilder(int index)

Output only. The clusters in the project.

repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
Cluster.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListClustersResponse build()
Returns
TypeDescription
ListClustersResponse

buildPartial()

public ListClustersResponse buildPartial()
Returns
TypeDescription
ListClustersResponse

clear()

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

clearClusters()

public ListClustersResponse.Builder clearClusters()

Output only. The clusters in the project.

repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ListClustersResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListClustersResponse.Builder clearNextPageToken()

Output only. This token is included in the response if there are more results to fetch. To fetch additional results, provide this value as the page_token in a subsequent ListClustersRequest.

string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ListClustersResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getClusters(int index)

public Cluster getClusters(int index)

Output only. The clusters in the project.

repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
Cluster

getClustersBuilder(int index)

public Cluster.Builder getClustersBuilder(int index)

Output only. The clusters in the project.

repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
Cluster.Builder

getClustersBuilderList()

public List<Cluster.Builder> getClustersBuilderList()

Output only. The clusters in the project.

repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<Builder>

getClustersCount()

public int getClustersCount()

Output only. The clusters in the project.

repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

getClustersList()

public List<Cluster> getClustersList()

Output only. The clusters in the project.

repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<Cluster>

getClustersOrBuilder(int index)

public ClusterOrBuilder getClustersOrBuilder(int index)

Output only. The clusters in the project.

repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
ClusterOrBuilder

getClustersOrBuilderList()

public List<? extends ClusterOrBuilder> getClustersOrBuilderList()

Output only. The clusters in the project.

repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

getDefaultInstanceForType()

public ListClustersResponse getDefaultInstanceForType()
Returns
TypeDescription
ListClustersResponse

getDescriptor()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

Output only. This token is included in the response if there are more results to fetch. To fetch additional results, provide this value as the page_token in a subsequent ListClustersRequest.

string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Output only. This token is included in the response if there are more results to fetch. To fetch additional results, provide this value as the page_token in a subsequent ListClustersRequest.

string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

public ListClustersResponse.Builder mergeFrom(ListClustersResponse other)
Parameter
NameDescription
otherListClustersResponse
Returns
TypeDescription
ListClustersResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeClusters(int index)

public ListClustersResponse.Builder removeClusters(int index)

Output only. The clusters in the project.

repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
ListClustersResponse.Builder

setClusters(int index, Cluster value)

public ListClustersResponse.Builder setClusters(int index, Cluster value)

Output only. The clusters in the project.

repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
valueCluster
Returns
TypeDescription
ListClustersResponse.Builder

setClusters(int index, Cluster.Builder builderForValue)

public ListClustersResponse.Builder setClusters(int index, Cluster.Builder builderForValue)

Output only. The clusters in the project.

repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
builderForValueCluster.Builder
Returns
TypeDescription
ListClustersResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListClustersResponse.Builder setNextPageToken(String value)

Output only. This token is included in the response if there are more results to fetch. To fetch additional results, provide this value as the page_token in a subsequent ListClustersRequest.

string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListClustersResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListClustersResponse.Builder setNextPageTokenBytes(ByteString value)

Output only. This token is included in the response if there are more results to fetch. To fetch additional results, provide this value as the page_token in a subsequent ListClustersRequest.

string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListClustersResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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