Package dev.enola.core.util.proto
Enum Class Log.Severity
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,ProtocolMessageEnum
,Serializable
,Comparable<Log.Severity>
,Constable
- Enclosing class:
Log
Inspired by https://cloud.google.com/service-infrastructure/docs/service-control/reference/rpc/google.logging.type, but could be extended here, as there is no real direct connection between this and GCP logging.Protobuf enum
dev.enola.core.util.Log.Severity
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA person must take an action immediately.Critical events cause more severe problems or outages.Debug or trace information.One or more systems are unusable.Error events are likely to cause problems.Routine information, such as ongoing status or performance.Normal but significant events, such as start up, shut down, or a configuration change.The log entry has no assigned severity level.Warning events might cause problems. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
A person must take an action immediately.static final int
Critical events cause more severe problems or outages.static final int
Debug or trace information.static final int
One or more systems are unusable.static final int
Error events are likely to cause problems.static final int
Routine information, such as ongoing status or performance.static final int
Normal but significant events, such as start up, shut down, or a configuration change.static final int
The log entry has no assigned severity level.static final int
Warning events might cause problems. -
Method Summary
Modifier and TypeMethodDescriptionstatic Log.Severity
forNumber
(int value) static final Descriptors.EnumDescriptor
Return the enum type's descriptor, which contains information about each defined value, etc.final int
Return the value's numeric value as defined in the .proto file.Return the value's descriptor, which contains information such as value name, number, and type.static com.google.protobuf.Internal.EnumLiteMap
<Log.Severity> static Log.Severity
valueOf
(int value) Deprecated.static Log.Severity
Returns the enum constant of this class with the specified name.static Log.Severity
Returns the enum constant of this class with the specified name.static Log.Severity[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SEVERITY_UNSPECIFIED
The log entry has no assigned severity level.
SEVERITY_UNSPECIFIED = 0;
-
SEVERITY_DEBUG
Debug or trace information.
SEVERITY_DEBUG = 100;
-
SEVERITY_INFO
Routine information, such as ongoing status or performance.
SEVERITY_INFO = 200;
-
SEVERITY_NOTICE
Normal but significant events, such as start up, shut down, or a configuration change.
SEVERITY_NOTICE = 300;
-
SEVERITY_WARNING
Warning events might cause problems.
SEVERITY_WARNING = 400;
-
SEVERITY_ERROR
Error events are likely to cause problems.
SEVERITY_ERROR = 500;
-
SEVERITY_CRITICAL
Critical events cause more severe problems or outages.
SEVERITY_CRITICAL = 600;
-
SEVERITY_ALERT
A person must take an action immediately.
SEVERITY_ALERT = 700;
-
SEVERITY_EMERGENCY
One or more systems are unusable.
SEVERITY_EMERGENCY = 800;
-
UNRECOGNIZED
-
-
Field Details
-
SEVERITY_UNSPECIFIED_VALUE
public static final int SEVERITY_UNSPECIFIED_VALUEThe log entry has no assigned severity level.
SEVERITY_UNSPECIFIED = 0;
- See Also:
-
SEVERITY_DEBUG_VALUE
public static final int SEVERITY_DEBUG_VALUEDebug or trace information.
SEVERITY_DEBUG = 100;
- See Also:
-
SEVERITY_INFO_VALUE
public static final int SEVERITY_INFO_VALUERoutine information, such as ongoing status or performance.
SEVERITY_INFO = 200;
- See Also:
-
SEVERITY_NOTICE_VALUE
public static final int SEVERITY_NOTICE_VALUENormal but significant events, such as start up, shut down, or a configuration change.
SEVERITY_NOTICE = 300;
- See Also:
-
SEVERITY_WARNING_VALUE
public static final int SEVERITY_WARNING_VALUEWarning events might cause problems.
SEVERITY_WARNING = 400;
- See Also:
-
SEVERITY_ERROR_VALUE
public static final int SEVERITY_ERROR_VALUEError events are likely to cause problems.
SEVERITY_ERROR = 500;
- See Also:
-
SEVERITY_CRITICAL_VALUE
public static final int SEVERITY_CRITICAL_VALUECritical events cause more severe problems or outages.
SEVERITY_CRITICAL = 600;
- See Also:
-
SEVERITY_ALERT_VALUE
public static final int SEVERITY_ALERT_VALUEA person must take an action immediately.
SEVERITY_ALERT = 700;
- See Also:
-
SEVERITY_EMERGENCY_VALUE
public static final int SEVERITY_EMERGENCY_VALUEOne or more systems are unusable.
SEVERITY_EMERGENCY = 800;
- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getNumber
public final int getNumber()Description copied from interface:ProtocolMessageEnum
Return the value's numeric value as defined in the .proto file.- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfaceProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
forNumber
- Parameters:
value
- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
Description copied from interface:ProtocolMessageEnum
Return the value's descriptor, which contains information such as value name, number, and type.- Specified by:
getValueDescriptor
in interfaceProtocolMessageEnum
-
getDescriptorForType
Description copied from interface:ProtocolMessageEnum
Return the enum type's descriptor, which contains information about each defined value, etc.- Specified by:
getDescriptorForType
in interfaceProtocolMessageEnum
-
getDescriptor
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-