public static enum OSPolicy.Mode extends Enum<OSPolicy.Mode> implements com.google.protobuf.ProtocolMessageEnum
Policy modeProtobuf enum
google.cloud.osconfig.v1alpha.OSPolicy.Mode| Enum Constant and Description |
|---|
ENFORCEMENT
This mode checks if the configuration resources in the policy are in
their desired state, and if not, enforces the desired state.
|
MODE_UNSPECIFIED
Invalid mode
|
UNRECOGNIZED |
VALIDATION
This mode checks if the configuration resources in the policy are in
their desired state.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
ENFORCEMENT_VALUE
This mode checks if the configuration resources in the policy are in
their desired state, and if not, enforces the desired state.
|
static int |
MODE_UNSPECIFIED_VALUE
Invalid mode
|
static int |
VALIDATION_VALUE
This mode checks if the configuration resources in the policy are in
their desired state.
|
| Modifier and Type | Method and Description |
|---|---|
static OSPolicy.Mode |
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<OSPolicy.Mode> |
internalGetValueMap() |
static OSPolicy.Mode |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static OSPolicy.Mode |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static OSPolicy.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OSPolicy.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OSPolicy.Mode MODE_UNSPECIFIED
Invalid mode
MODE_UNSPECIFIED = 0;public static final OSPolicy.Mode VALIDATION
This mode checks if the configuration resources in the policy are in their desired state. No actions are performed if they are not in the desired state. This mode is used for reporting purposes.
VALIDATION = 1;public static final OSPolicy.Mode ENFORCEMENT
This mode checks if the configuration resources in the policy are in their desired state, and if not, enforces the desired state.
ENFORCEMENT = 2;public static final OSPolicy.Mode UNRECOGNIZED
public static final int MODE_UNSPECIFIED_VALUE
Invalid mode
MODE_UNSPECIFIED = 0;public static final int VALIDATION_VALUE
This mode checks if the configuration resources in the policy are in their desired state. No actions are performed if they are not in the desired state. This mode is used for reporting purposes.
VALIDATION = 1;public static final int ENFORCEMENT_VALUE
This mode checks if the configuration resources in the policy are in their desired state, and if not, enforces the desired state.
ENFORCEMENT = 2;public static OSPolicy.Mode[] values()
for (OSPolicy.Mode c : OSPolicy.Mode.values()) System.out.println(c);
public static OSPolicy.Mode 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 OSPolicy.Mode valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static OSPolicy.Mode forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<OSPolicy.Mode> 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 OSPolicy.Mode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.