public static enum PromoteClusterStatus.State extends Enum<PromoteClusterStatus.State> implements com.google.protobuf.ProtocolMessageEnum
State contains all valid states of the database during promote cluster operation. This is used for status reporting through the LRO metadata.Protobuf enum
google.cloud.alloydb.v1beta.PromoteClusterStatus.State| Enum Constant and Description |
|---|
PROMOTE_CLUSTER_AVAILABLE_FOR_READ
The database is only available for read.
|
PROMOTE_CLUSTER_AVAILABLE_FOR_WRITE
The database is available for both read and write.
|
PROMOTE_CLUSTER_COMPLETED
The promote operation is completed and the database is available for
write.
|
STATE_UNSPECIFIED
The state of the database is unknown.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
PROMOTE_CLUSTER_AVAILABLE_FOR_READ_VALUE
The database is only available for read.
|
static int |
PROMOTE_CLUSTER_AVAILABLE_FOR_WRITE_VALUE
The database is available for both read and write.
|
static int |
PROMOTE_CLUSTER_COMPLETED_VALUE
The promote operation is completed and the database is available for
write.
|
static int |
STATE_UNSPECIFIED_VALUE
The state of the database is unknown.
|
| Modifier and Type | Method and Description |
|---|---|
static PromoteClusterStatus.State |
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<PromoteClusterStatus.State> |
internalGetValueMap() |
static PromoteClusterStatus.State |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static PromoteClusterStatus.State |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static PromoteClusterStatus.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PromoteClusterStatus.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PromoteClusterStatus.State STATE_UNSPECIFIED
The state of the database is unknown.
STATE_UNSPECIFIED = 0;public static final PromoteClusterStatus.State PROMOTE_CLUSTER_AVAILABLE_FOR_READ
The database is only available for read.
PROMOTE_CLUSTER_AVAILABLE_FOR_READ = 1;public static final PromoteClusterStatus.State PROMOTE_CLUSTER_AVAILABLE_FOR_WRITE
The database is available for both read and write. The promote operation is near completion.
PROMOTE_CLUSTER_AVAILABLE_FOR_WRITE = 2;public static final PromoteClusterStatus.State PROMOTE_CLUSTER_COMPLETED
The promote operation is completed and the database is available for write.
PROMOTE_CLUSTER_COMPLETED = 3;public static final PromoteClusterStatus.State UNRECOGNIZED
public static final int STATE_UNSPECIFIED_VALUE
The state of the database is unknown.
STATE_UNSPECIFIED = 0;public static final int PROMOTE_CLUSTER_AVAILABLE_FOR_READ_VALUE
The database is only available for read.
PROMOTE_CLUSTER_AVAILABLE_FOR_READ = 1;public static final int PROMOTE_CLUSTER_AVAILABLE_FOR_WRITE_VALUE
The database is available for both read and write. The promote operation is near completion.
PROMOTE_CLUSTER_AVAILABLE_FOR_WRITE = 2;public static final int PROMOTE_CLUSTER_COMPLETED_VALUE
The promote operation is completed and the database is available for write.
PROMOTE_CLUSTER_COMPLETED = 3;public static PromoteClusterStatus.State[] values()
for (PromoteClusterStatus.State c : PromoteClusterStatus.State.values()) System.out.println(c);
public static PromoteClusterStatus.State 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 PromoteClusterStatus.State valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static PromoteClusterStatus.State forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<PromoteClusterStatus.State> 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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static PromoteClusterStatus.State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2026 Google LLC. All rights reserved.