public static enum Cluster.ClusterType extends Enum<Cluster.ClusterType> implements com.google.protobuf.ProtocolMessageEnum
Type of ClusterProtobuf enum
google.cloud.alloydb.v1.Cluster.ClusterType| Enum Constant and Description |
|---|
CLUSTER_TYPE_UNSPECIFIED
The type of the cluster is unknown.
|
PRIMARY
Primary cluster that support read and write operations.
|
SECONDARY
Secondary cluster that is replicating from another region.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
CLUSTER_TYPE_UNSPECIFIED_VALUE
The type of the cluster is unknown.
|
static int |
PRIMARY_VALUE
Primary cluster that support read and write operations.
|
static int |
SECONDARY_VALUE
Secondary cluster that is replicating from another region.
|
| Modifier and Type | Method and Description |
|---|---|
static Cluster.ClusterType |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<Cluster.ClusterType> |
internalGetValueMap() |
static Cluster.ClusterType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Cluster.ClusterType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Cluster.ClusterType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Cluster.ClusterType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Cluster.ClusterType CLUSTER_TYPE_UNSPECIFIED
The type of the cluster is unknown.
CLUSTER_TYPE_UNSPECIFIED = 0;public static final Cluster.ClusterType PRIMARY
Primary cluster that support read and write operations.
PRIMARY = 1;public static final Cluster.ClusterType SECONDARY
Secondary cluster that is replicating from another region. This only supports read.
SECONDARY = 2;public static final Cluster.ClusterType UNRECOGNIZED
public static final int CLUSTER_TYPE_UNSPECIFIED_VALUE
The type of the cluster is unknown.
CLUSTER_TYPE_UNSPECIFIED = 0;public static final int PRIMARY_VALUE
Primary cluster that support read and write operations.
PRIMARY = 1;public static final int SECONDARY_VALUE
Secondary cluster that is replicating from another region. This only supports read.
SECONDARY = 2;public static Cluster.ClusterType[] values()
for (Cluster.ClusterType c : Cluster.ClusterType.values()) System.out.println(c);
public static Cluster.ClusterType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static Cluster.ClusterType valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static Cluster.ClusterType forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Cluster.ClusterType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Cluster.ClusterType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.