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.ClustergetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic 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.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<Cluster.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<Cluster.Builder>public Cluster getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic Cluster build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic Cluster buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic Cluster.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<Cluster.Builder>public Cluster.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<Cluster.Builder>public Cluster.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<Cluster.Builder>public Cluster.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<Cluster.Builder>public Cluster.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<Cluster.Builder>public Cluster.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<Cluster.Builder>public Cluster.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<Cluster.Builder>public Cluster.Builder mergeFrom(Cluster other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<Cluster.Builder>public Cluster.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<Cluster.Builder>java.io.IOExceptionpublic java.lang.String getProjectId()
Required. The Google Cloud Platform project ID that the cluster belongs to.
string project_id = 1;getProjectId in interface ClusterOrBuilderpublic ByteString getProjectIdBytes()
Required. The Google Cloud Platform project ID that the cluster belongs to.
string project_id = 1;getProjectIdBytes in interface ClusterOrBuilderpublic 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 ClusterOrBuilderpublic 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 ClusterOrBuilderpublic 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 ClusterOrBuilderpublic 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 ClusterOrBuilderpublic 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 ClusterOrBuilderpublic int getLabelsCount()
ClusterOrBuilderOptional. 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 ClusterOrBuilderpublic 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 ClusterOrBuilderpublic 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 ClusterOrBuilderpublic 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 ClusterOrBuilderpublic 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 ClusterOrBuilderpublic 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 ClusterOrBuilderpublic ClusterStatus getStatus()
Output-only. Cluster status.
.google.cloud.dataproc.v1.ClusterStatus status = 4;getStatus in interface ClusterOrBuilderpublic 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 ClusterOrBuilderpublic java.util.List<ClusterStatus> getStatusHistoryList()
Output-only. The previous cluster status.
repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7;getStatusHistoryList in interface ClusterOrBuilderpublic int getStatusHistoryCount()
Output-only. The previous cluster status.
repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7;getStatusHistoryCount in interface ClusterOrBuilderpublic ClusterStatus getStatusHistory(int index)
Output-only. The previous cluster status.
repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7;getStatusHistory in interface ClusterOrBuilderpublic 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 ClusterOrBuilderpublic java.util.List<? extends ClusterStatusOrBuilder> getStatusHistoryOrBuilderList()
Output-only. The previous cluster status.
repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7;getStatusHistoryOrBuilderList in interface ClusterOrBuilderpublic 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 ClusterOrBuilderpublic 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 ClusterOrBuilderpublic 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 ClusterOrBuilderpublic 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 ClusterOrBuilderpublic 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 ClusterOrBuilderpublic final Cluster.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<Cluster.Builder>public final Cluster.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<Cluster.Builder>