public static enum Instance.State extends Enum<Instance.State> implements ProtocolMessageEnum
Indicates the current state of the instance.Protobuf enum
google.spanner.admin.instance.v1.Instance.State
Enum Constant and Description |
---|
CREATING
The instance is still being created.
|
READY
The instance is fully created and ready to do work such as
creating databases.
|
STATE_UNSPECIFIED
Not specified.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
CREATING_VALUE
The instance is still being created.
|
static int |
READY_VALUE
The instance is fully created and ready to do work such as
creating databases.
|
static int |
STATE_UNSPECIFIED_VALUE
Not specified.
|
Modifier and Type | Method and Description |
---|---|
static Instance.State |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<Instance.State> |
internalGetValueMap() |
static Instance.State |
valueOf(Descriptors.EnumValueDescriptor desc) |
static Instance.State |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Instance.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Instance.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Instance.State STATE_UNSPECIFIED
Not specified.
STATE_UNSPECIFIED = 0;
public static final Instance.State CREATING
The instance is still being created. Resources may not be available yet, and operations such as database creation may not work.
CREATING = 1;
public static final Instance.State READY
The instance is fully created and ready to do work such as creating databases.
READY = 2;
public static final Instance.State UNRECOGNIZED
public static final int STATE_UNSPECIFIED_VALUE
Not specified.
STATE_UNSPECIFIED = 0;
public static final int CREATING_VALUE
The instance is still being created. Resources may not be available yet, and operations such as database creation may not work.
CREATING = 1;
public static final int READY_VALUE
The instance is fully created and ready to do work such as creating databases.
READY = 2;
public static Instance.State[] values()
for (Instance.State c : Instance.State.values()) System.out.println(c);
public static Instance.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 Instance.State valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static Instance.State forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<Instance.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 Instance.State valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.