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, unknownFieldsmemoizedSizememoizedHashCode| 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic 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 MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField in class GeneratedMessageV3protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public 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 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 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 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 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 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 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 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 ClusterStatusOrBuilder getStatusHistoryOrBuilder(int index)
Output-only. The previous cluster status.
repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7;getStatusHistoryOrBuilder in interface ClusterOrBuilderpublic 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 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 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 boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static Cluster parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Cluster parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Cluster parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Cluster parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Cluster parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Cluster parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Cluster parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Cluster parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Cluster parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Cluster parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Cluster parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Cluster parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Cluster.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static Cluster.Builder newBuilder()
public static Cluster.Builder newBuilder(Cluster prototype)
public Cluster.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected Cluster.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static Cluster getDefaultInstance()
public Parser<Cluster> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public Cluster getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder