Enum NatInfo.Type
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<NatInfo.Type>
- Enclosing class:
- NatInfo
public static enum NatInfo.Type
extends Enum<NatInfo.Type>
implements com.google.protobuf.ProtocolMessageEnum
Types of NAT.Protobuf enum
google.cloud.networkmanagement.v1beta1.NatInfo.Type-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCloud NAT Gateway.From Compute Engine instance's external address to internal address.GKE Pod IP address masquerading.From Compute Engine instance's internal address to external address.Private service connect NAT.Type is unspecified. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intCloud NAT Gateway.static final intFrom Compute Engine instance's external address to internal address.static final intGKE Pod IP address masquerading.static final intFrom Compute Engine instance's internal address to external address.static final intPrivate service connect NAT.static final intType is unspecified. -
Method Summary
Modifier and TypeMethodDescriptionstatic NatInfo.TypeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<NatInfo.Type>static NatInfo.TypevalueOf(int value) Deprecated.static NatInfo.TypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static NatInfo.TypeReturns the enum constant of this type with the specified name.static NatInfo.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
TYPE_UNSPECIFIED
Type is unspecified.
TYPE_UNSPECIFIED = 0; -
INTERNAL_TO_EXTERNAL
From Compute Engine instance's internal address to external address.
INTERNAL_TO_EXTERNAL = 1; -
EXTERNAL_TO_INTERNAL
From Compute Engine instance's external address to internal address.
EXTERNAL_TO_INTERNAL = 2; -
CLOUD_NAT
Cloud NAT Gateway.
CLOUD_NAT = 3; -
PRIVATE_SERVICE_CONNECT
Private service connect NAT.
PRIVATE_SERVICE_CONNECT = 4; -
GKE_POD_IP_MASQUERADING
GKE Pod IP address masquerading.
GKE_POD_IP_MASQUERADING = 5; -
UNRECOGNIZED
-
-
Field Details
-
TYPE_UNSPECIFIED_VALUE
public static final int TYPE_UNSPECIFIED_VALUEType is unspecified.
TYPE_UNSPECIFIED = 0;- See Also:
-
INTERNAL_TO_EXTERNAL_VALUE
public static final int INTERNAL_TO_EXTERNAL_VALUEFrom Compute Engine instance's internal address to external address.
INTERNAL_TO_EXTERNAL = 1;- See Also:
-
EXTERNAL_TO_INTERNAL_VALUE
public static final int EXTERNAL_TO_INTERNAL_VALUEFrom Compute Engine instance's external address to internal address.
EXTERNAL_TO_INTERNAL = 2;- See Also:
-
CLOUD_NAT_VALUE
public static final int CLOUD_NAT_VALUECloud NAT Gateway.
CLOUD_NAT = 3;- See Also:
-
PRIVATE_SERVICE_CONNECT_VALUE
public static final int PRIVATE_SERVICE_CONNECT_VALUEPrivate service connect NAT.
PRIVATE_SERVICE_CONNECT = 4;- See Also:
-
GKE_POD_IP_MASQUERADING_VALUE
public static final int GKE_POD_IP_MASQUERADING_VALUEGKE Pod IP address masquerading.
GKE_POD_IP_MASQUERADING = 5;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-