Package com.google.cloud.compute.v1
Class BackendServiceConnectionTrackingPolicy
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy
-
- All Implemented Interfaces:
BackendServiceConnectionTrackingPolicyOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class BackendServiceConnectionTrackingPolicy extends com.google.protobuf.GeneratedMessageV3 implements BackendServiceConnectionTrackingPolicyOrBuilder
Connection Tracking configuration for this BackendService.
Protobuf typegoogle.cloud.compute.v1.BackendServiceConnectionTrackingPolicy- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBackendServiceConnectionTrackingPolicy.BuilderConnection Tracking configuration for this BackendService.static classBackendServiceConnectionTrackingPolicy.ConnectionPersistenceOnUnhealthyBackendsSpecifies connection persistence when backends are unhealthy.static classBackendServiceConnectionTrackingPolicy.TrackingModeSpecifies the key used for connection tracking.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intCONNECTION_PERSISTENCE_ON_UNHEALTHY_BACKENDS_FIELD_NUMBERstatic intENABLE_STRONG_AFFINITY_FIELD_NUMBERstatic intIDLE_TIMEOUT_SEC_FIELD_NUMBERstatic intTRACKING_MODE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetConnectionPersistenceOnUnhealthyBackends()Specifies connection persistence when backends are unhealthy.com.google.protobuf.ByteStringgetConnectionPersistenceOnUnhealthyBackendsBytes()Specifies connection persistence when backends are unhealthy.static BackendServiceConnectionTrackingPolicygetDefaultInstance()BackendServiceConnectionTrackingPolicygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()booleangetEnableStrongAffinity()Enable Strong Session Affinity for Network Load Balancing.intgetIdleTimeoutSec()Specifies how long to keep a Connection Tracking entry while there is no matching traffic (in seconds).com.google.protobuf.Parser<BackendServiceConnectionTrackingPolicy>getParserForType()intgetSerializedSize()StringgetTrackingMode()Specifies the key used for connection tracking.com.google.protobuf.ByteStringgetTrackingModeBytes()Specifies the key used for connection tracking.booleanhasConnectionPersistenceOnUnhealthyBackends()Specifies connection persistence when backends are unhealthy.booleanhasEnableStrongAffinity()Enable Strong Session Affinity for Network Load Balancing.inthashCode()booleanhasIdleTimeoutSec()Specifies how long to keep a Connection Tracking entry while there is no matching traffic (in seconds).booleanhasTrackingMode()Specifies the key used for connection tracking.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static BackendServiceConnectionTrackingPolicy.BuildernewBuilder()static BackendServiceConnectionTrackingPolicy.BuildernewBuilder(BackendServiceConnectionTrackingPolicy prototype)BackendServiceConnectionTrackingPolicy.BuildernewBuilderForType()protected BackendServiceConnectionTrackingPolicy.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static BackendServiceConnectionTrackingPolicyparseDelimitedFrom(InputStream input)static BackendServiceConnectionTrackingPolicyparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static BackendServiceConnectionTrackingPolicyparseFrom(byte[] data)static BackendServiceConnectionTrackingPolicyparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static BackendServiceConnectionTrackingPolicyparseFrom(com.google.protobuf.ByteString data)static BackendServiceConnectionTrackingPolicyparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static BackendServiceConnectionTrackingPolicyparseFrom(com.google.protobuf.CodedInputStream input)static BackendServiceConnectionTrackingPolicyparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static BackendServiceConnectionTrackingPolicyparseFrom(InputStream input)static BackendServiceConnectionTrackingPolicyparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static BackendServiceConnectionTrackingPolicyparseFrom(ByteBuffer data)static BackendServiceConnectionTrackingPolicyparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<BackendServiceConnectionTrackingPolicy>parser()BackendServiceConnectionTrackingPolicy.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
CONNECTION_PERSISTENCE_ON_UNHEALTHY_BACKENDS_FIELD_NUMBER
public static final int CONNECTION_PERSISTENCE_ON_UNHEALTHY_BACKENDS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ENABLE_STRONG_AFFINITY_FIELD_NUMBER
public static final int ENABLE_STRONG_AFFINITY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
IDLE_TIMEOUT_SEC_FIELD_NUMBER
public static final int IDLE_TIMEOUT_SEC_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TRACKING_MODE_FIELD_NUMBER
public static final int TRACKING_MODE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasConnectionPersistenceOnUnhealthyBackends
public boolean hasConnectionPersistenceOnUnhealthyBackends()
Specifies connection persistence when backends are unhealthy. The default value is DEFAULT_FOR_PROTOCOL. If set to DEFAULT_FOR_PROTOCOL, the existing connections persist on unhealthy backends only for connection-oriented protocols (TCP and SCTP) and only if the Tracking Mode is PER_CONNECTION (default tracking mode) or the Session Affinity is configured for 5-tuple. They do not persist for UDP. If set to NEVER_PERSIST, after a backend becomes unhealthy, the existing connections on the unhealthy backend are never persisted on the unhealthy backend. They are always diverted to newly selected healthy backends (unless all backends are unhealthy). If set to ALWAYS_PERSIST, existing connections always persist on unhealthy backends regardless of protocol and session affinity. It is generally not recommended to use this mode overriding the default. For more details, see [Connection Persistence for Network Load Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-backend-service#connection-persistence) and [Connection Persistence for Internal TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/internal#connection-persistence). Check the ConnectionPersistenceOnUnhealthyBackends enum for the list of possible values.
optional string connection_persistence_on_unhealthy_backends = 152439033;- Specified by:
hasConnectionPersistenceOnUnhealthyBackendsin interfaceBackendServiceConnectionTrackingPolicyOrBuilder- Returns:
- Whether the connectionPersistenceOnUnhealthyBackends field is set.
-
getConnectionPersistenceOnUnhealthyBackends
public String getConnectionPersistenceOnUnhealthyBackends()
Specifies connection persistence when backends are unhealthy. The default value is DEFAULT_FOR_PROTOCOL. If set to DEFAULT_FOR_PROTOCOL, the existing connections persist on unhealthy backends only for connection-oriented protocols (TCP and SCTP) and only if the Tracking Mode is PER_CONNECTION (default tracking mode) or the Session Affinity is configured for 5-tuple. They do not persist for UDP. If set to NEVER_PERSIST, after a backend becomes unhealthy, the existing connections on the unhealthy backend are never persisted on the unhealthy backend. They are always diverted to newly selected healthy backends (unless all backends are unhealthy). If set to ALWAYS_PERSIST, existing connections always persist on unhealthy backends regardless of protocol and session affinity. It is generally not recommended to use this mode overriding the default. For more details, see [Connection Persistence for Network Load Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-backend-service#connection-persistence) and [Connection Persistence for Internal TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/internal#connection-persistence). Check the ConnectionPersistenceOnUnhealthyBackends enum for the list of possible values.
optional string connection_persistence_on_unhealthy_backends = 152439033;- Specified by:
getConnectionPersistenceOnUnhealthyBackendsin interfaceBackendServiceConnectionTrackingPolicyOrBuilder- Returns:
- The connectionPersistenceOnUnhealthyBackends.
-
getConnectionPersistenceOnUnhealthyBackendsBytes
public com.google.protobuf.ByteString getConnectionPersistenceOnUnhealthyBackendsBytes()
Specifies connection persistence when backends are unhealthy. The default value is DEFAULT_FOR_PROTOCOL. If set to DEFAULT_FOR_PROTOCOL, the existing connections persist on unhealthy backends only for connection-oriented protocols (TCP and SCTP) and only if the Tracking Mode is PER_CONNECTION (default tracking mode) or the Session Affinity is configured for 5-tuple. They do not persist for UDP. If set to NEVER_PERSIST, after a backend becomes unhealthy, the existing connections on the unhealthy backend are never persisted on the unhealthy backend. They are always diverted to newly selected healthy backends (unless all backends are unhealthy). If set to ALWAYS_PERSIST, existing connections always persist on unhealthy backends regardless of protocol and session affinity. It is generally not recommended to use this mode overriding the default. For more details, see [Connection Persistence for Network Load Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-backend-service#connection-persistence) and [Connection Persistence for Internal TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/internal#connection-persistence). Check the ConnectionPersistenceOnUnhealthyBackends enum for the list of possible values.
optional string connection_persistence_on_unhealthy_backends = 152439033;- Specified by:
getConnectionPersistenceOnUnhealthyBackendsBytesin interfaceBackendServiceConnectionTrackingPolicyOrBuilder- Returns:
- The bytes for connectionPersistenceOnUnhealthyBackends.
-
hasEnableStrongAffinity
public boolean hasEnableStrongAffinity()
Enable Strong Session Affinity for Network Load Balancing. This option is not available publicly.
optional bool enable_strong_affinity = 24539924;- Specified by:
hasEnableStrongAffinityin interfaceBackendServiceConnectionTrackingPolicyOrBuilder- Returns:
- Whether the enableStrongAffinity field is set.
-
getEnableStrongAffinity
public boolean getEnableStrongAffinity()
Enable Strong Session Affinity for Network Load Balancing. This option is not available publicly.
optional bool enable_strong_affinity = 24539924;- Specified by:
getEnableStrongAffinityin interfaceBackendServiceConnectionTrackingPolicyOrBuilder- Returns:
- The enableStrongAffinity.
-
hasIdleTimeoutSec
public boolean hasIdleTimeoutSec()
Specifies how long to keep a Connection Tracking entry while there is no matching traffic (in seconds). For Internal TCP/UDP Load Balancing: - The minimum (default) is 10 minutes and the maximum is 16 hours. - It can be set only if Connection Tracking is less than 5-tuple (i.e. Session Affinity is CLIENT_IP_NO_DESTINATION, CLIENT_IP or CLIENT_IP_PROTO, and Tracking Mode is PER_SESSION). For Network Load Balancer the default is 60 seconds. This option is not available publicly.
optional int32 idle_timeout_sec = 24977544;- Specified by:
hasIdleTimeoutSecin interfaceBackendServiceConnectionTrackingPolicyOrBuilder- Returns:
- Whether the idleTimeoutSec field is set.
-
getIdleTimeoutSec
public int getIdleTimeoutSec()
Specifies how long to keep a Connection Tracking entry while there is no matching traffic (in seconds). For Internal TCP/UDP Load Balancing: - The minimum (default) is 10 minutes and the maximum is 16 hours. - It can be set only if Connection Tracking is less than 5-tuple (i.e. Session Affinity is CLIENT_IP_NO_DESTINATION, CLIENT_IP or CLIENT_IP_PROTO, and Tracking Mode is PER_SESSION). For Network Load Balancer the default is 60 seconds. This option is not available publicly.
optional int32 idle_timeout_sec = 24977544;- Specified by:
getIdleTimeoutSecin interfaceBackendServiceConnectionTrackingPolicyOrBuilder- Returns:
- The idleTimeoutSec.
-
hasTrackingMode
public boolean hasTrackingMode()
Specifies the key used for connection tracking. There are two options: - PER_CONNECTION: This is the default mode. The Connection Tracking is performed as per the Connection Key (default Hash Method) for the specific protocol. - PER_SESSION: The Connection Tracking is performed as per the configured Session Affinity. It matches the configured Session Affinity. For more details, see [Tracking Mode for Network Load Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-backend-service#tracking-mode) and [Tracking Mode for Internal TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/internal#tracking-mode). Check the TrackingMode enum for the list of possible values.
optional string tracking_mode = 127757867;- Specified by:
hasTrackingModein interfaceBackendServiceConnectionTrackingPolicyOrBuilder- Returns:
- Whether the trackingMode field is set.
-
getTrackingMode
public String getTrackingMode()
Specifies the key used for connection tracking. There are two options: - PER_CONNECTION: This is the default mode. The Connection Tracking is performed as per the Connection Key (default Hash Method) for the specific protocol. - PER_SESSION: The Connection Tracking is performed as per the configured Session Affinity. It matches the configured Session Affinity. For more details, see [Tracking Mode for Network Load Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-backend-service#tracking-mode) and [Tracking Mode for Internal TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/internal#tracking-mode). Check the TrackingMode enum for the list of possible values.
optional string tracking_mode = 127757867;- Specified by:
getTrackingModein interfaceBackendServiceConnectionTrackingPolicyOrBuilder- Returns:
- The trackingMode.
-
getTrackingModeBytes
public com.google.protobuf.ByteString getTrackingModeBytes()
Specifies the key used for connection tracking. There are two options: - PER_CONNECTION: This is the default mode. The Connection Tracking is performed as per the Connection Key (default Hash Method) for the specific protocol. - PER_SESSION: The Connection Tracking is performed as per the configured Session Affinity. It matches the configured Session Affinity. For more details, see [Tracking Mode for Network Load Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-backend-service#tracking-mode) and [Tracking Mode for Internal TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/internal#tracking-mode). Check the TrackingMode enum for the list of possible values.
optional string tracking_mode = 127757867;- Specified by:
getTrackingModeBytesin interfaceBackendServiceConnectionTrackingPolicyOrBuilder- Returns:
- The bytes for trackingMode.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static BackendServiceConnectionTrackingPolicy parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BackendServiceConnectionTrackingPolicy parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BackendServiceConnectionTrackingPolicy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BackendServiceConnectionTrackingPolicy parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BackendServiceConnectionTrackingPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BackendServiceConnectionTrackingPolicy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BackendServiceConnectionTrackingPolicy parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static BackendServiceConnectionTrackingPolicy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static BackendServiceConnectionTrackingPolicy parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static BackendServiceConnectionTrackingPolicy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static BackendServiceConnectionTrackingPolicy parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static BackendServiceConnectionTrackingPolicy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public BackendServiceConnectionTrackingPolicy.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static BackendServiceConnectionTrackingPolicy.Builder newBuilder()
-
newBuilder
public static BackendServiceConnectionTrackingPolicy.Builder newBuilder(BackendServiceConnectionTrackingPolicy prototype)
-
toBuilder
public BackendServiceConnectionTrackingPolicy.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected BackendServiceConnectionTrackingPolicy.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static BackendServiceConnectionTrackingPolicy getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<BackendServiceConnectionTrackingPolicy> parser()
-
getParserForType
public com.google.protobuf.Parser<BackendServiceConnectionTrackingPolicy> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public BackendServiceConnectionTrackingPolicy getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-