xyz.block.ftl.v1.console.LogLevel Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: xyz/block/ftl/v1/console/console.proto
// Protobuf Java Version: 3.25.4
package xyz.block.ftl.v1.console;
/**
* Protobuf enum {@code xyz.block.ftl.v1.console.LogLevel}
*/
public enum LogLevel
implements com.google.protobuf.ProtocolMessageEnum {
/**
* LOG_LEVEL_UNKNOWN = 0;
*/
LOG_LEVEL_UNKNOWN(0),
/**
* LOG_LEVEL_TRACE = 1;
*/
LOG_LEVEL_TRACE(1),
/**
* LOG_LEVEL_DEBUG = 5;
*/
LOG_LEVEL_DEBUG(5),
/**
* LOG_LEVEL_INFO = 9;
*/
LOG_LEVEL_INFO(9),
/**
* LOG_LEVEL_WARN = 13;
*/
LOG_LEVEL_WARN(13),
/**
* LOG_LEVEL_ERROR = 17;
*/
LOG_LEVEL_ERROR(17),
UNRECOGNIZED(-1),
;
/**
* LOG_LEVEL_UNKNOWN = 0;
*/
public static final int LOG_LEVEL_UNKNOWN_VALUE = 0;
/**
* LOG_LEVEL_TRACE = 1;
*/
public static final int LOG_LEVEL_TRACE_VALUE = 1;
/**
* LOG_LEVEL_DEBUG = 5;
*/
public static final int LOG_LEVEL_DEBUG_VALUE = 5;
/**
* LOG_LEVEL_INFO = 9;
*/
public static final int LOG_LEVEL_INFO_VALUE = 9;
/**
* LOG_LEVEL_WARN = 13;
*/
public static final int LOG_LEVEL_WARN_VALUE = 13;
/**
* LOG_LEVEL_ERROR = 17;
*/
public static final int LOG_LEVEL_ERROR_VALUE = 17;
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 LogLevel 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 LogLevel forNumber(int value) {
switch (value) {
case 0: return LOG_LEVEL_UNKNOWN;
case 1: return LOG_LEVEL_TRACE;
case 5: return LOG_LEVEL_DEBUG;
case 9: return LOG_LEVEL_INFO;
case 13: return LOG_LEVEL_WARN;
case 17: return LOG_LEVEL_ERROR;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
LogLevel> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public LogLevel findValueByNumber(int number) {
return LogLevel.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 xyz.block.ftl.v1.console.Console.getDescriptor().getEnumTypes().get(1);
}
private static final LogLevel[] VALUES = values();
public static LogLevel 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 LogLevel(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:xyz.block.ftl.v1.console.LogLevel)
}