Package org.yamcs.protobuf
Enum Yamcs.Event.EventSeverity
- java.lang.Object
-
- java.lang.Enum<Yamcs.Event.EventSeverity>
-
- org.yamcs.protobuf.Yamcs.Event.EventSeverity
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<Yamcs.Event.EventSeverity>
- Enclosing class:
- Yamcs.Event
public static enum Yamcs.Event.EventSeverity extends Enum<Yamcs.Event.EventSeverity> implements com.google.protobuf.ProtocolMessageEnum
Protobuf enumyamcs.protobuf.Event.EventSeverity
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CRITICAL
CRITICAL = 6;
DISTRESS
DISTRESS = 5;
ERROR
ERROR = 2;
INFO
INFO = 0;
SEVERE
SEVERE = 7;
WARNING
WARNING = 1;
WATCH
the levels below are compatible with XTCE we left the 4 out since it could be used for warning if we ever decide to get rid of the old ones
-
Field Summary
Fields Modifier and Type Field Description static int
CRITICAL_VALUE
CRITICAL = 6;
static int
DISTRESS_VALUE
DISTRESS = 5;
static int
ERROR_VALUE
ERROR = 2;
static int
INFO_VALUE
INFO = 0;
static int
SEVERE_VALUE
SEVERE = 7;
static int
WARNING_VALUE
WARNING = 1;
static int
WATCH_VALUE
the levels below are compatible with XTCE we left the 4 out since it could be used for warning if we ever decide to get rid of the old ones
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Yamcs.Event.EventSeverity
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<Yamcs.Event.EventSeverity>
internalGetValueMap()
static Yamcs.Event.EventSeverity
valueOf(int value)
Deprecated.static Yamcs.Event.EventSeverity
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static Yamcs.Event.EventSeverity
valueOf(String name)
Returns the enum constant of this type with the specified name.static Yamcs.Event.EventSeverity[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INFO
public static final Yamcs.Event.EventSeverity INFO
INFO = 0;
-
WARNING
public static final Yamcs.Event.EventSeverity WARNING
WARNING = 1;
-
ERROR
public static final Yamcs.Event.EventSeverity ERROR
ERROR = 2;
-
WATCH
public static final Yamcs.Event.EventSeverity WATCH
the levels below are compatible with XTCE we left the 4 out since it could be used for warning if we ever decide to get rid of the old ones
WATCH = 3;
-
DISTRESS
public static final Yamcs.Event.EventSeverity DISTRESS
DISTRESS = 5;
-
CRITICAL
public static final Yamcs.Event.EventSeverity CRITICAL
CRITICAL = 6;
-
SEVERE
public static final Yamcs.Event.EventSeverity SEVERE
SEVERE = 7;
-
-
Field Detail
-
INFO_VALUE
public static final int INFO_VALUE
INFO = 0;
- See Also:
- Constant Field Values
-
WARNING_VALUE
public static final int WARNING_VALUE
WARNING = 1;
- See Also:
- Constant Field Values
-
ERROR_VALUE
public static final int ERROR_VALUE
ERROR = 2;
- See Also:
- Constant Field Values
-
WATCH_VALUE
public static final int WATCH_VALUE
the levels below are compatible with XTCE we left the 4 out since it could be used for warning if we ever decide to get rid of the old ones
WATCH = 3;
- See Also:
- Constant Field Values
-
DISTRESS_VALUE
public static final int DISTRESS_VALUE
DISTRESS = 5;
- See Also:
- Constant Field Values
-
CRITICAL_VALUE
public static final int CRITICAL_VALUE
CRITICAL = 6;
- See Also:
- Constant Field Values
-
SEVERE_VALUE
public static final int SEVERE_VALUE
SEVERE = 7;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Yamcs.Event.EventSeverity[] 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 (Yamcs.Event.EventSeverity c : Yamcs.Event.EventSeverity.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Yamcs.Event.EventSeverity 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 Yamcs.Event.EventSeverity 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 Yamcs.Event.EventSeverity forNumber(int value)
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<Yamcs.Event.EventSeverity> 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 Yamcs.Event.EventSeverity 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
-
-