Package com.google.cloud.notebooks.v1
Enum Event.EventType
- java.lang.Object
-
- java.lang.Enum<Event.EventType>
-
- com.google.cloud.notebooks.v1.Event.EventType
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<Event.EventType>
- Enclosing class:
- Event
public static enum Event.EventType extends Enum<Event.EventType> implements com.google.protobuf.ProtocolMessageEnum
The definition of the event types.
Protobuf enumgoogle.cloud.notebooks.v1.Event.EventType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EVENT_TYPE_UNSPECIFIED
Event is not specified.HEALTH
The instance / runtime health is available.HEARTBEAT
The instance / runtime is available.IDLE
The instance / runtime is idleMAINTENANCE
The instance / runtime is available.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static int
EVENT_TYPE_UNSPECIFIED_VALUE
Event is not specified.static int
HEALTH_VALUE
The instance / runtime health is available.static int
HEARTBEAT_VALUE
The instance / runtime is available.static int
IDLE_VALUE
The instance / runtime is idlestatic int
MAINTENANCE_VALUE
The instance / runtime is available.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Event.EventType
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<Event.EventType>
internalGetValueMap()
static Event.EventType
valueOf(int value)
Deprecated.static Event.EventType
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static Event.EventType
valueOf(String name)
Returns the enum constant of this type with the specified name.static Event.EventType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EVENT_TYPE_UNSPECIFIED
public static final Event.EventType EVENT_TYPE_UNSPECIFIED
Event is not specified.
EVENT_TYPE_UNSPECIFIED = 0;
-
IDLE
public static final Event.EventType IDLE
The instance / runtime is idle
IDLE = 1;
-
HEARTBEAT
public static final Event.EventType HEARTBEAT
The instance / runtime is available. This event indicates that instance / runtime underlying compute is operational.
HEARTBEAT = 2;
-
HEALTH
public static final Event.EventType HEALTH
The instance / runtime health is available. This event indicates that instance / runtime health information.
HEALTH = 3;
-
MAINTENANCE
public static final Event.EventType MAINTENANCE
The instance / runtime is available. This event allows instance / runtime to send Host maintenance information to Control Plane. https://cloud.google.com/compute/docs/gpus/gpu-host-maintenance
MAINTENANCE = 4;
-
UNRECOGNIZED
public static final Event.EventType UNRECOGNIZED
-
-
Field Detail
-
EVENT_TYPE_UNSPECIFIED_VALUE
public static final int EVENT_TYPE_UNSPECIFIED_VALUE
Event is not specified.
EVENT_TYPE_UNSPECIFIED = 0;
- See Also:
- Constant Field Values
-
IDLE_VALUE
public static final int IDLE_VALUE
The instance / runtime is idle
IDLE = 1;
- See Also:
- Constant Field Values
-
HEARTBEAT_VALUE
public static final int HEARTBEAT_VALUE
The instance / runtime is available. This event indicates that instance / runtime underlying compute is operational.
HEARTBEAT = 2;
- See Also:
- Constant Field Values
-
HEALTH_VALUE
public static final int HEALTH_VALUE
The instance / runtime health is available. This event indicates that instance / runtime health information.
HEALTH = 3;
- See Also:
- Constant Field Values
-
MAINTENANCE_VALUE
public static final int MAINTENANCE_VALUE
The instance / runtime is available. This event allows instance / runtime to send Host maintenance information to Control Plane. https://cloud.google.com/compute/docs/gpus/gpu-host-maintenance
MAINTENANCE = 4;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Event.EventType[] 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 (Event.EventType c : Event.EventType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Event.EventType 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 Event.EventType 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 Event.EventType 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<Event.EventType> 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 Event.EventType 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
-
-