1 /* 2 * Copyright 2020 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 // Generated by the protocol buffer compiler. DO NOT EDIT! 17 // source: google/cloud/compute/v1/compute.proto 18 19 package com.google.cloud.compute.v1; 20 21 public interface BackendServiceConnectionTrackingPolicyOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * 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). 31 * Check the ConnectionPersistenceOnUnhealthyBackends enum for the list of possible values. 32 * </pre> 33 * 34 * <code>optional string connection_persistence_on_unhealthy_backends = 152439033;</code> 35 * 36 * @return Whether the connectionPersistenceOnUnhealthyBackends field is set. 37 */ hasConnectionPersistenceOnUnhealthyBackends()38 boolean hasConnectionPersistenceOnUnhealthyBackends(); 39 /** 40 * 41 * 42 * <pre> 43 * 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). 44 * Check the ConnectionPersistenceOnUnhealthyBackends enum for the list of possible values. 45 * </pre> 46 * 47 * <code>optional string connection_persistence_on_unhealthy_backends = 152439033;</code> 48 * 49 * @return The connectionPersistenceOnUnhealthyBackends. 50 */ getConnectionPersistenceOnUnhealthyBackends()51 java.lang.String getConnectionPersistenceOnUnhealthyBackends(); 52 /** 53 * 54 * 55 * <pre> 56 * 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). 57 * Check the ConnectionPersistenceOnUnhealthyBackends enum for the list of possible values. 58 * </pre> 59 * 60 * <code>optional string connection_persistence_on_unhealthy_backends = 152439033;</code> 61 * 62 * @return The bytes for connectionPersistenceOnUnhealthyBackends. 63 */ getConnectionPersistenceOnUnhealthyBackendsBytes()64 com.google.protobuf.ByteString getConnectionPersistenceOnUnhealthyBackendsBytes(); 65 66 /** 67 * 68 * 69 * <pre> 70 * Enable Strong Session Affinity for Network Load Balancing. This option is not available publicly. 71 * </pre> 72 * 73 * <code>optional bool enable_strong_affinity = 24539924;</code> 74 * 75 * @return Whether the enableStrongAffinity field is set. 76 */ hasEnableStrongAffinity()77 boolean hasEnableStrongAffinity(); 78 /** 79 * 80 * 81 * <pre> 82 * Enable Strong Session Affinity for Network Load Balancing. This option is not available publicly. 83 * </pre> 84 * 85 * <code>optional bool enable_strong_affinity = 24539924;</code> 86 * 87 * @return The enableStrongAffinity. 88 */ getEnableStrongAffinity()89 boolean getEnableStrongAffinity(); 90 91 /** 92 * 93 * 94 * <pre> 95 * 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. 96 * </pre> 97 * 98 * <code>optional int32 idle_timeout_sec = 24977544;</code> 99 * 100 * @return Whether the idleTimeoutSec field is set. 101 */ hasIdleTimeoutSec()102 boolean hasIdleTimeoutSec(); 103 /** 104 * 105 * 106 * <pre> 107 * 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. 108 * </pre> 109 * 110 * <code>optional int32 idle_timeout_sec = 24977544;</code> 111 * 112 * @return The idleTimeoutSec. 113 */ getIdleTimeoutSec()114 int getIdleTimeoutSec(); 115 116 /** 117 * 118 * 119 * <pre> 120 * 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). 121 * Check the TrackingMode enum for the list of possible values. 122 * </pre> 123 * 124 * <code>optional string tracking_mode = 127757867;</code> 125 * 126 * @return Whether the trackingMode field is set. 127 */ hasTrackingMode()128 boolean hasTrackingMode(); 129 /** 130 * 131 * 132 * <pre> 133 * 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). 134 * Check the TrackingMode enum for the list of possible values. 135 * </pre> 136 * 137 * <code>optional string tracking_mode = 127757867;</code> 138 * 139 * @return The trackingMode. 140 */ getTrackingMode()141 java.lang.String getTrackingMode(); 142 /** 143 * 144 * 145 * <pre> 146 * 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). 147 * Check the TrackingMode enum for the list of possible values. 148 * </pre> 149 * 150 * <code>optional string tracking_mode = 127757867;</code> 151 * 152 * @return The bytes for trackingMode. 153 */ getTrackingModeBytes()154 com.google.protobuf.ByteString getTrackingModeBytes(); 155 } 156