/*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/logging/type/log_severity.proto
package org.apache.rocketmq.shaded.com.google.logging.type;
/**
*
*
*
* The severity of the event described in a log entry, expressed as one of the
* standard severity levels listed below. For your reference, the levels are
* assigned the listed numeric values. The effect of using numeric values other
* than those listed is undefined.
* You can filter for log entries by severity. For example, the following
* filter expression will match log entries with severities `INFO`, `NOTICE`,
* and `WARNING`:
* severity > DEBUG AND severity <= WARNING
* If you are writing log entries, you should map other severity encodings to
* one of these standard levels. For example, you might map all of Java's FINE,
* FINER, and FINEST levels to `LogSeverity.DEBUG`. You can preserve the
* original severity level in the log entry payload if you wish.
*
*
* Protobuf enum {@code google.logging.type.LogSeverity}
*/
public enum LogSeverity implements org.apache.rocketmq.shaded.com.google.protobuf.ProtocolMessageEnum {
/**
*
*
*
* (0) The log entry has no assigned severity level.
*
*
* DEFAULT = 0;
*/
DEFAULT(0),
/**
*
*
*
* (100) Debug or trace information.
*
*
* DEBUG = 100;
*/
DEBUG(100),
/**
*
*
*
* (200) Routine information, such as ongoing status or performance.
*
*
* INFO = 200;
*/
INFO(200),
/**
*
*
*
* (300) Normal but significant events, such as start up, shut down, or
* a configuration change.
*
*
* NOTICE = 300;
*/
NOTICE(300),
/**
*
*
*
* (400) Warning events might cause problems.
*
*
* WARNING = 400;
*/
WARNING(400),
/**
*
*
*
* (500) Error events are likely to cause problems.
*
*
* ERROR = 500;
*/
ERROR(500),
/**
*
*
*
* (600) Critical events cause more severe problems or outages.
*
*
* CRITICAL = 600;
*/
CRITICAL(600),
/**
*
*
*
* (700) A person must take an action immediately.
*
*
* ALERT = 700;
*/
ALERT(700),
/**
*
*
*
* (800) One or more systems are unusable.
*
*
* EMERGENCY = 800;
*/
EMERGENCY(800),
UNRECOGNIZED(-1),
;
/**
*
*
*
* (0) The log entry has no assigned severity level.
*
*
* DEFAULT = 0;
*/
public static final int DEFAULT_VALUE = 0;
/**
*
*
*
* (100) Debug or trace information.
*
*
* DEBUG = 100;
*/
public static final int DEBUG_VALUE = 100;
/**
*
*
*
* (200) Routine information, such as ongoing status or performance.
*
*
* INFO = 200;
*/
public static final int INFO_VALUE = 200;
/**
*
*
*
* (300) Normal but significant events, such as start up, shut down, or
* a configuration change.
*
*
* NOTICE = 300;
*/
public static final int NOTICE_VALUE = 300;
/**
*
*
*
* (400) Warning events might cause problems.
*
*
* WARNING = 400;
*/
public static final int WARNING_VALUE = 400;
/**
*
*
*
* (500) Error events are likely to cause problems.
*
*
* ERROR = 500;
*/
public static final int ERROR_VALUE = 500;
/**
*
*
*
* (600) Critical events cause more severe problems or outages.
*
*
* CRITICAL = 600;
*/
public static final int CRITICAL_VALUE = 600;
/**
*
*
*
* (700) A person must take an action immediately.
*
*
* ALERT = 700;
*/
public static final int ALERT_VALUE = 700;
/**
*
*
*
* (800) One or more systems are unusable.
*
*
* EMERGENCY = 800;
*/
public static final int EMERGENCY_VALUE = 800;
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 LogSeverity 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 LogSeverity forNumber(int value) {
switch (value) {
case 0:
return DEFAULT;
case 100:
return DEBUG;
case 200:
return INFO;
case 300:
return NOTICE;
case 400:
return WARNING;
case 500:
return ERROR;
case 600:
return CRITICAL;
case 700:
return ALERT;
case 800:
return EMERGENCY;
default:
return null;
}
}
public static org.apache.rocketmq.shaded.com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
return internalValueMap;
}
private static final org.apache.rocketmq.shaded.com.google.protobuf.Internal.EnumLiteMap internalValueMap =
new org.apache.rocketmq.shaded.com.google.protobuf.Internal.EnumLiteMap() {
public LogSeverity findValueByNumber(int number) {
return LogSeverity.forNumber(number);
}
};
public final org.apache.rocketmq.shaded.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 org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
return getDescriptor();
}
public static final org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
return org.apache.rocketmq.shaded.com.google.logging.type.LogSeverityProto.getDescriptor().getEnumTypes().get(0);
}
private static final LogSeverity[] VALUES = values();
public static LogSeverity valueOf(org.apache.rocketmq.shaded.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 LogSeverity(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.logging.type.LogSeverity)
}