public static enum ChannelTraceEvent.Severity extends Enum<ChannelTraceEvent.Severity> implements ProtocolMessageEnum
The supported severity levels of trace events.Protobuf enum
grpc.channelz.v1.ChannelTraceEvent.Severity| Enum Constant and Description |
|---|
CT_ERROR
CT_ERROR = 3; |
CT_INFO
CT_INFO = 1; |
CT_UNKNOWN
CT_UNKNOWN = 0; |
CT_WARNING
CT_WARNING = 2; |
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
CT_ERROR_VALUE
CT_ERROR = 3; |
static int |
CT_INFO_VALUE
CT_INFO = 1; |
static int |
CT_UNKNOWN_VALUE
CT_UNKNOWN = 0; |
static int |
CT_WARNING_VALUE
CT_WARNING = 2; |
| Modifier and Type | Method and Description |
|---|---|
static ChannelTraceEvent.Severity |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<ChannelTraceEvent.Severity> |
internalGetValueMap() |
static ChannelTraceEvent.Severity |
valueOf(Descriptors.EnumValueDescriptor desc) |
static ChannelTraceEvent.Severity |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static ChannelTraceEvent.Severity |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ChannelTraceEvent.Severity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChannelTraceEvent.Severity CT_UNKNOWN
CT_UNKNOWN = 0;public static final ChannelTraceEvent.Severity CT_INFO
CT_INFO = 1;public static final ChannelTraceEvent.Severity CT_WARNING
CT_WARNING = 2;public static final ChannelTraceEvent.Severity CT_ERROR
CT_ERROR = 3;public static final ChannelTraceEvent.Severity UNRECOGNIZED
public static final int CT_UNKNOWN_VALUE
CT_UNKNOWN = 0;public static final int CT_INFO_VALUE
CT_INFO = 1;public static final int CT_WARNING_VALUE
CT_WARNING = 2;public static final int CT_ERROR_VALUE
CT_ERROR = 3;public static ChannelTraceEvent.Severity[] values()
for (ChannelTraceEvent.Severity c : ChannelTraceEvent.Severity.values()) System.out.println(c);
public static ChannelTraceEvent.Severity valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface Internal.EnumLitegetNumber in interface ProtocolMessageEnum@Deprecated public static ChannelTraceEvent.Severity valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static ChannelTraceEvent.Severity forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<ChannelTraceEvent.Severity> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface ProtocolMessageEnumpublic final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface ProtocolMessageEnumpublic static final Descriptors.EnumDescriptor getDescriptor()
public static ChannelTraceEvent.Severity valueOf(Descriptors.EnumValueDescriptor desc)