public static enum Requirement.Severity extends java.lang.Enum<Requirement.Severity> implements com.google.protobuf.ProtocolMessageEnum
With what severity to report the issue by default.Protobuf enum
jscomp.Requirement.Severity
Enum Constant and Description |
---|
ERROR
The build fails if we are confident this is an error.
|
UNSPECIFIED
Currently treated the same as WARNING.
|
WARNING
Allows the build to continue.
|
Modifier and Type | Field and Description |
---|---|
static int |
ERROR_VALUE
The build fails if we are confident this is an error.
|
static int |
UNSPECIFIED_VALUE
Currently treated the same as WARNING.
|
static int |
WARNING_VALUE
Allows the build to continue.
|
Modifier and Type | Method and Description |
---|---|
static Requirement.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<Requirement.Severity> |
internalGetValueMap() |
static Requirement.Severity |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Requirement.Severity |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Requirement.Severity |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Requirement.Severity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Requirement.Severity UNSPECIFIED
Currently treated the same as WARNING.
UNSPECIFIED = 0;
public static final Requirement.Severity WARNING
Allows the build to continue. Can be turned into an error by setting the jscomp_error=conformanceConfig flag.
WARNING = 1;
public static final Requirement.Severity ERROR
The build fails if we are confident this is an error. This causes an error even on possible violations, e.g. when the type system is ambiguous.
ERROR = 2;
public static final int UNSPECIFIED_VALUE
Currently treated the same as WARNING.
UNSPECIFIED = 0;
public static final int WARNING_VALUE
Allows the build to continue. Can be turned into an error by setting the jscomp_error=conformanceConfig flag.
WARNING = 1;
public static final int ERROR_VALUE
The build fails if we are confident this is an error. This causes an error even on possible violations, e.g. when the type system is ambiguous.
ERROR = 2;
public static Requirement.Severity[] values()
for (Requirement.Severity c : Requirement.Severity.values()) System.out.println(c);
public static Requirement.Severity valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- 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 Requirement.Severity valueOf(int value)
forNumber(int)
instead.public static Requirement.Severity forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<Requirement.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 Requirement.Severity valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2009-2020 Google. All Rights Reserved.