Package com.google.cloud.compute.v1
Enum BackendService.IpAddressSelectionPolicy
java.lang.Object
java.lang.Enum<BackendService.IpAddressSelectionPolicy>
com.google.cloud.compute.v1.BackendService.IpAddressSelectionPolicy
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<BackendService.IpAddressSelectionPolicy>
- Enclosing class:
- BackendService
public static enum BackendService.IpAddressSelectionPolicy
extends Enum<BackendService.IpAddressSelectionPolicy>
implements com.google.protobuf.ProtocolMessageEnum
Specifies a preference for traffic sent from the proxy to the backend (or from the client to the backend for proxyless gRPC). The possible values are: - IPV4_ONLY: Only send IPv4 traffic to the backends of the backend service (Instance Group, Managed Instance Group, Network Endpoint Group), regardless of traffic from the client to the proxy. Only IPv4 health checks are used to check the health of the backends. This is the default setting. - PREFER_IPV6: Prioritize the connection to the endpoint's IPv6 address over its IPv4 address (provided there is a healthy IPv6 address). - IPV6_ONLY: Only send IPv6 traffic to the backends of the backend service (Instance Group, Managed Instance Group, Network Endpoint Group), regardless of traffic from the client to the proxy. Only IPv6 health checks are used to check the health of the backends. This field is applicable to either: - Advanced global external Application Load Balancer (load balancing scheme EXTERNAL_MANAGED), - Regional external Application Load Balancer, - Internal proxy Network Load Balancer (load balancing scheme INTERNAL_MANAGED), - Regional internal Application Load Balancer (load balancing scheme INTERNAL_MANAGED), - Traffic Director with Envoy proxies and proxyless gRPC (load balancing scheme INTERNAL_SELF_MANAGED).Protobuf enum
google.cloud.compute.v1.BackendService.IpAddressSelectionPolicy-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUnspecified IP address selection policy.Only send IPv4 traffic to the backends of the Backend Service (Instance Group, Managed Instance Group, Network Endpoint Group) regardless of traffic from the client to the proxy.Only send IPv6 traffic to the backends of the Backend Service (Instance Group, Managed Instance Group, Network Endpoint Group) regardless of traffic from the client to the proxy.Prioritize the connection to the endpoints IPv6 address over its IPv4 address (provided there is a healthy IPv6 address).A value indicating that the enum field is not set. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intUnspecified IP address selection policy.static final intOnly send IPv4 traffic to the backends of the Backend Service (Instance Group, Managed Instance Group, Network Endpoint Group) regardless of traffic from the client to the proxy.static final intOnly send IPv6 traffic to the backends of the Backend Service (Instance Group, Managed Instance Group, Network Endpoint Group) regardless of traffic from the client to the proxy.static final intPrioritize the connection to the endpoints IPv6 address over its IPv4 address (provided there is a healthy IPv6 address).static final intA value indicating that the enum field is not set. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<BackendService.IpAddressSelectionPolicy>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNDEFINED_IP_ADDRESS_SELECTION_POLICY
A value indicating that the enum field is not set.
UNDEFINED_IP_ADDRESS_SELECTION_POLICY = 0; -
IPV4_ONLY
Only send IPv4 traffic to the backends of the Backend Service (Instance Group, Managed Instance Group, Network Endpoint Group) regardless of traffic from the client to the proxy. Only IPv4 health-checks are used to check the health of the backends. This is the default setting.
IPV4_ONLY = 22373798; -
IPV6_ONLY
Only send IPv6 traffic to the backends of the Backend Service (Instance Group, Managed Instance Group, Network Endpoint Group) regardless of traffic from the client to the proxy. Only IPv6 health-checks are used to check the health of the backends.
IPV6_ONLY = 79632100; -
IP_ADDRESS_SELECTION_POLICY_UNSPECIFIED
Unspecified IP address selection policy.
IP_ADDRESS_SELECTION_POLICY_UNSPECIFIED = 36210144; -
PREFER_IPV6
Prioritize the connection to the endpoints IPv6 address over its IPv4 address (provided there is a healthy IPv6 address).
PREFER_IPV6 = 408601302; -
UNRECOGNIZED
-
-
Field Details
-
UNDEFINED_IP_ADDRESS_SELECTION_POLICY_VALUE
public static final int UNDEFINED_IP_ADDRESS_SELECTION_POLICY_VALUEA value indicating that the enum field is not set.
UNDEFINED_IP_ADDRESS_SELECTION_POLICY = 0;- See Also:
-
IPV4_ONLY_VALUE
public static final int IPV4_ONLY_VALUEOnly send IPv4 traffic to the backends of the Backend Service (Instance Group, Managed Instance Group, Network Endpoint Group) regardless of traffic from the client to the proxy. Only IPv4 health-checks are used to check the health of the backends. This is the default setting.
IPV4_ONLY = 22373798;- See Also:
-
IPV6_ONLY_VALUE
public static final int IPV6_ONLY_VALUEOnly send IPv6 traffic to the backends of the Backend Service (Instance Group, Managed Instance Group, Network Endpoint Group) regardless of traffic from the client to the proxy. Only IPv6 health-checks are used to check the health of the backends.
IPV6_ONLY = 79632100;- See Also:
-
IP_ADDRESS_SELECTION_POLICY_UNSPECIFIED_VALUE
public static final int IP_ADDRESS_SELECTION_POLICY_UNSPECIFIED_VALUEUnspecified IP address selection policy.
IP_ADDRESS_SELECTION_POLICY_UNSPECIFIED = 36210144;- See Also:
-
PREFER_IPV6_VALUE
public static final int PREFER_IPV6_VALUEPrioritize the connection to the endpoints IPv6 address over its IPv4 address (provided there is a healthy IPv6 address).
PREFER_IPV6 = 408601302;- 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
public static com.google.protobuf.Internal.EnumLiteMap<BackendService.IpAddressSelectionPolicy> 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
public static BackendService.IpAddressSelectionPolicy 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
-