public static enum Database.State extends java.lang.Enum<Database.State> implements 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.
|
STATE_UNSPECIFIED
Not specified.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
CREATING_VALUE
The database is still being created.
|
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 Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<Database.State> |
internalGetValueMap() |
static Database.State |
valueOf(Descriptors.EnumValueDescriptor desc) |
static Database.State |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Database.State |
valueOf(java.lang.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 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 Database.State[] values()
for (Database.State c : Database.State.values()) System.out.println(c);
public static Database.State valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static Database.State valueOf(int value)
forNumber(int)
instead.public static Database.State forNumber(int value)
public static Internal.EnumLiteMap<Database.State> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static Database.State valueOf(Descriptors.EnumValueDescriptor desc)