public enum Severity extends Enum<Severity> implements ProtocolMessageEnum
Note provider assigned severity/impact ranking.Protobuf enum
grafeas.v1.Severity
Enum Constant and Description |
---|
CRITICAL
Critical severity.
|
HIGH
High severity.
|
LOW
Low severity.
|
MEDIUM
Medium severity.
|
MINIMAL
Minimal severity.
|
SEVERITY_UNSPECIFIED
Unknown.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
CRITICAL_VALUE
Critical severity.
|
static int |
HIGH_VALUE
High severity.
|
static int |
LOW_VALUE
Low severity.
|
static int |
MEDIUM_VALUE
Medium severity.
|
static int |
MINIMAL_VALUE
Minimal severity.
|
static int |
SEVERITY_UNSPECIFIED_VALUE
Unknown.
|
Modifier and Type | Method and Description |
---|---|
static Severity |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<Severity> |
internalGetValueMap() |
static Severity |
valueOf(Descriptors.EnumValueDescriptor desc) |
static Severity |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Severity |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Severity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Severity SEVERITY_UNSPECIFIED
Unknown.
SEVERITY_UNSPECIFIED = 0;
public static final Severity MINIMAL
Minimal severity.
MINIMAL = 1;
public static final Severity LOW
Low severity.
LOW = 2;
public static final Severity MEDIUM
Medium severity.
MEDIUM = 3;
public static final Severity HIGH
High severity.
HIGH = 4;
public static final Severity CRITICAL
Critical severity.
CRITICAL = 5;
public static final Severity UNRECOGNIZED
public static final int SEVERITY_UNSPECIFIED_VALUE
Unknown.
SEVERITY_UNSPECIFIED = 0;
public static final int MINIMAL_VALUE
Minimal severity.
MINIMAL = 1;
public static final int LOW_VALUE
Low severity.
LOW = 2;
public static final int MEDIUM_VALUE
Medium severity.
MEDIUM = 3;
public static final int HIGH_VALUE
High severity.
HIGH = 4;
public static final int CRITICAL_VALUE
Critical severity.
CRITICAL = 5;
public static Severity[] values()
for (Severity c : Severity.values()) System.out.println(c);
public static 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.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static Severity valueOf(int value)
forNumber(int)
instead.public static Severity forNumber(int value)
public static Internal.EnumLiteMap<Severity> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static Severity valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2019 Google LLC. All rights reserved.