public static enum Policy.ListPolicy.AllValues extends Enum<Policy.ListPolicy.AllValues> implements ProtocolMessageEnum
This enum can be used to set `Policies` that apply to all possible configuration values rather than specific values in `allowed_values` or `denied_values`. Settting this to `ALLOW` will mean this `Policy` allows all values. Similarly, setting it to `DENY` will mean no values are allowed. If set to either `ALLOW` or `DENY, `allowed_values` and `denied_values` must be unset. Setting this to `ALL_VALUES_UNSPECIFIED` allows for setting `allowed_values` and `denied_values`.Protobuf enum
google.cloud.orgpolicy.v1.Policy.ListPolicy.AllValues
Enum Constant and Description |
---|
ALL_VALUES_UNSPECIFIED
Indicates that allowed_values or denied_values must be set.
|
ALLOW
A policy with this set allows all values.
|
DENY
A policy with this set denies all values.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
ALL_VALUES_UNSPECIFIED_VALUE
Indicates that allowed_values or denied_values must be set.
|
static int |
ALLOW_VALUE
A policy with this set allows all values.
|
static int |
DENY_VALUE
A policy with this set denies all values.
|
Modifier and Type | Method and Description |
---|---|
static Policy.ListPolicy.AllValues |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<Policy.ListPolicy.AllValues> |
internalGetValueMap() |
static Policy.ListPolicy.AllValues |
valueOf(Descriptors.EnumValueDescriptor desc) |
static Policy.ListPolicy.AllValues |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Policy.ListPolicy.AllValues |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Policy.ListPolicy.AllValues[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Policy.ListPolicy.AllValues ALL_VALUES_UNSPECIFIED
Indicates that allowed_values or denied_values must be set.
ALL_VALUES_UNSPECIFIED = 0;
public static final Policy.ListPolicy.AllValues ALLOW
A policy with this set allows all values.
ALLOW = 1;
public static final Policy.ListPolicy.AllValues DENY
A policy with this set denies all values.
DENY = 2;
public static final Policy.ListPolicy.AllValues UNRECOGNIZED
public static final int ALL_VALUES_UNSPECIFIED_VALUE
Indicates that allowed_values or denied_values must be set.
ALL_VALUES_UNSPECIFIED = 0;
public static final int ALLOW_VALUE
A policy with this set allows all values.
ALLOW = 1;
public static final int DENY_VALUE
A policy with this set denies all values.
DENY = 2;
public static Policy.ListPolicy.AllValues[] values()
for (Policy.ListPolicy.AllValues c : Policy.ListPolicy.AllValues.values()) System.out.println(c);
public static Policy.ListPolicy.AllValues 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 Policy.ListPolicy.AllValues valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static Policy.ListPolicy.AllValues forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<Policy.ListPolicy.AllValues> 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 Policy.ListPolicy.AllValues valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2021 Google LLC. All rights reserved.