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_BALANCERSubnet reserved for Internal HTTP(S) Load Balancing.PRIVATERegular user created or automatically created subnet.PRIVATE_RFC_1918Regular user created or automatically created subnet.PRIVATE_SERVICE_CONNECTSubnetworks created for Private Service Connect in the producer network.REGIONAL_MANAGED_PROXYSubnetwork used for Regional Internal/External HTTP(S) Load Balancing.UNDEFINED_PURPOSEA value indicating that the enum field is not set.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intINTERNAL_HTTPS_LOAD_BALANCER_VALUESubnet reserved for Internal HTTP(S) Load Balancing.static intPRIVATE_RFC_1918_VALUERegular user created or automatically created subnet.static intPRIVATE_SERVICE_CONNECT_VALUESubnetworks created for Private Service Connect in the producer network.static intPRIVATE_VALUERegular user created or automatically created subnet.static intREGIONAL_MANAGED_PROXY_VALUESubnetwork used for Regional Internal/External HTTP(S) Load Balancing.static intUNDEFINED_PURPOSE_VALUEA 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.PurposeforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<UsableSubnetwork.Purpose>internalGetValueMap()static UsableSubnetwork.PurposevalueOf(int value)Deprecated.static UsableSubnetwork.PurposevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static UsableSubnetwork.PurposevalueOf(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:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin 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:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein 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
-
-