Package com.google.cloud.tpu.v2
Enum Node.Health
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Node.Health>
- Enclosing class:
- Node
public static enum Node.Health
extends Enum<Node.Health>
implements com.google.protobuf.ProtocolMessageEnum
Health defines the status of a TPU node as reported by Health Monitor.Protobuf enum
google.cloud.tpu.v2.Node.Health-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionHealth status is unknown: not initialized or failed to retrieve.The resource is healthy.The resource is unresponsive.The node is under maintenance/priority boost caused rescheduling and will resume running once rescheduled.The in-guest ML stack is unhealthy. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intHealth status is unknown: not initialized or failed to retrieve.static final intThe resource is healthy.static final intThe resource is unresponsive.static final intThe node is under maintenance/priority boost caused rescheduling and will resume running once rescheduled.static final intThe in-guest ML stack is unhealthy. -
Method Summary
Modifier and TypeMethodDescriptionstatic Node.HealthforNumber(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.Health>static Node.HealthvalueOf(int value) Deprecated.static Node.HealthvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static Node.HealthReturns the enum constant of this type with the specified name.static Node.Health[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
HEALTH_UNSPECIFIED
Health status is unknown: not initialized or failed to retrieve.
HEALTH_UNSPECIFIED = 0; -
HEALTHY
The resource is healthy.
HEALTHY = 1; -
TIMEOUT
The resource is unresponsive.
TIMEOUT = 3; -
UNHEALTHY_TENSORFLOW
The in-guest ML stack is unhealthy.
UNHEALTHY_TENSORFLOW = 4; -
UNHEALTHY_MAINTENANCE
The node is under maintenance/priority boost caused rescheduling and will resume running once rescheduled.
UNHEALTHY_MAINTENANCE = 5; -
UNRECOGNIZED
-
-
Field Details
-
HEALTH_UNSPECIFIED_VALUE
public static final int HEALTH_UNSPECIFIED_VALUEHealth status is unknown: not initialized or failed to retrieve.
HEALTH_UNSPECIFIED = 0;- See Also:
-
HEALTHY_VALUE
public static final int HEALTHY_VALUEThe resource is healthy.
HEALTHY = 1;- See Also:
-
TIMEOUT_VALUE
public static final int TIMEOUT_VALUEThe resource is unresponsive.
TIMEOUT = 3;- See Also:
-
UNHEALTHY_TENSORFLOW_VALUE
public static final int UNHEALTHY_TENSORFLOW_VALUEThe in-guest ML stack is unhealthy.
UNHEALTHY_TENSORFLOW = 4;- See Also:
-
UNHEALTHY_MAINTENANCE_VALUE
public static final int UNHEALTHY_MAINTENANCE_VALUEThe node is under maintenance/priority boost caused rescheduling and will resume running once rescheduled.
UNHEALTHY_MAINTENANCE = 5;- 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
-