public static enum Backup.State extends Enum<Backup.State> implements ProtocolMessageEnum
Indicates the current state of the backup.Protobuf enum
google.spanner.admin.database.v1.Backup.State
Enum Constant and Description |
---|
CREATING
The pending backup is still being created.
|
READY
The backup is complete and ready for use.
|
STATE_UNSPECIFIED
Not specified.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
CREATING_VALUE
The pending backup is still being created.
|
static int |
READY_VALUE
The backup is complete and ready for use.
|
static int |
STATE_UNSPECIFIED_VALUE
Not specified.
|
Modifier and Type | Method and Description |
---|---|
static Backup.State |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<Backup.State> |
internalGetValueMap() |
static Backup.State |
valueOf(Descriptors.EnumValueDescriptor desc) |
static Backup.State |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Backup.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Backup.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Backup.State STATE_UNSPECIFIED
Not specified.
STATE_UNSPECIFIED = 0;
public static final Backup.State CREATING
The pending backup is still being created. Operations on the backup may fail with `FAILED_PRECONDITION` in this state.
CREATING = 1;
public static final Backup.State READY
The backup is complete and ready for use.
READY = 2;
public static final Backup.State UNRECOGNIZED
public static final int STATE_UNSPECIFIED_VALUE
Not specified.
STATE_UNSPECIFIED = 0;
public static final int CREATING_VALUE
The pending backup is still being created. Operations on the backup may fail with `FAILED_PRECONDITION` in this state.
CREATING = 1;
public static final int READY_VALUE
The backup is complete and ready for use.
READY = 2;
public static Backup.State[] values()
for (Backup.State c : Backup.State.values()) System.out.println(c);
public static Backup.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 Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static Backup.State valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static Backup.State forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<Backup.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 Backup.State valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.