public static enum ViolationInfo.PolicyType extends Enum<ViolationInfo.PolicyType> implements com.google.protobuf.ProtocolMessageEnum
Policy Type enumProtobuf enum
google.cloud.audit.ViolationInfo.PolicyType| Enum Constant and Description |
|---|
BOOLEAN_CONSTRAINT
Indicates boolean policy constraint
|
CUSTOM_CONSTRAINT
Indicates custom policy constraint
|
LIST_CONSTRAINT
Indicates list policy constraint
|
POLICY_TYPE_UNSPECIFIED
Default value.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
BOOLEAN_CONSTRAINT_VALUE
Indicates boolean policy constraint
|
static int |
CUSTOM_CONSTRAINT_VALUE
Indicates custom policy constraint
|
static int |
LIST_CONSTRAINT_VALUE
Indicates list policy constraint
|
static int |
POLICY_TYPE_UNSPECIFIED_VALUE
Default value.
|
| Modifier and Type | Method and Description |
|---|---|
static ViolationInfo.PolicyType |
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<ViolationInfo.PolicyType> |
internalGetValueMap() |
static ViolationInfo.PolicyType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static ViolationInfo.PolicyType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static ViolationInfo.PolicyType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ViolationInfo.PolicyType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ViolationInfo.PolicyType POLICY_TYPE_UNSPECIFIED
Default value. This value should not be used.
POLICY_TYPE_UNSPECIFIED = 0;public static final ViolationInfo.PolicyType BOOLEAN_CONSTRAINT
Indicates boolean policy constraint
BOOLEAN_CONSTRAINT = 1;public static final ViolationInfo.PolicyType LIST_CONSTRAINT
Indicates list policy constraint
LIST_CONSTRAINT = 2;public static final ViolationInfo.PolicyType CUSTOM_CONSTRAINT
Indicates custom policy constraint
CUSTOM_CONSTRAINT = 3;public static final ViolationInfo.PolicyType UNRECOGNIZED
public static final int POLICY_TYPE_UNSPECIFIED_VALUE
Default value. This value should not be used.
POLICY_TYPE_UNSPECIFIED = 0;public static final int BOOLEAN_CONSTRAINT_VALUE
Indicates boolean policy constraint
BOOLEAN_CONSTRAINT = 1;public static final int LIST_CONSTRAINT_VALUE
Indicates list policy constraint
LIST_CONSTRAINT = 2;public static final int CUSTOM_CONSTRAINT_VALUE
Indicates custom policy constraint
CUSTOM_CONSTRAINT = 3;public static ViolationInfo.PolicyType[] values()
for (ViolationInfo.PolicyType c : ViolationInfo.PolicyType.values()) System.out.println(c);
public static ViolationInfo.PolicyType 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 ViolationInfo.PolicyType valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static ViolationInfo.PolicyType forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<ViolationInfo.PolicyType> 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 ViolationInfo.PolicyType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.