- 1.65.0 (latest)
- 1.64.0
- 1.63.0
- 1.62.0
- 1.61.0
- 1.59.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.1
- 1.11.0
- 1.9.1
- 1.8.1
- 1.7.2
- 1.6.0-beta
public enum BackendService.SessionAffinity extends Enum<BackendService.SessionAffinity> implements ProtocolMessageEnum
Type of session affinity to use. The default is NONE. For a detailed description of session affinity options, see: Session affinity. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
Protobuf enum google.cloud.compute.v1.BackendService.SessionAffinity
Implements
ProtocolMessageEnumStatic Fields
Name | Description |
CLIENT_IP | 2-tuple hash on packet's source and destination IP addresses. Connections from the same source IP address to the same destination IP address will be served by the same backend VM while that VM remains healthy. |
CLIENT_IP_NO_DESTINATION | 1-tuple hash only on packet's source IP address. Connections from the same source IP address will be served by the same backend VM while that VM remains healthy. This option can only be used for Internal TCP/UDP Load Balancing. |
CLIENT_IP_NO_DESTINATION_VALUE | 1-tuple hash only on packet's source IP address. Connections from the same source IP address will be served by the same backend VM while that VM remains healthy. This option can only be used for Internal TCP/UDP Load Balancing. |
CLIENT_IP_PORT_PROTO | 5-tuple hash on packet's source and destination IP addresses, IP protocol, and source and destination ports. Connections for the same IP protocol from the same source IP address and port to the same destination IP address and port will be served by the same backend VM while that VM remains healthy. This option cannot be used for HTTP(S) load balancing. |
CLIENT_IP_PORT_PROTO_VALUE | 5-tuple hash on packet's source and destination IP addresses, IP protocol, and source and destination ports. Connections for the same IP protocol from the same source IP address and port to the same destination IP address and port will be served by the same backend VM while that VM remains healthy. This option cannot be used for HTTP(S) load balancing. |
CLIENT_IP_PROTO | 3-tuple hash on packet's source and destination IP addresses, and IP protocol. Connections for the same IP protocol from the same source IP address to the same destination IP address will be served by the same backend VM while that VM remains healthy. This option cannot be used for HTTP(S) load balancing. |
CLIENT_IP_PROTO_VALUE | 3-tuple hash on packet's source and destination IP addresses, and IP protocol. Connections for the same IP protocol from the same source IP address to the same destination IP address will be served by the same backend VM while that VM remains healthy. This option cannot be used for HTTP(S) load balancing. |
CLIENT_IP_VALUE | 2-tuple hash on packet's source and destination IP addresses. Connections from the same source IP address to the same destination IP address will be served by the same backend VM while that VM remains healthy. |
GENERATED_COOKIE | Hash based on a cookie generated by the L7 loadbalancer. Only valid for HTTP(S) load balancing. |
GENERATED_COOKIE_VALUE | Hash based on a cookie generated by the L7 loadbalancer. Only valid for HTTP(S) load balancing. |
HEADER_FIELD | The hash is based on a user specified header field. |
HEADER_FIELD_VALUE | The hash is based on a user specified header field. |
HTTP_COOKIE | The hash is based on a user provided cookie. |
HTTP_COOKIE_VALUE | The hash is based on a user provided cookie. |
NONE | No session affinity. Connections from the same client IP may go to any instance in the pool. |
NONE_VALUE | No session affinity. Connections from the same client IP may go to any instance in the pool. |
UNDEFINED_SESSION_AFFINITY | A value indicating that the enum field is not set. |
UNDEFINED_SESSION_AFFINITY_VALUE | A value indicating that the enum field is not set. |
UNRECOGNIZED |
Static Methods
Name | Description |
forNumber(int value) | |
getDescriptor() | |
internalGetValueMap() | |
valueOf(Descriptors.EnumValueDescriptor desc) | |
valueOf(int value) | Deprecated. Use #forNumber(int) instead. |
valueOf(String name) | |
values() |
Methods
Name | Description |
getDescriptorForType() | |
getNumber() | |
getValueDescriptor() |