public final class Cluster extends GeneratedMessageV3 implements ClusterOrBuilder
Describes the identifying information, config, and status of a Dataproc clusterProtobuf type
google.cloud.dataproc.v1.Cluster
Modifier and Type | Class and Description |
---|---|
static class |
Cluster.Builder
Describes the identifying information, config, and status of
a Dataproc cluster
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
CLUSTER_NAME_FIELD_NUMBER |
static int |
CLUSTER_UUID_FIELD_NUMBER |
static int |
CONFIG_FIELD_NUMBER |
static int |
LABELS_FIELD_NUMBER |
static int |
METRICS_FIELD_NUMBER |
static int |
PROJECT_ID_FIELD_NUMBER |
static int |
STATUS_FIELD_NUMBER |
static int |
STATUS_HISTORY_FIELD_NUMBER |
static int |
VIRTUAL_CLUSTER_CONFIG_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int PROJECT_ID_FIELD_NUMBER
public static final int CLUSTER_NAME_FIELD_NUMBER
public static final int CONFIG_FIELD_NUMBER
public static final int VIRTUAL_CLUSTER_CONFIG_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER
public static final int STATUS_HISTORY_FIELD_NUMBER
public static final int CLUSTER_UUID_FIELD_NUMBER
public static final int METRICS_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField
in class GeneratedMessageV3
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public String getProjectId()
Required. The Google Cloud Platform project ID that the cluster belongs to.
string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
getProjectId
in interface ClusterOrBuilder
public ByteString getProjectIdBytes()
Required. The Google Cloud Platform project ID that the cluster belongs to.
string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
getProjectIdBytes
in interface ClusterOrBuilder
public 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 [(.google.api.field_behavior) = REQUIRED];
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 [(.google.api.field_behavior) = REQUIRED];
getClusterNameBytes
in interface ClusterOrBuilder
public boolean hasConfig()
Optional. The cluster config for a cluster of Compute Engine Instances. Note that Dataproc may set default values, and values may change when clusters are updated.
.google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL];
hasConfig
in interface ClusterOrBuilder
public ClusterConfig getConfig()
Optional. The cluster config for a cluster of Compute Engine Instances. Note that Dataproc may set default values, and values may change when clusters are updated.
.google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL];
getConfig
in interface ClusterOrBuilder
public ClusterConfigOrBuilder getConfigOrBuilder()
Optional. The cluster config for a cluster of Compute Engine Instances. Note that Dataproc may set default values, and values may change when clusters are updated.
.google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL];
getConfigOrBuilder
in interface ClusterOrBuilder
public boolean hasVirtualClusterConfig()
Optional. The virtual cluster config, used when creating a Dataproc cluster that does not directly control the underlying compute resources, for example, when creating a [Dataproc-on-GKE cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster). Note that Dataproc may set default values, and values may change when clusters are updated. Exactly one of config or virtualClusterConfig must be specified.
.google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL];
hasVirtualClusterConfig
in interface ClusterOrBuilder
public VirtualClusterConfig getVirtualClusterConfig()
Optional. The virtual cluster config, used when creating a Dataproc cluster that does not directly control the underlying compute resources, for example, when creating a [Dataproc-on-GKE cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster). Note that Dataproc may set default values, and values may change when clusters are updated. Exactly one of config or virtualClusterConfig must be specified.
.google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL];
getVirtualClusterConfig
in interface ClusterOrBuilder
public VirtualClusterConfigOrBuilder getVirtualClusterConfigOrBuilder()
Optional. The virtual cluster config, used when creating a Dataproc cluster that does not directly control the underlying compute resources, for example, when creating a [Dataproc-on-GKE cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster). Note that Dataproc may set default values, and values may change when clusters are updated. Exactly one of config or virtualClusterConfig must be specified.
.google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL];
getVirtualClusterConfigOrBuilder
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 [(.google.api.field_behavior) = OPTIONAL];
getLabelsCount
in interface ClusterOrBuilder
public boolean containsLabels(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 [(.google.api.field_behavior) = OPTIONAL];
containsLabels
in interface ClusterOrBuilder
@Deprecated public Map<String,String> getLabels()
getLabelsMap()
instead.getLabels
in interface ClusterOrBuilder
public Map<String,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 [(.google.api.field_behavior) = OPTIONAL];
getLabelsMap
in interface ClusterOrBuilder
public String getLabelsOrDefault(String key, 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 [(.google.api.field_behavior) = OPTIONAL];
getLabelsOrDefault
in interface ClusterOrBuilder
public String getLabelsOrThrow(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 [(.google.api.field_behavior) = OPTIONAL];
getLabelsOrThrow
in interface ClusterOrBuilder
public boolean hasStatus()
Output only. Cluster status.
.google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasStatus
in interface ClusterOrBuilder
public ClusterStatus getStatus()
Output only. Cluster status.
.google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStatus
in interface ClusterOrBuilder
public ClusterStatusOrBuilder getStatusOrBuilder()
Output only. Cluster status.
.google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStatusOrBuilder
in interface ClusterOrBuilder
public List<ClusterStatus> getStatusHistoryList()
Output only. The previous cluster status.
repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStatusHistoryList
in interface ClusterOrBuilder
public List<? extends ClusterStatusOrBuilder> getStatusHistoryOrBuilderList()
Output only. The previous cluster status.
repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStatusHistoryOrBuilderList
in interface ClusterOrBuilder
public int getStatusHistoryCount()
Output only. The previous cluster status.
repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStatusHistoryCount
in interface ClusterOrBuilder
public ClusterStatus getStatusHistory(int index)
Output only. The previous cluster status.
repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStatusHistory
in interface ClusterOrBuilder
public ClusterStatusOrBuilder getStatusHistoryOrBuilder(int index)
Output only. The previous cluster status.
repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStatusHistoryOrBuilder
in interface ClusterOrBuilder
public String getClusterUuid()
Output only. A cluster UUID (Unique Universal Identifier). Dataproc generates this value when it creates the cluster.
string cluster_uuid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getClusterUuid
in interface ClusterOrBuilder
public ByteString getClusterUuidBytes()
Output only. A cluster UUID (Unique Universal Identifier). Dataproc generates this value when it creates the cluster.
string cluster_uuid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getClusterUuidBytes
in interface ClusterOrBuilder
public boolean hasMetrics()
Output only. 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 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasMetrics
in interface ClusterOrBuilder
public ClusterMetrics getMetrics()
Output only. 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 [(.google.api.field_behavior) = OUTPUT_ONLY];
getMetrics
in interface ClusterOrBuilder
public ClusterMetricsOrBuilder getMetricsOrBuilder()
Output only. 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 [(.google.api.field_behavior) = OUTPUT_ONLY];
getMetricsOrBuilder
in interface ClusterOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static Cluster parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Cluster parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Cluster parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Cluster parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Cluster parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Cluster parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Cluster parseFrom(InputStream input) throws IOException
IOException
public static Cluster parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Cluster parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Cluster parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Cluster parseFrom(CodedInputStream input) throws IOException
IOException
public static Cluster parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public Cluster.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static Cluster.Builder newBuilder()
public static Cluster.Builder newBuilder(Cluster prototype)
public Cluster.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected Cluster.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static Cluster getDefaultInstance()
public Parser<Cluster> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public Cluster getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.