public static enum Database.State extends Enum<Database.State> implements com.google.protobuf.ProtocolMessageEnum
Indicates the current state of the database.Protobuf enum
google.spanner.admin.database.v1.Database.State| Enum Constant and Description |
|---|
CREATING
The database is still being created.
|
READY
The database is fully created and ready for use.
|
READY_OPTIMIZING
The database is fully created and ready for use, but is still
being optimized for performance and cannot handle full load.
|
STATE_UNSPECIFIED
Not specified.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
CREATING_VALUE
The database is still being created.
|
static int |
READY_OPTIMIZING_VALUE
The database is fully created and ready for use, but is still
being optimized for performance and cannot handle full load.
|
static int |
READY_VALUE
The database is fully created and ready for use.
|
static int |
STATE_UNSPECIFIED_VALUE
Not specified.
|
| Modifier and Type | Method and Description |
|---|---|
static Database.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<Database.State> |
internalGetValueMap() |
static Database.State |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Database.State |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Database.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Database.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Database.State STATE_UNSPECIFIED
Not specified.
STATE_UNSPECIFIED = 0;public static final Database.State CREATING
The database is still being created. Operations on the database may fail with `FAILED_PRECONDITION` in this state.
CREATING = 1;public static final Database.State READY
The database is fully created and ready for use.
READY = 2;public static final Database.State READY_OPTIMIZING
The database is fully created and ready for use, but is still being optimized for performance and cannot handle full load. In this state, the database still references the backup it was restore from, preventing the backup from being deleted. When optimizations are complete, the full performance of the database will be restored, and the database will transition to `READY` state.
READY_OPTIMIZING = 3;public static final Database.State UNRECOGNIZED
public static final int STATE_UNSPECIFIED_VALUE
Not specified.
STATE_UNSPECIFIED = 0;public static final int CREATING_VALUE
The database is still being created. Operations on the database may fail with `FAILED_PRECONDITION` in this state.
CREATING = 1;public static final int READY_VALUE
The database is fully created and ready for use.
READY = 2;public static final int READY_OPTIMIZING_VALUE
The database is fully created and ready for use, but is still being optimized for performance and cannot handle full load. In this state, the database still references the backup it was restore from, preventing the backup from being deleted. When optimizations are complete, the full performance of the database will be restored, and the database will transition to `READY` state.
READY_OPTIMIZING = 3;public static Database.State[] values()
for (Database.State c : Database.State.values()) System.out.println(c);
public static Database.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 Database.State valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static Database.State forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Database.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Database.State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2020 Google LLC. All rights reserved.