public static enum LocationPolicyLocation.Preference extends Enum<LocationPolicyLocation.Preference> implements com.google.protobuf.ProtocolMessageEnum
Preference for a given location. Set to either ALLOW or DENY.Protobuf enum
google.cloud.compute.v1.LocationPolicyLocation.Preference| Enum Constant and Description |
|---|
ALLOW
Location is allowed for use.
|
DENY
Location is prohibited.
|
PREFERENCE_UNSPECIFIED
Default value, unused.
|
UNDEFINED_PREFERENCE
A value indicating that the enum field is not set.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALLOW_VALUE
Location is allowed for use.
|
static int |
DENY_VALUE
Location is prohibited.
|
static int |
PREFERENCE_UNSPECIFIED_VALUE
Default value, unused.
|
static int |
UNDEFINED_PREFERENCE_VALUE
A value indicating that the enum field is not set.
|
| Modifier and Type | Method and Description |
|---|---|
static LocationPolicyLocation.Preference |
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<LocationPolicyLocation.Preference> |
internalGetValueMap() |
static LocationPolicyLocation.Preference |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static LocationPolicyLocation.Preference |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static LocationPolicyLocation.Preference |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LocationPolicyLocation.Preference[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LocationPolicyLocation.Preference UNDEFINED_PREFERENCE
A value indicating that the enum field is not set.
UNDEFINED_PREFERENCE = 0;public static final LocationPolicyLocation.Preference ALLOW
Location is allowed for use.
ALLOW = 62368553;public static final LocationPolicyLocation.Preference DENY
Location is prohibited.
DENY = 2094604;public static final LocationPolicyLocation.Preference PREFERENCE_UNSPECIFIED
Default value, unused.
PREFERENCE_UNSPECIFIED = 496219571;public static final LocationPolicyLocation.Preference UNRECOGNIZED
public static final int UNDEFINED_PREFERENCE_VALUE
A value indicating that the enum field is not set.
UNDEFINED_PREFERENCE = 0;public static final int ALLOW_VALUE
Location is allowed for use.
ALLOW = 62368553;public static final int DENY_VALUE
Location is prohibited.
DENY = 2094604;public static final int PREFERENCE_UNSPECIFIED_VALUE
Default value, unused.
PREFERENCE_UNSPECIFIED = 496219571;public static LocationPolicyLocation.Preference[] values()
for (LocationPolicyLocation.Preference c : LocationPolicyLocation.Preference.values()) System.out.println(c);
public static LocationPolicyLocation.Preference 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 LocationPolicyLocation.Preference valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static LocationPolicyLocation.Preference forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<LocationPolicyLocation.Preference> 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 LocationPolicyLocation.Preference valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.