public static enum LintResult.Severity extends Enum<LintResult.Severity> implements com.google.protobuf.ProtocolMessageEnum
Possible Severity values of an issued result.Protobuf enum
google.iam.admin.v1.LintResult.Severity| Enum Constant and Description |
|---|
DEPRECATED
Deprecated severity level.
|
ERROR
A validation unit returns an error only for critical issues.
|
INFO
Any informative statement which is not severe enough to raise
`ERROR`/`WARNING`/`NOTICE`, like auto-correction recommendations on the
input content.
|
NOTICE
Reserved for the issues that are not severe as `ERROR`/`WARNING`, but
need special handling.
|
SEVERITY_UNSPECIFIED
Severity is unspecified.
|
UNRECOGNIZED |
WARNING
Any issue which is severe enough but does not cause an error.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
DEPRECATED_VALUE
Deprecated severity level.
|
static int |
ERROR_VALUE
A validation unit returns an error only for critical issues.
|
static int |
INFO_VALUE
Any informative statement which is not severe enough to raise
`ERROR`/`WARNING`/`NOTICE`, like auto-correction recommendations on the
input content.
|
static int |
NOTICE_VALUE
Reserved for the issues that are not severe as `ERROR`/`WARNING`, but
need special handling.
|
static int |
SEVERITY_UNSPECIFIED_VALUE
Severity is unspecified.
|
static int |
WARNING_VALUE
Any issue which is severe enough but does not cause an error.
|
| Modifier and Type | Method and Description |
|---|---|
static LintResult.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<LintResult.Severity> |
internalGetValueMap() |
static LintResult.Severity |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static LintResult.Severity |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static LintResult.Severity |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LintResult.Severity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LintResult.Severity SEVERITY_UNSPECIFIED
Severity is unspecified.
SEVERITY_UNSPECIFIED = 0;public static final LintResult.Severity ERROR
A validation unit returns an error only for critical issues. If an attempt is made to set the problematic policy without rectifying the critical issue, it causes the `setPolicy` operation to fail.
ERROR = 1;public static final LintResult.Severity WARNING
Any issue which is severe enough but does not cause an error. For example, suspicious constructs in the input object will not necessarily fail `setPolicy`, but there is a high likelihood that they won't behave as expected during policy evaluation in `checkPolicy`. This includes the following common scenarios: - Unsatisfiable condition: Expired timestamp in date/time condition. - Ineffective condition: Condition on a <principal, role> pair which is granted unconditionally in another binding of the same policy.
WARNING = 2;public static final LintResult.Severity NOTICE
Reserved for the issues that are not severe as `ERROR`/`WARNING`, but need special handling. For instance, messages about skipped validation units are issued as `NOTICE`.
NOTICE = 3;public static final LintResult.Severity INFO
Any informative statement which is not severe enough to raise `ERROR`/`WARNING`/`NOTICE`, like auto-correction recommendations on the input content. Note that current version of the linter does not utilize `INFO`.
INFO = 4;public static final LintResult.Severity DEPRECATED
Deprecated severity level.
DEPRECATED = 5;public static final LintResult.Severity UNRECOGNIZED
public static final int SEVERITY_UNSPECIFIED_VALUE
Severity is unspecified.
SEVERITY_UNSPECIFIED = 0;public static final int ERROR_VALUE
A validation unit returns an error only for critical issues. If an attempt is made to set the problematic policy without rectifying the critical issue, it causes the `setPolicy` operation to fail.
ERROR = 1;public static final int WARNING_VALUE
Any issue which is severe enough but does not cause an error. For example, suspicious constructs in the input object will not necessarily fail `setPolicy`, but there is a high likelihood that they won't behave as expected during policy evaluation in `checkPolicy`. This includes the following common scenarios: - Unsatisfiable condition: Expired timestamp in date/time condition. - Ineffective condition: Condition on a <principal, role> pair which is granted unconditionally in another binding of the same policy.
WARNING = 2;public static final int NOTICE_VALUE
Reserved for the issues that are not severe as `ERROR`/`WARNING`, but need special handling. For instance, messages about skipped validation units are issued as `NOTICE`.
NOTICE = 3;public static final int INFO_VALUE
Any informative statement which is not severe enough to raise `ERROR`/`WARNING`/`NOTICE`, like auto-correction recommendations on the input content. Note that current version of the linter does not utilize `INFO`.
INFO = 4;public static final int DEPRECATED_VALUE
Deprecated severity level.
DEPRECATED = 5;public static LintResult.Severity[] values()
for (LintResult.Severity c : LintResult.Severity.values()) System.out.println(c);
public static LintResult.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.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static LintResult.Severity valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static LintResult.Severity forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<LintResult.Severity> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static LintResult.Severity valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.