Package io.grpc.channelz.v1
Enum ChannelTraceEvent.Severity
- java.lang.Object
-
- java.lang.Enum<ChannelTraceEvent.Severity>
-
- io.grpc.channelz.v1.ChannelTraceEvent.Severity
-
- All Implemented Interfaces:
Internal.EnumLite
,ProtocolMessageEnum
,Serializable
,Comparable<ChannelTraceEvent.Severity>
- Enclosing class:
- ChannelTraceEvent
public static enum ChannelTraceEvent.Severity extends Enum<ChannelTraceEvent.Severity> implements ProtocolMessageEnum
The supported severity levels of trace events.
Protobuf enumgrpc.channelz.v1.ChannelTraceEvent.Severity
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CT_ERROR
CT_ERROR = 3;
CT_INFO
CT_INFO = 1;
CT_UNKNOWN
CT_UNKNOWN = 0;
CT_WARNING
CT_WARNING = 2;
UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field 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;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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(int value)
Deprecated.static ChannelTraceEvent.Severity
valueOf(Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.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.
-
-
-
Enum Constant Detail
-
CT_UNKNOWN
public static final ChannelTraceEvent.Severity CT_UNKNOWN
CT_UNKNOWN = 0;
-
CT_INFO
public static final ChannelTraceEvent.Severity CT_INFO
CT_INFO = 1;
-
CT_WARNING
public static final ChannelTraceEvent.Severity CT_WARNING
CT_WARNING = 2;
-
CT_ERROR
public static final ChannelTraceEvent.Severity CT_ERROR
CT_ERROR = 3;
-
UNRECOGNIZED
public static final ChannelTraceEvent.Severity UNRECOGNIZED
-
-
Field Detail
-
CT_UNKNOWN_VALUE
public static final int CT_UNKNOWN_VALUE
CT_UNKNOWN = 0;
- See Also:
- Constant Field Values
-
CT_INFO_VALUE
public static final int CT_INFO_VALUE
CT_INFO = 1;
- See Also:
- Constant Field Values
-
CT_WARNING_VALUE
public static final int CT_WARNING_VALUE
CT_WARNING = 2;
- See Also:
- Constant Field Values
-
CT_ERROR_VALUE
public static final int CT_ERROR_VALUE
CT_ERROR = 3;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static ChannelTraceEvent.Severity[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ChannelTraceEvent.Severity c : ChannelTraceEvent.Severity.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ChannelTraceEvent.Severity valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumber
in interfaceInternal.EnumLite
- Specified by:
getNumber
in interfaceProtocolMessageEnum
-
valueOf
@Deprecated public static ChannelTraceEvent.Severity valueOf(int value)
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
forNumber
public static ChannelTraceEvent.Severity forNumber(int value)
- Parameters:
value
- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static Internal.EnumLiteMap<ChannelTraceEvent.Severity> internalGetValueMap()
-
getValueDescriptor
public final Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptor
in interfaceProtocolMessageEnum
-
getDescriptorForType
public final Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfaceProtocolMessageEnum
-
getDescriptor
public static final Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static ChannelTraceEvent.Severity valueOf(Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-