Enum OpennmsModelProtos.Severity
- java.lang.Object
-
- java.lang.Enum<OpennmsModelProtos.Severity>
-
- org.opennms.features.kafka.producer.model.OpennmsModelProtos.Severity
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<OpennmsModelProtos.Severity>
- Enclosing class:
- OpennmsModelProtos
public static enum OpennmsModelProtos.Severity extends Enum<OpennmsModelProtos.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 OpennmsModelProtos.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<OpennmsModelProtos.Severity>
internalGetValueMap()
static OpennmsModelProtos.Severity
valueOf(int value)
Deprecated.static OpennmsModelProtos.Severity
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static OpennmsModelProtos.Severity
valueOf(String name)
Returns the enum constant of this type with the specified name.static OpennmsModelProtos.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 OpennmsModelProtos.Severity INDETERMINATE
INDETERMINATE = 0;
-
CLEARED
public static final OpennmsModelProtos.Severity CLEARED
CLEARED = 1;
-
NORMAL
public static final OpennmsModelProtos.Severity NORMAL
NORMAL = 2;
-
WARNING
public static final OpennmsModelProtos.Severity WARNING
WARNING = 3;
-
MINOR
public static final OpennmsModelProtos.Severity MINOR
MINOR = 4;
-
MAJOR
public static final OpennmsModelProtos.Severity MAJOR
MAJOR = 5;
-
CRITICAL
public static final OpennmsModelProtos.Severity CRITICAL
CRITICAL = 6;
-
UNRECOGNIZED
public static final OpennmsModelProtos.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 OpennmsModelProtos.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 (OpennmsModelProtos.Severity c : OpennmsModelProtos.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 OpennmsModelProtos.Severity 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 OpennmsModelProtos.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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
forNumber
public static OpennmsModelProtos.Severity forNumber(int value)
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<OpennmsModelProtos.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 OpennmsModelProtos.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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-