public final class Cluster extends GeneratedMessageV3 implements ClusterOrBuilder
Describes the identifying information, config, and status of a cluster of Google Compute Engine instances.Protobuf 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 cluster of Google Compute Engine instances.
|
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
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 |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
Modifier and Type | Method and Description |
---|---|
boolean |
containsLabels(java.lang.String key)
Optional.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getClusterName()
Required.
|
ByteString |
getClusterNameBytes()
Required.
|
java.lang.String |
getClusterUuid()
Output-only.
|
ByteString |
getClusterUuidBytes()
Output-only.
|
ClusterConfig |
getConfig()
Required.
|
ClusterConfigOrBuilder |
getConfigOrBuilder()
Required.
|
static Cluster |
getDefaultInstance() |
Cluster |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
java.util.Map<java.lang.String,java.lang.String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
Optional.
|
java.util.Map<java.lang.String,java.lang.String> |
getLabelsMap()
Optional.
|
java.lang.String |
getLabelsOrDefault(java.lang.String key,
java.lang.String defaultValue)
Optional.
|
java.lang.String |
getLabelsOrThrow(java.lang.String key)
Optional.
|
ClusterMetrics |
getMetrics()
Contains cluster daemon metrics such as HDFS and YARN stats.
|
ClusterMetricsOrBuilder |
getMetricsOrBuilder()
Contains cluster daemon metrics such as HDFS and YARN stats.
|
Parser<Cluster> |
getParserForType() |
java.lang.String |
getProjectId()
Required.
|
ByteString |
getProjectIdBytes()
Required.
|
int |
getSerializedSize() |
ClusterStatus |
getStatus()
Output-only.
|
ClusterStatus |
getStatusHistory(int index)
Output-only.
|
int |
getStatusHistoryCount()
Output-only.
|
java.util.List<ClusterStatus> |
getStatusHistoryList()
Output-only.
|
ClusterStatusOrBuilder |
getStatusHistoryOrBuilder(int index)
Output-only.
|
java.util.List<? extends ClusterStatusOrBuilder> |
getStatusHistoryOrBuilderList()
Output-only.
|
ClusterStatusOrBuilder |
getStatusOrBuilder()
Output-only.
|
UnknownFieldSet |
getUnknownFields() |
boolean |
hasConfig()
Required.
|
int |
hashCode() |
boolean |
hasMetrics()
Contains cluster daemon metrics such as HDFS and YARN stats.
|
boolean |
hasStatus()
Output-only.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static Cluster.Builder |
newBuilder() |
static Cluster.Builder |
newBuilder(Cluster prototype) |
Cluster.Builder |
newBuilderForType() |
protected Cluster.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static Cluster |
parseDelimitedFrom(java.io.InputStream input) |
static Cluster |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Cluster |
parseFrom(byte[] data) |
static Cluster |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static Cluster |
parseFrom(java.nio.ByteBuffer data) |
static Cluster |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static Cluster |
parseFrom(ByteString data) |
static Cluster |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static Cluster |
parseFrom(CodedInputStream input) |
static Cluster |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static Cluster |
parseFrom(java.io.InputStream input) |
static Cluster |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<Cluster> |
parser() |
Cluster.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, newBuilderForType, 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 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
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 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 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 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 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 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 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 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 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 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.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 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 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 boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.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(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Cluster parseFrom(java.nio.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(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Cluster parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Cluster parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Cluster parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Cluster parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Cluster parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.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