public static enum OSPolicy.Resource.FileResource.DesiredState extends Enum<OSPolicy.Resource.FileResource.DesiredState> implements com.google.protobuf.ProtocolMessageEnum
Desired state of the file.Protobuf enum
google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileResource.DesiredState| Enum Constant and Description |
|---|
ABSENT
Ensure file at path is absent.
|
CONTENTS_MATCH
Ensure the contents of the file at path matches.
|
DESIRED_STATE_UNSPECIFIED
Unspecified is invalid.
|
PRESENT
Ensure file at path is present.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
ABSENT_VALUE
Ensure file at path is absent.
|
static int |
CONTENTS_MATCH_VALUE
Ensure the contents of the file at path matches.
|
static int |
DESIRED_STATE_UNSPECIFIED_VALUE
Unspecified is invalid.
|
static int |
PRESENT_VALUE
Ensure file at path is present.
|
| Modifier and Type | Method and Description |
|---|---|
static OSPolicy.Resource.FileResource.DesiredState |
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.Resource.FileResource.DesiredState> |
internalGetValueMap() |
static OSPolicy.Resource.FileResource.DesiredState |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static OSPolicy.Resource.FileResource.DesiredState |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static OSPolicy.Resource.FileResource.DesiredState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OSPolicy.Resource.FileResource.DesiredState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OSPolicy.Resource.FileResource.DesiredState DESIRED_STATE_UNSPECIFIED
Unspecified is invalid.
DESIRED_STATE_UNSPECIFIED = 0;public static final OSPolicy.Resource.FileResource.DesiredState PRESENT
Ensure file at path is present.
PRESENT = 1;public static final OSPolicy.Resource.FileResource.DesiredState ABSENT
Ensure file at path is absent.
ABSENT = 2;public static final OSPolicy.Resource.FileResource.DesiredState CONTENTS_MATCH
Ensure the contents of the file at path matches. If the file does not exist it will be created.
CONTENTS_MATCH = 3;public static final OSPolicy.Resource.FileResource.DesiredState UNRECOGNIZED
public static final int DESIRED_STATE_UNSPECIFIED_VALUE
Unspecified is invalid.
DESIRED_STATE_UNSPECIFIED = 0;public static final int PRESENT_VALUE
Ensure file at path is present.
PRESENT = 1;public static final int ABSENT_VALUE
Ensure file at path is absent.
ABSENT = 2;public static final int CONTENTS_MATCH_VALUE
Ensure the contents of the file at path matches. If the file does not exist it will be created.
CONTENTS_MATCH = 3;public static OSPolicy.Resource.FileResource.DesiredState[] values()
for (OSPolicy.Resource.FileResource.DesiredState c : OSPolicy.Resource.FileResource.DesiredState.values()) System.out.println(c);
public static OSPolicy.Resource.FileResource.DesiredState 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.Resource.FileResource.DesiredState valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static OSPolicy.Resource.FileResource.DesiredState forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<OSPolicy.Resource.FileResource.DesiredState> 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.Resource.FileResource.DesiredState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.