public static enum OSPolicy.Resource.PackageResource.DesiredState extends Enum<OSPolicy.Resource.PackageResource.DesiredState> implements com.google.protobuf.ProtocolMessageEnum
The desired state that the OS Config agent maintains on the VM.Protobuf enum
google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.DesiredState| Enum Constant and Description |
|---|
DESIRED_STATE_UNSPECIFIED
Unspecified is invalid.
|
INSTALLED
Ensure that the package is installed.
|
REMOVED
The agent ensures that the package is not installed and
uninstalls it if detected.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
DESIRED_STATE_UNSPECIFIED_VALUE
Unspecified is invalid.
|
static int |
INSTALLED_VALUE
Ensure that the package is installed.
|
static int |
REMOVED_VALUE
The agent ensures that the package is not installed and
uninstalls it if detected.
|
| Modifier and Type | Method and Description |
|---|---|
static OSPolicy.Resource.PackageResource.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.PackageResource.DesiredState> |
internalGetValueMap() |
static OSPolicy.Resource.PackageResource.DesiredState |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static OSPolicy.Resource.PackageResource.DesiredState |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static OSPolicy.Resource.PackageResource.DesiredState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OSPolicy.Resource.PackageResource.DesiredState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OSPolicy.Resource.PackageResource.DesiredState DESIRED_STATE_UNSPECIFIED
Unspecified is invalid.
DESIRED_STATE_UNSPECIFIED = 0;public static final OSPolicy.Resource.PackageResource.DesiredState INSTALLED
Ensure that the package is installed.
INSTALLED = 1;public static final OSPolicy.Resource.PackageResource.DesiredState REMOVED
The agent ensures that the package is not installed and uninstalls it if detected.
REMOVED = 2;public static final OSPolicy.Resource.PackageResource.DesiredState UNRECOGNIZED
public static final int DESIRED_STATE_UNSPECIFIED_VALUE
Unspecified is invalid.
DESIRED_STATE_UNSPECIFIED = 0;public static final int INSTALLED_VALUE
Ensure that the package is installed.
INSTALLED = 1;public static final int REMOVED_VALUE
The agent ensures that the package is not installed and uninstalls it if detected.
REMOVED = 2;public static OSPolicy.Resource.PackageResource.DesiredState[] values()
for (OSPolicy.Resource.PackageResource.DesiredState c : OSPolicy.Resource.PackageResource.DesiredState.values()) System.out.println(c);
public static OSPolicy.Resource.PackageResource.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.PackageResource.DesiredState valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static OSPolicy.Resource.PackageResource.DesiredState forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<OSPolicy.Resource.PackageResource.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.PackageResource.DesiredState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.