Package com.google.cloud.compute.v1
Enum UsableSubnetwork.Purpose
- java.lang.Object
-
- java.lang.Enum<UsableSubnetwork.Purpose>
-
- com.google.cloud.compute.v1.UsableSubnetwork.Purpose
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<UsableSubnetwork.Purpose>
- Enclosing class:
- UsableSubnetwork
public static enum UsableSubnetwork.Purpose extends Enum<UsableSubnetwork.Purpose> implements com.google.protobuf.ProtocolMessageEnum
The purpose of the resource. This field can be either PRIVATE, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or INTERNAL_HTTPS_LOAD_BALANCER. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. A subnet with purpose set to REGIONAL_MANAGED_PROXY is a user-created subnetwork that is reserved for regional Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a proxy-only subnet that can be used only by regional internal HTTP(S) load balancers. Note that REGIONAL_MANAGED_PROXY is the preferred setting for all regional Envoy load balancers. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
Protobuf enumgoogle.cloud.compute.v1.UsableSubnetwork.Purpose
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INTERNAL_HTTPS_LOAD_BALANCER
Subnet reserved for Internal HTTP(S) Load Balancing.PRIVATE
Regular user created or automatically created subnet.PRIVATE_RFC_1918
Regular user created or automatically created subnet.PRIVATE_SERVICE_CONNECT
Subnetworks created for Private Service Connect in the producer network.REGIONAL_MANAGED_PROXY
Subnetwork used for Regional Internal/External HTTP(S) Load Balancing.UNDEFINED_PURPOSE
A value indicating that the enum field is not set.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static int
INTERNAL_HTTPS_LOAD_BALANCER_VALUE
Subnet reserved for Internal HTTP(S) Load Balancing.static int
PRIVATE_RFC_1918_VALUE
Regular user created or automatically created subnet.static int
PRIVATE_SERVICE_CONNECT_VALUE
Subnetworks created for Private Service Connect in the producer network.static int
PRIVATE_VALUE
Regular user created or automatically created subnet.static int
REGIONAL_MANAGED_PROXY_VALUE
Subnetwork used for Regional Internal/External HTTP(S) Load Balancing.static int
UNDEFINED_PURPOSE_VALUE
A value indicating that the enum field is not set.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static UsableSubnetwork.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<UsableSubnetwork.Purpose>
internalGetValueMap()
static UsableSubnetwork.Purpose
valueOf(int value)
Deprecated.static UsableSubnetwork.Purpose
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static UsableSubnetwork.Purpose
valueOf(String name)
Returns the enum constant of this type with the specified name.static UsableSubnetwork.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 UsableSubnetwork.Purpose UNDEFINED_PURPOSE
A value indicating that the enum field is not set.
UNDEFINED_PURPOSE = 0;
-
INTERNAL_HTTPS_LOAD_BALANCER
public static final UsableSubnetwork.Purpose INTERNAL_HTTPS_LOAD_BALANCER
Subnet reserved for Internal HTTP(S) Load Balancing.
INTERNAL_HTTPS_LOAD_BALANCER = 248748889;
-
PRIVATE
public static final UsableSubnetwork.Purpose PRIVATE
Regular user created or automatically created subnet.
PRIVATE = 403485027;
-
PRIVATE_RFC_1918
public static final UsableSubnetwork.Purpose PRIVATE_RFC_1918
Regular user created or automatically created subnet.
PRIVATE_RFC_1918 = 254902107;
-
PRIVATE_SERVICE_CONNECT
public static final UsableSubnetwork.Purpose PRIVATE_SERVICE_CONNECT
Subnetworks created for Private Service Connect in the producer network.
PRIVATE_SERVICE_CONNECT = 48134724;
-
REGIONAL_MANAGED_PROXY
public static final UsableSubnetwork.Purpose REGIONAL_MANAGED_PROXY
Subnetwork used for Regional Internal/External HTTP(S) Load Balancing.
REGIONAL_MANAGED_PROXY = 153049966;
-
UNRECOGNIZED
public static final UsableSubnetwork.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
-
INTERNAL_HTTPS_LOAD_BALANCER_VALUE
public static final int INTERNAL_HTTPS_LOAD_BALANCER_VALUE
Subnet reserved for Internal HTTP(S) Load Balancing.
INTERNAL_HTTPS_LOAD_BALANCER = 248748889;
- See Also:
- Constant Field Values
-
PRIVATE_VALUE
public static final int PRIVATE_VALUE
Regular user created or automatically created subnet.
PRIVATE = 403485027;
- See Also:
- Constant Field Values
-
PRIVATE_RFC_1918_VALUE
public static final int PRIVATE_RFC_1918_VALUE
Regular user created or automatically created subnet.
PRIVATE_RFC_1918 = 254902107;
- See Also:
- Constant Field Values
-
PRIVATE_SERVICE_CONNECT_VALUE
public static final int PRIVATE_SERVICE_CONNECT_VALUE
Subnetworks created for Private Service Connect in the producer network.
PRIVATE_SERVICE_CONNECT = 48134724;
- See Also:
- Constant Field Values
-
REGIONAL_MANAGED_PROXY_VALUE
public static final int REGIONAL_MANAGED_PROXY_VALUE
Subnetwork used for Regional Internal/External HTTP(S) Load Balancing.
REGIONAL_MANAGED_PROXY = 153049966;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static UsableSubnetwork.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 (UsableSubnetwork.Purpose c : UsableSubnetwork.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 UsableSubnetwork.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 UsableSubnetwork.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 UsableSubnetwork.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<UsableSubnetwork.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 UsableSubnetwork.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
-
-