public static enum RouterNat.Type extends Enum<RouterNat.Type> implements com.google.protobuf.ProtocolMessageEnum
Indicates whether this NAT is used for public or private IP translation. If unspecified, it defaults to PUBLIC.Protobuf enum
google.cloud.compute.v1.RouterNat.Type| Enum Constant and Description |
|---|
PRIVATE
NAT used for private IP translation.
|
PUBLIC
NAT used for public IP translation.
|
UNDEFINED_TYPE
A value indicating that the enum field is not set.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
PRIVATE_VALUE
NAT used for private IP translation.
|
static int |
PUBLIC_VALUE
NAT used for public IP translation.
|
static int |
UNDEFINED_TYPE_VALUE
A value indicating that the enum field is not set.
|
| Modifier and Type | Method and Description |
|---|---|
static RouterNat.Type |
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.Type> |
internalGetValueMap() |
static RouterNat.Type |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static RouterNat.Type |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static RouterNat.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RouterNat.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RouterNat.Type UNDEFINED_TYPE
A value indicating that the enum field is not set.
UNDEFINED_TYPE = 0;public static final RouterNat.Type PRIVATE
NAT used for private IP translation.
PRIVATE = 403485027;public static final RouterNat.Type PUBLIC
NAT used for public IP translation. This is the default.
PUBLIC = 223389289;public static final RouterNat.Type UNRECOGNIZED
public static final int UNDEFINED_TYPE_VALUE
A value indicating that the enum field is not set.
UNDEFINED_TYPE = 0;public static final int PRIVATE_VALUE
NAT used for private IP translation.
PRIVATE = 403485027;public static final int PUBLIC_VALUE
NAT used for public IP translation. This is the default.
PUBLIC = 223389289;public static RouterNat.Type[] values()
for (RouterNat.Type c : RouterNat.Type.values()) System.out.println(c);
public static RouterNat.Type 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.Type valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static RouterNat.Type forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<RouterNat.Type> 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.Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.