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/container/v1/cluster_service.proto 18 19 package com.google.container.v1; 20 21 /** 22 * 23 * 24 * <pre> 25 * Configuration for controlling how IPs are allocated in the cluster. 26 * </pre> 27 * 28 * Protobuf type {@code google.container.v1.IPAllocationPolicy} 29 */ 30 public final class IPAllocationPolicy extends com.google.protobuf.GeneratedMessageV3 31 implements 32 // @@protoc_insertion_point(message_implements:google.container.v1.IPAllocationPolicy) 33 IPAllocationPolicyOrBuilder { 34 private static final long serialVersionUID = 0L; 35 // Use IPAllocationPolicy.newBuilder() to construct. IPAllocationPolicy(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36 private IPAllocationPolicy(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 37 super(builder); 38 } 39 IPAllocationPolicy()40 private IPAllocationPolicy() { 41 subnetworkName_ = ""; 42 clusterIpv4Cidr_ = ""; 43 nodeIpv4Cidr_ = ""; 44 servicesIpv4Cidr_ = ""; 45 clusterSecondaryRangeName_ = ""; 46 servicesSecondaryRangeName_ = ""; 47 clusterIpv4CidrBlock_ = ""; 48 nodeIpv4CidrBlock_ = ""; 49 servicesIpv4CidrBlock_ = ""; 50 tpuIpv4CidrBlock_ = ""; 51 stackType_ = 0; 52 ipv6AccessType_ = 0; 53 subnetIpv6CidrBlock_ = ""; 54 servicesIpv6CidrBlock_ = ""; 55 } 56 57 @java.lang.Override 58 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)59 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 60 return new IPAllocationPolicy(); 61 } 62 63 @java.lang.Override getUnknownFields()64 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 65 return this.unknownFields; 66 } 67 getDescriptor()68 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 69 return com.google.container.v1.ClusterServiceProto 70 .internal_static_google_container_v1_IPAllocationPolicy_descriptor; 71 } 72 73 @java.lang.Override 74 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()75 internalGetFieldAccessorTable() { 76 return com.google.container.v1.ClusterServiceProto 77 .internal_static_google_container_v1_IPAllocationPolicy_fieldAccessorTable 78 .ensureFieldAccessorsInitialized( 79 com.google.container.v1.IPAllocationPolicy.class, 80 com.google.container.v1.IPAllocationPolicy.Builder.class); 81 } 82 83 public static final int USE_IP_ALIASES_FIELD_NUMBER = 1; 84 private boolean useIpAliases_ = false; 85 /** 86 * 87 * 88 * <pre> 89 * Whether alias IPs will be used for pod IPs in the cluster. 90 * This is used in conjunction with use_routes. It cannot 91 * be true if use_routes is true. If both use_ip_aliases and use_routes are 92 * false, then the server picks the default IP allocation mode 93 * </pre> 94 * 95 * <code>bool use_ip_aliases = 1;</code> 96 * 97 * @return The useIpAliases. 98 */ 99 @java.lang.Override getUseIpAliases()100 public boolean getUseIpAliases() { 101 return useIpAliases_; 102 } 103 104 public static final int CREATE_SUBNETWORK_FIELD_NUMBER = 2; 105 private boolean createSubnetwork_ = false; 106 /** 107 * 108 * 109 * <pre> 110 * Whether a new subnetwork will be created automatically for the cluster. 111 * This field is only applicable when `use_ip_aliases` is true. 112 * </pre> 113 * 114 * <code>bool create_subnetwork = 2;</code> 115 * 116 * @return The createSubnetwork. 117 */ 118 @java.lang.Override getCreateSubnetwork()119 public boolean getCreateSubnetwork() { 120 return createSubnetwork_; 121 } 122 123 public static final int SUBNETWORK_NAME_FIELD_NUMBER = 3; 124 125 @SuppressWarnings("serial") 126 private volatile java.lang.Object subnetworkName_ = ""; 127 /** 128 * 129 * 130 * <pre> 131 * A custom subnetwork name to be used if `create_subnetwork` is true. If 132 * this field is empty, then an automatic name will be chosen for the new 133 * subnetwork. 134 * </pre> 135 * 136 * <code>string subnetwork_name = 3;</code> 137 * 138 * @return The subnetworkName. 139 */ 140 @java.lang.Override getSubnetworkName()141 public java.lang.String getSubnetworkName() { 142 java.lang.Object ref = subnetworkName_; 143 if (ref instanceof java.lang.String) { 144 return (java.lang.String) ref; 145 } else { 146 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 147 java.lang.String s = bs.toStringUtf8(); 148 subnetworkName_ = s; 149 return s; 150 } 151 } 152 /** 153 * 154 * 155 * <pre> 156 * A custom subnetwork name to be used if `create_subnetwork` is true. If 157 * this field is empty, then an automatic name will be chosen for the new 158 * subnetwork. 159 * </pre> 160 * 161 * <code>string subnetwork_name = 3;</code> 162 * 163 * @return The bytes for subnetworkName. 164 */ 165 @java.lang.Override getSubnetworkNameBytes()166 public com.google.protobuf.ByteString getSubnetworkNameBytes() { 167 java.lang.Object ref = subnetworkName_; 168 if (ref instanceof java.lang.String) { 169 com.google.protobuf.ByteString b = 170 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 171 subnetworkName_ = b; 172 return b; 173 } else { 174 return (com.google.protobuf.ByteString) ref; 175 } 176 } 177 178 public static final int CLUSTER_IPV4_CIDR_FIELD_NUMBER = 4; 179 180 @SuppressWarnings("serial") 181 private volatile java.lang.Object clusterIpv4Cidr_ = ""; 182 /** 183 * 184 * 185 * <pre> 186 * This field is deprecated, use cluster_ipv4_cidr_block. 187 * </pre> 188 * 189 * <code>string cluster_ipv4_cidr = 4 [deprecated = true];</code> 190 * 191 * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See 192 * google/container/v1/cluster_service.proto;l=1377 193 * @return The clusterIpv4Cidr. 194 */ 195 @java.lang.Override 196 @java.lang.Deprecated getClusterIpv4Cidr()197 public java.lang.String getClusterIpv4Cidr() { 198 java.lang.Object ref = clusterIpv4Cidr_; 199 if (ref instanceof java.lang.String) { 200 return (java.lang.String) ref; 201 } else { 202 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 203 java.lang.String s = bs.toStringUtf8(); 204 clusterIpv4Cidr_ = s; 205 return s; 206 } 207 } 208 /** 209 * 210 * 211 * <pre> 212 * This field is deprecated, use cluster_ipv4_cidr_block. 213 * </pre> 214 * 215 * <code>string cluster_ipv4_cidr = 4 [deprecated = true];</code> 216 * 217 * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See 218 * google/container/v1/cluster_service.proto;l=1377 219 * @return The bytes for clusterIpv4Cidr. 220 */ 221 @java.lang.Override 222 @java.lang.Deprecated getClusterIpv4CidrBytes()223 public com.google.protobuf.ByteString getClusterIpv4CidrBytes() { 224 java.lang.Object ref = clusterIpv4Cidr_; 225 if (ref instanceof java.lang.String) { 226 com.google.protobuf.ByteString b = 227 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 228 clusterIpv4Cidr_ = b; 229 return b; 230 } else { 231 return (com.google.protobuf.ByteString) ref; 232 } 233 } 234 235 public static final int NODE_IPV4_CIDR_FIELD_NUMBER = 5; 236 237 @SuppressWarnings("serial") 238 private volatile java.lang.Object nodeIpv4Cidr_ = ""; 239 /** 240 * 241 * 242 * <pre> 243 * This field is deprecated, use node_ipv4_cidr_block. 244 * </pre> 245 * 246 * <code>string node_ipv4_cidr = 5 [deprecated = true];</code> 247 * 248 * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See 249 * google/container/v1/cluster_service.proto;l=1380 250 * @return The nodeIpv4Cidr. 251 */ 252 @java.lang.Override 253 @java.lang.Deprecated getNodeIpv4Cidr()254 public java.lang.String getNodeIpv4Cidr() { 255 java.lang.Object ref = nodeIpv4Cidr_; 256 if (ref instanceof java.lang.String) { 257 return (java.lang.String) ref; 258 } else { 259 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 260 java.lang.String s = bs.toStringUtf8(); 261 nodeIpv4Cidr_ = s; 262 return s; 263 } 264 } 265 /** 266 * 267 * 268 * <pre> 269 * This field is deprecated, use node_ipv4_cidr_block. 270 * </pre> 271 * 272 * <code>string node_ipv4_cidr = 5 [deprecated = true];</code> 273 * 274 * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See 275 * google/container/v1/cluster_service.proto;l=1380 276 * @return The bytes for nodeIpv4Cidr. 277 */ 278 @java.lang.Override 279 @java.lang.Deprecated getNodeIpv4CidrBytes()280 public com.google.protobuf.ByteString getNodeIpv4CidrBytes() { 281 java.lang.Object ref = nodeIpv4Cidr_; 282 if (ref instanceof java.lang.String) { 283 com.google.protobuf.ByteString b = 284 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 285 nodeIpv4Cidr_ = b; 286 return b; 287 } else { 288 return (com.google.protobuf.ByteString) ref; 289 } 290 } 291 292 public static final int SERVICES_IPV4_CIDR_FIELD_NUMBER = 6; 293 294 @SuppressWarnings("serial") 295 private volatile java.lang.Object servicesIpv4Cidr_ = ""; 296 /** 297 * 298 * 299 * <pre> 300 * This field is deprecated, use services_ipv4_cidr_block. 301 * </pre> 302 * 303 * <code>string services_ipv4_cidr = 6 [deprecated = true];</code> 304 * 305 * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See 306 * google/container/v1/cluster_service.proto;l=1383 307 * @return The servicesIpv4Cidr. 308 */ 309 @java.lang.Override 310 @java.lang.Deprecated getServicesIpv4Cidr()311 public java.lang.String getServicesIpv4Cidr() { 312 java.lang.Object ref = servicesIpv4Cidr_; 313 if (ref instanceof java.lang.String) { 314 return (java.lang.String) ref; 315 } else { 316 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 317 java.lang.String s = bs.toStringUtf8(); 318 servicesIpv4Cidr_ = s; 319 return s; 320 } 321 } 322 /** 323 * 324 * 325 * <pre> 326 * This field is deprecated, use services_ipv4_cidr_block. 327 * </pre> 328 * 329 * <code>string services_ipv4_cidr = 6 [deprecated = true];</code> 330 * 331 * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See 332 * google/container/v1/cluster_service.proto;l=1383 333 * @return The bytes for servicesIpv4Cidr. 334 */ 335 @java.lang.Override 336 @java.lang.Deprecated getServicesIpv4CidrBytes()337 public com.google.protobuf.ByteString getServicesIpv4CidrBytes() { 338 java.lang.Object ref = servicesIpv4Cidr_; 339 if (ref instanceof java.lang.String) { 340 com.google.protobuf.ByteString b = 341 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 342 servicesIpv4Cidr_ = b; 343 return b; 344 } else { 345 return (com.google.protobuf.ByteString) ref; 346 } 347 } 348 349 public static final int CLUSTER_SECONDARY_RANGE_NAME_FIELD_NUMBER = 7; 350 351 @SuppressWarnings("serial") 352 private volatile java.lang.Object clusterSecondaryRangeName_ = ""; 353 /** 354 * 355 * 356 * <pre> 357 * The name of the secondary range to be used for the cluster CIDR 358 * block. The secondary range will be used for pod IP 359 * addresses. This must be an existing secondary range associated 360 * with the cluster subnetwork. 361 * This field is only applicable with use_ip_aliases is true and 362 * create_subnetwork is false. 363 * </pre> 364 * 365 * <code>string cluster_secondary_range_name = 7;</code> 366 * 367 * @return The clusterSecondaryRangeName. 368 */ 369 @java.lang.Override getClusterSecondaryRangeName()370 public java.lang.String getClusterSecondaryRangeName() { 371 java.lang.Object ref = clusterSecondaryRangeName_; 372 if (ref instanceof java.lang.String) { 373 return (java.lang.String) ref; 374 } else { 375 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 376 java.lang.String s = bs.toStringUtf8(); 377 clusterSecondaryRangeName_ = s; 378 return s; 379 } 380 } 381 /** 382 * 383 * 384 * <pre> 385 * The name of the secondary range to be used for the cluster CIDR 386 * block. The secondary range will be used for pod IP 387 * addresses. This must be an existing secondary range associated 388 * with the cluster subnetwork. 389 * This field is only applicable with use_ip_aliases is true and 390 * create_subnetwork is false. 391 * </pre> 392 * 393 * <code>string cluster_secondary_range_name = 7;</code> 394 * 395 * @return The bytes for clusterSecondaryRangeName. 396 */ 397 @java.lang.Override getClusterSecondaryRangeNameBytes()398 public com.google.protobuf.ByteString getClusterSecondaryRangeNameBytes() { 399 java.lang.Object ref = clusterSecondaryRangeName_; 400 if (ref instanceof java.lang.String) { 401 com.google.protobuf.ByteString b = 402 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 403 clusterSecondaryRangeName_ = b; 404 return b; 405 } else { 406 return (com.google.protobuf.ByteString) ref; 407 } 408 } 409 410 public static final int SERVICES_SECONDARY_RANGE_NAME_FIELD_NUMBER = 8; 411 412 @SuppressWarnings("serial") 413 private volatile java.lang.Object servicesSecondaryRangeName_ = ""; 414 /** 415 * 416 * 417 * <pre> 418 * The name of the secondary range to be used as for the services 419 * CIDR block. The secondary range will be used for service 420 * ClusterIPs. This must be an existing secondary range associated 421 * with the cluster subnetwork. 422 * This field is only applicable with use_ip_aliases is true and 423 * create_subnetwork is false. 424 * </pre> 425 * 426 * <code>string services_secondary_range_name = 8;</code> 427 * 428 * @return The servicesSecondaryRangeName. 429 */ 430 @java.lang.Override getServicesSecondaryRangeName()431 public java.lang.String getServicesSecondaryRangeName() { 432 java.lang.Object ref = servicesSecondaryRangeName_; 433 if (ref instanceof java.lang.String) { 434 return (java.lang.String) ref; 435 } else { 436 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 437 java.lang.String s = bs.toStringUtf8(); 438 servicesSecondaryRangeName_ = s; 439 return s; 440 } 441 } 442 /** 443 * 444 * 445 * <pre> 446 * The name of the secondary range to be used as for the services 447 * CIDR block. The secondary range will be used for service 448 * ClusterIPs. This must be an existing secondary range associated 449 * with the cluster subnetwork. 450 * This field is only applicable with use_ip_aliases is true and 451 * create_subnetwork is false. 452 * </pre> 453 * 454 * <code>string services_secondary_range_name = 8;</code> 455 * 456 * @return The bytes for servicesSecondaryRangeName. 457 */ 458 @java.lang.Override getServicesSecondaryRangeNameBytes()459 public com.google.protobuf.ByteString getServicesSecondaryRangeNameBytes() { 460 java.lang.Object ref = servicesSecondaryRangeName_; 461 if (ref instanceof java.lang.String) { 462 com.google.protobuf.ByteString b = 463 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 464 servicesSecondaryRangeName_ = b; 465 return b; 466 } else { 467 return (com.google.protobuf.ByteString) ref; 468 } 469 } 470 471 public static final int CLUSTER_IPV4_CIDR_BLOCK_FIELD_NUMBER = 9; 472 473 @SuppressWarnings("serial") 474 private volatile java.lang.Object clusterIpv4CidrBlock_ = ""; 475 /** 476 * 477 * 478 * <pre> 479 * The IP address range for the cluster pod IPs. If this field is set, then 480 * `cluster.cluster_ipv4_cidr` must be left blank. 481 * This field is only applicable when `use_ip_aliases` is true. 482 * Set to blank to have a range chosen with the default size. 483 * Set to /netmask (e.g. `/14`) to have a range chosen with a specific 484 * netmask. 485 * Set to a 486 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) 487 * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. 488 * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range 489 * to use. 490 * </pre> 491 * 492 * <code>string cluster_ipv4_cidr_block = 9;</code> 493 * 494 * @return The clusterIpv4CidrBlock. 495 */ 496 @java.lang.Override getClusterIpv4CidrBlock()497 public java.lang.String getClusterIpv4CidrBlock() { 498 java.lang.Object ref = clusterIpv4CidrBlock_; 499 if (ref instanceof java.lang.String) { 500 return (java.lang.String) ref; 501 } else { 502 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 503 java.lang.String s = bs.toStringUtf8(); 504 clusterIpv4CidrBlock_ = s; 505 return s; 506 } 507 } 508 /** 509 * 510 * 511 * <pre> 512 * The IP address range for the cluster pod IPs. If this field is set, then 513 * `cluster.cluster_ipv4_cidr` must be left blank. 514 * This field is only applicable when `use_ip_aliases` is true. 515 * Set to blank to have a range chosen with the default size. 516 * Set to /netmask (e.g. `/14`) to have a range chosen with a specific 517 * netmask. 518 * Set to a 519 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) 520 * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. 521 * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range 522 * to use. 523 * </pre> 524 * 525 * <code>string cluster_ipv4_cidr_block = 9;</code> 526 * 527 * @return The bytes for clusterIpv4CidrBlock. 528 */ 529 @java.lang.Override getClusterIpv4CidrBlockBytes()530 public com.google.protobuf.ByteString getClusterIpv4CidrBlockBytes() { 531 java.lang.Object ref = clusterIpv4CidrBlock_; 532 if (ref instanceof java.lang.String) { 533 com.google.protobuf.ByteString b = 534 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 535 clusterIpv4CidrBlock_ = b; 536 return b; 537 } else { 538 return (com.google.protobuf.ByteString) ref; 539 } 540 } 541 542 public static final int NODE_IPV4_CIDR_BLOCK_FIELD_NUMBER = 10; 543 544 @SuppressWarnings("serial") 545 private volatile java.lang.Object nodeIpv4CidrBlock_ = ""; 546 /** 547 * 548 * 549 * <pre> 550 * The IP address range of the instance IPs in this cluster. 551 * This is applicable only if `create_subnetwork` is true. 552 * Set to blank to have a range chosen with the default size. 553 * Set to /netmask (e.g. `/14`) to have a range chosen with a specific 554 * netmask. 555 * Set to a 556 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) 557 * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. 558 * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range 559 * to use. 560 * </pre> 561 * 562 * <code>string node_ipv4_cidr_block = 10;</code> 563 * 564 * @return The nodeIpv4CidrBlock. 565 */ 566 @java.lang.Override getNodeIpv4CidrBlock()567 public java.lang.String getNodeIpv4CidrBlock() { 568 java.lang.Object ref = nodeIpv4CidrBlock_; 569 if (ref instanceof java.lang.String) { 570 return (java.lang.String) ref; 571 } else { 572 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 573 java.lang.String s = bs.toStringUtf8(); 574 nodeIpv4CidrBlock_ = s; 575 return s; 576 } 577 } 578 /** 579 * 580 * 581 * <pre> 582 * The IP address range of the instance IPs in this cluster. 583 * This is applicable only if `create_subnetwork` is true. 584 * Set to blank to have a range chosen with the default size. 585 * Set to /netmask (e.g. `/14`) to have a range chosen with a specific 586 * netmask. 587 * Set to a 588 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) 589 * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. 590 * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range 591 * to use. 592 * </pre> 593 * 594 * <code>string node_ipv4_cidr_block = 10;</code> 595 * 596 * @return The bytes for nodeIpv4CidrBlock. 597 */ 598 @java.lang.Override getNodeIpv4CidrBlockBytes()599 public com.google.protobuf.ByteString getNodeIpv4CidrBlockBytes() { 600 java.lang.Object ref = nodeIpv4CidrBlock_; 601 if (ref instanceof java.lang.String) { 602 com.google.protobuf.ByteString b = 603 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 604 nodeIpv4CidrBlock_ = b; 605 return b; 606 } else { 607 return (com.google.protobuf.ByteString) ref; 608 } 609 } 610 611 public static final int SERVICES_IPV4_CIDR_BLOCK_FIELD_NUMBER = 11; 612 613 @SuppressWarnings("serial") 614 private volatile java.lang.Object servicesIpv4CidrBlock_ = ""; 615 /** 616 * 617 * 618 * <pre> 619 * The IP address range of the services IPs in this cluster. If blank, a range 620 * will be automatically chosen with the default size. 621 * This field is only applicable when `use_ip_aliases` is true. 622 * Set to blank to have a range chosen with the default size. 623 * Set to /netmask (e.g. `/14`) to have a range chosen with a specific 624 * netmask. 625 * Set to a 626 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) 627 * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. 628 * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range 629 * to use. 630 * </pre> 631 * 632 * <code>string services_ipv4_cidr_block = 11;</code> 633 * 634 * @return The servicesIpv4CidrBlock. 635 */ 636 @java.lang.Override getServicesIpv4CidrBlock()637 public java.lang.String getServicesIpv4CidrBlock() { 638 java.lang.Object ref = servicesIpv4CidrBlock_; 639 if (ref instanceof java.lang.String) { 640 return (java.lang.String) ref; 641 } else { 642 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 643 java.lang.String s = bs.toStringUtf8(); 644 servicesIpv4CidrBlock_ = s; 645 return s; 646 } 647 } 648 /** 649 * 650 * 651 * <pre> 652 * The IP address range of the services IPs in this cluster. If blank, a range 653 * will be automatically chosen with the default size. 654 * This field is only applicable when `use_ip_aliases` is true. 655 * Set to blank to have a range chosen with the default size. 656 * Set to /netmask (e.g. `/14`) to have a range chosen with a specific 657 * netmask. 658 * Set to a 659 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) 660 * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. 661 * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range 662 * to use. 663 * </pre> 664 * 665 * <code>string services_ipv4_cidr_block = 11;</code> 666 * 667 * @return The bytes for servicesIpv4CidrBlock. 668 */ 669 @java.lang.Override getServicesIpv4CidrBlockBytes()670 public com.google.protobuf.ByteString getServicesIpv4CidrBlockBytes() { 671 java.lang.Object ref = servicesIpv4CidrBlock_; 672 if (ref instanceof java.lang.String) { 673 com.google.protobuf.ByteString b = 674 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 675 servicesIpv4CidrBlock_ = b; 676 return b; 677 } else { 678 return (com.google.protobuf.ByteString) ref; 679 } 680 } 681 682 public static final int TPU_IPV4_CIDR_BLOCK_FIELD_NUMBER = 13; 683 684 @SuppressWarnings("serial") 685 private volatile java.lang.Object tpuIpv4CidrBlock_ = ""; 686 /** 687 * 688 * 689 * <pre> 690 * The IP address range of the Cloud TPUs in this cluster. If unspecified, a 691 * range will be automatically chosen with the default size. 692 * This field is only applicable when `use_ip_aliases` is true. 693 * If unspecified, the range will use the default size. 694 * Set to /netmask (e.g. `/14`) to have a range chosen with a specific 695 * netmask. 696 * Set to a 697 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) 698 * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. 699 * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range 700 * to use. 701 * </pre> 702 * 703 * <code>string tpu_ipv4_cidr_block = 13;</code> 704 * 705 * @return The tpuIpv4CidrBlock. 706 */ 707 @java.lang.Override getTpuIpv4CidrBlock()708 public java.lang.String getTpuIpv4CidrBlock() { 709 java.lang.Object ref = tpuIpv4CidrBlock_; 710 if (ref instanceof java.lang.String) { 711 return (java.lang.String) ref; 712 } else { 713 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 714 java.lang.String s = bs.toStringUtf8(); 715 tpuIpv4CidrBlock_ = s; 716 return s; 717 } 718 } 719 /** 720 * 721 * 722 * <pre> 723 * The IP address range of the Cloud TPUs in this cluster. If unspecified, a 724 * range will be automatically chosen with the default size. 725 * This field is only applicable when `use_ip_aliases` is true. 726 * If unspecified, the range will use the default size. 727 * Set to /netmask (e.g. `/14`) to have a range chosen with a specific 728 * netmask. 729 * Set to a 730 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) 731 * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. 732 * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range 733 * to use. 734 * </pre> 735 * 736 * <code>string tpu_ipv4_cidr_block = 13;</code> 737 * 738 * @return The bytes for tpuIpv4CidrBlock. 739 */ 740 @java.lang.Override getTpuIpv4CidrBlockBytes()741 public com.google.protobuf.ByteString getTpuIpv4CidrBlockBytes() { 742 java.lang.Object ref = tpuIpv4CidrBlock_; 743 if (ref instanceof java.lang.String) { 744 com.google.protobuf.ByteString b = 745 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 746 tpuIpv4CidrBlock_ = b; 747 return b; 748 } else { 749 return (com.google.protobuf.ByteString) ref; 750 } 751 } 752 753 public static final int USE_ROUTES_FIELD_NUMBER = 15; 754 private boolean useRoutes_ = false; 755 /** 756 * 757 * 758 * <pre> 759 * Whether routes will be used for pod IPs in the cluster. 760 * This is used in conjunction with use_ip_aliases. It cannot be true if 761 * use_ip_aliases is true. If both use_ip_aliases and use_routes are false, 762 * then the server picks the default IP allocation mode 763 * </pre> 764 * 765 * <code>bool use_routes = 15;</code> 766 * 767 * @return The useRoutes. 768 */ 769 @java.lang.Override getUseRoutes()770 public boolean getUseRoutes() { 771 return useRoutes_; 772 } 773 774 public static final int STACK_TYPE_FIELD_NUMBER = 16; 775 private int stackType_ = 0; 776 /** 777 * 778 * 779 * <pre> 780 * The IP stack type of the cluster 781 * </pre> 782 * 783 * <code>.google.container.v1.StackType stack_type = 16;</code> 784 * 785 * @return The enum numeric value on the wire for stackType. 786 */ 787 @java.lang.Override getStackTypeValue()788 public int getStackTypeValue() { 789 return stackType_; 790 } 791 /** 792 * 793 * 794 * <pre> 795 * The IP stack type of the cluster 796 * </pre> 797 * 798 * <code>.google.container.v1.StackType stack_type = 16;</code> 799 * 800 * @return The stackType. 801 */ 802 @java.lang.Override getStackType()803 public com.google.container.v1.StackType getStackType() { 804 com.google.container.v1.StackType result = 805 com.google.container.v1.StackType.forNumber(stackType_); 806 return result == null ? com.google.container.v1.StackType.UNRECOGNIZED : result; 807 } 808 809 public static final int IPV6_ACCESS_TYPE_FIELD_NUMBER = 17; 810 private int ipv6AccessType_ = 0; 811 /** 812 * 813 * 814 * <pre> 815 * The ipv6 access type (internal or external) when create_subnetwork is true 816 * </pre> 817 * 818 * <code>.google.container.v1.IPv6AccessType ipv6_access_type = 17;</code> 819 * 820 * @return The enum numeric value on the wire for ipv6AccessType. 821 */ 822 @java.lang.Override getIpv6AccessTypeValue()823 public int getIpv6AccessTypeValue() { 824 return ipv6AccessType_; 825 } 826 /** 827 * 828 * 829 * <pre> 830 * The ipv6 access type (internal or external) when create_subnetwork is true 831 * </pre> 832 * 833 * <code>.google.container.v1.IPv6AccessType ipv6_access_type = 17;</code> 834 * 835 * @return The ipv6AccessType. 836 */ 837 @java.lang.Override getIpv6AccessType()838 public com.google.container.v1.IPv6AccessType getIpv6AccessType() { 839 com.google.container.v1.IPv6AccessType result = 840 com.google.container.v1.IPv6AccessType.forNumber(ipv6AccessType_); 841 return result == null ? com.google.container.v1.IPv6AccessType.UNRECOGNIZED : result; 842 } 843 844 public static final int POD_CIDR_OVERPROVISION_CONFIG_FIELD_NUMBER = 21; 845 private com.google.container.v1.PodCIDROverprovisionConfig podCidrOverprovisionConfig_; 846 /** 847 * 848 * 849 * <pre> 850 * [PRIVATE FIELD] 851 * Pod CIDR size overprovisioning config for the cluster. 852 * Pod CIDR size per node depends on max_pods_per_node. By default, the value 853 * of max_pods_per_node is doubled and then rounded off to next power of 2 to 854 * get the size of pod CIDR block per node. 855 * Example: max_pods_per_node of 30 would result in 64 IPs (/26). 856 * This config can disable the doubling of IPs (we still round off to next 857 * power of 2) 858 * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when 859 * overprovisioning is disabled. 860 * </pre> 861 * 862 * <code>.google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; 863 * </code> 864 * 865 * @return Whether the podCidrOverprovisionConfig field is set. 866 */ 867 @java.lang.Override hasPodCidrOverprovisionConfig()868 public boolean hasPodCidrOverprovisionConfig() { 869 return podCidrOverprovisionConfig_ != null; 870 } 871 /** 872 * 873 * 874 * <pre> 875 * [PRIVATE FIELD] 876 * Pod CIDR size overprovisioning config for the cluster. 877 * Pod CIDR size per node depends on max_pods_per_node. By default, the value 878 * of max_pods_per_node is doubled and then rounded off to next power of 2 to 879 * get the size of pod CIDR block per node. 880 * Example: max_pods_per_node of 30 would result in 64 IPs (/26). 881 * This config can disable the doubling of IPs (we still round off to next 882 * power of 2) 883 * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when 884 * overprovisioning is disabled. 885 * </pre> 886 * 887 * <code>.google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; 888 * </code> 889 * 890 * @return The podCidrOverprovisionConfig. 891 */ 892 @java.lang.Override getPodCidrOverprovisionConfig()893 public com.google.container.v1.PodCIDROverprovisionConfig getPodCidrOverprovisionConfig() { 894 return podCidrOverprovisionConfig_ == null 895 ? com.google.container.v1.PodCIDROverprovisionConfig.getDefaultInstance() 896 : podCidrOverprovisionConfig_; 897 } 898 /** 899 * 900 * 901 * <pre> 902 * [PRIVATE FIELD] 903 * Pod CIDR size overprovisioning config for the cluster. 904 * Pod CIDR size per node depends on max_pods_per_node. By default, the value 905 * of max_pods_per_node is doubled and then rounded off to next power of 2 to 906 * get the size of pod CIDR block per node. 907 * Example: max_pods_per_node of 30 would result in 64 IPs (/26). 908 * This config can disable the doubling of IPs (we still round off to next 909 * power of 2) 910 * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when 911 * overprovisioning is disabled. 912 * </pre> 913 * 914 * <code>.google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; 915 * </code> 916 */ 917 @java.lang.Override 918 public com.google.container.v1.PodCIDROverprovisionConfigOrBuilder getPodCidrOverprovisionConfigOrBuilder()919 getPodCidrOverprovisionConfigOrBuilder() { 920 return podCidrOverprovisionConfig_ == null 921 ? com.google.container.v1.PodCIDROverprovisionConfig.getDefaultInstance() 922 : podCidrOverprovisionConfig_; 923 } 924 925 public static final int SUBNET_IPV6_CIDR_BLOCK_FIELD_NUMBER = 22; 926 927 @SuppressWarnings("serial") 928 private volatile java.lang.Object subnetIpv6CidrBlock_ = ""; 929 /** 930 * 931 * 932 * <pre> 933 * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and 934 * pods. 935 * </pre> 936 * 937 * <code>string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 938 * 939 * @return The subnetIpv6CidrBlock. 940 */ 941 @java.lang.Override getSubnetIpv6CidrBlock()942 public java.lang.String getSubnetIpv6CidrBlock() { 943 java.lang.Object ref = subnetIpv6CidrBlock_; 944 if (ref instanceof java.lang.String) { 945 return (java.lang.String) ref; 946 } else { 947 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 948 java.lang.String s = bs.toStringUtf8(); 949 subnetIpv6CidrBlock_ = s; 950 return s; 951 } 952 } 953 /** 954 * 955 * 956 * <pre> 957 * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and 958 * pods. 959 * </pre> 960 * 961 * <code>string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 962 * 963 * @return The bytes for subnetIpv6CidrBlock. 964 */ 965 @java.lang.Override getSubnetIpv6CidrBlockBytes()966 public com.google.protobuf.ByteString getSubnetIpv6CidrBlockBytes() { 967 java.lang.Object ref = subnetIpv6CidrBlock_; 968 if (ref instanceof java.lang.String) { 969 com.google.protobuf.ByteString b = 970 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 971 subnetIpv6CidrBlock_ = b; 972 return b; 973 } else { 974 return (com.google.protobuf.ByteString) ref; 975 } 976 } 977 978 public static final int SERVICES_IPV6_CIDR_BLOCK_FIELD_NUMBER = 23; 979 980 @SuppressWarnings("serial") 981 private volatile java.lang.Object servicesIpv6CidrBlock_ = ""; 982 /** 983 * 984 * 985 * <pre> 986 * Output only. [Output only] The services IPv6 CIDR block for the cluster. 987 * </pre> 988 * 989 * <code>string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 990 * 991 * @return The servicesIpv6CidrBlock. 992 */ 993 @java.lang.Override getServicesIpv6CidrBlock()994 public java.lang.String getServicesIpv6CidrBlock() { 995 java.lang.Object ref = servicesIpv6CidrBlock_; 996 if (ref instanceof java.lang.String) { 997 return (java.lang.String) ref; 998 } else { 999 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1000 java.lang.String s = bs.toStringUtf8(); 1001 servicesIpv6CidrBlock_ = s; 1002 return s; 1003 } 1004 } 1005 /** 1006 * 1007 * 1008 * <pre> 1009 * Output only. [Output only] The services IPv6 CIDR block for the cluster. 1010 * </pre> 1011 * 1012 * <code>string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1013 * 1014 * @return The bytes for servicesIpv6CidrBlock. 1015 */ 1016 @java.lang.Override getServicesIpv6CidrBlockBytes()1017 public com.google.protobuf.ByteString getServicesIpv6CidrBlockBytes() { 1018 java.lang.Object ref = servicesIpv6CidrBlock_; 1019 if (ref instanceof java.lang.String) { 1020 com.google.protobuf.ByteString b = 1021 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1022 servicesIpv6CidrBlock_ = b; 1023 return b; 1024 } else { 1025 return (com.google.protobuf.ByteString) ref; 1026 } 1027 } 1028 1029 public static final int ADDITIONAL_POD_RANGES_CONFIG_FIELD_NUMBER = 24; 1030 private com.google.container.v1.AdditionalPodRangesConfig additionalPodRangesConfig_; 1031 /** 1032 * 1033 * 1034 * <pre> 1035 * Output only. [Output only] The additional pod ranges that are added to the 1036 * cluster. These pod ranges can be used by new node pools to allocate pod IPs 1037 * automatically. Once the range is removed it will not show up in 1038 * IPAllocationPolicy. 1039 * </pre> 1040 * 1041 * <code> 1042 * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1043 * </code> 1044 * 1045 * @return Whether the additionalPodRangesConfig field is set. 1046 */ 1047 @java.lang.Override hasAdditionalPodRangesConfig()1048 public boolean hasAdditionalPodRangesConfig() { 1049 return additionalPodRangesConfig_ != null; 1050 } 1051 /** 1052 * 1053 * 1054 * <pre> 1055 * Output only. [Output only] The additional pod ranges that are added to the 1056 * cluster. These pod ranges can be used by new node pools to allocate pod IPs 1057 * automatically. Once the range is removed it will not show up in 1058 * IPAllocationPolicy. 1059 * </pre> 1060 * 1061 * <code> 1062 * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1063 * </code> 1064 * 1065 * @return The additionalPodRangesConfig. 1066 */ 1067 @java.lang.Override getAdditionalPodRangesConfig()1068 public com.google.container.v1.AdditionalPodRangesConfig getAdditionalPodRangesConfig() { 1069 return additionalPodRangesConfig_ == null 1070 ? com.google.container.v1.AdditionalPodRangesConfig.getDefaultInstance() 1071 : additionalPodRangesConfig_; 1072 } 1073 /** 1074 * 1075 * 1076 * <pre> 1077 * Output only. [Output only] The additional pod ranges that are added to the 1078 * cluster. These pod ranges can be used by new node pools to allocate pod IPs 1079 * automatically. Once the range is removed it will not show up in 1080 * IPAllocationPolicy. 1081 * </pre> 1082 * 1083 * <code> 1084 * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1085 * </code> 1086 */ 1087 @java.lang.Override 1088 public com.google.container.v1.AdditionalPodRangesConfigOrBuilder getAdditionalPodRangesConfigOrBuilder()1089 getAdditionalPodRangesConfigOrBuilder() { 1090 return additionalPodRangesConfig_ == null 1091 ? com.google.container.v1.AdditionalPodRangesConfig.getDefaultInstance() 1092 : additionalPodRangesConfig_; 1093 } 1094 1095 private byte memoizedIsInitialized = -1; 1096 1097 @java.lang.Override isInitialized()1098 public final boolean isInitialized() { 1099 byte isInitialized = memoizedIsInitialized; 1100 if (isInitialized == 1) return true; 1101 if (isInitialized == 0) return false; 1102 1103 memoizedIsInitialized = 1; 1104 return true; 1105 } 1106 1107 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)1108 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 1109 if (useIpAliases_ != false) { 1110 output.writeBool(1, useIpAliases_); 1111 } 1112 if (createSubnetwork_ != false) { 1113 output.writeBool(2, createSubnetwork_); 1114 } 1115 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetworkName_)) { 1116 com.google.protobuf.GeneratedMessageV3.writeString(output, 3, subnetworkName_); 1117 } 1118 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterIpv4Cidr_)) { 1119 com.google.protobuf.GeneratedMessageV3.writeString(output, 4, clusterIpv4Cidr_); 1120 } 1121 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeIpv4Cidr_)) { 1122 com.google.protobuf.GeneratedMessageV3.writeString(output, 5, nodeIpv4Cidr_); 1123 } 1124 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesIpv4Cidr_)) { 1125 com.google.protobuf.GeneratedMessageV3.writeString(output, 6, servicesIpv4Cidr_); 1126 } 1127 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterSecondaryRangeName_)) { 1128 com.google.protobuf.GeneratedMessageV3.writeString(output, 7, clusterSecondaryRangeName_); 1129 } 1130 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesSecondaryRangeName_)) { 1131 com.google.protobuf.GeneratedMessageV3.writeString(output, 8, servicesSecondaryRangeName_); 1132 } 1133 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterIpv4CidrBlock_)) { 1134 com.google.protobuf.GeneratedMessageV3.writeString(output, 9, clusterIpv4CidrBlock_); 1135 } 1136 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeIpv4CidrBlock_)) { 1137 com.google.protobuf.GeneratedMessageV3.writeString(output, 10, nodeIpv4CidrBlock_); 1138 } 1139 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesIpv4CidrBlock_)) { 1140 com.google.protobuf.GeneratedMessageV3.writeString(output, 11, servicesIpv4CidrBlock_); 1141 } 1142 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tpuIpv4CidrBlock_)) { 1143 com.google.protobuf.GeneratedMessageV3.writeString(output, 13, tpuIpv4CidrBlock_); 1144 } 1145 if (useRoutes_ != false) { 1146 output.writeBool(15, useRoutes_); 1147 } 1148 if (stackType_ != com.google.container.v1.StackType.STACK_TYPE_UNSPECIFIED.getNumber()) { 1149 output.writeEnum(16, stackType_); 1150 } 1151 if (ipv6AccessType_ 1152 != com.google.container.v1.IPv6AccessType.IPV6_ACCESS_TYPE_UNSPECIFIED.getNumber()) { 1153 output.writeEnum(17, ipv6AccessType_); 1154 } 1155 if (podCidrOverprovisionConfig_ != null) { 1156 output.writeMessage(21, getPodCidrOverprovisionConfig()); 1157 } 1158 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetIpv6CidrBlock_)) { 1159 com.google.protobuf.GeneratedMessageV3.writeString(output, 22, subnetIpv6CidrBlock_); 1160 } 1161 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesIpv6CidrBlock_)) { 1162 com.google.protobuf.GeneratedMessageV3.writeString(output, 23, servicesIpv6CidrBlock_); 1163 } 1164 if (additionalPodRangesConfig_ != null) { 1165 output.writeMessage(24, getAdditionalPodRangesConfig()); 1166 } 1167 getUnknownFields().writeTo(output); 1168 } 1169 1170 @java.lang.Override getSerializedSize()1171 public int getSerializedSize() { 1172 int size = memoizedSize; 1173 if (size != -1) return size; 1174 1175 size = 0; 1176 if (useIpAliases_ != false) { 1177 size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, useIpAliases_); 1178 } 1179 if (createSubnetwork_ != false) { 1180 size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, createSubnetwork_); 1181 } 1182 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetworkName_)) { 1183 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, subnetworkName_); 1184 } 1185 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterIpv4Cidr_)) { 1186 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, clusterIpv4Cidr_); 1187 } 1188 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeIpv4Cidr_)) { 1189 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, nodeIpv4Cidr_); 1190 } 1191 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesIpv4Cidr_)) { 1192 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, servicesIpv4Cidr_); 1193 } 1194 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterSecondaryRangeName_)) { 1195 size += 1196 com.google.protobuf.GeneratedMessageV3.computeStringSize(7, clusterSecondaryRangeName_); 1197 } 1198 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesSecondaryRangeName_)) { 1199 size += 1200 com.google.protobuf.GeneratedMessageV3.computeStringSize(8, servicesSecondaryRangeName_); 1201 } 1202 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterIpv4CidrBlock_)) { 1203 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, clusterIpv4CidrBlock_); 1204 } 1205 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeIpv4CidrBlock_)) { 1206 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, nodeIpv4CidrBlock_); 1207 } 1208 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesIpv4CidrBlock_)) { 1209 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, servicesIpv4CidrBlock_); 1210 } 1211 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tpuIpv4CidrBlock_)) { 1212 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, tpuIpv4CidrBlock_); 1213 } 1214 if (useRoutes_ != false) { 1215 size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, useRoutes_); 1216 } 1217 if (stackType_ != com.google.container.v1.StackType.STACK_TYPE_UNSPECIFIED.getNumber()) { 1218 size += com.google.protobuf.CodedOutputStream.computeEnumSize(16, stackType_); 1219 } 1220 if (ipv6AccessType_ 1221 != com.google.container.v1.IPv6AccessType.IPV6_ACCESS_TYPE_UNSPECIFIED.getNumber()) { 1222 size += com.google.protobuf.CodedOutputStream.computeEnumSize(17, ipv6AccessType_); 1223 } 1224 if (podCidrOverprovisionConfig_ != null) { 1225 size += 1226 com.google.protobuf.CodedOutputStream.computeMessageSize( 1227 21, getPodCidrOverprovisionConfig()); 1228 } 1229 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetIpv6CidrBlock_)) { 1230 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, subnetIpv6CidrBlock_); 1231 } 1232 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesIpv6CidrBlock_)) { 1233 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, servicesIpv6CidrBlock_); 1234 } 1235 if (additionalPodRangesConfig_ != null) { 1236 size += 1237 com.google.protobuf.CodedOutputStream.computeMessageSize( 1238 24, getAdditionalPodRangesConfig()); 1239 } 1240 size += getUnknownFields().getSerializedSize(); 1241 memoizedSize = size; 1242 return size; 1243 } 1244 1245 @java.lang.Override equals(final java.lang.Object obj)1246 public boolean equals(final java.lang.Object obj) { 1247 if (obj == this) { 1248 return true; 1249 } 1250 if (!(obj instanceof com.google.container.v1.IPAllocationPolicy)) { 1251 return super.equals(obj); 1252 } 1253 com.google.container.v1.IPAllocationPolicy other = 1254 (com.google.container.v1.IPAllocationPolicy) obj; 1255 1256 if (getUseIpAliases() != other.getUseIpAliases()) return false; 1257 if (getCreateSubnetwork() != other.getCreateSubnetwork()) return false; 1258 if (!getSubnetworkName().equals(other.getSubnetworkName())) return false; 1259 if (!getClusterIpv4Cidr().equals(other.getClusterIpv4Cidr())) return false; 1260 if (!getNodeIpv4Cidr().equals(other.getNodeIpv4Cidr())) return false; 1261 if (!getServicesIpv4Cidr().equals(other.getServicesIpv4Cidr())) return false; 1262 if (!getClusterSecondaryRangeName().equals(other.getClusterSecondaryRangeName())) return false; 1263 if (!getServicesSecondaryRangeName().equals(other.getServicesSecondaryRangeName())) 1264 return false; 1265 if (!getClusterIpv4CidrBlock().equals(other.getClusterIpv4CidrBlock())) return false; 1266 if (!getNodeIpv4CidrBlock().equals(other.getNodeIpv4CidrBlock())) return false; 1267 if (!getServicesIpv4CidrBlock().equals(other.getServicesIpv4CidrBlock())) return false; 1268 if (!getTpuIpv4CidrBlock().equals(other.getTpuIpv4CidrBlock())) return false; 1269 if (getUseRoutes() != other.getUseRoutes()) return false; 1270 if (stackType_ != other.stackType_) return false; 1271 if (ipv6AccessType_ != other.ipv6AccessType_) return false; 1272 if (hasPodCidrOverprovisionConfig() != other.hasPodCidrOverprovisionConfig()) return false; 1273 if (hasPodCidrOverprovisionConfig()) { 1274 if (!getPodCidrOverprovisionConfig().equals(other.getPodCidrOverprovisionConfig())) 1275 return false; 1276 } 1277 if (!getSubnetIpv6CidrBlock().equals(other.getSubnetIpv6CidrBlock())) return false; 1278 if (!getServicesIpv6CidrBlock().equals(other.getServicesIpv6CidrBlock())) return false; 1279 if (hasAdditionalPodRangesConfig() != other.hasAdditionalPodRangesConfig()) return false; 1280 if (hasAdditionalPodRangesConfig()) { 1281 if (!getAdditionalPodRangesConfig().equals(other.getAdditionalPodRangesConfig())) 1282 return false; 1283 } 1284 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 1285 return true; 1286 } 1287 1288 @java.lang.Override hashCode()1289 public int hashCode() { 1290 if (memoizedHashCode != 0) { 1291 return memoizedHashCode; 1292 } 1293 int hash = 41; 1294 hash = (19 * hash) + getDescriptor().hashCode(); 1295 hash = (37 * hash) + USE_IP_ALIASES_FIELD_NUMBER; 1296 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseIpAliases()); 1297 hash = (37 * hash) + CREATE_SUBNETWORK_FIELD_NUMBER; 1298 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCreateSubnetwork()); 1299 hash = (37 * hash) + SUBNETWORK_NAME_FIELD_NUMBER; 1300 hash = (53 * hash) + getSubnetworkName().hashCode(); 1301 hash = (37 * hash) + CLUSTER_IPV4_CIDR_FIELD_NUMBER; 1302 hash = (53 * hash) + getClusterIpv4Cidr().hashCode(); 1303 hash = (37 * hash) + NODE_IPV4_CIDR_FIELD_NUMBER; 1304 hash = (53 * hash) + getNodeIpv4Cidr().hashCode(); 1305 hash = (37 * hash) + SERVICES_IPV4_CIDR_FIELD_NUMBER; 1306 hash = (53 * hash) + getServicesIpv4Cidr().hashCode(); 1307 hash = (37 * hash) + CLUSTER_SECONDARY_RANGE_NAME_FIELD_NUMBER; 1308 hash = (53 * hash) + getClusterSecondaryRangeName().hashCode(); 1309 hash = (37 * hash) + SERVICES_SECONDARY_RANGE_NAME_FIELD_NUMBER; 1310 hash = (53 * hash) + getServicesSecondaryRangeName().hashCode(); 1311 hash = (37 * hash) + CLUSTER_IPV4_CIDR_BLOCK_FIELD_NUMBER; 1312 hash = (53 * hash) + getClusterIpv4CidrBlock().hashCode(); 1313 hash = (37 * hash) + NODE_IPV4_CIDR_BLOCK_FIELD_NUMBER; 1314 hash = (53 * hash) + getNodeIpv4CidrBlock().hashCode(); 1315 hash = (37 * hash) + SERVICES_IPV4_CIDR_BLOCK_FIELD_NUMBER; 1316 hash = (53 * hash) + getServicesIpv4CidrBlock().hashCode(); 1317 hash = (37 * hash) + TPU_IPV4_CIDR_BLOCK_FIELD_NUMBER; 1318 hash = (53 * hash) + getTpuIpv4CidrBlock().hashCode(); 1319 hash = (37 * hash) + USE_ROUTES_FIELD_NUMBER; 1320 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseRoutes()); 1321 hash = (37 * hash) + STACK_TYPE_FIELD_NUMBER; 1322 hash = (53 * hash) + stackType_; 1323 hash = (37 * hash) + IPV6_ACCESS_TYPE_FIELD_NUMBER; 1324 hash = (53 * hash) + ipv6AccessType_; 1325 if (hasPodCidrOverprovisionConfig()) { 1326 hash = (37 * hash) + POD_CIDR_OVERPROVISION_CONFIG_FIELD_NUMBER; 1327 hash = (53 * hash) + getPodCidrOverprovisionConfig().hashCode(); 1328 } 1329 hash = (37 * hash) + SUBNET_IPV6_CIDR_BLOCK_FIELD_NUMBER; 1330 hash = (53 * hash) + getSubnetIpv6CidrBlock().hashCode(); 1331 hash = (37 * hash) + SERVICES_IPV6_CIDR_BLOCK_FIELD_NUMBER; 1332 hash = (53 * hash) + getServicesIpv6CidrBlock().hashCode(); 1333 if (hasAdditionalPodRangesConfig()) { 1334 hash = (37 * hash) + ADDITIONAL_POD_RANGES_CONFIG_FIELD_NUMBER; 1335 hash = (53 * hash) + getAdditionalPodRangesConfig().hashCode(); 1336 } 1337 hash = (29 * hash) + getUnknownFields().hashCode(); 1338 memoizedHashCode = hash; 1339 return hash; 1340 } 1341 parseFrom(java.nio.ByteBuffer data)1342 public static com.google.container.v1.IPAllocationPolicy parseFrom(java.nio.ByteBuffer data) 1343 throws com.google.protobuf.InvalidProtocolBufferException { 1344 return PARSER.parseFrom(data); 1345 } 1346 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1347 public static com.google.container.v1.IPAllocationPolicy parseFrom( 1348 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1349 throws com.google.protobuf.InvalidProtocolBufferException { 1350 return PARSER.parseFrom(data, extensionRegistry); 1351 } 1352 parseFrom( com.google.protobuf.ByteString data)1353 public static com.google.container.v1.IPAllocationPolicy parseFrom( 1354 com.google.protobuf.ByteString data) 1355 throws com.google.protobuf.InvalidProtocolBufferException { 1356 return PARSER.parseFrom(data); 1357 } 1358 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1359 public static com.google.container.v1.IPAllocationPolicy parseFrom( 1360 com.google.protobuf.ByteString data, 1361 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1362 throws com.google.protobuf.InvalidProtocolBufferException { 1363 return PARSER.parseFrom(data, extensionRegistry); 1364 } 1365 parseFrom(byte[] data)1366 public static com.google.container.v1.IPAllocationPolicy parseFrom(byte[] data) 1367 throws com.google.protobuf.InvalidProtocolBufferException { 1368 return PARSER.parseFrom(data); 1369 } 1370 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1371 public static com.google.container.v1.IPAllocationPolicy parseFrom( 1372 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1373 throws com.google.protobuf.InvalidProtocolBufferException { 1374 return PARSER.parseFrom(data, extensionRegistry); 1375 } 1376 parseFrom(java.io.InputStream input)1377 public static com.google.container.v1.IPAllocationPolicy parseFrom(java.io.InputStream input) 1378 throws java.io.IOException { 1379 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 1380 } 1381 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1382 public static com.google.container.v1.IPAllocationPolicy parseFrom( 1383 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1384 throws java.io.IOException { 1385 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 1386 PARSER, input, extensionRegistry); 1387 } 1388 parseDelimitedFrom( java.io.InputStream input)1389 public static com.google.container.v1.IPAllocationPolicy parseDelimitedFrom( 1390 java.io.InputStream input) throws java.io.IOException { 1391 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 1392 } 1393 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1394 public static com.google.container.v1.IPAllocationPolicy parseDelimitedFrom( 1395 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1396 throws java.io.IOException { 1397 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 1398 PARSER, input, extensionRegistry); 1399 } 1400 parseFrom( com.google.protobuf.CodedInputStream input)1401 public static com.google.container.v1.IPAllocationPolicy parseFrom( 1402 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 1403 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 1404 } 1405 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1406 public static com.google.container.v1.IPAllocationPolicy parseFrom( 1407 com.google.protobuf.CodedInputStream input, 1408 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1409 throws java.io.IOException { 1410 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 1411 PARSER, input, extensionRegistry); 1412 } 1413 1414 @java.lang.Override newBuilderForType()1415 public Builder newBuilderForType() { 1416 return newBuilder(); 1417 } 1418 newBuilder()1419 public static Builder newBuilder() { 1420 return DEFAULT_INSTANCE.toBuilder(); 1421 } 1422 newBuilder(com.google.container.v1.IPAllocationPolicy prototype)1423 public static Builder newBuilder(com.google.container.v1.IPAllocationPolicy prototype) { 1424 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 1425 } 1426 1427 @java.lang.Override toBuilder()1428 public Builder toBuilder() { 1429 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 1430 } 1431 1432 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1433 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 1434 Builder builder = new Builder(parent); 1435 return builder; 1436 } 1437 /** 1438 * 1439 * 1440 * <pre> 1441 * Configuration for controlling how IPs are allocated in the cluster. 1442 * </pre> 1443 * 1444 * Protobuf type {@code google.container.v1.IPAllocationPolicy} 1445 */ 1446 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 1447 implements 1448 // @@protoc_insertion_point(builder_implements:google.container.v1.IPAllocationPolicy) 1449 com.google.container.v1.IPAllocationPolicyOrBuilder { getDescriptor()1450 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 1451 return com.google.container.v1.ClusterServiceProto 1452 .internal_static_google_container_v1_IPAllocationPolicy_descriptor; 1453 } 1454 1455 @java.lang.Override 1456 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()1457 internalGetFieldAccessorTable() { 1458 return com.google.container.v1.ClusterServiceProto 1459 .internal_static_google_container_v1_IPAllocationPolicy_fieldAccessorTable 1460 .ensureFieldAccessorsInitialized( 1461 com.google.container.v1.IPAllocationPolicy.class, 1462 com.google.container.v1.IPAllocationPolicy.Builder.class); 1463 } 1464 1465 // Construct using com.google.container.v1.IPAllocationPolicy.newBuilder() Builder()1466 private Builder() {} 1467 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1468 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 1469 super(parent); 1470 } 1471 1472 @java.lang.Override clear()1473 public Builder clear() { 1474 super.clear(); 1475 bitField0_ = 0; 1476 useIpAliases_ = false; 1477 createSubnetwork_ = false; 1478 subnetworkName_ = ""; 1479 clusterIpv4Cidr_ = ""; 1480 nodeIpv4Cidr_ = ""; 1481 servicesIpv4Cidr_ = ""; 1482 clusterSecondaryRangeName_ = ""; 1483 servicesSecondaryRangeName_ = ""; 1484 clusterIpv4CidrBlock_ = ""; 1485 nodeIpv4CidrBlock_ = ""; 1486 servicesIpv4CidrBlock_ = ""; 1487 tpuIpv4CidrBlock_ = ""; 1488 useRoutes_ = false; 1489 stackType_ = 0; 1490 ipv6AccessType_ = 0; 1491 podCidrOverprovisionConfig_ = null; 1492 if (podCidrOverprovisionConfigBuilder_ != null) { 1493 podCidrOverprovisionConfigBuilder_.dispose(); 1494 podCidrOverprovisionConfigBuilder_ = null; 1495 } 1496 subnetIpv6CidrBlock_ = ""; 1497 servicesIpv6CidrBlock_ = ""; 1498 additionalPodRangesConfig_ = null; 1499 if (additionalPodRangesConfigBuilder_ != null) { 1500 additionalPodRangesConfigBuilder_.dispose(); 1501 additionalPodRangesConfigBuilder_ = null; 1502 } 1503 return this; 1504 } 1505 1506 @java.lang.Override getDescriptorForType()1507 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 1508 return com.google.container.v1.ClusterServiceProto 1509 .internal_static_google_container_v1_IPAllocationPolicy_descriptor; 1510 } 1511 1512 @java.lang.Override getDefaultInstanceForType()1513 public com.google.container.v1.IPAllocationPolicy getDefaultInstanceForType() { 1514 return com.google.container.v1.IPAllocationPolicy.getDefaultInstance(); 1515 } 1516 1517 @java.lang.Override build()1518 public com.google.container.v1.IPAllocationPolicy build() { 1519 com.google.container.v1.IPAllocationPolicy result = buildPartial(); 1520 if (!result.isInitialized()) { 1521 throw newUninitializedMessageException(result); 1522 } 1523 return result; 1524 } 1525 1526 @java.lang.Override buildPartial()1527 public com.google.container.v1.IPAllocationPolicy buildPartial() { 1528 com.google.container.v1.IPAllocationPolicy result = 1529 new com.google.container.v1.IPAllocationPolicy(this); 1530 if (bitField0_ != 0) { 1531 buildPartial0(result); 1532 } 1533 onBuilt(); 1534 return result; 1535 } 1536 buildPartial0(com.google.container.v1.IPAllocationPolicy result)1537 private void buildPartial0(com.google.container.v1.IPAllocationPolicy result) { 1538 int from_bitField0_ = bitField0_; 1539 if (((from_bitField0_ & 0x00000001) != 0)) { 1540 result.useIpAliases_ = useIpAliases_; 1541 } 1542 if (((from_bitField0_ & 0x00000002) != 0)) { 1543 result.createSubnetwork_ = createSubnetwork_; 1544 } 1545 if (((from_bitField0_ & 0x00000004) != 0)) { 1546 result.subnetworkName_ = subnetworkName_; 1547 } 1548 if (((from_bitField0_ & 0x00000008) != 0)) { 1549 result.clusterIpv4Cidr_ = clusterIpv4Cidr_; 1550 } 1551 if (((from_bitField0_ & 0x00000010) != 0)) { 1552 result.nodeIpv4Cidr_ = nodeIpv4Cidr_; 1553 } 1554 if (((from_bitField0_ & 0x00000020) != 0)) { 1555 result.servicesIpv4Cidr_ = servicesIpv4Cidr_; 1556 } 1557 if (((from_bitField0_ & 0x00000040) != 0)) { 1558 result.clusterSecondaryRangeName_ = clusterSecondaryRangeName_; 1559 } 1560 if (((from_bitField0_ & 0x00000080) != 0)) { 1561 result.servicesSecondaryRangeName_ = servicesSecondaryRangeName_; 1562 } 1563 if (((from_bitField0_ & 0x00000100) != 0)) { 1564 result.clusterIpv4CidrBlock_ = clusterIpv4CidrBlock_; 1565 } 1566 if (((from_bitField0_ & 0x00000200) != 0)) { 1567 result.nodeIpv4CidrBlock_ = nodeIpv4CidrBlock_; 1568 } 1569 if (((from_bitField0_ & 0x00000400) != 0)) { 1570 result.servicesIpv4CidrBlock_ = servicesIpv4CidrBlock_; 1571 } 1572 if (((from_bitField0_ & 0x00000800) != 0)) { 1573 result.tpuIpv4CidrBlock_ = tpuIpv4CidrBlock_; 1574 } 1575 if (((from_bitField0_ & 0x00001000) != 0)) { 1576 result.useRoutes_ = useRoutes_; 1577 } 1578 if (((from_bitField0_ & 0x00002000) != 0)) { 1579 result.stackType_ = stackType_; 1580 } 1581 if (((from_bitField0_ & 0x00004000) != 0)) { 1582 result.ipv6AccessType_ = ipv6AccessType_; 1583 } 1584 if (((from_bitField0_ & 0x00008000) != 0)) { 1585 result.podCidrOverprovisionConfig_ = 1586 podCidrOverprovisionConfigBuilder_ == null 1587 ? podCidrOverprovisionConfig_ 1588 : podCidrOverprovisionConfigBuilder_.build(); 1589 } 1590 if (((from_bitField0_ & 0x00010000) != 0)) { 1591 result.subnetIpv6CidrBlock_ = subnetIpv6CidrBlock_; 1592 } 1593 if (((from_bitField0_ & 0x00020000) != 0)) { 1594 result.servicesIpv6CidrBlock_ = servicesIpv6CidrBlock_; 1595 } 1596 if (((from_bitField0_ & 0x00040000) != 0)) { 1597 result.additionalPodRangesConfig_ = 1598 additionalPodRangesConfigBuilder_ == null 1599 ? additionalPodRangesConfig_ 1600 : additionalPodRangesConfigBuilder_.build(); 1601 } 1602 } 1603 1604 @java.lang.Override clone()1605 public Builder clone() { 1606 return super.clone(); 1607 } 1608 1609 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1610 public Builder setField( 1611 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1612 return super.setField(field, value); 1613 } 1614 1615 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1616 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 1617 return super.clearField(field); 1618 } 1619 1620 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1621 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 1622 return super.clearOneof(oneof); 1623 } 1624 1625 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1626 public Builder setRepeatedField( 1627 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 1628 return super.setRepeatedField(field, index, value); 1629 } 1630 1631 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1632 public Builder addRepeatedField( 1633 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1634 return super.addRepeatedField(field, value); 1635 } 1636 1637 @java.lang.Override mergeFrom(com.google.protobuf.Message other)1638 public Builder mergeFrom(com.google.protobuf.Message other) { 1639 if (other instanceof com.google.container.v1.IPAllocationPolicy) { 1640 return mergeFrom((com.google.container.v1.IPAllocationPolicy) other); 1641 } else { 1642 super.mergeFrom(other); 1643 return this; 1644 } 1645 } 1646 mergeFrom(com.google.container.v1.IPAllocationPolicy other)1647 public Builder mergeFrom(com.google.container.v1.IPAllocationPolicy other) { 1648 if (other == com.google.container.v1.IPAllocationPolicy.getDefaultInstance()) return this; 1649 if (other.getUseIpAliases() != false) { 1650 setUseIpAliases(other.getUseIpAliases()); 1651 } 1652 if (other.getCreateSubnetwork() != false) { 1653 setCreateSubnetwork(other.getCreateSubnetwork()); 1654 } 1655 if (!other.getSubnetworkName().isEmpty()) { 1656 subnetworkName_ = other.subnetworkName_; 1657 bitField0_ |= 0x00000004; 1658 onChanged(); 1659 } 1660 if (!other.getClusterIpv4Cidr().isEmpty()) { 1661 clusterIpv4Cidr_ = other.clusterIpv4Cidr_; 1662 bitField0_ |= 0x00000008; 1663 onChanged(); 1664 } 1665 if (!other.getNodeIpv4Cidr().isEmpty()) { 1666 nodeIpv4Cidr_ = other.nodeIpv4Cidr_; 1667 bitField0_ |= 0x00000010; 1668 onChanged(); 1669 } 1670 if (!other.getServicesIpv4Cidr().isEmpty()) { 1671 servicesIpv4Cidr_ = other.servicesIpv4Cidr_; 1672 bitField0_ |= 0x00000020; 1673 onChanged(); 1674 } 1675 if (!other.getClusterSecondaryRangeName().isEmpty()) { 1676 clusterSecondaryRangeName_ = other.clusterSecondaryRangeName_; 1677 bitField0_ |= 0x00000040; 1678 onChanged(); 1679 } 1680 if (!other.getServicesSecondaryRangeName().isEmpty()) { 1681 servicesSecondaryRangeName_ = other.servicesSecondaryRangeName_; 1682 bitField0_ |= 0x00000080; 1683 onChanged(); 1684 } 1685 if (!other.getClusterIpv4CidrBlock().isEmpty()) { 1686 clusterIpv4CidrBlock_ = other.clusterIpv4CidrBlock_; 1687 bitField0_ |= 0x00000100; 1688 onChanged(); 1689 } 1690 if (!other.getNodeIpv4CidrBlock().isEmpty()) { 1691 nodeIpv4CidrBlock_ = other.nodeIpv4CidrBlock_; 1692 bitField0_ |= 0x00000200; 1693 onChanged(); 1694 } 1695 if (!other.getServicesIpv4CidrBlock().isEmpty()) { 1696 servicesIpv4CidrBlock_ = other.servicesIpv4CidrBlock_; 1697 bitField0_ |= 0x00000400; 1698 onChanged(); 1699 } 1700 if (!other.getTpuIpv4CidrBlock().isEmpty()) { 1701 tpuIpv4CidrBlock_ = other.tpuIpv4CidrBlock_; 1702 bitField0_ |= 0x00000800; 1703 onChanged(); 1704 } 1705 if (other.getUseRoutes() != false) { 1706 setUseRoutes(other.getUseRoutes()); 1707 } 1708 if (other.stackType_ != 0) { 1709 setStackTypeValue(other.getStackTypeValue()); 1710 } 1711 if (other.ipv6AccessType_ != 0) { 1712 setIpv6AccessTypeValue(other.getIpv6AccessTypeValue()); 1713 } 1714 if (other.hasPodCidrOverprovisionConfig()) { 1715 mergePodCidrOverprovisionConfig(other.getPodCidrOverprovisionConfig()); 1716 } 1717 if (!other.getSubnetIpv6CidrBlock().isEmpty()) { 1718 subnetIpv6CidrBlock_ = other.subnetIpv6CidrBlock_; 1719 bitField0_ |= 0x00010000; 1720 onChanged(); 1721 } 1722 if (!other.getServicesIpv6CidrBlock().isEmpty()) { 1723 servicesIpv6CidrBlock_ = other.servicesIpv6CidrBlock_; 1724 bitField0_ |= 0x00020000; 1725 onChanged(); 1726 } 1727 if (other.hasAdditionalPodRangesConfig()) { 1728 mergeAdditionalPodRangesConfig(other.getAdditionalPodRangesConfig()); 1729 } 1730 this.mergeUnknownFields(other.getUnknownFields()); 1731 onChanged(); 1732 return this; 1733 } 1734 1735 @java.lang.Override isInitialized()1736 public final boolean isInitialized() { 1737 return true; 1738 } 1739 1740 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1741 public Builder mergeFrom( 1742 com.google.protobuf.CodedInputStream input, 1743 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1744 throws java.io.IOException { 1745 if (extensionRegistry == null) { 1746 throw new java.lang.NullPointerException(); 1747 } 1748 try { 1749 boolean done = false; 1750 while (!done) { 1751 int tag = input.readTag(); 1752 switch (tag) { 1753 case 0: 1754 done = true; 1755 break; 1756 case 8: 1757 { 1758 useIpAliases_ = input.readBool(); 1759 bitField0_ |= 0x00000001; 1760 break; 1761 } // case 8 1762 case 16: 1763 { 1764 createSubnetwork_ = input.readBool(); 1765 bitField0_ |= 0x00000002; 1766 break; 1767 } // case 16 1768 case 26: 1769 { 1770 subnetworkName_ = input.readStringRequireUtf8(); 1771 bitField0_ |= 0x00000004; 1772 break; 1773 } // case 26 1774 case 34: 1775 { 1776 clusterIpv4Cidr_ = input.readStringRequireUtf8(); 1777 bitField0_ |= 0x00000008; 1778 break; 1779 } // case 34 1780 case 42: 1781 { 1782 nodeIpv4Cidr_ = input.readStringRequireUtf8(); 1783 bitField0_ |= 0x00000010; 1784 break; 1785 } // case 42 1786 case 50: 1787 { 1788 servicesIpv4Cidr_ = input.readStringRequireUtf8(); 1789 bitField0_ |= 0x00000020; 1790 break; 1791 } // case 50 1792 case 58: 1793 { 1794 clusterSecondaryRangeName_ = input.readStringRequireUtf8(); 1795 bitField0_ |= 0x00000040; 1796 break; 1797 } // case 58 1798 case 66: 1799 { 1800 servicesSecondaryRangeName_ = input.readStringRequireUtf8(); 1801 bitField0_ |= 0x00000080; 1802 break; 1803 } // case 66 1804 case 74: 1805 { 1806 clusterIpv4CidrBlock_ = input.readStringRequireUtf8(); 1807 bitField0_ |= 0x00000100; 1808 break; 1809 } // case 74 1810 case 82: 1811 { 1812 nodeIpv4CidrBlock_ = input.readStringRequireUtf8(); 1813 bitField0_ |= 0x00000200; 1814 break; 1815 } // case 82 1816 case 90: 1817 { 1818 servicesIpv4CidrBlock_ = input.readStringRequireUtf8(); 1819 bitField0_ |= 0x00000400; 1820 break; 1821 } // case 90 1822 case 106: 1823 { 1824 tpuIpv4CidrBlock_ = input.readStringRequireUtf8(); 1825 bitField0_ |= 0x00000800; 1826 break; 1827 } // case 106 1828 case 120: 1829 { 1830 useRoutes_ = input.readBool(); 1831 bitField0_ |= 0x00001000; 1832 break; 1833 } // case 120 1834 case 128: 1835 { 1836 stackType_ = input.readEnum(); 1837 bitField0_ |= 0x00002000; 1838 break; 1839 } // case 128 1840 case 136: 1841 { 1842 ipv6AccessType_ = input.readEnum(); 1843 bitField0_ |= 0x00004000; 1844 break; 1845 } // case 136 1846 case 170: 1847 { 1848 input.readMessage( 1849 getPodCidrOverprovisionConfigFieldBuilder().getBuilder(), extensionRegistry); 1850 bitField0_ |= 0x00008000; 1851 break; 1852 } // case 170 1853 case 178: 1854 { 1855 subnetIpv6CidrBlock_ = input.readStringRequireUtf8(); 1856 bitField0_ |= 0x00010000; 1857 break; 1858 } // case 178 1859 case 186: 1860 { 1861 servicesIpv6CidrBlock_ = input.readStringRequireUtf8(); 1862 bitField0_ |= 0x00020000; 1863 break; 1864 } // case 186 1865 case 194: 1866 { 1867 input.readMessage( 1868 getAdditionalPodRangesConfigFieldBuilder().getBuilder(), extensionRegistry); 1869 bitField0_ |= 0x00040000; 1870 break; 1871 } // case 194 1872 default: 1873 { 1874 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 1875 done = true; // was an endgroup tag 1876 } 1877 break; 1878 } // default: 1879 } // switch (tag) 1880 } // while (!done) 1881 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1882 throw e.unwrapIOException(); 1883 } finally { 1884 onChanged(); 1885 } // finally 1886 return this; 1887 } 1888 1889 private int bitField0_; 1890 1891 private boolean useIpAliases_; 1892 /** 1893 * 1894 * 1895 * <pre> 1896 * Whether alias IPs will be used for pod IPs in the cluster. 1897 * This is used in conjunction with use_routes. It cannot 1898 * be true if use_routes is true. If both use_ip_aliases and use_routes are 1899 * false, then the server picks the default IP allocation mode 1900 * </pre> 1901 * 1902 * <code>bool use_ip_aliases = 1;</code> 1903 * 1904 * @return The useIpAliases. 1905 */ 1906 @java.lang.Override getUseIpAliases()1907 public boolean getUseIpAliases() { 1908 return useIpAliases_; 1909 } 1910 /** 1911 * 1912 * 1913 * <pre> 1914 * Whether alias IPs will be used for pod IPs in the cluster. 1915 * This is used in conjunction with use_routes. It cannot 1916 * be true if use_routes is true. If both use_ip_aliases and use_routes are 1917 * false, then the server picks the default IP allocation mode 1918 * </pre> 1919 * 1920 * <code>bool use_ip_aliases = 1;</code> 1921 * 1922 * @param value The useIpAliases to set. 1923 * @return This builder for chaining. 1924 */ setUseIpAliases(boolean value)1925 public Builder setUseIpAliases(boolean value) { 1926 1927 useIpAliases_ = value; 1928 bitField0_ |= 0x00000001; 1929 onChanged(); 1930 return this; 1931 } 1932 /** 1933 * 1934 * 1935 * <pre> 1936 * Whether alias IPs will be used for pod IPs in the cluster. 1937 * This is used in conjunction with use_routes. It cannot 1938 * be true if use_routes is true. If both use_ip_aliases and use_routes are 1939 * false, then the server picks the default IP allocation mode 1940 * </pre> 1941 * 1942 * <code>bool use_ip_aliases = 1;</code> 1943 * 1944 * @return This builder for chaining. 1945 */ clearUseIpAliases()1946 public Builder clearUseIpAliases() { 1947 bitField0_ = (bitField0_ & ~0x00000001); 1948 useIpAliases_ = false; 1949 onChanged(); 1950 return this; 1951 } 1952 1953 private boolean createSubnetwork_; 1954 /** 1955 * 1956 * 1957 * <pre> 1958 * Whether a new subnetwork will be created automatically for the cluster. 1959 * This field is only applicable when `use_ip_aliases` is true. 1960 * </pre> 1961 * 1962 * <code>bool create_subnetwork = 2;</code> 1963 * 1964 * @return The createSubnetwork. 1965 */ 1966 @java.lang.Override getCreateSubnetwork()1967 public boolean getCreateSubnetwork() { 1968 return createSubnetwork_; 1969 } 1970 /** 1971 * 1972 * 1973 * <pre> 1974 * Whether a new subnetwork will be created automatically for the cluster. 1975 * This field is only applicable when `use_ip_aliases` is true. 1976 * </pre> 1977 * 1978 * <code>bool create_subnetwork = 2;</code> 1979 * 1980 * @param value The createSubnetwork to set. 1981 * @return This builder for chaining. 1982 */ setCreateSubnetwork(boolean value)1983 public Builder setCreateSubnetwork(boolean value) { 1984 1985 createSubnetwork_ = value; 1986 bitField0_ |= 0x00000002; 1987 onChanged(); 1988 return this; 1989 } 1990 /** 1991 * 1992 * 1993 * <pre> 1994 * Whether a new subnetwork will be created automatically for the cluster. 1995 * This field is only applicable when `use_ip_aliases` is true. 1996 * </pre> 1997 * 1998 * <code>bool create_subnetwork = 2;</code> 1999 * 2000 * @return This builder for chaining. 2001 */ clearCreateSubnetwork()2002 public Builder clearCreateSubnetwork() { 2003 bitField0_ = (bitField0_ & ~0x00000002); 2004 createSubnetwork_ = false; 2005 onChanged(); 2006 return this; 2007 } 2008 2009 private java.lang.Object subnetworkName_ = ""; 2010 /** 2011 * 2012 * 2013 * <pre> 2014 * A custom subnetwork name to be used if `create_subnetwork` is true. If 2015 * this field is empty, then an automatic name will be chosen for the new 2016 * subnetwork. 2017 * </pre> 2018 * 2019 * <code>string subnetwork_name = 3;</code> 2020 * 2021 * @return The subnetworkName. 2022 */ getSubnetworkName()2023 public java.lang.String getSubnetworkName() { 2024 java.lang.Object ref = subnetworkName_; 2025 if (!(ref instanceof java.lang.String)) { 2026 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2027 java.lang.String s = bs.toStringUtf8(); 2028 subnetworkName_ = s; 2029 return s; 2030 } else { 2031 return (java.lang.String) ref; 2032 } 2033 } 2034 /** 2035 * 2036 * 2037 * <pre> 2038 * A custom subnetwork name to be used if `create_subnetwork` is true. If 2039 * this field is empty, then an automatic name will be chosen for the new 2040 * subnetwork. 2041 * </pre> 2042 * 2043 * <code>string subnetwork_name = 3;</code> 2044 * 2045 * @return The bytes for subnetworkName. 2046 */ getSubnetworkNameBytes()2047 public com.google.protobuf.ByteString getSubnetworkNameBytes() { 2048 java.lang.Object ref = subnetworkName_; 2049 if (ref instanceof String) { 2050 com.google.protobuf.ByteString b = 2051 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2052 subnetworkName_ = b; 2053 return b; 2054 } else { 2055 return (com.google.protobuf.ByteString) ref; 2056 } 2057 } 2058 /** 2059 * 2060 * 2061 * <pre> 2062 * A custom subnetwork name to be used if `create_subnetwork` is true. If 2063 * this field is empty, then an automatic name will be chosen for the new 2064 * subnetwork. 2065 * </pre> 2066 * 2067 * <code>string subnetwork_name = 3;</code> 2068 * 2069 * @param value The subnetworkName to set. 2070 * @return This builder for chaining. 2071 */ setSubnetworkName(java.lang.String value)2072 public Builder setSubnetworkName(java.lang.String value) { 2073 if (value == null) { 2074 throw new NullPointerException(); 2075 } 2076 subnetworkName_ = value; 2077 bitField0_ |= 0x00000004; 2078 onChanged(); 2079 return this; 2080 } 2081 /** 2082 * 2083 * 2084 * <pre> 2085 * A custom subnetwork name to be used if `create_subnetwork` is true. If 2086 * this field is empty, then an automatic name will be chosen for the new 2087 * subnetwork. 2088 * </pre> 2089 * 2090 * <code>string subnetwork_name = 3;</code> 2091 * 2092 * @return This builder for chaining. 2093 */ clearSubnetworkName()2094 public Builder clearSubnetworkName() { 2095 subnetworkName_ = getDefaultInstance().getSubnetworkName(); 2096 bitField0_ = (bitField0_ & ~0x00000004); 2097 onChanged(); 2098 return this; 2099 } 2100 /** 2101 * 2102 * 2103 * <pre> 2104 * A custom subnetwork name to be used if `create_subnetwork` is true. If 2105 * this field is empty, then an automatic name will be chosen for the new 2106 * subnetwork. 2107 * </pre> 2108 * 2109 * <code>string subnetwork_name = 3;</code> 2110 * 2111 * @param value The bytes for subnetworkName to set. 2112 * @return This builder for chaining. 2113 */ setSubnetworkNameBytes(com.google.protobuf.ByteString value)2114 public Builder setSubnetworkNameBytes(com.google.protobuf.ByteString value) { 2115 if (value == null) { 2116 throw new NullPointerException(); 2117 } 2118 checkByteStringIsUtf8(value); 2119 subnetworkName_ = value; 2120 bitField0_ |= 0x00000004; 2121 onChanged(); 2122 return this; 2123 } 2124 2125 private java.lang.Object clusterIpv4Cidr_ = ""; 2126 /** 2127 * 2128 * 2129 * <pre> 2130 * This field is deprecated, use cluster_ipv4_cidr_block. 2131 * </pre> 2132 * 2133 * <code>string cluster_ipv4_cidr = 4 [deprecated = true];</code> 2134 * 2135 * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See 2136 * google/container/v1/cluster_service.proto;l=1377 2137 * @return The clusterIpv4Cidr. 2138 */ 2139 @java.lang.Deprecated getClusterIpv4Cidr()2140 public java.lang.String getClusterIpv4Cidr() { 2141 java.lang.Object ref = clusterIpv4Cidr_; 2142 if (!(ref instanceof java.lang.String)) { 2143 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2144 java.lang.String s = bs.toStringUtf8(); 2145 clusterIpv4Cidr_ = s; 2146 return s; 2147 } else { 2148 return (java.lang.String) ref; 2149 } 2150 } 2151 /** 2152 * 2153 * 2154 * <pre> 2155 * This field is deprecated, use cluster_ipv4_cidr_block. 2156 * </pre> 2157 * 2158 * <code>string cluster_ipv4_cidr = 4 [deprecated = true];</code> 2159 * 2160 * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See 2161 * google/container/v1/cluster_service.proto;l=1377 2162 * @return The bytes for clusterIpv4Cidr. 2163 */ 2164 @java.lang.Deprecated getClusterIpv4CidrBytes()2165 public com.google.protobuf.ByteString getClusterIpv4CidrBytes() { 2166 java.lang.Object ref = clusterIpv4Cidr_; 2167 if (ref instanceof String) { 2168 com.google.protobuf.ByteString b = 2169 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2170 clusterIpv4Cidr_ = b; 2171 return b; 2172 } else { 2173 return (com.google.protobuf.ByteString) ref; 2174 } 2175 } 2176 /** 2177 * 2178 * 2179 * <pre> 2180 * This field is deprecated, use cluster_ipv4_cidr_block. 2181 * </pre> 2182 * 2183 * <code>string cluster_ipv4_cidr = 4 [deprecated = true];</code> 2184 * 2185 * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See 2186 * google/container/v1/cluster_service.proto;l=1377 2187 * @param value The clusterIpv4Cidr to set. 2188 * @return This builder for chaining. 2189 */ 2190 @java.lang.Deprecated setClusterIpv4Cidr(java.lang.String value)2191 public Builder setClusterIpv4Cidr(java.lang.String value) { 2192 if (value == null) { 2193 throw new NullPointerException(); 2194 } 2195 clusterIpv4Cidr_ = value; 2196 bitField0_ |= 0x00000008; 2197 onChanged(); 2198 return this; 2199 } 2200 /** 2201 * 2202 * 2203 * <pre> 2204 * This field is deprecated, use cluster_ipv4_cidr_block. 2205 * </pre> 2206 * 2207 * <code>string cluster_ipv4_cidr = 4 [deprecated = true];</code> 2208 * 2209 * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See 2210 * google/container/v1/cluster_service.proto;l=1377 2211 * @return This builder for chaining. 2212 */ 2213 @java.lang.Deprecated clearClusterIpv4Cidr()2214 public Builder clearClusterIpv4Cidr() { 2215 clusterIpv4Cidr_ = getDefaultInstance().getClusterIpv4Cidr(); 2216 bitField0_ = (bitField0_ & ~0x00000008); 2217 onChanged(); 2218 return this; 2219 } 2220 /** 2221 * 2222 * 2223 * <pre> 2224 * This field is deprecated, use cluster_ipv4_cidr_block. 2225 * </pre> 2226 * 2227 * <code>string cluster_ipv4_cidr = 4 [deprecated = true];</code> 2228 * 2229 * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See 2230 * google/container/v1/cluster_service.proto;l=1377 2231 * @param value The bytes for clusterIpv4Cidr to set. 2232 * @return This builder for chaining. 2233 */ 2234 @java.lang.Deprecated setClusterIpv4CidrBytes(com.google.protobuf.ByteString value)2235 public Builder setClusterIpv4CidrBytes(com.google.protobuf.ByteString value) { 2236 if (value == null) { 2237 throw new NullPointerException(); 2238 } 2239 checkByteStringIsUtf8(value); 2240 clusterIpv4Cidr_ = value; 2241 bitField0_ |= 0x00000008; 2242 onChanged(); 2243 return this; 2244 } 2245 2246 private java.lang.Object nodeIpv4Cidr_ = ""; 2247 /** 2248 * 2249 * 2250 * <pre> 2251 * This field is deprecated, use node_ipv4_cidr_block. 2252 * </pre> 2253 * 2254 * <code>string node_ipv4_cidr = 5 [deprecated = true];</code> 2255 * 2256 * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See 2257 * google/container/v1/cluster_service.proto;l=1380 2258 * @return The nodeIpv4Cidr. 2259 */ 2260 @java.lang.Deprecated getNodeIpv4Cidr()2261 public java.lang.String getNodeIpv4Cidr() { 2262 java.lang.Object ref = nodeIpv4Cidr_; 2263 if (!(ref instanceof java.lang.String)) { 2264 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2265 java.lang.String s = bs.toStringUtf8(); 2266 nodeIpv4Cidr_ = s; 2267 return s; 2268 } else { 2269 return (java.lang.String) ref; 2270 } 2271 } 2272 /** 2273 * 2274 * 2275 * <pre> 2276 * This field is deprecated, use node_ipv4_cidr_block. 2277 * </pre> 2278 * 2279 * <code>string node_ipv4_cidr = 5 [deprecated = true];</code> 2280 * 2281 * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See 2282 * google/container/v1/cluster_service.proto;l=1380 2283 * @return The bytes for nodeIpv4Cidr. 2284 */ 2285 @java.lang.Deprecated getNodeIpv4CidrBytes()2286 public com.google.protobuf.ByteString getNodeIpv4CidrBytes() { 2287 java.lang.Object ref = nodeIpv4Cidr_; 2288 if (ref instanceof String) { 2289 com.google.protobuf.ByteString b = 2290 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2291 nodeIpv4Cidr_ = b; 2292 return b; 2293 } else { 2294 return (com.google.protobuf.ByteString) ref; 2295 } 2296 } 2297 /** 2298 * 2299 * 2300 * <pre> 2301 * This field is deprecated, use node_ipv4_cidr_block. 2302 * </pre> 2303 * 2304 * <code>string node_ipv4_cidr = 5 [deprecated = true];</code> 2305 * 2306 * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See 2307 * google/container/v1/cluster_service.proto;l=1380 2308 * @param value The nodeIpv4Cidr to set. 2309 * @return This builder for chaining. 2310 */ 2311 @java.lang.Deprecated setNodeIpv4Cidr(java.lang.String value)2312 public Builder setNodeIpv4Cidr(java.lang.String value) { 2313 if (value == null) { 2314 throw new NullPointerException(); 2315 } 2316 nodeIpv4Cidr_ = value; 2317 bitField0_ |= 0x00000010; 2318 onChanged(); 2319 return this; 2320 } 2321 /** 2322 * 2323 * 2324 * <pre> 2325 * This field is deprecated, use node_ipv4_cidr_block. 2326 * </pre> 2327 * 2328 * <code>string node_ipv4_cidr = 5 [deprecated = true];</code> 2329 * 2330 * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See 2331 * google/container/v1/cluster_service.proto;l=1380 2332 * @return This builder for chaining. 2333 */ 2334 @java.lang.Deprecated clearNodeIpv4Cidr()2335 public Builder clearNodeIpv4Cidr() { 2336 nodeIpv4Cidr_ = getDefaultInstance().getNodeIpv4Cidr(); 2337 bitField0_ = (bitField0_ & ~0x00000010); 2338 onChanged(); 2339 return this; 2340 } 2341 /** 2342 * 2343 * 2344 * <pre> 2345 * This field is deprecated, use node_ipv4_cidr_block. 2346 * </pre> 2347 * 2348 * <code>string node_ipv4_cidr = 5 [deprecated = true];</code> 2349 * 2350 * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See 2351 * google/container/v1/cluster_service.proto;l=1380 2352 * @param value The bytes for nodeIpv4Cidr to set. 2353 * @return This builder for chaining. 2354 */ 2355 @java.lang.Deprecated setNodeIpv4CidrBytes(com.google.protobuf.ByteString value)2356 public Builder setNodeIpv4CidrBytes(com.google.protobuf.ByteString value) { 2357 if (value == null) { 2358 throw new NullPointerException(); 2359 } 2360 checkByteStringIsUtf8(value); 2361 nodeIpv4Cidr_ = value; 2362 bitField0_ |= 0x00000010; 2363 onChanged(); 2364 return this; 2365 } 2366 2367 private java.lang.Object servicesIpv4Cidr_ = ""; 2368 /** 2369 * 2370 * 2371 * <pre> 2372 * This field is deprecated, use services_ipv4_cidr_block. 2373 * </pre> 2374 * 2375 * <code>string services_ipv4_cidr = 6 [deprecated = true];</code> 2376 * 2377 * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See 2378 * google/container/v1/cluster_service.proto;l=1383 2379 * @return The servicesIpv4Cidr. 2380 */ 2381 @java.lang.Deprecated getServicesIpv4Cidr()2382 public java.lang.String getServicesIpv4Cidr() { 2383 java.lang.Object ref = servicesIpv4Cidr_; 2384 if (!(ref instanceof java.lang.String)) { 2385 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2386 java.lang.String s = bs.toStringUtf8(); 2387 servicesIpv4Cidr_ = s; 2388 return s; 2389 } else { 2390 return (java.lang.String) ref; 2391 } 2392 } 2393 /** 2394 * 2395 * 2396 * <pre> 2397 * This field is deprecated, use services_ipv4_cidr_block. 2398 * </pre> 2399 * 2400 * <code>string services_ipv4_cidr = 6 [deprecated = true];</code> 2401 * 2402 * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See 2403 * google/container/v1/cluster_service.proto;l=1383 2404 * @return The bytes for servicesIpv4Cidr. 2405 */ 2406 @java.lang.Deprecated getServicesIpv4CidrBytes()2407 public com.google.protobuf.ByteString getServicesIpv4CidrBytes() { 2408 java.lang.Object ref = servicesIpv4Cidr_; 2409 if (ref instanceof String) { 2410 com.google.protobuf.ByteString b = 2411 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2412 servicesIpv4Cidr_ = b; 2413 return b; 2414 } else { 2415 return (com.google.protobuf.ByteString) ref; 2416 } 2417 } 2418 /** 2419 * 2420 * 2421 * <pre> 2422 * This field is deprecated, use services_ipv4_cidr_block. 2423 * </pre> 2424 * 2425 * <code>string services_ipv4_cidr = 6 [deprecated = true];</code> 2426 * 2427 * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See 2428 * google/container/v1/cluster_service.proto;l=1383 2429 * @param value The servicesIpv4Cidr to set. 2430 * @return This builder for chaining. 2431 */ 2432 @java.lang.Deprecated setServicesIpv4Cidr(java.lang.String value)2433 public Builder setServicesIpv4Cidr(java.lang.String value) { 2434 if (value == null) { 2435 throw new NullPointerException(); 2436 } 2437 servicesIpv4Cidr_ = value; 2438 bitField0_ |= 0x00000020; 2439 onChanged(); 2440 return this; 2441 } 2442 /** 2443 * 2444 * 2445 * <pre> 2446 * This field is deprecated, use services_ipv4_cidr_block. 2447 * </pre> 2448 * 2449 * <code>string services_ipv4_cidr = 6 [deprecated = true];</code> 2450 * 2451 * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See 2452 * google/container/v1/cluster_service.proto;l=1383 2453 * @return This builder for chaining. 2454 */ 2455 @java.lang.Deprecated clearServicesIpv4Cidr()2456 public Builder clearServicesIpv4Cidr() { 2457 servicesIpv4Cidr_ = getDefaultInstance().getServicesIpv4Cidr(); 2458 bitField0_ = (bitField0_ & ~0x00000020); 2459 onChanged(); 2460 return this; 2461 } 2462 /** 2463 * 2464 * 2465 * <pre> 2466 * This field is deprecated, use services_ipv4_cidr_block. 2467 * </pre> 2468 * 2469 * <code>string services_ipv4_cidr = 6 [deprecated = true];</code> 2470 * 2471 * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See 2472 * google/container/v1/cluster_service.proto;l=1383 2473 * @param value The bytes for servicesIpv4Cidr to set. 2474 * @return This builder for chaining. 2475 */ 2476 @java.lang.Deprecated setServicesIpv4CidrBytes(com.google.protobuf.ByteString value)2477 public Builder setServicesIpv4CidrBytes(com.google.protobuf.ByteString value) { 2478 if (value == null) { 2479 throw new NullPointerException(); 2480 } 2481 checkByteStringIsUtf8(value); 2482 servicesIpv4Cidr_ = value; 2483 bitField0_ |= 0x00000020; 2484 onChanged(); 2485 return this; 2486 } 2487 2488 private java.lang.Object clusterSecondaryRangeName_ = ""; 2489 /** 2490 * 2491 * 2492 * <pre> 2493 * The name of the secondary range to be used for the cluster CIDR 2494 * block. The secondary range will be used for pod IP 2495 * addresses. This must be an existing secondary range associated 2496 * with the cluster subnetwork. 2497 * This field is only applicable with use_ip_aliases is true and 2498 * create_subnetwork is false. 2499 * </pre> 2500 * 2501 * <code>string cluster_secondary_range_name = 7;</code> 2502 * 2503 * @return The clusterSecondaryRangeName. 2504 */ getClusterSecondaryRangeName()2505 public java.lang.String getClusterSecondaryRangeName() { 2506 java.lang.Object ref = clusterSecondaryRangeName_; 2507 if (!(ref instanceof java.lang.String)) { 2508 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2509 java.lang.String s = bs.toStringUtf8(); 2510 clusterSecondaryRangeName_ = s; 2511 return s; 2512 } else { 2513 return (java.lang.String) ref; 2514 } 2515 } 2516 /** 2517 * 2518 * 2519 * <pre> 2520 * The name of the secondary range to be used for the cluster CIDR 2521 * block. The secondary range will be used for pod IP 2522 * addresses. This must be an existing secondary range associated 2523 * with the cluster subnetwork. 2524 * This field is only applicable with use_ip_aliases is true and 2525 * create_subnetwork is false. 2526 * </pre> 2527 * 2528 * <code>string cluster_secondary_range_name = 7;</code> 2529 * 2530 * @return The bytes for clusterSecondaryRangeName. 2531 */ getClusterSecondaryRangeNameBytes()2532 public com.google.protobuf.ByteString getClusterSecondaryRangeNameBytes() { 2533 java.lang.Object ref = clusterSecondaryRangeName_; 2534 if (ref instanceof String) { 2535 com.google.protobuf.ByteString b = 2536 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2537 clusterSecondaryRangeName_ = b; 2538 return b; 2539 } else { 2540 return (com.google.protobuf.ByteString) ref; 2541 } 2542 } 2543 /** 2544 * 2545 * 2546 * <pre> 2547 * The name of the secondary range to be used for the cluster CIDR 2548 * block. The secondary range will be used for pod IP 2549 * addresses. This must be an existing secondary range associated 2550 * with the cluster subnetwork. 2551 * This field is only applicable with use_ip_aliases is true and 2552 * create_subnetwork is false. 2553 * </pre> 2554 * 2555 * <code>string cluster_secondary_range_name = 7;</code> 2556 * 2557 * @param value The clusterSecondaryRangeName to set. 2558 * @return This builder for chaining. 2559 */ setClusterSecondaryRangeName(java.lang.String value)2560 public Builder setClusterSecondaryRangeName(java.lang.String value) { 2561 if (value == null) { 2562 throw new NullPointerException(); 2563 } 2564 clusterSecondaryRangeName_ = value; 2565 bitField0_ |= 0x00000040; 2566 onChanged(); 2567 return this; 2568 } 2569 /** 2570 * 2571 * 2572 * <pre> 2573 * The name of the secondary range to be used for the cluster CIDR 2574 * block. The secondary range will be used for pod IP 2575 * addresses. This must be an existing secondary range associated 2576 * with the cluster subnetwork. 2577 * This field is only applicable with use_ip_aliases is true and 2578 * create_subnetwork is false. 2579 * </pre> 2580 * 2581 * <code>string cluster_secondary_range_name = 7;</code> 2582 * 2583 * @return This builder for chaining. 2584 */ clearClusterSecondaryRangeName()2585 public Builder clearClusterSecondaryRangeName() { 2586 clusterSecondaryRangeName_ = getDefaultInstance().getClusterSecondaryRangeName(); 2587 bitField0_ = (bitField0_ & ~0x00000040); 2588 onChanged(); 2589 return this; 2590 } 2591 /** 2592 * 2593 * 2594 * <pre> 2595 * The name of the secondary range to be used for the cluster CIDR 2596 * block. The secondary range will be used for pod IP 2597 * addresses. This must be an existing secondary range associated 2598 * with the cluster subnetwork. 2599 * This field is only applicable with use_ip_aliases is true and 2600 * create_subnetwork is false. 2601 * </pre> 2602 * 2603 * <code>string cluster_secondary_range_name = 7;</code> 2604 * 2605 * @param value The bytes for clusterSecondaryRangeName to set. 2606 * @return This builder for chaining. 2607 */ setClusterSecondaryRangeNameBytes(com.google.protobuf.ByteString value)2608 public Builder setClusterSecondaryRangeNameBytes(com.google.protobuf.ByteString value) { 2609 if (value == null) { 2610 throw new NullPointerException(); 2611 } 2612 checkByteStringIsUtf8(value); 2613 clusterSecondaryRangeName_ = value; 2614 bitField0_ |= 0x00000040; 2615 onChanged(); 2616 return this; 2617 } 2618 2619 private java.lang.Object servicesSecondaryRangeName_ = ""; 2620 /** 2621 * 2622 * 2623 * <pre> 2624 * The name of the secondary range to be used as for the services 2625 * CIDR block. The secondary range will be used for service 2626 * ClusterIPs. This must be an existing secondary range associated 2627 * with the cluster subnetwork. 2628 * This field is only applicable with use_ip_aliases is true and 2629 * create_subnetwork is false. 2630 * </pre> 2631 * 2632 * <code>string services_secondary_range_name = 8;</code> 2633 * 2634 * @return The servicesSecondaryRangeName. 2635 */ getServicesSecondaryRangeName()2636 public java.lang.String getServicesSecondaryRangeName() { 2637 java.lang.Object ref = servicesSecondaryRangeName_; 2638 if (!(ref instanceof java.lang.String)) { 2639 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2640 java.lang.String s = bs.toStringUtf8(); 2641 servicesSecondaryRangeName_ = s; 2642 return s; 2643 } else { 2644 return (java.lang.String) ref; 2645 } 2646 } 2647 /** 2648 * 2649 * 2650 * <pre> 2651 * The name of the secondary range to be used as for the services 2652 * CIDR block. The secondary range will be used for service 2653 * ClusterIPs. This must be an existing secondary range associated 2654 * with the cluster subnetwork. 2655 * This field is only applicable with use_ip_aliases is true and 2656 * create_subnetwork is false. 2657 * </pre> 2658 * 2659 * <code>string services_secondary_range_name = 8;</code> 2660 * 2661 * @return The bytes for servicesSecondaryRangeName. 2662 */ getServicesSecondaryRangeNameBytes()2663 public com.google.protobuf.ByteString getServicesSecondaryRangeNameBytes() { 2664 java.lang.Object ref = servicesSecondaryRangeName_; 2665 if (ref instanceof String) { 2666 com.google.protobuf.ByteString b = 2667 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2668 servicesSecondaryRangeName_ = b; 2669 return b; 2670 } else { 2671 return (com.google.protobuf.ByteString) ref; 2672 } 2673 } 2674 /** 2675 * 2676 * 2677 * <pre> 2678 * The name of the secondary range to be used as for the services 2679 * CIDR block. The secondary range will be used for service 2680 * ClusterIPs. This must be an existing secondary range associated 2681 * with the cluster subnetwork. 2682 * This field is only applicable with use_ip_aliases is true and 2683 * create_subnetwork is false. 2684 * </pre> 2685 * 2686 * <code>string services_secondary_range_name = 8;</code> 2687 * 2688 * @param value The servicesSecondaryRangeName to set. 2689 * @return This builder for chaining. 2690 */ setServicesSecondaryRangeName(java.lang.String value)2691 public Builder setServicesSecondaryRangeName(java.lang.String value) { 2692 if (value == null) { 2693 throw new NullPointerException(); 2694 } 2695 servicesSecondaryRangeName_ = value; 2696 bitField0_ |= 0x00000080; 2697 onChanged(); 2698 return this; 2699 } 2700 /** 2701 * 2702 * 2703 * <pre> 2704 * The name of the secondary range to be used as for the services 2705 * CIDR block. The secondary range will be used for service 2706 * ClusterIPs. This must be an existing secondary range associated 2707 * with the cluster subnetwork. 2708 * This field is only applicable with use_ip_aliases is true and 2709 * create_subnetwork is false. 2710 * </pre> 2711 * 2712 * <code>string services_secondary_range_name = 8;</code> 2713 * 2714 * @return This builder for chaining. 2715 */ clearServicesSecondaryRangeName()2716 public Builder clearServicesSecondaryRangeName() { 2717 servicesSecondaryRangeName_ = getDefaultInstance().getServicesSecondaryRangeName(); 2718 bitField0_ = (bitField0_ & ~0x00000080); 2719 onChanged(); 2720 return this; 2721 } 2722 /** 2723 * 2724 * 2725 * <pre> 2726 * The name of the secondary range to be used as for the services 2727 * CIDR block. The secondary range will be used for service 2728 * ClusterIPs. This must be an existing secondary range associated 2729 * with the cluster subnetwork. 2730 * This field is only applicable with use_ip_aliases is true and 2731 * create_subnetwork is false. 2732 * </pre> 2733 * 2734 * <code>string services_secondary_range_name = 8;</code> 2735 * 2736 * @param value The bytes for servicesSecondaryRangeName to set. 2737 * @return This builder for chaining. 2738 */ setServicesSecondaryRangeNameBytes(com.google.protobuf.ByteString value)2739 public Builder setServicesSecondaryRangeNameBytes(com.google.protobuf.ByteString value) { 2740 if (value == null) { 2741 throw new NullPointerException(); 2742 } 2743 checkByteStringIsUtf8(value); 2744 servicesSecondaryRangeName_ = value; 2745 bitField0_ |= 0x00000080; 2746 onChanged(); 2747 return this; 2748 } 2749 2750 private java.lang.Object clusterIpv4CidrBlock_ = ""; 2751 /** 2752 * 2753 * 2754 * <pre> 2755 * The IP address range for the cluster pod IPs. If this field is set, then 2756 * `cluster.cluster_ipv4_cidr` must be left blank. 2757 * This field is only applicable when `use_ip_aliases` is true. 2758 * Set to blank to have a range chosen with the default size. 2759 * Set to /netmask (e.g. `/14`) to have a range chosen with a specific 2760 * netmask. 2761 * Set to a 2762 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) 2763 * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. 2764 * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range 2765 * to use. 2766 * </pre> 2767 * 2768 * <code>string cluster_ipv4_cidr_block = 9;</code> 2769 * 2770 * @return The clusterIpv4CidrBlock. 2771 */ getClusterIpv4CidrBlock()2772 public java.lang.String getClusterIpv4CidrBlock() { 2773 java.lang.Object ref = clusterIpv4CidrBlock_; 2774 if (!(ref instanceof java.lang.String)) { 2775 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2776 java.lang.String s = bs.toStringUtf8(); 2777 clusterIpv4CidrBlock_ = s; 2778 return s; 2779 } else { 2780 return (java.lang.String) ref; 2781 } 2782 } 2783 /** 2784 * 2785 * 2786 * <pre> 2787 * The IP address range for the cluster pod IPs. If this field is set, then 2788 * `cluster.cluster_ipv4_cidr` must be left blank. 2789 * This field is only applicable when `use_ip_aliases` is true. 2790 * Set to blank to have a range chosen with the default size. 2791 * Set to /netmask (e.g. `/14`) to have a range chosen with a specific 2792 * netmask. 2793 * Set to a 2794 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) 2795 * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. 2796 * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range 2797 * to use. 2798 * </pre> 2799 * 2800 * <code>string cluster_ipv4_cidr_block = 9;</code> 2801 * 2802 * @return The bytes for clusterIpv4CidrBlock. 2803 */ getClusterIpv4CidrBlockBytes()2804 public com.google.protobuf.ByteString getClusterIpv4CidrBlockBytes() { 2805 java.lang.Object ref = clusterIpv4CidrBlock_; 2806 if (ref instanceof String) { 2807 com.google.protobuf.ByteString b = 2808 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2809 clusterIpv4CidrBlock_ = b; 2810 return b; 2811 } else { 2812 return (com.google.protobuf.ByteString) ref; 2813 } 2814 } 2815 /** 2816 * 2817 * 2818 * <pre> 2819 * The IP address range for the cluster pod IPs. If this field is set, then 2820 * `cluster.cluster_ipv4_cidr` must be left blank. 2821 * This field is only applicable when `use_ip_aliases` is true. 2822 * Set to blank to have a range chosen with the default size. 2823 * Set to /netmask (e.g. `/14`) to have a range chosen with a specific 2824 * netmask. 2825 * Set to a 2826 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) 2827 * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. 2828 * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range 2829 * to use. 2830 * </pre> 2831 * 2832 * <code>string cluster_ipv4_cidr_block = 9;</code> 2833 * 2834 * @param value The clusterIpv4CidrBlock to set. 2835 * @return This builder for chaining. 2836 */ setClusterIpv4CidrBlock(java.lang.String value)2837 public Builder setClusterIpv4CidrBlock(java.lang.String value) { 2838 if (value == null) { 2839 throw new NullPointerException(); 2840 } 2841 clusterIpv4CidrBlock_ = value; 2842 bitField0_ |= 0x00000100; 2843 onChanged(); 2844 return this; 2845 } 2846 /** 2847 * 2848 * 2849 * <pre> 2850 * The IP address range for the cluster pod IPs. If this field is set, then 2851 * `cluster.cluster_ipv4_cidr` must be left blank. 2852 * This field is only applicable when `use_ip_aliases` is true. 2853 * Set to blank to have a range chosen with the default size. 2854 * Set to /netmask (e.g. `/14`) to have a range chosen with a specific 2855 * netmask. 2856 * Set to a 2857 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) 2858 * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. 2859 * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range 2860 * to use. 2861 * </pre> 2862 * 2863 * <code>string cluster_ipv4_cidr_block = 9;</code> 2864 * 2865 * @return This builder for chaining. 2866 */ clearClusterIpv4CidrBlock()2867 public Builder clearClusterIpv4CidrBlock() { 2868 clusterIpv4CidrBlock_ = getDefaultInstance().getClusterIpv4CidrBlock(); 2869 bitField0_ = (bitField0_ & ~0x00000100); 2870 onChanged(); 2871 return this; 2872 } 2873 /** 2874 * 2875 * 2876 * <pre> 2877 * The IP address range for the cluster pod IPs. If this field is set, then 2878 * `cluster.cluster_ipv4_cidr` must be left blank. 2879 * This field is only applicable when `use_ip_aliases` is true. 2880 * Set to blank to have a range chosen with the default size. 2881 * Set to /netmask (e.g. `/14`) to have a range chosen with a specific 2882 * netmask. 2883 * Set to a 2884 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) 2885 * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. 2886 * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range 2887 * to use. 2888 * </pre> 2889 * 2890 * <code>string cluster_ipv4_cidr_block = 9;</code> 2891 * 2892 * @param value The bytes for clusterIpv4CidrBlock to set. 2893 * @return This builder for chaining. 2894 */ setClusterIpv4CidrBlockBytes(com.google.protobuf.ByteString value)2895 public Builder setClusterIpv4CidrBlockBytes(com.google.protobuf.ByteString value) { 2896 if (value == null) { 2897 throw new NullPointerException(); 2898 } 2899 checkByteStringIsUtf8(value); 2900 clusterIpv4CidrBlock_ = value; 2901 bitField0_ |= 0x00000100; 2902 onChanged(); 2903 return this; 2904 } 2905 2906 private java.lang.Object nodeIpv4CidrBlock_ = ""; 2907 /** 2908 * 2909 * 2910 * <pre> 2911 * The IP address range of the instance IPs in this cluster. 2912 * This is applicable only if `create_subnetwork` is true. 2913 * Set to blank to have a range chosen with the default size. 2914 * Set to /netmask (e.g. `/14`) to have a range chosen with a specific 2915 * netmask. 2916 * Set to a 2917 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) 2918 * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. 2919 * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range 2920 * to use. 2921 * </pre> 2922 * 2923 * <code>string node_ipv4_cidr_block = 10;</code> 2924 * 2925 * @return The nodeIpv4CidrBlock. 2926 */ getNodeIpv4CidrBlock()2927 public java.lang.String getNodeIpv4CidrBlock() { 2928 java.lang.Object ref = nodeIpv4CidrBlock_; 2929 if (!(ref instanceof java.lang.String)) { 2930 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2931 java.lang.String s = bs.toStringUtf8(); 2932 nodeIpv4CidrBlock_ = s; 2933 return s; 2934 } else { 2935 return (java.lang.String) ref; 2936 } 2937 } 2938 /** 2939 * 2940 * 2941 * <pre> 2942 * The IP address range of the instance IPs in this cluster. 2943 * This is applicable only if `create_subnetwork` is true. 2944 * Set to blank to have a range chosen with the default size. 2945 * Set to /netmask (e.g. `/14`) to have a range chosen with a specific 2946 * netmask. 2947 * Set to a 2948 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) 2949 * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. 2950 * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range 2951 * to use. 2952 * </pre> 2953 * 2954 * <code>string node_ipv4_cidr_block = 10;</code> 2955 * 2956 * @return The bytes for nodeIpv4CidrBlock. 2957 */ getNodeIpv4CidrBlockBytes()2958 public com.google.protobuf.ByteString getNodeIpv4CidrBlockBytes() { 2959 java.lang.Object ref = nodeIpv4CidrBlock_; 2960 if (ref instanceof String) { 2961 com.google.protobuf.ByteString b = 2962 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2963 nodeIpv4CidrBlock_ = b; 2964 return b; 2965 } else { 2966 return (com.google.protobuf.ByteString) ref; 2967 } 2968 } 2969 /** 2970 * 2971 * 2972 * <pre> 2973 * The IP address range of the instance IPs in this cluster. 2974 * This is applicable only if `create_subnetwork` is true. 2975 * Set to blank to have a range chosen with the default size. 2976 * Set to /netmask (e.g. `/14`) to have a range chosen with a specific 2977 * netmask. 2978 * Set to a 2979 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) 2980 * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. 2981 * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range 2982 * to use. 2983 * </pre> 2984 * 2985 * <code>string node_ipv4_cidr_block = 10;</code> 2986 * 2987 * @param value The nodeIpv4CidrBlock to set. 2988 * @return This builder for chaining. 2989 */ setNodeIpv4CidrBlock(java.lang.String value)2990 public Builder setNodeIpv4CidrBlock(java.lang.String value) { 2991 if (value == null) { 2992 throw new NullPointerException(); 2993 } 2994 nodeIpv4CidrBlock_ = value; 2995 bitField0_ |= 0x00000200; 2996 onChanged(); 2997 return this; 2998 } 2999 /** 3000 * 3001 * 3002 * <pre> 3003 * The IP address range of the instance IPs in this cluster. 3004 * This is applicable only if `create_subnetwork` is true. 3005 * Set to blank to have a range chosen with the default size. 3006 * Set to /netmask (e.g. `/14`) to have a range chosen with a specific 3007 * netmask. 3008 * Set to a 3009 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) 3010 * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. 3011 * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range 3012 * to use. 3013 * </pre> 3014 * 3015 * <code>string node_ipv4_cidr_block = 10;</code> 3016 * 3017 * @return This builder for chaining. 3018 */ clearNodeIpv4CidrBlock()3019 public Builder clearNodeIpv4CidrBlock() { 3020 nodeIpv4CidrBlock_ = getDefaultInstance().getNodeIpv4CidrBlock(); 3021 bitField0_ = (bitField0_ & ~0x00000200); 3022 onChanged(); 3023 return this; 3024 } 3025 /** 3026 * 3027 * 3028 * <pre> 3029 * The IP address range of the instance IPs in this cluster. 3030 * This is applicable only if `create_subnetwork` is true. 3031 * Set to blank to have a range chosen with the default size. 3032 * Set to /netmask (e.g. `/14`) to have a range chosen with a specific 3033 * netmask. 3034 * Set to a 3035 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) 3036 * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. 3037 * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range 3038 * to use. 3039 * </pre> 3040 * 3041 * <code>string node_ipv4_cidr_block = 10;</code> 3042 * 3043 * @param value The bytes for nodeIpv4CidrBlock to set. 3044 * @return This builder for chaining. 3045 */ setNodeIpv4CidrBlockBytes(com.google.protobuf.ByteString value)3046 public Builder setNodeIpv4CidrBlockBytes(com.google.protobuf.ByteString value) { 3047 if (value == null) { 3048 throw new NullPointerException(); 3049 } 3050 checkByteStringIsUtf8(value); 3051 nodeIpv4CidrBlock_ = value; 3052 bitField0_ |= 0x00000200; 3053 onChanged(); 3054 return this; 3055 } 3056 3057 private java.lang.Object servicesIpv4CidrBlock_ = ""; 3058 /** 3059 * 3060 * 3061 * <pre> 3062 * The IP address range of the services IPs in this cluster. If blank, a range 3063 * will be automatically chosen with the default size. 3064 * This field is only applicable when `use_ip_aliases` is true. 3065 * Set to blank to have a range chosen with the default size. 3066 * Set to /netmask (e.g. `/14`) to have a range chosen with a specific 3067 * netmask. 3068 * Set to a 3069 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) 3070 * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. 3071 * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range 3072 * to use. 3073 * </pre> 3074 * 3075 * <code>string services_ipv4_cidr_block = 11;</code> 3076 * 3077 * @return The servicesIpv4CidrBlock. 3078 */ getServicesIpv4CidrBlock()3079 public java.lang.String getServicesIpv4CidrBlock() { 3080 java.lang.Object ref = servicesIpv4CidrBlock_; 3081 if (!(ref instanceof java.lang.String)) { 3082 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 3083 java.lang.String s = bs.toStringUtf8(); 3084 servicesIpv4CidrBlock_ = s; 3085 return s; 3086 } else { 3087 return (java.lang.String) ref; 3088 } 3089 } 3090 /** 3091 * 3092 * 3093 * <pre> 3094 * The IP address range of the services IPs in this cluster. If blank, a range 3095 * will be automatically chosen with the default size. 3096 * This field is only applicable when `use_ip_aliases` is true. 3097 * Set to blank to have a range chosen with the default size. 3098 * Set to /netmask (e.g. `/14`) to have a range chosen with a specific 3099 * netmask. 3100 * Set to a 3101 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) 3102 * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. 3103 * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range 3104 * to use. 3105 * </pre> 3106 * 3107 * <code>string services_ipv4_cidr_block = 11;</code> 3108 * 3109 * @return The bytes for servicesIpv4CidrBlock. 3110 */ getServicesIpv4CidrBlockBytes()3111 public com.google.protobuf.ByteString getServicesIpv4CidrBlockBytes() { 3112 java.lang.Object ref = servicesIpv4CidrBlock_; 3113 if (ref instanceof String) { 3114 com.google.protobuf.ByteString b = 3115 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 3116 servicesIpv4CidrBlock_ = b; 3117 return b; 3118 } else { 3119 return (com.google.protobuf.ByteString) ref; 3120 } 3121 } 3122 /** 3123 * 3124 * 3125 * <pre> 3126 * The IP address range of the services IPs in this cluster. If blank, a range 3127 * will be automatically chosen with the default size. 3128 * This field is only applicable when `use_ip_aliases` is true. 3129 * Set to blank to have a range chosen with the default size. 3130 * Set to /netmask (e.g. `/14`) to have a range chosen with a specific 3131 * netmask. 3132 * Set to a 3133 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) 3134 * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. 3135 * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range 3136 * to use. 3137 * </pre> 3138 * 3139 * <code>string services_ipv4_cidr_block = 11;</code> 3140 * 3141 * @param value The servicesIpv4CidrBlock to set. 3142 * @return This builder for chaining. 3143 */ setServicesIpv4CidrBlock(java.lang.String value)3144 public Builder setServicesIpv4CidrBlock(java.lang.String value) { 3145 if (value == null) { 3146 throw new NullPointerException(); 3147 } 3148 servicesIpv4CidrBlock_ = value; 3149 bitField0_ |= 0x00000400; 3150 onChanged(); 3151 return this; 3152 } 3153 /** 3154 * 3155 * 3156 * <pre> 3157 * The IP address range of the services IPs in this cluster. If blank, a range 3158 * will be automatically chosen with the default size. 3159 * This field is only applicable when `use_ip_aliases` is true. 3160 * Set to blank to have a range chosen with the default size. 3161 * Set to /netmask (e.g. `/14`) to have a range chosen with a specific 3162 * netmask. 3163 * Set to a 3164 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) 3165 * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. 3166 * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range 3167 * to use. 3168 * </pre> 3169 * 3170 * <code>string services_ipv4_cidr_block = 11;</code> 3171 * 3172 * @return This builder for chaining. 3173 */ clearServicesIpv4CidrBlock()3174 public Builder clearServicesIpv4CidrBlock() { 3175 servicesIpv4CidrBlock_ = getDefaultInstance().getServicesIpv4CidrBlock(); 3176 bitField0_ = (bitField0_ & ~0x00000400); 3177 onChanged(); 3178 return this; 3179 } 3180 /** 3181 * 3182 * 3183 * <pre> 3184 * The IP address range of the services IPs in this cluster. If blank, a range 3185 * will be automatically chosen with the default size. 3186 * This field is only applicable when `use_ip_aliases` is true. 3187 * Set to blank to have a range chosen with the default size. 3188 * Set to /netmask (e.g. `/14`) to have a range chosen with a specific 3189 * netmask. 3190 * Set to a 3191 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) 3192 * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. 3193 * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range 3194 * to use. 3195 * </pre> 3196 * 3197 * <code>string services_ipv4_cidr_block = 11;</code> 3198 * 3199 * @param value The bytes for servicesIpv4CidrBlock to set. 3200 * @return This builder for chaining. 3201 */ setServicesIpv4CidrBlockBytes(com.google.protobuf.ByteString value)3202 public Builder setServicesIpv4CidrBlockBytes(com.google.protobuf.ByteString value) { 3203 if (value == null) { 3204 throw new NullPointerException(); 3205 } 3206 checkByteStringIsUtf8(value); 3207 servicesIpv4CidrBlock_ = value; 3208 bitField0_ |= 0x00000400; 3209 onChanged(); 3210 return this; 3211 } 3212 3213 private java.lang.Object tpuIpv4CidrBlock_ = ""; 3214 /** 3215 * 3216 * 3217 * <pre> 3218 * The IP address range of the Cloud TPUs in this cluster. If unspecified, a 3219 * range will be automatically chosen with the default size. 3220 * This field is only applicable when `use_ip_aliases` is true. 3221 * If unspecified, the range will use the default size. 3222 * Set to /netmask (e.g. `/14`) to have a range chosen with a specific 3223 * netmask. 3224 * Set to a 3225 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) 3226 * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. 3227 * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range 3228 * to use. 3229 * </pre> 3230 * 3231 * <code>string tpu_ipv4_cidr_block = 13;</code> 3232 * 3233 * @return The tpuIpv4CidrBlock. 3234 */ getTpuIpv4CidrBlock()3235 public java.lang.String getTpuIpv4CidrBlock() { 3236 java.lang.Object ref = tpuIpv4CidrBlock_; 3237 if (!(ref instanceof java.lang.String)) { 3238 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 3239 java.lang.String s = bs.toStringUtf8(); 3240 tpuIpv4CidrBlock_ = s; 3241 return s; 3242 } else { 3243 return (java.lang.String) ref; 3244 } 3245 } 3246 /** 3247 * 3248 * 3249 * <pre> 3250 * The IP address range of the Cloud TPUs in this cluster. If unspecified, a 3251 * range will be automatically chosen with the default size. 3252 * This field is only applicable when `use_ip_aliases` is true. 3253 * If unspecified, the range will use the default size. 3254 * Set to /netmask (e.g. `/14`) to have a range chosen with a specific 3255 * netmask. 3256 * Set to a 3257 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) 3258 * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. 3259 * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range 3260 * to use. 3261 * </pre> 3262 * 3263 * <code>string tpu_ipv4_cidr_block = 13;</code> 3264 * 3265 * @return The bytes for tpuIpv4CidrBlock. 3266 */ getTpuIpv4CidrBlockBytes()3267 public com.google.protobuf.ByteString getTpuIpv4CidrBlockBytes() { 3268 java.lang.Object ref = tpuIpv4CidrBlock_; 3269 if (ref instanceof String) { 3270 com.google.protobuf.ByteString b = 3271 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 3272 tpuIpv4CidrBlock_ = b; 3273 return b; 3274 } else { 3275 return (com.google.protobuf.ByteString) ref; 3276 } 3277 } 3278 /** 3279 * 3280 * 3281 * <pre> 3282 * The IP address range of the Cloud TPUs in this cluster. If unspecified, a 3283 * range will be automatically chosen with the default size. 3284 * This field is only applicable when `use_ip_aliases` is true. 3285 * If unspecified, the range will use the default size. 3286 * Set to /netmask (e.g. `/14`) to have a range chosen with a specific 3287 * netmask. 3288 * Set to a 3289 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) 3290 * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. 3291 * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range 3292 * to use. 3293 * </pre> 3294 * 3295 * <code>string tpu_ipv4_cidr_block = 13;</code> 3296 * 3297 * @param value The tpuIpv4CidrBlock to set. 3298 * @return This builder for chaining. 3299 */ setTpuIpv4CidrBlock(java.lang.String value)3300 public Builder setTpuIpv4CidrBlock(java.lang.String value) { 3301 if (value == null) { 3302 throw new NullPointerException(); 3303 } 3304 tpuIpv4CidrBlock_ = value; 3305 bitField0_ |= 0x00000800; 3306 onChanged(); 3307 return this; 3308 } 3309 /** 3310 * 3311 * 3312 * <pre> 3313 * The IP address range of the Cloud TPUs in this cluster. If unspecified, a 3314 * range will be automatically chosen with the default size. 3315 * This field is only applicable when `use_ip_aliases` is true. 3316 * If unspecified, the range will use the default size. 3317 * Set to /netmask (e.g. `/14`) to have a range chosen with a specific 3318 * netmask. 3319 * Set to a 3320 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) 3321 * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. 3322 * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range 3323 * to use. 3324 * </pre> 3325 * 3326 * <code>string tpu_ipv4_cidr_block = 13;</code> 3327 * 3328 * @return This builder for chaining. 3329 */ clearTpuIpv4CidrBlock()3330 public Builder clearTpuIpv4CidrBlock() { 3331 tpuIpv4CidrBlock_ = getDefaultInstance().getTpuIpv4CidrBlock(); 3332 bitField0_ = (bitField0_ & ~0x00000800); 3333 onChanged(); 3334 return this; 3335 } 3336 /** 3337 * 3338 * 3339 * <pre> 3340 * The IP address range of the Cloud TPUs in this cluster. If unspecified, a 3341 * range will be automatically chosen with the default size. 3342 * This field is only applicable when `use_ip_aliases` is true. 3343 * If unspecified, the range will use the default size. 3344 * Set to /netmask (e.g. `/14`) to have a range chosen with a specific 3345 * netmask. 3346 * Set to a 3347 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) 3348 * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. 3349 * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range 3350 * to use. 3351 * </pre> 3352 * 3353 * <code>string tpu_ipv4_cidr_block = 13;</code> 3354 * 3355 * @param value The bytes for tpuIpv4CidrBlock to set. 3356 * @return This builder for chaining. 3357 */ setTpuIpv4CidrBlockBytes(com.google.protobuf.ByteString value)3358 public Builder setTpuIpv4CidrBlockBytes(com.google.protobuf.ByteString value) { 3359 if (value == null) { 3360 throw new NullPointerException(); 3361 } 3362 checkByteStringIsUtf8(value); 3363 tpuIpv4CidrBlock_ = value; 3364 bitField0_ |= 0x00000800; 3365 onChanged(); 3366 return this; 3367 } 3368 3369 private boolean useRoutes_; 3370 /** 3371 * 3372 * 3373 * <pre> 3374 * Whether routes will be used for pod IPs in the cluster. 3375 * This is used in conjunction with use_ip_aliases. It cannot be true if 3376 * use_ip_aliases is true. If both use_ip_aliases and use_routes are false, 3377 * then the server picks the default IP allocation mode 3378 * </pre> 3379 * 3380 * <code>bool use_routes = 15;</code> 3381 * 3382 * @return The useRoutes. 3383 */ 3384 @java.lang.Override getUseRoutes()3385 public boolean getUseRoutes() { 3386 return useRoutes_; 3387 } 3388 /** 3389 * 3390 * 3391 * <pre> 3392 * Whether routes will be used for pod IPs in the cluster. 3393 * This is used in conjunction with use_ip_aliases. It cannot be true if 3394 * use_ip_aliases is true. If both use_ip_aliases and use_routes are false, 3395 * then the server picks the default IP allocation mode 3396 * </pre> 3397 * 3398 * <code>bool use_routes = 15;</code> 3399 * 3400 * @param value The useRoutes to set. 3401 * @return This builder for chaining. 3402 */ setUseRoutes(boolean value)3403 public Builder setUseRoutes(boolean value) { 3404 3405 useRoutes_ = value; 3406 bitField0_ |= 0x00001000; 3407 onChanged(); 3408 return this; 3409 } 3410 /** 3411 * 3412 * 3413 * <pre> 3414 * Whether routes will be used for pod IPs in the cluster. 3415 * This is used in conjunction with use_ip_aliases. It cannot be true if 3416 * use_ip_aliases is true. If both use_ip_aliases and use_routes are false, 3417 * then the server picks the default IP allocation mode 3418 * </pre> 3419 * 3420 * <code>bool use_routes = 15;</code> 3421 * 3422 * @return This builder for chaining. 3423 */ clearUseRoutes()3424 public Builder clearUseRoutes() { 3425 bitField0_ = (bitField0_ & ~0x00001000); 3426 useRoutes_ = false; 3427 onChanged(); 3428 return this; 3429 } 3430 3431 private int stackType_ = 0; 3432 /** 3433 * 3434 * 3435 * <pre> 3436 * The IP stack type of the cluster 3437 * </pre> 3438 * 3439 * <code>.google.container.v1.StackType stack_type = 16;</code> 3440 * 3441 * @return The enum numeric value on the wire for stackType. 3442 */ 3443 @java.lang.Override getStackTypeValue()3444 public int getStackTypeValue() { 3445 return stackType_; 3446 } 3447 /** 3448 * 3449 * 3450 * <pre> 3451 * The IP stack type of the cluster 3452 * </pre> 3453 * 3454 * <code>.google.container.v1.StackType stack_type = 16;</code> 3455 * 3456 * @param value The enum numeric value on the wire for stackType to set. 3457 * @return This builder for chaining. 3458 */ setStackTypeValue(int value)3459 public Builder setStackTypeValue(int value) { 3460 stackType_ = value; 3461 bitField0_ |= 0x00002000; 3462 onChanged(); 3463 return this; 3464 } 3465 /** 3466 * 3467 * 3468 * <pre> 3469 * The IP stack type of the cluster 3470 * </pre> 3471 * 3472 * <code>.google.container.v1.StackType stack_type = 16;</code> 3473 * 3474 * @return The stackType. 3475 */ 3476 @java.lang.Override getStackType()3477 public com.google.container.v1.StackType getStackType() { 3478 com.google.container.v1.StackType result = 3479 com.google.container.v1.StackType.forNumber(stackType_); 3480 return result == null ? com.google.container.v1.StackType.UNRECOGNIZED : result; 3481 } 3482 /** 3483 * 3484 * 3485 * <pre> 3486 * The IP stack type of the cluster 3487 * </pre> 3488 * 3489 * <code>.google.container.v1.StackType stack_type = 16;</code> 3490 * 3491 * @param value The stackType to set. 3492 * @return This builder for chaining. 3493 */ setStackType(com.google.container.v1.StackType value)3494 public Builder setStackType(com.google.container.v1.StackType value) { 3495 if (value == null) { 3496 throw new NullPointerException(); 3497 } 3498 bitField0_ |= 0x00002000; 3499 stackType_ = value.getNumber(); 3500 onChanged(); 3501 return this; 3502 } 3503 /** 3504 * 3505 * 3506 * <pre> 3507 * The IP stack type of the cluster 3508 * </pre> 3509 * 3510 * <code>.google.container.v1.StackType stack_type = 16;</code> 3511 * 3512 * @return This builder for chaining. 3513 */ clearStackType()3514 public Builder clearStackType() { 3515 bitField0_ = (bitField0_ & ~0x00002000); 3516 stackType_ = 0; 3517 onChanged(); 3518 return this; 3519 } 3520 3521 private int ipv6AccessType_ = 0; 3522 /** 3523 * 3524 * 3525 * <pre> 3526 * The ipv6 access type (internal or external) when create_subnetwork is true 3527 * </pre> 3528 * 3529 * <code>.google.container.v1.IPv6AccessType ipv6_access_type = 17;</code> 3530 * 3531 * @return The enum numeric value on the wire for ipv6AccessType. 3532 */ 3533 @java.lang.Override getIpv6AccessTypeValue()3534 public int getIpv6AccessTypeValue() { 3535 return ipv6AccessType_; 3536 } 3537 /** 3538 * 3539 * 3540 * <pre> 3541 * The ipv6 access type (internal or external) when create_subnetwork is true 3542 * </pre> 3543 * 3544 * <code>.google.container.v1.IPv6AccessType ipv6_access_type = 17;</code> 3545 * 3546 * @param value The enum numeric value on the wire for ipv6AccessType to set. 3547 * @return This builder for chaining. 3548 */ setIpv6AccessTypeValue(int value)3549 public Builder setIpv6AccessTypeValue(int value) { 3550 ipv6AccessType_ = value; 3551 bitField0_ |= 0x00004000; 3552 onChanged(); 3553 return this; 3554 } 3555 /** 3556 * 3557 * 3558 * <pre> 3559 * The ipv6 access type (internal or external) when create_subnetwork is true 3560 * </pre> 3561 * 3562 * <code>.google.container.v1.IPv6AccessType ipv6_access_type = 17;</code> 3563 * 3564 * @return The ipv6AccessType. 3565 */ 3566 @java.lang.Override getIpv6AccessType()3567 public com.google.container.v1.IPv6AccessType getIpv6AccessType() { 3568 com.google.container.v1.IPv6AccessType result = 3569 com.google.container.v1.IPv6AccessType.forNumber(ipv6AccessType_); 3570 return result == null ? com.google.container.v1.IPv6AccessType.UNRECOGNIZED : result; 3571 } 3572 /** 3573 * 3574 * 3575 * <pre> 3576 * The ipv6 access type (internal or external) when create_subnetwork is true 3577 * </pre> 3578 * 3579 * <code>.google.container.v1.IPv6AccessType ipv6_access_type = 17;</code> 3580 * 3581 * @param value The ipv6AccessType to set. 3582 * @return This builder for chaining. 3583 */ setIpv6AccessType(com.google.container.v1.IPv6AccessType value)3584 public Builder setIpv6AccessType(com.google.container.v1.IPv6AccessType value) { 3585 if (value == null) { 3586 throw new NullPointerException(); 3587 } 3588 bitField0_ |= 0x00004000; 3589 ipv6AccessType_ = value.getNumber(); 3590 onChanged(); 3591 return this; 3592 } 3593 /** 3594 * 3595 * 3596 * <pre> 3597 * The ipv6 access type (internal or external) when create_subnetwork is true 3598 * </pre> 3599 * 3600 * <code>.google.container.v1.IPv6AccessType ipv6_access_type = 17;</code> 3601 * 3602 * @return This builder for chaining. 3603 */ clearIpv6AccessType()3604 public Builder clearIpv6AccessType() { 3605 bitField0_ = (bitField0_ & ~0x00004000); 3606 ipv6AccessType_ = 0; 3607 onChanged(); 3608 return this; 3609 } 3610 3611 private com.google.container.v1.PodCIDROverprovisionConfig podCidrOverprovisionConfig_; 3612 private com.google.protobuf.SingleFieldBuilderV3< 3613 com.google.container.v1.PodCIDROverprovisionConfig, 3614 com.google.container.v1.PodCIDROverprovisionConfig.Builder, 3615 com.google.container.v1.PodCIDROverprovisionConfigOrBuilder> 3616 podCidrOverprovisionConfigBuilder_; 3617 /** 3618 * 3619 * 3620 * <pre> 3621 * [PRIVATE FIELD] 3622 * Pod CIDR size overprovisioning config for the cluster. 3623 * Pod CIDR size per node depends on max_pods_per_node. By default, the value 3624 * of max_pods_per_node is doubled and then rounded off to next power of 2 to 3625 * get the size of pod CIDR block per node. 3626 * Example: max_pods_per_node of 30 would result in 64 IPs (/26). 3627 * This config can disable the doubling of IPs (we still round off to next 3628 * power of 2) 3629 * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when 3630 * overprovisioning is disabled. 3631 * </pre> 3632 * 3633 * <code>.google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; 3634 * </code> 3635 * 3636 * @return Whether the podCidrOverprovisionConfig field is set. 3637 */ hasPodCidrOverprovisionConfig()3638 public boolean hasPodCidrOverprovisionConfig() { 3639 return ((bitField0_ & 0x00008000) != 0); 3640 } 3641 /** 3642 * 3643 * 3644 * <pre> 3645 * [PRIVATE FIELD] 3646 * Pod CIDR size overprovisioning config for the cluster. 3647 * Pod CIDR size per node depends on max_pods_per_node. By default, the value 3648 * of max_pods_per_node is doubled and then rounded off to next power of 2 to 3649 * get the size of pod CIDR block per node. 3650 * Example: max_pods_per_node of 30 would result in 64 IPs (/26). 3651 * This config can disable the doubling of IPs (we still round off to next 3652 * power of 2) 3653 * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when 3654 * overprovisioning is disabled. 3655 * </pre> 3656 * 3657 * <code>.google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; 3658 * </code> 3659 * 3660 * @return The podCidrOverprovisionConfig. 3661 */ getPodCidrOverprovisionConfig()3662 public com.google.container.v1.PodCIDROverprovisionConfig getPodCidrOverprovisionConfig() { 3663 if (podCidrOverprovisionConfigBuilder_ == null) { 3664 return podCidrOverprovisionConfig_ == null 3665 ? com.google.container.v1.PodCIDROverprovisionConfig.getDefaultInstance() 3666 : podCidrOverprovisionConfig_; 3667 } else { 3668 return podCidrOverprovisionConfigBuilder_.getMessage(); 3669 } 3670 } 3671 /** 3672 * 3673 * 3674 * <pre> 3675 * [PRIVATE FIELD] 3676 * Pod CIDR size overprovisioning config for the cluster. 3677 * Pod CIDR size per node depends on max_pods_per_node. By default, the value 3678 * of max_pods_per_node is doubled and then rounded off to next power of 2 to 3679 * get the size of pod CIDR block per node. 3680 * Example: max_pods_per_node of 30 would result in 64 IPs (/26). 3681 * This config can disable the doubling of IPs (we still round off to next 3682 * power of 2) 3683 * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when 3684 * overprovisioning is disabled. 3685 * </pre> 3686 * 3687 * <code>.google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; 3688 * </code> 3689 */ setPodCidrOverprovisionConfig( com.google.container.v1.PodCIDROverprovisionConfig value)3690 public Builder setPodCidrOverprovisionConfig( 3691 com.google.container.v1.PodCIDROverprovisionConfig value) { 3692 if (podCidrOverprovisionConfigBuilder_ == null) { 3693 if (value == null) { 3694 throw new NullPointerException(); 3695 } 3696 podCidrOverprovisionConfig_ = value; 3697 } else { 3698 podCidrOverprovisionConfigBuilder_.setMessage(value); 3699 } 3700 bitField0_ |= 0x00008000; 3701 onChanged(); 3702 return this; 3703 } 3704 /** 3705 * 3706 * 3707 * <pre> 3708 * [PRIVATE FIELD] 3709 * Pod CIDR size overprovisioning config for the cluster. 3710 * Pod CIDR size per node depends on max_pods_per_node. By default, the value 3711 * of max_pods_per_node is doubled and then rounded off to next power of 2 to 3712 * get the size of pod CIDR block per node. 3713 * Example: max_pods_per_node of 30 would result in 64 IPs (/26). 3714 * This config can disable the doubling of IPs (we still round off to next 3715 * power of 2) 3716 * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when 3717 * overprovisioning is disabled. 3718 * </pre> 3719 * 3720 * <code>.google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; 3721 * </code> 3722 */ setPodCidrOverprovisionConfig( com.google.container.v1.PodCIDROverprovisionConfig.Builder builderForValue)3723 public Builder setPodCidrOverprovisionConfig( 3724 com.google.container.v1.PodCIDROverprovisionConfig.Builder builderForValue) { 3725 if (podCidrOverprovisionConfigBuilder_ == null) { 3726 podCidrOverprovisionConfig_ = builderForValue.build(); 3727 } else { 3728 podCidrOverprovisionConfigBuilder_.setMessage(builderForValue.build()); 3729 } 3730 bitField0_ |= 0x00008000; 3731 onChanged(); 3732 return this; 3733 } 3734 /** 3735 * 3736 * 3737 * <pre> 3738 * [PRIVATE FIELD] 3739 * Pod CIDR size overprovisioning config for the cluster. 3740 * Pod CIDR size per node depends on max_pods_per_node. By default, the value 3741 * of max_pods_per_node is doubled and then rounded off to next power of 2 to 3742 * get the size of pod CIDR block per node. 3743 * Example: max_pods_per_node of 30 would result in 64 IPs (/26). 3744 * This config can disable the doubling of IPs (we still round off to next 3745 * power of 2) 3746 * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when 3747 * overprovisioning is disabled. 3748 * </pre> 3749 * 3750 * <code>.google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; 3751 * </code> 3752 */ mergePodCidrOverprovisionConfig( com.google.container.v1.PodCIDROverprovisionConfig value)3753 public Builder mergePodCidrOverprovisionConfig( 3754 com.google.container.v1.PodCIDROverprovisionConfig value) { 3755 if (podCidrOverprovisionConfigBuilder_ == null) { 3756 if (((bitField0_ & 0x00008000) != 0) 3757 && podCidrOverprovisionConfig_ != null 3758 && podCidrOverprovisionConfig_ 3759 != com.google.container.v1.PodCIDROverprovisionConfig.getDefaultInstance()) { 3760 getPodCidrOverprovisionConfigBuilder().mergeFrom(value); 3761 } else { 3762 podCidrOverprovisionConfig_ = value; 3763 } 3764 } else { 3765 podCidrOverprovisionConfigBuilder_.mergeFrom(value); 3766 } 3767 bitField0_ |= 0x00008000; 3768 onChanged(); 3769 return this; 3770 } 3771 /** 3772 * 3773 * 3774 * <pre> 3775 * [PRIVATE FIELD] 3776 * Pod CIDR size overprovisioning config for the cluster. 3777 * Pod CIDR size per node depends on max_pods_per_node. By default, the value 3778 * of max_pods_per_node is doubled and then rounded off to next power of 2 to 3779 * get the size of pod CIDR block per node. 3780 * Example: max_pods_per_node of 30 would result in 64 IPs (/26). 3781 * This config can disable the doubling of IPs (we still round off to next 3782 * power of 2) 3783 * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when 3784 * overprovisioning is disabled. 3785 * </pre> 3786 * 3787 * <code>.google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; 3788 * </code> 3789 */ clearPodCidrOverprovisionConfig()3790 public Builder clearPodCidrOverprovisionConfig() { 3791 bitField0_ = (bitField0_ & ~0x00008000); 3792 podCidrOverprovisionConfig_ = null; 3793 if (podCidrOverprovisionConfigBuilder_ != null) { 3794 podCidrOverprovisionConfigBuilder_.dispose(); 3795 podCidrOverprovisionConfigBuilder_ = null; 3796 } 3797 onChanged(); 3798 return this; 3799 } 3800 /** 3801 * 3802 * 3803 * <pre> 3804 * [PRIVATE FIELD] 3805 * Pod CIDR size overprovisioning config for the cluster. 3806 * Pod CIDR size per node depends on max_pods_per_node. By default, the value 3807 * of max_pods_per_node is doubled and then rounded off to next power of 2 to 3808 * get the size of pod CIDR block per node. 3809 * Example: max_pods_per_node of 30 would result in 64 IPs (/26). 3810 * This config can disable the doubling of IPs (we still round off to next 3811 * power of 2) 3812 * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when 3813 * overprovisioning is disabled. 3814 * </pre> 3815 * 3816 * <code>.google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; 3817 * </code> 3818 */ 3819 public com.google.container.v1.PodCIDROverprovisionConfig.Builder getPodCidrOverprovisionConfigBuilder()3820 getPodCidrOverprovisionConfigBuilder() { 3821 bitField0_ |= 0x00008000; 3822 onChanged(); 3823 return getPodCidrOverprovisionConfigFieldBuilder().getBuilder(); 3824 } 3825 /** 3826 * 3827 * 3828 * <pre> 3829 * [PRIVATE FIELD] 3830 * Pod CIDR size overprovisioning config for the cluster. 3831 * Pod CIDR size per node depends on max_pods_per_node. By default, the value 3832 * of max_pods_per_node is doubled and then rounded off to next power of 2 to 3833 * get the size of pod CIDR block per node. 3834 * Example: max_pods_per_node of 30 would result in 64 IPs (/26). 3835 * This config can disable the doubling of IPs (we still round off to next 3836 * power of 2) 3837 * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when 3838 * overprovisioning is disabled. 3839 * </pre> 3840 * 3841 * <code>.google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; 3842 * </code> 3843 */ 3844 public com.google.container.v1.PodCIDROverprovisionConfigOrBuilder getPodCidrOverprovisionConfigOrBuilder()3845 getPodCidrOverprovisionConfigOrBuilder() { 3846 if (podCidrOverprovisionConfigBuilder_ != null) { 3847 return podCidrOverprovisionConfigBuilder_.getMessageOrBuilder(); 3848 } else { 3849 return podCidrOverprovisionConfig_ == null 3850 ? com.google.container.v1.PodCIDROverprovisionConfig.getDefaultInstance() 3851 : podCidrOverprovisionConfig_; 3852 } 3853 } 3854 /** 3855 * 3856 * 3857 * <pre> 3858 * [PRIVATE FIELD] 3859 * Pod CIDR size overprovisioning config for the cluster. 3860 * Pod CIDR size per node depends on max_pods_per_node. By default, the value 3861 * of max_pods_per_node is doubled and then rounded off to next power of 2 to 3862 * get the size of pod CIDR block per node. 3863 * Example: max_pods_per_node of 30 would result in 64 IPs (/26). 3864 * This config can disable the doubling of IPs (we still round off to next 3865 * power of 2) 3866 * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when 3867 * overprovisioning is disabled. 3868 * </pre> 3869 * 3870 * <code>.google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; 3871 * </code> 3872 */ 3873 private com.google.protobuf.SingleFieldBuilderV3< 3874 com.google.container.v1.PodCIDROverprovisionConfig, 3875 com.google.container.v1.PodCIDROverprovisionConfig.Builder, 3876 com.google.container.v1.PodCIDROverprovisionConfigOrBuilder> getPodCidrOverprovisionConfigFieldBuilder()3877 getPodCidrOverprovisionConfigFieldBuilder() { 3878 if (podCidrOverprovisionConfigBuilder_ == null) { 3879 podCidrOverprovisionConfigBuilder_ = 3880 new com.google.protobuf.SingleFieldBuilderV3< 3881 com.google.container.v1.PodCIDROverprovisionConfig, 3882 com.google.container.v1.PodCIDROverprovisionConfig.Builder, 3883 com.google.container.v1.PodCIDROverprovisionConfigOrBuilder>( 3884 getPodCidrOverprovisionConfig(), getParentForChildren(), isClean()); 3885 podCidrOverprovisionConfig_ = null; 3886 } 3887 return podCidrOverprovisionConfigBuilder_; 3888 } 3889 3890 private java.lang.Object subnetIpv6CidrBlock_ = ""; 3891 /** 3892 * 3893 * 3894 * <pre> 3895 * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and 3896 * pods. 3897 * </pre> 3898 * 3899 * <code>string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3900 * 3901 * @return The subnetIpv6CidrBlock. 3902 */ getSubnetIpv6CidrBlock()3903 public java.lang.String getSubnetIpv6CidrBlock() { 3904 java.lang.Object ref = subnetIpv6CidrBlock_; 3905 if (!(ref instanceof java.lang.String)) { 3906 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 3907 java.lang.String s = bs.toStringUtf8(); 3908 subnetIpv6CidrBlock_ = s; 3909 return s; 3910 } else { 3911 return (java.lang.String) ref; 3912 } 3913 } 3914 /** 3915 * 3916 * 3917 * <pre> 3918 * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and 3919 * pods. 3920 * </pre> 3921 * 3922 * <code>string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3923 * 3924 * @return The bytes for subnetIpv6CidrBlock. 3925 */ getSubnetIpv6CidrBlockBytes()3926 public com.google.protobuf.ByteString getSubnetIpv6CidrBlockBytes() { 3927 java.lang.Object ref = subnetIpv6CidrBlock_; 3928 if (ref instanceof String) { 3929 com.google.protobuf.ByteString b = 3930 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 3931 subnetIpv6CidrBlock_ = b; 3932 return b; 3933 } else { 3934 return (com.google.protobuf.ByteString) ref; 3935 } 3936 } 3937 /** 3938 * 3939 * 3940 * <pre> 3941 * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and 3942 * pods. 3943 * </pre> 3944 * 3945 * <code>string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3946 * 3947 * @param value The subnetIpv6CidrBlock to set. 3948 * @return This builder for chaining. 3949 */ setSubnetIpv6CidrBlock(java.lang.String value)3950 public Builder setSubnetIpv6CidrBlock(java.lang.String value) { 3951 if (value == null) { 3952 throw new NullPointerException(); 3953 } 3954 subnetIpv6CidrBlock_ = value; 3955 bitField0_ |= 0x00010000; 3956 onChanged(); 3957 return this; 3958 } 3959 /** 3960 * 3961 * 3962 * <pre> 3963 * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and 3964 * pods. 3965 * </pre> 3966 * 3967 * <code>string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3968 * 3969 * @return This builder for chaining. 3970 */ clearSubnetIpv6CidrBlock()3971 public Builder clearSubnetIpv6CidrBlock() { 3972 subnetIpv6CidrBlock_ = getDefaultInstance().getSubnetIpv6CidrBlock(); 3973 bitField0_ = (bitField0_ & ~0x00010000); 3974 onChanged(); 3975 return this; 3976 } 3977 /** 3978 * 3979 * 3980 * <pre> 3981 * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and 3982 * pods. 3983 * </pre> 3984 * 3985 * <code>string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3986 * 3987 * @param value The bytes for subnetIpv6CidrBlock to set. 3988 * @return This builder for chaining. 3989 */ setSubnetIpv6CidrBlockBytes(com.google.protobuf.ByteString value)3990 public Builder setSubnetIpv6CidrBlockBytes(com.google.protobuf.ByteString value) { 3991 if (value == null) { 3992 throw new NullPointerException(); 3993 } 3994 checkByteStringIsUtf8(value); 3995 subnetIpv6CidrBlock_ = value; 3996 bitField0_ |= 0x00010000; 3997 onChanged(); 3998 return this; 3999 } 4000 4001 private java.lang.Object servicesIpv6CidrBlock_ = ""; 4002 /** 4003 * 4004 * 4005 * <pre> 4006 * Output only. [Output only] The services IPv6 CIDR block for the cluster. 4007 * </pre> 4008 * 4009 * <code>string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4010 * </code> 4011 * 4012 * @return The servicesIpv6CidrBlock. 4013 */ getServicesIpv6CidrBlock()4014 public java.lang.String getServicesIpv6CidrBlock() { 4015 java.lang.Object ref = servicesIpv6CidrBlock_; 4016 if (!(ref instanceof java.lang.String)) { 4017 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 4018 java.lang.String s = bs.toStringUtf8(); 4019 servicesIpv6CidrBlock_ = s; 4020 return s; 4021 } else { 4022 return (java.lang.String) ref; 4023 } 4024 } 4025 /** 4026 * 4027 * 4028 * <pre> 4029 * Output only. [Output only] The services IPv6 CIDR block for the cluster. 4030 * </pre> 4031 * 4032 * <code>string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4033 * </code> 4034 * 4035 * @return The bytes for servicesIpv6CidrBlock. 4036 */ getServicesIpv6CidrBlockBytes()4037 public com.google.protobuf.ByteString getServicesIpv6CidrBlockBytes() { 4038 java.lang.Object ref = servicesIpv6CidrBlock_; 4039 if (ref instanceof String) { 4040 com.google.protobuf.ByteString b = 4041 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 4042 servicesIpv6CidrBlock_ = b; 4043 return b; 4044 } else { 4045 return (com.google.protobuf.ByteString) ref; 4046 } 4047 } 4048 /** 4049 * 4050 * 4051 * <pre> 4052 * Output only. [Output only] The services IPv6 CIDR block for the cluster. 4053 * </pre> 4054 * 4055 * <code>string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4056 * </code> 4057 * 4058 * @param value The servicesIpv6CidrBlock to set. 4059 * @return This builder for chaining. 4060 */ setServicesIpv6CidrBlock(java.lang.String value)4061 public Builder setServicesIpv6CidrBlock(java.lang.String value) { 4062 if (value == null) { 4063 throw new NullPointerException(); 4064 } 4065 servicesIpv6CidrBlock_ = value; 4066 bitField0_ |= 0x00020000; 4067 onChanged(); 4068 return this; 4069 } 4070 /** 4071 * 4072 * 4073 * <pre> 4074 * Output only. [Output only] The services IPv6 CIDR block for the cluster. 4075 * </pre> 4076 * 4077 * <code>string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4078 * </code> 4079 * 4080 * @return This builder for chaining. 4081 */ clearServicesIpv6CidrBlock()4082 public Builder clearServicesIpv6CidrBlock() { 4083 servicesIpv6CidrBlock_ = getDefaultInstance().getServicesIpv6CidrBlock(); 4084 bitField0_ = (bitField0_ & ~0x00020000); 4085 onChanged(); 4086 return this; 4087 } 4088 /** 4089 * 4090 * 4091 * <pre> 4092 * Output only. [Output only] The services IPv6 CIDR block for the cluster. 4093 * </pre> 4094 * 4095 * <code>string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4096 * </code> 4097 * 4098 * @param value The bytes for servicesIpv6CidrBlock to set. 4099 * @return This builder for chaining. 4100 */ setServicesIpv6CidrBlockBytes(com.google.protobuf.ByteString value)4101 public Builder setServicesIpv6CidrBlockBytes(com.google.protobuf.ByteString value) { 4102 if (value == null) { 4103 throw new NullPointerException(); 4104 } 4105 checkByteStringIsUtf8(value); 4106 servicesIpv6CidrBlock_ = value; 4107 bitField0_ |= 0x00020000; 4108 onChanged(); 4109 return this; 4110 } 4111 4112 private com.google.container.v1.AdditionalPodRangesConfig additionalPodRangesConfig_; 4113 private com.google.protobuf.SingleFieldBuilderV3< 4114 com.google.container.v1.AdditionalPodRangesConfig, 4115 com.google.container.v1.AdditionalPodRangesConfig.Builder, 4116 com.google.container.v1.AdditionalPodRangesConfigOrBuilder> 4117 additionalPodRangesConfigBuilder_; 4118 /** 4119 * 4120 * 4121 * <pre> 4122 * Output only. [Output only] The additional pod ranges that are added to the 4123 * cluster. These pod ranges can be used by new node pools to allocate pod IPs 4124 * automatically. Once the range is removed it will not show up in 4125 * IPAllocationPolicy. 4126 * </pre> 4127 * 4128 * <code> 4129 * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4130 * </code> 4131 * 4132 * @return Whether the additionalPodRangesConfig field is set. 4133 */ hasAdditionalPodRangesConfig()4134 public boolean hasAdditionalPodRangesConfig() { 4135 return ((bitField0_ & 0x00040000) != 0); 4136 } 4137 /** 4138 * 4139 * 4140 * <pre> 4141 * Output only. [Output only] The additional pod ranges that are added to the 4142 * cluster. These pod ranges can be used by new node pools to allocate pod IPs 4143 * automatically. Once the range is removed it will not show up in 4144 * IPAllocationPolicy. 4145 * </pre> 4146 * 4147 * <code> 4148 * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4149 * </code> 4150 * 4151 * @return The additionalPodRangesConfig. 4152 */ getAdditionalPodRangesConfig()4153 public com.google.container.v1.AdditionalPodRangesConfig getAdditionalPodRangesConfig() { 4154 if (additionalPodRangesConfigBuilder_ == null) { 4155 return additionalPodRangesConfig_ == null 4156 ? com.google.container.v1.AdditionalPodRangesConfig.getDefaultInstance() 4157 : additionalPodRangesConfig_; 4158 } else { 4159 return additionalPodRangesConfigBuilder_.getMessage(); 4160 } 4161 } 4162 /** 4163 * 4164 * 4165 * <pre> 4166 * Output only. [Output only] The additional pod ranges that are added to the 4167 * cluster. These pod ranges can be used by new node pools to allocate pod IPs 4168 * automatically. Once the range is removed it will not show up in 4169 * IPAllocationPolicy. 4170 * </pre> 4171 * 4172 * <code> 4173 * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4174 * </code> 4175 */ setAdditionalPodRangesConfig( com.google.container.v1.AdditionalPodRangesConfig value)4176 public Builder setAdditionalPodRangesConfig( 4177 com.google.container.v1.AdditionalPodRangesConfig value) { 4178 if (additionalPodRangesConfigBuilder_ == null) { 4179 if (value == null) { 4180 throw new NullPointerException(); 4181 } 4182 additionalPodRangesConfig_ = value; 4183 } else { 4184 additionalPodRangesConfigBuilder_.setMessage(value); 4185 } 4186 bitField0_ |= 0x00040000; 4187 onChanged(); 4188 return this; 4189 } 4190 /** 4191 * 4192 * 4193 * <pre> 4194 * Output only. [Output only] The additional pod ranges that are added to the 4195 * cluster. These pod ranges can be used by new node pools to allocate pod IPs 4196 * automatically. Once the range is removed it will not show up in 4197 * IPAllocationPolicy. 4198 * </pre> 4199 * 4200 * <code> 4201 * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4202 * </code> 4203 */ setAdditionalPodRangesConfig( com.google.container.v1.AdditionalPodRangesConfig.Builder builderForValue)4204 public Builder setAdditionalPodRangesConfig( 4205 com.google.container.v1.AdditionalPodRangesConfig.Builder builderForValue) { 4206 if (additionalPodRangesConfigBuilder_ == null) { 4207 additionalPodRangesConfig_ = builderForValue.build(); 4208 } else { 4209 additionalPodRangesConfigBuilder_.setMessage(builderForValue.build()); 4210 } 4211 bitField0_ |= 0x00040000; 4212 onChanged(); 4213 return this; 4214 } 4215 /** 4216 * 4217 * 4218 * <pre> 4219 * Output only. [Output only] The additional pod ranges that are added to the 4220 * cluster. These pod ranges can be used by new node pools to allocate pod IPs 4221 * automatically. Once the range is removed it will not show up in 4222 * IPAllocationPolicy. 4223 * </pre> 4224 * 4225 * <code> 4226 * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4227 * </code> 4228 */ mergeAdditionalPodRangesConfig( com.google.container.v1.AdditionalPodRangesConfig value)4229 public Builder mergeAdditionalPodRangesConfig( 4230 com.google.container.v1.AdditionalPodRangesConfig value) { 4231 if (additionalPodRangesConfigBuilder_ == null) { 4232 if (((bitField0_ & 0x00040000) != 0) 4233 && additionalPodRangesConfig_ != null 4234 && additionalPodRangesConfig_ 4235 != com.google.container.v1.AdditionalPodRangesConfig.getDefaultInstance()) { 4236 getAdditionalPodRangesConfigBuilder().mergeFrom(value); 4237 } else { 4238 additionalPodRangesConfig_ = value; 4239 } 4240 } else { 4241 additionalPodRangesConfigBuilder_.mergeFrom(value); 4242 } 4243 bitField0_ |= 0x00040000; 4244 onChanged(); 4245 return this; 4246 } 4247 /** 4248 * 4249 * 4250 * <pre> 4251 * Output only. [Output only] The additional pod ranges that are added to the 4252 * cluster. These pod ranges can be used by new node pools to allocate pod IPs 4253 * automatically. Once the range is removed it will not show up in 4254 * IPAllocationPolicy. 4255 * </pre> 4256 * 4257 * <code> 4258 * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4259 * </code> 4260 */ clearAdditionalPodRangesConfig()4261 public Builder clearAdditionalPodRangesConfig() { 4262 bitField0_ = (bitField0_ & ~0x00040000); 4263 additionalPodRangesConfig_ = null; 4264 if (additionalPodRangesConfigBuilder_ != null) { 4265 additionalPodRangesConfigBuilder_.dispose(); 4266 additionalPodRangesConfigBuilder_ = null; 4267 } 4268 onChanged(); 4269 return this; 4270 } 4271 /** 4272 * 4273 * 4274 * <pre> 4275 * Output only. [Output only] The additional pod ranges that are added to the 4276 * cluster. These pod ranges can be used by new node pools to allocate pod IPs 4277 * automatically. Once the range is removed it will not show up in 4278 * IPAllocationPolicy. 4279 * </pre> 4280 * 4281 * <code> 4282 * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4283 * </code> 4284 */ 4285 public com.google.container.v1.AdditionalPodRangesConfig.Builder getAdditionalPodRangesConfigBuilder()4286 getAdditionalPodRangesConfigBuilder() { 4287 bitField0_ |= 0x00040000; 4288 onChanged(); 4289 return getAdditionalPodRangesConfigFieldBuilder().getBuilder(); 4290 } 4291 /** 4292 * 4293 * 4294 * <pre> 4295 * Output only. [Output only] The additional pod ranges that are added to the 4296 * cluster. These pod ranges can be used by new node pools to allocate pod IPs 4297 * automatically. Once the range is removed it will not show up in 4298 * IPAllocationPolicy. 4299 * </pre> 4300 * 4301 * <code> 4302 * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4303 * </code> 4304 */ 4305 public com.google.container.v1.AdditionalPodRangesConfigOrBuilder getAdditionalPodRangesConfigOrBuilder()4306 getAdditionalPodRangesConfigOrBuilder() { 4307 if (additionalPodRangesConfigBuilder_ != null) { 4308 return additionalPodRangesConfigBuilder_.getMessageOrBuilder(); 4309 } else { 4310 return additionalPodRangesConfig_ == null 4311 ? com.google.container.v1.AdditionalPodRangesConfig.getDefaultInstance() 4312 : additionalPodRangesConfig_; 4313 } 4314 } 4315 /** 4316 * 4317 * 4318 * <pre> 4319 * Output only. [Output only] The additional pod ranges that are added to the 4320 * cluster. These pod ranges can be used by new node pools to allocate pod IPs 4321 * automatically. Once the range is removed it will not show up in 4322 * IPAllocationPolicy. 4323 * </pre> 4324 * 4325 * <code> 4326 * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4327 * </code> 4328 */ 4329 private com.google.protobuf.SingleFieldBuilderV3< 4330 com.google.container.v1.AdditionalPodRangesConfig, 4331 com.google.container.v1.AdditionalPodRangesConfig.Builder, 4332 com.google.container.v1.AdditionalPodRangesConfigOrBuilder> getAdditionalPodRangesConfigFieldBuilder()4333 getAdditionalPodRangesConfigFieldBuilder() { 4334 if (additionalPodRangesConfigBuilder_ == null) { 4335 additionalPodRangesConfigBuilder_ = 4336 new com.google.protobuf.SingleFieldBuilderV3< 4337 com.google.container.v1.AdditionalPodRangesConfig, 4338 com.google.container.v1.AdditionalPodRangesConfig.Builder, 4339 com.google.container.v1.AdditionalPodRangesConfigOrBuilder>( 4340 getAdditionalPodRangesConfig(), getParentForChildren(), isClean()); 4341 additionalPodRangesConfig_ = null; 4342 } 4343 return additionalPodRangesConfigBuilder_; 4344 } 4345 4346 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)4347 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 4348 return super.setUnknownFields(unknownFields); 4349 } 4350 4351 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)4352 public final Builder mergeUnknownFields( 4353 final com.google.protobuf.UnknownFieldSet unknownFields) { 4354 return super.mergeUnknownFields(unknownFields); 4355 } 4356 4357 // @@protoc_insertion_point(builder_scope:google.container.v1.IPAllocationPolicy) 4358 } 4359 4360 // @@protoc_insertion_point(class_scope:google.container.v1.IPAllocationPolicy) 4361 private static final com.google.container.v1.IPAllocationPolicy DEFAULT_INSTANCE; 4362 4363 static { 4364 DEFAULT_INSTANCE = new com.google.container.v1.IPAllocationPolicy(); 4365 } 4366 getDefaultInstance()4367 public static com.google.container.v1.IPAllocationPolicy getDefaultInstance() { 4368 return DEFAULT_INSTANCE; 4369 } 4370 4371 private static final com.google.protobuf.Parser<IPAllocationPolicy> PARSER = 4372 new com.google.protobuf.AbstractParser<IPAllocationPolicy>() { 4373 @java.lang.Override 4374 public IPAllocationPolicy parsePartialFrom( 4375 com.google.protobuf.CodedInputStream input, 4376 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4377 throws com.google.protobuf.InvalidProtocolBufferException { 4378 Builder builder = newBuilder(); 4379 try { 4380 builder.mergeFrom(input, extensionRegistry); 4381 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 4382 throw e.setUnfinishedMessage(builder.buildPartial()); 4383 } catch (com.google.protobuf.UninitializedMessageException e) { 4384 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 4385 } catch (java.io.IOException e) { 4386 throw new com.google.protobuf.InvalidProtocolBufferException(e) 4387 .setUnfinishedMessage(builder.buildPartial()); 4388 } 4389 return builder.buildPartial(); 4390 } 4391 }; 4392 parser()4393 public static com.google.protobuf.Parser<IPAllocationPolicy> parser() { 4394 return PARSER; 4395 } 4396 4397 @java.lang.Override getParserForType()4398 public com.google.protobuf.Parser<IPAllocationPolicy> getParserForType() { 4399 return PARSER; 4400 } 4401 4402 @java.lang.Override getDefaultInstanceForType()4403 public com.google.container.v1.IPAllocationPolicy getDefaultInstanceForType() { 4404 return DEFAULT_INSTANCE; 4405 } 4406 } 4407