public static final class Cluster.Builder extends GeneratedMessageV3.Builder<Cluster.Builder> implements ClusterOrBuilder
Describes the identifying information, config, and status of a cluster of Google Compute Engine instances.Protobuf type
google.cloud.dataproc.v1.Cluster
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField
in class GeneratedMessageV3.Builder<Cluster.Builder>
protected MapField internalGetMutableMapField(int number)
internalGetMutableMapField
in class GeneratedMessageV3.Builder<Cluster.Builder>
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<Cluster.Builder>
public Cluster.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Cluster.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Cluster.Builder>
public Cluster getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Cluster build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Cluster buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Cluster.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Cluster.Builder>
public Cluster.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Cluster.Builder>
public Cluster.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Cluster.Builder>
public Cluster.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<Cluster.Builder>
public Cluster.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Cluster.Builder>
public Cluster.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Cluster.Builder>
public Cluster.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Cluster.Builder>
public Cluster.Builder mergeFrom(Cluster other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Cluster.Builder>
public Cluster.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Cluster.Builder>
java.io.IOException
public java.lang.String getProjectId()
Required. The Google Cloud Platform project ID that the cluster belongs to.
string project_id = 1;
getProjectId
in interface ClusterOrBuilder
public ByteString getProjectIdBytes()
Required. The Google Cloud Platform project ID that the cluster belongs to.
string project_id = 1;
getProjectIdBytes
in interface ClusterOrBuilder
public Cluster.Builder setProjectId(java.lang.String value)
Required. The Google Cloud Platform project ID that the cluster belongs to.
string project_id = 1;
public Cluster.Builder clearProjectId()
Required. The Google Cloud Platform project ID that the cluster belongs to.
string project_id = 1;
public Cluster.Builder setProjectIdBytes(ByteString value)
Required. The Google Cloud Platform project ID that the cluster belongs to.
string project_id = 1;
public java.lang.String getClusterName()
Required. The cluster name. Cluster names within a project must be unique. Names of deleted clusters can be reused.
string cluster_name = 2;
getClusterName
in interface ClusterOrBuilder
public ByteString getClusterNameBytes()
Required. The cluster name. Cluster names within a project must be unique. Names of deleted clusters can be reused.
string cluster_name = 2;
getClusterNameBytes
in interface ClusterOrBuilder
public Cluster.Builder setClusterName(java.lang.String value)
Required. The cluster name. Cluster names within a project must be unique. Names of deleted clusters can be reused.
string cluster_name = 2;
public Cluster.Builder clearClusterName()
Required. The cluster name. Cluster names within a project must be unique. Names of deleted clusters can be reused.
string cluster_name = 2;
public Cluster.Builder setClusterNameBytes(ByteString value)
Required. The cluster name. Cluster names within a project must be unique. Names of deleted clusters can be reused.
string cluster_name = 2;
public boolean hasConfig()
Required. The cluster config. Note that Cloud Dataproc may set default values, and values may change when clusters are updated.
.google.cloud.dataproc.v1.ClusterConfig config = 3;
hasConfig
in interface ClusterOrBuilder
public ClusterConfig getConfig()
Required. The cluster config. Note that Cloud Dataproc may set default values, and values may change when clusters are updated.
.google.cloud.dataproc.v1.ClusterConfig config = 3;
getConfig
in interface ClusterOrBuilder
public Cluster.Builder setConfig(ClusterConfig value)
Required. The cluster config. Note that Cloud Dataproc may set default values, and values may change when clusters are updated.
.google.cloud.dataproc.v1.ClusterConfig config = 3;
public Cluster.Builder setConfig(ClusterConfig.Builder builderForValue)
Required. The cluster config. Note that Cloud Dataproc may set default values, and values may change when clusters are updated.
.google.cloud.dataproc.v1.ClusterConfig config = 3;
public Cluster.Builder mergeConfig(ClusterConfig value)
Required. The cluster config. Note that Cloud Dataproc may set default values, and values may change when clusters are updated.
.google.cloud.dataproc.v1.ClusterConfig config = 3;
public Cluster.Builder clearConfig()
Required. The cluster config. Note that Cloud Dataproc may set default values, and values may change when clusters are updated.
.google.cloud.dataproc.v1.ClusterConfig config = 3;
public ClusterConfig.Builder getConfigBuilder()
Required. The cluster config. Note that Cloud Dataproc may set default values, and values may change when clusters are updated.
.google.cloud.dataproc.v1.ClusterConfig config = 3;
public ClusterConfigOrBuilder getConfigOrBuilder()
Required. The cluster config. Note that Cloud Dataproc may set default values, and values may change when clusters are updated.
.google.cloud.dataproc.v1.ClusterConfig config = 3;
getConfigOrBuilder
in interface ClusterOrBuilder
public int getLabelsCount()
ClusterOrBuilder
Optional. The labels to associate with this cluster. Label **keys** must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). Label **values** may be empty, but, if present, must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a cluster.
map<string, string> labels = 8;
getLabelsCount
in interface ClusterOrBuilder
public boolean containsLabels(java.lang.String key)
Optional. The labels to associate with this cluster. Label **keys** must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). Label **values** may be empty, but, if present, must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a cluster.
map<string, string> labels = 8;
containsLabels
in interface ClusterOrBuilder
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getLabels()
getLabelsMap()
instead.getLabels
in interface ClusterOrBuilder
public java.util.Map<java.lang.String,java.lang.String> getLabelsMap()
Optional. The labels to associate with this cluster. Label **keys** must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). Label **values** may be empty, but, if present, must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a cluster.
map<string, string> labels = 8;
getLabelsMap
in interface ClusterOrBuilder
public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue)
Optional. The labels to associate with this cluster. Label **keys** must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). Label **values** may be empty, but, if present, must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a cluster.
map<string, string> labels = 8;
getLabelsOrDefault
in interface ClusterOrBuilder
public java.lang.String getLabelsOrThrow(java.lang.String key)
Optional. The labels to associate with this cluster. Label **keys** must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). Label **values** may be empty, but, if present, must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a cluster.
map<string, string> labels = 8;
getLabelsOrThrow
in interface ClusterOrBuilder
public Cluster.Builder clearLabels()
public Cluster.Builder removeLabels(java.lang.String key)
Optional. The labels to associate with this cluster. Label **keys** must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). Label **values** may be empty, but, if present, must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a cluster.
map<string, string> labels = 8;
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getMutableLabels()
public Cluster.Builder putLabels(java.lang.String key, java.lang.String value)
Optional. The labels to associate with this cluster. Label **keys** must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). Label **values** may be empty, but, if present, must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a cluster.
map<string, string> labels = 8;
public Cluster.Builder putAllLabels(java.util.Map<java.lang.String,java.lang.String> values)
Optional. The labels to associate with this cluster. Label **keys** must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). Label **values** may be empty, but, if present, must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a cluster.
map<string, string> labels = 8;
public boolean hasStatus()
Output-only. Cluster status.
.google.cloud.dataproc.v1.ClusterStatus status = 4;
hasStatus
in interface ClusterOrBuilder
public ClusterStatus getStatus()
Output-only. Cluster status.
.google.cloud.dataproc.v1.ClusterStatus status = 4;
getStatus
in interface ClusterOrBuilder
public Cluster.Builder setStatus(ClusterStatus value)
Output-only. Cluster status.
.google.cloud.dataproc.v1.ClusterStatus status = 4;
public Cluster.Builder setStatus(ClusterStatus.Builder builderForValue)
Output-only. Cluster status.
.google.cloud.dataproc.v1.ClusterStatus status = 4;
public Cluster.Builder mergeStatus(ClusterStatus value)
Output-only. Cluster status.
.google.cloud.dataproc.v1.ClusterStatus status = 4;
public Cluster.Builder clearStatus()
Output-only. Cluster status.
.google.cloud.dataproc.v1.ClusterStatus status = 4;
public ClusterStatus.Builder getStatusBuilder()
Output-only. Cluster status.
.google.cloud.dataproc.v1.ClusterStatus status = 4;
public ClusterStatusOrBuilder getStatusOrBuilder()
Output-only. Cluster status.
.google.cloud.dataproc.v1.ClusterStatus status = 4;
getStatusOrBuilder
in interface ClusterOrBuilder
public java.util.List<ClusterStatus> getStatusHistoryList()
Output-only. The previous cluster status.
repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7;
getStatusHistoryList
in interface ClusterOrBuilder
public int getStatusHistoryCount()
Output-only. The previous cluster status.
repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7;
getStatusHistoryCount
in interface ClusterOrBuilder
public ClusterStatus getStatusHistory(int index)
Output-only. The previous cluster status.
repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7;
getStatusHistory
in interface ClusterOrBuilder
public Cluster.Builder setStatusHistory(int index, ClusterStatus value)
Output-only. The previous cluster status.
repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7;
public Cluster.Builder setStatusHistory(int index, ClusterStatus.Builder builderForValue)
Output-only. The previous cluster status.
repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7;
public Cluster.Builder addStatusHistory(ClusterStatus value)
Output-only. The previous cluster status.
repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7;
public Cluster.Builder addStatusHistory(int index, ClusterStatus value)
Output-only. The previous cluster status.
repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7;
public Cluster.Builder addStatusHistory(ClusterStatus.Builder builderForValue)
Output-only. The previous cluster status.
repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7;
public Cluster.Builder addStatusHistory(int index, ClusterStatus.Builder builderForValue)
Output-only. The previous cluster status.
repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7;
public Cluster.Builder addAllStatusHistory(java.lang.Iterable<? extends ClusterStatus> values)
Output-only. The previous cluster status.
repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7;
public Cluster.Builder clearStatusHistory()
Output-only. The previous cluster status.
repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7;
public Cluster.Builder removeStatusHistory(int index)
Output-only. The previous cluster status.
repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7;
public ClusterStatus.Builder getStatusHistoryBuilder(int index)
Output-only. The previous cluster status.
repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7;
public ClusterStatusOrBuilder getStatusHistoryOrBuilder(int index)
Output-only. The previous cluster status.
repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7;
getStatusHistoryOrBuilder
in interface ClusterOrBuilder
public java.util.List<? extends ClusterStatusOrBuilder> getStatusHistoryOrBuilderList()
Output-only. The previous cluster status.
repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7;
getStatusHistoryOrBuilderList
in interface ClusterOrBuilder
public ClusterStatus.Builder addStatusHistoryBuilder()
Output-only. The previous cluster status.
repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7;
public ClusterStatus.Builder addStatusHistoryBuilder(int index)
Output-only. The previous cluster status.
repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7;
public java.util.List<ClusterStatus.Builder> getStatusHistoryBuilderList()
Output-only. The previous cluster status.
repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7;
public java.lang.String getClusterUuid()
Output-only. A cluster UUID (Unique Universal Identifier). Cloud Dataproc generates this value when it creates the cluster.
string cluster_uuid = 6;
getClusterUuid
in interface ClusterOrBuilder
public ByteString getClusterUuidBytes()
Output-only. A cluster UUID (Unique Universal Identifier). Cloud Dataproc generates this value when it creates the cluster.
string cluster_uuid = 6;
getClusterUuidBytes
in interface ClusterOrBuilder
public Cluster.Builder setClusterUuid(java.lang.String value)
Output-only. A cluster UUID (Unique Universal Identifier). Cloud Dataproc generates this value when it creates the cluster.
string cluster_uuid = 6;
public Cluster.Builder clearClusterUuid()
Output-only. A cluster UUID (Unique Universal Identifier). Cloud Dataproc generates this value when it creates the cluster.
string cluster_uuid = 6;
public Cluster.Builder setClusterUuidBytes(ByteString value)
Output-only. A cluster UUID (Unique Universal Identifier). Cloud Dataproc generates this value when it creates the cluster.
string cluster_uuid = 6;
public boolean hasMetrics()
Contains cluster daemon metrics such as HDFS and YARN stats. **Beta Feature**: This report is available for testing purposes only. It may be changed before final release.
.google.cloud.dataproc.v1.ClusterMetrics metrics = 9;
hasMetrics
in interface ClusterOrBuilder
public ClusterMetrics getMetrics()
Contains cluster daemon metrics such as HDFS and YARN stats. **Beta Feature**: This report is available for testing purposes only. It may be changed before final release.
.google.cloud.dataproc.v1.ClusterMetrics metrics = 9;
getMetrics
in interface ClusterOrBuilder
public Cluster.Builder setMetrics(ClusterMetrics value)
Contains cluster daemon metrics such as HDFS and YARN stats. **Beta Feature**: This report is available for testing purposes only. It may be changed before final release.
.google.cloud.dataproc.v1.ClusterMetrics metrics = 9;
public Cluster.Builder setMetrics(ClusterMetrics.Builder builderForValue)
Contains cluster daemon metrics such as HDFS and YARN stats. **Beta Feature**: This report is available for testing purposes only. It may be changed before final release.
.google.cloud.dataproc.v1.ClusterMetrics metrics = 9;
public Cluster.Builder mergeMetrics(ClusterMetrics value)
Contains cluster daemon metrics such as HDFS and YARN stats. **Beta Feature**: This report is available for testing purposes only. It may be changed before final release.
.google.cloud.dataproc.v1.ClusterMetrics metrics = 9;
public Cluster.Builder clearMetrics()
Contains cluster daemon metrics such as HDFS and YARN stats. **Beta Feature**: This report is available for testing purposes only. It may be changed before final release.
.google.cloud.dataproc.v1.ClusterMetrics metrics = 9;
public ClusterMetrics.Builder getMetricsBuilder()
Contains cluster daemon metrics such as HDFS and YARN stats. **Beta Feature**: This report is available for testing purposes only. It may be changed before final release.
.google.cloud.dataproc.v1.ClusterMetrics metrics = 9;
public ClusterMetricsOrBuilder getMetricsOrBuilder()
Contains cluster daemon metrics such as HDFS and YARN stats. **Beta Feature**: This report is available for testing purposes only. It may be changed before final release.
.google.cloud.dataproc.v1.ClusterMetrics metrics = 9;
getMetricsOrBuilder
in interface ClusterOrBuilder
public final Cluster.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Cluster.Builder>
public final Cluster.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Cluster.Builder>