Package org.yamcs.protobuf
Enum Event.EventSeverity
- java.lang.Object
-
- java.lang.Enum<Event.EventSeverity>
-
- org.yamcs.protobuf.Event.EventSeverity
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Event.EventSeverity>
- Enclosing class:
- Event
public static enum Event.EventSeverity extends Enum<Event.EventSeverity> implements com.google.protobuf.ProtocolMessageEnum
Protobuf enumyamcs.protobuf.events.Event.EventSeverity
-
-
Field Summary
Fields Modifier and Type Field Description static intCRITICAL_VALUECRITICAL = 6;static intDISTRESS_VALUEDISTRESS = 5;static intERROR_VALUEERROR = 2;static intINFO_VALUEINFO = 0;static intSEVERE_VALUESEVERE = 7;static intWARNING_VALUEWARNING = 1;static intWATCH_VALUEWATCH = 3;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Event.EventSeverityforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<Event.EventSeverity>internalGetValueMap()static Event.EventSeverityvalueOf(int value)Deprecated.static Event.EventSeverityvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static Event.EventSeverityvalueOf(String name)Returns the enum constant of this type with the specified name.static 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 Event.EventSeverity INFO
INFO = 0;
-
WARNING
public static final Event.EventSeverity WARNING
WARNING = 1;
-
ERROR
public static final Event.EventSeverity ERROR
ERROR = 2;
-
WATCH
public static final Event.EventSeverity WATCH
WATCH = 3;
-
DISTRESS
public static final Event.EventSeverity DISTRESS
DISTRESS = 5;
-
CRITICAL
public static final Event.EventSeverity CRITICAL
CRITICAL = 6;
-
SEVERE
public static final 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
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 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 (Event.EventSeverity c : 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 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:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static 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 Event.EventSeverity 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.EventSeverity> 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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static 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
-
-