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 CREATINGTPU node is being created.DELETINGTPU node is being deleted.HIDDENTPU node has been hidden.HIDINGTPU node is currently hiding.PREEMPTEDTPU node has been preempted.READYTPU node has been created.REIMAGINGTPU node is undergoing reimaging.REPAIRINGTPU node is being repaired and may be unusable.RESTARTINGTPU node is restarting.STARTINGTPU node is currently starting.STATE_UNSPECIFIEDTPU node state is not known/set.STOPPEDTPU node is stopped.STOPPINGTPU node is currently stopping.TERMINATEDTPU node has been terminated due to maintenance or has reached the end of its life cycle (for preemptible nodes).UNHIDINGTPU node is currently unhiding.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intCREATING_VALUETPU node is being created.static intDELETING_VALUETPU node is being deleted.static intHIDDEN_VALUETPU node has been hidden.static intHIDING_VALUETPU node is currently hiding.static intPREEMPTED_VALUETPU node has been preempted.static intREADY_VALUETPU node has been created.static intREIMAGING_VALUETPU node is undergoing reimaging.static intREPAIRING_VALUETPU node is being repaired and may be unusable.static intRESTARTING_VALUETPU node is restarting.static intSTARTING_VALUETPU node is currently starting.static intSTATE_UNSPECIFIED_VALUETPU node state is not known/set.static intSTOPPED_VALUETPU node is stopped.static intSTOPPING_VALUETPU node is currently stopping.static intTERMINATED_VALUETPU node has been terminated due to maintenance or has reached the end of its life cycle (for preemptible nodes).static intUNHIDING_VALUETPU node is currently unhiding.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Node.StateforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<Node.State>internalGetValueMap()static Node.StatevalueOf(int value)Deprecated.static Node.StatevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static Node.StatevalueOf(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:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin 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:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein 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
-
-