Package com.google.cloud.compute.v1
Class BackendServiceConnectionTrackingPolicy.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<BackendServiceConnectionTrackingPolicy.Builder>
-
- com.google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy.Builder
-
- All Implemented Interfaces:
BackendServiceConnectionTrackingPolicyOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- BackendServiceConnectionTrackingPolicy
public static final class BackendServiceConnectionTrackingPolicy.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BackendServiceConnectionTrackingPolicy.Builder> implements BackendServiceConnectionTrackingPolicyOrBuilder
Connection Tracking configuration for this BackendService.
Protobuf typegoogle.cloud.compute.v1.BackendServiceConnectionTrackingPolicy
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BackendServiceConnectionTrackingPolicy.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
BackendServiceConnectionTrackingPolicy
build()
BackendServiceConnectionTrackingPolicy
buildPartial()
BackendServiceConnectionTrackingPolicy.Builder
clear()
BackendServiceConnectionTrackingPolicy.Builder
clearConnectionPersistenceOnUnhealthyBackends()
Specifies connection persistence when backends are unhealthy.BackendServiceConnectionTrackingPolicy.Builder
clearEnableStrongAffinity()
Enable Strong Session Affinity for Network Load Balancing.BackendServiceConnectionTrackingPolicy.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
BackendServiceConnectionTrackingPolicy.Builder
clearIdleTimeoutSec()
Specifies how long to keep a Connection Tracking entry while there is no matching traffic (in seconds).BackendServiceConnectionTrackingPolicy.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
BackendServiceConnectionTrackingPolicy.Builder
clearTrackingMode()
Specifies the key used for connection tracking.BackendServiceConnectionTrackingPolicy.Builder
clone()
String
getConnectionPersistenceOnUnhealthyBackends()
Specifies connection persistence when backends are unhealthy.com.google.protobuf.ByteString
getConnectionPersistenceOnUnhealthyBackendsBytes()
Specifies connection persistence when backends are unhealthy.BackendServiceConnectionTrackingPolicy
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
boolean
getEnableStrongAffinity()
Enable Strong Session Affinity for Network Load Balancing.int
getIdleTimeoutSec()
Specifies how long to keep a Connection Tracking entry while there is no matching traffic (in seconds).String
getTrackingMode()
Specifies the key used for connection tracking.com.google.protobuf.ByteString
getTrackingModeBytes()
Specifies the key used for connection tracking.boolean
hasConnectionPersistenceOnUnhealthyBackends()
Specifies connection persistence when backends are unhealthy.boolean
hasEnableStrongAffinity()
Enable Strong Session Affinity for Network Load Balancing.boolean
hasIdleTimeoutSec()
Specifies how long to keep a Connection Tracking entry while there is no matching traffic (in seconds).boolean
hasTrackingMode()
Specifies the key used for connection tracking.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
BackendServiceConnectionTrackingPolicy.Builder
mergeFrom(BackendServiceConnectionTrackingPolicy other)
BackendServiceConnectionTrackingPolicy.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
BackendServiceConnectionTrackingPolicy.Builder
mergeFrom(com.google.protobuf.Message other)
BackendServiceConnectionTrackingPolicy.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
BackendServiceConnectionTrackingPolicy.Builder
setConnectionPersistenceOnUnhealthyBackends(String value)
Specifies connection persistence when backends are unhealthy.BackendServiceConnectionTrackingPolicy.Builder
setConnectionPersistenceOnUnhealthyBackendsBytes(com.google.protobuf.ByteString value)
Specifies connection persistence when backends are unhealthy.BackendServiceConnectionTrackingPolicy.Builder
setEnableStrongAffinity(boolean value)
Enable Strong Session Affinity for Network Load Balancing.BackendServiceConnectionTrackingPolicy.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
BackendServiceConnectionTrackingPolicy.Builder
setIdleTimeoutSec(int value)
Specifies how long to keep a Connection Tracking entry while there is no matching traffic (in seconds).BackendServiceConnectionTrackingPolicy.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
BackendServiceConnectionTrackingPolicy.Builder
setTrackingMode(String value)
Specifies the key used for connection tracking.BackendServiceConnectionTrackingPolicy.Builder
setTrackingModeBytes(com.google.protobuf.ByteString value)
Specifies the key used for connection tracking.BackendServiceConnectionTrackingPolicy.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendServiceConnectionTrackingPolicy.Builder>
-
clear
public BackendServiceConnectionTrackingPolicy.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendServiceConnectionTrackingPolicy.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendServiceConnectionTrackingPolicy.Builder>
-
getDefaultInstanceForType
public BackendServiceConnectionTrackingPolicy getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public BackendServiceConnectionTrackingPolicy build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BackendServiceConnectionTrackingPolicy buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public BackendServiceConnectionTrackingPolicy.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendServiceConnectionTrackingPolicy.Builder>
-
setField
public BackendServiceConnectionTrackingPolicy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendServiceConnectionTrackingPolicy.Builder>
-
clearField
public BackendServiceConnectionTrackingPolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendServiceConnectionTrackingPolicy.Builder>
-
clearOneof
public BackendServiceConnectionTrackingPolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendServiceConnectionTrackingPolicy.Builder>
-
setRepeatedField
public BackendServiceConnectionTrackingPolicy.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendServiceConnectionTrackingPolicy.Builder>
-
addRepeatedField
public BackendServiceConnectionTrackingPolicy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendServiceConnectionTrackingPolicy.Builder>
-
mergeFrom
public BackendServiceConnectionTrackingPolicy.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<BackendServiceConnectionTrackingPolicy.Builder>
-
mergeFrom
public BackendServiceConnectionTrackingPolicy.Builder mergeFrom(BackendServiceConnectionTrackingPolicy other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendServiceConnectionTrackingPolicy.Builder>
-
mergeFrom
public BackendServiceConnectionTrackingPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<BackendServiceConnectionTrackingPolicy.Builder>
- Throws:
IOException
-
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:
hasConnectionPersistenceOnUnhealthyBackends
in 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:
getConnectionPersistenceOnUnhealthyBackends
in 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:
getConnectionPersistenceOnUnhealthyBackendsBytes
in interfaceBackendServiceConnectionTrackingPolicyOrBuilder
- Returns:
- The bytes for connectionPersistenceOnUnhealthyBackends.
-
setConnectionPersistenceOnUnhealthyBackends
public BackendServiceConnectionTrackingPolicy.Builder setConnectionPersistenceOnUnhealthyBackends(String value)
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;
- Parameters:
value
- The connectionPersistenceOnUnhealthyBackends to set.- Returns:
- This builder for chaining.
-
clearConnectionPersistenceOnUnhealthyBackends
public BackendServiceConnectionTrackingPolicy.Builder clearConnectionPersistenceOnUnhealthyBackends()
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;
- Returns:
- This builder for chaining.
-
setConnectionPersistenceOnUnhealthyBackendsBytes
public BackendServiceConnectionTrackingPolicy.Builder setConnectionPersistenceOnUnhealthyBackendsBytes(com.google.protobuf.ByteString value)
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;
- Parameters:
value
- The bytes for connectionPersistenceOnUnhealthyBackends to set.- Returns:
- This builder for chaining.
-
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:
hasEnableStrongAffinity
in 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:
getEnableStrongAffinity
in interfaceBackendServiceConnectionTrackingPolicyOrBuilder
- Returns:
- The enableStrongAffinity.
-
setEnableStrongAffinity
public BackendServiceConnectionTrackingPolicy.Builder setEnableStrongAffinity(boolean value)
Enable Strong Session Affinity for Network Load Balancing. This option is not available publicly.
optional bool enable_strong_affinity = 24539924;
- Parameters:
value
- The enableStrongAffinity to set.- Returns:
- This builder for chaining.
-
clearEnableStrongAffinity
public BackendServiceConnectionTrackingPolicy.Builder clearEnableStrongAffinity()
Enable Strong Session Affinity for Network Load Balancing. This option is not available publicly.
optional bool enable_strong_affinity = 24539924;
- Returns:
- This builder for chaining.
-
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:
hasIdleTimeoutSec
in 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:
getIdleTimeoutSec
in interfaceBackendServiceConnectionTrackingPolicyOrBuilder
- Returns:
- The idleTimeoutSec.
-
setIdleTimeoutSec
public BackendServiceConnectionTrackingPolicy.Builder setIdleTimeoutSec(int value)
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;
- Parameters:
value
- The idleTimeoutSec to set.- Returns:
- This builder for chaining.
-
clearIdleTimeoutSec
public BackendServiceConnectionTrackingPolicy.Builder clearIdleTimeoutSec()
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;
- Returns:
- This builder for chaining.
-
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:
hasTrackingMode
in 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:
getTrackingMode
in 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:
getTrackingModeBytes
in interfaceBackendServiceConnectionTrackingPolicyOrBuilder
- Returns:
- The bytes for trackingMode.
-
setTrackingMode
public BackendServiceConnectionTrackingPolicy.Builder setTrackingMode(String value)
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;
- Parameters:
value
- The trackingMode to set.- Returns:
- This builder for chaining.
-
clearTrackingMode
public BackendServiceConnectionTrackingPolicy.Builder clearTrackingMode()
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;
- Returns:
- This builder for chaining.
-
setTrackingModeBytes
public BackendServiceConnectionTrackingPolicy.Builder setTrackingModeBytes(com.google.protobuf.ByteString value)
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;
- Parameters:
value
- The bytes for trackingMode to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final BackendServiceConnectionTrackingPolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendServiceConnectionTrackingPolicy.Builder>
-
mergeUnknownFields
public final BackendServiceConnectionTrackingPolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendServiceConnectionTrackingPolicy.Builder>
-
-