Package com.google.cloud.tpu.v2
Enum Node.Health
- java.lang.Object
-
- java.lang.Enum<Node.Health>
-
- com.google.cloud.tpu.v2.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 enumgoogle.cloud.tpu.v2.Node.Health
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HEALTH_UNSPECIFIED
Health status is unknown: not initialized or failed to retrieve.HEALTHY
The resource is healthy.TIMEOUT
The resource is unresponsive.UNHEALTHY_MAINTENANCE
The node is under maintenance/priority boost caused rescheduling and will resume running once rescheduled.UNHEALTHY_TENSORFLOW
The in-guest ML stack is unhealthy.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static int
HEALTH_UNSPECIFIED_VALUE
Health status is unknown: not initialized or failed to retrieve.static int
HEALTHY_VALUE
The resource is healthy.static int
TIMEOUT_VALUE
The resource is unresponsive.static int
UNHEALTHY_MAINTENANCE_VALUE
The node is under maintenance/priority boost caused rescheduling and will resume running once rescheduled.static int
UNHEALTHY_TENSORFLOW_VALUE
The in-guest ML stack is unhealthy.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Node.Health
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.Health>
internalGetValueMap()
static Node.Health
valueOf(int value)
Deprecated.static Node.Health
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static Node.Health
valueOf(String name)
Returns 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 Detail
-
HEALTH_UNSPECIFIED
public static final Node.Health HEALTH_UNSPECIFIED
Health status is unknown: not initialized or failed to retrieve.
HEALTH_UNSPECIFIED = 0;
-
HEALTHY
public static final Node.Health HEALTHY
The resource is healthy.
HEALTHY = 1;
-
TIMEOUT
public static final Node.Health TIMEOUT
The resource is unresponsive.
TIMEOUT = 3;
-
UNHEALTHY_TENSORFLOW
public static final Node.Health UNHEALTHY_TENSORFLOW
The in-guest ML stack is unhealthy.
UNHEALTHY_TENSORFLOW = 4;
-
UNHEALTHY_MAINTENANCE
public static final Node.Health UNHEALTHY_MAINTENANCE
The node is under maintenance/priority boost caused rescheduling and will resume running once rescheduled.
UNHEALTHY_MAINTENANCE = 5;
-
UNRECOGNIZED
public static final Node.Health UNRECOGNIZED
-
-
Field Detail
-
HEALTH_UNSPECIFIED_VALUE
public static final int HEALTH_UNSPECIFIED_VALUE
Health status is unknown: not initialized or failed to retrieve.
HEALTH_UNSPECIFIED = 0;
- See Also:
- Constant Field Values
-
HEALTHY_VALUE
public static final int HEALTHY_VALUE
The resource is healthy.
HEALTHY = 1;
- See Also:
- Constant Field Values
-
TIMEOUT_VALUE
public static final int TIMEOUT_VALUE
The resource is unresponsive.
TIMEOUT = 3;
- See Also:
- Constant Field Values
-
UNHEALTHY_TENSORFLOW_VALUE
public static final int UNHEALTHY_TENSORFLOW_VALUE
The in-guest ML stack is unhealthy.
UNHEALTHY_TENSORFLOW = 4;
- See Also:
- Constant Field Values
-
UNHEALTHY_MAINTENANCE_VALUE
public static final int UNHEALTHY_MAINTENANCE_VALUE
The node is under maintenance/priority boost caused rescheduling and will resume running once rescheduled.
UNHEALTHY_MAINTENANCE = 5;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Node.Health[] 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.Health c : Node.Health.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.Health 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.Health 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.Health 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.Health> 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.Health 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
-
-