public static enum RouterNat.NatIpAllocateOption extends Enum<RouterNat.NatIpAllocateOption> implements com.google.protobuf.ProtocolMessageEnum
Specify the NatIpAllocateOption, which can take one of the following values: - MANUAL_ONLY: Uses only Nat IP addresses provided by customers. When there are not enough specified Nat IPs, the Nat service fails for new VMs. - AUTO_ONLY: Nat IPs are allocated by Google Cloud Platform; customers can't specify any Nat IPs. When choosing AUTO_ONLY, then nat_ip should be empty.Protobuf enum
google.cloud.compute.v1.RouterNat.NatIpAllocateOption| Enum Constant and Description |
|---|
AUTO_ONLY
Nat IPs are allocated by GCP; customers can not specify any Nat IPs.
|
MANUAL_ONLY
Only use Nat IPs provided by customers.
|
UNDEFINED_NAT_IP_ALLOCATE_OPTION
A value indicating that the enum field is not set.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
AUTO_ONLY_VALUE
Nat IPs are allocated by GCP; customers can not specify any Nat IPs.
|
static int |
MANUAL_ONLY_VALUE
Only use Nat IPs provided by customers.
|
static int |
UNDEFINED_NAT_IP_ALLOCATE_OPTION_VALUE
A value indicating that the enum field is not set.
|
| Modifier and Type | Method and Description |
|---|---|
static RouterNat.NatIpAllocateOption |
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<RouterNat.NatIpAllocateOption> |
internalGetValueMap() |
static RouterNat.NatIpAllocateOption |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static RouterNat.NatIpAllocateOption |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static RouterNat.NatIpAllocateOption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RouterNat.NatIpAllocateOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RouterNat.NatIpAllocateOption UNDEFINED_NAT_IP_ALLOCATE_OPTION
A value indicating that the enum field is not set.
UNDEFINED_NAT_IP_ALLOCATE_OPTION = 0;public static final RouterNat.NatIpAllocateOption AUTO_ONLY
Nat IPs are allocated by GCP; customers can not specify any Nat IPs.
AUTO_ONLY = 182333500;public static final RouterNat.NatIpAllocateOption MANUAL_ONLY
Only use Nat IPs provided by customers. When specified Nat IPs are not enough then the Nat service fails for new VMs.
MANUAL_ONLY = 261251205;public static final RouterNat.NatIpAllocateOption UNRECOGNIZED
public static final int UNDEFINED_NAT_IP_ALLOCATE_OPTION_VALUE
A value indicating that the enum field is not set.
UNDEFINED_NAT_IP_ALLOCATE_OPTION = 0;public static final int AUTO_ONLY_VALUE
Nat IPs are allocated by GCP; customers can not specify any Nat IPs.
AUTO_ONLY = 182333500;public static final int MANUAL_ONLY_VALUE
Only use Nat IPs provided by customers. When specified Nat IPs are not enough then the Nat service fails for new VMs.
MANUAL_ONLY = 261251205;public static RouterNat.NatIpAllocateOption[] values()
for (RouterNat.NatIpAllocateOption c : RouterNat.NatIpAllocateOption.values()) System.out.println(c);
public static RouterNat.NatIpAllocateOption 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 RouterNat.NatIpAllocateOption valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static RouterNat.NatIpAllocateOption forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<RouterNat.NatIpAllocateOption> 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 RouterNat.NatIpAllocateOption valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.