Enum Database.State (6.53.0)

public enum Database.State extends Enum<Database.State> implements ProtocolMessageEnum

Indicates the current state of the database.

Protobuf enum google.spanner.admin.database.v1.Database.State

Implements

ProtocolMessageEnum

Static Fields

NameDescription
CREATING

The database is still being created. Operations on the database may fail with FAILED_PRECONDITION in this state.

CREATING = 1;

CREATING_VALUE

The database is still being created. Operations on the database may fail with FAILED_PRECONDITION in this state.

CREATING = 1;

READY

The database is fully created and ready for use.

READY = 2;

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;

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;

READY_VALUE

The database is fully created and ready for use.

READY = 2;

STATE_UNSPECIFIED

Not specified.

STATE_UNSPECIFIED = 0;

STATE_UNSPECIFIED_VALUE

Not specified.

STATE_UNSPECIFIED = 0;

UNRECOGNIZED

Static Methods

NameDescription
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

NameDescription
getDescriptorForType()
getNumber()
getValueDescriptor()