Enum EventsProto.Severity
- java.lang.Object
-
- java.lang.Enum<EventsProto.Severity>
-
- org.opennms.features.kafka.consumer.events.EventsProto.Severity
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,java.io.Serializable
,java.lang.Comparable<EventsProto.Severity>
- Enclosing class:
- EventsProto
public static enum EventsProto.Severity extends java.lang.Enum<EventsProto.Severity> implements com.google.protobuf.ProtocolMessageEnum
The values differ from the standard codes in OpenNMS since proto3 enforces us to start at 0
Protobuf enumSeverity
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLEARED
CLEARED = 1;
CRITICAL
CRITICAL = 6;
INDETERMINATE
INDETERMINATE = 0;
MAJOR
MAJOR = 5;
MINOR
MINOR = 4;
NORMAL
NORMAL = 2;
UNRECOGNIZED
WARNING
WARNING = 3;
-
Field Summary
Fields Modifier and Type Field Description static int
CLEARED_VALUE
CLEARED = 1;
static int
CRITICAL_VALUE
CRITICAL = 6;
static int
INDETERMINATE_VALUE
INDETERMINATE = 0;
static int
MAJOR_VALUE
MAJOR = 5;
static int
MINOR_VALUE
MINOR = 4;
static int
NORMAL_VALUE
NORMAL = 2;
static int
WARNING_VALUE
WARNING = 3;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static EventsProto.Severity
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<EventsProto.Severity>
internalGetValueMap()
static EventsProto.Severity
valueOf(int value)
Deprecated.static EventsProto.Severity
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static EventsProto.Severity
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static EventsProto.Severity[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INDETERMINATE
public static final EventsProto.Severity INDETERMINATE
INDETERMINATE = 0;
-
CLEARED
public static final EventsProto.Severity CLEARED
CLEARED = 1;
-
NORMAL
public static final EventsProto.Severity NORMAL
NORMAL = 2;
-
WARNING
public static final EventsProto.Severity WARNING
WARNING = 3;
-
MINOR
public static final EventsProto.Severity MINOR
MINOR = 4;
-
MAJOR
public static final EventsProto.Severity MAJOR
MAJOR = 5;
-
CRITICAL
public static final EventsProto.Severity CRITICAL
CRITICAL = 6;
-
UNRECOGNIZED
public static final EventsProto.Severity UNRECOGNIZED
-
-
Field Detail
-
INDETERMINATE_VALUE
public static final int INDETERMINATE_VALUE
INDETERMINATE = 0;
- See Also:
- Constant Field Values
-
CLEARED_VALUE
public static final int CLEARED_VALUE
CLEARED = 1;
- See Also:
- Constant Field Values
-
NORMAL_VALUE
public static final int NORMAL_VALUE
NORMAL = 2;
- See Also:
- Constant Field Values
-
WARNING_VALUE
public static final int WARNING_VALUE
WARNING = 3;
- See Also:
- Constant Field Values
-
MINOR_VALUE
public static final int MINOR_VALUE
MINOR = 4;
- See Also:
- Constant Field Values
-
MAJOR_VALUE
public static final int MAJOR_VALUE
MAJOR = 5;
- See Also:
- Constant Field Values
-
CRITICAL_VALUE
public static final int CRITICAL_VALUE
CRITICAL = 6;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static EventsProto.Severity[] 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 (EventsProto.Severity c : EventsProto.Severity.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EventsProto.Severity valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- 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 EventsProto.Severity 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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
forNumber
public static EventsProto.Severity forNumber(int value)
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<EventsProto.Severity> 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 EventsProto.Severity 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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-