public static enum Constraint.ConstraintDefault extends Enum<Constraint.ConstraintDefault> implements ProtocolMessageEnum
Specifies the default behavior in the absence of any `Policy` for the `Constraint`. This must not be `CONSTRAINT_DEFAULT_UNSPECIFIED`. Immutable after creation.Protobuf enum
google.cloud.orgpolicy.v2.Constraint.ConstraintDefault
Enum Constant and Description |
---|
ALLOW
Indicate that all values are allowed for list constraints.
|
CONSTRAINT_DEFAULT_UNSPECIFIED
This is only used for distinguishing unset values and should never be
used.
|
DENY
Indicate that all values are denied for list constraints.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
ALLOW_VALUE
Indicate that all values are allowed for list constraints.
|
static int |
CONSTRAINT_DEFAULT_UNSPECIFIED_VALUE
This is only used for distinguishing unset values and should never be
used.
|
static int |
DENY_VALUE
Indicate that all values are denied for list constraints.
|
Modifier and Type | Method and Description |
---|---|
static Constraint.ConstraintDefault |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<Constraint.ConstraintDefault> |
internalGetValueMap() |
static Constraint.ConstraintDefault |
valueOf(Descriptors.EnumValueDescriptor desc) |
static Constraint.ConstraintDefault |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Constraint.ConstraintDefault |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Constraint.ConstraintDefault[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Constraint.ConstraintDefault CONSTRAINT_DEFAULT_UNSPECIFIED
This is only used for distinguishing unset values and should never be used.
CONSTRAINT_DEFAULT_UNSPECIFIED = 0;
public static final Constraint.ConstraintDefault ALLOW
Indicate that all values are allowed for list constraints. Indicate that enforcement is off for boolean constraints.
ALLOW = 1;
public static final Constraint.ConstraintDefault DENY
Indicate that all values are denied for list constraints. Indicate that enforcement is on for boolean constraints.
DENY = 2;
public static final Constraint.ConstraintDefault UNRECOGNIZED
public static final int CONSTRAINT_DEFAULT_UNSPECIFIED_VALUE
This is only used for distinguishing unset values and should never be used.
CONSTRAINT_DEFAULT_UNSPECIFIED = 0;
public static final int ALLOW_VALUE
Indicate that all values are allowed for list constraints. Indicate that enforcement is off for boolean constraints.
ALLOW = 1;
public static final int DENY_VALUE
Indicate that all values are denied for list constraints. Indicate that enforcement is on for boolean constraints.
DENY = 2;
public static Constraint.ConstraintDefault[] values()
for (Constraint.ConstraintDefault c : Constraint.ConstraintDefault.values()) System.out.println(c);
public static Constraint.ConstraintDefault 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 Constraint.ConstraintDefault valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static Constraint.ConstraintDefault forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<Constraint.ConstraintDefault> 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 Constraint.ConstraintDefault valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2021 Google LLC. All rights reserved.