Package com.google.bigtable.admin.v2
Class Cluster
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.bigtable.admin.v2.Cluster
-
- All Implemented Interfaces:
ClusterOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class Cluster extends com.google.protobuf.GeneratedMessageV3 implements ClusterOrBuilder
A resizable group of nodes in a particular cloud location, capable of serving all [Tables][google.bigtable.admin.v2.Table] in the parent [Instance][google.bigtable.admin.v2.Instance].
Protobuf typegoogle.bigtable.admin.v2.Cluster
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Cluster.Builder
A resizable group of nodes in a particular cloud location, capable of serving all [Tables][google.bigtable.admin.v2.Table] in the parent [Instance][google.bigtable.admin.v2.Instance].static class
Cluster.ClusterAutoscalingConfig
Autoscaling config for a cluster.static interface
Cluster.ClusterAutoscalingConfigOrBuilder
static class
Cluster.ClusterConfig
Configuration for a cluster.static interface
Cluster.ClusterConfigOrBuilder
static class
Cluster.ConfigCase
static class
Cluster.EncryptionConfig
Cloud Key Management Service (Cloud KMS) settings for a CMEK-protected cluster.static interface
Cluster.EncryptionConfigOrBuilder
static class
Cluster.State
Possible states of a cluster.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
CLUSTER_CONFIG_FIELD_NUMBER
static int
DEFAULT_STORAGE_TYPE_FIELD_NUMBER
static int
ENCRYPTION_CONFIG_FIELD_NUMBER
static int
LOCATION_FIELD_NUMBER
static int
NAME_FIELD_NUMBER
static int
SERVE_NODES_FIELD_NUMBER
static int
STATE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Cluster.ClusterConfig
getClusterConfig()
Configuration for this cluster.Cluster.ClusterConfigOrBuilder
getClusterConfigOrBuilder()
Configuration for this cluster.Cluster.ConfigCase
getConfigCase()
static Cluster
getDefaultInstance()
Cluster
getDefaultInstanceForType()
StorageType
getDefaultStorageType()
Immutable.int
getDefaultStorageTypeValue()
Immutable.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
Cluster.EncryptionConfig
getEncryptionConfig()
Immutable.Cluster.EncryptionConfigOrBuilder
getEncryptionConfigOrBuilder()
Immutable.String
getLocation()
Immutable.com.google.protobuf.ByteString
getLocationBytes()
Immutable.String
getName()
The unique name of the cluster.com.google.protobuf.ByteString
getNameBytes()
The unique name of the cluster.com.google.protobuf.Parser<Cluster>
getParserForType()
int
getSerializedSize()
int
getServeNodes()
The number of nodes allocated to this cluster.Cluster.State
getState()
Output only.int
getStateValue()
Output only.boolean
hasClusterConfig()
Configuration for this cluster.boolean
hasEncryptionConfig()
Immutable.int
hashCode()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static Cluster.Builder
newBuilder()
static Cluster.Builder
newBuilder(Cluster prototype)
Cluster.Builder
newBuilderForType()
protected Cluster.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static Cluster
parseDelimitedFrom(InputStream input)
static Cluster
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Cluster
parseFrom(byte[] data)
static Cluster
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Cluster
parseFrom(com.google.protobuf.ByteString data)
static Cluster
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Cluster
parseFrom(com.google.protobuf.CodedInputStream input)
static Cluster
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Cluster
parseFrom(InputStream input)
static Cluster
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Cluster
parseFrom(ByteBuffer data)
static Cluster
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Cluster>
parser()
Cluster.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, 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
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LOCATION_FIELD_NUMBER
public static final int LOCATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SERVE_NODES_FIELD_NUMBER
public static final int SERVE_NODES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CLUSTER_CONFIG_FIELD_NUMBER
public static final int CLUSTER_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DEFAULT_STORAGE_TYPE_FIELD_NUMBER
public static final int DEFAULT_STORAGE_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ENCRYPTION_CONFIG_FIELD_NUMBER
public static final int ENCRYPTION_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getConfigCase
public Cluster.ConfigCase getConfigCase()
- Specified by:
getConfigCase
in interfaceClusterOrBuilder
-
getName
public String getName()
The unique name of the cluster. Values are of the form `projects/{project}/instances/{instance}/clusters/[a-z][-a-z0-9]*`.
string name = 1;
- Specified by:
getName
in interfaceClusterOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The unique name of the cluster. Values are of the form `projects/{project}/instances/{instance}/clusters/[a-z][-a-z0-9]*`.
string name = 1;
- Specified by:
getNameBytes
in interfaceClusterOrBuilder
- Returns:
- The bytes for name.
-
getLocation
public String getLocation()
Immutable. The location where this cluster's nodes and storage reside. For best performance, clients should be located as close as possible to this cluster. Currently only zones are supported, so values should be of the form `projects/{project}/locations/{zone}`.
string location = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Specified by:
getLocation
in interfaceClusterOrBuilder
- Returns:
- The location.
-
getLocationBytes
public com.google.protobuf.ByteString getLocationBytes()
Immutable. The location where this cluster's nodes and storage reside. For best performance, clients should be located as close as possible to this cluster. Currently only zones are supported, so values should be of the form `projects/{project}/locations/{zone}`.
string location = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Specified by:
getLocationBytes
in interfaceClusterOrBuilder
- Returns:
- The bytes for location.
-
getStateValue
public int getStateValue()
Output only. The current state of the cluster.
.google.bigtable.admin.v2.Cluster.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getStateValue
in interfaceClusterOrBuilder
- Returns:
- The enum numeric value on the wire for state.
-
getState
public Cluster.State getState()
Output only. The current state of the cluster.
.google.bigtable.admin.v2.Cluster.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getState
in interfaceClusterOrBuilder
- Returns:
- The state.
-
getServeNodes
public int getServeNodes()
The number of nodes allocated to this cluster. More nodes enable higher throughput and more consistent performance.
int32 serve_nodes = 4;
- Specified by:
getServeNodes
in interfaceClusterOrBuilder
- Returns:
- The serveNodes.
-
hasClusterConfig
public boolean hasClusterConfig()
Configuration for this cluster.
.google.bigtable.admin.v2.Cluster.ClusterConfig cluster_config = 7;
- Specified by:
hasClusterConfig
in interfaceClusterOrBuilder
- Returns:
- Whether the clusterConfig field is set.
-
getClusterConfig
public Cluster.ClusterConfig getClusterConfig()
Configuration for this cluster.
.google.bigtable.admin.v2.Cluster.ClusterConfig cluster_config = 7;
- Specified by:
getClusterConfig
in interfaceClusterOrBuilder
- Returns:
- The clusterConfig.
-
getClusterConfigOrBuilder
public Cluster.ClusterConfigOrBuilder getClusterConfigOrBuilder()
Configuration for this cluster.
.google.bigtable.admin.v2.Cluster.ClusterConfig cluster_config = 7;
- Specified by:
getClusterConfigOrBuilder
in interfaceClusterOrBuilder
-
getDefaultStorageTypeValue
public int getDefaultStorageTypeValue()
Immutable. The type of storage used by this cluster to serve its parent instance's tables, unless explicitly overridden.
.google.bigtable.admin.v2.StorageType default_storage_type = 5 [(.google.api.field_behavior) = IMMUTABLE];
- Specified by:
getDefaultStorageTypeValue
in interfaceClusterOrBuilder
- Returns:
- The enum numeric value on the wire for defaultStorageType.
-
getDefaultStorageType
public StorageType getDefaultStorageType()
Immutable. The type of storage used by this cluster to serve its parent instance's tables, unless explicitly overridden.
.google.bigtable.admin.v2.StorageType default_storage_type = 5 [(.google.api.field_behavior) = IMMUTABLE];
- Specified by:
getDefaultStorageType
in interfaceClusterOrBuilder
- Returns:
- The defaultStorageType.
-
hasEncryptionConfig
public boolean hasEncryptionConfig()
Immutable. The encryption configuration for CMEK-protected clusters.
.google.bigtable.admin.v2.Cluster.EncryptionConfig encryption_config = 6 [(.google.api.field_behavior) = IMMUTABLE];
- Specified by:
hasEncryptionConfig
in interfaceClusterOrBuilder
- Returns:
- Whether the encryptionConfig field is set.
-
getEncryptionConfig
public Cluster.EncryptionConfig getEncryptionConfig()
Immutable. The encryption configuration for CMEK-protected clusters.
.google.bigtable.admin.v2.Cluster.EncryptionConfig encryption_config = 6 [(.google.api.field_behavior) = IMMUTABLE];
- Specified by:
getEncryptionConfig
in interfaceClusterOrBuilder
- Returns:
- The encryptionConfig.
-
getEncryptionConfigOrBuilder
public Cluster.EncryptionConfigOrBuilder getEncryptionConfigOrBuilder()
Immutable. The encryption configuration for CMEK-protected clusters.
.google.bigtable.admin.v2.Cluster.EncryptionConfig encryption_config = 6 [(.google.api.field_behavior) = IMMUTABLE];
- Specified by:
getEncryptionConfigOrBuilder
in interfaceClusterOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Cluster parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Cluster parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Cluster parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Cluster parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Cluster parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Cluster parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Cluster parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Cluster parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Cluster parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Cluster parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Cluster parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Cluster parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Cluster.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Cluster.Builder newBuilder()
-
newBuilder
public static Cluster.Builder newBuilder(Cluster prototype)
-
toBuilder
public Cluster.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Cluster.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Cluster getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Cluster> parser()
-
getParserForType
public com.google.protobuf.Parser<Cluster> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Cluster getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-