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 and Description |
|---|
IP_ADDRESS_SELECTION_POLICY_UNSPECIFIED
Unspecified IP address selection policy.
|
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.
|
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.
|
PREFER_IPV6
Prioritize the connection to the endpoints IPv6 address over its IPv4 address (provided there is a healthy IPv6 address).
|
UNDEFINED_IP_ADDRESS_SELECTION_POLICY
A value indicating that the enum field is not set.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
IP_ADDRESS_SELECTION_POLICY_UNSPECIFIED_VALUE
Unspecified IP address selection policy.
|
static int |
IPV4_ONLY_VALUE
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.
|
static int |
IPV6_ONLY_VALUE
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.
|
static int |
PREFER_IPV6_VALUE
Prioritize the connection to the endpoints IPv6 address over its IPv4 address (provided there is a healthy IPv6 address).
|
static int |
UNDEFINED_IP_ADDRESS_SELECTION_POLICY_VALUE
A value indicating that the enum field is not set.
|
| Modifier and Type | Method and Description |
|---|---|
static BackendService.IpAddressSelectionPolicy |
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<BackendService.IpAddressSelectionPolicy> |
internalGetValueMap() |
static BackendService.IpAddressSelectionPolicy |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static BackendService.IpAddressSelectionPolicy |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static BackendService.IpAddressSelectionPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BackendService.IpAddressSelectionPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BackendService.IpAddressSelectionPolicy UNDEFINED_IP_ADDRESS_SELECTION_POLICY
A value indicating that the enum field is not set.
UNDEFINED_IP_ADDRESS_SELECTION_POLICY = 0;public static final BackendService.IpAddressSelectionPolicy 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;public static final BackendService.IpAddressSelectionPolicy 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;public static final BackendService.IpAddressSelectionPolicy IP_ADDRESS_SELECTION_POLICY_UNSPECIFIED
Unspecified IP address selection policy.
IP_ADDRESS_SELECTION_POLICY_UNSPECIFIED = 36210144;public static final BackendService.IpAddressSelectionPolicy PREFER_IPV6
Prioritize the connection to the endpoints IPv6 address over its IPv4 address (provided there is a healthy IPv6 address).
PREFER_IPV6 = 408601302;public static final BackendService.IpAddressSelectionPolicy UNRECOGNIZED
public static final int UNDEFINED_IP_ADDRESS_SELECTION_POLICY_VALUE
A value indicating that the enum field is not set.
UNDEFINED_IP_ADDRESS_SELECTION_POLICY = 0;public static final int IPV4_ONLY_VALUE
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;public static final int IPV6_ONLY_VALUE
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;public static final int IP_ADDRESS_SELECTION_POLICY_UNSPECIFIED_VALUE
Unspecified IP address selection policy.
IP_ADDRESS_SELECTION_POLICY_UNSPECIFIED = 36210144;public static final int PREFER_IPV6_VALUE
Prioritize the connection to the endpoints IPv6 address over its IPv4 address (provided there is a healthy IPv6 address).
PREFER_IPV6 = 408601302;public static BackendService.IpAddressSelectionPolicy[] values()
for (BackendService.IpAddressSelectionPolicy c : BackendService.IpAddressSelectionPolicy.values()) System.out.println(c);
public static BackendService.IpAddressSelectionPolicy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static BackendService.IpAddressSelectionPolicy valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static BackendService.IpAddressSelectionPolicy forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<BackendService.IpAddressSelectionPolicy> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static BackendService.IpAddressSelectionPolicy valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.