public static enum Common.Severity extends Enum<Common.Severity> implements com.google.protobuf.ProtocolMessageEnum
The severity of some unexpected outcome to an operation. Protobuf enum values must be unique across all other enumsProtobuf enum
Severity
Enum Constant and Description |
---|
ERROR_SEVERITY
ERROR_SEVERITY = 2; |
FATAL_SEVERITY
FATAL_SEVERITY = 1; |
UNKNOWN_SEVERITY
UNKNOWN_SEVERITY = 0; |
UNRECOGNIZED |
WARNING_SEVERITY
WARNING_SEVERITY = 3; |
Modifier and Type | Field and Description |
---|---|
static int |
ERROR_SEVERITY_VALUE
ERROR_SEVERITY = 2; |
static int |
FATAL_SEVERITY_VALUE
FATAL_SEVERITY = 1; |
static int |
UNKNOWN_SEVERITY_VALUE
UNKNOWN_SEVERITY = 0; |
static int |
WARNING_SEVERITY_VALUE
WARNING_SEVERITY = 3; |
Modifier and Type | Method and Description |
---|---|
static Common.Severity |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<Common.Severity> |
internalGetValueMap() |
static Common.Severity |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Common.Severity |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Common.Severity |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Common.Severity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Common.Severity UNKNOWN_SEVERITY
UNKNOWN_SEVERITY = 0;
public static final Common.Severity FATAL_SEVERITY
FATAL_SEVERITY = 1;
public static final Common.Severity ERROR_SEVERITY
ERROR_SEVERITY = 2;
public static final Common.Severity WARNING_SEVERITY
WARNING_SEVERITY = 3;
public static final Common.Severity UNRECOGNIZED
public static final int UNKNOWN_SEVERITY_VALUE
UNKNOWN_SEVERITY = 0;
public static final int FATAL_SEVERITY_VALUE
FATAL_SEVERITY = 1;
public static final int ERROR_SEVERITY_VALUE
ERROR_SEVERITY = 2;
public static final int WARNING_SEVERITY_VALUE
WARNING_SEVERITY = 3;
public static Common.Severity[] values()
for (Common.Severity c : Common.Severity.values()) System.out.println(c);
public static Common.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 com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static Common.Severity valueOf(int value)
forNumber(int)
instead.public static Common.Severity forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<Common.Severity> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Common.Severity valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.