Package com.google.cloud.tpu.v2
Enum 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 enum
google.cloud.tpu.v2.Node.State-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTPU node is being created.TPU node is being deleted.TPU node has been hidden.TPU node is currently hiding.TPU node has been preempted.TPU node has been created.TPU node is undergoing reimaging.TPU node is being repaired and may be unusable.TPU node is restarting.TPU node is currently starting.TPU node state is not known/set.TPU node is stopped.TPU node is currently stopping.TPU node has been terminated due to maintenance or has reached the end of its life cycle (for preemptible nodes).TPU node is currently unhiding.TPU node has unknown state after a failed repair. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intTPU node is being created.static final intTPU node is being deleted.static final intTPU node has been hidden.static final intTPU node is currently hiding.static final intTPU node has been preempted.static final intTPU node has been created.static final intTPU node is undergoing reimaging.static final intTPU node is being repaired and may be unusable.static final intTPU node is restarting.static final intTPU node is currently starting.static final intTPU node state is not known/set.static final intTPU node is stopped.static final intTPU node is currently stopping.static final intTPU node has been terminated due to maintenance or has reached the end of its life cycle (for preemptible nodes).static final intTPU node is currently unhiding.static final intTPU node has unknown state after a failed repair. -
Method Summary
Modifier and TypeMethodDescriptionstatic Node.StateforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Node.State>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.StateReturns 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 Details
-
STATE_UNSPECIFIED
TPU node state is not known/set.
STATE_UNSPECIFIED = 0; -
CREATING
TPU node is being created.
CREATING = 1; -
READY
TPU node has been created.
READY = 2; -
RESTARTING
TPU node is restarting.
RESTARTING = 3; -
REIMAGING
TPU node is undergoing reimaging.
REIMAGING = 4; -
DELETING
TPU node is being deleted.
DELETING = 5; -
REPAIRING
TPU node is being repaired and may be unusable. Details can be found in the 'help_description' field.
REPAIRING = 6; -
STOPPED
TPU node is stopped.
STOPPED = 8; -
STOPPING
TPU node is currently stopping.
STOPPING = 9; -
STARTING
TPU node is currently starting.
STARTING = 10; -
PREEMPTED
TPU node has been preempted. Only applies to Preemptible TPU Nodes.
PREEMPTED = 11; -
TERMINATED
TPU node has been terminated due to maintenance or has reached the end of its life cycle (for preemptible nodes).
TERMINATED = 12; -
HIDING
TPU node is currently hiding.
HIDING = 13; -
HIDDEN
TPU node has been hidden.
HIDDEN = 14; -
UNHIDING
TPU node is currently unhiding.
UNHIDING = 15; -
UNKNOWN
TPU node has unknown state after a failed repair.
UNKNOWN = 16; -
UNRECOGNIZED
-
-
Field Details
-
STATE_UNSPECIFIED_VALUE
public static final int STATE_UNSPECIFIED_VALUETPU node state is not known/set.
STATE_UNSPECIFIED = 0;- See Also:
-
CREATING_VALUE
public static final int CREATING_VALUETPU node is being created.
CREATING = 1;- See Also:
-
READY_VALUE
public static final int READY_VALUETPU node has been created.
READY = 2;- See Also:
-
RESTARTING_VALUE
public static final int RESTARTING_VALUETPU node is restarting.
RESTARTING = 3;- See Also:
-
REIMAGING_VALUE
public static final int REIMAGING_VALUETPU node is undergoing reimaging.
REIMAGING = 4;- See Also:
-
DELETING_VALUE
public static final int DELETING_VALUETPU node is being deleted.
DELETING = 5;- See Also:
-
REPAIRING_VALUE
public static final int REPAIRING_VALUETPU node is being repaired and may be unusable. Details can be found in the 'help_description' field.
REPAIRING = 6;- See Also:
-
STOPPED_VALUE
public static final int STOPPED_VALUETPU node is stopped.
STOPPED = 8;- See Also:
-
STOPPING_VALUE
public static final int STOPPING_VALUETPU node is currently stopping.
STOPPING = 9;- See Also:
-
STARTING_VALUE
public static final int STARTING_VALUETPU node is currently starting.
STARTING = 10;- See Also:
-
PREEMPTED_VALUE
public static final int PREEMPTED_VALUETPU node has been preempted. Only applies to Preemptible TPU Nodes.
PREEMPTED = 11;- See Also:
-
TERMINATED_VALUE
public static final int TERMINATED_VALUETPU node has been terminated due to maintenance or has reached the end of its life cycle (for preemptible nodes).
TERMINATED = 12;- See Also:
-
HIDING_VALUE
public static final int HIDING_VALUETPU node is currently hiding.
HIDING = 13;- See Also:
-
HIDDEN_VALUE
public static final int HIDDEN_VALUETPU node has been hidden.
HIDDEN = 14;- See Also:
-
UNHIDING_VALUE
public static final int UNHIDING_VALUETPU node is currently unhiding.
UNHIDING = 15;- See Also:
-
UNKNOWN_VALUE
public static final int UNKNOWN_VALUETPU node has unknown state after a failed repair.
UNKNOWN = 16;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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.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
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
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
-