Package com.google.cloud.compute.v1
Enum Address.Purpose
- java.lang.Object
-
- java.lang.Enum<Address.Purpose>
-
- com.google.cloud.compute.v1.Address.Purpose
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<Address.Purpose>
- Enclosing class:
- Address
public static enum Address.Purpose extends Enum<Address.Purpose> implements com.google.protobuf.ProtocolMessageEnum
The purpose of this resource, which can be one of the following values: - GCE_ENDPOINT for addresses that are used by VM instances, alias IP ranges, load balancers, and similar resources. - DNS_RESOLVER for a DNS resolver address in a subnetwork for a Cloud DNS inbound forwarder IP addresses (regional internal IP address in a subnet of a VPC network) - VPC_PEERING for global internal IP addresses used for private services access allocated ranges. - NAT_AUTO for the regional external IP addresses used by Cloud NAT when allocating addresses using automatic NAT IP address allocation. - IPSEC_INTERCONNECT for addresses created from a private IP range that are reserved for a VLAN attachment in an *HA VPN over Cloud Interconnect* configuration. These addresses are regional resources. - `SHARED_LOADBALANCER_VIP` for an internal IP address that is assigned to multiple internal forwarding rules. - `PRIVATE_SERVICE_CONNECT` for a private network address that is used to configure Private Service Connect. Only global internal addresses can use this purpose.
Protobuf enumgoogle.cloud.compute.v1.Address.Purpose
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DNS_RESOLVER
DNS resolver address in the subnetwork.GCE_ENDPOINT
VM internal/alias IP, Internal LB service IP, etc.IPSEC_INTERCONNECT
A regional internal IP address range reserved for the VLAN attachment that is used in HA VPN over Cloud Interconnect.NAT_AUTO
External IP automatically reserved for Cloud NAT.PRIVATE_SERVICE_CONNECT
A private network IP address that can be used to configure Private Service Connect.SERVERLESS
A regional internal IP address range reserved for Serverless.SHARED_LOADBALANCER_VIP
A private network IP address that can be shared by multiple Internal Load Balancer forwarding rules.UNDEFINED_PURPOSE
A value indicating that the enum field is not set.UNRECOGNIZED
VPC_PEERING
IP range for peer networks.
-
Field Summary
Fields Modifier and Type Field Description static int
DNS_RESOLVER_VALUE
DNS resolver address in the subnetwork.static int
GCE_ENDPOINT_VALUE
VM internal/alias IP, Internal LB service IP, etc.static int
IPSEC_INTERCONNECT_VALUE
A regional internal IP address range reserved for the VLAN attachment that is used in HA VPN over Cloud Interconnect.static int
NAT_AUTO_VALUE
External IP automatically reserved for Cloud NAT.static int
PRIVATE_SERVICE_CONNECT_VALUE
A private network IP address that can be used to configure Private Service Connect.static int
SERVERLESS_VALUE
A regional internal IP address range reserved for Serverless.static int
SHARED_LOADBALANCER_VIP_VALUE
A private network IP address that can be shared by multiple Internal Load Balancer forwarding rules.static int
UNDEFINED_PURPOSE_VALUE
A value indicating that the enum field is not set.static int
VPC_PEERING_VALUE
IP range for peer networks.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Address.Purpose
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<Address.Purpose>
internalGetValueMap()
static Address.Purpose
valueOf(int value)
Deprecated.static Address.Purpose
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static Address.Purpose
valueOf(String name)
Returns the enum constant of this type with the specified name.static Address.Purpose[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNDEFINED_PURPOSE
public static final Address.Purpose UNDEFINED_PURPOSE
A value indicating that the enum field is not set.
UNDEFINED_PURPOSE = 0;
-
DNS_RESOLVER
public static final Address.Purpose DNS_RESOLVER
DNS resolver address in the subnetwork.
DNS_RESOLVER = 476114556;
-
GCE_ENDPOINT
public static final Address.Purpose GCE_ENDPOINT
VM internal/alias IP, Internal LB service IP, etc.
GCE_ENDPOINT = 230515243;
-
IPSEC_INTERCONNECT
public static final Address.Purpose IPSEC_INTERCONNECT
A regional internal IP address range reserved for the VLAN attachment that is used in HA VPN over Cloud Interconnect. This regional internal IP address range must not overlap with any IP address range of subnet/route in the VPC network and its peering networks. After the VLAN attachment is created with the reserved IP address range, when creating a new VPN gateway, its interface IP address is allocated from the associated VLAN attachment’s IP address range.
IPSEC_INTERCONNECT = 340437251;
-
NAT_AUTO
public static final Address.Purpose NAT_AUTO
External IP automatically reserved for Cloud NAT.
NAT_AUTO = 163666477;
-
PRIVATE_SERVICE_CONNECT
public static final Address.Purpose PRIVATE_SERVICE_CONNECT
A private network IP address that can be used to configure Private Service Connect. This purpose can be specified only for GLOBAL addresses of Type INTERNAL
PRIVATE_SERVICE_CONNECT = 48134724;
-
SERVERLESS
public static final Address.Purpose SERVERLESS
A regional internal IP address range reserved for Serverless.
SERVERLESS = 270492508;
-
SHARED_LOADBALANCER_VIP
public static final Address.Purpose SHARED_LOADBALANCER_VIP
A private network IP address that can be shared by multiple Internal Load Balancer forwarding rules.
SHARED_LOADBALANCER_VIP = 294447572;
-
VPC_PEERING
public static final Address.Purpose VPC_PEERING
IP range for peer networks.
VPC_PEERING = 400800170;
-
UNRECOGNIZED
public static final Address.Purpose UNRECOGNIZED
-
-
Field Detail
-
UNDEFINED_PURPOSE_VALUE
public static final int UNDEFINED_PURPOSE_VALUE
A value indicating that the enum field is not set.
UNDEFINED_PURPOSE = 0;
- See Also:
- Constant Field Values
-
DNS_RESOLVER_VALUE
public static final int DNS_RESOLVER_VALUE
DNS resolver address in the subnetwork.
DNS_RESOLVER = 476114556;
- See Also:
- Constant Field Values
-
GCE_ENDPOINT_VALUE
public static final int GCE_ENDPOINT_VALUE
VM internal/alias IP, Internal LB service IP, etc.
GCE_ENDPOINT = 230515243;
- See Also:
- Constant Field Values
-
IPSEC_INTERCONNECT_VALUE
public static final int IPSEC_INTERCONNECT_VALUE
A regional internal IP address range reserved for the VLAN attachment that is used in HA VPN over Cloud Interconnect. This regional internal IP address range must not overlap with any IP address range of subnet/route in the VPC network and its peering networks. After the VLAN attachment is created with the reserved IP address range, when creating a new VPN gateway, its interface IP address is allocated from the associated VLAN attachment’s IP address range.
IPSEC_INTERCONNECT = 340437251;
- See Also:
- Constant Field Values
-
NAT_AUTO_VALUE
public static final int NAT_AUTO_VALUE
External IP automatically reserved for Cloud NAT.
NAT_AUTO = 163666477;
- See Also:
- Constant Field Values
-
PRIVATE_SERVICE_CONNECT_VALUE
public static final int PRIVATE_SERVICE_CONNECT_VALUE
A private network IP address that can be used to configure Private Service Connect. This purpose can be specified only for GLOBAL addresses of Type INTERNAL
PRIVATE_SERVICE_CONNECT = 48134724;
- See Also:
- Constant Field Values
-
SERVERLESS_VALUE
public static final int SERVERLESS_VALUE
A regional internal IP address range reserved for Serverless.
SERVERLESS = 270492508;
- See Also:
- Constant Field Values
-
SHARED_LOADBALANCER_VIP_VALUE
public static final int SHARED_LOADBALANCER_VIP_VALUE
A private network IP address that can be shared by multiple Internal Load Balancer forwarding rules.
SHARED_LOADBALANCER_VIP = 294447572;
- See Also:
- Constant Field Values
-
VPC_PEERING_VALUE
public static final int VPC_PEERING_VALUE
IP range for peer networks.
VPC_PEERING = 400800170;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Address.Purpose[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Address.Purpose c : Address.Purpose.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Address.Purpose valueOf(String name)
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:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static Address.Purpose valueOf(int value)
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
public static Address.Purpose forNumber(int value)
- Parameters:
value
- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<Address.Purpose> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static Address.Purpose valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
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
-
-