io.opentelemetry.proto.logs.v1.SeverityNumber Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: opentelemetry/proto/logs/v1/logs.proto
package io.opentelemetry.proto.logs.v1;
/**
*
* Possible values for LogRecord.SeverityNumber.
*
*
* Protobuf enum {@code opentelemetry.proto.logs.v1.SeverityNumber}
*/
public enum SeverityNumber
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* UNSPECIFIED is the default SeverityNumber, it MUST NOT be used.
*
*
* SEVERITY_NUMBER_UNSPECIFIED = 0;
*/
SEVERITY_NUMBER_UNSPECIFIED(0),
/**
* SEVERITY_NUMBER_TRACE = 1;
*/
SEVERITY_NUMBER_TRACE(1),
/**
* SEVERITY_NUMBER_TRACE2 = 2;
*/
SEVERITY_NUMBER_TRACE2(2),
/**
* SEVERITY_NUMBER_TRACE3 = 3;
*/
SEVERITY_NUMBER_TRACE3(3),
/**
* SEVERITY_NUMBER_TRACE4 = 4;
*/
SEVERITY_NUMBER_TRACE4(4),
/**
* SEVERITY_NUMBER_DEBUG = 5;
*/
SEVERITY_NUMBER_DEBUG(5),
/**
* SEVERITY_NUMBER_DEBUG2 = 6;
*/
SEVERITY_NUMBER_DEBUG2(6),
/**
* SEVERITY_NUMBER_DEBUG3 = 7;
*/
SEVERITY_NUMBER_DEBUG3(7),
/**
* SEVERITY_NUMBER_DEBUG4 = 8;
*/
SEVERITY_NUMBER_DEBUG4(8),
/**
* SEVERITY_NUMBER_INFO = 9;
*/
SEVERITY_NUMBER_INFO(9),
/**
* SEVERITY_NUMBER_INFO2 = 10;
*/
SEVERITY_NUMBER_INFO2(10),
/**
* SEVERITY_NUMBER_INFO3 = 11;
*/
SEVERITY_NUMBER_INFO3(11),
/**
* SEVERITY_NUMBER_INFO4 = 12;
*/
SEVERITY_NUMBER_INFO4(12),
/**
* SEVERITY_NUMBER_WARN = 13;
*/
SEVERITY_NUMBER_WARN(13),
/**
* SEVERITY_NUMBER_WARN2 = 14;
*/
SEVERITY_NUMBER_WARN2(14),
/**
* SEVERITY_NUMBER_WARN3 = 15;
*/
SEVERITY_NUMBER_WARN3(15),
/**
* SEVERITY_NUMBER_WARN4 = 16;
*/
SEVERITY_NUMBER_WARN4(16),
/**
* SEVERITY_NUMBER_ERROR = 17;
*/
SEVERITY_NUMBER_ERROR(17),
/**
* SEVERITY_NUMBER_ERROR2 = 18;
*/
SEVERITY_NUMBER_ERROR2(18),
/**
* SEVERITY_NUMBER_ERROR3 = 19;
*/
SEVERITY_NUMBER_ERROR3(19),
/**
* SEVERITY_NUMBER_ERROR4 = 20;
*/
SEVERITY_NUMBER_ERROR4(20),
/**
* SEVERITY_NUMBER_FATAL = 21;
*/
SEVERITY_NUMBER_FATAL(21),
/**
* SEVERITY_NUMBER_FATAL2 = 22;
*/
SEVERITY_NUMBER_FATAL2(22),
/**
* SEVERITY_NUMBER_FATAL3 = 23;
*/
SEVERITY_NUMBER_FATAL3(23),
/**
* SEVERITY_NUMBER_FATAL4 = 24;
*/
SEVERITY_NUMBER_FATAL4(24),
UNRECOGNIZED(-1),
;
/**
*
* UNSPECIFIED is the default SeverityNumber, it MUST NOT be used.
*
*
* SEVERITY_NUMBER_UNSPECIFIED = 0;
*/
public static final int SEVERITY_NUMBER_UNSPECIFIED_VALUE = 0;
/**
* SEVERITY_NUMBER_TRACE = 1;
*/
public static final int SEVERITY_NUMBER_TRACE_VALUE = 1;
/**
* SEVERITY_NUMBER_TRACE2 = 2;
*/
public static final int SEVERITY_NUMBER_TRACE2_VALUE = 2;
/**
* SEVERITY_NUMBER_TRACE3 = 3;
*/
public static final int SEVERITY_NUMBER_TRACE3_VALUE = 3;
/**
* SEVERITY_NUMBER_TRACE4 = 4;
*/
public static final int SEVERITY_NUMBER_TRACE4_VALUE = 4;
/**
* SEVERITY_NUMBER_DEBUG = 5;
*/
public static final int SEVERITY_NUMBER_DEBUG_VALUE = 5;
/**
* SEVERITY_NUMBER_DEBUG2 = 6;
*/
public static final int SEVERITY_NUMBER_DEBUG2_VALUE = 6;
/**
* SEVERITY_NUMBER_DEBUG3 = 7;
*/
public static final int SEVERITY_NUMBER_DEBUG3_VALUE = 7;
/**
* SEVERITY_NUMBER_DEBUG4 = 8;
*/
public static final int SEVERITY_NUMBER_DEBUG4_VALUE = 8;
/**
* SEVERITY_NUMBER_INFO = 9;
*/
public static final int SEVERITY_NUMBER_INFO_VALUE = 9;
/**
* SEVERITY_NUMBER_INFO2 = 10;
*/
public static final int SEVERITY_NUMBER_INFO2_VALUE = 10;
/**
* SEVERITY_NUMBER_INFO3 = 11;
*/
public static final int SEVERITY_NUMBER_INFO3_VALUE = 11;
/**
* SEVERITY_NUMBER_INFO4 = 12;
*/
public static final int SEVERITY_NUMBER_INFO4_VALUE = 12;
/**
* SEVERITY_NUMBER_WARN = 13;
*/
public static final int SEVERITY_NUMBER_WARN_VALUE = 13;
/**
* SEVERITY_NUMBER_WARN2 = 14;
*/
public static final int SEVERITY_NUMBER_WARN2_VALUE = 14;
/**
* SEVERITY_NUMBER_WARN3 = 15;
*/
public static final int SEVERITY_NUMBER_WARN3_VALUE = 15;
/**
* SEVERITY_NUMBER_WARN4 = 16;
*/
public static final int SEVERITY_NUMBER_WARN4_VALUE = 16;
/**
* SEVERITY_NUMBER_ERROR = 17;
*/
public static final int SEVERITY_NUMBER_ERROR_VALUE = 17;
/**
* SEVERITY_NUMBER_ERROR2 = 18;
*/
public static final int SEVERITY_NUMBER_ERROR2_VALUE = 18;
/**
* SEVERITY_NUMBER_ERROR3 = 19;
*/
public static final int SEVERITY_NUMBER_ERROR3_VALUE = 19;
/**
* SEVERITY_NUMBER_ERROR4 = 20;
*/
public static final int SEVERITY_NUMBER_ERROR4_VALUE = 20;
/**
* SEVERITY_NUMBER_FATAL = 21;
*/
public static final int SEVERITY_NUMBER_FATAL_VALUE = 21;
/**
* SEVERITY_NUMBER_FATAL2 = 22;
*/
public static final int SEVERITY_NUMBER_FATAL2_VALUE = 22;
/**
* SEVERITY_NUMBER_FATAL3 = 23;
*/
public static final int SEVERITY_NUMBER_FATAL3_VALUE = 23;
/**
* SEVERITY_NUMBER_FATAL4 = 24;
*/
public static final int SEVERITY_NUMBER_FATAL4_VALUE = 24;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static SeverityNumber valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static SeverityNumber forNumber(int value) {
switch (value) {
case 0: return SEVERITY_NUMBER_UNSPECIFIED;
case 1: return SEVERITY_NUMBER_TRACE;
case 2: return SEVERITY_NUMBER_TRACE2;
case 3: return SEVERITY_NUMBER_TRACE3;
case 4: return SEVERITY_NUMBER_TRACE4;
case 5: return SEVERITY_NUMBER_DEBUG;
case 6: return SEVERITY_NUMBER_DEBUG2;
case 7: return SEVERITY_NUMBER_DEBUG3;
case 8: return SEVERITY_NUMBER_DEBUG4;
case 9: return SEVERITY_NUMBER_INFO;
case 10: return SEVERITY_NUMBER_INFO2;
case 11: return SEVERITY_NUMBER_INFO3;
case 12: return SEVERITY_NUMBER_INFO4;
case 13: return SEVERITY_NUMBER_WARN;
case 14: return SEVERITY_NUMBER_WARN2;
case 15: return SEVERITY_NUMBER_WARN3;
case 16: return SEVERITY_NUMBER_WARN4;
case 17: return SEVERITY_NUMBER_ERROR;
case 18: return SEVERITY_NUMBER_ERROR2;
case 19: return SEVERITY_NUMBER_ERROR3;
case 20: return SEVERITY_NUMBER_ERROR4;
case 21: return SEVERITY_NUMBER_FATAL;
case 22: return SEVERITY_NUMBER_FATAL2;
case 23: return SEVERITY_NUMBER_FATAL3;
case 24: return SEVERITY_NUMBER_FATAL4;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
SeverityNumber> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public SeverityNumber findValueByNumber(int number) {
return SeverityNumber.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.opentelemetry.proto.logs.v1.LogsProto.getDescriptor().getEnumTypes().get(0);
}
private static final SeverityNumber[] VALUES = values();
public static SeverityNumber valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private SeverityNumber(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:opentelemetry.proto.logs.v1.SeverityNumber)
}