Package com.google.cloud.tpu.v2alpha1
Enum Node.State
- java.lang.Object
-
- java.lang.Enum<Node.State>
-
- com.google.cloud.tpu.v2alpha1.Node.State
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<Node.State>
- Enclosing class:
- Node
public static enum Node.State extends Enum<Node.State> implements com.google.protobuf.ProtocolMessageEnum
Represents the different states of a TPU node during its lifecycle.
Protobuf enumgoogle.cloud.tpu.v2alpha1.Node.State
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CREATING
TPU node is being created.DELETING
TPU node is being deleted.HIDDEN
TPU node has been hidden.HIDING
TPU node is currently hiding.PREEMPTED
TPU node has been preempted.READY
TPU node has been created.REIMAGING
TPU node is undergoing reimaging.REPAIRING
TPU node is being repaired and may be unusable.RESTARTING
TPU node is restarting.STARTING
TPU node is currently starting.STATE_UNSPECIFIED
TPU node state is not known/set.STOPPED
TPU node is stopped.STOPPING
TPU node is currently stopping.TERMINATED
TPU node has been terminated due to maintenance or has reached the end of its life cycle (for preemptible nodes).UNHIDING
TPU node is currently unhiding.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static int
CREATING_VALUE
TPU node is being created.static int
DELETING_VALUE
TPU node is being deleted.static int
HIDDEN_VALUE
TPU node has been hidden.static int
HIDING_VALUE
TPU node is currently hiding.static int
PREEMPTED_VALUE
TPU node has been preempted.static int
READY_VALUE
TPU node has been created.static int
REIMAGING_VALUE
TPU node is undergoing reimaging.static int
REPAIRING_VALUE
TPU node is being repaired and may be unusable.static int
RESTARTING_VALUE
TPU node is restarting.static int
STARTING_VALUE
TPU node is currently starting.static int
STATE_UNSPECIFIED_VALUE
TPU node state is not known/set.static int
STOPPED_VALUE
TPU node is stopped.static int
STOPPING_VALUE
TPU node is currently stopping.static int
TERMINATED_VALUE
TPU node has been terminated due to maintenance or has reached the end of its life cycle (for preemptible nodes).static int
UNHIDING_VALUE
TPU node is currently unhiding.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Node.State
forNumber(int value)
static com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor()
com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType()
int
getNumber()
com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor()
static com.google.protobuf.Internal.EnumLiteMap<Node.State>
internalGetValueMap()
static Node.State
valueOf(int value)
Deprecated.static Node.State
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static Node.State
valueOf(String name)
Returns the enum constant of this type with the specified name.static Node.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STATE_UNSPECIFIED
public static final Node.State STATE_UNSPECIFIED
TPU node state is not known/set.
STATE_UNSPECIFIED = 0;
-
CREATING
public static final Node.State CREATING
TPU node is being created.
CREATING = 1;
-
READY
public static final Node.State READY
TPU node has been created.
READY = 2;
-
RESTARTING
public static final Node.State RESTARTING
TPU node is restarting.
RESTARTING = 3;
-
REIMAGING
public static final Node.State REIMAGING
TPU node is undergoing reimaging.
REIMAGING = 4;
-
DELETING
public static final Node.State DELETING
TPU node is being deleted.
DELETING = 5;
-
REPAIRING
public static final Node.State REPAIRING
TPU node is being repaired and may be unusable. Details can be found in the 'help_description' field.
REPAIRING = 6;
-
STOPPED
public static final Node.State STOPPED
TPU node is stopped.
STOPPED = 8;
-
STOPPING
public static final Node.State STOPPING
TPU node is currently stopping.
STOPPING = 9;
-
STARTING
public static final Node.State STARTING
TPU node is currently starting.
STARTING = 10;
-
PREEMPTED
public static final Node.State PREEMPTED
TPU node has been preempted. Only applies to Preemptible TPU Nodes.
PREEMPTED = 11;
-
TERMINATED
public static final Node.State TERMINATED
TPU node has been terminated due to maintenance or has reached the end of its life cycle (for preemptible nodes).
TERMINATED = 12;
-
HIDING
public static final Node.State HIDING
TPU node is currently hiding.
HIDING = 13;
-
HIDDEN
public static final Node.State HIDDEN
TPU node has been hidden.
HIDDEN = 14;
-
UNHIDING
public static final Node.State UNHIDING
TPU node is currently unhiding.
UNHIDING = 15;
-
UNRECOGNIZED
public static final Node.State UNRECOGNIZED
-
-
Field Detail
-
STATE_UNSPECIFIED_VALUE
public static final int STATE_UNSPECIFIED_VALUE
TPU node state is not known/set.
STATE_UNSPECIFIED = 0;
- See Also:
- Constant Field Values
-
CREATING_VALUE
public static final int CREATING_VALUE
TPU node is being created.
CREATING = 1;
- See Also:
- Constant Field Values
-
READY_VALUE
public static final int READY_VALUE
TPU node has been created.
READY = 2;
- See Also:
- Constant Field Values
-
RESTARTING_VALUE
public static final int RESTARTING_VALUE
TPU node is restarting.
RESTARTING = 3;
- See Also:
- Constant Field Values
-
REIMAGING_VALUE
public static final int REIMAGING_VALUE
TPU node is undergoing reimaging.
REIMAGING = 4;
- See Also:
- Constant Field Values
-
DELETING_VALUE
public static final int DELETING_VALUE
TPU node is being deleted.
DELETING = 5;
- See Also:
- Constant Field Values
-
REPAIRING_VALUE
public static final int REPAIRING_VALUE
TPU node is being repaired and may be unusable. Details can be found in the 'help_description' field.
REPAIRING = 6;
- See Also:
- Constant Field Values
-
STOPPED_VALUE
public static final int STOPPED_VALUE
TPU node is stopped.
STOPPED = 8;
- See Also:
- Constant Field Values
-
STOPPING_VALUE
public static final int STOPPING_VALUE
TPU node is currently stopping.
STOPPING = 9;
- See Also:
- Constant Field Values
-
STARTING_VALUE
public static final int STARTING_VALUE
TPU node is currently starting.
STARTING = 10;
- See Also:
- Constant Field Values
-
PREEMPTED_VALUE
public static final int PREEMPTED_VALUE
TPU node has been preempted. Only applies to Preemptible TPU Nodes.
PREEMPTED = 11;
- See Also:
- Constant Field Values
-
TERMINATED_VALUE
public static final int TERMINATED_VALUE
TPU node has been terminated due to maintenance or has reached the end of its life cycle (for preemptible nodes).
TERMINATED = 12;
- See Also:
- Constant Field Values
-
HIDING_VALUE
public static final int HIDING_VALUE
TPU node is currently hiding.
HIDING = 13;
- See Also:
- Constant Field Values
-
HIDDEN_VALUE
public static final int HIDDEN_VALUE
TPU node has been hidden.
HIDDEN = 14;
- See Also:
- Constant Field Values
-
UNHIDING_VALUE
public static final int UNHIDING_VALUE
TPU node is currently unhiding.
UNHIDING = 15;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Node.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 (Node.State c : Node.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 Node.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
-
getNumber
public final int getNumber()
- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static Node.State valueOf(int value)
Deprecated.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:
value
- 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
-
forNumber
public static Node.State forNumber(int value)
- Parameters:
value
- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<Node.State> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static Node.State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
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:
desc
- 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
-
-