Package com.google.cloud.spanner
Enum InstanceInfo.InstanceField
- java.lang.Object
-
- java.lang.Enum<InstanceInfo.InstanceField>
-
- com.google.cloud.spanner.InstanceInfo.InstanceField
-
- All Implemented Interfaces:
com.google.cloud.FieldSelector
,Serializable
,Comparable<InstanceInfo.InstanceField>
- Enclosing class:
- InstanceInfo
public static enum InstanceInfo.InstanceField extends Enum<InstanceInfo.InstanceField> implements com.google.cloud.FieldSelector
Represent an updatable field in Cloud Spanner instance.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DISPLAY_NAME
LABELS
NODE_COUNT
PROCESSING_UNITS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getSelector()
static InstanceInfo.InstanceField
valueOf(String name)
Returns the enum constant of this type with the specified name.static InstanceInfo.InstanceField[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DISPLAY_NAME
public static final InstanceInfo.InstanceField DISPLAY_NAME
-
NODE_COUNT
public static final InstanceInfo.InstanceField NODE_COUNT
-
PROCESSING_UNITS
public static final InstanceInfo.InstanceField PROCESSING_UNITS
-
LABELS
public static final InstanceInfo.InstanceField LABELS
-
-
Method Detail
-
values
public static InstanceInfo.InstanceField[] 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 (InstanceInfo.InstanceField c : InstanceInfo.InstanceField.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InstanceInfo.InstanceField 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
-
getSelector
public String getSelector()
- Specified by:
getSelector
in interfacecom.google.cloud.FieldSelector
-
-