Package com.google.cloud.spanner
Enum DatabaseInfo.State
- java.lang.Object
-
- java.lang.Enum<DatabaseInfo.State>
-
- com.google.cloud.spanner.DatabaseInfo.State
-
- All Implemented Interfaces:
Serializable
,Comparable<DatabaseInfo.State>
- Enclosing class:
- DatabaseInfo
public static enum DatabaseInfo.State extends Enum<DatabaseInfo.State>
State of the database.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CREATING
READY
READY_OPTIMIZING
UNSPECIFIED
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Database.State
toProto()
static DatabaseInfo.State
valueOf(String name)
Returns the enum constant of this type with the specified name.static DatabaseInfo.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNSPECIFIED
public static final DatabaseInfo.State UNSPECIFIED
-
CREATING
public static final DatabaseInfo.State CREATING
-
READY
public static final DatabaseInfo.State READY
-
READY_OPTIMIZING
public static final DatabaseInfo.State READY_OPTIMIZING
-
-
Method Detail
-
values
public static DatabaseInfo.State[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DatabaseInfo.State c : DatabaseInfo.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DatabaseInfo.State valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
toProto
public abstract Database.State toProto()
-
-