public static enum Instance.InstanceType extends Enum<Instance.InstanceType> implements com.google.protobuf.ProtocolMessageEnum
Type of an InstanceProtobuf enum
google.cloud.alloydb.v1.Instance.InstanceType| Enum Constant and Description |
|---|
INSTANCE_TYPE_UNSPECIFIED
The type of the instance is unknown.
|
PRIMARY
PRIMARY instances support read and write operations.
|
READ_POOL
READ POOL instances support read operations only.
|
SECONDARY
SECONDARY instances support read operations only.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
INSTANCE_TYPE_UNSPECIFIED_VALUE
The type of the instance is unknown.
|
static int |
PRIMARY_VALUE
PRIMARY instances support read and write operations.
|
static int |
READ_POOL_VALUE
READ POOL instances support read operations only.
|
static int |
SECONDARY_VALUE
SECONDARY instances support read operations only.
|
| Modifier and Type | Method and Description |
|---|---|
static Instance.InstanceType |
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<Instance.InstanceType> |
internalGetValueMap() |
static Instance.InstanceType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Instance.InstanceType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Instance.InstanceType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Instance.InstanceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Instance.InstanceType INSTANCE_TYPE_UNSPECIFIED
The type of the instance is unknown.
INSTANCE_TYPE_UNSPECIFIED = 0;public static final Instance.InstanceType PRIMARY
PRIMARY instances support read and write operations.
PRIMARY = 1;public static final Instance.InstanceType READ_POOL
READ POOL instances support read operations only. Each read pool instance
consists of one or more homogeneous nodes.
* Read pool of size 1 can only have zonal availability.
* Read pools with node count of 2 or more can have regional
availability (nodes are present in 2 or more zones in a region).
READ_POOL = 2;public static final Instance.InstanceType SECONDARY
SECONDARY instances support read operations only. SECONDARY instance is a cross-region read replica
SECONDARY = 3;public static final Instance.InstanceType UNRECOGNIZED
public static final int INSTANCE_TYPE_UNSPECIFIED_VALUE
The type of the instance is unknown.
INSTANCE_TYPE_UNSPECIFIED = 0;public static final int PRIMARY_VALUE
PRIMARY instances support read and write operations.
PRIMARY = 1;public static final int READ_POOL_VALUE
READ POOL instances support read operations only. Each read pool instance
consists of one or more homogeneous nodes.
* Read pool of size 1 can only have zonal availability.
* Read pools with node count of 2 or more can have regional
availability (nodes are present in 2 or more zones in a region).
READ_POOL = 2;public static final int SECONDARY_VALUE
SECONDARY instances support read operations only. SECONDARY instance is a cross-region read replica
SECONDARY = 3;public static Instance.InstanceType[] values()
for (Instance.InstanceType c : Instance.InstanceType.values()) System.out.println(c);
public static Instance.InstanceType 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 Instance.InstanceType valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static Instance.InstanceType forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Instance.InstanceType> 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 Instance.InstanceType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.