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 TargetPoolOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.TargetPool) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * The server-defined URL for the resource. This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool, and its failoverRatio field is properly set to a value between [0, 1]. backupPool and failoverRatio together define the fallback behavior of the primary target pool: if the ratio of the healthy instances in the primary pool is at or below failoverRatio, traffic arriving at the load-balanced IP will be directed to the backup pool. In case where failoverRatio and backupPool are not set, or all the instances in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where traffic will be spread to the healthy instances with the best effort, or to all instances when no instance is healthy. 31 * </pre> 32 * 33 * <code>optional string backup_pool = 45884537;</code> 34 * 35 * @return Whether the backupPool field is set. 36 */ hasBackupPool()37 boolean hasBackupPool(); 38 /** 39 * 40 * 41 * <pre> 42 * The server-defined URL for the resource. This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool, and its failoverRatio field is properly set to a value between [0, 1]. backupPool and failoverRatio together define the fallback behavior of the primary target pool: if the ratio of the healthy instances in the primary pool is at or below failoverRatio, traffic arriving at the load-balanced IP will be directed to the backup pool. In case where failoverRatio and backupPool are not set, or all the instances in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where traffic will be spread to the healthy instances with the best effort, or to all instances when no instance is healthy. 43 * </pre> 44 * 45 * <code>optional string backup_pool = 45884537;</code> 46 * 47 * @return The backupPool. 48 */ getBackupPool()49 java.lang.String getBackupPool(); 50 /** 51 * 52 * 53 * <pre> 54 * The server-defined URL for the resource. This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool, and its failoverRatio field is properly set to a value between [0, 1]. backupPool and failoverRatio together define the fallback behavior of the primary target pool: if the ratio of the healthy instances in the primary pool is at or below failoverRatio, traffic arriving at the load-balanced IP will be directed to the backup pool. In case where failoverRatio and backupPool are not set, or all the instances in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where traffic will be spread to the healthy instances with the best effort, or to all instances when no instance is healthy. 55 * </pre> 56 * 57 * <code>optional string backup_pool = 45884537;</code> 58 * 59 * @return The bytes for backupPool. 60 */ getBackupPoolBytes()61 com.google.protobuf.ByteString getBackupPoolBytes(); 62 63 /** 64 * 65 * 66 * <pre> 67 * [Output Only] Creation timestamp in RFC3339 text format. 68 * </pre> 69 * 70 * <code>optional string creation_timestamp = 30525366;</code> 71 * 72 * @return Whether the creationTimestamp field is set. 73 */ hasCreationTimestamp()74 boolean hasCreationTimestamp(); 75 /** 76 * 77 * 78 * <pre> 79 * [Output Only] Creation timestamp in RFC3339 text format. 80 * </pre> 81 * 82 * <code>optional string creation_timestamp = 30525366;</code> 83 * 84 * @return The creationTimestamp. 85 */ getCreationTimestamp()86 java.lang.String getCreationTimestamp(); 87 /** 88 * 89 * 90 * <pre> 91 * [Output Only] Creation timestamp in RFC3339 text format. 92 * </pre> 93 * 94 * <code>optional string creation_timestamp = 30525366;</code> 95 * 96 * @return The bytes for creationTimestamp. 97 */ getCreationTimestampBytes()98 com.google.protobuf.ByteString getCreationTimestampBytes(); 99 100 /** 101 * 102 * 103 * <pre> 104 * An optional description of this resource. Provide this property when you create the resource. 105 * </pre> 106 * 107 * <code>optional string description = 422937596;</code> 108 * 109 * @return Whether the description field is set. 110 */ hasDescription()111 boolean hasDescription(); 112 /** 113 * 114 * 115 * <pre> 116 * An optional description of this resource. Provide this property when you create the resource. 117 * </pre> 118 * 119 * <code>optional string description = 422937596;</code> 120 * 121 * @return The description. 122 */ getDescription()123 java.lang.String getDescription(); 124 /** 125 * 126 * 127 * <pre> 128 * An optional description of this resource. Provide this property when you create the resource. 129 * </pre> 130 * 131 * <code>optional string description = 422937596;</code> 132 * 133 * @return The bytes for description. 134 */ getDescriptionBytes()135 com.google.protobuf.ByteString getDescriptionBytes(); 136 137 /** 138 * 139 * 140 * <pre> 141 * This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool (i.e., not as a backup pool to some other target pool). The value of the field must be in [0, 1]. If set, backupPool must also be set. They together define the fallback behavior of the primary target pool: if the ratio of the healthy instances in the primary pool is at or below this number, traffic arriving at the load-balanced IP will be directed to the backup pool. In case where failoverRatio is not set or all the instances in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where traffic will be spread to the healthy instances with the best effort, or to all instances when no instance is healthy. 142 * </pre> 143 * 144 * <code>optional float failover_ratio = 212667006;</code> 145 * 146 * @return Whether the failoverRatio field is set. 147 */ hasFailoverRatio()148 boolean hasFailoverRatio(); 149 /** 150 * 151 * 152 * <pre> 153 * This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool (i.e., not as a backup pool to some other target pool). The value of the field must be in [0, 1]. If set, backupPool must also be set. They together define the fallback behavior of the primary target pool: if the ratio of the healthy instances in the primary pool is at or below this number, traffic arriving at the load-balanced IP will be directed to the backup pool. In case where failoverRatio is not set or all the instances in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where traffic will be spread to the healthy instances with the best effort, or to all instances when no instance is healthy. 154 * </pre> 155 * 156 * <code>optional float failover_ratio = 212667006;</code> 157 * 158 * @return The failoverRatio. 159 */ getFailoverRatio()160 float getFailoverRatio(); 161 162 /** 163 * 164 * 165 * <pre> 166 * The URL of the HttpHealthCheck resource. A member instance in this pool is considered healthy if and only if the health checks pass. Only legacy HttpHealthChecks are supported. Only one health check may be specified. 167 * </pre> 168 * 169 * <code>repeated string health_checks = 448370606;</code> 170 * 171 * @return A list containing the healthChecks. 172 */ getHealthChecksList()173 java.util.List<java.lang.String> getHealthChecksList(); 174 /** 175 * 176 * 177 * <pre> 178 * The URL of the HttpHealthCheck resource. A member instance in this pool is considered healthy if and only if the health checks pass. Only legacy HttpHealthChecks are supported. Only one health check may be specified. 179 * </pre> 180 * 181 * <code>repeated string health_checks = 448370606;</code> 182 * 183 * @return The count of healthChecks. 184 */ getHealthChecksCount()185 int getHealthChecksCount(); 186 /** 187 * 188 * 189 * <pre> 190 * The URL of the HttpHealthCheck resource. A member instance in this pool is considered healthy if and only if the health checks pass. Only legacy HttpHealthChecks are supported. Only one health check may be specified. 191 * </pre> 192 * 193 * <code>repeated string health_checks = 448370606;</code> 194 * 195 * @param index The index of the element to return. 196 * @return The healthChecks at the given index. 197 */ getHealthChecks(int index)198 java.lang.String getHealthChecks(int index); 199 /** 200 * 201 * 202 * <pre> 203 * The URL of the HttpHealthCheck resource. A member instance in this pool is considered healthy if and only if the health checks pass. Only legacy HttpHealthChecks are supported. Only one health check may be specified. 204 * </pre> 205 * 206 * <code>repeated string health_checks = 448370606;</code> 207 * 208 * @param index The index of the value to return. 209 * @return The bytes of the healthChecks at the given index. 210 */ getHealthChecksBytes(int index)211 com.google.protobuf.ByteString getHealthChecksBytes(int index); 212 213 /** 214 * 215 * 216 * <pre> 217 * [Output Only] The unique identifier for the resource. This identifier is defined by the server. 218 * </pre> 219 * 220 * <code>optional uint64 id = 3355;</code> 221 * 222 * @return Whether the id field is set. 223 */ hasId()224 boolean hasId(); 225 /** 226 * 227 * 228 * <pre> 229 * [Output Only] The unique identifier for the resource. This identifier is defined by the server. 230 * </pre> 231 * 232 * <code>optional uint64 id = 3355;</code> 233 * 234 * @return The id. 235 */ getId()236 long getId(); 237 238 /** 239 * 240 * 241 * <pre> 242 * A list of resource URLs to the virtual machine instances serving this pool. They must live in zones contained in the same region as this pool. 243 * </pre> 244 * 245 * <code>repeated string instances = 29097598;</code> 246 * 247 * @return A list containing the instances. 248 */ getInstancesList()249 java.util.List<java.lang.String> getInstancesList(); 250 /** 251 * 252 * 253 * <pre> 254 * A list of resource URLs to the virtual machine instances serving this pool. They must live in zones contained in the same region as this pool. 255 * </pre> 256 * 257 * <code>repeated string instances = 29097598;</code> 258 * 259 * @return The count of instances. 260 */ getInstancesCount()261 int getInstancesCount(); 262 /** 263 * 264 * 265 * <pre> 266 * A list of resource URLs to the virtual machine instances serving this pool. They must live in zones contained in the same region as this pool. 267 * </pre> 268 * 269 * <code>repeated string instances = 29097598;</code> 270 * 271 * @param index The index of the element to return. 272 * @return The instances at the given index. 273 */ getInstances(int index)274 java.lang.String getInstances(int index); 275 /** 276 * 277 * 278 * <pre> 279 * A list of resource URLs to the virtual machine instances serving this pool. They must live in zones contained in the same region as this pool. 280 * </pre> 281 * 282 * <code>repeated string instances = 29097598;</code> 283 * 284 * @param index The index of the value to return. 285 * @return The bytes of the instances at the given index. 286 */ getInstancesBytes(int index)287 com.google.protobuf.ByteString getInstancesBytes(int index); 288 289 /** 290 * 291 * 292 * <pre> 293 * [Output Only] Type of the resource. Always compute#targetPool for target pools. 294 * </pre> 295 * 296 * <code>optional string kind = 3292052;</code> 297 * 298 * @return Whether the kind field is set. 299 */ hasKind()300 boolean hasKind(); 301 /** 302 * 303 * 304 * <pre> 305 * [Output Only] Type of the resource. Always compute#targetPool for target pools. 306 * </pre> 307 * 308 * <code>optional string kind = 3292052;</code> 309 * 310 * @return The kind. 311 */ getKind()312 java.lang.String getKind(); 313 /** 314 * 315 * 316 * <pre> 317 * [Output Only] Type of the resource. Always compute#targetPool for target pools. 318 * </pre> 319 * 320 * <code>optional string kind = 3292052;</code> 321 * 322 * @return The bytes for kind. 323 */ getKindBytes()324 com.google.protobuf.ByteString getKindBytes(); 325 326 /** 327 * 328 * 329 * <pre> 330 * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 331 * </pre> 332 * 333 * <code>optional string name = 3373707;</code> 334 * 335 * @return Whether the name field is set. 336 */ hasName()337 boolean hasName(); 338 /** 339 * 340 * 341 * <pre> 342 * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 343 * </pre> 344 * 345 * <code>optional string name = 3373707;</code> 346 * 347 * @return The name. 348 */ getName()349 java.lang.String getName(); 350 /** 351 * 352 * 353 * <pre> 354 * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 355 * </pre> 356 * 357 * <code>optional string name = 3373707;</code> 358 * 359 * @return The bytes for name. 360 */ getNameBytes()361 com.google.protobuf.ByteString getNameBytes(); 362 363 /** 364 * 365 * 366 * <pre> 367 * [Output Only] URL of the region where the target pool resides. 368 * </pre> 369 * 370 * <code>optional string region = 138946292;</code> 371 * 372 * @return Whether the region field is set. 373 */ hasRegion()374 boolean hasRegion(); 375 /** 376 * 377 * 378 * <pre> 379 * [Output Only] URL of the region where the target pool resides. 380 * </pre> 381 * 382 * <code>optional string region = 138946292;</code> 383 * 384 * @return The region. 385 */ getRegion()386 java.lang.String getRegion(); 387 /** 388 * 389 * 390 * <pre> 391 * [Output Only] URL of the region where the target pool resides. 392 * </pre> 393 * 394 * <code>optional string region = 138946292;</code> 395 * 396 * @return The bytes for region. 397 */ getRegionBytes()398 com.google.protobuf.ByteString getRegionBytes(); 399 400 /** 401 * 402 * 403 * <pre> 404 * [Output Only] Server-defined URL for the resource. 405 * </pre> 406 * 407 * <code>optional string self_link = 456214797;</code> 408 * 409 * @return Whether the selfLink field is set. 410 */ hasSelfLink()411 boolean hasSelfLink(); 412 /** 413 * 414 * 415 * <pre> 416 * [Output Only] Server-defined URL for the resource. 417 * </pre> 418 * 419 * <code>optional string self_link = 456214797;</code> 420 * 421 * @return The selfLink. 422 */ getSelfLink()423 java.lang.String getSelfLink(); 424 /** 425 * 426 * 427 * <pre> 428 * [Output Only] Server-defined URL for the resource. 429 * </pre> 430 * 431 * <code>optional string self_link = 456214797;</code> 432 * 433 * @return The bytes for selfLink. 434 */ getSelfLinkBytes()435 com.google.protobuf.ByteString getSelfLinkBytes(); 436 437 /** 438 * 439 * 440 * <pre> 441 * Session affinity option, must be one of the following values: NONE: Connections from the same client IP may go to any instance in the pool. CLIENT_IP: Connections from the same client IP will go to the same instance in the pool while that instance remains healthy. CLIENT_IP_PROTO: Connections from the same client IP with the same IP protocol will go to the same instance in the pool while that instance remains healthy. 442 * Check the SessionAffinity enum for the list of possible values. 443 * </pre> 444 * 445 * <code>optional string session_affinity = 463888561;</code> 446 * 447 * @return Whether the sessionAffinity field is set. 448 */ hasSessionAffinity()449 boolean hasSessionAffinity(); 450 /** 451 * 452 * 453 * <pre> 454 * Session affinity option, must be one of the following values: NONE: Connections from the same client IP may go to any instance in the pool. CLIENT_IP: Connections from the same client IP will go to the same instance in the pool while that instance remains healthy. CLIENT_IP_PROTO: Connections from the same client IP with the same IP protocol will go to the same instance in the pool while that instance remains healthy. 455 * Check the SessionAffinity enum for the list of possible values. 456 * </pre> 457 * 458 * <code>optional string session_affinity = 463888561;</code> 459 * 460 * @return The sessionAffinity. 461 */ getSessionAffinity()462 java.lang.String getSessionAffinity(); 463 /** 464 * 465 * 466 * <pre> 467 * Session affinity option, must be one of the following values: NONE: Connections from the same client IP may go to any instance in the pool. CLIENT_IP: Connections from the same client IP will go to the same instance in the pool while that instance remains healthy. CLIENT_IP_PROTO: Connections from the same client IP with the same IP protocol will go to the same instance in the pool while that instance remains healthy. 468 * Check the SessionAffinity enum for the list of possible values. 469 * </pre> 470 * 471 * <code>optional string session_affinity = 463888561;</code> 472 * 473 * @return The bytes for sessionAffinity. 474 */ getSessionAffinityBytes()475 com.google.protobuf.ByteString getSessionAffinityBytes(); 476 } 477