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 * NodePool contains the name and configuration for a cluster's node pool. 26 * Node pools are a set of nodes (i.e. VM's), with a common configuration and 27 * specification, under the control of the cluster master. They may have a set 28 * of Kubernetes labels applied to them, which may be used to reference them 29 * during pod scheduling. They may also be resized up or down, to accommodate 30 * the workload. 31 * </pre> 32 * 33 * Protobuf type {@code google.container.v1.NodePool} 34 */ 35 public final class NodePool extends com.google.protobuf.GeneratedMessageV3 36 implements 37 // @@protoc_insertion_point(message_implements:google.container.v1.NodePool) 38 NodePoolOrBuilder { 39 private static final long serialVersionUID = 0L; 40 // Use NodePool.newBuilder() to construct. NodePool(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)41 private NodePool(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 42 super(builder); 43 } 44 NodePool()45 private NodePool() { 46 name_ = ""; 47 locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; 48 selfLink_ = ""; 49 version_ = ""; 50 instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; 51 status_ = 0; 52 statusMessage_ = ""; 53 conditions_ = java.util.Collections.emptyList(); 54 etag_ = ""; 55 } 56 57 @java.lang.Override 58 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)59 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 60 return new NodePool(); 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_NodePool_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_NodePool_fieldAccessorTable 78 .ensureFieldAccessorsInitialized( 79 com.google.container.v1.NodePool.class, com.google.container.v1.NodePool.Builder.class); 80 } 81 82 /** 83 * 84 * 85 * <pre> 86 * The current status of the node pool instance. 87 * </pre> 88 * 89 * Protobuf enum {@code google.container.v1.NodePool.Status} 90 */ 91 public enum Status implements com.google.protobuf.ProtocolMessageEnum { 92 /** 93 * 94 * 95 * <pre> 96 * Not set. 97 * </pre> 98 * 99 * <code>STATUS_UNSPECIFIED = 0;</code> 100 */ 101 STATUS_UNSPECIFIED(0), 102 /** 103 * 104 * 105 * <pre> 106 * The PROVISIONING state indicates the node pool is being created. 107 * </pre> 108 * 109 * <code>PROVISIONING = 1;</code> 110 */ 111 PROVISIONING(1), 112 /** 113 * 114 * 115 * <pre> 116 * The RUNNING state indicates the node pool has been created 117 * and is fully usable. 118 * </pre> 119 * 120 * <code>RUNNING = 2;</code> 121 */ 122 RUNNING(2), 123 /** 124 * 125 * 126 * <pre> 127 * The RUNNING_WITH_ERROR state indicates the node pool has been created 128 * and is partially usable. Some error state has occurred and some 129 * functionality may be impaired. Customer may need to reissue a request 130 * or trigger a new update. 131 * </pre> 132 * 133 * <code>RUNNING_WITH_ERROR = 3;</code> 134 */ 135 RUNNING_WITH_ERROR(3), 136 /** 137 * 138 * 139 * <pre> 140 * The RECONCILING state indicates that some work is actively being done on 141 * the node pool, such as upgrading node software. Details can 142 * be found in the `statusMessage` field. 143 * </pre> 144 * 145 * <code>RECONCILING = 4;</code> 146 */ 147 RECONCILING(4), 148 /** 149 * 150 * 151 * <pre> 152 * The STOPPING state indicates the node pool is being deleted. 153 * </pre> 154 * 155 * <code>STOPPING = 5;</code> 156 */ 157 STOPPING(5), 158 /** 159 * 160 * 161 * <pre> 162 * The ERROR state indicates the node pool may be unusable. Details 163 * can be found in the `statusMessage` field. 164 * </pre> 165 * 166 * <code>ERROR = 6;</code> 167 */ 168 ERROR(6), 169 UNRECOGNIZED(-1), 170 ; 171 172 /** 173 * 174 * 175 * <pre> 176 * Not set. 177 * </pre> 178 * 179 * <code>STATUS_UNSPECIFIED = 0;</code> 180 */ 181 public static final int STATUS_UNSPECIFIED_VALUE = 0; 182 /** 183 * 184 * 185 * <pre> 186 * The PROVISIONING state indicates the node pool is being created. 187 * </pre> 188 * 189 * <code>PROVISIONING = 1;</code> 190 */ 191 public static final int PROVISIONING_VALUE = 1; 192 /** 193 * 194 * 195 * <pre> 196 * The RUNNING state indicates the node pool has been created 197 * and is fully usable. 198 * </pre> 199 * 200 * <code>RUNNING = 2;</code> 201 */ 202 public static final int RUNNING_VALUE = 2; 203 /** 204 * 205 * 206 * <pre> 207 * The RUNNING_WITH_ERROR state indicates the node pool has been created 208 * and is partially usable. Some error state has occurred and some 209 * functionality may be impaired. Customer may need to reissue a request 210 * or trigger a new update. 211 * </pre> 212 * 213 * <code>RUNNING_WITH_ERROR = 3;</code> 214 */ 215 public static final int RUNNING_WITH_ERROR_VALUE = 3; 216 /** 217 * 218 * 219 * <pre> 220 * The RECONCILING state indicates that some work is actively being done on 221 * the node pool, such as upgrading node software. Details can 222 * be found in the `statusMessage` field. 223 * </pre> 224 * 225 * <code>RECONCILING = 4;</code> 226 */ 227 public static final int RECONCILING_VALUE = 4; 228 /** 229 * 230 * 231 * <pre> 232 * The STOPPING state indicates the node pool is being deleted. 233 * </pre> 234 * 235 * <code>STOPPING = 5;</code> 236 */ 237 public static final int STOPPING_VALUE = 5; 238 /** 239 * 240 * 241 * <pre> 242 * The ERROR state indicates the node pool may be unusable. Details 243 * can be found in the `statusMessage` field. 244 * </pre> 245 * 246 * <code>ERROR = 6;</code> 247 */ 248 public static final int ERROR_VALUE = 6; 249 getNumber()250 public final int getNumber() { 251 if (this == UNRECOGNIZED) { 252 throw new java.lang.IllegalArgumentException( 253 "Can't get the number of an unknown enum value."); 254 } 255 return value; 256 } 257 258 /** 259 * @param value The numeric wire value of the corresponding enum entry. 260 * @return The enum associated with the given numeric wire value. 261 * @deprecated Use {@link #forNumber(int)} instead. 262 */ 263 @java.lang.Deprecated valueOf(int value)264 public static Status valueOf(int value) { 265 return forNumber(value); 266 } 267 268 /** 269 * @param value The numeric wire value of the corresponding enum entry. 270 * @return The enum associated with the given numeric wire value. 271 */ forNumber(int value)272 public static Status forNumber(int value) { 273 switch (value) { 274 case 0: 275 return STATUS_UNSPECIFIED; 276 case 1: 277 return PROVISIONING; 278 case 2: 279 return RUNNING; 280 case 3: 281 return RUNNING_WITH_ERROR; 282 case 4: 283 return RECONCILING; 284 case 5: 285 return STOPPING; 286 case 6: 287 return ERROR; 288 default: 289 return null; 290 } 291 } 292 internalGetValueMap()293 public static com.google.protobuf.Internal.EnumLiteMap<Status> internalGetValueMap() { 294 return internalValueMap; 295 } 296 297 private static final com.google.protobuf.Internal.EnumLiteMap<Status> internalValueMap = 298 new com.google.protobuf.Internal.EnumLiteMap<Status>() { 299 public Status findValueByNumber(int number) { 300 return Status.forNumber(number); 301 } 302 }; 303 getValueDescriptor()304 public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 305 if (this == UNRECOGNIZED) { 306 throw new java.lang.IllegalStateException( 307 "Can't get the descriptor of an unrecognized enum value."); 308 } 309 return getDescriptor().getValues().get(ordinal()); 310 } 311 getDescriptorForType()312 public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { 313 return getDescriptor(); 314 } 315 getDescriptor()316 public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { 317 return com.google.container.v1.NodePool.getDescriptor().getEnumTypes().get(0); 318 } 319 320 private static final Status[] VALUES = values(); 321 valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)322 public static Status valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 323 if (desc.getType() != getDescriptor()) { 324 throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); 325 } 326 if (desc.getIndex() == -1) { 327 return UNRECOGNIZED; 328 } 329 return VALUES[desc.getIndex()]; 330 } 331 332 private final int value; 333 Status(int value)334 private Status(int value) { 335 this.value = value; 336 } 337 338 // @@protoc_insertion_point(enum_scope:google.container.v1.NodePool.Status) 339 } 340 341 public interface UpgradeSettingsOrBuilder 342 extends 343 // @@protoc_insertion_point(interface_extends:google.container.v1.NodePool.UpgradeSettings) 344 com.google.protobuf.MessageOrBuilder { 345 346 /** 347 * 348 * 349 * <pre> 350 * The maximum number of nodes that can be created beyond the current size 351 * of the node pool during the upgrade process. 352 * </pre> 353 * 354 * <code>int32 max_surge = 1;</code> 355 * 356 * @return The maxSurge. 357 */ getMaxSurge()358 int getMaxSurge(); 359 360 /** 361 * 362 * 363 * <pre> 364 * The maximum number of nodes that can be simultaneously unavailable during 365 * the upgrade process. A node is considered available if its status is 366 * Ready. 367 * </pre> 368 * 369 * <code>int32 max_unavailable = 2;</code> 370 * 371 * @return The maxUnavailable. 372 */ getMaxUnavailable()373 int getMaxUnavailable(); 374 375 /** 376 * 377 * 378 * <pre> 379 * Update strategy of the node pool. 380 * </pre> 381 * 382 * <code>optional .google.container.v1.NodePoolUpdateStrategy strategy = 3;</code> 383 * 384 * @return Whether the strategy field is set. 385 */ hasStrategy()386 boolean hasStrategy(); 387 /** 388 * 389 * 390 * <pre> 391 * Update strategy of the node pool. 392 * </pre> 393 * 394 * <code>optional .google.container.v1.NodePoolUpdateStrategy strategy = 3;</code> 395 * 396 * @return The enum numeric value on the wire for strategy. 397 */ getStrategyValue()398 int getStrategyValue(); 399 /** 400 * 401 * 402 * <pre> 403 * Update strategy of the node pool. 404 * </pre> 405 * 406 * <code>optional .google.container.v1.NodePoolUpdateStrategy strategy = 3;</code> 407 * 408 * @return The strategy. 409 */ getStrategy()410 com.google.container.v1.NodePoolUpdateStrategy getStrategy(); 411 412 /** 413 * 414 * 415 * <pre> 416 * Settings for blue-green upgrade strategy. 417 * </pre> 418 * 419 * <code>optional .google.container.v1.BlueGreenSettings blue_green_settings = 4;</code> 420 * 421 * @return Whether the blueGreenSettings field is set. 422 */ hasBlueGreenSettings()423 boolean hasBlueGreenSettings(); 424 /** 425 * 426 * 427 * <pre> 428 * Settings for blue-green upgrade strategy. 429 * </pre> 430 * 431 * <code>optional .google.container.v1.BlueGreenSettings blue_green_settings = 4;</code> 432 * 433 * @return The blueGreenSettings. 434 */ getBlueGreenSettings()435 com.google.container.v1.BlueGreenSettings getBlueGreenSettings(); 436 /** 437 * 438 * 439 * <pre> 440 * Settings for blue-green upgrade strategy. 441 * </pre> 442 * 443 * <code>optional .google.container.v1.BlueGreenSettings blue_green_settings = 4;</code> 444 */ getBlueGreenSettingsOrBuilder()445 com.google.container.v1.BlueGreenSettingsOrBuilder getBlueGreenSettingsOrBuilder(); 446 } 447 /** 448 * 449 * 450 * <pre> 451 * These upgrade settings control the level of parallelism and the level of 452 * disruption caused by an upgrade. 453 * maxUnavailable controls the number of nodes that can be simultaneously 454 * unavailable. 455 * maxSurge controls the number of additional nodes that can be added to the 456 * node pool temporarily for the time of the upgrade to increase the number of 457 * available nodes. 458 * (maxUnavailable + maxSurge) determines the level of parallelism (how many 459 * nodes are being upgraded at the same time). 460 * Note: upgrades inevitably introduce some disruption since workloads need to 461 * be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0, 462 * this holds true. (Disruption stays within the limits of 463 * PodDisruptionBudget, if it is configured.) 464 * Consider a hypothetical node pool with 5 nodes having maxSurge=2, 465 * maxUnavailable=1. This means the upgrade process upgrades 3 nodes 466 * simultaneously. It creates 2 additional (upgraded) nodes, then it brings 467 * down 3 old (not yet upgraded) nodes at the same time. This ensures that 468 * there are always at least 4 nodes available. 469 * These upgrade settings configure the upgrade strategy for the node pool. 470 * Use strategy to switch between the strategies applied to the node pool. 471 * If the strategy is ROLLING, use max_surge and max_unavailable to control 472 * the level of parallelism and the level of disruption caused by upgrade. 473 * 1. maxSurge controls the number of additional nodes that can be added to 474 * the node pool temporarily for the time of the upgrade to increase the 475 * number of available nodes. 476 * 2. maxUnavailable controls the number of nodes that can be simultaneously 477 * unavailable. 478 * 3. (maxUnavailable + maxSurge) determines the level of parallelism (how 479 * many nodes are being upgraded at the same time). 480 * If the strategy is BLUE_GREEN, use blue_green_settings to configure the 481 * blue-green upgrade related settings. 482 * 1. standard_rollout_policy is the default policy. The policy is used to 483 * control the way blue pool gets drained. The draining is executed in the 484 * batch mode. The batch size could be specified as either percentage of the 485 * node pool size or the number of nodes. batch_soak_duration is the soak 486 * time after each batch gets drained. 487 * 2. node_pool_soak_duration is the soak time after all blue nodes are 488 * drained. After this period, the blue pool nodes will be deleted. 489 * </pre> 490 * 491 * Protobuf type {@code google.container.v1.NodePool.UpgradeSettings} 492 */ 493 public static final class UpgradeSettings extends com.google.protobuf.GeneratedMessageV3 494 implements 495 // @@protoc_insertion_point(message_implements:google.container.v1.NodePool.UpgradeSettings) 496 UpgradeSettingsOrBuilder { 497 private static final long serialVersionUID = 0L; 498 // Use UpgradeSettings.newBuilder() to construct. UpgradeSettings(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)499 private UpgradeSettings(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 500 super(builder); 501 } 502 UpgradeSettings()503 private UpgradeSettings() { 504 strategy_ = 0; 505 } 506 507 @java.lang.Override 508 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)509 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 510 return new UpgradeSettings(); 511 } 512 513 @java.lang.Override getUnknownFields()514 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 515 return this.unknownFields; 516 } 517 getDescriptor()518 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 519 return com.google.container.v1.ClusterServiceProto 520 .internal_static_google_container_v1_NodePool_UpgradeSettings_descriptor; 521 } 522 523 @java.lang.Override 524 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()525 internalGetFieldAccessorTable() { 526 return com.google.container.v1.ClusterServiceProto 527 .internal_static_google_container_v1_NodePool_UpgradeSettings_fieldAccessorTable 528 .ensureFieldAccessorsInitialized( 529 com.google.container.v1.NodePool.UpgradeSettings.class, 530 com.google.container.v1.NodePool.UpgradeSettings.Builder.class); 531 } 532 533 private int bitField0_; 534 public static final int MAX_SURGE_FIELD_NUMBER = 1; 535 private int maxSurge_ = 0; 536 /** 537 * 538 * 539 * <pre> 540 * The maximum number of nodes that can be created beyond the current size 541 * of the node pool during the upgrade process. 542 * </pre> 543 * 544 * <code>int32 max_surge = 1;</code> 545 * 546 * @return The maxSurge. 547 */ 548 @java.lang.Override getMaxSurge()549 public int getMaxSurge() { 550 return maxSurge_; 551 } 552 553 public static final int MAX_UNAVAILABLE_FIELD_NUMBER = 2; 554 private int maxUnavailable_ = 0; 555 /** 556 * 557 * 558 * <pre> 559 * The maximum number of nodes that can be simultaneously unavailable during 560 * the upgrade process. A node is considered available if its status is 561 * Ready. 562 * </pre> 563 * 564 * <code>int32 max_unavailable = 2;</code> 565 * 566 * @return The maxUnavailable. 567 */ 568 @java.lang.Override getMaxUnavailable()569 public int getMaxUnavailable() { 570 return maxUnavailable_; 571 } 572 573 public static final int STRATEGY_FIELD_NUMBER = 3; 574 private int strategy_ = 0; 575 /** 576 * 577 * 578 * <pre> 579 * Update strategy of the node pool. 580 * </pre> 581 * 582 * <code>optional .google.container.v1.NodePoolUpdateStrategy strategy = 3;</code> 583 * 584 * @return Whether the strategy field is set. 585 */ 586 @java.lang.Override hasStrategy()587 public boolean hasStrategy() { 588 return ((bitField0_ & 0x00000001) != 0); 589 } 590 /** 591 * 592 * 593 * <pre> 594 * Update strategy of the node pool. 595 * </pre> 596 * 597 * <code>optional .google.container.v1.NodePoolUpdateStrategy strategy = 3;</code> 598 * 599 * @return The enum numeric value on the wire for strategy. 600 */ 601 @java.lang.Override getStrategyValue()602 public int getStrategyValue() { 603 return strategy_; 604 } 605 /** 606 * 607 * 608 * <pre> 609 * Update strategy of the node pool. 610 * </pre> 611 * 612 * <code>optional .google.container.v1.NodePoolUpdateStrategy strategy = 3;</code> 613 * 614 * @return The strategy. 615 */ 616 @java.lang.Override getStrategy()617 public com.google.container.v1.NodePoolUpdateStrategy getStrategy() { 618 com.google.container.v1.NodePoolUpdateStrategy result = 619 com.google.container.v1.NodePoolUpdateStrategy.forNumber(strategy_); 620 return result == null ? com.google.container.v1.NodePoolUpdateStrategy.UNRECOGNIZED : result; 621 } 622 623 public static final int BLUE_GREEN_SETTINGS_FIELD_NUMBER = 4; 624 private com.google.container.v1.BlueGreenSettings blueGreenSettings_; 625 /** 626 * 627 * 628 * <pre> 629 * Settings for blue-green upgrade strategy. 630 * </pre> 631 * 632 * <code>optional .google.container.v1.BlueGreenSettings blue_green_settings = 4;</code> 633 * 634 * @return Whether the blueGreenSettings field is set. 635 */ 636 @java.lang.Override hasBlueGreenSettings()637 public boolean hasBlueGreenSettings() { 638 return ((bitField0_ & 0x00000002) != 0); 639 } 640 /** 641 * 642 * 643 * <pre> 644 * Settings for blue-green upgrade strategy. 645 * </pre> 646 * 647 * <code>optional .google.container.v1.BlueGreenSettings blue_green_settings = 4;</code> 648 * 649 * @return The blueGreenSettings. 650 */ 651 @java.lang.Override getBlueGreenSettings()652 public com.google.container.v1.BlueGreenSettings getBlueGreenSettings() { 653 return blueGreenSettings_ == null 654 ? com.google.container.v1.BlueGreenSettings.getDefaultInstance() 655 : blueGreenSettings_; 656 } 657 /** 658 * 659 * 660 * <pre> 661 * Settings for blue-green upgrade strategy. 662 * </pre> 663 * 664 * <code>optional .google.container.v1.BlueGreenSettings blue_green_settings = 4;</code> 665 */ 666 @java.lang.Override getBlueGreenSettingsOrBuilder()667 public com.google.container.v1.BlueGreenSettingsOrBuilder getBlueGreenSettingsOrBuilder() { 668 return blueGreenSettings_ == null 669 ? com.google.container.v1.BlueGreenSettings.getDefaultInstance() 670 : blueGreenSettings_; 671 } 672 673 private byte memoizedIsInitialized = -1; 674 675 @java.lang.Override isInitialized()676 public final boolean isInitialized() { 677 byte isInitialized = memoizedIsInitialized; 678 if (isInitialized == 1) return true; 679 if (isInitialized == 0) return false; 680 681 memoizedIsInitialized = 1; 682 return true; 683 } 684 685 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)686 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 687 if (maxSurge_ != 0) { 688 output.writeInt32(1, maxSurge_); 689 } 690 if (maxUnavailable_ != 0) { 691 output.writeInt32(2, maxUnavailable_); 692 } 693 if (((bitField0_ & 0x00000001) != 0)) { 694 output.writeEnum(3, strategy_); 695 } 696 if (((bitField0_ & 0x00000002) != 0)) { 697 output.writeMessage(4, getBlueGreenSettings()); 698 } 699 getUnknownFields().writeTo(output); 700 } 701 702 @java.lang.Override getSerializedSize()703 public int getSerializedSize() { 704 int size = memoizedSize; 705 if (size != -1) return size; 706 707 size = 0; 708 if (maxSurge_ != 0) { 709 size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, maxSurge_); 710 } 711 if (maxUnavailable_ != 0) { 712 size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxUnavailable_); 713 } 714 if (((bitField0_ & 0x00000001) != 0)) { 715 size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, strategy_); 716 } 717 if (((bitField0_ & 0x00000002) != 0)) { 718 size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getBlueGreenSettings()); 719 } 720 size += getUnknownFields().getSerializedSize(); 721 memoizedSize = size; 722 return size; 723 } 724 725 @java.lang.Override equals(final java.lang.Object obj)726 public boolean equals(final java.lang.Object obj) { 727 if (obj == this) { 728 return true; 729 } 730 if (!(obj instanceof com.google.container.v1.NodePool.UpgradeSettings)) { 731 return super.equals(obj); 732 } 733 com.google.container.v1.NodePool.UpgradeSettings other = 734 (com.google.container.v1.NodePool.UpgradeSettings) obj; 735 736 if (getMaxSurge() != other.getMaxSurge()) return false; 737 if (getMaxUnavailable() != other.getMaxUnavailable()) return false; 738 if (hasStrategy() != other.hasStrategy()) return false; 739 if (hasStrategy()) { 740 if (strategy_ != other.strategy_) return false; 741 } 742 if (hasBlueGreenSettings() != other.hasBlueGreenSettings()) return false; 743 if (hasBlueGreenSettings()) { 744 if (!getBlueGreenSettings().equals(other.getBlueGreenSettings())) return false; 745 } 746 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 747 return true; 748 } 749 750 @java.lang.Override hashCode()751 public int hashCode() { 752 if (memoizedHashCode != 0) { 753 return memoizedHashCode; 754 } 755 int hash = 41; 756 hash = (19 * hash) + getDescriptor().hashCode(); 757 hash = (37 * hash) + MAX_SURGE_FIELD_NUMBER; 758 hash = (53 * hash) + getMaxSurge(); 759 hash = (37 * hash) + MAX_UNAVAILABLE_FIELD_NUMBER; 760 hash = (53 * hash) + getMaxUnavailable(); 761 if (hasStrategy()) { 762 hash = (37 * hash) + STRATEGY_FIELD_NUMBER; 763 hash = (53 * hash) + strategy_; 764 } 765 if (hasBlueGreenSettings()) { 766 hash = (37 * hash) + BLUE_GREEN_SETTINGS_FIELD_NUMBER; 767 hash = (53 * hash) + getBlueGreenSettings().hashCode(); 768 } 769 hash = (29 * hash) + getUnknownFields().hashCode(); 770 memoizedHashCode = hash; 771 return hash; 772 } 773 parseFrom( java.nio.ByteBuffer data)774 public static com.google.container.v1.NodePool.UpgradeSettings parseFrom( 775 java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { 776 return PARSER.parseFrom(data); 777 } 778 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)779 public static com.google.container.v1.NodePool.UpgradeSettings parseFrom( 780 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 781 throws com.google.protobuf.InvalidProtocolBufferException { 782 return PARSER.parseFrom(data, extensionRegistry); 783 } 784 parseFrom( com.google.protobuf.ByteString data)785 public static com.google.container.v1.NodePool.UpgradeSettings parseFrom( 786 com.google.protobuf.ByteString data) 787 throws com.google.protobuf.InvalidProtocolBufferException { 788 return PARSER.parseFrom(data); 789 } 790 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)791 public static com.google.container.v1.NodePool.UpgradeSettings parseFrom( 792 com.google.protobuf.ByteString data, 793 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 794 throws com.google.protobuf.InvalidProtocolBufferException { 795 return PARSER.parseFrom(data, extensionRegistry); 796 } 797 parseFrom(byte[] data)798 public static com.google.container.v1.NodePool.UpgradeSettings parseFrom(byte[] data) 799 throws com.google.protobuf.InvalidProtocolBufferException { 800 return PARSER.parseFrom(data); 801 } 802 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)803 public static com.google.container.v1.NodePool.UpgradeSettings parseFrom( 804 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 805 throws com.google.protobuf.InvalidProtocolBufferException { 806 return PARSER.parseFrom(data, extensionRegistry); 807 } 808 parseFrom( java.io.InputStream input)809 public static com.google.container.v1.NodePool.UpgradeSettings parseFrom( 810 java.io.InputStream input) throws java.io.IOException { 811 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 812 } 813 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)814 public static com.google.container.v1.NodePool.UpgradeSettings parseFrom( 815 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 816 throws java.io.IOException { 817 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 818 PARSER, input, extensionRegistry); 819 } 820 parseDelimitedFrom( java.io.InputStream input)821 public static com.google.container.v1.NodePool.UpgradeSettings parseDelimitedFrom( 822 java.io.InputStream input) throws java.io.IOException { 823 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 824 } 825 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)826 public static com.google.container.v1.NodePool.UpgradeSettings parseDelimitedFrom( 827 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 828 throws java.io.IOException { 829 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 830 PARSER, input, extensionRegistry); 831 } 832 parseFrom( com.google.protobuf.CodedInputStream input)833 public static com.google.container.v1.NodePool.UpgradeSettings parseFrom( 834 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 835 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 836 } 837 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)838 public static com.google.container.v1.NodePool.UpgradeSettings parseFrom( 839 com.google.protobuf.CodedInputStream input, 840 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 841 throws java.io.IOException { 842 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 843 PARSER, input, extensionRegistry); 844 } 845 846 @java.lang.Override newBuilderForType()847 public Builder newBuilderForType() { 848 return newBuilder(); 849 } 850 newBuilder()851 public static Builder newBuilder() { 852 return DEFAULT_INSTANCE.toBuilder(); 853 } 854 newBuilder(com.google.container.v1.NodePool.UpgradeSettings prototype)855 public static Builder newBuilder(com.google.container.v1.NodePool.UpgradeSettings prototype) { 856 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 857 } 858 859 @java.lang.Override toBuilder()860 public Builder toBuilder() { 861 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 862 } 863 864 @java.lang.Override newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)865 protected Builder newBuilderForType( 866 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 867 Builder builder = new Builder(parent); 868 return builder; 869 } 870 /** 871 * 872 * 873 * <pre> 874 * These upgrade settings control the level of parallelism and the level of 875 * disruption caused by an upgrade. 876 * maxUnavailable controls the number of nodes that can be simultaneously 877 * unavailable. 878 * maxSurge controls the number of additional nodes that can be added to the 879 * node pool temporarily for the time of the upgrade to increase the number of 880 * available nodes. 881 * (maxUnavailable + maxSurge) determines the level of parallelism (how many 882 * nodes are being upgraded at the same time). 883 * Note: upgrades inevitably introduce some disruption since workloads need to 884 * be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0, 885 * this holds true. (Disruption stays within the limits of 886 * PodDisruptionBudget, if it is configured.) 887 * Consider a hypothetical node pool with 5 nodes having maxSurge=2, 888 * maxUnavailable=1. This means the upgrade process upgrades 3 nodes 889 * simultaneously. It creates 2 additional (upgraded) nodes, then it brings 890 * down 3 old (not yet upgraded) nodes at the same time. This ensures that 891 * there are always at least 4 nodes available. 892 * These upgrade settings configure the upgrade strategy for the node pool. 893 * Use strategy to switch between the strategies applied to the node pool. 894 * If the strategy is ROLLING, use max_surge and max_unavailable to control 895 * the level of parallelism and the level of disruption caused by upgrade. 896 * 1. maxSurge controls the number of additional nodes that can be added to 897 * the node pool temporarily for the time of the upgrade to increase the 898 * number of available nodes. 899 * 2. maxUnavailable controls the number of nodes that can be simultaneously 900 * unavailable. 901 * 3. (maxUnavailable + maxSurge) determines the level of parallelism (how 902 * many nodes are being upgraded at the same time). 903 * If the strategy is BLUE_GREEN, use blue_green_settings to configure the 904 * blue-green upgrade related settings. 905 * 1. standard_rollout_policy is the default policy. The policy is used to 906 * control the way blue pool gets drained. The draining is executed in the 907 * batch mode. The batch size could be specified as either percentage of the 908 * node pool size or the number of nodes. batch_soak_duration is the soak 909 * time after each batch gets drained. 910 * 2. node_pool_soak_duration is the soak time after all blue nodes are 911 * drained. After this period, the blue pool nodes will be deleted. 912 * </pre> 913 * 914 * Protobuf type {@code google.container.v1.NodePool.UpgradeSettings} 915 */ 916 public static final class Builder 917 extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 918 implements 919 // @@protoc_insertion_point(builder_implements:google.container.v1.NodePool.UpgradeSettings) 920 com.google.container.v1.NodePool.UpgradeSettingsOrBuilder { getDescriptor()921 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 922 return com.google.container.v1.ClusterServiceProto 923 .internal_static_google_container_v1_NodePool_UpgradeSettings_descriptor; 924 } 925 926 @java.lang.Override 927 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()928 internalGetFieldAccessorTable() { 929 return com.google.container.v1.ClusterServiceProto 930 .internal_static_google_container_v1_NodePool_UpgradeSettings_fieldAccessorTable 931 .ensureFieldAccessorsInitialized( 932 com.google.container.v1.NodePool.UpgradeSettings.class, 933 com.google.container.v1.NodePool.UpgradeSettings.Builder.class); 934 } 935 936 // Construct using com.google.container.v1.NodePool.UpgradeSettings.newBuilder() Builder()937 private Builder() { 938 maybeForceBuilderInitialization(); 939 } 940 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)941 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 942 super(parent); 943 maybeForceBuilderInitialization(); 944 } 945 maybeForceBuilderInitialization()946 private void maybeForceBuilderInitialization() { 947 if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { 948 getBlueGreenSettingsFieldBuilder(); 949 } 950 } 951 952 @java.lang.Override clear()953 public Builder clear() { 954 super.clear(); 955 bitField0_ = 0; 956 maxSurge_ = 0; 957 maxUnavailable_ = 0; 958 strategy_ = 0; 959 blueGreenSettings_ = null; 960 if (blueGreenSettingsBuilder_ != null) { 961 blueGreenSettingsBuilder_.dispose(); 962 blueGreenSettingsBuilder_ = null; 963 } 964 return this; 965 } 966 967 @java.lang.Override getDescriptorForType()968 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 969 return com.google.container.v1.ClusterServiceProto 970 .internal_static_google_container_v1_NodePool_UpgradeSettings_descriptor; 971 } 972 973 @java.lang.Override getDefaultInstanceForType()974 public com.google.container.v1.NodePool.UpgradeSettings getDefaultInstanceForType() { 975 return com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance(); 976 } 977 978 @java.lang.Override build()979 public com.google.container.v1.NodePool.UpgradeSettings build() { 980 com.google.container.v1.NodePool.UpgradeSettings result = buildPartial(); 981 if (!result.isInitialized()) { 982 throw newUninitializedMessageException(result); 983 } 984 return result; 985 } 986 987 @java.lang.Override buildPartial()988 public com.google.container.v1.NodePool.UpgradeSettings buildPartial() { 989 com.google.container.v1.NodePool.UpgradeSettings result = 990 new com.google.container.v1.NodePool.UpgradeSettings(this); 991 if (bitField0_ != 0) { 992 buildPartial0(result); 993 } 994 onBuilt(); 995 return result; 996 } 997 buildPartial0(com.google.container.v1.NodePool.UpgradeSettings result)998 private void buildPartial0(com.google.container.v1.NodePool.UpgradeSettings result) { 999 int from_bitField0_ = bitField0_; 1000 if (((from_bitField0_ & 0x00000001) != 0)) { 1001 result.maxSurge_ = maxSurge_; 1002 } 1003 if (((from_bitField0_ & 0x00000002) != 0)) { 1004 result.maxUnavailable_ = maxUnavailable_; 1005 } 1006 int to_bitField0_ = 0; 1007 if (((from_bitField0_ & 0x00000004) != 0)) { 1008 result.strategy_ = strategy_; 1009 to_bitField0_ |= 0x00000001; 1010 } 1011 if (((from_bitField0_ & 0x00000008) != 0)) { 1012 result.blueGreenSettings_ = 1013 blueGreenSettingsBuilder_ == null 1014 ? blueGreenSettings_ 1015 : blueGreenSettingsBuilder_.build(); 1016 to_bitField0_ |= 0x00000002; 1017 } 1018 result.bitField0_ |= to_bitField0_; 1019 } 1020 1021 @java.lang.Override clone()1022 public Builder clone() { 1023 return super.clone(); 1024 } 1025 1026 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1027 public Builder setField( 1028 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1029 return super.setField(field, value); 1030 } 1031 1032 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1033 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 1034 return super.clearField(field); 1035 } 1036 1037 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1038 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 1039 return super.clearOneof(oneof); 1040 } 1041 1042 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1043 public Builder setRepeatedField( 1044 com.google.protobuf.Descriptors.FieldDescriptor field, 1045 int index, 1046 java.lang.Object value) { 1047 return super.setRepeatedField(field, index, value); 1048 } 1049 1050 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1051 public Builder addRepeatedField( 1052 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1053 return super.addRepeatedField(field, value); 1054 } 1055 1056 @java.lang.Override mergeFrom(com.google.protobuf.Message other)1057 public Builder mergeFrom(com.google.protobuf.Message other) { 1058 if (other instanceof com.google.container.v1.NodePool.UpgradeSettings) { 1059 return mergeFrom((com.google.container.v1.NodePool.UpgradeSettings) other); 1060 } else { 1061 super.mergeFrom(other); 1062 return this; 1063 } 1064 } 1065 mergeFrom(com.google.container.v1.NodePool.UpgradeSettings other)1066 public Builder mergeFrom(com.google.container.v1.NodePool.UpgradeSettings other) { 1067 if (other == com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance()) 1068 return this; 1069 if (other.getMaxSurge() != 0) { 1070 setMaxSurge(other.getMaxSurge()); 1071 } 1072 if (other.getMaxUnavailable() != 0) { 1073 setMaxUnavailable(other.getMaxUnavailable()); 1074 } 1075 if (other.hasStrategy()) { 1076 setStrategy(other.getStrategy()); 1077 } 1078 if (other.hasBlueGreenSettings()) { 1079 mergeBlueGreenSettings(other.getBlueGreenSettings()); 1080 } 1081 this.mergeUnknownFields(other.getUnknownFields()); 1082 onChanged(); 1083 return this; 1084 } 1085 1086 @java.lang.Override isInitialized()1087 public final boolean isInitialized() { 1088 return true; 1089 } 1090 1091 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1092 public Builder mergeFrom( 1093 com.google.protobuf.CodedInputStream input, 1094 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1095 throws java.io.IOException { 1096 if (extensionRegistry == null) { 1097 throw new java.lang.NullPointerException(); 1098 } 1099 try { 1100 boolean done = false; 1101 while (!done) { 1102 int tag = input.readTag(); 1103 switch (tag) { 1104 case 0: 1105 done = true; 1106 break; 1107 case 8: 1108 { 1109 maxSurge_ = input.readInt32(); 1110 bitField0_ |= 0x00000001; 1111 break; 1112 } // case 8 1113 case 16: 1114 { 1115 maxUnavailable_ = input.readInt32(); 1116 bitField0_ |= 0x00000002; 1117 break; 1118 } // case 16 1119 case 24: 1120 { 1121 strategy_ = input.readEnum(); 1122 bitField0_ |= 0x00000004; 1123 break; 1124 } // case 24 1125 case 34: 1126 { 1127 input.readMessage( 1128 getBlueGreenSettingsFieldBuilder().getBuilder(), extensionRegistry); 1129 bitField0_ |= 0x00000008; 1130 break; 1131 } // case 34 1132 default: 1133 { 1134 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 1135 done = true; // was an endgroup tag 1136 } 1137 break; 1138 } // default: 1139 } // switch (tag) 1140 } // while (!done) 1141 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1142 throw e.unwrapIOException(); 1143 } finally { 1144 onChanged(); 1145 } // finally 1146 return this; 1147 } 1148 1149 private int bitField0_; 1150 1151 private int maxSurge_; 1152 /** 1153 * 1154 * 1155 * <pre> 1156 * The maximum number of nodes that can be created beyond the current size 1157 * of the node pool during the upgrade process. 1158 * </pre> 1159 * 1160 * <code>int32 max_surge = 1;</code> 1161 * 1162 * @return The maxSurge. 1163 */ 1164 @java.lang.Override getMaxSurge()1165 public int getMaxSurge() { 1166 return maxSurge_; 1167 } 1168 /** 1169 * 1170 * 1171 * <pre> 1172 * The maximum number of nodes that can be created beyond the current size 1173 * of the node pool during the upgrade process. 1174 * </pre> 1175 * 1176 * <code>int32 max_surge = 1;</code> 1177 * 1178 * @param value The maxSurge to set. 1179 * @return This builder for chaining. 1180 */ setMaxSurge(int value)1181 public Builder setMaxSurge(int value) { 1182 1183 maxSurge_ = value; 1184 bitField0_ |= 0x00000001; 1185 onChanged(); 1186 return this; 1187 } 1188 /** 1189 * 1190 * 1191 * <pre> 1192 * The maximum number of nodes that can be created beyond the current size 1193 * of the node pool during the upgrade process. 1194 * </pre> 1195 * 1196 * <code>int32 max_surge = 1;</code> 1197 * 1198 * @return This builder for chaining. 1199 */ clearMaxSurge()1200 public Builder clearMaxSurge() { 1201 bitField0_ = (bitField0_ & ~0x00000001); 1202 maxSurge_ = 0; 1203 onChanged(); 1204 return this; 1205 } 1206 1207 private int maxUnavailable_; 1208 /** 1209 * 1210 * 1211 * <pre> 1212 * The maximum number of nodes that can be simultaneously unavailable during 1213 * the upgrade process. A node is considered available if its status is 1214 * Ready. 1215 * </pre> 1216 * 1217 * <code>int32 max_unavailable = 2;</code> 1218 * 1219 * @return The maxUnavailable. 1220 */ 1221 @java.lang.Override getMaxUnavailable()1222 public int getMaxUnavailable() { 1223 return maxUnavailable_; 1224 } 1225 /** 1226 * 1227 * 1228 * <pre> 1229 * The maximum number of nodes that can be simultaneously unavailable during 1230 * the upgrade process. A node is considered available if its status is 1231 * Ready. 1232 * </pre> 1233 * 1234 * <code>int32 max_unavailable = 2;</code> 1235 * 1236 * @param value The maxUnavailable to set. 1237 * @return This builder for chaining. 1238 */ setMaxUnavailable(int value)1239 public Builder setMaxUnavailable(int value) { 1240 1241 maxUnavailable_ = value; 1242 bitField0_ |= 0x00000002; 1243 onChanged(); 1244 return this; 1245 } 1246 /** 1247 * 1248 * 1249 * <pre> 1250 * The maximum number of nodes that can be simultaneously unavailable during 1251 * the upgrade process. A node is considered available if its status is 1252 * Ready. 1253 * </pre> 1254 * 1255 * <code>int32 max_unavailable = 2;</code> 1256 * 1257 * @return This builder for chaining. 1258 */ clearMaxUnavailable()1259 public Builder clearMaxUnavailable() { 1260 bitField0_ = (bitField0_ & ~0x00000002); 1261 maxUnavailable_ = 0; 1262 onChanged(); 1263 return this; 1264 } 1265 1266 private int strategy_ = 0; 1267 /** 1268 * 1269 * 1270 * <pre> 1271 * Update strategy of the node pool. 1272 * </pre> 1273 * 1274 * <code>optional .google.container.v1.NodePoolUpdateStrategy strategy = 3;</code> 1275 * 1276 * @return Whether the strategy field is set. 1277 */ 1278 @java.lang.Override hasStrategy()1279 public boolean hasStrategy() { 1280 return ((bitField0_ & 0x00000004) != 0); 1281 } 1282 /** 1283 * 1284 * 1285 * <pre> 1286 * Update strategy of the node pool. 1287 * </pre> 1288 * 1289 * <code>optional .google.container.v1.NodePoolUpdateStrategy strategy = 3;</code> 1290 * 1291 * @return The enum numeric value on the wire for strategy. 1292 */ 1293 @java.lang.Override getStrategyValue()1294 public int getStrategyValue() { 1295 return strategy_; 1296 } 1297 /** 1298 * 1299 * 1300 * <pre> 1301 * Update strategy of the node pool. 1302 * </pre> 1303 * 1304 * <code>optional .google.container.v1.NodePoolUpdateStrategy strategy = 3;</code> 1305 * 1306 * @param value The enum numeric value on the wire for strategy to set. 1307 * @return This builder for chaining. 1308 */ setStrategyValue(int value)1309 public Builder setStrategyValue(int value) { 1310 strategy_ = value; 1311 bitField0_ |= 0x00000004; 1312 onChanged(); 1313 return this; 1314 } 1315 /** 1316 * 1317 * 1318 * <pre> 1319 * Update strategy of the node pool. 1320 * </pre> 1321 * 1322 * <code>optional .google.container.v1.NodePoolUpdateStrategy strategy = 3;</code> 1323 * 1324 * @return The strategy. 1325 */ 1326 @java.lang.Override getStrategy()1327 public com.google.container.v1.NodePoolUpdateStrategy getStrategy() { 1328 com.google.container.v1.NodePoolUpdateStrategy result = 1329 com.google.container.v1.NodePoolUpdateStrategy.forNumber(strategy_); 1330 return result == null 1331 ? com.google.container.v1.NodePoolUpdateStrategy.UNRECOGNIZED 1332 : result; 1333 } 1334 /** 1335 * 1336 * 1337 * <pre> 1338 * Update strategy of the node pool. 1339 * </pre> 1340 * 1341 * <code>optional .google.container.v1.NodePoolUpdateStrategy strategy = 3;</code> 1342 * 1343 * @param value The strategy to set. 1344 * @return This builder for chaining. 1345 */ setStrategy(com.google.container.v1.NodePoolUpdateStrategy value)1346 public Builder setStrategy(com.google.container.v1.NodePoolUpdateStrategy value) { 1347 if (value == null) { 1348 throw new NullPointerException(); 1349 } 1350 bitField0_ |= 0x00000004; 1351 strategy_ = value.getNumber(); 1352 onChanged(); 1353 return this; 1354 } 1355 /** 1356 * 1357 * 1358 * <pre> 1359 * Update strategy of the node pool. 1360 * </pre> 1361 * 1362 * <code>optional .google.container.v1.NodePoolUpdateStrategy strategy = 3;</code> 1363 * 1364 * @return This builder for chaining. 1365 */ clearStrategy()1366 public Builder clearStrategy() { 1367 bitField0_ = (bitField0_ & ~0x00000004); 1368 strategy_ = 0; 1369 onChanged(); 1370 return this; 1371 } 1372 1373 private com.google.container.v1.BlueGreenSettings blueGreenSettings_; 1374 private com.google.protobuf.SingleFieldBuilderV3< 1375 com.google.container.v1.BlueGreenSettings, 1376 com.google.container.v1.BlueGreenSettings.Builder, 1377 com.google.container.v1.BlueGreenSettingsOrBuilder> 1378 blueGreenSettingsBuilder_; 1379 /** 1380 * 1381 * 1382 * <pre> 1383 * Settings for blue-green upgrade strategy. 1384 * </pre> 1385 * 1386 * <code>optional .google.container.v1.BlueGreenSettings blue_green_settings = 4;</code> 1387 * 1388 * @return Whether the blueGreenSettings field is set. 1389 */ hasBlueGreenSettings()1390 public boolean hasBlueGreenSettings() { 1391 return ((bitField0_ & 0x00000008) != 0); 1392 } 1393 /** 1394 * 1395 * 1396 * <pre> 1397 * Settings for blue-green upgrade strategy. 1398 * </pre> 1399 * 1400 * <code>optional .google.container.v1.BlueGreenSettings blue_green_settings = 4;</code> 1401 * 1402 * @return The blueGreenSettings. 1403 */ getBlueGreenSettings()1404 public com.google.container.v1.BlueGreenSettings getBlueGreenSettings() { 1405 if (blueGreenSettingsBuilder_ == null) { 1406 return blueGreenSettings_ == null 1407 ? com.google.container.v1.BlueGreenSettings.getDefaultInstance() 1408 : blueGreenSettings_; 1409 } else { 1410 return blueGreenSettingsBuilder_.getMessage(); 1411 } 1412 } 1413 /** 1414 * 1415 * 1416 * <pre> 1417 * Settings for blue-green upgrade strategy. 1418 * </pre> 1419 * 1420 * <code>optional .google.container.v1.BlueGreenSettings blue_green_settings = 4;</code> 1421 */ setBlueGreenSettings(com.google.container.v1.BlueGreenSettings value)1422 public Builder setBlueGreenSettings(com.google.container.v1.BlueGreenSettings value) { 1423 if (blueGreenSettingsBuilder_ == null) { 1424 if (value == null) { 1425 throw new NullPointerException(); 1426 } 1427 blueGreenSettings_ = value; 1428 } else { 1429 blueGreenSettingsBuilder_.setMessage(value); 1430 } 1431 bitField0_ |= 0x00000008; 1432 onChanged(); 1433 return this; 1434 } 1435 /** 1436 * 1437 * 1438 * <pre> 1439 * Settings for blue-green upgrade strategy. 1440 * </pre> 1441 * 1442 * <code>optional .google.container.v1.BlueGreenSettings blue_green_settings = 4;</code> 1443 */ setBlueGreenSettings( com.google.container.v1.BlueGreenSettings.Builder builderForValue)1444 public Builder setBlueGreenSettings( 1445 com.google.container.v1.BlueGreenSettings.Builder builderForValue) { 1446 if (blueGreenSettingsBuilder_ == null) { 1447 blueGreenSettings_ = builderForValue.build(); 1448 } else { 1449 blueGreenSettingsBuilder_.setMessage(builderForValue.build()); 1450 } 1451 bitField0_ |= 0x00000008; 1452 onChanged(); 1453 return this; 1454 } 1455 /** 1456 * 1457 * 1458 * <pre> 1459 * Settings for blue-green upgrade strategy. 1460 * </pre> 1461 * 1462 * <code>optional .google.container.v1.BlueGreenSettings blue_green_settings = 4;</code> 1463 */ mergeBlueGreenSettings(com.google.container.v1.BlueGreenSettings value)1464 public Builder mergeBlueGreenSettings(com.google.container.v1.BlueGreenSettings value) { 1465 if (blueGreenSettingsBuilder_ == null) { 1466 if (((bitField0_ & 0x00000008) != 0) 1467 && blueGreenSettings_ != null 1468 && blueGreenSettings_ 1469 != com.google.container.v1.BlueGreenSettings.getDefaultInstance()) { 1470 getBlueGreenSettingsBuilder().mergeFrom(value); 1471 } else { 1472 blueGreenSettings_ = value; 1473 } 1474 } else { 1475 blueGreenSettingsBuilder_.mergeFrom(value); 1476 } 1477 bitField0_ |= 0x00000008; 1478 onChanged(); 1479 return this; 1480 } 1481 /** 1482 * 1483 * 1484 * <pre> 1485 * Settings for blue-green upgrade strategy. 1486 * </pre> 1487 * 1488 * <code>optional .google.container.v1.BlueGreenSettings blue_green_settings = 4;</code> 1489 */ clearBlueGreenSettings()1490 public Builder clearBlueGreenSettings() { 1491 bitField0_ = (bitField0_ & ~0x00000008); 1492 blueGreenSettings_ = null; 1493 if (blueGreenSettingsBuilder_ != null) { 1494 blueGreenSettingsBuilder_.dispose(); 1495 blueGreenSettingsBuilder_ = null; 1496 } 1497 onChanged(); 1498 return this; 1499 } 1500 /** 1501 * 1502 * 1503 * <pre> 1504 * Settings for blue-green upgrade strategy. 1505 * </pre> 1506 * 1507 * <code>optional .google.container.v1.BlueGreenSettings blue_green_settings = 4;</code> 1508 */ getBlueGreenSettingsBuilder()1509 public com.google.container.v1.BlueGreenSettings.Builder getBlueGreenSettingsBuilder() { 1510 bitField0_ |= 0x00000008; 1511 onChanged(); 1512 return getBlueGreenSettingsFieldBuilder().getBuilder(); 1513 } 1514 /** 1515 * 1516 * 1517 * <pre> 1518 * Settings for blue-green upgrade strategy. 1519 * </pre> 1520 * 1521 * <code>optional .google.container.v1.BlueGreenSettings blue_green_settings = 4;</code> 1522 */ getBlueGreenSettingsOrBuilder()1523 public com.google.container.v1.BlueGreenSettingsOrBuilder getBlueGreenSettingsOrBuilder() { 1524 if (blueGreenSettingsBuilder_ != null) { 1525 return blueGreenSettingsBuilder_.getMessageOrBuilder(); 1526 } else { 1527 return blueGreenSettings_ == null 1528 ? com.google.container.v1.BlueGreenSettings.getDefaultInstance() 1529 : blueGreenSettings_; 1530 } 1531 } 1532 /** 1533 * 1534 * 1535 * <pre> 1536 * Settings for blue-green upgrade strategy. 1537 * </pre> 1538 * 1539 * <code>optional .google.container.v1.BlueGreenSettings blue_green_settings = 4;</code> 1540 */ 1541 private com.google.protobuf.SingleFieldBuilderV3< 1542 com.google.container.v1.BlueGreenSettings, 1543 com.google.container.v1.BlueGreenSettings.Builder, 1544 com.google.container.v1.BlueGreenSettingsOrBuilder> getBlueGreenSettingsFieldBuilder()1545 getBlueGreenSettingsFieldBuilder() { 1546 if (blueGreenSettingsBuilder_ == null) { 1547 blueGreenSettingsBuilder_ = 1548 new com.google.protobuf.SingleFieldBuilderV3< 1549 com.google.container.v1.BlueGreenSettings, 1550 com.google.container.v1.BlueGreenSettings.Builder, 1551 com.google.container.v1.BlueGreenSettingsOrBuilder>( 1552 getBlueGreenSettings(), getParentForChildren(), isClean()); 1553 blueGreenSettings_ = null; 1554 } 1555 return blueGreenSettingsBuilder_; 1556 } 1557 1558 @java.lang.Override setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1559 public final Builder setUnknownFields( 1560 final com.google.protobuf.UnknownFieldSet unknownFields) { 1561 return super.setUnknownFields(unknownFields); 1562 } 1563 1564 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1565 public final Builder mergeUnknownFields( 1566 final com.google.protobuf.UnknownFieldSet unknownFields) { 1567 return super.mergeUnknownFields(unknownFields); 1568 } 1569 1570 // @@protoc_insertion_point(builder_scope:google.container.v1.NodePool.UpgradeSettings) 1571 } 1572 1573 // @@protoc_insertion_point(class_scope:google.container.v1.NodePool.UpgradeSettings) 1574 private static final com.google.container.v1.NodePool.UpgradeSettings DEFAULT_INSTANCE; 1575 1576 static { 1577 DEFAULT_INSTANCE = new com.google.container.v1.NodePool.UpgradeSettings(); 1578 } 1579 getDefaultInstance()1580 public static com.google.container.v1.NodePool.UpgradeSettings getDefaultInstance() { 1581 return DEFAULT_INSTANCE; 1582 } 1583 1584 private static final com.google.protobuf.Parser<UpgradeSettings> PARSER = 1585 new com.google.protobuf.AbstractParser<UpgradeSettings>() { 1586 @java.lang.Override 1587 public UpgradeSettings parsePartialFrom( 1588 com.google.protobuf.CodedInputStream input, 1589 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1590 throws com.google.protobuf.InvalidProtocolBufferException { 1591 Builder builder = newBuilder(); 1592 try { 1593 builder.mergeFrom(input, extensionRegistry); 1594 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1595 throw e.setUnfinishedMessage(builder.buildPartial()); 1596 } catch (com.google.protobuf.UninitializedMessageException e) { 1597 throw e.asInvalidProtocolBufferException() 1598 .setUnfinishedMessage(builder.buildPartial()); 1599 } catch (java.io.IOException e) { 1600 throw new com.google.protobuf.InvalidProtocolBufferException(e) 1601 .setUnfinishedMessage(builder.buildPartial()); 1602 } 1603 return builder.buildPartial(); 1604 } 1605 }; 1606 parser()1607 public static com.google.protobuf.Parser<UpgradeSettings> parser() { 1608 return PARSER; 1609 } 1610 1611 @java.lang.Override getParserForType()1612 public com.google.protobuf.Parser<UpgradeSettings> getParserForType() { 1613 return PARSER; 1614 } 1615 1616 @java.lang.Override getDefaultInstanceForType()1617 public com.google.container.v1.NodePool.UpgradeSettings getDefaultInstanceForType() { 1618 return DEFAULT_INSTANCE; 1619 } 1620 } 1621 1622 public interface UpdateInfoOrBuilder 1623 extends 1624 // @@protoc_insertion_point(interface_extends:google.container.v1.NodePool.UpdateInfo) 1625 com.google.protobuf.MessageOrBuilder { 1626 1627 /** 1628 * 1629 * 1630 * <pre> 1631 * Information of a blue-green upgrade. 1632 * </pre> 1633 * 1634 * <code>.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1;</code> 1635 * 1636 * @return Whether the blueGreenInfo field is set. 1637 */ hasBlueGreenInfo()1638 boolean hasBlueGreenInfo(); 1639 /** 1640 * 1641 * 1642 * <pre> 1643 * Information of a blue-green upgrade. 1644 * </pre> 1645 * 1646 * <code>.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1;</code> 1647 * 1648 * @return The blueGreenInfo. 1649 */ getBlueGreenInfo()1650 com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo getBlueGreenInfo(); 1651 /** 1652 * 1653 * 1654 * <pre> 1655 * Information of a blue-green upgrade. 1656 * </pre> 1657 * 1658 * <code>.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1;</code> 1659 */ getBlueGreenInfoOrBuilder()1660 com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfoOrBuilder getBlueGreenInfoOrBuilder(); 1661 } 1662 /** 1663 * 1664 * 1665 * <pre> 1666 * UpdateInfo contains resource (instance groups, etc), status and other 1667 * intermediate information relevant to a node pool upgrade. 1668 * </pre> 1669 * 1670 * Protobuf type {@code google.container.v1.NodePool.UpdateInfo} 1671 */ 1672 public static final class UpdateInfo extends com.google.protobuf.GeneratedMessageV3 1673 implements 1674 // @@protoc_insertion_point(message_implements:google.container.v1.NodePool.UpdateInfo) 1675 UpdateInfoOrBuilder { 1676 private static final long serialVersionUID = 0L; 1677 // Use UpdateInfo.newBuilder() to construct. UpdateInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)1678 private UpdateInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 1679 super(builder); 1680 } 1681 UpdateInfo()1682 private UpdateInfo() {} 1683 1684 @java.lang.Override 1685 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)1686 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 1687 return new UpdateInfo(); 1688 } 1689 1690 @java.lang.Override getUnknownFields()1691 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 1692 return this.unknownFields; 1693 } 1694 getDescriptor()1695 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 1696 return com.google.container.v1.ClusterServiceProto 1697 .internal_static_google_container_v1_NodePool_UpdateInfo_descriptor; 1698 } 1699 1700 @java.lang.Override 1701 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()1702 internalGetFieldAccessorTable() { 1703 return com.google.container.v1.ClusterServiceProto 1704 .internal_static_google_container_v1_NodePool_UpdateInfo_fieldAccessorTable 1705 .ensureFieldAccessorsInitialized( 1706 com.google.container.v1.NodePool.UpdateInfo.class, 1707 com.google.container.v1.NodePool.UpdateInfo.Builder.class); 1708 } 1709 1710 public interface BlueGreenInfoOrBuilder 1711 extends 1712 // @@protoc_insertion_point(interface_extends:google.container.v1.NodePool.UpdateInfo.BlueGreenInfo) 1713 com.google.protobuf.MessageOrBuilder { 1714 1715 /** 1716 * 1717 * 1718 * <pre> 1719 * Current blue-green upgrade phase. 1720 * </pre> 1721 * 1722 * <code>.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1;</code> 1723 * 1724 * @return The enum numeric value on the wire for phase. 1725 */ getPhaseValue()1726 int getPhaseValue(); 1727 /** 1728 * 1729 * 1730 * <pre> 1731 * Current blue-green upgrade phase. 1732 * </pre> 1733 * 1734 * <code>.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1;</code> 1735 * 1736 * @return The phase. 1737 */ getPhase()1738 com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase getPhase(); 1739 1740 /** 1741 * 1742 * 1743 * <pre> 1744 * The resource URLs of the [managed instance groups] 1745 * (/compute/docs/instance-groups/creating-groups-of-managed-instances) 1746 * associated with blue pool. 1747 * </pre> 1748 * 1749 * <code>repeated string blue_instance_group_urls = 2;</code> 1750 * 1751 * @return A list containing the blueInstanceGroupUrls. 1752 */ getBlueInstanceGroupUrlsList()1753 java.util.List<java.lang.String> getBlueInstanceGroupUrlsList(); 1754 /** 1755 * 1756 * 1757 * <pre> 1758 * The resource URLs of the [managed instance groups] 1759 * (/compute/docs/instance-groups/creating-groups-of-managed-instances) 1760 * associated with blue pool. 1761 * </pre> 1762 * 1763 * <code>repeated string blue_instance_group_urls = 2;</code> 1764 * 1765 * @return The count of blueInstanceGroupUrls. 1766 */ getBlueInstanceGroupUrlsCount()1767 int getBlueInstanceGroupUrlsCount(); 1768 /** 1769 * 1770 * 1771 * <pre> 1772 * The resource URLs of the [managed instance groups] 1773 * (/compute/docs/instance-groups/creating-groups-of-managed-instances) 1774 * associated with blue pool. 1775 * </pre> 1776 * 1777 * <code>repeated string blue_instance_group_urls = 2;</code> 1778 * 1779 * @param index The index of the element to return. 1780 * @return The blueInstanceGroupUrls at the given index. 1781 */ getBlueInstanceGroupUrls(int index)1782 java.lang.String getBlueInstanceGroupUrls(int index); 1783 /** 1784 * 1785 * 1786 * <pre> 1787 * The resource URLs of the [managed instance groups] 1788 * (/compute/docs/instance-groups/creating-groups-of-managed-instances) 1789 * associated with blue pool. 1790 * </pre> 1791 * 1792 * <code>repeated string blue_instance_group_urls = 2;</code> 1793 * 1794 * @param index The index of the value to return. 1795 * @return The bytes of the blueInstanceGroupUrls at the given index. 1796 */ getBlueInstanceGroupUrlsBytes(int index)1797 com.google.protobuf.ByteString getBlueInstanceGroupUrlsBytes(int index); 1798 1799 /** 1800 * 1801 * 1802 * <pre> 1803 * The resource URLs of the [managed instance groups] 1804 * (/compute/docs/instance-groups/creating-groups-of-managed-instances) 1805 * associated with green pool. 1806 * </pre> 1807 * 1808 * <code>repeated string green_instance_group_urls = 3;</code> 1809 * 1810 * @return A list containing the greenInstanceGroupUrls. 1811 */ getGreenInstanceGroupUrlsList()1812 java.util.List<java.lang.String> getGreenInstanceGroupUrlsList(); 1813 /** 1814 * 1815 * 1816 * <pre> 1817 * The resource URLs of the [managed instance groups] 1818 * (/compute/docs/instance-groups/creating-groups-of-managed-instances) 1819 * associated with green pool. 1820 * </pre> 1821 * 1822 * <code>repeated string green_instance_group_urls = 3;</code> 1823 * 1824 * @return The count of greenInstanceGroupUrls. 1825 */ getGreenInstanceGroupUrlsCount()1826 int getGreenInstanceGroupUrlsCount(); 1827 /** 1828 * 1829 * 1830 * <pre> 1831 * The resource URLs of the [managed instance groups] 1832 * (/compute/docs/instance-groups/creating-groups-of-managed-instances) 1833 * associated with green pool. 1834 * </pre> 1835 * 1836 * <code>repeated string green_instance_group_urls = 3;</code> 1837 * 1838 * @param index The index of the element to return. 1839 * @return The greenInstanceGroupUrls at the given index. 1840 */ getGreenInstanceGroupUrls(int index)1841 java.lang.String getGreenInstanceGroupUrls(int index); 1842 /** 1843 * 1844 * 1845 * <pre> 1846 * The resource URLs of the [managed instance groups] 1847 * (/compute/docs/instance-groups/creating-groups-of-managed-instances) 1848 * associated with green pool. 1849 * </pre> 1850 * 1851 * <code>repeated string green_instance_group_urls = 3;</code> 1852 * 1853 * @param index The index of the value to return. 1854 * @return The bytes of the greenInstanceGroupUrls at the given index. 1855 */ getGreenInstanceGroupUrlsBytes(int index)1856 com.google.protobuf.ByteString getGreenInstanceGroupUrlsBytes(int index); 1857 1858 /** 1859 * 1860 * 1861 * <pre> 1862 * Time to start deleting blue pool to complete blue-green upgrade, 1863 * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. 1864 * </pre> 1865 * 1866 * <code>string blue_pool_deletion_start_time = 4;</code> 1867 * 1868 * @return The bluePoolDeletionStartTime. 1869 */ getBluePoolDeletionStartTime()1870 java.lang.String getBluePoolDeletionStartTime(); 1871 /** 1872 * 1873 * 1874 * <pre> 1875 * Time to start deleting blue pool to complete blue-green upgrade, 1876 * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. 1877 * </pre> 1878 * 1879 * <code>string blue_pool_deletion_start_time = 4;</code> 1880 * 1881 * @return The bytes for bluePoolDeletionStartTime. 1882 */ getBluePoolDeletionStartTimeBytes()1883 com.google.protobuf.ByteString getBluePoolDeletionStartTimeBytes(); 1884 1885 /** 1886 * 1887 * 1888 * <pre> 1889 * Version of green pool. 1890 * </pre> 1891 * 1892 * <code>string green_pool_version = 5;</code> 1893 * 1894 * @return The greenPoolVersion. 1895 */ getGreenPoolVersion()1896 java.lang.String getGreenPoolVersion(); 1897 /** 1898 * 1899 * 1900 * <pre> 1901 * Version of green pool. 1902 * </pre> 1903 * 1904 * <code>string green_pool_version = 5;</code> 1905 * 1906 * @return The bytes for greenPoolVersion. 1907 */ getGreenPoolVersionBytes()1908 com.google.protobuf.ByteString getGreenPoolVersionBytes(); 1909 } 1910 /** 1911 * 1912 * 1913 * <pre> 1914 * Information relevant to blue-green upgrade. 1915 * </pre> 1916 * 1917 * Protobuf type {@code google.container.v1.NodePool.UpdateInfo.BlueGreenInfo} 1918 */ 1919 public static final class BlueGreenInfo extends com.google.protobuf.GeneratedMessageV3 1920 implements 1921 // @@protoc_insertion_point(message_implements:google.container.v1.NodePool.UpdateInfo.BlueGreenInfo) 1922 BlueGreenInfoOrBuilder { 1923 private static final long serialVersionUID = 0L; 1924 // Use BlueGreenInfo.newBuilder() to construct. BlueGreenInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)1925 private BlueGreenInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 1926 super(builder); 1927 } 1928 BlueGreenInfo()1929 private BlueGreenInfo() { 1930 phase_ = 0; 1931 blueInstanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; 1932 greenInstanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; 1933 bluePoolDeletionStartTime_ = ""; 1934 greenPoolVersion_ = ""; 1935 } 1936 1937 @java.lang.Override 1938 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)1939 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 1940 return new BlueGreenInfo(); 1941 } 1942 1943 @java.lang.Override getUnknownFields()1944 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 1945 return this.unknownFields; 1946 } 1947 getDescriptor()1948 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 1949 return com.google.container.v1.ClusterServiceProto 1950 .internal_static_google_container_v1_NodePool_UpdateInfo_BlueGreenInfo_descriptor; 1951 } 1952 1953 @java.lang.Override 1954 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()1955 internalGetFieldAccessorTable() { 1956 return com.google.container.v1.ClusterServiceProto 1957 .internal_static_google_container_v1_NodePool_UpdateInfo_BlueGreenInfo_fieldAccessorTable 1958 .ensureFieldAccessorsInitialized( 1959 com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.class, 1960 com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Builder.class); 1961 } 1962 1963 /** 1964 * 1965 * 1966 * <pre> 1967 * Phase represents the different stages blue-green upgrade is running in. 1968 * </pre> 1969 * 1970 * Protobuf enum {@code google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase} 1971 */ 1972 public enum Phase implements com.google.protobuf.ProtocolMessageEnum { 1973 /** 1974 * 1975 * 1976 * <pre> 1977 * Unspecified phase. 1978 * </pre> 1979 * 1980 * <code>PHASE_UNSPECIFIED = 0;</code> 1981 */ 1982 PHASE_UNSPECIFIED(0), 1983 /** 1984 * 1985 * 1986 * <pre> 1987 * blue-green upgrade has been initiated. 1988 * </pre> 1989 * 1990 * <code>UPDATE_STARTED = 1;</code> 1991 */ 1992 UPDATE_STARTED(1), 1993 /** 1994 * 1995 * 1996 * <pre> 1997 * Start creating green pool nodes. 1998 * </pre> 1999 * 2000 * <code>CREATING_GREEN_POOL = 2;</code> 2001 */ 2002 CREATING_GREEN_POOL(2), 2003 /** 2004 * 2005 * 2006 * <pre> 2007 * Start cordoning blue pool nodes. 2008 * </pre> 2009 * 2010 * <code>CORDONING_BLUE_POOL = 3;</code> 2011 */ 2012 CORDONING_BLUE_POOL(3), 2013 /** 2014 * 2015 * 2016 * <pre> 2017 * Start draining blue pool nodes. 2018 * </pre> 2019 * 2020 * <code>DRAINING_BLUE_POOL = 4;</code> 2021 */ 2022 DRAINING_BLUE_POOL(4), 2023 /** 2024 * 2025 * 2026 * <pre> 2027 * Start soaking time after draining entire blue pool. 2028 * </pre> 2029 * 2030 * <code>NODE_POOL_SOAKING = 5;</code> 2031 */ 2032 NODE_POOL_SOAKING(5), 2033 /** 2034 * 2035 * 2036 * <pre> 2037 * Start deleting blue nodes. 2038 * </pre> 2039 * 2040 * <code>DELETING_BLUE_POOL = 6;</code> 2041 */ 2042 DELETING_BLUE_POOL(6), 2043 /** 2044 * 2045 * 2046 * <pre> 2047 * Rollback has been initiated. 2048 * </pre> 2049 * 2050 * <code>ROLLBACK_STARTED = 7;</code> 2051 */ 2052 ROLLBACK_STARTED(7), 2053 UNRECOGNIZED(-1), 2054 ; 2055 2056 /** 2057 * 2058 * 2059 * <pre> 2060 * Unspecified phase. 2061 * </pre> 2062 * 2063 * <code>PHASE_UNSPECIFIED = 0;</code> 2064 */ 2065 public static final int PHASE_UNSPECIFIED_VALUE = 0; 2066 /** 2067 * 2068 * 2069 * <pre> 2070 * blue-green upgrade has been initiated. 2071 * </pre> 2072 * 2073 * <code>UPDATE_STARTED = 1;</code> 2074 */ 2075 public static final int UPDATE_STARTED_VALUE = 1; 2076 /** 2077 * 2078 * 2079 * <pre> 2080 * Start creating green pool nodes. 2081 * </pre> 2082 * 2083 * <code>CREATING_GREEN_POOL = 2;</code> 2084 */ 2085 public static final int CREATING_GREEN_POOL_VALUE = 2; 2086 /** 2087 * 2088 * 2089 * <pre> 2090 * Start cordoning blue pool nodes. 2091 * </pre> 2092 * 2093 * <code>CORDONING_BLUE_POOL = 3;</code> 2094 */ 2095 public static final int CORDONING_BLUE_POOL_VALUE = 3; 2096 /** 2097 * 2098 * 2099 * <pre> 2100 * Start draining blue pool nodes. 2101 * </pre> 2102 * 2103 * <code>DRAINING_BLUE_POOL = 4;</code> 2104 */ 2105 public static final int DRAINING_BLUE_POOL_VALUE = 4; 2106 /** 2107 * 2108 * 2109 * <pre> 2110 * Start soaking time after draining entire blue pool. 2111 * </pre> 2112 * 2113 * <code>NODE_POOL_SOAKING = 5;</code> 2114 */ 2115 public static final int NODE_POOL_SOAKING_VALUE = 5; 2116 /** 2117 * 2118 * 2119 * <pre> 2120 * Start deleting blue nodes. 2121 * </pre> 2122 * 2123 * <code>DELETING_BLUE_POOL = 6;</code> 2124 */ 2125 public static final int DELETING_BLUE_POOL_VALUE = 6; 2126 /** 2127 * 2128 * 2129 * <pre> 2130 * Rollback has been initiated. 2131 * </pre> 2132 * 2133 * <code>ROLLBACK_STARTED = 7;</code> 2134 */ 2135 public static final int ROLLBACK_STARTED_VALUE = 7; 2136 getNumber()2137 public final int getNumber() { 2138 if (this == UNRECOGNIZED) { 2139 throw new java.lang.IllegalArgumentException( 2140 "Can't get the number of an unknown enum value."); 2141 } 2142 return value; 2143 } 2144 2145 /** 2146 * @param value The numeric wire value of the corresponding enum entry. 2147 * @return The enum associated with the given numeric wire value. 2148 * @deprecated Use {@link #forNumber(int)} instead. 2149 */ 2150 @java.lang.Deprecated valueOf(int value)2151 public static Phase valueOf(int value) { 2152 return forNumber(value); 2153 } 2154 2155 /** 2156 * @param value The numeric wire value of the corresponding enum entry. 2157 * @return The enum associated with the given numeric wire value. 2158 */ forNumber(int value)2159 public static Phase forNumber(int value) { 2160 switch (value) { 2161 case 0: 2162 return PHASE_UNSPECIFIED; 2163 case 1: 2164 return UPDATE_STARTED; 2165 case 2: 2166 return CREATING_GREEN_POOL; 2167 case 3: 2168 return CORDONING_BLUE_POOL; 2169 case 4: 2170 return DRAINING_BLUE_POOL; 2171 case 5: 2172 return NODE_POOL_SOAKING; 2173 case 6: 2174 return DELETING_BLUE_POOL; 2175 case 7: 2176 return ROLLBACK_STARTED; 2177 default: 2178 return null; 2179 } 2180 } 2181 internalGetValueMap()2182 public static com.google.protobuf.Internal.EnumLiteMap<Phase> internalGetValueMap() { 2183 return internalValueMap; 2184 } 2185 2186 private static final com.google.protobuf.Internal.EnumLiteMap<Phase> internalValueMap = 2187 new com.google.protobuf.Internal.EnumLiteMap<Phase>() { 2188 public Phase findValueByNumber(int number) { 2189 return Phase.forNumber(number); 2190 } 2191 }; 2192 getValueDescriptor()2193 public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 2194 if (this == UNRECOGNIZED) { 2195 throw new java.lang.IllegalStateException( 2196 "Can't get the descriptor of an unrecognized enum value."); 2197 } 2198 return getDescriptor().getValues().get(ordinal()); 2199 } 2200 getDescriptorForType()2201 public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { 2202 return getDescriptor(); 2203 } 2204 getDescriptor()2205 public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { 2206 return com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.getDescriptor() 2207 .getEnumTypes() 2208 .get(0); 2209 } 2210 2211 private static final Phase[] VALUES = values(); 2212 valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)2213 public static Phase valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 2214 if (desc.getType() != getDescriptor()) { 2215 throw new java.lang.IllegalArgumentException( 2216 "EnumValueDescriptor is not for this type."); 2217 } 2218 if (desc.getIndex() == -1) { 2219 return UNRECOGNIZED; 2220 } 2221 return VALUES[desc.getIndex()]; 2222 } 2223 2224 private final int value; 2225 Phase(int value)2226 private Phase(int value) { 2227 this.value = value; 2228 } 2229 2230 // @@protoc_insertion_point(enum_scope:google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase) 2231 } 2232 2233 public static final int PHASE_FIELD_NUMBER = 1; 2234 private int phase_ = 0; 2235 /** 2236 * 2237 * 2238 * <pre> 2239 * Current blue-green upgrade phase. 2240 * </pre> 2241 * 2242 * <code>.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1;</code> 2243 * 2244 * @return The enum numeric value on the wire for phase. 2245 */ 2246 @java.lang.Override getPhaseValue()2247 public int getPhaseValue() { 2248 return phase_; 2249 } 2250 /** 2251 * 2252 * 2253 * <pre> 2254 * Current blue-green upgrade phase. 2255 * </pre> 2256 * 2257 * <code>.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1;</code> 2258 * 2259 * @return The phase. 2260 */ 2261 @java.lang.Override getPhase()2262 public com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase getPhase() { 2263 com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase result = 2264 com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase.forNumber(phase_); 2265 return result == null 2266 ? com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase.UNRECOGNIZED 2267 : result; 2268 } 2269 2270 public static final int BLUE_INSTANCE_GROUP_URLS_FIELD_NUMBER = 2; 2271 2272 @SuppressWarnings("serial") 2273 private com.google.protobuf.LazyStringList blueInstanceGroupUrls_; 2274 /** 2275 * 2276 * 2277 * <pre> 2278 * The resource URLs of the [managed instance groups] 2279 * (/compute/docs/instance-groups/creating-groups-of-managed-instances) 2280 * associated with blue pool. 2281 * </pre> 2282 * 2283 * <code>repeated string blue_instance_group_urls = 2;</code> 2284 * 2285 * @return A list containing the blueInstanceGroupUrls. 2286 */ getBlueInstanceGroupUrlsList()2287 public com.google.protobuf.ProtocolStringList getBlueInstanceGroupUrlsList() { 2288 return blueInstanceGroupUrls_; 2289 } 2290 /** 2291 * 2292 * 2293 * <pre> 2294 * The resource URLs of the [managed instance groups] 2295 * (/compute/docs/instance-groups/creating-groups-of-managed-instances) 2296 * associated with blue pool. 2297 * </pre> 2298 * 2299 * <code>repeated string blue_instance_group_urls = 2;</code> 2300 * 2301 * @return The count of blueInstanceGroupUrls. 2302 */ getBlueInstanceGroupUrlsCount()2303 public int getBlueInstanceGroupUrlsCount() { 2304 return blueInstanceGroupUrls_.size(); 2305 } 2306 /** 2307 * 2308 * 2309 * <pre> 2310 * The resource URLs of the [managed instance groups] 2311 * (/compute/docs/instance-groups/creating-groups-of-managed-instances) 2312 * associated with blue pool. 2313 * </pre> 2314 * 2315 * <code>repeated string blue_instance_group_urls = 2;</code> 2316 * 2317 * @param index The index of the element to return. 2318 * @return The blueInstanceGroupUrls at the given index. 2319 */ getBlueInstanceGroupUrls(int index)2320 public java.lang.String getBlueInstanceGroupUrls(int index) { 2321 return blueInstanceGroupUrls_.get(index); 2322 } 2323 /** 2324 * 2325 * 2326 * <pre> 2327 * The resource URLs of the [managed instance groups] 2328 * (/compute/docs/instance-groups/creating-groups-of-managed-instances) 2329 * associated with blue pool. 2330 * </pre> 2331 * 2332 * <code>repeated string blue_instance_group_urls = 2;</code> 2333 * 2334 * @param index The index of the value to return. 2335 * @return The bytes of the blueInstanceGroupUrls at the given index. 2336 */ getBlueInstanceGroupUrlsBytes(int index)2337 public com.google.protobuf.ByteString getBlueInstanceGroupUrlsBytes(int index) { 2338 return blueInstanceGroupUrls_.getByteString(index); 2339 } 2340 2341 public static final int GREEN_INSTANCE_GROUP_URLS_FIELD_NUMBER = 3; 2342 2343 @SuppressWarnings("serial") 2344 private com.google.protobuf.LazyStringList greenInstanceGroupUrls_; 2345 /** 2346 * 2347 * 2348 * <pre> 2349 * The resource URLs of the [managed instance groups] 2350 * (/compute/docs/instance-groups/creating-groups-of-managed-instances) 2351 * associated with green pool. 2352 * </pre> 2353 * 2354 * <code>repeated string green_instance_group_urls = 3;</code> 2355 * 2356 * @return A list containing the greenInstanceGroupUrls. 2357 */ getGreenInstanceGroupUrlsList()2358 public com.google.protobuf.ProtocolStringList getGreenInstanceGroupUrlsList() { 2359 return greenInstanceGroupUrls_; 2360 } 2361 /** 2362 * 2363 * 2364 * <pre> 2365 * The resource URLs of the [managed instance groups] 2366 * (/compute/docs/instance-groups/creating-groups-of-managed-instances) 2367 * associated with green pool. 2368 * </pre> 2369 * 2370 * <code>repeated string green_instance_group_urls = 3;</code> 2371 * 2372 * @return The count of greenInstanceGroupUrls. 2373 */ getGreenInstanceGroupUrlsCount()2374 public int getGreenInstanceGroupUrlsCount() { 2375 return greenInstanceGroupUrls_.size(); 2376 } 2377 /** 2378 * 2379 * 2380 * <pre> 2381 * The resource URLs of the [managed instance groups] 2382 * (/compute/docs/instance-groups/creating-groups-of-managed-instances) 2383 * associated with green pool. 2384 * </pre> 2385 * 2386 * <code>repeated string green_instance_group_urls = 3;</code> 2387 * 2388 * @param index The index of the element to return. 2389 * @return The greenInstanceGroupUrls at the given index. 2390 */ getGreenInstanceGroupUrls(int index)2391 public java.lang.String getGreenInstanceGroupUrls(int index) { 2392 return greenInstanceGroupUrls_.get(index); 2393 } 2394 /** 2395 * 2396 * 2397 * <pre> 2398 * The resource URLs of the [managed instance groups] 2399 * (/compute/docs/instance-groups/creating-groups-of-managed-instances) 2400 * associated with green pool. 2401 * </pre> 2402 * 2403 * <code>repeated string green_instance_group_urls = 3;</code> 2404 * 2405 * @param index The index of the value to return. 2406 * @return The bytes of the greenInstanceGroupUrls at the given index. 2407 */ getGreenInstanceGroupUrlsBytes(int index)2408 public com.google.protobuf.ByteString getGreenInstanceGroupUrlsBytes(int index) { 2409 return greenInstanceGroupUrls_.getByteString(index); 2410 } 2411 2412 public static final int BLUE_POOL_DELETION_START_TIME_FIELD_NUMBER = 4; 2413 2414 @SuppressWarnings("serial") 2415 private volatile java.lang.Object bluePoolDeletionStartTime_ = ""; 2416 /** 2417 * 2418 * 2419 * <pre> 2420 * Time to start deleting blue pool to complete blue-green upgrade, 2421 * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. 2422 * </pre> 2423 * 2424 * <code>string blue_pool_deletion_start_time = 4;</code> 2425 * 2426 * @return The bluePoolDeletionStartTime. 2427 */ 2428 @java.lang.Override getBluePoolDeletionStartTime()2429 public java.lang.String getBluePoolDeletionStartTime() { 2430 java.lang.Object ref = bluePoolDeletionStartTime_; 2431 if (ref instanceof java.lang.String) { 2432 return (java.lang.String) ref; 2433 } else { 2434 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2435 java.lang.String s = bs.toStringUtf8(); 2436 bluePoolDeletionStartTime_ = s; 2437 return s; 2438 } 2439 } 2440 /** 2441 * 2442 * 2443 * <pre> 2444 * Time to start deleting blue pool to complete blue-green upgrade, 2445 * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. 2446 * </pre> 2447 * 2448 * <code>string blue_pool_deletion_start_time = 4;</code> 2449 * 2450 * @return The bytes for bluePoolDeletionStartTime. 2451 */ 2452 @java.lang.Override getBluePoolDeletionStartTimeBytes()2453 public com.google.protobuf.ByteString getBluePoolDeletionStartTimeBytes() { 2454 java.lang.Object ref = bluePoolDeletionStartTime_; 2455 if (ref instanceof java.lang.String) { 2456 com.google.protobuf.ByteString b = 2457 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2458 bluePoolDeletionStartTime_ = b; 2459 return b; 2460 } else { 2461 return (com.google.protobuf.ByteString) ref; 2462 } 2463 } 2464 2465 public static final int GREEN_POOL_VERSION_FIELD_NUMBER = 5; 2466 2467 @SuppressWarnings("serial") 2468 private volatile java.lang.Object greenPoolVersion_ = ""; 2469 /** 2470 * 2471 * 2472 * <pre> 2473 * Version of green pool. 2474 * </pre> 2475 * 2476 * <code>string green_pool_version = 5;</code> 2477 * 2478 * @return The greenPoolVersion. 2479 */ 2480 @java.lang.Override getGreenPoolVersion()2481 public java.lang.String getGreenPoolVersion() { 2482 java.lang.Object ref = greenPoolVersion_; 2483 if (ref instanceof java.lang.String) { 2484 return (java.lang.String) ref; 2485 } else { 2486 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2487 java.lang.String s = bs.toStringUtf8(); 2488 greenPoolVersion_ = s; 2489 return s; 2490 } 2491 } 2492 /** 2493 * 2494 * 2495 * <pre> 2496 * Version of green pool. 2497 * </pre> 2498 * 2499 * <code>string green_pool_version = 5;</code> 2500 * 2501 * @return The bytes for greenPoolVersion. 2502 */ 2503 @java.lang.Override getGreenPoolVersionBytes()2504 public com.google.protobuf.ByteString getGreenPoolVersionBytes() { 2505 java.lang.Object ref = greenPoolVersion_; 2506 if (ref instanceof java.lang.String) { 2507 com.google.protobuf.ByteString b = 2508 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2509 greenPoolVersion_ = b; 2510 return b; 2511 } else { 2512 return (com.google.protobuf.ByteString) ref; 2513 } 2514 } 2515 2516 private byte memoizedIsInitialized = -1; 2517 2518 @java.lang.Override isInitialized()2519 public final boolean isInitialized() { 2520 byte isInitialized = memoizedIsInitialized; 2521 if (isInitialized == 1) return true; 2522 if (isInitialized == 0) return false; 2523 2524 memoizedIsInitialized = 1; 2525 return true; 2526 } 2527 2528 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)2529 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 2530 if (phase_ 2531 != com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase.PHASE_UNSPECIFIED 2532 .getNumber()) { 2533 output.writeEnum(1, phase_); 2534 } 2535 for (int i = 0; i < blueInstanceGroupUrls_.size(); i++) { 2536 com.google.protobuf.GeneratedMessageV3.writeString( 2537 output, 2, blueInstanceGroupUrls_.getRaw(i)); 2538 } 2539 for (int i = 0; i < greenInstanceGroupUrls_.size(); i++) { 2540 com.google.protobuf.GeneratedMessageV3.writeString( 2541 output, 3, greenInstanceGroupUrls_.getRaw(i)); 2542 } 2543 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bluePoolDeletionStartTime_)) { 2544 com.google.protobuf.GeneratedMessageV3.writeString(output, 4, bluePoolDeletionStartTime_); 2545 } 2546 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(greenPoolVersion_)) { 2547 com.google.protobuf.GeneratedMessageV3.writeString(output, 5, greenPoolVersion_); 2548 } 2549 getUnknownFields().writeTo(output); 2550 } 2551 2552 @java.lang.Override getSerializedSize()2553 public int getSerializedSize() { 2554 int size = memoizedSize; 2555 if (size != -1) return size; 2556 2557 size = 0; 2558 if (phase_ 2559 != com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase.PHASE_UNSPECIFIED 2560 .getNumber()) { 2561 size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, phase_); 2562 } 2563 { 2564 int dataSize = 0; 2565 for (int i = 0; i < blueInstanceGroupUrls_.size(); i++) { 2566 dataSize += computeStringSizeNoTag(blueInstanceGroupUrls_.getRaw(i)); 2567 } 2568 size += dataSize; 2569 size += 1 * getBlueInstanceGroupUrlsList().size(); 2570 } 2571 { 2572 int dataSize = 0; 2573 for (int i = 0; i < greenInstanceGroupUrls_.size(); i++) { 2574 dataSize += computeStringSizeNoTag(greenInstanceGroupUrls_.getRaw(i)); 2575 } 2576 size += dataSize; 2577 size += 1 * getGreenInstanceGroupUrlsList().size(); 2578 } 2579 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bluePoolDeletionStartTime_)) { 2580 size += 2581 com.google.protobuf.GeneratedMessageV3.computeStringSize( 2582 4, bluePoolDeletionStartTime_); 2583 } 2584 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(greenPoolVersion_)) { 2585 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, greenPoolVersion_); 2586 } 2587 size += getUnknownFields().getSerializedSize(); 2588 memoizedSize = size; 2589 return size; 2590 } 2591 2592 @java.lang.Override equals(final java.lang.Object obj)2593 public boolean equals(final java.lang.Object obj) { 2594 if (obj == this) { 2595 return true; 2596 } 2597 if (!(obj instanceof com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo)) { 2598 return super.equals(obj); 2599 } 2600 com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo other = 2601 (com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo) obj; 2602 2603 if (phase_ != other.phase_) return false; 2604 if (!getBlueInstanceGroupUrlsList().equals(other.getBlueInstanceGroupUrlsList())) 2605 return false; 2606 if (!getGreenInstanceGroupUrlsList().equals(other.getGreenInstanceGroupUrlsList())) 2607 return false; 2608 if (!getBluePoolDeletionStartTime().equals(other.getBluePoolDeletionStartTime())) 2609 return false; 2610 if (!getGreenPoolVersion().equals(other.getGreenPoolVersion())) return false; 2611 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 2612 return true; 2613 } 2614 2615 @java.lang.Override hashCode()2616 public int hashCode() { 2617 if (memoizedHashCode != 0) { 2618 return memoizedHashCode; 2619 } 2620 int hash = 41; 2621 hash = (19 * hash) + getDescriptor().hashCode(); 2622 hash = (37 * hash) + PHASE_FIELD_NUMBER; 2623 hash = (53 * hash) + phase_; 2624 if (getBlueInstanceGroupUrlsCount() > 0) { 2625 hash = (37 * hash) + BLUE_INSTANCE_GROUP_URLS_FIELD_NUMBER; 2626 hash = (53 * hash) + getBlueInstanceGroupUrlsList().hashCode(); 2627 } 2628 if (getGreenInstanceGroupUrlsCount() > 0) { 2629 hash = (37 * hash) + GREEN_INSTANCE_GROUP_URLS_FIELD_NUMBER; 2630 hash = (53 * hash) + getGreenInstanceGroupUrlsList().hashCode(); 2631 } 2632 hash = (37 * hash) + BLUE_POOL_DELETION_START_TIME_FIELD_NUMBER; 2633 hash = (53 * hash) + getBluePoolDeletionStartTime().hashCode(); 2634 hash = (37 * hash) + GREEN_POOL_VERSION_FIELD_NUMBER; 2635 hash = (53 * hash) + getGreenPoolVersion().hashCode(); 2636 hash = (29 * hash) + getUnknownFields().hashCode(); 2637 memoizedHashCode = hash; 2638 return hash; 2639 } 2640 parseFrom( java.nio.ByteBuffer data)2641 public static com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo parseFrom( 2642 java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { 2643 return PARSER.parseFrom(data); 2644 } 2645 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2646 public static com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo parseFrom( 2647 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2648 throws com.google.protobuf.InvalidProtocolBufferException { 2649 return PARSER.parseFrom(data, extensionRegistry); 2650 } 2651 parseFrom( com.google.protobuf.ByteString data)2652 public static com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo parseFrom( 2653 com.google.protobuf.ByteString data) 2654 throws com.google.protobuf.InvalidProtocolBufferException { 2655 return PARSER.parseFrom(data); 2656 } 2657 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2658 public static com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo parseFrom( 2659 com.google.protobuf.ByteString data, 2660 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2661 throws com.google.protobuf.InvalidProtocolBufferException { 2662 return PARSER.parseFrom(data, extensionRegistry); 2663 } 2664 parseFrom(byte[] data)2665 public static com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo parseFrom(byte[] data) 2666 throws com.google.protobuf.InvalidProtocolBufferException { 2667 return PARSER.parseFrom(data); 2668 } 2669 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2670 public static com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo parseFrom( 2671 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2672 throws com.google.protobuf.InvalidProtocolBufferException { 2673 return PARSER.parseFrom(data, extensionRegistry); 2674 } 2675 parseFrom( java.io.InputStream input)2676 public static com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo parseFrom( 2677 java.io.InputStream input) throws java.io.IOException { 2678 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 2679 } 2680 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2681 public static com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo parseFrom( 2682 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2683 throws java.io.IOException { 2684 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 2685 PARSER, input, extensionRegistry); 2686 } 2687 parseDelimitedFrom( java.io.InputStream input)2688 public static com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo parseDelimitedFrom( 2689 java.io.InputStream input) throws java.io.IOException { 2690 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 2691 } 2692 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2693 public static com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo parseDelimitedFrom( 2694 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2695 throws java.io.IOException { 2696 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 2697 PARSER, input, extensionRegistry); 2698 } 2699 parseFrom( com.google.protobuf.CodedInputStream input)2700 public static com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo parseFrom( 2701 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 2702 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 2703 } 2704 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2705 public static com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo parseFrom( 2706 com.google.protobuf.CodedInputStream input, 2707 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2708 throws java.io.IOException { 2709 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 2710 PARSER, input, extensionRegistry); 2711 } 2712 2713 @java.lang.Override newBuilderForType()2714 public Builder newBuilderForType() { 2715 return newBuilder(); 2716 } 2717 newBuilder()2718 public static Builder newBuilder() { 2719 return DEFAULT_INSTANCE.toBuilder(); 2720 } 2721 newBuilder( com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo prototype)2722 public static Builder newBuilder( 2723 com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo prototype) { 2724 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 2725 } 2726 2727 @java.lang.Override toBuilder()2728 public Builder toBuilder() { 2729 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 2730 } 2731 2732 @java.lang.Override newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)2733 protected Builder newBuilderForType( 2734 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 2735 Builder builder = new Builder(parent); 2736 return builder; 2737 } 2738 /** 2739 * 2740 * 2741 * <pre> 2742 * Information relevant to blue-green upgrade. 2743 * </pre> 2744 * 2745 * Protobuf type {@code google.container.v1.NodePool.UpdateInfo.BlueGreenInfo} 2746 */ 2747 public static final class Builder 2748 extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 2749 implements 2750 // @@protoc_insertion_point(builder_implements:google.container.v1.NodePool.UpdateInfo.BlueGreenInfo) 2751 com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfoOrBuilder { getDescriptor()2752 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 2753 return com.google.container.v1.ClusterServiceProto 2754 .internal_static_google_container_v1_NodePool_UpdateInfo_BlueGreenInfo_descriptor; 2755 } 2756 2757 @java.lang.Override 2758 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()2759 internalGetFieldAccessorTable() { 2760 return com.google.container.v1.ClusterServiceProto 2761 .internal_static_google_container_v1_NodePool_UpdateInfo_BlueGreenInfo_fieldAccessorTable 2762 .ensureFieldAccessorsInitialized( 2763 com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.class, 2764 com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Builder.class); 2765 } 2766 2767 // Construct using com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.newBuilder() Builder()2768 private Builder() {} 2769 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)2770 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 2771 super(parent); 2772 } 2773 2774 @java.lang.Override clear()2775 public Builder clear() { 2776 super.clear(); 2777 bitField0_ = 0; 2778 phase_ = 0; 2779 blueInstanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; 2780 bitField0_ = (bitField0_ & ~0x00000002); 2781 greenInstanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; 2782 bitField0_ = (bitField0_ & ~0x00000004); 2783 bluePoolDeletionStartTime_ = ""; 2784 greenPoolVersion_ = ""; 2785 return this; 2786 } 2787 2788 @java.lang.Override getDescriptorForType()2789 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 2790 return com.google.container.v1.ClusterServiceProto 2791 .internal_static_google_container_v1_NodePool_UpdateInfo_BlueGreenInfo_descriptor; 2792 } 2793 2794 @java.lang.Override 2795 public com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo getDefaultInstanceForType()2796 getDefaultInstanceForType() { 2797 return com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.getDefaultInstance(); 2798 } 2799 2800 @java.lang.Override build()2801 public com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo build() { 2802 com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo result = buildPartial(); 2803 if (!result.isInitialized()) { 2804 throw newUninitializedMessageException(result); 2805 } 2806 return result; 2807 } 2808 2809 @java.lang.Override buildPartial()2810 public com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo buildPartial() { 2811 com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo result = 2812 new com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo(this); 2813 buildPartialRepeatedFields(result); 2814 if (bitField0_ != 0) { 2815 buildPartial0(result); 2816 } 2817 onBuilt(); 2818 return result; 2819 } 2820 buildPartialRepeatedFields( com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo result)2821 private void buildPartialRepeatedFields( 2822 com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo result) { 2823 if (((bitField0_ & 0x00000002) != 0)) { 2824 blueInstanceGroupUrls_ = blueInstanceGroupUrls_.getUnmodifiableView(); 2825 bitField0_ = (bitField0_ & ~0x00000002); 2826 } 2827 result.blueInstanceGroupUrls_ = blueInstanceGroupUrls_; 2828 if (((bitField0_ & 0x00000004) != 0)) { 2829 greenInstanceGroupUrls_ = greenInstanceGroupUrls_.getUnmodifiableView(); 2830 bitField0_ = (bitField0_ & ~0x00000004); 2831 } 2832 result.greenInstanceGroupUrls_ = greenInstanceGroupUrls_; 2833 } 2834 buildPartial0( com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo result)2835 private void buildPartial0( 2836 com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo result) { 2837 int from_bitField0_ = bitField0_; 2838 if (((from_bitField0_ & 0x00000001) != 0)) { 2839 result.phase_ = phase_; 2840 } 2841 if (((from_bitField0_ & 0x00000008) != 0)) { 2842 result.bluePoolDeletionStartTime_ = bluePoolDeletionStartTime_; 2843 } 2844 if (((from_bitField0_ & 0x00000010) != 0)) { 2845 result.greenPoolVersion_ = greenPoolVersion_; 2846 } 2847 } 2848 2849 @java.lang.Override clone()2850 public Builder clone() { 2851 return super.clone(); 2852 } 2853 2854 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)2855 public Builder setField( 2856 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 2857 return super.setField(field, value); 2858 } 2859 2860 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)2861 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 2862 return super.clearField(field); 2863 } 2864 2865 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)2866 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 2867 return super.clearOneof(oneof); 2868 } 2869 2870 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)2871 public Builder setRepeatedField( 2872 com.google.protobuf.Descriptors.FieldDescriptor field, 2873 int index, 2874 java.lang.Object value) { 2875 return super.setRepeatedField(field, index, value); 2876 } 2877 2878 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)2879 public Builder addRepeatedField( 2880 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 2881 return super.addRepeatedField(field, value); 2882 } 2883 2884 @java.lang.Override mergeFrom(com.google.protobuf.Message other)2885 public Builder mergeFrom(com.google.protobuf.Message other) { 2886 if (other instanceof com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo) { 2887 return mergeFrom((com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo) other); 2888 } else { 2889 super.mergeFrom(other); 2890 return this; 2891 } 2892 } 2893 mergeFrom(com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo other)2894 public Builder mergeFrom(com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo other) { 2895 if (other 2896 == com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.getDefaultInstance()) 2897 return this; 2898 if (other.phase_ != 0) { 2899 setPhaseValue(other.getPhaseValue()); 2900 } 2901 if (!other.blueInstanceGroupUrls_.isEmpty()) { 2902 if (blueInstanceGroupUrls_.isEmpty()) { 2903 blueInstanceGroupUrls_ = other.blueInstanceGroupUrls_; 2904 bitField0_ = (bitField0_ & ~0x00000002); 2905 } else { 2906 ensureBlueInstanceGroupUrlsIsMutable(); 2907 blueInstanceGroupUrls_.addAll(other.blueInstanceGroupUrls_); 2908 } 2909 onChanged(); 2910 } 2911 if (!other.greenInstanceGroupUrls_.isEmpty()) { 2912 if (greenInstanceGroupUrls_.isEmpty()) { 2913 greenInstanceGroupUrls_ = other.greenInstanceGroupUrls_; 2914 bitField0_ = (bitField0_ & ~0x00000004); 2915 } else { 2916 ensureGreenInstanceGroupUrlsIsMutable(); 2917 greenInstanceGroupUrls_.addAll(other.greenInstanceGroupUrls_); 2918 } 2919 onChanged(); 2920 } 2921 if (!other.getBluePoolDeletionStartTime().isEmpty()) { 2922 bluePoolDeletionStartTime_ = other.bluePoolDeletionStartTime_; 2923 bitField0_ |= 0x00000008; 2924 onChanged(); 2925 } 2926 if (!other.getGreenPoolVersion().isEmpty()) { 2927 greenPoolVersion_ = other.greenPoolVersion_; 2928 bitField0_ |= 0x00000010; 2929 onChanged(); 2930 } 2931 this.mergeUnknownFields(other.getUnknownFields()); 2932 onChanged(); 2933 return this; 2934 } 2935 2936 @java.lang.Override isInitialized()2937 public final boolean isInitialized() { 2938 return true; 2939 } 2940 2941 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2942 public Builder mergeFrom( 2943 com.google.protobuf.CodedInputStream input, 2944 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2945 throws java.io.IOException { 2946 if (extensionRegistry == null) { 2947 throw new java.lang.NullPointerException(); 2948 } 2949 try { 2950 boolean done = false; 2951 while (!done) { 2952 int tag = input.readTag(); 2953 switch (tag) { 2954 case 0: 2955 done = true; 2956 break; 2957 case 8: 2958 { 2959 phase_ = input.readEnum(); 2960 bitField0_ |= 0x00000001; 2961 break; 2962 } // case 8 2963 case 18: 2964 { 2965 java.lang.String s = input.readStringRequireUtf8(); 2966 ensureBlueInstanceGroupUrlsIsMutable(); 2967 blueInstanceGroupUrls_.add(s); 2968 break; 2969 } // case 18 2970 case 26: 2971 { 2972 java.lang.String s = input.readStringRequireUtf8(); 2973 ensureGreenInstanceGroupUrlsIsMutable(); 2974 greenInstanceGroupUrls_.add(s); 2975 break; 2976 } // case 26 2977 case 34: 2978 { 2979 bluePoolDeletionStartTime_ = input.readStringRequireUtf8(); 2980 bitField0_ |= 0x00000008; 2981 break; 2982 } // case 34 2983 case 42: 2984 { 2985 greenPoolVersion_ = input.readStringRequireUtf8(); 2986 bitField0_ |= 0x00000010; 2987 break; 2988 } // case 42 2989 default: 2990 { 2991 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 2992 done = true; // was an endgroup tag 2993 } 2994 break; 2995 } // default: 2996 } // switch (tag) 2997 } // while (!done) 2998 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2999 throw e.unwrapIOException(); 3000 } finally { 3001 onChanged(); 3002 } // finally 3003 return this; 3004 } 3005 3006 private int bitField0_; 3007 3008 private int phase_ = 0; 3009 /** 3010 * 3011 * 3012 * <pre> 3013 * Current blue-green upgrade phase. 3014 * </pre> 3015 * 3016 * <code>.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1;</code> 3017 * 3018 * @return The enum numeric value on the wire for phase. 3019 */ 3020 @java.lang.Override getPhaseValue()3021 public int getPhaseValue() { 3022 return phase_; 3023 } 3024 /** 3025 * 3026 * 3027 * <pre> 3028 * Current blue-green upgrade phase. 3029 * </pre> 3030 * 3031 * <code>.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1;</code> 3032 * 3033 * @param value The enum numeric value on the wire for phase to set. 3034 * @return This builder for chaining. 3035 */ setPhaseValue(int value)3036 public Builder setPhaseValue(int value) { 3037 phase_ = value; 3038 bitField0_ |= 0x00000001; 3039 onChanged(); 3040 return this; 3041 } 3042 /** 3043 * 3044 * 3045 * <pre> 3046 * Current blue-green upgrade phase. 3047 * </pre> 3048 * 3049 * <code>.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1;</code> 3050 * 3051 * @return The phase. 3052 */ 3053 @java.lang.Override getPhase()3054 public com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase getPhase() { 3055 com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase result = 3056 com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase.forNumber(phase_); 3057 return result == null 3058 ? com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase.UNRECOGNIZED 3059 : result; 3060 } 3061 /** 3062 * 3063 * 3064 * <pre> 3065 * Current blue-green upgrade phase. 3066 * </pre> 3067 * 3068 * <code>.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1;</code> 3069 * 3070 * @param value The phase to set. 3071 * @return This builder for chaining. 3072 */ setPhase( com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase value)3073 public Builder setPhase( 3074 com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase value) { 3075 if (value == null) { 3076 throw new NullPointerException(); 3077 } 3078 bitField0_ |= 0x00000001; 3079 phase_ = value.getNumber(); 3080 onChanged(); 3081 return this; 3082 } 3083 /** 3084 * 3085 * 3086 * <pre> 3087 * Current blue-green upgrade phase. 3088 * </pre> 3089 * 3090 * <code>.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1;</code> 3091 * 3092 * @return This builder for chaining. 3093 */ clearPhase()3094 public Builder clearPhase() { 3095 bitField0_ = (bitField0_ & ~0x00000001); 3096 phase_ = 0; 3097 onChanged(); 3098 return this; 3099 } 3100 3101 private com.google.protobuf.LazyStringList blueInstanceGroupUrls_ = 3102 com.google.protobuf.LazyStringArrayList.EMPTY; 3103 ensureBlueInstanceGroupUrlsIsMutable()3104 private void ensureBlueInstanceGroupUrlsIsMutable() { 3105 if (!((bitField0_ & 0x00000002) != 0)) { 3106 blueInstanceGroupUrls_ = 3107 new com.google.protobuf.LazyStringArrayList(blueInstanceGroupUrls_); 3108 bitField0_ |= 0x00000002; 3109 } 3110 } 3111 /** 3112 * 3113 * 3114 * <pre> 3115 * The resource URLs of the [managed instance groups] 3116 * (/compute/docs/instance-groups/creating-groups-of-managed-instances) 3117 * associated with blue pool. 3118 * </pre> 3119 * 3120 * <code>repeated string blue_instance_group_urls = 2;</code> 3121 * 3122 * @return A list containing the blueInstanceGroupUrls. 3123 */ getBlueInstanceGroupUrlsList()3124 public com.google.protobuf.ProtocolStringList getBlueInstanceGroupUrlsList() { 3125 return blueInstanceGroupUrls_.getUnmodifiableView(); 3126 } 3127 /** 3128 * 3129 * 3130 * <pre> 3131 * The resource URLs of the [managed instance groups] 3132 * (/compute/docs/instance-groups/creating-groups-of-managed-instances) 3133 * associated with blue pool. 3134 * </pre> 3135 * 3136 * <code>repeated string blue_instance_group_urls = 2;</code> 3137 * 3138 * @return The count of blueInstanceGroupUrls. 3139 */ getBlueInstanceGroupUrlsCount()3140 public int getBlueInstanceGroupUrlsCount() { 3141 return blueInstanceGroupUrls_.size(); 3142 } 3143 /** 3144 * 3145 * 3146 * <pre> 3147 * The resource URLs of the [managed instance groups] 3148 * (/compute/docs/instance-groups/creating-groups-of-managed-instances) 3149 * associated with blue pool. 3150 * </pre> 3151 * 3152 * <code>repeated string blue_instance_group_urls = 2;</code> 3153 * 3154 * @param index The index of the element to return. 3155 * @return The blueInstanceGroupUrls at the given index. 3156 */ getBlueInstanceGroupUrls(int index)3157 public java.lang.String getBlueInstanceGroupUrls(int index) { 3158 return blueInstanceGroupUrls_.get(index); 3159 } 3160 /** 3161 * 3162 * 3163 * <pre> 3164 * The resource URLs of the [managed instance groups] 3165 * (/compute/docs/instance-groups/creating-groups-of-managed-instances) 3166 * associated with blue pool. 3167 * </pre> 3168 * 3169 * <code>repeated string blue_instance_group_urls = 2;</code> 3170 * 3171 * @param index The index of the value to return. 3172 * @return The bytes of the blueInstanceGroupUrls at the given index. 3173 */ getBlueInstanceGroupUrlsBytes(int index)3174 public com.google.protobuf.ByteString getBlueInstanceGroupUrlsBytes(int index) { 3175 return blueInstanceGroupUrls_.getByteString(index); 3176 } 3177 /** 3178 * 3179 * 3180 * <pre> 3181 * The resource URLs of the [managed instance groups] 3182 * (/compute/docs/instance-groups/creating-groups-of-managed-instances) 3183 * associated with blue pool. 3184 * </pre> 3185 * 3186 * <code>repeated string blue_instance_group_urls = 2;</code> 3187 * 3188 * @param index The index to set the value at. 3189 * @param value The blueInstanceGroupUrls to set. 3190 * @return This builder for chaining. 3191 */ setBlueInstanceGroupUrls(int index, java.lang.String value)3192 public Builder setBlueInstanceGroupUrls(int index, java.lang.String value) { 3193 if (value == null) { 3194 throw new NullPointerException(); 3195 } 3196 ensureBlueInstanceGroupUrlsIsMutable(); 3197 blueInstanceGroupUrls_.set(index, value); 3198 onChanged(); 3199 return this; 3200 } 3201 /** 3202 * 3203 * 3204 * <pre> 3205 * The resource URLs of the [managed instance groups] 3206 * (/compute/docs/instance-groups/creating-groups-of-managed-instances) 3207 * associated with blue pool. 3208 * </pre> 3209 * 3210 * <code>repeated string blue_instance_group_urls = 2;</code> 3211 * 3212 * @param value The blueInstanceGroupUrls to add. 3213 * @return This builder for chaining. 3214 */ addBlueInstanceGroupUrls(java.lang.String value)3215 public Builder addBlueInstanceGroupUrls(java.lang.String value) { 3216 if (value == null) { 3217 throw new NullPointerException(); 3218 } 3219 ensureBlueInstanceGroupUrlsIsMutable(); 3220 blueInstanceGroupUrls_.add(value); 3221 onChanged(); 3222 return this; 3223 } 3224 /** 3225 * 3226 * 3227 * <pre> 3228 * The resource URLs of the [managed instance groups] 3229 * (/compute/docs/instance-groups/creating-groups-of-managed-instances) 3230 * associated with blue pool. 3231 * </pre> 3232 * 3233 * <code>repeated string blue_instance_group_urls = 2;</code> 3234 * 3235 * @param values The blueInstanceGroupUrls to add. 3236 * @return This builder for chaining. 3237 */ addAllBlueInstanceGroupUrls(java.lang.Iterable<java.lang.String> values)3238 public Builder addAllBlueInstanceGroupUrls(java.lang.Iterable<java.lang.String> values) { 3239 ensureBlueInstanceGroupUrlsIsMutable(); 3240 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blueInstanceGroupUrls_); 3241 onChanged(); 3242 return this; 3243 } 3244 /** 3245 * 3246 * 3247 * <pre> 3248 * The resource URLs of the [managed instance groups] 3249 * (/compute/docs/instance-groups/creating-groups-of-managed-instances) 3250 * associated with blue pool. 3251 * </pre> 3252 * 3253 * <code>repeated string blue_instance_group_urls = 2;</code> 3254 * 3255 * @return This builder for chaining. 3256 */ clearBlueInstanceGroupUrls()3257 public Builder clearBlueInstanceGroupUrls() { 3258 blueInstanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; 3259 bitField0_ = (bitField0_ & ~0x00000002); 3260 onChanged(); 3261 return this; 3262 } 3263 /** 3264 * 3265 * 3266 * <pre> 3267 * The resource URLs of the [managed instance groups] 3268 * (/compute/docs/instance-groups/creating-groups-of-managed-instances) 3269 * associated with blue pool. 3270 * </pre> 3271 * 3272 * <code>repeated string blue_instance_group_urls = 2;</code> 3273 * 3274 * @param value The bytes of the blueInstanceGroupUrls to add. 3275 * @return This builder for chaining. 3276 */ addBlueInstanceGroupUrlsBytes(com.google.protobuf.ByteString value)3277 public Builder addBlueInstanceGroupUrlsBytes(com.google.protobuf.ByteString value) { 3278 if (value == null) { 3279 throw new NullPointerException(); 3280 } 3281 checkByteStringIsUtf8(value); 3282 ensureBlueInstanceGroupUrlsIsMutable(); 3283 blueInstanceGroupUrls_.add(value); 3284 onChanged(); 3285 return this; 3286 } 3287 3288 private com.google.protobuf.LazyStringList greenInstanceGroupUrls_ = 3289 com.google.protobuf.LazyStringArrayList.EMPTY; 3290 ensureGreenInstanceGroupUrlsIsMutable()3291 private void ensureGreenInstanceGroupUrlsIsMutable() { 3292 if (!((bitField0_ & 0x00000004) != 0)) { 3293 greenInstanceGroupUrls_ = 3294 new com.google.protobuf.LazyStringArrayList(greenInstanceGroupUrls_); 3295 bitField0_ |= 0x00000004; 3296 } 3297 } 3298 /** 3299 * 3300 * 3301 * <pre> 3302 * The resource URLs of the [managed instance groups] 3303 * (/compute/docs/instance-groups/creating-groups-of-managed-instances) 3304 * associated with green pool. 3305 * </pre> 3306 * 3307 * <code>repeated string green_instance_group_urls = 3;</code> 3308 * 3309 * @return A list containing the greenInstanceGroupUrls. 3310 */ getGreenInstanceGroupUrlsList()3311 public com.google.protobuf.ProtocolStringList getGreenInstanceGroupUrlsList() { 3312 return greenInstanceGroupUrls_.getUnmodifiableView(); 3313 } 3314 /** 3315 * 3316 * 3317 * <pre> 3318 * The resource URLs of the [managed instance groups] 3319 * (/compute/docs/instance-groups/creating-groups-of-managed-instances) 3320 * associated with green pool. 3321 * </pre> 3322 * 3323 * <code>repeated string green_instance_group_urls = 3;</code> 3324 * 3325 * @return The count of greenInstanceGroupUrls. 3326 */ getGreenInstanceGroupUrlsCount()3327 public int getGreenInstanceGroupUrlsCount() { 3328 return greenInstanceGroupUrls_.size(); 3329 } 3330 /** 3331 * 3332 * 3333 * <pre> 3334 * The resource URLs of the [managed instance groups] 3335 * (/compute/docs/instance-groups/creating-groups-of-managed-instances) 3336 * associated with green pool. 3337 * </pre> 3338 * 3339 * <code>repeated string green_instance_group_urls = 3;</code> 3340 * 3341 * @param index The index of the element to return. 3342 * @return The greenInstanceGroupUrls at the given index. 3343 */ getGreenInstanceGroupUrls(int index)3344 public java.lang.String getGreenInstanceGroupUrls(int index) { 3345 return greenInstanceGroupUrls_.get(index); 3346 } 3347 /** 3348 * 3349 * 3350 * <pre> 3351 * The resource URLs of the [managed instance groups] 3352 * (/compute/docs/instance-groups/creating-groups-of-managed-instances) 3353 * associated with green pool. 3354 * </pre> 3355 * 3356 * <code>repeated string green_instance_group_urls = 3;</code> 3357 * 3358 * @param index The index of the value to return. 3359 * @return The bytes of the greenInstanceGroupUrls at the given index. 3360 */ getGreenInstanceGroupUrlsBytes(int index)3361 public com.google.protobuf.ByteString getGreenInstanceGroupUrlsBytes(int index) { 3362 return greenInstanceGroupUrls_.getByteString(index); 3363 } 3364 /** 3365 * 3366 * 3367 * <pre> 3368 * The resource URLs of the [managed instance groups] 3369 * (/compute/docs/instance-groups/creating-groups-of-managed-instances) 3370 * associated with green pool. 3371 * </pre> 3372 * 3373 * <code>repeated string green_instance_group_urls = 3;</code> 3374 * 3375 * @param index The index to set the value at. 3376 * @param value The greenInstanceGroupUrls to set. 3377 * @return This builder for chaining. 3378 */ setGreenInstanceGroupUrls(int index, java.lang.String value)3379 public Builder setGreenInstanceGroupUrls(int index, java.lang.String value) { 3380 if (value == null) { 3381 throw new NullPointerException(); 3382 } 3383 ensureGreenInstanceGroupUrlsIsMutable(); 3384 greenInstanceGroupUrls_.set(index, value); 3385 onChanged(); 3386 return this; 3387 } 3388 /** 3389 * 3390 * 3391 * <pre> 3392 * The resource URLs of the [managed instance groups] 3393 * (/compute/docs/instance-groups/creating-groups-of-managed-instances) 3394 * associated with green pool. 3395 * </pre> 3396 * 3397 * <code>repeated string green_instance_group_urls = 3;</code> 3398 * 3399 * @param value The greenInstanceGroupUrls to add. 3400 * @return This builder for chaining. 3401 */ addGreenInstanceGroupUrls(java.lang.String value)3402 public Builder addGreenInstanceGroupUrls(java.lang.String value) { 3403 if (value == null) { 3404 throw new NullPointerException(); 3405 } 3406 ensureGreenInstanceGroupUrlsIsMutable(); 3407 greenInstanceGroupUrls_.add(value); 3408 onChanged(); 3409 return this; 3410 } 3411 /** 3412 * 3413 * 3414 * <pre> 3415 * The resource URLs of the [managed instance groups] 3416 * (/compute/docs/instance-groups/creating-groups-of-managed-instances) 3417 * associated with green pool. 3418 * </pre> 3419 * 3420 * <code>repeated string green_instance_group_urls = 3;</code> 3421 * 3422 * @param values The greenInstanceGroupUrls to add. 3423 * @return This builder for chaining. 3424 */ addAllGreenInstanceGroupUrls(java.lang.Iterable<java.lang.String> values)3425 public Builder addAllGreenInstanceGroupUrls(java.lang.Iterable<java.lang.String> values) { 3426 ensureGreenInstanceGroupUrlsIsMutable(); 3427 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, greenInstanceGroupUrls_); 3428 onChanged(); 3429 return this; 3430 } 3431 /** 3432 * 3433 * 3434 * <pre> 3435 * The resource URLs of the [managed instance groups] 3436 * (/compute/docs/instance-groups/creating-groups-of-managed-instances) 3437 * associated with green pool. 3438 * </pre> 3439 * 3440 * <code>repeated string green_instance_group_urls = 3;</code> 3441 * 3442 * @return This builder for chaining. 3443 */ clearGreenInstanceGroupUrls()3444 public Builder clearGreenInstanceGroupUrls() { 3445 greenInstanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; 3446 bitField0_ = (bitField0_ & ~0x00000004); 3447 onChanged(); 3448 return this; 3449 } 3450 /** 3451 * 3452 * 3453 * <pre> 3454 * The resource URLs of the [managed instance groups] 3455 * (/compute/docs/instance-groups/creating-groups-of-managed-instances) 3456 * associated with green pool. 3457 * </pre> 3458 * 3459 * <code>repeated string green_instance_group_urls = 3;</code> 3460 * 3461 * @param value The bytes of the greenInstanceGroupUrls to add. 3462 * @return This builder for chaining. 3463 */ addGreenInstanceGroupUrlsBytes(com.google.protobuf.ByteString value)3464 public Builder addGreenInstanceGroupUrlsBytes(com.google.protobuf.ByteString value) { 3465 if (value == null) { 3466 throw new NullPointerException(); 3467 } 3468 checkByteStringIsUtf8(value); 3469 ensureGreenInstanceGroupUrlsIsMutable(); 3470 greenInstanceGroupUrls_.add(value); 3471 onChanged(); 3472 return this; 3473 } 3474 3475 private java.lang.Object bluePoolDeletionStartTime_ = ""; 3476 /** 3477 * 3478 * 3479 * <pre> 3480 * Time to start deleting blue pool to complete blue-green upgrade, 3481 * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. 3482 * </pre> 3483 * 3484 * <code>string blue_pool_deletion_start_time = 4;</code> 3485 * 3486 * @return The bluePoolDeletionStartTime. 3487 */ getBluePoolDeletionStartTime()3488 public java.lang.String getBluePoolDeletionStartTime() { 3489 java.lang.Object ref = bluePoolDeletionStartTime_; 3490 if (!(ref instanceof java.lang.String)) { 3491 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 3492 java.lang.String s = bs.toStringUtf8(); 3493 bluePoolDeletionStartTime_ = s; 3494 return s; 3495 } else { 3496 return (java.lang.String) ref; 3497 } 3498 } 3499 /** 3500 * 3501 * 3502 * <pre> 3503 * Time to start deleting blue pool to complete blue-green upgrade, 3504 * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. 3505 * </pre> 3506 * 3507 * <code>string blue_pool_deletion_start_time = 4;</code> 3508 * 3509 * @return The bytes for bluePoolDeletionStartTime. 3510 */ getBluePoolDeletionStartTimeBytes()3511 public com.google.protobuf.ByteString getBluePoolDeletionStartTimeBytes() { 3512 java.lang.Object ref = bluePoolDeletionStartTime_; 3513 if (ref instanceof String) { 3514 com.google.protobuf.ByteString b = 3515 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 3516 bluePoolDeletionStartTime_ = b; 3517 return b; 3518 } else { 3519 return (com.google.protobuf.ByteString) ref; 3520 } 3521 } 3522 /** 3523 * 3524 * 3525 * <pre> 3526 * Time to start deleting blue pool to complete blue-green upgrade, 3527 * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. 3528 * </pre> 3529 * 3530 * <code>string blue_pool_deletion_start_time = 4;</code> 3531 * 3532 * @param value The bluePoolDeletionStartTime to set. 3533 * @return This builder for chaining. 3534 */ setBluePoolDeletionStartTime(java.lang.String value)3535 public Builder setBluePoolDeletionStartTime(java.lang.String value) { 3536 if (value == null) { 3537 throw new NullPointerException(); 3538 } 3539 bluePoolDeletionStartTime_ = value; 3540 bitField0_ |= 0x00000008; 3541 onChanged(); 3542 return this; 3543 } 3544 /** 3545 * 3546 * 3547 * <pre> 3548 * Time to start deleting blue pool to complete blue-green upgrade, 3549 * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. 3550 * </pre> 3551 * 3552 * <code>string blue_pool_deletion_start_time = 4;</code> 3553 * 3554 * @return This builder for chaining. 3555 */ clearBluePoolDeletionStartTime()3556 public Builder clearBluePoolDeletionStartTime() { 3557 bluePoolDeletionStartTime_ = getDefaultInstance().getBluePoolDeletionStartTime(); 3558 bitField0_ = (bitField0_ & ~0x00000008); 3559 onChanged(); 3560 return this; 3561 } 3562 /** 3563 * 3564 * 3565 * <pre> 3566 * Time to start deleting blue pool to complete blue-green upgrade, 3567 * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. 3568 * </pre> 3569 * 3570 * <code>string blue_pool_deletion_start_time = 4;</code> 3571 * 3572 * @param value The bytes for bluePoolDeletionStartTime to set. 3573 * @return This builder for chaining. 3574 */ setBluePoolDeletionStartTimeBytes(com.google.protobuf.ByteString value)3575 public Builder setBluePoolDeletionStartTimeBytes(com.google.protobuf.ByteString value) { 3576 if (value == null) { 3577 throw new NullPointerException(); 3578 } 3579 checkByteStringIsUtf8(value); 3580 bluePoolDeletionStartTime_ = value; 3581 bitField0_ |= 0x00000008; 3582 onChanged(); 3583 return this; 3584 } 3585 3586 private java.lang.Object greenPoolVersion_ = ""; 3587 /** 3588 * 3589 * 3590 * <pre> 3591 * Version of green pool. 3592 * </pre> 3593 * 3594 * <code>string green_pool_version = 5;</code> 3595 * 3596 * @return The greenPoolVersion. 3597 */ getGreenPoolVersion()3598 public java.lang.String getGreenPoolVersion() { 3599 java.lang.Object ref = greenPoolVersion_; 3600 if (!(ref instanceof java.lang.String)) { 3601 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 3602 java.lang.String s = bs.toStringUtf8(); 3603 greenPoolVersion_ = s; 3604 return s; 3605 } else { 3606 return (java.lang.String) ref; 3607 } 3608 } 3609 /** 3610 * 3611 * 3612 * <pre> 3613 * Version of green pool. 3614 * </pre> 3615 * 3616 * <code>string green_pool_version = 5;</code> 3617 * 3618 * @return The bytes for greenPoolVersion. 3619 */ getGreenPoolVersionBytes()3620 public com.google.protobuf.ByteString getGreenPoolVersionBytes() { 3621 java.lang.Object ref = greenPoolVersion_; 3622 if (ref instanceof String) { 3623 com.google.protobuf.ByteString b = 3624 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 3625 greenPoolVersion_ = b; 3626 return b; 3627 } else { 3628 return (com.google.protobuf.ByteString) ref; 3629 } 3630 } 3631 /** 3632 * 3633 * 3634 * <pre> 3635 * Version of green pool. 3636 * </pre> 3637 * 3638 * <code>string green_pool_version = 5;</code> 3639 * 3640 * @param value The greenPoolVersion to set. 3641 * @return This builder for chaining. 3642 */ setGreenPoolVersion(java.lang.String value)3643 public Builder setGreenPoolVersion(java.lang.String value) { 3644 if (value == null) { 3645 throw new NullPointerException(); 3646 } 3647 greenPoolVersion_ = value; 3648 bitField0_ |= 0x00000010; 3649 onChanged(); 3650 return this; 3651 } 3652 /** 3653 * 3654 * 3655 * <pre> 3656 * Version of green pool. 3657 * </pre> 3658 * 3659 * <code>string green_pool_version = 5;</code> 3660 * 3661 * @return This builder for chaining. 3662 */ clearGreenPoolVersion()3663 public Builder clearGreenPoolVersion() { 3664 greenPoolVersion_ = getDefaultInstance().getGreenPoolVersion(); 3665 bitField0_ = (bitField0_ & ~0x00000010); 3666 onChanged(); 3667 return this; 3668 } 3669 /** 3670 * 3671 * 3672 * <pre> 3673 * Version of green pool. 3674 * </pre> 3675 * 3676 * <code>string green_pool_version = 5;</code> 3677 * 3678 * @param value The bytes for greenPoolVersion to set. 3679 * @return This builder for chaining. 3680 */ setGreenPoolVersionBytes(com.google.protobuf.ByteString value)3681 public Builder setGreenPoolVersionBytes(com.google.protobuf.ByteString value) { 3682 if (value == null) { 3683 throw new NullPointerException(); 3684 } 3685 checkByteStringIsUtf8(value); 3686 greenPoolVersion_ = value; 3687 bitField0_ |= 0x00000010; 3688 onChanged(); 3689 return this; 3690 } 3691 3692 @java.lang.Override setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)3693 public final Builder setUnknownFields( 3694 final com.google.protobuf.UnknownFieldSet unknownFields) { 3695 return super.setUnknownFields(unknownFields); 3696 } 3697 3698 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)3699 public final Builder mergeUnknownFields( 3700 final com.google.protobuf.UnknownFieldSet unknownFields) { 3701 return super.mergeUnknownFields(unknownFields); 3702 } 3703 3704 // @@protoc_insertion_point(builder_scope:google.container.v1.NodePool.UpdateInfo.BlueGreenInfo) 3705 } 3706 3707 // @@protoc_insertion_point(class_scope:google.container.v1.NodePool.UpdateInfo.BlueGreenInfo) 3708 private static final com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo 3709 DEFAULT_INSTANCE; 3710 3711 static { 3712 DEFAULT_INSTANCE = new com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo(); 3713 } 3714 getDefaultInstance()3715 public static com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo getDefaultInstance() { 3716 return DEFAULT_INSTANCE; 3717 } 3718 3719 private static final com.google.protobuf.Parser<BlueGreenInfo> PARSER = 3720 new com.google.protobuf.AbstractParser<BlueGreenInfo>() { 3721 @java.lang.Override 3722 public BlueGreenInfo parsePartialFrom( 3723 com.google.protobuf.CodedInputStream input, 3724 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3725 throws com.google.protobuf.InvalidProtocolBufferException { 3726 Builder builder = newBuilder(); 3727 try { 3728 builder.mergeFrom(input, extensionRegistry); 3729 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 3730 throw e.setUnfinishedMessage(builder.buildPartial()); 3731 } catch (com.google.protobuf.UninitializedMessageException e) { 3732 throw e.asInvalidProtocolBufferException() 3733 .setUnfinishedMessage(builder.buildPartial()); 3734 } catch (java.io.IOException e) { 3735 throw new com.google.protobuf.InvalidProtocolBufferException(e) 3736 .setUnfinishedMessage(builder.buildPartial()); 3737 } 3738 return builder.buildPartial(); 3739 } 3740 }; 3741 parser()3742 public static com.google.protobuf.Parser<BlueGreenInfo> parser() { 3743 return PARSER; 3744 } 3745 3746 @java.lang.Override getParserForType()3747 public com.google.protobuf.Parser<BlueGreenInfo> getParserForType() { 3748 return PARSER; 3749 } 3750 3751 @java.lang.Override getDefaultInstanceForType()3752 public com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo getDefaultInstanceForType() { 3753 return DEFAULT_INSTANCE; 3754 } 3755 } 3756 3757 public static final int BLUE_GREEN_INFO_FIELD_NUMBER = 1; 3758 private com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blueGreenInfo_; 3759 /** 3760 * 3761 * 3762 * <pre> 3763 * Information of a blue-green upgrade. 3764 * </pre> 3765 * 3766 * <code>.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1;</code> 3767 * 3768 * @return Whether the blueGreenInfo field is set. 3769 */ 3770 @java.lang.Override hasBlueGreenInfo()3771 public boolean hasBlueGreenInfo() { 3772 return blueGreenInfo_ != null; 3773 } 3774 /** 3775 * 3776 * 3777 * <pre> 3778 * Information of a blue-green upgrade. 3779 * </pre> 3780 * 3781 * <code>.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1;</code> 3782 * 3783 * @return The blueGreenInfo. 3784 */ 3785 @java.lang.Override getBlueGreenInfo()3786 public com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo getBlueGreenInfo() { 3787 return blueGreenInfo_ == null 3788 ? com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.getDefaultInstance() 3789 : blueGreenInfo_; 3790 } 3791 /** 3792 * 3793 * 3794 * <pre> 3795 * Information of a blue-green upgrade. 3796 * </pre> 3797 * 3798 * <code>.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1;</code> 3799 */ 3800 @java.lang.Override 3801 public com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfoOrBuilder getBlueGreenInfoOrBuilder()3802 getBlueGreenInfoOrBuilder() { 3803 return blueGreenInfo_ == null 3804 ? com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.getDefaultInstance() 3805 : blueGreenInfo_; 3806 } 3807 3808 private byte memoizedIsInitialized = -1; 3809 3810 @java.lang.Override isInitialized()3811 public final boolean isInitialized() { 3812 byte isInitialized = memoizedIsInitialized; 3813 if (isInitialized == 1) return true; 3814 if (isInitialized == 0) return false; 3815 3816 memoizedIsInitialized = 1; 3817 return true; 3818 } 3819 3820 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)3821 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 3822 if (blueGreenInfo_ != null) { 3823 output.writeMessage(1, getBlueGreenInfo()); 3824 } 3825 getUnknownFields().writeTo(output); 3826 } 3827 3828 @java.lang.Override getSerializedSize()3829 public int getSerializedSize() { 3830 int size = memoizedSize; 3831 if (size != -1) return size; 3832 3833 size = 0; 3834 if (blueGreenInfo_ != null) { 3835 size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBlueGreenInfo()); 3836 } 3837 size += getUnknownFields().getSerializedSize(); 3838 memoizedSize = size; 3839 return size; 3840 } 3841 3842 @java.lang.Override equals(final java.lang.Object obj)3843 public boolean equals(final java.lang.Object obj) { 3844 if (obj == this) { 3845 return true; 3846 } 3847 if (!(obj instanceof com.google.container.v1.NodePool.UpdateInfo)) { 3848 return super.equals(obj); 3849 } 3850 com.google.container.v1.NodePool.UpdateInfo other = 3851 (com.google.container.v1.NodePool.UpdateInfo) obj; 3852 3853 if (hasBlueGreenInfo() != other.hasBlueGreenInfo()) return false; 3854 if (hasBlueGreenInfo()) { 3855 if (!getBlueGreenInfo().equals(other.getBlueGreenInfo())) return false; 3856 } 3857 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 3858 return true; 3859 } 3860 3861 @java.lang.Override hashCode()3862 public int hashCode() { 3863 if (memoizedHashCode != 0) { 3864 return memoizedHashCode; 3865 } 3866 int hash = 41; 3867 hash = (19 * hash) + getDescriptor().hashCode(); 3868 if (hasBlueGreenInfo()) { 3869 hash = (37 * hash) + BLUE_GREEN_INFO_FIELD_NUMBER; 3870 hash = (53 * hash) + getBlueGreenInfo().hashCode(); 3871 } 3872 hash = (29 * hash) + getUnknownFields().hashCode(); 3873 memoizedHashCode = hash; 3874 return hash; 3875 } 3876 parseFrom(java.nio.ByteBuffer data)3877 public static com.google.container.v1.NodePool.UpdateInfo parseFrom(java.nio.ByteBuffer data) 3878 throws com.google.protobuf.InvalidProtocolBufferException { 3879 return PARSER.parseFrom(data); 3880 } 3881 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3882 public static com.google.container.v1.NodePool.UpdateInfo parseFrom( 3883 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3884 throws com.google.protobuf.InvalidProtocolBufferException { 3885 return PARSER.parseFrom(data, extensionRegistry); 3886 } 3887 parseFrom( com.google.protobuf.ByteString data)3888 public static com.google.container.v1.NodePool.UpdateInfo parseFrom( 3889 com.google.protobuf.ByteString data) 3890 throws com.google.protobuf.InvalidProtocolBufferException { 3891 return PARSER.parseFrom(data); 3892 } 3893 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3894 public static com.google.container.v1.NodePool.UpdateInfo parseFrom( 3895 com.google.protobuf.ByteString data, 3896 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3897 throws com.google.protobuf.InvalidProtocolBufferException { 3898 return PARSER.parseFrom(data, extensionRegistry); 3899 } 3900 parseFrom(byte[] data)3901 public static com.google.container.v1.NodePool.UpdateInfo parseFrom(byte[] data) 3902 throws com.google.protobuf.InvalidProtocolBufferException { 3903 return PARSER.parseFrom(data); 3904 } 3905 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3906 public static com.google.container.v1.NodePool.UpdateInfo parseFrom( 3907 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3908 throws com.google.protobuf.InvalidProtocolBufferException { 3909 return PARSER.parseFrom(data, extensionRegistry); 3910 } 3911 parseFrom(java.io.InputStream input)3912 public static com.google.container.v1.NodePool.UpdateInfo parseFrom(java.io.InputStream input) 3913 throws java.io.IOException { 3914 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 3915 } 3916 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3917 public static com.google.container.v1.NodePool.UpdateInfo parseFrom( 3918 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3919 throws java.io.IOException { 3920 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 3921 PARSER, input, extensionRegistry); 3922 } 3923 parseDelimitedFrom( java.io.InputStream input)3924 public static com.google.container.v1.NodePool.UpdateInfo parseDelimitedFrom( 3925 java.io.InputStream input) throws java.io.IOException { 3926 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 3927 } 3928 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3929 public static com.google.container.v1.NodePool.UpdateInfo parseDelimitedFrom( 3930 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3931 throws java.io.IOException { 3932 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 3933 PARSER, input, extensionRegistry); 3934 } 3935 parseFrom( com.google.protobuf.CodedInputStream input)3936 public static com.google.container.v1.NodePool.UpdateInfo parseFrom( 3937 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 3938 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 3939 } 3940 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3941 public static com.google.container.v1.NodePool.UpdateInfo parseFrom( 3942 com.google.protobuf.CodedInputStream input, 3943 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3944 throws java.io.IOException { 3945 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 3946 PARSER, input, extensionRegistry); 3947 } 3948 3949 @java.lang.Override newBuilderForType()3950 public Builder newBuilderForType() { 3951 return newBuilder(); 3952 } 3953 newBuilder()3954 public static Builder newBuilder() { 3955 return DEFAULT_INSTANCE.toBuilder(); 3956 } 3957 newBuilder(com.google.container.v1.NodePool.UpdateInfo prototype)3958 public static Builder newBuilder(com.google.container.v1.NodePool.UpdateInfo prototype) { 3959 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 3960 } 3961 3962 @java.lang.Override toBuilder()3963 public Builder toBuilder() { 3964 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 3965 } 3966 3967 @java.lang.Override newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)3968 protected Builder newBuilderForType( 3969 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 3970 Builder builder = new Builder(parent); 3971 return builder; 3972 } 3973 /** 3974 * 3975 * 3976 * <pre> 3977 * UpdateInfo contains resource (instance groups, etc), status and other 3978 * intermediate information relevant to a node pool upgrade. 3979 * </pre> 3980 * 3981 * Protobuf type {@code google.container.v1.NodePool.UpdateInfo} 3982 */ 3983 public static final class Builder 3984 extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 3985 implements 3986 // @@protoc_insertion_point(builder_implements:google.container.v1.NodePool.UpdateInfo) 3987 com.google.container.v1.NodePool.UpdateInfoOrBuilder { getDescriptor()3988 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 3989 return com.google.container.v1.ClusterServiceProto 3990 .internal_static_google_container_v1_NodePool_UpdateInfo_descriptor; 3991 } 3992 3993 @java.lang.Override 3994 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()3995 internalGetFieldAccessorTable() { 3996 return com.google.container.v1.ClusterServiceProto 3997 .internal_static_google_container_v1_NodePool_UpdateInfo_fieldAccessorTable 3998 .ensureFieldAccessorsInitialized( 3999 com.google.container.v1.NodePool.UpdateInfo.class, 4000 com.google.container.v1.NodePool.UpdateInfo.Builder.class); 4001 } 4002 4003 // Construct using com.google.container.v1.NodePool.UpdateInfo.newBuilder() Builder()4004 private Builder() {} 4005 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)4006 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 4007 super(parent); 4008 } 4009 4010 @java.lang.Override clear()4011 public Builder clear() { 4012 super.clear(); 4013 bitField0_ = 0; 4014 blueGreenInfo_ = null; 4015 if (blueGreenInfoBuilder_ != null) { 4016 blueGreenInfoBuilder_.dispose(); 4017 blueGreenInfoBuilder_ = null; 4018 } 4019 return this; 4020 } 4021 4022 @java.lang.Override getDescriptorForType()4023 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 4024 return com.google.container.v1.ClusterServiceProto 4025 .internal_static_google_container_v1_NodePool_UpdateInfo_descriptor; 4026 } 4027 4028 @java.lang.Override getDefaultInstanceForType()4029 public com.google.container.v1.NodePool.UpdateInfo getDefaultInstanceForType() { 4030 return com.google.container.v1.NodePool.UpdateInfo.getDefaultInstance(); 4031 } 4032 4033 @java.lang.Override build()4034 public com.google.container.v1.NodePool.UpdateInfo build() { 4035 com.google.container.v1.NodePool.UpdateInfo result = buildPartial(); 4036 if (!result.isInitialized()) { 4037 throw newUninitializedMessageException(result); 4038 } 4039 return result; 4040 } 4041 4042 @java.lang.Override buildPartial()4043 public com.google.container.v1.NodePool.UpdateInfo buildPartial() { 4044 com.google.container.v1.NodePool.UpdateInfo result = 4045 new com.google.container.v1.NodePool.UpdateInfo(this); 4046 if (bitField0_ != 0) { 4047 buildPartial0(result); 4048 } 4049 onBuilt(); 4050 return result; 4051 } 4052 buildPartial0(com.google.container.v1.NodePool.UpdateInfo result)4053 private void buildPartial0(com.google.container.v1.NodePool.UpdateInfo result) { 4054 int from_bitField0_ = bitField0_; 4055 if (((from_bitField0_ & 0x00000001) != 0)) { 4056 result.blueGreenInfo_ = 4057 blueGreenInfoBuilder_ == null ? blueGreenInfo_ : blueGreenInfoBuilder_.build(); 4058 } 4059 } 4060 4061 @java.lang.Override clone()4062 public Builder clone() { 4063 return super.clone(); 4064 } 4065 4066 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)4067 public Builder setField( 4068 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 4069 return super.setField(field, value); 4070 } 4071 4072 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)4073 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 4074 return super.clearField(field); 4075 } 4076 4077 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)4078 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 4079 return super.clearOneof(oneof); 4080 } 4081 4082 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)4083 public Builder setRepeatedField( 4084 com.google.protobuf.Descriptors.FieldDescriptor field, 4085 int index, 4086 java.lang.Object value) { 4087 return super.setRepeatedField(field, index, value); 4088 } 4089 4090 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)4091 public Builder addRepeatedField( 4092 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 4093 return super.addRepeatedField(field, value); 4094 } 4095 4096 @java.lang.Override mergeFrom(com.google.protobuf.Message other)4097 public Builder mergeFrom(com.google.protobuf.Message other) { 4098 if (other instanceof com.google.container.v1.NodePool.UpdateInfo) { 4099 return mergeFrom((com.google.container.v1.NodePool.UpdateInfo) other); 4100 } else { 4101 super.mergeFrom(other); 4102 return this; 4103 } 4104 } 4105 mergeFrom(com.google.container.v1.NodePool.UpdateInfo other)4106 public Builder mergeFrom(com.google.container.v1.NodePool.UpdateInfo other) { 4107 if (other == com.google.container.v1.NodePool.UpdateInfo.getDefaultInstance()) return this; 4108 if (other.hasBlueGreenInfo()) { 4109 mergeBlueGreenInfo(other.getBlueGreenInfo()); 4110 } 4111 this.mergeUnknownFields(other.getUnknownFields()); 4112 onChanged(); 4113 return this; 4114 } 4115 4116 @java.lang.Override isInitialized()4117 public final boolean isInitialized() { 4118 return true; 4119 } 4120 4121 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4122 public Builder mergeFrom( 4123 com.google.protobuf.CodedInputStream input, 4124 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4125 throws java.io.IOException { 4126 if (extensionRegistry == null) { 4127 throw new java.lang.NullPointerException(); 4128 } 4129 try { 4130 boolean done = false; 4131 while (!done) { 4132 int tag = input.readTag(); 4133 switch (tag) { 4134 case 0: 4135 done = true; 4136 break; 4137 case 10: 4138 { 4139 input.readMessage(getBlueGreenInfoFieldBuilder().getBuilder(), extensionRegistry); 4140 bitField0_ |= 0x00000001; 4141 break; 4142 } // case 10 4143 default: 4144 { 4145 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 4146 done = true; // was an endgroup tag 4147 } 4148 break; 4149 } // default: 4150 } // switch (tag) 4151 } // while (!done) 4152 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 4153 throw e.unwrapIOException(); 4154 } finally { 4155 onChanged(); 4156 } // finally 4157 return this; 4158 } 4159 4160 private int bitField0_; 4161 4162 private com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blueGreenInfo_; 4163 private com.google.protobuf.SingleFieldBuilderV3< 4164 com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo, 4165 com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Builder, 4166 com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfoOrBuilder> 4167 blueGreenInfoBuilder_; 4168 /** 4169 * 4170 * 4171 * <pre> 4172 * Information of a blue-green upgrade. 4173 * </pre> 4174 * 4175 * <code>.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1;</code> 4176 * 4177 * @return Whether the blueGreenInfo field is set. 4178 */ hasBlueGreenInfo()4179 public boolean hasBlueGreenInfo() { 4180 return ((bitField0_ & 0x00000001) != 0); 4181 } 4182 /** 4183 * 4184 * 4185 * <pre> 4186 * Information of a blue-green upgrade. 4187 * </pre> 4188 * 4189 * <code>.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1;</code> 4190 * 4191 * @return The blueGreenInfo. 4192 */ getBlueGreenInfo()4193 public com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo getBlueGreenInfo() { 4194 if (blueGreenInfoBuilder_ == null) { 4195 return blueGreenInfo_ == null 4196 ? com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.getDefaultInstance() 4197 : blueGreenInfo_; 4198 } else { 4199 return blueGreenInfoBuilder_.getMessage(); 4200 } 4201 } 4202 /** 4203 * 4204 * 4205 * <pre> 4206 * Information of a blue-green upgrade. 4207 * </pre> 4208 * 4209 * <code>.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1;</code> 4210 */ setBlueGreenInfo( com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo value)4211 public Builder setBlueGreenInfo( 4212 com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo value) { 4213 if (blueGreenInfoBuilder_ == null) { 4214 if (value == null) { 4215 throw new NullPointerException(); 4216 } 4217 blueGreenInfo_ = value; 4218 } else { 4219 blueGreenInfoBuilder_.setMessage(value); 4220 } 4221 bitField0_ |= 0x00000001; 4222 onChanged(); 4223 return this; 4224 } 4225 /** 4226 * 4227 * 4228 * <pre> 4229 * Information of a blue-green upgrade. 4230 * </pre> 4231 * 4232 * <code>.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1;</code> 4233 */ setBlueGreenInfo( com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Builder builderForValue)4234 public Builder setBlueGreenInfo( 4235 com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Builder builderForValue) { 4236 if (blueGreenInfoBuilder_ == null) { 4237 blueGreenInfo_ = builderForValue.build(); 4238 } else { 4239 blueGreenInfoBuilder_.setMessage(builderForValue.build()); 4240 } 4241 bitField0_ |= 0x00000001; 4242 onChanged(); 4243 return this; 4244 } 4245 /** 4246 * 4247 * 4248 * <pre> 4249 * Information of a blue-green upgrade. 4250 * </pre> 4251 * 4252 * <code>.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1;</code> 4253 */ mergeBlueGreenInfo( com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo value)4254 public Builder mergeBlueGreenInfo( 4255 com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo value) { 4256 if (blueGreenInfoBuilder_ == null) { 4257 if (((bitField0_ & 0x00000001) != 0) 4258 && blueGreenInfo_ != null 4259 && blueGreenInfo_ 4260 != com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo 4261 .getDefaultInstance()) { 4262 getBlueGreenInfoBuilder().mergeFrom(value); 4263 } else { 4264 blueGreenInfo_ = value; 4265 } 4266 } else { 4267 blueGreenInfoBuilder_.mergeFrom(value); 4268 } 4269 bitField0_ |= 0x00000001; 4270 onChanged(); 4271 return this; 4272 } 4273 /** 4274 * 4275 * 4276 * <pre> 4277 * Information of a blue-green upgrade. 4278 * </pre> 4279 * 4280 * <code>.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1;</code> 4281 */ clearBlueGreenInfo()4282 public Builder clearBlueGreenInfo() { 4283 bitField0_ = (bitField0_ & ~0x00000001); 4284 blueGreenInfo_ = null; 4285 if (blueGreenInfoBuilder_ != null) { 4286 blueGreenInfoBuilder_.dispose(); 4287 blueGreenInfoBuilder_ = null; 4288 } 4289 onChanged(); 4290 return this; 4291 } 4292 /** 4293 * 4294 * 4295 * <pre> 4296 * Information of a blue-green upgrade. 4297 * </pre> 4298 * 4299 * <code>.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1;</code> 4300 */ 4301 public com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Builder getBlueGreenInfoBuilder()4302 getBlueGreenInfoBuilder() { 4303 bitField0_ |= 0x00000001; 4304 onChanged(); 4305 return getBlueGreenInfoFieldBuilder().getBuilder(); 4306 } 4307 /** 4308 * 4309 * 4310 * <pre> 4311 * Information of a blue-green upgrade. 4312 * </pre> 4313 * 4314 * <code>.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1;</code> 4315 */ 4316 public com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfoOrBuilder getBlueGreenInfoOrBuilder()4317 getBlueGreenInfoOrBuilder() { 4318 if (blueGreenInfoBuilder_ != null) { 4319 return blueGreenInfoBuilder_.getMessageOrBuilder(); 4320 } else { 4321 return blueGreenInfo_ == null 4322 ? com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.getDefaultInstance() 4323 : blueGreenInfo_; 4324 } 4325 } 4326 /** 4327 * 4328 * 4329 * <pre> 4330 * Information of a blue-green upgrade. 4331 * </pre> 4332 * 4333 * <code>.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1;</code> 4334 */ 4335 private com.google.protobuf.SingleFieldBuilderV3< 4336 com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo, 4337 com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Builder, 4338 com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfoOrBuilder> getBlueGreenInfoFieldBuilder()4339 getBlueGreenInfoFieldBuilder() { 4340 if (blueGreenInfoBuilder_ == null) { 4341 blueGreenInfoBuilder_ = 4342 new com.google.protobuf.SingleFieldBuilderV3< 4343 com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo, 4344 com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Builder, 4345 com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfoOrBuilder>( 4346 getBlueGreenInfo(), getParentForChildren(), isClean()); 4347 blueGreenInfo_ = null; 4348 } 4349 return blueGreenInfoBuilder_; 4350 } 4351 4352 @java.lang.Override setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)4353 public final Builder setUnknownFields( 4354 final com.google.protobuf.UnknownFieldSet unknownFields) { 4355 return super.setUnknownFields(unknownFields); 4356 } 4357 4358 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)4359 public final Builder mergeUnknownFields( 4360 final com.google.protobuf.UnknownFieldSet unknownFields) { 4361 return super.mergeUnknownFields(unknownFields); 4362 } 4363 4364 // @@protoc_insertion_point(builder_scope:google.container.v1.NodePool.UpdateInfo) 4365 } 4366 4367 // @@protoc_insertion_point(class_scope:google.container.v1.NodePool.UpdateInfo) 4368 private static final com.google.container.v1.NodePool.UpdateInfo DEFAULT_INSTANCE; 4369 4370 static { 4371 DEFAULT_INSTANCE = new com.google.container.v1.NodePool.UpdateInfo(); 4372 } 4373 getDefaultInstance()4374 public static com.google.container.v1.NodePool.UpdateInfo getDefaultInstance() { 4375 return DEFAULT_INSTANCE; 4376 } 4377 4378 private static final com.google.protobuf.Parser<UpdateInfo> PARSER = 4379 new com.google.protobuf.AbstractParser<UpdateInfo>() { 4380 @java.lang.Override 4381 public UpdateInfo parsePartialFrom( 4382 com.google.protobuf.CodedInputStream input, 4383 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4384 throws com.google.protobuf.InvalidProtocolBufferException { 4385 Builder builder = newBuilder(); 4386 try { 4387 builder.mergeFrom(input, extensionRegistry); 4388 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 4389 throw e.setUnfinishedMessage(builder.buildPartial()); 4390 } catch (com.google.protobuf.UninitializedMessageException e) { 4391 throw e.asInvalidProtocolBufferException() 4392 .setUnfinishedMessage(builder.buildPartial()); 4393 } catch (java.io.IOException e) { 4394 throw new com.google.protobuf.InvalidProtocolBufferException(e) 4395 .setUnfinishedMessage(builder.buildPartial()); 4396 } 4397 return builder.buildPartial(); 4398 } 4399 }; 4400 parser()4401 public static com.google.protobuf.Parser<UpdateInfo> parser() { 4402 return PARSER; 4403 } 4404 4405 @java.lang.Override getParserForType()4406 public com.google.protobuf.Parser<UpdateInfo> getParserForType() { 4407 return PARSER; 4408 } 4409 4410 @java.lang.Override getDefaultInstanceForType()4411 public com.google.container.v1.NodePool.UpdateInfo getDefaultInstanceForType() { 4412 return DEFAULT_INSTANCE; 4413 } 4414 } 4415 4416 public interface PlacementPolicyOrBuilder 4417 extends 4418 // @@protoc_insertion_point(interface_extends:google.container.v1.NodePool.PlacementPolicy) 4419 com.google.protobuf.MessageOrBuilder { 4420 4421 /** 4422 * 4423 * 4424 * <pre> 4425 * The type of placement. 4426 * </pre> 4427 * 4428 * <code>.google.container.v1.NodePool.PlacementPolicy.Type type = 1;</code> 4429 * 4430 * @return The enum numeric value on the wire for type. 4431 */ getTypeValue()4432 int getTypeValue(); 4433 /** 4434 * 4435 * 4436 * <pre> 4437 * The type of placement. 4438 * </pre> 4439 * 4440 * <code>.google.container.v1.NodePool.PlacementPolicy.Type type = 1;</code> 4441 * 4442 * @return The type. 4443 */ getType()4444 com.google.container.v1.NodePool.PlacementPolicy.Type getType(); 4445 } 4446 /** 4447 * 4448 * 4449 * <pre> 4450 * PlacementPolicy defines the placement policy used by the node pool. 4451 * </pre> 4452 * 4453 * Protobuf type {@code google.container.v1.NodePool.PlacementPolicy} 4454 */ 4455 public static final class PlacementPolicy extends com.google.protobuf.GeneratedMessageV3 4456 implements 4457 // @@protoc_insertion_point(message_implements:google.container.v1.NodePool.PlacementPolicy) 4458 PlacementPolicyOrBuilder { 4459 private static final long serialVersionUID = 0L; 4460 // Use PlacementPolicy.newBuilder() to construct. PlacementPolicy(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)4461 private PlacementPolicy(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 4462 super(builder); 4463 } 4464 PlacementPolicy()4465 private PlacementPolicy() { 4466 type_ = 0; 4467 } 4468 4469 @java.lang.Override 4470 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)4471 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 4472 return new PlacementPolicy(); 4473 } 4474 4475 @java.lang.Override getUnknownFields()4476 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 4477 return this.unknownFields; 4478 } 4479 getDescriptor()4480 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 4481 return com.google.container.v1.ClusterServiceProto 4482 .internal_static_google_container_v1_NodePool_PlacementPolicy_descriptor; 4483 } 4484 4485 @java.lang.Override 4486 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()4487 internalGetFieldAccessorTable() { 4488 return com.google.container.v1.ClusterServiceProto 4489 .internal_static_google_container_v1_NodePool_PlacementPolicy_fieldAccessorTable 4490 .ensureFieldAccessorsInitialized( 4491 com.google.container.v1.NodePool.PlacementPolicy.class, 4492 com.google.container.v1.NodePool.PlacementPolicy.Builder.class); 4493 } 4494 4495 /** 4496 * 4497 * 4498 * <pre> 4499 * Type defines the type of placement policy. 4500 * </pre> 4501 * 4502 * Protobuf enum {@code google.container.v1.NodePool.PlacementPolicy.Type} 4503 */ 4504 public enum Type implements com.google.protobuf.ProtocolMessageEnum { 4505 /** 4506 * 4507 * 4508 * <pre> 4509 * TYPE_UNSPECIFIED specifies no requirements on nodes 4510 * placement. 4511 * </pre> 4512 * 4513 * <code>TYPE_UNSPECIFIED = 0;</code> 4514 */ 4515 TYPE_UNSPECIFIED(0), 4516 /** 4517 * 4518 * 4519 * <pre> 4520 * COMPACT specifies node placement in the same availability domain to 4521 * ensure low communication latency. 4522 * </pre> 4523 * 4524 * <code>COMPACT = 1;</code> 4525 */ 4526 COMPACT(1), 4527 UNRECOGNIZED(-1), 4528 ; 4529 4530 /** 4531 * 4532 * 4533 * <pre> 4534 * TYPE_UNSPECIFIED specifies no requirements on nodes 4535 * placement. 4536 * </pre> 4537 * 4538 * <code>TYPE_UNSPECIFIED = 0;</code> 4539 */ 4540 public static final int TYPE_UNSPECIFIED_VALUE = 0; 4541 /** 4542 * 4543 * 4544 * <pre> 4545 * COMPACT specifies node placement in the same availability domain to 4546 * ensure low communication latency. 4547 * </pre> 4548 * 4549 * <code>COMPACT = 1;</code> 4550 */ 4551 public static final int COMPACT_VALUE = 1; 4552 getNumber()4553 public final int getNumber() { 4554 if (this == UNRECOGNIZED) { 4555 throw new java.lang.IllegalArgumentException( 4556 "Can't get the number of an unknown enum value."); 4557 } 4558 return value; 4559 } 4560 4561 /** 4562 * @param value The numeric wire value of the corresponding enum entry. 4563 * @return The enum associated with the given numeric wire value. 4564 * @deprecated Use {@link #forNumber(int)} instead. 4565 */ 4566 @java.lang.Deprecated valueOf(int value)4567 public static Type valueOf(int value) { 4568 return forNumber(value); 4569 } 4570 4571 /** 4572 * @param value The numeric wire value of the corresponding enum entry. 4573 * @return The enum associated with the given numeric wire value. 4574 */ forNumber(int value)4575 public static Type forNumber(int value) { 4576 switch (value) { 4577 case 0: 4578 return TYPE_UNSPECIFIED; 4579 case 1: 4580 return COMPACT; 4581 default: 4582 return null; 4583 } 4584 } 4585 internalGetValueMap()4586 public static com.google.protobuf.Internal.EnumLiteMap<Type> internalGetValueMap() { 4587 return internalValueMap; 4588 } 4589 4590 private static final com.google.protobuf.Internal.EnumLiteMap<Type> internalValueMap = 4591 new com.google.protobuf.Internal.EnumLiteMap<Type>() { 4592 public Type findValueByNumber(int number) { 4593 return Type.forNumber(number); 4594 } 4595 }; 4596 getValueDescriptor()4597 public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 4598 if (this == UNRECOGNIZED) { 4599 throw new java.lang.IllegalStateException( 4600 "Can't get the descriptor of an unrecognized enum value."); 4601 } 4602 return getDescriptor().getValues().get(ordinal()); 4603 } 4604 getDescriptorForType()4605 public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { 4606 return getDescriptor(); 4607 } 4608 getDescriptor()4609 public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { 4610 return com.google.container.v1.NodePool.PlacementPolicy.getDescriptor() 4611 .getEnumTypes() 4612 .get(0); 4613 } 4614 4615 private static final Type[] VALUES = values(); 4616 valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)4617 public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 4618 if (desc.getType() != getDescriptor()) { 4619 throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); 4620 } 4621 if (desc.getIndex() == -1) { 4622 return UNRECOGNIZED; 4623 } 4624 return VALUES[desc.getIndex()]; 4625 } 4626 4627 private final int value; 4628 Type(int value)4629 private Type(int value) { 4630 this.value = value; 4631 } 4632 4633 // @@protoc_insertion_point(enum_scope:google.container.v1.NodePool.PlacementPolicy.Type) 4634 } 4635 4636 public static final int TYPE_FIELD_NUMBER = 1; 4637 private int type_ = 0; 4638 /** 4639 * 4640 * 4641 * <pre> 4642 * The type of placement. 4643 * </pre> 4644 * 4645 * <code>.google.container.v1.NodePool.PlacementPolicy.Type type = 1;</code> 4646 * 4647 * @return The enum numeric value on the wire for type. 4648 */ 4649 @java.lang.Override getTypeValue()4650 public int getTypeValue() { 4651 return type_; 4652 } 4653 /** 4654 * 4655 * 4656 * <pre> 4657 * The type of placement. 4658 * </pre> 4659 * 4660 * <code>.google.container.v1.NodePool.PlacementPolicy.Type type = 1;</code> 4661 * 4662 * @return The type. 4663 */ 4664 @java.lang.Override getType()4665 public com.google.container.v1.NodePool.PlacementPolicy.Type getType() { 4666 com.google.container.v1.NodePool.PlacementPolicy.Type result = 4667 com.google.container.v1.NodePool.PlacementPolicy.Type.forNumber(type_); 4668 return result == null 4669 ? com.google.container.v1.NodePool.PlacementPolicy.Type.UNRECOGNIZED 4670 : result; 4671 } 4672 4673 private byte memoizedIsInitialized = -1; 4674 4675 @java.lang.Override isInitialized()4676 public final boolean isInitialized() { 4677 byte isInitialized = memoizedIsInitialized; 4678 if (isInitialized == 1) return true; 4679 if (isInitialized == 0) return false; 4680 4681 memoizedIsInitialized = 1; 4682 return true; 4683 } 4684 4685 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)4686 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 4687 if (type_ 4688 != com.google.container.v1.NodePool.PlacementPolicy.Type.TYPE_UNSPECIFIED.getNumber()) { 4689 output.writeEnum(1, type_); 4690 } 4691 getUnknownFields().writeTo(output); 4692 } 4693 4694 @java.lang.Override getSerializedSize()4695 public int getSerializedSize() { 4696 int size = memoizedSize; 4697 if (size != -1) return size; 4698 4699 size = 0; 4700 if (type_ 4701 != com.google.container.v1.NodePool.PlacementPolicy.Type.TYPE_UNSPECIFIED.getNumber()) { 4702 size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); 4703 } 4704 size += getUnknownFields().getSerializedSize(); 4705 memoizedSize = size; 4706 return size; 4707 } 4708 4709 @java.lang.Override equals(final java.lang.Object obj)4710 public boolean equals(final java.lang.Object obj) { 4711 if (obj == this) { 4712 return true; 4713 } 4714 if (!(obj instanceof com.google.container.v1.NodePool.PlacementPolicy)) { 4715 return super.equals(obj); 4716 } 4717 com.google.container.v1.NodePool.PlacementPolicy other = 4718 (com.google.container.v1.NodePool.PlacementPolicy) obj; 4719 4720 if (type_ != other.type_) return false; 4721 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 4722 return true; 4723 } 4724 4725 @java.lang.Override hashCode()4726 public int hashCode() { 4727 if (memoizedHashCode != 0) { 4728 return memoizedHashCode; 4729 } 4730 int hash = 41; 4731 hash = (19 * hash) + getDescriptor().hashCode(); 4732 hash = (37 * hash) + TYPE_FIELD_NUMBER; 4733 hash = (53 * hash) + type_; 4734 hash = (29 * hash) + getUnknownFields().hashCode(); 4735 memoizedHashCode = hash; 4736 return hash; 4737 } 4738 parseFrom( java.nio.ByteBuffer data)4739 public static com.google.container.v1.NodePool.PlacementPolicy parseFrom( 4740 java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { 4741 return PARSER.parseFrom(data); 4742 } 4743 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4744 public static com.google.container.v1.NodePool.PlacementPolicy parseFrom( 4745 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4746 throws com.google.protobuf.InvalidProtocolBufferException { 4747 return PARSER.parseFrom(data, extensionRegistry); 4748 } 4749 parseFrom( com.google.protobuf.ByteString data)4750 public static com.google.container.v1.NodePool.PlacementPolicy parseFrom( 4751 com.google.protobuf.ByteString data) 4752 throws com.google.protobuf.InvalidProtocolBufferException { 4753 return PARSER.parseFrom(data); 4754 } 4755 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4756 public static com.google.container.v1.NodePool.PlacementPolicy parseFrom( 4757 com.google.protobuf.ByteString data, 4758 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4759 throws com.google.protobuf.InvalidProtocolBufferException { 4760 return PARSER.parseFrom(data, extensionRegistry); 4761 } 4762 parseFrom(byte[] data)4763 public static com.google.container.v1.NodePool.PlacementPolicy parseFrom(byte[] data) 4764 throws com.google.protobuf.InvalidProtocolBufferException { 4765 return PARSER.parseFrom(data); 4766 } 4767 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4768 public static com.google.container.v1.NodePool.PlacementPolicy parseFrom( 4769 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4770 throws com.google.protobuf.InvalidProtocolBufferException { 4771 return PARSER.parseFrom(data, extensionRegistry); 4772 } 4773 parseFrom( java.io.InputStream input)4774 public static com.google.container.v1.NodePool.PlacementPolicy parseFrom( 4775 java.io.InputStream input) throws java.io.IOException { 4776 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 4777 } 4778 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4779 public static com.google.container.v1.NodePool.PlacementPolicy parseFrom( 4780 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4781 throws java.io.IOException { 4782 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 4783 PARSER, input, extensionRegistry); 4784 } 4785 parseDelimitedFrom( java.io.InputStream input)4786 public static com.google.container.v1.NodePool.PlacementPolicy parseDelimitedFrom( 4787 java.io.InputStream input) throws java.io.IOException { 4788 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 4789 } 4790 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4791 public static com.google.container.v1.NodePool.PlacementPolicy parseDelimitedFrom( 4792 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4793 throws java.io.IOException { 4794 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 4795 PARSER, input, extensionRegistry); 4796 } 4797 parseFrom( com.google.protobuf.CodedInputStream input)4798 public static com.google.container.v1.NodePool.PlacementPolicy parseFrom( 4799 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 4800 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 4801 } 4802 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4803 public static com.google.container.v1.NodePool.PlacementPolicy parseFrom( 4804 com.google.protobuf.CodedInputStream input, 4805 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4806 throws java.io.IOException { 4807 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 4808 PARSER, input, extensionRegistry); 4809 } 4810 4811 @java.lang.Override newBuilderForType()4812 public Builder newBuilderForType() { 4813 return newBuilder(); 4814 } 4815 newBuilder()4816 public static Builder newBuilder() { 4817 return DEFAULT_INSTANCE.toBuilder(); 4818 } 4819 newBuilder(com.google.container.v1.NodePool.PlacementPolicy prototype)4820 public static Builder newBuilder(com.google.container.v1.NodePool.PlacementPolicy prototype) { 4821 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 4822 } 4823 4824 @java.lang.Override toBuilder()4825 public Builder toBuilder() { 4826 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 4827 } 4828 4829 @java.lang.Override newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)4830 protected Builder newBuilderForType( 4831 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 4832 Builder builder = new Builder(parent); 4833 return builder; 4834 } 4835 /** 4836 * 4837 * 4838 * <pre> 4839 * PlacementPolicy defines the placement policy used by the node pool. 4840 * </pre> 4841 * 4842 * Protobuf type {@code google.container.v1.NodePool.PlacementPolicy} 4843 */ 4844 public static final class Builder 4845 extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 4846 implements 4847 // @@protoc_insertion_point(builder_implements:google.container.v1.NodePool.PlacementPolicy) 4848 com.google.container.v1.NodePool.PlacementPolicyOrBuilder { getDescriptor()4849 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 4850 return com.google.container.v1.ClusterServiceProto 4851 .internal_static_google_container_v1_NodePool_PlacementPolicy_descriptor; 4852 } 4853 4854 @java.lang.Override 4855 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()4856 internalGetFieldAccessorTable() { 4857 return com.google.container.v1.ClusterServiceProto 4858 .internal_static_google_container_v1_NodePool_PlacementPolicy_fieldAccessorTable 4859 .ensureFieldAccessorsInitialized( 4860 com.google.container.v1.NodePool.PlacementPolicy.class, 4861 com.google.container.v1.NodePool.PlacementPolicy.Builder.class); 4862 } 4863 4864 // Construct using com.google.container.v1.NodePool.PlacementPolicy.newBuilder() Builder()4865 private Builder() {} 4866 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)4867 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 4868 super(parent); 4869 } 4870 4871 @java.lang.Override clear()4872 public Builder clear() { 4873 super.clear(); 4874 bitField0_ = 0; 4875 type_ = 0; 4876 return this; 4877 } 4878 4879 @java.lang.Override getDescriptorForType()4880 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 4881 return com.google.container.v1.ClusterServiceProto 4882 .internal_static_google_container_v1_NodePool_PlacementPolicy_descriptor; 4883 } 4884 4885 @java.lang.Override getDefaultInstanceForType()4886 public com.google.container.v1.NodePool.PlacementPolicy getDefaultInstanceForType() { 4887 return com.google.container.v1.NodePool.PlacementPolicy.getDefaultInstance(); 4888 } 4889 4890 @java.lang.Override build()4891 public com.google.container.v1.NodePool.PlacementPolicy build() { 4892 com.google.container.v1.NodePool.PlacementPolicy result = buildPartial(); 4893 if (!result.isInitialized()) { 4894 throw newUninitializedMessageException(result); 4895 } 4896 return result; 4897 } 4898 4899 @java.lang.Override buildPartial()4900 public com.google.container.v1.NodePool.PlacementPolicy buildPartial() { 4901 com.google.container.v1.NodePool.PlacementPolicy result = 4902 new com.google.container.v1.NodePool.PlacementPolicy(this); 4903 if (bitField0_ != 0) { 4904 buildPartial0(result); 4905 } 4906 onBuilt(); 4907 return result; 4908 } 4909 buildPartial0(com.google.container.v1.NodePool.PlacementPolicy result)4910 private void buildPartial0(com.google.container.v1.NodePool.PlacementPolicy result) { 4911 int from_bitField0_ = bitField0_; 4912 if (((from_bitField0_ & 0x00000001) != 0)) { 4913 result.type_ = type_; 4914 } 4915 } 4916 4917 @java.lang.Override clone()4918 public Builder clone() { 4919 return super.clone(); 4920 } 4921 4922 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)4923 public Builder setField( 4924 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 4925 return super.setField(field, value); 4926 } 4927 4928 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)4929 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 4930 return super.clearField(field); 4931 } 4932 4933 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)4934 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 4935 return super.clearOneof(oneof); 4936 } 4937 4938 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)4939 public Builder setRepeatedField( 4940 com.google.protobuf.Descriptors.FieldDescriptor field, 4941 int index, 4942 java.lang.Object value) { 4943 return super.setRepeatedField(field, index, value); 4944 } 4945 4946 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)4947 public Builder addRepeatedField( 4948 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 4949 return super.addRepeatedField(field, value); 4950 } 4951 4952 @java.lang.Override mergeFrom(com.google.protobuf.Message other)4953 public Builder mergeFrom(com.google.protobuf.Message other) { 4954 if (other instanceof com.google.container.v1.NodePool.PlacementPolicy) { 4955 return mergeFrom((com.google.container.v1.NodePool.PlacementPolicy) other); 4956 } else { 4957 super.mergeFrom(other); 4958 return this; 4959 } 4960 } 4961 mergeFrom(com.google.container.v1.NodePool.PlacementPolicy other)4962 public Builder mergeFrom(com.google.container.v1.NodePool.PlacementPolicy other) { 4963 if (other == com.google.container.v1.NodePool.PlacementPolicy.getDefaultInstance()) 4964 return this; 4965 if (other.type_ != 0) { 4966 setTypeValue(other.getTypeValue()); 4967 } 4968 this.mergeUnknownFields(other.getUnknownFields()); 4969 onChanged(); 4970 return this; 4971 } 4972 4973 @java.lang.Override isInitialized()4974 public final boolean isInitialized() { 4975 return true; 4976 } 4977 4978 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4979 public Builder mergeFrom( 4980 com.google.protobuf.CodedInputStream input, 4981 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4982 throws java.io.IOException { 4983 if (extensionRegistry == null) { 4984 throw new java.lang.NullPointerException(); 4985 } 4986 try { 4987 boolean done = false; 4988 while (!done) { 4989 int tag = input.readTag(); 4990 switch (tag) { 4991 case 0: 4992 done = true; 4993 break; 4994 case 8: 4995 { 4996 type_ = input.readEnum(); 4997 bitField0_ |= 0x00000001; 4998 break; 4999 } // case 8 5000 default: 5001 { 5002 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 5003 done = true; // was an endgroup tag 5004 } 5005 break; 5006 } // default: 5007 } // switch (tag) 5008 } // while (!done) 5009 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 5010 throw e.unwrapIOException(); 5011 } finally { 5012 onChanged(); 5013 } // finally 5014 return this; 5015 } 5016 5017 private int bitField0_; 5018 5019 private int type_ = 0; 5020 /** 5021 * 5022 * 5023 * <pre> 5024 * The type of placement. 5025 * </pre> 5026 * 5027 * <code>.google.container.v1.NodePool.PlacementPolicy.Type type = 1;</code> 5028 * 5029 * @return The enum numeric value on the wire for type. 5030 */ 5031 @java.lang.Override getTypeValue()5032 public int getTypeValue() { 5033 return type_; 5034 } 5035 /** 5036 * 5037 * 5038 * <pre> 5039 * The type of placement. 5040 * </pre> 5041 * 5042 * <code>.google.container.v1.NodePool.PlacementPolicy.Type type = 1;</code> 5043 * 5044 * @param value The enum numeric value on the wire for type to set. 5045 * @return This builder for chaining. 5046 */ setTypeValue(int value)5047 public Builder setTypeValue(int value) { 5048 type_ = value; 5049 bitField0_ |= 0x00000001; 5050 onChanged(); 5051 return this; 5052 } 5053 /** 5054 * 5055 * 5056 * <pre> 5057 * The type of placement. 5058 * </pre> 5059 * 5060 * <code>.google.container.v1.NodePool.PlacementPolicy.Type type = 1;</code> 5061 * 5062 * @return The type. 5063 */ 5064 @java.lang.Override getType()5065 public com.google.container.v1.NodePool.PlacementPolicy.Type getType() { 5066 com.google.container.v1.NodePool.PlacementPolicy.Type result = 5067 com.google.container.v1.NodePool.PlacementPolicy.Type.forNumber(type_); 5068 return result == null 5069 ? com.google.container.v1.NodePool.PlacementPolicy.Type.UNRECOGNIZED 5070 : result; 5071 } 5072 /** 5073 * 5074 * 5075 * <pre> 5076 * The type of placement. 5077 * </pre> 5078 * 5079 * <code>.google.container.v1.NodePool.PlacementPolicy.Type type = 1;</code> 5080 * 5081 * @param value The type to set. 5082 * @return This builder for chaining. 5083 */ setType(com.google.container.v1.NodePool.PlacementPolicy.Type value)5084 public Builder setType(com.google.container.v1.NodePool.PlacementPolicy.Type value) { 5085 if (value == null) { 5086 throw new NullPointerException(); 5087 } 5088 bitField0_ |= 0x00000001; 5089 type_ = value.getNumber(); 5090 onChanged(); 5091 return this; 5092 } 5093 /** 5094 * 5095 * 5096 * <pre> 5097 * The type of placement. 5098 * </pre> 5099 * 5100 * <code>.google.container.v1.NodePool.PlacementPolicy.Type type = 1;</code> 5101 * 5102 * @return This builder for chaining. 5103 */ clearType()5104 public Builder clearType() { 5105 bitField0_ = (bitField0_ & ~0x00000001); 5106 type_ = 0; 5107 onChanged(); 5108 return this; 5109 } 5110 5111 @java.lang.Override setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)5112 public final Builder setUnknownFields( 5113 final com.google.protobuf.UnknownFieldSet unknownFields) { 5114 return super.setUnknownFields(unknownFields); 5115 } 5116 5117 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)5118 public final Builder mergeUnknownFields( 5119 final com.google.protobuf.UnknownFieldSet unknownFields) { 5120 return super.mergeUnknownFields(unknownFields); 5121 } 5122 5123 // @@protoc_insertion_point(builder_scope:google.container.v1.NodePool.PlacementPolicy) 5124 } 5125 5126 // @@protoc_insertion_point(class_scope:google.container.v1.NodePool.PlacementPolicy) 5127 private static final com.google.container.v1.NodePool.PlacementPolicy DEFAULT_INSTANCE; 5128 5129 static { 5130 DEFAULT_INSTANCE = new com.google.container.v1.NodePool.PlacementPolicy(); 5131 } 5132 getDefaultInstance()5133 public static com.google.container.v1.NodePool.PlacementPolicy getDefaultInstance() { 5134 return DEFAULT_INSTANCE; 5135 } 5136 5137 private static final com.google.protobuf.Parser<PlacementPolicy> PARSER = 5138 new com.google.protobuf.AbstractParser<PlacementPolicy>() { 5139 @java.lang.Override 5140 public PlacementPolicy parsePartialFrom( 5141 com.google.protobuf.CodedInputStream input, 5142 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5143 throws com.google.protobuf.InvalidProtocolBufferException { 5144 Builder builder = newBuilder(); 5145 try { 5146 builder.mergeFrom(input, extensionRegistry); 5147 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 5148 throw e.setUnfinishedMessage(builder.buildPartial()); 5149 } catch (com.google.protobuf.UninitializedMessageException e) { 5150 throw e.asInvalidProtocolBufferException() 5151 .setUnfinishedMessage(builder.buildPartial()); 5152 } catch (java.io.IOException e) { 5153 throw new com.google.protobuf.InvalidProtocolBufferException(e) 5154 .setUnfinishedMessage(builder.buildPartial()); 5155 } 5156 return builder.buildPartial(); 5157 } 5158 }; 5159 parser()5160 public static com.google.protobuf.Parser<PlacementPolicy> parser() { 5161 return PARSER; 5162 } 5163 5164 @java.lang.Override getParserForType()5165 public com.google.protobuf.Parser<PlacementPolicy> getParserForType() { 5166 return PARSER; 5167 } 5168 5169 @java.lang.Override getDefaultInstanceForType()5170 public com.google.container.v1.NodePool.PlacementPolicy getDefaultInstanceForType() { 5171 return DEFAULT_INSTANCE; 5172 } 5173 } 5174 5175 public static final int NAME_FIELD_NUMBER = 1; 5176 5177 @SuppressWarnings("serial") 5178 private volatile java.lang.Object name_ = ""; 5179 /** 5180 * 5181 * 5182 * <pre> 5183 * The name of the node pool. 5184 * </pre> 5185 * 5186 * <code>string name = 1;</code> 5187 * 5188 * @return The name. 5189 */ 5190 @java.lang.Override getName()5191 public java.lang.String getName() { 5192 java.lang.Object ref = name_; 5193 if (ref instanceof java.lang.String) { 5194 return (java.lang.String) ref; 5195 } else { 5196 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 5197 java.lang.String s = bs.toStringUtf8(); 5198 name_ = s; 5199 return s; 5200 } 5201 } 5202 /** 5203 * 5204 * 5205 * <pre> 5206 * The name of the node pool. 5207 * </pre> 5208 * 5209 * <code>string name = 1;</code> 5210 * 5211 * @return The bytes for name. 5212 */ 5213 @java.lang.Override getNameBytes()5214 public com.google.protobuf.ByteString getNameBytes() { 5215 java.lang.Object ref = name_; 5216 if (ref instanceof java.lang.String) { 5217 com.google.protobuf.ByteString b = 5218 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 5219 name_ = b; 5220 return b; 5221 } else { 5222 return (com.google.protobuf.ByteString) ref; 5223 } 5224 } 5225 5226 public static final int CONFIG_FIELD_NUMBER = 2; 5227 private com.google.container.v1.NodeConfig config_; 5228 /** 5229 * 5230 * 5231 * <pre> 5232 * The node configuration of the pool. 5233 * </pre> 5234 * 5235 * <code>.google.container.v1.NodeConfig config = 2;</code> 5236 * 5237 * @return Whether the config field is set. 5238 */ 5239 @java.lang.Override hasConfig()5240 public boolean hasConfig() { 5241 return config_ != null; 5242 } 5243 /** 5244 * 5245 * 5246 * <pre> 5247 * The node configuration of the pool. 5248 * </pre> 5249 * 5250 * <code>.google.container.v1.NodeConfig config = 2;</code> 5251 * 5252 * @return The config. 5253 */ 5254 @java.lang.Override getConfig()5255 public com.google.container.v1.NodeConfig getConfig() { 5256 return config_ == null ? com.google.container.v1.NodeConfig.getDefaultInstance() : config_; 5257 } 5258 /** 5259 * 5260 * 5261 * <pre> 5262 * The node configuration of the pool. 5263 * </pre> 5264 * 5265 * <code>.google.container.v1.NodeConfig config = 2;</code> 5266 */ 5267 @java.lang.Override getConfigOrBuilder()5268 public com.google.container.v1.NodeConfigOrBuilder getConfigOrBuilder() { 5269 return config_ == null ? com.google.container.v1.NodeConfig.getDefaultInstance() : config_; 5270 } 5271 5272 public static final int INITIAL_NODE_COUNT_FIELD_NUMBER = 3; 5273 private int initialNodeCount_ = 0; 5274 /** 5275 * 5276 * 5277 * <pre> 5278 * The initial node count for the pool. You must ensure that your 5279 * Compute Engine [resource quota](https://cloud.google.com/compute/quotas) 5280 * is sufficient for this number of instances. You must also have available 5281 * firewall and routes quota. 5282 * </pre> 5283 * 5284 * <code>int32 initial_node_count = 3;</code> 5285 * 5286 * @return The initialNodeCount. 5287 */ 5288 @java.lang.Override getInitialNodeCount()5289 public int getInitialNodeCount() { 5290 return initialNodeCount_; 5291 } 5292 5293 public static final int LOCATIONS_FIELD_NUMBER = 13; 5294 5295 @SuppressWarnings("serial") 5296 private com.google.protobuf.LazyStringList locations_; 5297 /** 5298 * 5299 * 5300 * <pre> 5301 * The list of Google Compute Engine 5302 * [zones](https://cloud.google.com/compute/docs/zones#available) in which the 5303 * NodePool's nodes should be located. 5304 * If this value is unspecified during node pool creation, the 5305 * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) 5306 * value will be used, instead. 5307 * Warning: changing node pool locations will result in nodes being added 5308 * and/or removed. 5309 * </pre> 5310 * 5311 * <code>repeated string locations = 13;</code> 5312 * 5313 * @return A list containing the locations. 5314 */ getLocationsList()5315 public com.google.protobuf.ProtocolStringList getLocationsList() { 5316 return locations_; 5317 } 5318 /** 5319 * 5320 * 5321 * <pre> 5322 * The list of Google Compute Engine 5323 * [zones](https://cloud.google.com/compute/docs/zones#available) in which the 5324 * NodePool's nodes should be located. 5325 * If this value is unspecified during node pool creation, the 5326 * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) 5327 * value will be used, instead. 5328 * Warning: changing node pool locations will result in nodes being added 5329 * and/or removed. 5330 * </pre> 5331 * 5332 * <code>repeated string locations = 13;</code> 5333 * 5334 * @return The count of locations. 5335 */ getLocationsCount()5336 public int getLocationsCount() { 5337 return locations_.size(); 5338 } 5339 /** 5340 * 5341 * 5342 * <pre> 5343 * The list of Google Compute Engine 5344 * [zones](https://cloud.google.com/compute/docs/zones#available) in which the 5345 * NodePool's nodes should be located. 5346 * If this value is unspecified during node pool creation, the 5347 * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) 5348 * value will be used, instead. 5349 * Warning: changing node pool locations will result in nodes being added 5350 * and/or removed. 5351 * </pre> 5352 * 5353 * <code>repeated string locations = 13;</code> 5354 * 5355 * @param index The index of the element to return. 5356 * @return The locations at the given index. 5357 */ getLocations(int index)5358 public java.lang.String getLocations(int index) { 5359 return locations_.get(index); 5360 } 5361 /** 5362 * 5363 * 5364 * <pre> 5365 * The list of Google Compute Engine 5366 * [zones](https://cloud.google.com/compute/docs/zones#available) in which the 5367 * NodePool's nodes should be located. 5368 * If this value is unspecified during node pool creation, the 5369 * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) 5370 * value will be used, instead. 5371 * Warning: changing node pool locations will result in nodes being added 5372 * and/or removed. 5373 * </pre> 5374 * 5375 * <code>repeated string locations = 13;</code> 5376 * 5377 * @param index The index of the value to return. 5378 * @return The bytes of the locations at the given index. 5379 */ getLocationsBytes(int index)5380 public com.google.protobuf.ByteString getLocationsBytes(int index) { 5381 return locations_.getByteString(index); 5382 } 5383 5384 public static final int NETWORK_CONFIG_FIELD_NUMBER = 14; 5385 private com.google.container.v1.NodeNetworkConfig networkConfig_; 5386 /** 5387 * 5388 * 5389 * <pre> 5390 * Networking configuration for this NodePool. If specified, it overrides the 5391 * cluster-level defaults. 5392 * </pre> 5393 * 5394 * <code>.google.container.v1.NodeNetworkConfig network_config = 14;</code> 5395 * 5396 * @return Whether the networkConfig field is set. 5397 */ 5398 @java.lang.Override hasNetworkConfig()5399 public boolean hasNetworkConfig() { 5400 return networkConfig_ != null; 5401 } 5402 /** 5403 * 5404 * 5405 * <pre> 5406 * Networking configuration for this NodePool. If specified, it overrides the 5407 * cluster-level defaults. 5408 * </pre> 5409 * 5410 * <code>.google.container.v1.NodeNetworkConfig network_config = 14;</code> 5411 * 5412 * @return The networkConfig. 5413 */ 5414 @java.lang.Override getNetworkConfig()5415 public com.google.container.v1.NodeNetworkConfig getNetworkConfig() { 5416 return networkConfig_ == null 5417 ? com.google.container.v1.NodeNetworkConfig.getDefaultInstance() 5418 : networkConfig_; 5419 } 5420 /** 5421 * 5422 * 5423 * <pre> 5424 * Networking configuration for this NodePool. If specified, it overrides the 5425 * cluster-level defaults. 5426 * </pre> 5427 * 5428 * <code>.google.container.v1.NodeNetworkConfig network_config = 14;</code> 5429 */ 5430 @java.lang.Override getNetworkConfigOrBuilder()5431 public com.google.container.v1.NodeNetworkConfigOrBuilder getNetworkConfigOrBuilder() { 5432 return networkConfig_ == null 5433 ? com.google.container.v1.NodeNetworkConfig.getDefaultInstance() 5434 : networkConfig_; 5435 } 5436 5437 public static final int SELF_LINK_FIELD_NUMBER = 100; 5438 5439 @SuppressWarnings("serial") 5440 private volatile java.lang.Object selfLink_ = ""; 5441 /** 5442 * 5443 * 5444 * <pre> 5445 * [Output only] Server-defined URL for the resource. 5446 * </pre> 5447 * 5448 * <code>string self_link = 100;</code> 5449 * 5450 * @return The selfLink. 5451 */ 5452 @java.lang.Override getSelfLink()5453 public java.lang.String getSelfLink() { 5454 java.lang.Object ref = selfLink_; 5455 if (ref instanceof java.lang.String) { 5456 return (java.lang.String) ref; 5457 } else { 5458 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 5459 java.lang.String s = bs.toStringUtf8(); 5460 selfLink_ = s; 5461 return s; 5462 } 5463 } 5464 /** 5465 * 5466 * 5467 * <pre> 5468 * [Output only] Server-defined URL for the resource. 5469 * </pre> 5470 * 5471 * <code>string self_link = 100;</code> 5472 * 5473 * @return The bytes for selfLink. 5474 */ 5475 @java.lang.Override getSelfLinkBytes()5476 public com.google.protobuf.ByteString getSelfLinkBytes() { 5477 java.lang.Object ref = selfLink_; 5478 if (ref instanceof java.lang.String) { 5479 com.google.protobuf.ByteString b = 5480 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 5481 selfLink_ = b; 5482 return b; 5483 } else { 5484 return (com.google.protobuf.ByteString) ref; 5485 } 5486 } 5487 5488 public static final int VERSION_FIELD_NUMBER = 101; 5489 5490 @SuppressWarnings("serial") 5491 private volatile java.lang.Object version_ = ""; 5492 /** 5493 * 5494 * 5495 * <pre> 5496 * The version of Kubernetes running on this NodePool's nodes. If unspecified, 5497 * it defaults as described 5498 * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version). 5499 * </pre> 5500 * 5501 * <code>string version = 101;</code> 5502 * 5503 * @return The version. 5504 */ 5505 @java.lang.Override getVersion()5506 public java.lang.String getVersion() { 5507 java.lang.Object ref = version_; 5508 if (ref instanceof java.lang.String) { 5509 return (java.lang.String) ref; 5510 } else { 5511 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 5512 java.lang.String s = bs.toStringUtf8(); 5513 version_ = s; 5514 return s; 5515 } 5516 } 5517 /** 5518 * 5519 * 5520 * <pre> 5521 * The version of Kubernetes running on this NodePool's nodes. If unspecified, 5522 * it defaults as described 5523 * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version). 5524 * </pre> 5525 * 5526 * <code>string version = 101;</code> 5527 * 5528 * @return The bytes for version. 5529 */ 5530 @java.lang.Override getVersionBytes()5531 public com.google.protobuf.ByteString getVersionBytes() { 5532 java.lang.Object ref = version_; 5533 if (ref instanceof java.lang.String) { 5534 com.google.protobuf.ByteString b = 5535 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 5536 version_ = b; 5537 return b; 5538 } else { 5539 return (com.google.protobuf.ByteString) ref; 5540 } 5541 } 5542 5543 public static final int INSTANCE_GROUP_URLS_FIELD_NUMBER = 102; 5544 5545 @SuppressWarnings("serial") 5546 private com.google.protobuf.LazyStringList instanceGroupUrls_; 5547 /** 5548 * 5549 * 5550 * <pre> 5551 * [Output only] The resource URLs of the [managed instance 5552 * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) 5553 * associated with this node pool. 5554 * During the node pool blue-green upgrade operation, the URLs contain both 5555 * blue and green resources. 5556 * </pre> 5557 * 5558 * <code>repeated string instance_group_urls = 102;</code> 5559 * 5560 * @return A list containing the instanceGroupUrls. 5561 */ getInstanceGroupUrlsList()5562 public com.google.protobuf.ProtocolStringList getInstanceGroupUrlsList() { 5563 return instanceGroupUrls_; 5564 } 5565 /** 5566 * 5567 * 5568 * <pre> 5569 * [Output only] The resource URLs of the [managed instance 5570 * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) 5571 * associated with this node pool. 5572 * During the node pool blue-green upgrade operation, the URLs contain both 5573 * blue and green resources. 5574 * </pre> 5575 * 5576 * <code>repeated string instance_group_urls = 102;</code> 5577 * 5578 * @return The count of instanceGroupUrls. 5579 */ getInstanceGroupUrlsCount()5580 public int getInstanceGroupUrlsCount() { 5581 return instanceGroupUrls_.size(); 5582 } 5583 /** 5584 * 5585 * 5586 * <pre> 5587 * [Output only] The resource URLs of the [managed instance 5588 * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) 5589 * associated with this node pool. 5590 * During the node pool blue-green upgrade operation, the URLs contain both 5591 * blue and green resources. 5592 * </pre> 5593 * 5594 * <code>repeated string instance_group_urls = 102;</code> 5595 * 5596 * @param index The index of the element to return. 5597 * @return The instanceGroupUrls at the given index. 5598 */ getInstanceGroupUrls(int index)5599 public java.lang.String getInstanceGroupUrls(int index) { 5600 return instanceGroupUrls_.get(index); 5601 } 5602 /** 5603 * 5604 * 5605 * <pre> 5606 * [Output only] The resource URLs of the [managed instance 5607 * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) 5608 * associated with this node pool. 5609 * During the node pool blue-green upgrade operation, the URLs contain both 5610 * blue and green resources. 5611 * </pre> 5612 * 5613 * <code>repeated string instance_group_urls = 102;</code> 5614 * 5615 * @param index The index of the value to return. 5616 * @return The bytes of the instanceGroupUrls at the given index. 5617 */ getInstanceGroupUrlsBytes(int index)5618 public com.google.protobuf.ByteString getInstanceGroupUrlsBytes(int index) { 5619 return instanceGroupUrls_.getByteString(index); 5620 } 5621 5622 public static final int STATUS_FIELD_NUMBER = 103; 5623 private int status_ = 0; 5624 /** 5625 * 5626 * 5627 * <pre> 5628 * [Output only] The status of the nodes in this pool instance. 5629 * </pre> 5630 * 5631 * <code>.google.container.v1.NodePool.Status status = 103;</code> 5632 * 5633 * @return The enum numeric value on the wire for status. 5634 */ 5635 @java.lang.Override getStatusValue()5636 public int getStatusValue() { 5637 return status_; 5638 } 5639 /** 5640 * 5641 * 5642 * <pre> 5643 * [Output only] The status of the nodes in this pool instance. 5644 * </pre> 5645 * 5646 * <code>.google.container.v1.NodePool.Status status = 103;</code> 5647 * 5648 * @return The status. 5649 */ 5650 @java.lang.Override getStatus()5651 public com.google.container.v1.NodePool.Status getStatus() { 5652 com.google.container.v1.NodePool.Status result = 5653 com.google.container.v1.NodePool.Status.forNumber(status_); 5654 return result == null ? com.google.container.v1.NodePool.Status.UNRECOGNIZED : result; 5655 } 5656 5657 public static final int STATUS_MESSAGE_FIELD_NUMBER = 104; 5658 5659 @SuppressWarnings("serial") 5660 private volatile java.lang.Object statusMessage_ = ""; 5661 /** 5662 * 5663 * 5664 * <pre> 5665 * [Output only] Deprecated. Use conditions instead. 5666 * Additional information about the current status of this 5667 * node pool instance, if available. 5668 * </pre> 5669 * 5670 * <code>string status_message = 104 [deprecated = true];</code> 5671 * 5672 * @deprecated google.container.v1.NodePool.status_message is deprecated. See 5673 * google/container/v1/cluster_service.proto;l=3292 5674 * @return The statusMessage. 5675 */ 5676 @java.lang.Override 5677 @java.lang.Deprecated getStatusMessage()5678 public java.lang.String getStatusMessage() { 5679 java.lang.Object ref = statusMessage_; 5680 if (ref instanceof java.lang.String) { 5681 return (java.lang.String) ref; 5682 } else { 5683 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 5684 java.lang.String s = bs.toStringUtf8(); 5685 statusMessage_ = s; 5686 return s; 5687 } 5688 } 5689 /** 5690 * 5691 * 5692 * <pre> 5693 * [Output only] Deprecated. Use conditions instead. 5694 * Additional information about the current status of this 5695 * node pool instance, if available. 5696 * </pre> 5697 * 5698 * <code>string status_message = 104 [deprecated = true];</code> 5699 * 5700 * @deprecated google.container.v1.NodePool.status_message is deprecated. See 5701 * google/container/v1/cluster_service.proto;l=3292 5702 * @return The bytes for statusMessage. 5703 */ 5704 @java.lang.Override 5705 @java.lang.Deprecated getStatusMessageBytes()5706 public com.google.protobuf.ByteString getStatusMessageBytes() { 5707 java.lang.Object ref = statusMessage_; 5708 if (ref instanceof java.lang.String) { 5709 com.google.protobuf.ByteString b = 5710 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 5711 statusMessage_ = b; 5712 return b; 5713 } else { 5714 return (com.google.protobuf.ByteString) ref; 5715 } 5716 } 5717 5718 public static final int AUTOSCALING_FIELD_NUMBER = 4; 5719 private com.google.container.v1.NodePoolAutoscaling autoscaling_; 5720 /** 5721 * 5722 * 5723 * <pre> 5724 * Autoscaler configuration for this NodePool. Autoscaler is enabled 5725 * only if a valid configuration is present. 5726 * </pre> 5727 * 5728 * <code>.google.container.v1.NodePoolAutoscaling autoscaling = 4;</code> 5729 * 5730 * @return Whether the autoscaling field is set. 5731 */ 5732 @java.lang.Override hasAutoscaling()5733 public boolean hasAutoscaling() { 5734 return autoscaling_ != null; 5735 } 5736 /** 5737 * 5738 * 5739 * <pre> 5740 * Autoscaler configuration for this NodePool. Autoscaler is enabled 5741 * only if a valid configuration is present. 5742 * </pre> 5743 * 5744 * <code>.google.container.v1.NodePoolAutoscaling autoscaling = 4;</code> 5745 * 5746 * @return The autoscaling. 5747 */ 5748 @java.lang.Override getAutoscaling()5749 public com.google.container.v1.NodePoolAutoscaling getAutoscaling() { 5750 return autoscaling_ == null 5751 ? com.google.container.v1.NodePoolAutoscaling.getDefaultInstance() 5752 : autoscaling_; 5753 } 5754 /** 5755 * 5756 * 5757 * <pre> 5758 * Autoscaler configuration for this NodePool. Autoscaler is enabled 5759 * only if a valid configuration is present. 5760 * </pre> 5761 * 5762 * <code>.google.container.v1.NodePoolAutoscaling autoscaling = 4;</code> 5763 */ 5764 @java.lang.Override getAutoscalingOrBuilder()5765 public com.google.container.v1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder() { 5766 return autoscaling_ == null 5767 ? com.google.container.v1.NodePoolAutoscaling.getDefaultInstance() 5768 : autoscaling_; 5769 } 5770 5771 public static final int MANAGEMENT_FIELD_NUMBER = 5; 5772 private com.google.container.v1.NodeManagement management_; 5773 /** 5774 * 5775 * 5776 * <pre> 5777 * NodeManagement configuration for this NodePool. 5778 * </pre> 5779 * 5780 * <code>.google.container.v1.NodeManagement management = 5;</code> 5781 * 5782 * @return Whether the management field is set. 5783 */ 5784 @java.lang.Override hasManagement()5785 public boolean hasManagement() { 5786 return management_ != null; 5787 } 5788 /** 5789 * 5790 * 5791 * <pre> 5792 * NodeManagement configuration for this NodePool. 5793 * </pre> 5794 * 5795 * <code>.google.container.v1.NodeManagement management = 5;</code> 5796 * 5797 * @return The management. 5798 */ 5799 @java.lang.Override getManagement()5800 public com.google.container.v1.NodeManagement getManagement() { 5801 return management_ == null 5802 ? com.google.container.v1.NodeManagement.getDefaultInstance() 5803 : management_; 5804 } 5805 /** 5806 * 5807 * 5808 * <pre> 5809 * NodeManagement configuration for this NodePool. 5810 * </pre> 5811 * 5812 * <code>.google.container.v1.NodeManagement management = 5;</code> 5813 */ 5814 @java.lang.Override getManagementOrBuilder()5815 public com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder() { 5816 return management_ == null 5817 ? com.google.container.v1.NodeManagement.getDefaultInstance() 5818 : management_; 5819 } 5820 5821 public static final int MAX_PODS_CONSTRAINT_FIELD_NUMBER = 6; 5822 private com.google.container.v1.MaxPodsConstraint maxPodsConstraint_; 5823 /** 5824 * 5825 * 5826 * <pre> 5827 * The constraint on the maximum number of pods that can be run 5828 * simultaneously on a node in the node pool. 5829 * </pre> 5830 * 5831 * <code>.google.container.v1.MaxPodsConstraint max_pods_constraint = 6;</code> 5832 * 5833 * @return Whether the maxPodsConstraint field is set. 5834 */ 5835 @java.lang.Override hasMaxPodsConstraint()5836 public boolean hasMaxPodsConstraint() { 5837 return maxPodsConstraint_ != null; 5838 } 5839 /** 5840 * 5841 * 5842 * <pre> 5843 * The constraint on the maximum number of pods that can be run 5844 * simultaneously on a node in the node pool. 5845 * </pre> 5846 * 5847 * <code>.google.container.v1.MaxPodsConstraint max_pods_constraint = 6;</code> 5848 * 5849 * @return The maxPodsConstraint. 5850 */ 5851 @java.lang.Override getMaxPodsConstraint()5852 public com.google.container.v1.MaxPodsConstraint getMaxPodsConstraint() { 5853 return maxPodsConstraint_ == null 5854 ? com.google.container.v1.MaxPodsConstraint.getDefaultInstance() 5855 : maxPodsConstraint_; 5856 } 5857 /** 5858 * 5859 * 5860 * <pre> 5861 * The constraint on the maximum number of pods that can be run 5862 * simultaneously on a node in the node pool. 5863 * </pre> 5864 * 5865 * <code>.google.container.v1.MaxPodsConstraint max_pods_constraint = 6;</code> 5866 */ 5867 @java.lang.Override getMaxPodsConstraintOrBuilder()5868 public com.google.container.v1.MaxPodsConstraintOrBuilder getMaxPodsConstraintOrBuilder() { 5869 return maxPodsConstraint_ == null 5870 ? com.google.container.v1.MaxPodsConstraint.getDefaultInstance() 5871 : maxPodsConstraint_; 5872 } 5873 5874 public static final int CONDITIONS_FIELD_NUMBER = 105; 5875 5876 @SuppressWarnings("serial") 5877 private java.util.List<com.google.container.v1.StatusCondition> conditions_; 5878 /** 5879 * 5880 * 5881 * <pre> 5882 * Which conditions caused the current node pool state. 5883 * </pre> 5884 * 5885 * <code>repeated .google.container.v1.StatusCondition conditions = 105;</code> 5886 */ 5887 @java.lang.Override getConditionsList()5888 public java.util.List<com.google.container.v1.StatusCondition> getConditionsList() { 5889 return conditions_; 5890 } 5891 /** 5892 * 5893 * 5894 * <pre> 5895 * Which conditions caused the current node pool state. 5896 * </pre> 5897 * 5898 * <code>repeated .google.container.v1.StatusCondition conditions = 105;</code> 5899 */ 5900 @java.lang.Override 5901 public java.util.List<? extends com.google.container.v1.StatusConditionOrBuilder> getConditionsOrBuilderList()5902 getConditionsOrBuilderList() { 5903 return conditions_; 5904 } 5905 /** 5906 * 5907 * 5908 * <pre> 5909 * Which conditions caused the current node pool state. 5910 * </pre> 5911 * 5912 * <code>repeated .google.container.v1.StatusCondition conditions = 105;</code> 5913 */ 5914 @java.lang.Override getConditionsCount()5915 public int getConditionsCount() { 5916 return conditions_.size(); 5917 } 5918 /** 5919 * 5920 * 5921 * <pre> 5922 * Which conditions caused the current node pool state. 5923 * </pre> 5924 * 5925 * <code>repeated .google.container.v1.StatusCondition conditions = 105;</code> 5926 */ 5927 @java.lang.Override getConditions(int index)5928 public com.google.container.v1.StatusCondition getConditions(int index) { 5929 return conditions_.get(index); 5930 } 5931 /** 5932 * 5933 * 5934 * <pre> 5935 * Which conditions caused the current node pool state. 5936 * </pre> 5937 * 5938 * <code>repeated .google.container.v1.StatusCondition conditions = 105;</code> 5939 */ 5940 @java.lang.Override getConditionsOrBuilder(int index)5941 public com.google.container.v1.StatusConditionOrBuilder getConditionsOrBuilder(int index) { 5942 return conditions_.get(index); 5943 } 5944 5945 public static final int POD_IPV4_CIDR_SIZE_FIELD_NUMBER = 7; 5946 private int podIpv4CidrSize_ = 0; 5947 /** 5948 * 5949 * 5950 * <pre> 5951 * [Output only] The pod CIDR block size per node in this node pool. 5952 * </pre> 5953 * 5954 * <code>int32 pod_ipv4_cidr_size = 7;</code> 5955 * 5956 * @return The podIpv4CidrSize. 5957 */ 5958 @java.lang.Override getPodIpv4CidrSize()5959 public int getPodIpv4CidrSize() { 5960 return podIpv4CidrSize_; 5961 } 5962 5963 public static final int UPGRADE_SETTINGS_FIELD_NUMBER = 107; 5964 private com.google.container.v1.NodePool.UpgradeSettings upgradeSettings_; 5965 /** 5966 * 5967 * 5968 * <pre> 5969 * Upgrade settings control disruption and speed of the upgrade. 5970 * </pre> 5971 * 5972 * <code>.google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107;</code> 5973 * 5974 * @return Whether the upgradeSettings field is set. 5975 */ 5976 @java.lang.Override hasUpgradeSettings()5977 public boolean hasUpgradeSettings() { 5978 return upgradeSettings_ != null; 5979 } 5980 /** 5981 * 5982 * 5983 * <pre> 5984 * Upgrade settings control disruption and speed of the upgrade. 5985 * </pre> 5986 * 5987 * <code>.google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107;</code> 5988 * 5989 * @return The upgradeSettings. 5990 */ 5991 @java.lang.Override getUpgradeSettings()5992 public com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings() { 5993 return upgradeSettings_ == null 5994 ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() 5995 : upgradeSettings_; 5996 } 5997 /** 5998 * 5999 * 6000 * <pre> 6001 * Upgrade settings control disruption and speed of the upgrade. 6002 * </pre> 6003 * 6004 * <code>.google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107;</code> 6005 */ 6006 @java.lang.Override getUpgradeSettingsOrBuilder()6007 public com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder() { 6008 return upgradeSettings_ == null 6009 ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() 6010 : upgradeSettings_; 6011 } 6012 6013 public static final int PLACEMENT_POLICY_FIELD_NUMBER = 108; 6014 private com.google.container.v1.NodePool.PlacementPolicy placementPolicy_; 6015 /** 6016 * 6017 * 6018 * <pre> 6019 * Specifies the node placement policy. 6020 * </pre> 6021 * 6022 * <code>.google.container.v1.NodePool.PlacementPolicy placement_policy = 108;</code> 6023 * 6024 * @return Whether the placementPolicy field is set. 6025 */ 6026 @java.lang.Override hasPlacementPolicy()6027 public boolean hasPlacementPolicy() { 6028 return placementPolicy_ != null; 6029 } 6030 /** 6031 * 6032 * 6033 * <pre> 6034 * Specifies the node placement policy. 6035 * </pre> 6036 * 6037 * <code>.google.container.v1.NodePool.PlacementPolicy placement_policy = 108;</code> 6038 * 6039 * @return The placementPolicy. 6040 */ 6041 @java.lang.Override getPlacementPolicy()6042 public com.google.container.v1.NodePool.PlacementPolicy getPlacementPolicy() { 6043 return placementPolicy_ == null 6044 ? com.google.container.v1.NodePool.PlacementPolicy.getDefaultInstance() 6045 : placementPolicy_; 6046 } 6047 /** 6048 * 6049 * 6050 * <pre> 6051 * Specifies the node placement policy. 6052 * </pre> 6053 * 6054 * <code>.google.container.v1.NodePool.PlacementPolicy placement_policy = 108;</code> 6055 */ 6056 @java.lang.Override getPlacementPolicyOrBuilder()6057 public com.google.container.v1.NodePool.PlacementPolicyOrBuilder getPlacementPolicyOrBuilder() { 6058 return placementPolicy_ == null 6059 ? com.google.container.v1.NodePool.PlacementPolicy.getDefaultInstance() 6060 : placementPolicy_; 6061 } 6062 6063 public static final int UPDATE_INFO_FIELD_NUMBER = 109; 6064 private com.google.container.v1.NodePool.UpdateInfo updateInfo_; 6065 /** 6066 * 6067 * 6068 * <pre> 6069 * Output only. [Output only] Update info contains relevant information during 6070 * a node pool update. 6071 * </pre> 6072 * 6073 * <code> 6074 * .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; 6075 * </code> 6076 * 6077 * @return Whether the updateInfo field is set. 6078 */ 6079 @java.lang.Override hasUpdateInfo()6080 public boolean hasUpdateInfo() { 6081 return updateInfo_ != null; 6082 } 6083 /** 6084 * 6085 * 6086 * <pre> 6087 * Output only. [Output only] Update info contains relevant information during 6088 * a node pool update. 6089 * </pre> 6090 * 6091 * <code> 6092 * .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; 6093 * </code> 6094 * 6095 * @return The updateInfo. 6096 */ 6097 @java.lang.Override getUpdateInfo()6098 public com.google.container.v1.NodePool.UpdateInfo getUpdateInfo() { 6099 return updateInfo_ == null 6100 ? com.google.container.v1.NodePool.UpdateInfo.getDefaultInstance() 6101 : updateInfo_; 6102 } 6103 /** 6104 * 6105 * 6106 * <pre> 6107 * Output only. [Output only] Update info contains relevant information during 6108 * a node pool update. 6109 * </pre> 6110 * 6111 * <code> 6112 * .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; 6113 * </code> 6114 */ 6115 @java.lang.Override getUpdateInfoOrBuilder()6116 public com.google.container.v1.NodePool.UpdateInfoOrBuilder getUpdateInfoOrBuilder() { 6117 return updateInfo_ == null 6118 ? com.google.container.v1.NodePool.UpdateInfo.getDefaultInstance() 6119 : updateInfo_; 6120 } 6121 6122 public static final int ETAG_FIELD_NUMBER = 110; 6123 6124 @SuppressWarnings("serial") 6125 private volatile java.lang.Object etag_ = ""; 6126 /** 6127 * 6128 * 6129 * <pre> 6130 * This checksum is computed by the server based on the value of node pool 6131 * fields, and may be sent on update requests to ensure the client has an 6132 * up-to-date value before proceeding. 6133 * </pre> 6134 * 6135 * <code>string etag = 110;</code> 6136 * 6137 * @return The etag. 6138 */ 6139 @java.lang.Override getEtag()6140 public java.lang.String getEtag() { 6141 java.lang.Object ref = etag_; 6142 if (ref instanceof java.lang.String) { 6143 return (java.lang.String) ref; 6144 } else { 6145 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 6146 java.lang.String s = bs.toStringUtf8(); 6147 etag_ = s; 6148 return s; 6149 } 6150 } 6151 /** 6152 * 6153 * 6154 * <pre> 6155 * This checksum is computed by the server based on the value of node pool 6156 * fields, and may be sent on update requests to ensure the client has an 6157 * up-to-date value before proceeding. 6158 * </pre> 6159 * 6160 * <code>string etag = 110;</code> 6161 * 6162 * @return The bytes for etag. 6163 */ 6164 @java.lang.Override getEtagBytes()6165 public com.google.protobuf.ByteString getEtagBytes() { 6166 java.lang.Object ref = etag_; 6167 if (ref instanceof java.lang.String) { 6168 com.google.protobuf.ByteString b = 6169 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 6170 etag_ = b; 6171 return b; 6172 } else { 6173 return (com.google.protobuf.ByteString) ref; 6174 } 6175 } 6176 6177 private byte memoizedIsInitialized = -1; 6178 6179 @java.lang.Override isInitialized()6180 public final boolean isInitialized() { 6181 byte isInitialized = memoizedIsInitialized; 6182 if (isInitialized == 1) return true; 6183 if (isInitialized == 0) return false; 6184 6185 memoizedIsInitialized = 1; 6186 return true; 6187 } 6188 6189 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)6190 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 6191 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { 6192 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); 6193 } 6194 if (config_ != null) { 6195 output.writeMessage(2, getConfig()); 6196 } 6197 if (initialNodeCount_ != 0) { 6198 output.writeInt32(3, initialNodeCount_); 6199 } 6200 if (autoscaling_ != null) { 6201 output.writeMessage(4, getAutoscaling()); 6202 } 6203 if (management_ != null) { 6204 output.writeMessage(5, getManagement()); 6205 } 6206 if (maxPodsConstraint_ != null) { 6207 output.writeMessage(6, getMaxPodsConstraint()); 6208 } 6209 if (podIpv4CidrSize_ != 0) { 6210 output.writeInt32(7, podIpv4CidrSize_); 6211 } 6212 for (int i = 0; i < locations_.size(); i++) { 6213 com.google.protobuf.GeneratedMessageV3.writeString(output, 13, locations_.getRaw(i)); 6214 } 6215 if (networkConfig_ != null) { 6216 output.writeMessage(14, getNetworkConfig()); 6217 } 6218 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { 6219 com.google.protobuf.GeneratedMessageV3.writeString(output, 100, selfLink_); 6220 } 6221 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { 6222 com.google.protobuf.GeneratedMessageV3.writeString(output, 101, version_); 6223 } 6224 for (int i = 0; i < instanceGroupUrls_.size(); i++) { 6225 com.google.protobuf.GeneratedMessageV3.writeString(output, 102, instanceGroupUrls_.getRaw(i)); 6226 } 6227 if (status_ != com.google.container.v1.NodePool.Status.STATUS_UNSPECIFIED.getNumber()) { 6228 output.writeEnum(103, status_); 6229 } 6230 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { 6231 com.google.protobuf.GeneratedMessageV3.writeString(output, 104, statusMessage_); 6232 } 6233 for (int i = 0; i < conditions_.size(); i++) { 6234 output.writeMessage(105, conditions_.get(i)); 6235 } 6236 if (upgradeSettings_ != null) { 6237 output.writeMessage(107, getUpgradeSettings()); 6238 } 6239 if (placementPolicy_ != null) { 6240 output.writeMessage(108, getPlacementPolicy()); 6241 } 6242 if (updateInfo_ != null) { 6243 output.writeMessage(109, getUpdateInfo()); 6244 } 6245 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { 6246 com.google.protobuf.GeneratedMessageV3.writeString(output, 110, etag_); 6247 } 6248 getUnknownFields().writeTo(output); 6249 } 6250 6251 @java.lang.Override getSerializedSize()6252 public int getSerializedSize() { 6253 int size = memoizedSize; 6254 if (size != -1) return size; 6255 6256 size = 0; 6257 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { 6258 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); 6259 } 6260 if (config_ != null) { 6261 size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConfig()); 6262 } 6263 if (initialNodeCount_ != 0) { 6264 size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, initialNodeCount_); 6265 } 6266 if (autoscaling_ != null) { 6267 size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAutoscaling()); 6268 } 6269 if (management_ != null) { 6270 size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getManagement()); 6271 } 6272 if (maxPodsConstraint_ != null) { 6273 size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getMaxPodsConstraint()); 6274 } 6275 if (podIpv4CidrSize_ != 0) { 6276 size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, podIpv4CidrSize_); 6277 } 6278 { 6279 int dataSize = 0; 6280 for (int i = 0; i < locations_.size(); i++) { 6281 dataSize += computeStringSizeNoTag(locations_.getRaw(i)); 6282 } 6283 size += dataSize; 6284 size += 1 * getLocationsList().size(); 6285 } 6286 if (networkConfig_ != null) { 6287 size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getNetworkConfig()); 6288 } 6289 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { 6290 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, selfLink_); 6291 } 6292 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { 6293 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(101, version_); 6294 } 6295 { 6296 int dataSize = 0; 6297 for (int i = 0; i < instanceGroupUrls_.size(); i++) { 6298 dataSize += computeStringSizeNoTag(instanceGroupUrls_.getRaw(i)); 6299 } 6300 size += dataSize; 6301 size += 2 * getInstanceGroupUrlsList().size(); 6302 } 6303 if (status_ != com.google.container.v1.NodePool.Status.STATUS_UNSPECIFIED.getNumber()) { 6304 size += com.google.protobuf.CodedOutputStream.computeEnumSize(103, status_); 6305 } 6306 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { 6307 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(104, statusMessage_); 6308 } 6309 for (int i = 0; i < conditions_.size(); i++) { 6310 size += com.google.protobuf.CodedOutputStream.computeMessageSize(105, conditions_.get(i)); 6311 } 6312 if (upgradeSettings_ != null) { 6313 size += com.google.protobuf.CodedOutputStream.computeMessageSize(107, getUpgradeSettings()); 6314 } 6315 if (placementPolicy_ != null) { 6316 size += com.google.protobuf.CodedOutputStream.computeMessageSize(108, getPlacementPolicy()); 6317 } 6318 if (updateInfo_ != null) { 6319 size += com.google.protobuf.CodedOutputStream.computeMessageSize(109, getUpdateInfo()); 6320 } 6321 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { 6322 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(110, etag_); 6323 } 6324 size += getUnknownFields().getSerializedSize(); 6325 memoizedSize = size; 6326 return size; 6327 } 6328 6329 @java.lang.Override equals(final java.lang.Object obj)6330 public boolean equals(final java.lang.Object obj) { 6331 if (obj == this) { 6332 return true; 6333 } 6334 if (!(obj instanceof com.google.container.v1.NodePool)) { 6335 return super.equals(obj); 6336 } 6337 com.google.container.v1.NodePool other = (com.google.container.v1.NodePool) obj; 6338 6339 if (!getName().equals(other.getName())) return false; 6340 if (hasConfig() != other.hasConfig()) return false; 6341 if (hasConfig()) { 6342 if (!getConfig().equals(other.getConfig())) return false; 6343 } 6344 if (getInitialNodeCount() != other.getInitialNodeCount()) return false; 6345 if (!getLocationsList().equals(other.getLocationsList())) return false; 6346 if (hasNetworkConfig() != other.hasNetworkConfig()) return false; 6347 if (hasNetworkConfig()) { 6348 if (!getNetworkConfig().equals(other.getNetworkConfig())) return false; 6349 } 6350 if (!getSelfLink().equals(other.getSelfLink())) return false; 6351 if (!getVersion().equals(other.getVersion())) return false; 6352 if (!getInstanceGroupUrlsList().equals(other.getInstanceGroupUrlsList())) return false; 6353 if (status_ != other.status_) return false; 6354 if (!getStatusMessage().equals(other.getStatusMessage())) return false; 6355 if (hasAutoscaling() != other.hasAutoscaling()) return false; 6356 if (hasAutoscaling()) { 6357 if (!getAutoscaling().equals(other.getAutoscaling())) return false; 6358 } 6359 if (hasManagement() != other.hasManagement()) return false; 6360 if (hasManagement()) { 6361 if (!getManagement().equals(other.getManagement())) return false; 6362 } 6363 if (hasMaxPodsConstraint() != other.hasMaxPodsConstraint()) return false; 6364 if (hasMaxPodsConstraint()) { 6365 if (!getMaxPodsConstraint().equals(other.getMaxPodsConstraint())) return false; 6366 } 6367 if (!getConditionsList().equals(other.getConditionsList())) return false; 6368 if (getPodIpv4CidrSize() != other.getPodIpv4CidrSize()) return false; 6369 if (hasUpgradeSettings() != other.hasUpgradeSettings()) return false; 6370 if (hasUpgradeSettings()) { 6371 if (!getUpgradeSettings().equals(other.getUpgradeSettings())) return false; 6372 } 6373 if (hasPlacementPolicy() != other.hasPlacementPolicy()) return false; 6374 if (hasPlacementPolicy()) { 6375 if (!getPlacementPolicy().equals(other.getPlacementPolicy())) return false; 6376 } 6377 if (hasUpdateInfo() != other.hasUpdateInfo()) return false; 6378 if (hasUpdateInfo()) { 6379 if (!getUpdateInfo().equals(other.getUpdateInfo())) return false; 6380 } 6381 if (!getEtag().equals(other.getEtag())) return false; 6382 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 6383 return true; 6384 } 6385 6386 @java.lang.Override hashCode()6387 public int hashCode() { 6388 if (memoizedHashCode != 0) { 6389 return memoizedHashCode; 6390 } 6391 int hash = 41; 6392 hash = (19 * hash) + getDescriptor().hashCode(); 6393 hash = (37 * hash) + NAME_FIELD_NUMBER; 6394 hash = (53 * hash) + getName().hashCode(); 6395 if (hasConfig()) { 6396 hash = (37 * hash) + CONFIG_FIELD_NUMBER; 6397 hash = (53 * hash) + getConfig().hashCode(); 6398 } 6399 hash = (37 * hash) + INITIAL_NODE_COUNT_FIELD_NUMBER; 6400 hash = (53 * hash) + getInitialNodeCount(); 6401 if (getLocationsCount() > 0) { 6402 hash = (37 * hash) + LOCATIONS_FIELD_NUMBER; 6403 hash = (53 * hash) + getLocationsList().hashCode(); 6404 } 6405 if (hasNetworkConfig()) { 6406 hash = (37 * hash) + NETWORK_CONFIG_FIELD_NUMBER; 6407 hash = (53 * hash) + getNetworkConfig().hashCode(); 6408 } 6409 hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; 6410 hash = (53 * hash) + getSelfLink().hashCode(); 6411 hash = (37 * hash) + VERSION_FIELD_NUMBER; 6412 hash = (53 * hash) + getVersion().hashCode(); 6413 if (getInstanceGroupUrlsCount() > 0) { 6414 hash = (37 * hash) + INSTANCE_GROUP_URLS_FIELD_NUMBER; 6415 hash = (53 * hash) + getInstanceGroupUrlsList().hashCode(); 6416 } 6417 hash = (37 * hash) + STATUS_FIELD_NUMBER; 6418 hash = (53 * hash) + status_; 6419 hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; 6420 hash = (53 * hash) + getStatusMessage().hashCode(); 6421 if (hasAutoscaling()) { 6422 hash = (37 * hash) + AUTOSCALING_FIELD_NUMBER; 6423 hash = (53 * hash) + getAutoscaling().hashCode(); 6424 } 6425 if (hasManagement()) { 6426 hash = (37 * hash) + MANAGEMENT_FIELD_NUMBER; 6427 hash = (53 * hash) + getManagement().hashCode(); 6428 } 6429 if (hasMaxPodsConstraint()) { 6430 hash = (37 * hash) + MAX_PODS_CONSTRAINT_FIELD_NUMBER; 6431 hash = (53 * hash) + getMaxPodsConstraint().hashCode(); 6432 } 6433 if (getConditionsCount() > 0) { 6434 hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; 6435 hash = (53 * hash) + getConditionsList().hashCode(); 6436 } 6437 hash = (37 * hash) + POD_IPV4_CIDR_SIZE_FIELD_NUMBER; 6438 hash = (53 * hash) + getPodIpv4CidrSize(); 6439 if (hasUpgradeSettings()) { 6440 hash = (37 * hash) + UPGRADE_SETTINGS_FIELD_NUMBER; 6441 hash = (53 * hash) + getUpgradeSettings().hashCode(); 6442 } 6443 if (hasPlacementPolicy()) { 6444 hash = (37 * hash) + PLACEMENT_POLICY_FIELD_NUMBER; 6445 hash = (53 * hash) + getPlacementPolicy().hashCode(); 6446 } 6447 if (hasUpdateInfo()) { 6448 hash = (37 * hash) + UPDATE_INFO_FIELD_NUMBER; 6449 hash = (53 * hash) + getUpdateInfo().hashCode(); 6450 } 6451 hash = (37 * hash) + ETAG_FIELD_NUMBER; 6452 hash = (53 * hash) + getEtag().hashCode(); 6453 hash = (29 * hash) + getUnknownFields().hashCode(); 6454 memoizedHashCode = hash; 6455 return hash; 6456 } 6457 parseFrom(java.nio.ByteBuffer data)6458 public static com.google.container.v1.NodePool parseFrom(java.nio.ByteBuffer data) 6459 throws com.google.protobuf.InvalidProtocolBufferException { 6460 return PARSER.parseFrom(data); 6461 } 6462 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)6463 public static com.google.container.v1.NodePool parseFrom( 6464 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6465 throws com.google.protobuf.InvalidProtocolBufferException { 6466 return PARSER.parseFrom(data, extensionRegistry); 6467 } 6468 parseFrom(com.google.protobuf.ByteString data)6469 public static com.google.container.v1.NodePool parseFrom(com.google.protobuf.ByteString data) 6470 throws com.google.protobuf.InvalidProtocolBufferException { 6471 return PARSER.parseFrom(data); 6472 } 6473 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)6474 public static com.google.container.v1.NodePool parseFrom( 6475 com.google.protobuf.ByteString data, 6476 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6477 throws com.google.protobuf.InvalidProtocolBufferException { 6478 return PARSER.parseFrom(data, extensionRegistry); 6479 } 6480 parseFrom(byte[] data)6481 public static com.google.container.v1.NodePool parseFrom(byte[] data) 6482 throws com.google.protobuf.InvalidProtocolBufferException { 6483 return PARSER.parseFrom(data); 6484 } 6485 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)6486 public static com.google.container.v1.NodePool parseFrom( 6487 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6488 throws com.google.protobuf.InvalidProtocolBufferException { 6489 return PARSER.parseFrom(data, extensionRegistry); 6490 } 6491 parseFrom(java.io.InputStream input)6492 public static com.google.container.v1.NodePool parseFrom(java.io.InputStream input) 6493 throws java.io.IOException { 6494 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 6495 } 6496 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)6497 public static com.google.container.v1.NodePool parseFrom( 6498 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6499 throws java.io.IOException { 6500 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 6501 PARSER, input, extensionRegistry); 6502 } 6503 parseDelimitedFrom(java.io.InputStream input)6504 public static com.google.container.v1.NodePool parseDelimitedFrom(java.io.InputStream input) 6505 throws java.io.IOException { 6506 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 6507 } 6508 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)6509 public static com.google.container.v1.NodePool parseDelimitedFrom( 6510 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6511 throws java.io.IOException { 6512 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 6513 PARSER, input, extensionRegistry); 6514 } 6515 parseFrom( com.google.protobuf.CodedInputStream input)6516 public static com.google.container.v1.NodePool parseFrom( 6517 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 6518 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 6519 } 6520 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)6521 public static com.google.container.v1.NodePool parseFrom( 6522 com.google.protobuf.CodedInputStream input, 6523 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6524 throws java.io.IOException { 6525 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 6526 PARSER, input, extensionRegistry); 6527 } 6528 6529 @java.lang.Override newBuilderForType()6530 public Builder newBuilderForType() { 6531 return newBuilder(); 6532 } 6533 newBuilder()6534 public static Builder newBuilder() { 6535 return DEFAULT_INSTANCE.toBuilder(); 6536 } 6537 newBuilder(com.google.container.v1.NodePool prototype)6538 public static Builder newBuilder(com.google.container.v1.NodePool prototype) { 6539 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 6540 } 6541 6542 @java.lang.Override toBuilder()6543 public Builder toBuilder() { 6544 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 6545 } 6546 6547 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)6548 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 6549 Builder builder = new Builder(parent); 6550 return builder; 6551 } 6552 /** 6553 * 6554 * 6555 * <pre> 6556 * NodePool contains the name and configuration for a cluster's node pool. 6557 * Node pools are a set of nodes (i.e. VM's), with a common configuration and 6558 * specification, under the control of the cluster master. They may have a set 6559 * of Kubernetes labels applied to them, which may be used to reference them 6560 * during pod scheduling. They may also be resized up or down, to accommodate 6561 * the workload. 6562 * </pre> 6563 * 6564 * Protobuf type {@code google.container.v1.NodePool} 6565 */ 6566 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 6567 implements 6568 // @@protoc_insertion_point(builder_implements:google.container.v1.NodePool) 6569 com.google.container.v1.NodePoolOrBuilder { getDescriptor()6570 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 6571 return com.google.container.v1.ClusterServiceProto 6572 .internal_static_google_container_v1_NodePool_descriptor; 6573 } 6574 6575 @java.lang.Override 6576 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()6577 internalGetFieldAccessorTable() { 6578 return com.google.container.v1.ClusterServiceProto 6579 .internal_static_google_container_v1_NodePool_fieldAccessorTable 6580 .ensureFieldAccessorsInitialized( 6581 com.google.container.v1.NodePool.class, 6582 com.google.container.v1.NodePool.Builder.class); 6583 } 6584 6585 // Construct using com.google.container.v1.NodePool.newBuilder() Builder()6586 private Builder() {} 6587 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)6588 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 6589 super(parent); 6590 } 6591 6592 @java.lang.Override clear()6593 public Builder clear() { 6594 super.clear(); 6595 bitField0_ = 0; 6596 name_ = ""; 6597 config_ = null; 6598 if (configBuilder_ != null) { 6599 configBuilder_.dispose(); 6600 configBuilder_ = null; 6601 } 6602 initialNodeCount_ = 0; 6603 locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; 6604 bitField0_ = (bitField0_ & ~0x00000008); 6605 networkConfig_ = null; 6606 if (networkConfigBuilder_ != null) { 6607 networkConfigBuilder_.dispose(); 6608 networkConfigBuilder_ = null; 6609 } 6610 selfLink_ = ""; 6611 version_ = ""; 6612 instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; 6613 bitField0_ = (bitField0_ & ~0x00000080); 6614 status_ = 0; 6615 statusMessage_ = ""; 6616 autoscaling_ = null; 6617 if (autoscalingBuilder_ != null) { 6618 autoscalingBuilder_.dispose(); 6619 autoscalingBuilder_ = null; 6620 } 6621 management_ = null; 6622 if (managementBuilder_ != null) { 6623 managementBuilder_.dispose(); 6624 managementBuilder_ = null; 6625 } 6626 maxPodsConstraint_ = null; 6627 if (maxPodsConstraintBuilder_ != null) { 6628 maxPodsConstraintBuilder_.dispose(); 6629 maxPodsConstraintBuilder_ = null; 6630 } 6631 if (conditionsBuilder_ == null) { 6632 conditions_ = java.util.Collections.emptyList(); 6633 } else { 6634 conditions_ = null; 6635 conditionsBuilder_.clear(); 6636 } 6637 bitField0_ = (bitField0_ & ~0x00002000); 6638 podIpv4CidrSize_ = 0; 6639 upgradeSettings_ = null; 6640 if (upgradeSettingsBuilder_ != null) { 6641 upgradeSettingsBuilder_.dispose(); 6642 upgradeSettingsBuilder_ = null; 6643 } 6644 placementPolicy_ = null; 6645 if (placementPolicyBuilder_ != null) { 6646 placementPolicyBuilder_.dispose(); 6647 placementPolicyBuilder_ = null; 6648 } 6649 updateInfo_ = null; 6650 if (updateInfoBuilder_ != null) { 6651 updateInfoBuilder_.dispose(); 6652 updateInfoBuilder_ = null; 6653 } 6654 etag_ = ""; 6655 return this; 6656 } 6657 6658 @java.lang.Override getDescriptorForType()6659 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 6660 return com.google.container.v1.ClusterServiceProto 6661 .internal_static_google_container_v1_NodePool_descriptor; 6662 } 6663 6664 @java.lang.Override getDefaultInstanceForType()6665 public com.google.container.v1.NodePool getDefaultInstanceForType() { 6666 return com.google.container.v1.NodePool.getDefaultInstance(); 6667 } 6668 6669 @java.lang.Override build()6670 public com.google.container.v1.NodePool build() { 6671 com.google.container.v1.NodePool result = buildPartial(); 6672 if (!result.isInitialized()) { 6673 throw newUninitializedMessageException(result); 6674 } 6675 return result; 6676 } 6677 6678 @java.lang.Override buildPartial()6679 public com.google.container.v1.NodePool buildPartial() { 6680 com.google.container.v1.NodePool result = new com.google.container.v1.NodePool(this); 6681 buildPartialRepeatedFields(result); 6682 if (bitField0_ != 0) { 6683 buildPartial0(result); 6684 } 6685 onBuilt(); 6686 return result; 6687 } 6688 buildPartialRepeatedFields(com.google.container.v1.NodePool result)6689 private void buildPartialRepeatedFields(com.google.container.v1.NodePool result) { 6690 if (((bitField0_ & 0x00000008) != 0)) { 6691 locations_ = locations_.getUnmodifiableView(); 6692 bitField0_ = (bitField0_ & ~0x00000008); 6693 } 6694 result.locations_ = locations_; 6695 if (((bitField0_ & 0x00000080) != 0)) { 6696 instanceGroupUrls_ = instanceGroupUrls_.getUnmodifiableView(); 6697 bitField0_ = (bitField0_ & ~0x00000080); 6698 } 6699 result.instanceGroupUrls_ = instanceGroupUrls_; 6700 if (conditionsBuilder_ == null) { 6701 if (((bitField0_ & 0x00002000) != 0)) { 6702 conditions_ = java.util.Collections.unmodifiableList(conditions_); 6703 bitField0_ = (bitField0_ & ~0x00002000); 6704 } 6705 result.conditions_ = conditions_; 6706 } else { 6707 result.conditions_ = conditionsBuilder_.build(); 6708 } 6709 } 6710 buildPartial0(com.google.container.v1.NodePool result)6711 private void buildPartial0(com.google.container.v1.NodePool result) { 6712 int from_bitField0_ = bitField0_; 6713 if (((from_bitField0_ & 0x00000001) != 0)) { 6714 result.name_ = name_; 6715 } 6716 if (((from_bitField0_ & 0x00000002) != 0)) { 6717 result.config_ = configBuilder_ == null ? config_ : configBuilder_.build(); 6718 } 6719 if (((from_bitField0_ & 0x00000004) != 0)) { 6720 result.initialNodeCount_ = initialNodeCount_; 6721 } 6722 if (((from_bitField0_ & 0x00000010) != 0)) { 6723 result.networkConfig_ = 6724 networkConfigBuilder_ == null ? networkConfig_ : networkConfigBuilder_.build(); 6725 } 6726 if (((from_bitField0_ & 0x00000020) != 0)) { 6727 result.selfLink_ = selfLink_; 6728 } 6729 if (((from_bitField0_ & 0x00000040) != 0)) { 6730 result.version_ = version_; 6731 } 6732 if (((from_bitField0_ & 0x00000100) != 0)) { 6733 result.status_ = status_; 6734 } 6735 if (((from_bitField0_ & 0x00000200) != 0)) { 6736 result.statusMessage_ = statusMessage_; 6737 } 6738 if (((from_bitField0_ & 0x00000400) != 0)) { 6739 result.autoscaling_ = 6740 autoscalingBuilder_ == null ? autoscaling_ : autoscalingBuilder_.build(); 6741 } 6742 if (((from_bitField0_ & 0x00000800) != 0)) { 6743 result.management_ = managementBuilder_ == null ? management_ : managementBuilder_.build(); 6744 } 6745 if (((from_bitField0_ & 0x00001000) != 0)) { 6746 result.maxPodsConstraint_ = 6747 maxPodsConstraintBuilder_ == null 6748 ? maxPodsConstraint_ 6749 : maxPodsConstraintBuilder_.build(); 6750 } 6751 if (((from_bitField0_ & 0x00004000) != 0)) { 6752 result.podIpv4CidrSize_ = podIpv4CidrSize_; 6753 } 6754 if (((from_bitField0_ & 0x00008000) != 0)) { 6755 result.upgradeSettings_ = 6756 upgradeSettingsBuilder_ == null ? upgradeSettings_ : upgradeSettingsBuilder_.build(); 6757 } 6758 if (((from_bitField0_ & 0x00010000) != 0)) { 6759 result.placementPolicy_ = 6760 placementPolicyBuilder_ == null ? placementPolicy_ : placementPolicyBuilder_.build(); 6761 } 6762 if (((from_bitField0_ & 0x00020000) != 0)) { 6763 result.updateInfo_ = updateInfoBuilder_ == null ? updateInfo_ : updateInfoBuilder_.build(); 6764 } 6765 if (((from_bitField0_ & 0x00040000) != 0)) { 6766 result.etag_ = etag_; 6767 } 6768 } 6769 6770 @java.lang.Override clone()6771 public Builder clone() { 6772 return super.clone(); 6773 } 6774 6775 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)6776 public Builder setField( 6777 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 6778 return super.setField(field, value); 6779 } 6780 6781 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)6782 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 6783 return super.clearField(field); 6784 } 6785 6786 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)6787 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 6788 return super.clearOneof(oneof); 6789 } 6790 6791 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)6792 public Builder setRepeatedField( 6793 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 6794 return super.setRepeatedField(field, index, value); 6795 } 6796 6797 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)6798 public Builder addRepeatedField( 6799 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 6800 return super.addRepeatedField(field, value); 6801 } 6802 6803 @java.lang.Override mergeFrom(com.google.protobuf.Message other)6804 public Builder mergeFrom(com.google.protobuf.Message other) { 6805 if (other instanceof com.google.container.v1.NodePool) { 6806 return mergeFrom((com.google.container.v1.NodePool) other); 6807 } else { 6808 super.mergeFrom(other); 6809 return this; 6810 } 6811 } 6812 mergeFrom(com.google.container.v1.NodePool other)6813 public Builder mergeFrom(com.google.container.v1.NodePool other) { 6814 if (other == com.google.container.v1.NodePool.getDefaultInstance()) return this; 6815 if (!other.getName().isEmpty()) { 6816 name_ = other.name_; 6817 bitField0_ |= 0x00000001; 6818 onChanged(); 6819 } 6820 if (other.hasConfig()) { 6821 mergeConfig(other.getConfig()); 6822 } 6823 if (other.getInitialNodeCount() != 0) { 6824 setInitialNodeCount(other.getInitialNodeCount()); 6825 } 6826 if (!other.locations_.isEmpty()) { 6827 if (locations_.isEmpty()) { 6828 locations_ = other.locations_; 6829 bitField0_ = (bitField0_ & ~0x00000008); 6830 } else { 6831 ensureLocationsIsMutable(); 6832 locations_.addAll(other.locations_); 6833 } 6834 onChanged(); 6835 } 6836 if (other.hasNetworkConfig()) { 6837 mergeNetworkConfig(other.getNetworkConfig()); 6838 } 6839 if (!other.getSelfLink().isEmpty()) { 6840 selfLink_ = other.selfLink_; 6841 bitField0_ |= 0x00000020; 6842 onChanged(); 6843 } 6844 if (!other.getVersion().isEmpty()) { 6845 version_ = other.version_; 6846 bitField0_ |= 0x00000040; 6847 onChanged(); 6848 } 6849 if (!other.instanceGroupUrls_.isEmpty()) { 6850 if (instanceGroupUrls_.isEmpty()) { 6851 instanceGroupUrls_ = other.instanceGroupUrls_; 6852 bitField0_ = (bitField0_ & ~0x00000080); 6853 } else { 6854 ensureInstanceGroupUrlsIsMutable(); 6855 instanceGroupUrls_.addAll(other.instanceGroupUrls_); 6856 } 6857 onChanged(); 6858 } 6859 if (other.status_ != 0) { 6860 setStatusValue(other.getStatusValue()); 6861 } 6862 if (!other.getStatusMessage().isEmpty()) { 6863 statusMessage_ = other.statusMessage_; 6864 bitField0_ |= 0x00000200; 6865 onChanged(); 6866 } 6867 if (other.hasAutoscaling()) { 6868 mergeAutoscaling(other.getAutoscaling()); 6869 } 6870 if (other.hasManagement()) { 6871 mergeManagement(other.getManagement()); 6872 } 6873 if (other.hasMaxPodsConstraint()) { 6874 mergeMaxPodsConstraint(other.getMaxPodsConstraint()); 6875 } 6876 if (conditionsBuilder_ == null) { 6877 if (!other.conditions_.isEmpty()) { 6878 if (conditions_.isEmpty()) { 6879 conditions_ = other.conditions_; 6880 bitField0_ = (bitField0_ & ~0x00002000); 6881 } else { 6882 ensureConditionsIsMutable(); 6883 conditions_.addAll(other.conditions_); 6884 } 6885 onChanged(); 6886 } 6887 } else { 6888 if (!other.conditions_.isEmpty()) { 6889 if (conditionsBuilder_.isEmpty()) { 6890 conditionsBuilder_.dispose(); 6891 conditionsBuilder_ = null; 6892 conditions_ = other.conditions_; 6893 bitField0_ = (bitField0_ & ~0x00002000); 6894 conditionsBuilder_ = 6895 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders 6896 ? getConditionsFieldBuilder() 6897 : null; 6898 } else { 6899 conditionsBuilder_.addAllMessages(other.conditions_); 6900 } 6901 } 6902 } 6903 if (other.getPodIpv4CidrSize() != 0) { 6904 setPodIpv4CidrSize(other.getPodIpv4CidrSize()); 6905 } 6906 if (other.hasUpgradeSettings()) { 6907 mergeUpgradeSettings(other.getUpgradeSettings()); 6908 } 6909 if (other.hasPlacementPolicy()) { 6910 mergePlacementPolicy(other.getPlacementPolicy()); 6911 } 6912 if (other.hasUpdateInfo()) { 6913 mergeUpdateInfo(other.getUpdateInfo()); 6914 } 6915 if (!other.getEtag().isEmpty()) { 6916 etag_ = other.etag_; 6917 bitField0_ |= 0x00040000; 6918 onChanged(); 6919 } 6920 this.mergeUnknownFields(other.getUnknownFields()); 6921 onChanged(); 6922 return this; 6923 } 6924 6925 @java.lang.Override isInitialized()6926 public final boolean isInitialized() { 6927 return true; 6928 } 6929 6930 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)6931 public Builder mergeFrom( 6932 com.google.protobuf.CodedInputStream input, 6933 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6934 throws java.io.IOException { 6935 if (extensionRegistry == null) { 6936 throw new java.lang.NullPointerException(); 6937 } 6938 try { 6939 boolean done = false; 6940 while (!done) { 6941 int tag = input.readTag(); 6942 switch (tag) { 6943 case 0: 6944 done = true; 6945 break; 6946 case 10: 6947 { 6948 name_ = input.readStringRequireUtf8(); 6949 bitField0_ |= 0x00000001; 6950 break; 6951 } // case 10 6952 case 18: 6953 { 6954 input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry); 6955 bitField0_ |= 0x00000002; 6956 break; 6957 } // case 18 6958 case 24: 6959 { 6960 initialNodeCount_ = input.readInt32(); 6961 bitField0_ |= 0x00000004; 6962 break; 6963 } // case 24 6964 case 34: 6965 { 6966 input.readMessage(getAutoscalingFieldBuilder().getBuilder(), extensionRegistry); 6967 bitField0_ |= 0x00000400; 6968 break; 6969 } // case 34 6970 case 42: 6971 { 6972 input.readMessage(getManagementFieldBuilder().getBuilder(), extensionRegistry); 6973 bitField0_ |= 0x00000800; 6974 break; 6975 } // case 42 6976 case 50: 6977 { 6978 input.readMessage( 6979 getMaxPodsConstraintFieldBuilder().getBuilder(), extensionRegistry); 6980 bitField0_ |= 0x00001000; 6981 break; 6982 } // case 50 6983 case 56: 6984 { 6985 podIpv4CidrSize_ = input.readInt32(); 6986 bitField0_ |= 0x00004000; 6987 break; 6988 } // case 56 6989 case 106: 6990 { 6991 java.lang.String s = input.readStringRequireUtf8(); 6992 ensureLocationsIsMutable(); 6993 locations_.add(s); 6994 break; 6995 } // case 106 6996 case 114: 6997 { 6998 input.readMessage(getNetworkConfigFieldBuilder().getBuilder(), extensionRegistry); 6999 bitField0_ |= 0x00000010; 7000 break; 7001 } // case 114 7002 case 802: 7003 { 7004 selfLink_ = input.readStringRequireUtf8(); 7005 bitField0_ |= 0x00000020; 7006 break; 7007 } // case 802 7008 case 810: 7009 { 7010 version_ = input.readStringRequireUtf8(); 7011 bitField0_ |= 0x00000040; 7012 break; 7013 } // case 810 7014 case 818: 7015 { 7016 java.lang.String s = input.readStringRequireUtf8(); 7017 ensureInstanceGroupUrlsIsMutable(); 7018 instanceGroupUrls_.add(s); 7019 break; 7020 } // case 818 7021 case 824: 7022 { 7023 status_ = input.readEnum(); 7024 bitField0_ |= 0x00000100; 7025 break; 7026 } // case 824 7027 case 834: 7028 { 7029 statusMessage_ = input.readStringRequireUtf8(); 7030 bitField0_ |= 0x00000200; 7031 break; 7032 } // case 834 7033 case 842: 7034 { 7035 com.google.container.v1.StatusCondition m = 7036 input.readMessage( 7037 com.google.container.v1.StatusCondition.parser(), extensionRegistry); 7038 if (conditionsBuilder_ == null) { 7039 ensureConditionsIsMutable(); 7040 conditions_.add(m); 7041 } else { 7042 conditionsBuilder_.addMessage(m); 7043 } 7044 break; 7045 } // case 842 7046 case 858: 7047 { 7048 input.readMessage(getUpgradeSettingsFieldBuilder().getBuilder(), extensionRegistry); 7049 bitField0_ |= 0x00008000; 7050 break; 7051 } // case 858 7052 case 866: 7053 { 7054 input.readMessage(getPlacementPolicyFieldBuilder().getBuilder(), extensionRegistry); 7055 bitField0_ |= 0x00010000; 7056 break; 7057 } // case 866 7058 case 874: 7059 { 7060 input.readMessage(getUpdateInfoFieldBuilder().getBuilder(), extensionRegistry); 7061 bitField0_ |= 0x00020000; 7062 break; 7063 } // case 874 7064 case 882: 7065 { 7066 etag_ = input.readStringRequireUtf8(); 7067 bitField0_ |= 0x00040000; 7068 break; 7069 } // case 882 7070 default: 7071 { 7072 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 7073 done = true; // was an endgroup tag 7074 } 7075 break; 7076 } // default: 7077 } // switch (tag) 7078 } // while (!done) 7079 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 7080 throw e.unwrapIOException(); 7081 } finally { 7082 onChanged(); 7083 } // finally 7084 return this; 7085 } 7086 7087 private int bitField0_; 7088 7089 private java.lang.Object name_ = ""; 7090 /** 7091 * 7092 * 7093 * <pre> 7094 * The name of the node pool. 7095 * </pre> 7096 * 7097 * <code>string name = 1;</code> 7098 * 7099 * @return The name. 7100 */ getName()7101 public java.lang.String getName() { 7102 java.lang.Object ref = name_; 7103 if (!(ref instanceof java.lang.String)) { 7104 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 7105 java.lang.String s = bs.toStringUtf8(); 7106 name_ = s; 7107 return s; 7108 } else { 7109 return (java.lang.String) ref; 7110 } 7111 } 7112 /** 7113 * 7114 * 7115 * <pre> 7116 * The name of the node pool. 7117 * </pre> 7118 * 7119 * <code>string name = 1;</code> 7120 * 7121 * @return The bytes for name. 7122 */ getNameBytes()7123 public com.google.protobuf.ByteString getNameBytes() { 7124 java.lang.Object ref = name_; 7125 if (ref instanceof String) { 7126 com.google.protobuf.ByteString b = 7127 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 7128 name_ = b; 7129 return b; 7130 } else { 7131 return (com.google.protobuf.ByteString) ref; 7132 } 7133 } 7134 /** 7135 * 7136 * 7137 * <pre> 7138 * The name of the node pool. 7139 * </pre> 7140 * 7141 * <code>string name = 1;</code> 7142 * 7143 * @param value The name to set. 7144 * @return This builder for chaining. 7145 */ setName(java.lang.String value)7146 public Builder setName(java.lang.String value) { 7147 if (value == null) { 7148 throw new NullPointerException(); 7149 } 7150 name_ = value; 7151 bitField0_ |= 0x00000001; 7152 onChanged(); 7153 return this; 7154 } 7155 /** 7156 * 7157 * 7158 * <pre> 7159 * The name of the node pool. 7160 * </pre> 7161 * 7162 * <code>string name = 1;</code> 7163 * 7164 * @return This builder for chaining. 7165 */ clearName()7166 public Builder clearName() { 7167 name_ = getDefaultInstance().getName(); 7168 bitField0_ = (bitField0_ & ~0x00000001); 7169 onChanged(); 7170 return this; 7171 } 7172 /** 7173 * 7174 * 7175 * <pre> 7176 * The name of the node pool. 7177 * </pre> 7178 * 7179 * <code>string name = 1;</code> 7180 * 7181 * @param value The bytes for name to set. 7182 * @return This builder for chaining. 7183 */ setNameBytes(com.google.protobuf.ByteString value)7184 public Builder setNameBytes(com.google.protobuf.ByteString value) { 7185 if (value == null) { 7186 throw new NullPointerException(); 7187 } 7188 checkByteStringIsUtf8(value); 7189 name_ = value; 7190 bitField0_ |= 0x00000001; 7191 onChanged(); 7192 return this; 7193 } 7194 7195 private com.google.container.v1.NodeConfig config_; 7196 private com.google.protobuf.SingleFieldBuilderV3< 7197 com.google.container.v1.NodeConfig, 7198 com.google.container.v1.NodeConfig.Builder, 7199 com.google.container.v1.NodeConfigOrBuilder> 7200 configBuilder_; 7201 /** 7202 * 7203 * 7204 * <pre> 7205 * The node configuration of the pool. 7206 * </pre> 7207 * 7208 * <code>.google.container.v1.NodeConfig config = 2;</code> 7209 * 7210 * @return Whether the config field is set. 7211 */ hasConfig()7212 public boolean hasConfig() { 7213 return ((bitField0_ & 0x00000002) != 0); 7214 } 7215 /** 7216 * 7217 * 7218 * <pre> 7219 * The node configuration of the pool. 7220 * </pre> 7221 * 7222 * <code>.google.container.v1.NodeConfig config = 2;</code> 7223 * 7224 * @return The config. 7225 */ getConfig()7226 public com.google.container.v1.NodeConfig getConfig() { 7227 if (configBuilder_ == null) { 7228 return config_ == null ? com.google.container.v1.NodeConfig.getDefaultInstance() : config_; 7229 } else { 7230 return configBuilder_.getMessage(); 7231 } 7232 } 7233 /** 7234 * 7235 * 7236 * <pre> 7237 * The node configuration of the pool. 7238 * </pre> 7239 * 7240 * <code>.google.container.v1.NodeConfig config = 2;</code> 7241 */ setConfig(com.google.container.v1.NodeConfig value)7242 public Builder setConfig(com.google.container.v1.NodeConfig value) { 7243 if (configBuilder_ == null) { 7244 if (value == null) { 7245 throw new NullPointerException(); 7246 } 7247 config_ = value; 7248 } else { 7249 configBuilder_.setMessage(value); 7250 } 7251 bitField0_ |= 0x00000002; 7252 onChanged(); 7253 return this; 7254 } 7255 /** 7256 * 7257 * 7258 * <pre> 7259 * The node configuration of the pool. 7260 * </pre> 7261 * 7262 * <code>.google.container.v1.NodeConfig config = 2;</code> 7263 */ setConfig(com.google.container.v1.NodeConfig.Builder builderForValue)7264 public Builder setConfig(com.google.container.v1.NodeConfig.Builder builderForValue) { 7265 if (configBuilder_ == null) { 7266 config_ = builderForValue.build(); 7267 } else { 7268 configBuilder_.setMessage(builderForValue.build()); 7269 } 7270 bitField0_ |= 0x00000002; 7271 onChanged(); 7272 return this; 7273 } 7274 /** 7275 * 7276 * 7277 * <pre> 7278 * The node configuration of the pool. 7279 * </pre> 7280 * 7281 * <code>.google.container.v1.NodeConfig config = 2;</code> 7282 */ mergeConfig(com.google.container.v1.NodeConfig value)7283 public Builder mergeConfig(com.google.container.v1.NodeConfig value) { 7284 if (configBuilder_ == null) { 7285 if (((bitField0_ & 0x00000002) != 0) 7286 && config_ != null 7287 && config_ != com.google.container.v1.NodeConfig.getDefaultInstance()) { 7288 getConfigBuilder().mergeFrom(value); 7289 } else { 7290 config_ = value; 7291 } 7292 } else { 7293 configBuilder_.mergeFrom(value); 7294 } 7295 bitField0_ |= 0x00000002; 7296 onChanged(); 7297 return this; 7298 } 7299 /** 7300 * 7301 * 7302 * <pre> 7303 * The node configuration of the pool. 7304 * </pre> 7305 * 7306 * <code>.google.container.v1.NodeConfig config = 2;</code> 7307 */ clearConfig()7308 public Builder clearConfig() { 7309 bitField0_ = (bitField0_ & ~0x00000002); 7310 config_ = null; 7311 if (configBuilder_ != null) { 7312 configBuilder_.dispose(); 7313 configBuilder_ = null; 7314 } 7315 onChanged(); 7316 return this; 7317 } 7318 /** 7319 * 7320 * 7321 * <pre> 7322 * The node configuration of the pool. 7323 * </pre> 7324 * 7325 * <code>.google.container.v1.NodeConfig config = 2;</code> 7326 */ getConfigBuilder()7327 public com.google.container.v1.NodeConfig.Builder getConfigBuilder() { 7328 bitField0_ |= 0x00000002; 7329 onChanged(); 7330 return getConfigFieldBuilder().getBuilder(); 7331 } 7332 /** 7333 * 7334 * 7335 * <pre> 7336 * The node configuration of the pool. 7337 * </pre> 7338 * 7339 * <code>.google.container.v1.NodeConfig config = 2;</code> 7340 */ getConfigOrBuilder()7341 public com.google.container.v1.NodeConfigOrBuilder getConfigOrBuilder() { 7342 if (configBuilder_ != null) { 7343 return configBuilder_.getMessageOrBuilder(); 7344 } else { 7345 return config_ == null ? com.google.container.v1.NodeConfig.getDefaultInstance() : config_; 7346 } 7347 } 7348 /** 7349 * 7350 * 7351 * <pre> 7352 * The node configuration of the pool. 7353 * </pre> 7354 * 7355 * <code>.google.container.v1.NodeConfig config = 2;</code> 7356 */ 7357 private com.google.protobuf.SingleFieldBuilderV3< 7358 com.google.container.v1.NodeConfig, 7359 com.google.container.v1.NodeConfig.Builder, 7360 com.google.container.v1.NodeConfigOrBuilder> getConfigFieldBuilder()7361 getConfigFieldBuilder() { 7362 if (configBuilder_ == null) { 7363 configBuilder_ = 7364 new com.google.protobuf.SingleFieldBuilderV3< 7365 com.google.container.v1.NodeConfig, 7366 com.google.container.v1.NodeConfig.Builder, 7367 com.google.container.v1.NodeConfigOrBuilder>( 7368 getConfig(), getParentForChildren(), isClean()); 7369 config_ = null; 7370 } 7371 return configBuilder_; 7372 } 7373 7374 private int initialNodeCount_; 7375 /** 7376 * 7377 * 7378 * <pre> 7379 * The initial node count for the pool. You must ensure that your 7380 * Compute Engine [resource quota](https://cloud.google.com/compute/quotas) 7381 * is sufficient for this number of instances. You must also have available 7382 * firewall and routes quota. 7383 * </pre> 7384 * 7385 * <code>int32 initial_node_count = 3;</code> 7386 * 7387 * @return The initialNodeCount. 7388 */ 7389 @java.lang.Override getInitialNodeCount()7390 public int getInitialNodeCount() { 7391 return initialNodeCount_; 7392 } 7393 /** 7394 * 7395 * 7396 * <pre> 7397 * The initial node count for the pool. You must ensure that your 7398 * Compute Engine [resource quota](https://cloud.google.com/compute/quotas) 7399 * is sufficient for this number of instances. You must also have available 7400 * firewall and routes quota. 7401 * </pre> 7402 * 7403 * <code>int32 initial_node_count = 3;</code> 7404 * 7405 * @param value The initialNodeCount to set. 7406 * @return This builder for chaining. 7407 */ setInitialNodeCount(int value)7408 public Builder setInitialNodeCount(int value) { 7409 7410 initialNodeCount_ = value; 7411 bitField0_ |= 0x00000004; 7412 onChanged(); 7413 return this; 7414 } 7415 /** 7416 * 7417 * 7418 * <pre> 7419 * The initial node count for the pool. You must ensure that your 7420 * Compute Engine [resource quota](https://cloud.google.com/compute/quotas) 7421 * is sufficient for this number of instances. You must also have available 7422 * firewall and routes quota. 7423 * </pre> 7424 * 7425 * <code>int32 initial_node_count = 3;</code> 7426 * 7427 * @return This builder for chaining. 7428 */ clearInitialNodeCount()7429 public Builder clearInitialNodeCount() { 7430 bitField0_ = (bitField0_ & ~0x00000004); 7431 initialNodeCount_ = 0; 7432 onChanged(); 7433 return this; 7434 } 7435 7436 private com.google.protobuf.LazyStringList locations_ = 7437 com.google.protobuf.LazyStringArrayList.EMPTY; 7438 ensureLocationsIsMutable()7439 private void ensureLocationsIsMutable() { 7440 if (!((bitField0_ & 0x00000008) != 0)) { 7441 locations_ = new com.google.protobuf.LazyStringArrayList(locations_); 7442 bitField0_ |= 0x00000008; 7443 } 7444 } 7445 /** 7446 * 7447 * 7448 * <pre> 7449 * The list of Google Compute Engine 7450 * [zones](https://cloud.google.com/compute/docs/zones#available) in which the 7451 * NodePool's nodes should be located. 7452 * If this value is unspecified during node pool creation, the 7453 * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) 7454 * value will be used, instead. 7455 * Warning: changing node pool locations will result in nodes being added 7456 * and/or removed. 7457 * </pre> 7458 * 7459 * <code>repeated string locations = 13;</code> 7460 * 7461 * @return A list containing the locations. 7462 */ getLocationsList()7463 public com.google.protobuf.ProtocolStringList getLocationsList() { 7464 return locations_.getUnmodifiableView(); 7465 } 7466 /** 7467 * 7468 * 7469 * <pre> 7470 * The list of Google Compute Engine 7471 * [zones](https://cloud.google.com/compute/docs/zones#available) in which the 7472 * NodePool's nodes should be located. 7473 * If this value is unspecified during node pool creation, the 7474 * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) 7475 * value will be used, instead. 7476 * Warning: changing node pool locations will result in nodes being added 7477 * and/or removed. 7478 * </pre> 7479 * 7480 * <code>repeated string locations = 13;</code> 7481 * 7482 * @return The count of locations. 7483 */ getLocationsCount()7484 public int getLocationsCount() { 7485 return locations_.size(); 7486 } 7487 /** 7488 * 7489 * 7490 * <pre> 7491 * The list of Google Compute Engine 7492 * [zones](https://cloud.google.com/compute/docs/zones#available) in which the 7493 * NodePool's nodes should be located. 7494 * If this value is unspecified during node pool creation, the 7495 * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) 7496 * value will be used, instead. 7497 * Warning: changing node pool locations will result in nodes being added 7498 * and/or removed. 7499 * </pre> 7500 * 7501 * <code>repeated string locations = 13;</code> 7502 * 7503 * @param index The index of the element to return. 7504 * @return The locations at the given index. 7505 */ getLocations(int index)7506 public java.lang.String getLocations(int index) { 7507 return locations_.get(index); 7508 } 7509 /** 7510 * 7511 * 7512 * <pre> 7513 * The list of Google Compute Engine 7514 * [zones](https://cloud.google.com/compute/docs/zones#available) in which the 7515 * NodePool's nodes should be located. 7516 * If this value is unspecified during node pool creation, the 7517 * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) 7518 * value will be used, instead. 7519 * Warning: changing node pool locations will result in nodes being added 7520 * and/or removed. 7521 * </pre> 7522 * 7523 * <code>repeated string locations = 13;</code> 7524 * 7525 * @param index The index of the value to return. 7526 * @return The bytes of the locations at the given index. 7527 */ getLocationsBytes(int index)7528 public com.google.protobuf.ByteString getLocationsBytes(int index) { 7529 return locations_.getByteString(index); 7530 } 7531 /** 7532 * 7533 * 7534 * <pre> 7535 * The list of Google Compute Engine 7536 * [zones](https://cloud.google.com/compute/docs/zones#available) in which the 7537 * NodePool's nodes should be located. 7538 * If this value is unspecified during node pool creation, the 7539 * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) 7540 * value will be used, instead. 7541 * Warning: changing node pool locations will result in nodes being added 7542 * and/or removed. 7543 * </pre> 7544 * 7545 * <code>repeated string locations = 13;</code> 7546 * 7547 * @param index The index to set the value at. 7548 * @param value The locations to set. 7549 * @return This builder for chaining. 7550 */ setLocations(int index, java.lang.String value)7551 public Builder setLocations(int index, java.lang.String value) { 7552 if (value == null) { 7553 throw new NullPointerException(); 7554 } 7555 ensureLocationsIsMutable(); 7556 locations_.set(index, value); 7557 onChanged(); 7558 return this; 7559 } 7560 /** 7561 * 7562 * 7563 * <pre> 7564 * The list of Google Compute Engine 7565 * [zones](https://cloud.google.com/compute/docs/zones#available) in which the 7566 * NodePool's nodes should be located. 7567 * If this value is unspecified during node pool creation, the 7568 * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) 7569 * value will be used, instead. 7570 * Warning: changing node pool locations will result in nodes being added 7571 * and/or removed. 7572 * </pre> 7573 * 7574 * <code>repeated string locations = 13;</code> 7575 * 7576 * @param value The locations to add. 7577 * @return This builder for chaining. 7578 */ addLocations(java.lang.String value)7579 public Builder addLocations(java.lang.String value) { 7580 if (value == null) { 7581 throw new NullPointerException(); 7582 } 7583 ensureLocationsIsMutable(); 7584 locations_.add(value); 7585 onChanged(); 7586 return this; 7587 } 7588 /** 7589 * 7590 * 7591 * <pre> 7592 * The list of Google Compute Engine 7593 * [zones](https://cloud.google.com/compute/docs/zones#available) in which the 7594 * NodePool's nodes should be located. 7595 * If this value is unspecified during node pool creation, the 7596 * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) 7597 * value will be used, instead. 7598 * Warning: changing node pool locations will result in nodes being added 7599 * and/or removed. 7600 * </pre> 7601 * 7602 * <code>repeated string locations = 13;</code> 7603 * 7604 * @param values The locations to add. 7605 * @return This builder for chaining. 7606 */ addAllLocations(java.lang.Iterable<java.lang.String> values)7607 public Builder addAllLocations(java.lang.Iterable<java.lang.String> values) { 7608 ensureLocationsIsMutable(); 7609 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_); 7610 onChanged(); 7611 return this; 7612 } 7613 /** 7614 * 7615 * 7616 * <pre> 7617 * The list of Google Compute Engine 7618 * [zones](https://cloud.google.com/compute/docs/zones#available) in which the 7619 * NodePool's nodes should be located. 7620 * If this value is unspecified during node pool creation, the 7621 * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) 7622 * value will be used, instead. 7623 * Warning: changing node pool locations will result in nodes being added 7624 * and/or removed. 7625 * </pre> 7626 * 7627 * <code>repeated string locations = 13;</code> 7628 * 7629 * @return This builder for chaining. 7630 */ clearLocations()7631 public Builder clearLocations() { 7632 locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; 7633 bitField0_ = (bitField0_ & ~0x00000008); 7634 onChanged(); 7635 return this; 7636 } 7637 /** 7638 * 7639 * 7640 * <pre> 7641 * The list of Google Compute Engine 7642 * [zones](https://cloud.google.com/compute/docs/zones#available) in which the 7643 * NodePool's nodes should be located. 7644 * If this value is unspecified during node pool creation, the 7645 * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) 7646 * value will be used, instead. 7647 * Warning: changing node pool locations will result in nodes being added 7648 * and/or removed. 7649 * </pre> 7650 * 7651 * <code>repeated string locations = 13;</code> 7652 * 7653 * @param value The bytes of the locations to add. 7654 * @return This builder for chaining. 7655 */ addLocationsBytes(com.google.protobuf.ByteString value)7656 public Builder addLocationsBytes(com.google.protobuf.ByteString value) { 7657 if (value == null) { 7658 throw new NullPointerException(); 7659 } 7660 checkByteStringIsUtf8(value); 7661 ensureLocationsIsMutable(); 7662 locations_.add(value); 7663 onChanged(); 7664 return this; 7665 } 7666 7667 private com.google.container.v1.NodeNetworkConfig networkConfig_; 7668 private com.google.protobuf.SingleFieldBuilderV3< 7669 com.google.container.v1.NodeNetworkConfig, 7670 com.google.container.v1.NodeNetworkConfig.Builder, 7671 com.google.container.v1.NodeNetworkConfigOrBuilder> 7672 networkConfigBuilder_; 7673 /** 7674 * 7675 * 7676 * <pre> 7677 * Networking configuration for this NodePool. If specified, it overrides the 7678 * cluster-level defaults. 7679 * </pre> 7680 * 7681 * <code>.google.container.v1.NodeNetworkConfig network_config = 14;</code> 7682 * 7683 * @return Whether the networkConfig field is set. 7684 */ hasNetworkConfig()7685 public boolean hasNetworkConfig() { 7686 return ((bitField0_ & 0x00000010) != 0); 7687 } 7688 /** 7689 * 7690 * 7691 * <pre> 7692 * Networking configuration for this NodePool. If specified, it overrides the 7693 * cluster-level defaults. 7694 * </pre> 7695 * 7696 * <code>.google.container.v1.NodeNetworkConfig network_config = 14;</code> 7697 * 7698 * @return The networkConfig. 7699 */ getNetworkConfig()7700 public com.google.container.v1.NodeNetworkConfig getNetworkConfig() { 7701 if (networkConfigBuilder_ == null) { 7702 return networkConfig_ == null 7703 ? com.google.container.v1.NodeNetworkConfig.getDefaultInstance() 7704 : networkConfig_; 7705 } else { 7706 return networkConfigBuilder_.getMessage(); 7707 } 7708 } 7709 /** 7710 * 7711 * 7712 * <pre> 7713 * Networking configuration for this NodePool. If specified, it overrides the 7714 * cluster-level defaults. 7715 * </pre> 7716 * 7717 * <code>.google.container.v1.NodeNetworkConfig network_config = 14;</code> 7718 */ setNetworkConfig(com.google.container.v1.NodeNetworkConfig value)7719 public Builder setNetworkConfig(com.google.container.v1.NodeNetworkConfig value) { 7720 if (networkConfigBuilder_ == null) { 7721 if (value == null) { 7722 throw new NullPointerException(); 7723 } 7724 networkConfig_ = value; 7725 } else { 7726 networkConfigBuilder_.setMessage(value); 7727 } 7728 bitField0_ |= 0x00000010; 7729 onChanged(); 7730 return this; 7731 } 7732 /** 7733 * 7734 * 7735 * <pre> 7736 * Networking configuration for this NodePool. If specified, it overrides the 7737 * cluster-level defaults. 7738 * </pre> 7739 * 7740 * <code>.google.container.v1.NodeNetworkConfig network_config = 14;</code> 7741 */ setNetworkConfig( com.google.container.v1.NodeNetworkConfig.Builder builderForValue)7742 public Builder setNetworkConfig( 7743 com.google.container.v1.NodeNetworkConfig.Builder builderForValue) { 7744 if (networkConfigBuilder_ == null) { 7745 networkConfig_ = builderForValue.build(); 7746 } else { 7747 networkConfigBuilder_.setMessage(builderForValue.build()); 7748 } 7749 bitField0_ |= 0x00000010; 7750 onChanged(); 7751 return this; 7752 } 7753 /** 7754 * 7755 * 7756 * <pre> 7757 * Networking configuration for this NodePool. If specified, it overrides the 7758 * cluster-level defaults. 7759 * </pre> 7760 * 7761 * <code>.google.container.v1.NodeNetworkConfig network_config = 14;</code> 7762 */ mergeNetworkConfig(com.google.container.v1.NodeNetworkConfig value)7763 public Builder mergeNetworkConfig(com.google.container.v1.NodeNetworkConfig value) { 7764 if (networkConfigBuilder_ == null) { 7765 if (((bitField0_ & 0x00000010) != 0) 7766 && networkConfig_ != null 7767 && networkConfig_ != com.google.container.v1.NodeNetworkConfig.getDefaultInstance()) { 7768 getNetworkConfigBuilder().mergeFrom(value); 7769 } else { 7770 networkConfig_ = value; 7771 } 7772 } else { 7773 networkConfigBuilder_.mergeFrom(value); 7774 } 7775 bitField0_ |= 0x00000010; 7776 onChanged(); 7777 return this; 7778 } 7779 /** 7780 * 7781 * 7782 * <pre> 7783 * Networking configuration for this NodePool. If specified, it overrides the 7784 * cluster-level defaults. 7785 * </pre> 7786 * 7787 * <code>.google.container.v1.NodeNetworkConfig network_config = 14;</code> 7788 */ clearNetworkConfig()7789 public Builder clearNetworkConfig() { 7790 bitField0_ = (bitField0_ & ~0x00000010); 7791 networkConfig_ = null; 7792 if (networkConfigBuilder_ != null) { 7793 networkConfigBuilder_.dispose(); 7794 networkConfigBuilder_ = null; 7795 } 7796 onChanged(); 7797 return this; 7798 } 7799 /** 7800 * 7801 * 7802 * <pre> 7803 * Networking configuration for this NodePool. If specified, it overrides the 7804 * cluster-level defaults. 7805 * </pre> 7806 * 7807 * <code>.google.container.v1.NodeNetworkConfig network_config = 14;</code> 7808 */ getNetworkConfigBuilder()7809 public com.google.container.v1.NodeNetworkConfig.Builder getNetworkConfigBuilder() { 7810 bitField0_ |= 0x00000010; 7811 onChanged(); 7812 return getNetworkConfigFieldBuilder().getBuilder(); 7813 } 7814 /** 7815 * 7816 * 7817 * <pre> 7818 * Networking configuration for this NodePool. If specified, it overrides the 7819 * cluster-level defaults. 7820 * </pre> 7821 * 7822 * <code>.google.container.v1.NodeNetworkConfig network_config = 14;</code> 7823 */ getNetworkConfigOrBuilder()7824 public com.google.container.v1.NodeNetworkConfigOrBuilder getNetworkConfigOrBuilder() { 7825 if (networkConfigBuilder_ != null) { 7826 return networkConfigBuilder_.getMessageOrBuilder(); 7827 } else { 7828 return networkConfig_ == null 7829 ? com.google.container.v1.NodeNetworkConfig.getDefaultInstance() 7830 : networkConfig_; 7831 } 7832 } 7833 /** 7834 * 7835 * 7836 * <pre> 7837 * Networking configuration for this NodePool. If specified, it overrides the 7838 * cluster-level defaults. 7839 * </pre> 7840 * 7841 * <code>.google.container.v1.NodeNetworkConfig network_config = 14;</code> 7842 */ 7843 private com.google.protobuf.SingleFieldBuilderV3< 7844 com.google.container.v1.NodeNetworkConfig, 7845 com.google.container.v1.NodeNetworkConfig.Builder, 7846 com.google.container.v1.NodeNetworkConfigOrBuilder> getNetworkConfigFieldBuilder()7847 getNetworkConfigFieldBuilder() { 7848 if (networkConfigBuilder_ == null) { 7849 networkConfigBuilder_ = 7850 new com.google.protobuf.SingleFieldBuilderV3< 7851 com.google.container.v1.NodeNetworkConfig, 7852 com.google.container.v1.NodeNetworkConfig.Builder, 7853 com.google.container.v1.NodeNetworkConfigOrBuilder>( 7854 getNetworkConfig(), getParentForChildren(), isClean()); 7855 networkConfig_ = null; 7856 } 7857 return networkConfigBuilder_; 7858 } 7859 7860 private java.lang.Object selfLink_ = ""; 7861 /** 7862 * 7863 * 7864 * <pre> 7865 * [Output only] Server-defined URL for the resource. 7866 * </pre> 7867 * 7868 * <code>string self_link = 100;</code> 7869 * 7870 * @return The selfLink. 7871 */ getSelfLink()7872 public java.lang.String getSelfLink() { 7873 java.lang.Object ref = selfLink_; 7874 if (!(ref instanceof java.lang.String)) { 7875 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 7876 java.lang.String s = bs.toStringUtf8(); 7877 selfLink_ = s; 7878 return s; 7879 } else { 7880 return (java.lang.String) ref; 7881 } 7882 } 7883 /** 7884 * 7885 * 7886 * <pre> 7887 * [Output only] Server-defined URL for the resource. 7888 * </pre> 7889 * 7890 * <code>string self_link = 100;</code> 7891 * 7892 * @return The bytes for selfLink. 7893 */ getSelfLinkBytes()7894 public com.google.protobuf.ByteString getSelfLinkBytes() { 7895 java.lang.Object ref = selfLink_; 7896 if (ref instanceof String) { 7897 com.google.protobuf.ByteString b = 7898 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 7899 selfLink_ = b; 7900 return b; 7901 } else { 7902 return (com.google.protobuf.ByteString) ref; 7903 } 7904 } 7905 /** 7906 * 7907 * 7908 * <pre> 7909 * [Output only] Server-defined URL for the resource. 7910 * </pre> 7911 * 7912 * <code>string self_link = 100;</code> 7913 * 7914 * @param value The selfLink to set. 7915 * @return This builder for chaining. 7916 */ setSelfLink(java.lang.String value)7917 public Builder setSelfLink(java.lang.String value) { 7918 if (value == null) { 7919 throw new NullPointerException(); 7920 } 7921 selfLink_ = value; 7922 bitField0_ |= 0x00000020; 7923 onChanged(); 7924 return this; 7925 } 7926 /** 7927 * 7928 * 7929 * <pre> 7930 * [Output only] Server-defined URL for the resource. 7931 * </pre> 7932 * 7933 * <code>string self_link = 100;</code> 7934 * 7935 * @return This builder for chaining. 7936 */ clearSelfLink()7937 public Builder clearSelfLink() { 7938 selfLink_ = getDefaultInstance().getSelfLink(); 7939 bitField0_ = (bitField0_ & ~0x00000020); 7940 onChanged(); 7941 return this; 7942 } 7943 /** 7944 * 7945 * 7946 * <pre> 7947 * [Output only] Server-defined URL for the resource. 7948 * </pre> 7949 * 7950 * <code>string self_link = 100;</code> 7951 * 7952 * @param value The bytes for selfLink to set. 7953 * @return This builder for chaining. 7954 */ setSelfLinkBytes(com.google.protobuf.ByteString value)7955 public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { 7956 if (value == null) { 7957 throw new NullPointerException(); 7958 } 7959 checkByteStringIsUtf8(value); 7960 selfLink_ = value; 7961 bitField0_ |= 0x00000020; 7962 onChanged(); 7963 return this; 7964 } 7965 7966 private java.lang.Object version_ = ""; 7967 /** 7968 * 7969 * 7970 * <pre> 7971 * The version of Kubernetes running on this NodePool's nodes. If unspecified, 7972 * it defaults as described 7973 * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version). 7974 * </pre> 7975 * 7976 * <code>string version = 101;</code> 7977 * 7978 * @return The version. 7979 */ getVersion()7980 public java.lang.String getVersion() { 7981 java.lang.Object ref = version_; 7982 if (!(ref instanceof java.lang.String)) { 7983 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 7984 java.lang.String s = bs.toStringUtf8(); 7985 version_ = s; 7986 return s; 7987 } else { 7988 return (java.lang.String) ref; 7989 } 7990 } 7991 /** 7992 * 7993 * 7994 * <pre> 7995 * The version of Kubernetes running on this NodePool's nodes. If unspecified, 7996 * it defaults as described 7997 * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version). 7998 * </pre> 7999 * 8000 * <code>string version = 101;</code> 8001 * 8002 * @return The bytes for version. 8003 */ getVersionBytes()8004 public com.google.protobuf.ByteString getVersionBytes() { 8005 java.lang.Object ref = version_; 8006 if (ref instanceof String) { 8007 com.google.protobuf.ByteString b = 8008 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 8009 version_ = b; 8010 return b; 8011 } else { 8012 return (com.google.protobuf.ByteString) ref; 8013 } 8014 } 8015 /** 8016 * 8017 * 8018 * <pre> 8019 * The version of Kubernetes running on this NodePool's nodes. If unspecified, 8020 * it defaults as described 8021 * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version). 8022 * </pre> 8023 * 8024 * <code>string version = 101;</code> 8025 * 8026 * @param value The version to set. 8027 * @return This builder for chaining. 8028 */ setVersion(java.lang.String value)8029 public Builder setVersion(java.lang.String value) { 8030 if (value == null) { 8031 throw new NullPointerException(); 8032 } 8033 version_ = value; 8034 bitField0_ |= 0x00000040; 8035 onChanged(); 8036 return this; 8037 } 8038 /** 8039 * 8040 * 8041 * <pre> 8042 * The version of Kubernetes running on this NodePool's nodes. If unspecified, 8043 * it defaults as described 8044 * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version). 8045 * </pre> 8046 * 8047 * <code>string version = 101;</code> 8048 * 8049 * @return This builder for chaining. 8050 */ clearVersion()8051 public Builder clearVersion() { 8052 version_ = getDefaultInstance().getVersion(); 8053 bitField0_ = (bitField0_ & ~0x00000040); 8054 onChanged(); 8055 return this; 8056 } 8057 /** 8058 * 8059 * 8060 * <pre> 8061 * The version of Kubernetes running on this NodePool's nodes. If unspecified, 8062 * it defaults as described 8063 * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version). 8064 * </pre> 8065 * 8066 * <code>string version = 101;</code> 8067 * 8068 * @param value The bytes for version to set. 8069 * @return This builder for chaining. 8070 */ setVersionBytes(com.google.protobuf.ByteString value)8071 public Builder setVersionBytes(com.google.protobuf.ByteString value) { 8072 if (value == null) { 8073 throw new NullPointerException(); 8074 } 8075 checkByteStringIsUtf8(value); 8076 version_ = value; 8077 bitField0_ |= 0x00000040; 8078 onChanged(); 8079 return this; 8080 } 8081 8082 private com.google.protobuf.LazyStringList instanceGroupUrls_ = 8083 com.google.protobuf.LazyStringArrayList.EMPTY; 8084 ensureInstanceGroupUrlsIsMutable()8085 private void ensureInstanceGroupUrlsIsMutable() { 8086 if (!((bitField0_ & 0x00000080) != 0)) { 8087 instanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(instanceGroupUrls_); 8088 bitField0_ |= 0x00000080; 8089 } 8090 } 8091 /** 8092 * 8093 * 8094 * <pre> 8095 * [Output only] The resource URLs of the [managed instance 8096 * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) 8097 * associated with this node pool. 8098 * During the node pool blue-green upgrade operation, the URLs contain both 8099 * blue and green resources. 8100 * </pre> 8101 * 8102 * <code>repeated string instance_group_urls = 102;</code> 8103 * 8104 * @return A list containing the instanceGroupUrls. 8105 */ getInstanceGroupUrlsList()8106 public com.google.protobuf.ProtocolStringList getInstanceGroupUrlsList() { 8107 return instanceGroupUrls_.getUnmodifiableView(); 8108 } 8109 /** 8110 * 8111 * 8112 * <pre> 8113 * [Output only] The resource URLs of the [managed instance 8114 * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) 8115 * associated with this node pool. 8116 * During the node pool blue-green upgrade operation, the URLs contain both 8117 * blue and green resources. 8118 * </pre> 8119 * 8120 * <code>repeated string instance_group_urls = 102;</code> 8121 * 8122 * @return The count of instanceGroupUrls. 8123 */ getInstanceGroupUrlsCount()8124 public int getInstanceGroupUrlsCount() { 8125 return instanceGroupUrls_.size(); 8126 } 8127 /** 8128 * 8129 * 8130 * <pre> 8131 * [Output only] The resource URLs of the [managed instance 8132 * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) 8133 * associated with this node pool. 8134 * During the node pool blue-green upgrade operation, the URLs contain both 8135 * blue and green resources. 8136 * </pre> 8137 * 8138 * <code>repeated string instance_group_urls = 102;</code> 8139 * 8140 * @param index The index of the element to return. 8141 * @return The instanceGroupUrls at the given index. 8142 */ getInstanceGroupUrls(int index)8143 public java.lang.String getInstanceGroupUrls(int index) { 8144 return instanceGroupUrls_.get(index); 8145 } 8146 /** 8147 * 8148 * 8149 * <pre> 8150 * [Output only] The resource URLs of the [managed instance 8151 * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) 8152 * associated with this node pool. 8153 * During the node pool blue-green upgrade operation, the URLs contain both 8154 * blue and green resources. 8155 * </pre> 8156 * 8157 * <code>repeated string instance_group_urls = 102;</code> 8158 * 8159 * @param index The index of the value to return. 8160 * @return The bytes of the instanceGroupUrls at the given index. 8161 */ getInstanceGroupUrlsBytes(int index)8162 public com.google.protobuf.ByteString getInstanceGroupUrlsBytes(int index) { 8163 return instanceGroupUrls_.getByteString(index); 8164 } 8165 /** 8166 * 8167 * 8168 * <pre> 8169 * [Output only] The resource URLs of the [managed instance 8170 * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) 8171 * associated with this node pool. 8172 * During the node pool blue-green upgrade operation, the URLs contain both 8173 * blue and green resources. 8174 * </pre> 8175 * 8176 * <code>repeated string instance_group_urls = 102;</code> 8177 * 8178 * @param index The index to set the value at. 8179 * @param value The instanceGroupUrls to set. 8180 * @return This builder for chaining. 8181 */ setInstanceGroupUrls(int index, java.lang.String value)8182 public Builder setInstanceGroupUrls(int index, java.lang.String value) { 8183 if (value == null) { 8184 throw new NullPointerException(); 8185 } 8186 ensureInstanceGroupUrlsIsMutable(); 8187 instanceGroupUrls_.set(index, value); 8188 onChanged(); 8189 return this; 8190 } 8191 /** 8192 * 8193 * 8194 * <pre> 8195 * [Output only] The resource URLs of the [managed instance 8196 * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) 8197 * associated with this node pool. 8198 * During the node pool blue-green upgrade operation, the URLs contain both 8199 * blue and green resources. 8200 * </pre> 8201 * 8202 * <code>repeated string instance_group_urls = 102;</code> 8203 * 8204 * @param value The instanceGroupUrls to add. 8205 * @return This builder for chaining. 8206 */ addInstanceGroupUrls(java.lang.String value)8207 public Builder addInstanceGroupUrls(java.lang.String value) { 8208 if (value == null) { 8209 throw new NullPointerException(); 8210 } 8211 ensureInstanceGroupUrlsIsMutable(); 8212 instanceGroupUrls_.add(value); 8213 onChanged(); 8214 return this; 8215 } 8216 /** 8217 * 8218 * 8219 * <pre> 8220 * [Output only] The resource URLs of the [managed instance 8221 * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) 8222 * associated with this node pool. 8223 * During the node pool blue-green upgrade operation, the URLs contain both 8224 * blue and green resources. 8225 * </pre> 8226 * 8227 * <code>repeated string instance_group_urls = 102;</code> 8228 * 8229 * @param values The instanceGroupUrls to add. 8230 * @return This builder for chaining. 8231 */ addAllInstanceGroupUrls(java.lang.Iterable<java.lang.String> values)8232 public Builder addAllInstanceGroupUrls(java.lang.Iterable<java.lang.String> values) { 8233 ensureInstanceGroupUrlsIsMutable(); 8234 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instanceGroupUrls_); 8235 onChanged(); 8236 return this; 8237 } 8238 /** 8239 * 8240 * 8241 * <pre> 8242 * [Output only] The resource URLs of the [managed instance 8243 * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) 8244 * associated with this node pool. 8245 * During the node pool blue-green upgrade operation, the URLs contain both 8246 * blue and green resources. 8247 * </pre> 8248 * 8249 * <code>repeated string instance_group_urls = 102;</code> 8250 * 8251 * @return This builder for chaining. 8252 */ clearInstanceGroupUrls()8253 public Builder clearInstanceGroupUrls() { 8254 instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; 8255 bitField0_ = (bitField0_ & ~0x00000080); 8256 onChanged(); 8257 return this; 8258 } 8259 /** 8260 * 8261 * 8262 * <pre> 8263 * [Output only] The resource URLs of the [managed instance 8264 * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) 8265 * associated with this node pool. 8266 * During the node pool blue-green upgrade operation, the URLs contain both 8267 * blue and green resources. 8268 * </pre> 8269 * 8270 * <code>repeated string instance_group_urls = 102;</code> 8271 * 8272 * @param value The bytes of the instanceGroupUrls to add. 8273 * @return This builder for chaining. 8274 */ addInstanceGroupUrlsBytes(com.google.protobuf.ByteString value)8275 public Builder addInstanceGroupUrlsBytes(com.google.protobuf.ByteString value) { 8276 if (value == null) { 8277 throw new NullPointerException(); 8278 } 8279 checkByteStringIsUtf8(value); 8280 ensureInstanceGroupUrlsIsMutable(); 8281 instanceGroupUrls_.add(value); 8282 onChanged(); 8283 return this; 8284 } 8285 8286 private int status_ = 0; 8287 /** 8288 * 8289 * 8290 * <pre> 8291 * [Output only] The status of the nodes in this pool instance. 8292 * </pre> 8293 * 8294 * <code>.google.container.v1.NodePool.Status status = 103;</code> 8295 * 8296 * @return The enum numeric value on the wire for status. 8297 */ 8298 @java.lang.Override getStatusValue()8299 public int getStatusValue() { 8300 return status_; 8301 } 8302 /** 8303 * 8304 * 8305 * <pre> 8306 * [Output only] The status of the nodes in this pool instance. 8307 * </pre> 8308 * 8309 * <code>.google.container.v1.NodePool.Status status = 103;</code> 8310 * 8311 * @param value The enum numeric value on the wire for status to set. 8312 * @return This builder for chaining. 8313 */ setStatusValue(int value)8314 public Builder setStatusValue(int value) { 8315 status_ = value; 8316 bitField0_ |= 0x00000100; 8317 onChanged(); 8318 return this; 8319 } 8320 /** 8321 * 8322 * 8323 * <pre> 8324 * [Output only] The status of the nodes in this pool instance. 8325 * </pre> 8326 * 8327 * <code>.google.container.v1.NodePool.Status status = 103;</code> 8328 * 8329 * @return The status. 8330 */ 8331 @java.lang.Override getStatus()8332 public com.google.container.v1.NodePool.Status getStatus() { 8333 com.google.container.v1.NodePool.Status result = 8334 com.google.container.v1.NodePool.Status.forNumber(status_); 8335 return result == null ? com.google.container.v1.NodePool.Status.UNRECOGNIZED : result; 8336 } 8337 /** 8338 * 8339 * 8340 * <pre> 8341 * [Output only] The status of the nodes in this pool instance. 8342 * </pre> 8343 * 8344 * <code>.google.container.v1.NodePool.Status status = 103;</code> 8345 * 8346 * @param value The status to set. 8347 * @return This builder for chaining. 8348 */ setStatus(com.google.container.v1.NodePool.Status value)8349 public Builder setStatus(com.google.container.v1.NodePool.Status value) { 8350 if (value == null) { 8351 throw new NullPointerException(); 8352 } 8353 bitField0_ |= 0x00000100; 8354 status_ = value.getNumber(); 8355 onChanged(); 8356 return this; 8357 } 8358 /** 8359 * 8360 * 8361 * <pre> 8362 * [Output only] The status of the nodes in this pool instance. 8363 * </pre> 8364 * 8365 * <code>.google.container.v1.NodePool.Status status = 103;</code> 8366 * 8367 * @return This builder for chaining. 8368 */ clearStatus()8369 public Builder clearStatus() { 8370 bitField0_ = (bitField0_ & ~0x00000100); 8371 status_ = 0; 8372 onChanged(); 8373 return this; 8374 } 8375 8376 private java.lang.Object statusMessage_ = ""; 8377 /** 8378 * 8379 * 8380 * <pre> 8381 * [Output only] Deprecated. Use conditions instead. 8382 * Additional information about the current status of this 8383 * node pool instance, if available. 8384 * </pre> 8385 * 8386 * <code>string status_message = 104 [deprecated = true];</code> 8387 * 8388 * @deprecated google.container.v1.NodePool.status_message is deprecated. See 8389 * google/container/v1/cluster_service.proto;l=3292 8390 * @return The statusMessage. 8391 */ 8392 @java.lang.Deprecated getStatusMessage()8393 public java.lang.String getStatusMessage() { 8394 java.lang.Object ref = statusMessage_; 8395 if (!(ref instanceof java.lang.String)) { 8396 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 8397 java.lang.String s = bs.toStringUtf8(); 8398 statusMessage_ = s; 8399 return s; 8400 } else { 8401 return (java.lang.String) ref; 8402 } 8403 } 8404 /** 8405 * 8406 * 8407 * <pre> 8408 * [Output only] Deprecated. Use conditions instead. 8409 * Additional information about the current status of this 8410 * node pool instance, if available. 8411 * </pre> 8412 * 8413 * <code>string status_message = 104 [deprecated = true];</code> 8414 * 8415 * @deprecated google.container.v1.NodePool.status_message is deprecated. See 8416 * google/container/v1/cluster_service.proto;l=3292 8417 * @return The bytes for statusMessage. 8418 */ 8419 @java.lang.Deprecated getStatusMessageBytes()8420 public com.google.protobuf.ByteString getStatusMessageBytes() { 8421 java.lang.Object ref = statusMessage_; 8422 if (ref instanceof String) { 8423 com.google.protobuf.ByteString b = 8424 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 8425 statusMessage_ = b; 8426 return b; 8427 } else { 8428 return (com.google.protobuf.ByteString) ref; 8429 } 8430 } 8431 /** 8432 * 8433 * 8434 * <pre> 8435 * [Output only] Deprecated. Use conditions instead. 8436 * Additional information about the current status of this 8437 * node pool instance, if available. 8438 * </pre> 8439 * 8440 * <code>string status_message = 104 [deprecated = true];</code> 8441 * 8442 * @deprecated google.container.v1.NodePool.status_message is deprecated. See 8443 * google/container/v1/cluster_service.proto;l=3292 8444 * @param value The statusMessage to set. 8445 * @return This builder for chaining. 8446 */ 8447 @java.lang.Deprecated setStatusMessage(java.lang.String value)8448 public Builder setStatusMessage(java.lang.String value) { 8449 if (value == null) { 8450 throw new NullPointerException(); 8451 } 8452 statusMessage_ = value; 8453 bitField0_ |= 0x00000200; 8454 onChanged(); 8455 return this; 8456 } 8457 /** 8458 * 8459 * 8460 * <pre> 8461 * [Output only] Deprecated. Use conditions instead. 8462 * Additional information about the current status of this 8463 * node pool instance, if available. 8464 * </pre> 8465 * 8466 * <code>string status_message = 104 [deprecated = true];</code> 8467 * 8468 * @deprecated google.container.v1.NodePool.status_message is deprecated. See 8469 * google/container/v1/cluster_service.proto;l=3292 8470 * @return This builder for chaining. 8471 */ 8472 @java.lang.Deprecated clearStatusMessage()8473 public Builder clearStatusMessage() { 8474 statusMessage_ = getDefaultInstance().getStatusMessage(); 8475 bitField0_ = (bitField0_ & ~0x00000200); 8476 onChanged(); 8477 return this; 8478 } 8479 /** 8480 * 8481 * 8482 * <pre> 8483 * [Output only] Deprecated. Use conditions instead. 8484 * Additional information about the current status of this 8485 * node pool instance, if available. 8486 * </pre> 8487 * 8488 * <code>string status_message = 104 [deprecated = true];</code> 8489 * 8490 * @deprecated google.container.v1.NodePool.status_message is deprecated. See 8491 * google/container/v1/cluster_service.proto;l=3292 8492 * @param value The bytes for statusMessage to set. 8493 * @return This builder for chaining. 8494 */ 8495 @java.lang.Deprecated setStatusMessageBytes(com.google.protobuf.ByteString value)8496 public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { 8497 if (value == null) { 8498 throw new NullPointerException(); 8499 } 8500 checkByteStringIsUtf8(value); 8501 statusMessage_ = value; 8502 bitField0_ |= 0x00000200; 8503 onChanged(); 8504 return this; 8505 } 8506 8507 private com.google.container.v1.NodePoolAutoscaling autoscaling_; 8508 private com.google.protobuf.SingleFieldBuilderV3< 8509 com.google.container.v1.NodePoolAutoscaling, 8510 com.google.container.v1.NodePoolAutoscaling.Builder, 8511 com.google.container.v1.NodePoolAutoscalingOrBuilder> 8512 autoscalingBuilder_; 8513 /** 8514 * 8515 * 8516 * <pre> 8517 * Autoscaler configuration for this NodePool. Autoscaler is enabled 8518 * only if a valid configuration is present. 8519 * </pre> 8520 * 8521 * <code>.google.container.v1.NodePoolAutoscaling autoscaling = 4;</code> 8522 * 8523 * @return Whether the autoscaling field is set. 8524 */ hasAutoscaling()8525 public boolean hasAutoscaling() { 8526 return ((bitField0_ & 0x00000400) != 0); 8527 } 8528 /** 8529 * 8530 * 8531 * <pre> 8532 * Autoscaler configuration for this NodePool. Autoscaler is enabled 8533 * only if a valid configuration is present. 8534 * </pre> 8535 * 8536 * <code>.google.container.v1.NodePoolAutoscaling autoscaling = 4;</code> 8537 * 8538 * @return The autoscaling. 8539 */ getAutoscaling()8540 public com.google.container.v1.NodePoolAutoscaling getAutoscaling() { 8541 if (autoscalingBuilder_ == null) { 8542 return autoscaling_ == null 8543 ? com.google.container.v1.NodePoolAutoscaling.getDefaultInstance() 8544 : autoscaling_; 8545 } else { 8546 return autoscalingBuilder_.getMessage(); 8547 } 8548 } 8549 /** 8550 * 8551 * 8552 * <pre> 8553 * Autoscaler configuration for this NodePool. Autoscaler is enabled 8554 * only if a valid configuration is present. 8555 * </pre> 8556 * 8557 * <code>.google.container.v1.NodePoolAutoscaling autoscaling = 4;</code> 8558 */ setAutoscaling(com.google.container.v1.NodePoolAutoscaling value)8559 public Builder setAutoscaling(com.google.container.v1.NodePoolAutoscaling value) { 8560 if (autoscalingBuilder_ == null) { 8561 if (value == null) { 8562 throw new NullPointerException(); 8563 } 8564 autoscaling_ = value; 8565 } else { 8566 autoscalingBuilder_.setMessage(value); 8567 } 8568 bitField0_ |= 0x00000400; 8569 onChanged(); 8570 return this; 8571 } 8572 /** 8573 * 8574 * 8575 * <pre> 8576 * Autoscaler configuration for this NodePool. Autoscaler is enabled 8577 * only if a valid configuration is present. 8578 * </pre> 8579 * 8580 * <code>.google.container.v1.NodePoolAutoscaling autoscaling = 4;</code> 8581 */ setAutoscaling( com.google.container.v1.NodePoolAutoscaling.Builder builderForValue)8582 public Builder setAutoscaling( 8583 com.google.container.v1.NodePoolAutoscaling.Builder builderForValue) { 8584 if (autoscalingBuilder_ == null) { 8585 autoscaling_ = builderForValue.build(); 8586 } else { 8587 autoscalingBuilder_.setMessage(builderForValue.build()); 8588 } 8589 bitField0_ |= 0x00000400; 8590 onChanged(); 8591 return this; 8592 } 8593 /** 8594 * 8595 * 8596 * <pre> 8597 * Autoscaler configuration for this NodePool. Autoscaler is enabled 8598 * only if a valid configuration is present. 8599 * </pre> 8600 * 8601 * <code>.google.container.v1.NodePoolAutoscaling autoscaling = 4;</code> 8602 */ mergeAutoscaling(com.google.container.v1.NodePoolAutoscaling value)8603 public Builder mergeAutoscaling(com.google.container.v1.NodePoolAutoscaling value) { 8604 if (autoscalingBuilder_ == null) { 8605 if (((bitField0_ & 0x00000400) != 0) 8606 && autoscaling_ != null 8607 && autoscaling_ != com.google.container.v1.NodePoolAutoscaling.getDefaultInstance()) { 8608 getAutoscalingBuilder().mergeFrom(value); 8609 } else { 8610 autoscaling_ = value; 8611 } 8612 } else { 8613 autoscalingBuilder_.mergeFrom(value); 8614 } 8615 bitField0_ |= 0x00000400; 8616 onChanged(); 8617 return this; 8618 } 8619 /** 8620 * 8621 * 8622 * <pre> 8623 * Autoscaler configuration for this NodePool. Autoscaler is enabled 8624 * only if a valid configuration is present. 8625 * </pre> 8626 * 8627 * <code>.google.container.v1.NodePoolAutoscaling autoscaling = 4;</code> 8628 */ clearAutoscaling()8629 public Builder clearAutoscaling() { 8630 bitField0_ = (bitField0_ & ~0x00000400); 8631 autoscaling_ = null; 8632 if (autoscalingBuilder_ != null) { 8633 autoscalingBuilder_.dispose(); 8634 autoscalingBuilder_ = null; 8635 } 8636 onChanged(); 8637 return this; 8638 } 8639 /** 8640 * 8641 * 8642 * <pre> 8643 * Autoscaler configuration for this NodePool. Autoscaler is enabled 8644 * only if a valid configuration is present. 8645 * </pre> 8646 * 8647 * <code>.google.container.v1.NodePoolAutoscaling autoscaling = 4;</code> 8648 */ getAutoscalingBuilder()8649 public com.google.container.v1.NodePoolAutoscaling.Builder getAutoscalingBuilder() { 8650 bitField0_ |= 0x00000400; 8651 onChanged(); 8652 return getAutoscalingFieldBuilder().getBuilder(); 8653 } 8654 /** 8655 * 8656 * 8657 * <pre> 8658 * Autoscaler configuration for this NodePool. Autoscaler is enabled 8659 * only if a valid configuration is present. 8660 * </pre> 8661 * 8662 * <code>.google.container.v1.NodePoolAutoscaling autoscaling = 4;</code> 8663 */ getAutoscalingOrBuilder()8664 public com.google.container.v1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder() { 8665 if (autoscalingBuilder_ != null) { 8666 return autoscalingBuilder_.getMessageOrBuilder(); 8667 } else { 8668 return autoscaling_ == null 8669 ? com.google.container.v1.NodePoolAutoscaling.getDefaultInstance() 8670 : autoscaling_; 8671 } 8672 } 8673 /** 8674 * 8675 * 8676 * <pre> 8677 * Autoscaler configuration for this NodePool. Autoscaler is enabled 8678 * only if a valid configuration is present. 8679 * </pre> 8680 * 8681 * <code>.google.container.v1.NodePoolAutoscaling autoscaling = 4;</code> 8682 */ 8683 private com.google.protobuf.SingleFieldBuilderV3< 8684 com.google.container.v1.NodePoolAutoscaling, 8685 com.google.container.v1.NodePoolAutoscaling.Builder, 8686 com.google.container.v1.NodePoolAutoscalingOrBuilder> getAutoscalingFieldBuilder()8687 getAutoscalingFieldBuilder() { 8688 if (autoscalingBuilder_ == null) { 8689 autoscalingBuilder_ = 8690 new com.google.protobuf.SingleFieldBuilderV3< 8691 com.google.container.v1.NodePoolAutoscaling, 8692 com.google.container.v1.NodePoolAutoscaling.Builder, 8693 com.google.container.v1.NodePoolAutoscalingOrBuilder>( 8694 getAutoscaling(), getParentForChildren(), isClean()); 8695 autoscaling_ = null; 8696 } 8697 return autoscalingBuilder_; 8698 } 8699 8700 private com.google.container.v1.NodeManagement management_; 8701 private com.google.protobuf.SingleFieldBuilderV3< 8702 com.google.container.v1.NodeManagement, 8703 com.google.container.v1.NodeManagement.Builder, 8704 com.google.container.v1.NodeManagementOrBuilder> 8705 managementBuilder_; 8706 /** 8707 * 8708 * 8709 * <pre> 8710 * NodeManagement configuration for this NodePool. 8711 * </pre> 8712 * 8713 * <code>.google.container.v1.NodeManagement management = 5;</code> 8714 * 8715 * @return Whether the management field is set. 8716 */ hasManagement()8717 public boolean hasManagement() { 8718 return ((bitField0_ & 0x00000800) != 0); 8719 } 8720 /** 8721 * 8722 * 8723 * <pre> 8724 * NodeManagement configuration for this NodePool. 8725 * </pre> 8726 * 8727 * <code>.google.container.v1.NodeManagement management = 5;</code> 8728 * 8729 * @return The management. 8730 */ getManagement()8731 public com.google.container.v1.NodeManagement getManagement() { 8732 if (managementBuilder_ == null) { 8733 return management_ == null 8734 ? com.google.container.v1.NodeManagement.getDefaultInstance() 8735 : management_; 8736 } else { 8737 return managementBuilder_.getMessage(); 8738 } 8739 } 8740 /** 8741 * 8742 * 8743 * <pre> 8744 * NodeManagement configuration for this NodePool. 8745 * </pre> 8746 * 8747 * <code>.google.container.v1.NodeManagement management = 5;</code> 8748 */ setManagement(com.google.container.v1.NodeManagement value)8749 public Builder setManagement(com.google.container.v1.NodeManagement value) { 8750 if (managementBuilder_ == null) { 8751 if (value == null) { 8752 throw new NullPointerException(); 8753 } 8754 management_ = value; 8755 } else { 8756 managementBuilder_.setMessage(value); 8757 } 8758 bitField0_ |= 0x00000800; 8759 onChanged(); 8760 return this; 8761 } 8762 /** 8763 * 8764 * 8765 * <pre> 8766 * NodeManagement configuration for this NodePool. 8767 * </pre> 8768 * 8769 * <code>.google.container.v1.NodeManagement management = 5;</code> 8770 */ setManagement(com.google.container.v1.NodeManagement.Builder builderForValue)8771 public Builder setManagement(com.google.container.v1.NodeManagement.Builder builderForValue) { 8772 if (managementBuilder_ == null) { 8773 management_ = builderForValue.build(); 8774 } else { 8775 managementBuilder_.setMessage(builderForValue.build()); 8776 } 8777 bitField0_ |= 0x00000800; 8778 onChanged(); 8779 return this; 8780 } 8781 /** 8782 * 8783 * 8784 * <pre> 8785 * NodeManagement configuration for this NodePool. 8786 * </pre> 8787 * 8788 * <code>.google.container.v1.NodeManagement management = 5;</code> 8789 */ mergeManagement(com.google.container.v1.NodeManagement value)8790 public Builder mergeManagement(com.google.container.v1.NodeManagement value) { 8791 if (managementBuilder_ == null) { 8792 if (((bitField0_ & 0x00000800) != 0) 8793 && management_ != null 8794 && management_ != com.google.container.v1.NodeManagement.getDefaultInstance()) { 8795 getManagementBuilder().mergeFrom(value); 8796 } else { 8797 management_ = value; 8798 } 8799 } else { 8800 managementBuilder_.mergeFrom(value); 8801 } 8802 bitField0_ |= 0x00000800; 8803 onChanged(); 8804 return this; 8805 } 8806 /** 8807 * 8808 * 8809 * <pre> 8810 * NodeManagement configuration for this NodePool. 8811 * </pre> 8812 * 8813 * <code>.google.container.v1.NodeManagement management = 5;</code> 8814 */ clearManagement()8815 public Builder clearManagement() { 8816 bitField0_ = (bitField0_ & ~0x00000800); 8817 management_ = null; 8818 if (managementBuilder_ != null) { 8819 managementBuilder_.dispose(); 8820 managementBuilder_ = null; 8821 } 8822 onChanged(); 8823 return this; 8824 } 8825 /** 8826 * 8827 * 8828 * <pre> 8829 * NodeManagement configuration for this NodePool. 8830 * </pre> 8831 * 8832 * <code>.google.container.v1.NodeManagement management = 5;</code> 8833 */ getManagementBuilder()8834 public com.google.container.v1.NodeManagement.Builder getManagementBuilder() { 8835 bitField0_ |= 0x00000800; 8836 onChanged(); 8837 return getManagementFieldBuilder().getBuilder(); 8838 } 8839 /** 8840 * 8841 * 8842 * <pre> 8843 * NodeManagement configuration for this NodePool. 8844 * </pre> 8845 * 8846 * <code>.google.container.v1.NodeManagement management = 5;</code> 8847 */ getManagementOrBuilder()8848 public com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder() { 8849 if (managementBuilder_ != null) { 8850 return managementBuilder_.getMessageOrBuilder(); 8851 } else { 8852 return management_ == null 8853 ? com.google.container.v1.NodeManagement.getDefaultInstance() 8854 : management_; 8855 } 8856 } 8857 /** 8858 * 8859 * 8860 * <pre> 8861 * NodeManagement configuration for this NodePool. 8862 * </pre> 8863 * 8864 * <code>.google.container.v1.NodeManagement management = 5;</code> 8865 */ 8866 private com.google.protobuf.SingleFieldBuilderV3< 8867 com.google.container.v1.NodeManagement, 8868 com.google.container.v1.NodeManagement.Builder, 8869 com.google.container.v1.NodeManagementOrBuilder> getManagementFieldBuilder()8870 getManagementFieldBuilder() { 8871 if (managementBuilder_ == null) { 8872 managementBuilder_ = 8873 new com.google.protobuf.SingleFieldBuilderV3< 8874 com.google.container.v1.NodeManagement, 8875 com.google.container.v1.NodeManagement.Builder, 8876 com.google.container.v1.NodeManagementOrBuilder>( 8877 getManagement(), getParentForChildren(), isClean()); 8878 management_ = null; 8879 } 8880 return managementBuilder_; 8881 } 8882 8883 private com.google.container.v1.MaxPodsConstraint maxPodsConstraint_; 8884 private com.google.protobuf.SingleFieldBuilderV3< 8885 com.google.container.v1.MaxPodsConstraint, 8886 com.google.container.v1.MaxPodsConstraint.Builder, 8887 com.google.container.v1.MaxPodsConstraintOrBuilder> 8888 maxPodsConstraintBuilder_; 8889 /** 8890 * 8891 * 8892 * <pre> 8893 * The constraint on the maximum number of pods that can be run 8894 * simultaneously on a node in the node pool. 8895 * </pre> 8896 * 8897 * <code>.google.container.v1.MaxPodsConstraint max_pods_constraint = 6;</code> 8898 * 8899 * @return Whether the maxPodsConstraint field is set. 8900 */ hasMaxPodsConstraint()8901 public boolean hasMaxPodsConstraint() { 8902 return ((bitField0_ & 0x00001000) != 0); 8903 } 8904 /** 8905 * 8906 * 8907 * <pre> 8908 * The constraint on the maximum number of pods that can be run 8909 * simultaneously on a node in the node pool. 8910 * </pre> 8911 * 8912 * <code>.google.container.v1.MaxPodsConstraint max_pods_constraint = 6;</code> 8913 * 8914 * @return The maxPodsConstraint. 8915 */ getMaxPodsConstraint()8916 public com.google.container.v1.MaxPodsConstraint getMaxPodsConstraint() { 8917 if (maxPodsConstraintBuilder_ == null) { 8918 return maxPodsConstraint_ == null 8919 ? com.google.container.v1.MaxPodsConstraint.getDefaultInstance() 8920 : maxPodsConstraint_; 8921 } else { 8922 return maxPodsConstraintBuilder_.getMessage(); 8923 } 8924 } 8925 /** 8926 * 8927 * 8928 * <pre> 8929 * The constraint on the maximum number of pods that can be run 8930 * simultaneously on a node in the node pool. 8931 * </pre> 8932 * 8933 * <code>.google.container.v1.MaxPodsConstraint max_pods_constraint = 6;</code> 8934 */ setMaxPodsConstraint(com.google.container.v1.MaxPodsConstraint value)8935 public Builder setMaxPodsConstraint(com.google.container.v1.MaxPodsConstraint value) { 8936 if (maxPodsConstraintBuilder_ == null) { 8937 if (value == null) { 8938 throw new NullPointerException(); 8939 } 8940 maxPodsConstraint_ = value; 8941 } else { 8942 maxPodsConstraintBuilder_.setMessage(value); 8943 } 8944 bitField0_ |= 0x00001000; 8945 onChanged(); 8946 return this; 8947 } 8948 /** 8949 * 8950 * 8951 * <pre> 8952 * The constraint on the maximum number of pods that can be run 8953 * simultaneously on a node in the node pool. 8954 * </pre> 8955 * 8956 * <code>.google.container.v1.MaxPodsConstraint max_pods_constraint = 6;</code> 8957 */ setMaxPodsConstraint( com.google.container.v1.MaxPodsConstraint.Builder builderForValue)8958 public Builder setMaxPodsConstraint( 8959 com.google.container.v1.MaxPodsConstraint.Builder builderForValue) { 8960 if (maxPodsConstraintBuilder_ == null) { 8961 maxPodsConstraint_ = builderForValue.build(); 8962 } else { 8963 maxPodsConstraintBuilder_.setMessage(builderForValue.build()); 8964 } 8965 bitField0_ |= 0x00001000; 8966 onChanged(); 8967 return this; 8968 } 8969 /** 8970 * 8971 * 8972 * <pre> 8973 * The constraint on the maximum number of pods that can be run 8974 * simultaneously on a node in the node pool. 8975 * </pre> 8976 * 8977 * <code>.google.container.v1.MaxPodsConstraint max_pods_constraint = 6;</code> 8978 */ mergeMaxPodsConstraint(com.google.container.v1.MaxPodsConstraint value)8979 public Builder mergeMaxPodsConstraint(com.google.container.v1.MaxPodsConstraint value) { 8980 if (maxPodsConstraintBuilder_ == null) { 8981 if (((bitField0_ & 0x00001000) != 0) 8982 && maxPodsConstraint_ != null 8983 && maxPodsConstraint_ 8984 != com.google.container.v1.MaxPodsConstraint.getDefaultInstance()) { 8985 getMaxPodsConstraintBuilder().mergeFrom(value); 8986 } else { 8987 maxPodsConstraint_ = value; 8988 } 8989 } else { 8990 maxPodsConstraintBuilder_.mergeFrom(value); 8991 } 8992 bitField0_ |= 0x00001000; 8993 onChanged(); 8994 return this; 8995 } 8996 /** 8997 * 8998 * 8999 * <pre> 9000 * The constraint on the maximum number of pods that can be run 9001 * simultaneously on a node in the node pool. 9002 * </pre> 9003 * 9004 * <code>.google.container.v1.MaxPodsConstraint max_pods_constraint = 6;</code> 9005 */ clearMaxPodsConstraint()9006 public Builder clearMaxPodsConstraint() { 9007 bitField0_ = (bitField0_ & ~0x00001000); 9008 maxPodsConstraint_ = null; 9009 if (maxPodsConstraintBuilder_ != null) { 9010 maxPodsConstraintBuilder_.dispose(); 9011 maxPodsConstraintBuilder_ = null; 9012 } 9013 onChanged(); 9014 return this; 9015 } 9016 /** 9017 * 9018 * 9019 * <pre> 9020 * The constraint on the maximum number of pods that can be run 9021 * simultaneously on a node in the node pool. 9022 * </pre> 9023 * 9024 * <code>.google.container.v1.MaxPodsConstraint max_pods_constraint = 6;</code> 9025 */ getMaxPodsConstraintBuilder()9026 public com.google.container.v1.MaxPodsConstraint.Builder getMaxPodsConstraintBuilder() { 9027 bitField0_ |= 0x00001000; 9028 onChanged(); 9029 return getMaxPodsConstraintFieldBuilder().getBuilder(); 9030 } 9031 /** 9032 * 9033 * 9034 * <pre> 9035 * The constraint on the maximum number of pods that can be run 9036 * simultaneously on a node in the node pool. 9037 * </pre> 9038 * 9039 * <code>.google.container.v1.MaxPodsConstraint max_pods_constraint = 6;</code> 9040 */ getMaxPodsConstraintOrBuilder()9041 public com.google.container.v1.MaxPodsConstraintOrBuilder getMaxPodsConstraintOrBuilder() { 9042 if (maxPodsConstraintBuilder_ != null) { 9043 return maxPodsConstraintBuilder_.getMessageOrBuilder(); 9044 } else { 9045 return maxPodsConstraint_ == null 9046 ? com.google.container.v1.MaxPodsConstraint.getDefaultInstance() 9047 : maxPodsConstraint_; 9048 } 9049 } 9050 /** 9051 * 9052 * 9053 * <pre> 9054 * The constraint on the maximum number of pods that can be run 9055 * simultaneously on a node in the node pool. 9056 * </pre> 9057 * 9058 * <code>.google.container.v1.MaxPodsConstraint max_pods_constraint = 6;</code> 9059 */ 9060 private com.google.protobuf.SingleFieldBuilderV3< 9061 com.google.container.v1.MaxPodsConstraint, 9062 com.google.container.v1.MaxPodsConstraint.Builder, 9063 com.google.container.v1.MaxPodsConstraintOrBuilder> getMaxPodsConstraintFieldBuilder()9064 getMaxPodsConstraintFieldBuilder() { 9065 if (maxPodsConstraintBuilder_ == null) { 9066 maxPodsConstraintBuilder_ = 9067 new com.google.protobuf.SingleFieldBuilderV3< 9068 com.google.container.v1.MaxPodsConstraint, 9069 com.google.container.v1.MaxPodsConstraint.Builder, 9070 com.google.container.v1.MaxPodsConstraintOrBuilder>( 9071 getMaxPodsConstraint(), getParentForChildren(), isClean()); 9072 maxPodsConstraint_ = null; 9073 } 9074 return maxPodsConstraintBuilder_; 9075 } 9076 9077 private java.util.List<com.google.container.v1.StatusCondition> conditions_ = 9078 java.util.Collections.emptyList(); 9079 ensureConditionsIsMutable()9080 private void ensureConditionsIsMutable() { 9081 if (!((bitField0_ & 0x00002000) != 0)) { 9082 conditions_ = new java.util.ArrayList<com.google.container.v1.StatusCondition>(conditions_); 9083 bitField0_ |= 0x00002000; 9084 } 9085 } 9086 9087 private com.google.protobuf.RepeatedFieldBuilderV3< 9088 com.google.container.v1.StatusCondition, 9089 com.google.container.v1.StatusCondition.Builder, 9090 com.google.container.v1.StatusConditionOrBuilder> 9091 conditionsBuilder_; 9092 9093 /** 9094 * 9095 * 9096 * <pre> 9097 * Which conditions caused the current node pool state. 9098 * </pre> 9099 * 9100 * <code>repeated .google.container.v1.StatusCondition conditions = 105;</code> 9101 */ getConditionsList()9102 public java.util.List<com.google.container.v1.StatusCondition> getConditionsList() { 9103 if (conditionsBuilder_ == null) { 9104 return java.util.Collections.unmodifiableList(conditions_); 9105 } else { 9106 return conditionsBuilder_.getMessageList(); 9107 } 9108 } 9109 /** 9110 * 9111 * 9112 * <pre> 9113 * Which conditions caused the current node pool state. 9114 * </pre> 9115 * 9116 * <code>repeated .google.container.v1.StatusCondition conditions = 105;</code> 9117 */ getConditionsCount()9118 public int getConditionsCount() { 9119 if (conditionsBuilder_ == null) { 9120 return conditions_.size(); 9121 } else { 9122 return conditionsBuilder_.getCount(); 9123 } 9124 } 9125 /** 9126 * 9127 * 9128 * <pre> 9129 * Which conditions caused the current node pool state. 9130 * </pre> 9131 * 9132 * <code>repeated .google.container.v1.StatusCondition conditions = 105;</code> 9133 */ getConditions(int index)9134 public com.google.container.v1.StatusCondition getConditions(int index) { 9135 if (conditionsBuilder_ == null) { 9136 return conditions_.get(index); 9137 } else { 9138 return conditionsBuilder_.getMessage(index); 9139 } 9140 } 9141 /** 9142 * 9143 * 9144 * <pre> 9145 * Which conditions caused the current node pool state. 9146 * </pre> 9147 * 9148 * <code>repeated .google.container.v1.StatusCondition conditions = 105;</code> 9149 */ setConditions(int index, com.google.container.v1.StatusCondition value)9150 public Builder setConditions(int index, com.google.container.v1.StatusCondition value) { 9151 if (conditionsBuilder_ == null) { 9152 if (value == null) { 9153 throw new NullPointerException(); 9154 } 9155 ensureConditionsIsMutable(); 9156 conditions_.set(index, value); 9157 onChanged(); 9158 } else { 9159 conditionsBuilder_.setMessage(index, value); 9160 } 9161 return this; 9162 } 9163 /** 9164 * 9165 * 9166 * <pre> 9167 * Which conditions caused the current node pool state. 9168 * </pre> 9169 * 9170 * <code>repeated .google.container.v1.StatusCondition conditions = 105;</code> 9171 */ setConditions( int index, com.google.container.v1.StatusCondition.Builder builderForValue)9172 public Builder setConditions( 9173 int index, com.google.container.v1.StatusCondition.Builder builderForValue) { 9174 if (conditionsBuilder_ == null) { 9175 ensureConditionsIsMutable(); 9176 conditions_.set(index, builderForValue.build()); 9177 onChanged(); 9178 } else { 9179 conditionsBuilder_.setMessage(index, builderForValue.build()); 9180 } 9181 return this; 9182 } 9183 /** 9184 * 9185 * 9186 * <pre> 9187 * Which conditions caused the current node pool state. 9188 * </pre> 9189 * 9190 * <code>repeated .google.container.v1.StatusCondition conditions = 105;</code> 9191 */ addConditions(com.google.container.v1.StatusCondition value)9192 public Builder addConditions(com.google.container.v1.StatusCondition value) { 9193 if (conditionsBuilder_ == null) { 9194 if (value == null) { 9195 throw new NullPointerException(); 9196 } 9197 ensureConditionsIsMutable(); 9198 conditions_.add(value); 9199 onChanged(); 9200 } else { 9201 conditionsBuilder_.addMessage(value); 9202 } 9203 return this; 9204 } 9205 /** 9206 * 9207 * 9208 * <pre> 9209 * Which conditions caused the current node pool state. 9210 * </pre> 9211 * 9212 * <code>repeated .google.container.v1.StatusCondition conditions = 105;</code> 9213 */ addConditions(int index, com.google.container.v1.StatusCondition value)9214 public Builder addConditions(int index, com.google.container.v1.StatusCondition value) { 9215 if (conditionsBuilder_ == null) { 9216 if (value == null) { 9217 throw new NullPointerException(); 9218 } 9219 ensureConditionsIsMutable(); 9220 conditions_.add(index, value); 9221 onChanged(); 9222 } else { 9223 conditionsBuilder_.addMessage(index, value); 9224 } 9225 return this; 9226 } 9227 /** 9228 * 9229 * 9230 * <pre> 9231 * Which conditions caused the current node pool state. 9232 * </pre> 9233 * 9234 * <code>repeated .google.container.v1.StatusCondition conditions = 105;</code> 9235 */ addConditions(com.google.container.v1.StatusCondition.Builder builderForValue)9236 public Builder addConditions(com.google.container.v1.StatusCondition.Builder builderForValue) { 9237 if (conditionsBuilder_ == null) { 9238 ensureConditionsIsMutable(); 9239 conditions_.add(builderForValue.build()); 9240 onChanged(); 9241 } else { 9242 conditionsBuilder_.addMessage(builderForValue.build()); 9243 } 9244 return this; 9245 } 9246 /** 9247 * 9248 * 9249 * <pre> 9250 * Which conditions caused the current node pool state. 9251 * </pre> 9252 * 9253 * <code>repeated .google.container.v1.StatusCondition conditions = 105;</code> 9254 */ addConditions( int index, com.google.container.v1.StatusCondition.Builder builderForValue)9255 public Builder addConditions( 9256 int index, com.google.container.v1.StatusCondition.Builder builderForValue) { 9257 if (conditionsBuilder_ == null) { 9258 ensureConditionsIsMutable(); 9259 conditions_.add(index, builderForValue.build()); 9260 onChanged(); 9261 } else { 9262 conditionsBuilder_.addMessage(index, builderForValue.build()); 9263 } 9264 return this; 9265 } 9266 /** 9267 * 9268 * 9269 * <pre> 9270 * Which conditions caused the current node pool state. 9271 * </pre> 9272 * 9273 * <code>repeated .google.container.v1.StatusCondition conditions = 105;</code> 9274 */ addAllConditions( java.lang.Iterable<? extends com.google.container.v1.StatusCondition> values)9275 public Builder addAllConditions( 9276 java.lang.Iterable<? extends com.google.container.v1.StatusCondition> values) { 9277 if (conditionsBuilder_ == null) { 9278 ensureConditionsIsMutable(); 9279 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_); 9280 onChanged(); 9281 } else { 9282 conditionsBuilder_.addAllMessages(values); 9283 } 9284 return this; 9285 } 9286 /** 9287 * 9288 * 9289 * <pre> 9290 * Which conditions caused the current node pool state. 9291 * </pre> 9292 * 9293 * <code>repeated .google.container.v1.StatusCondition conditions = 105;</code> 9294 */ clearConditions()9295 public Builder clearConditions() { 9296 if (conditionsBuilder_ == null) { 9297 conditions_ = java.util.Collections.emptyList(); 9298 bitField0_ = (bitField0_ & ~0x00002000); 9299 onChanged(); 9300 } else { 9301 conditionsBuilder_.clear(); 9302 } 9303 return this; 9304 } 9305 /** 9306 * 9307 * 9308 * <pre> 9309 * Which conditions caused the current node pool state. 9310 * </pre> 9311 * 9312 * <code>repeated .google.container.v1.StatusCondition conditions = 105;</code> 9313 */ removeConditions(int index)9314 public Builder removeConditions(int index) { 9315 if (conditionsBuilder_ == null) { 9316 ensureConditionsIsMutable(); 9317 conditions_.remove(index); 9318 onChanged(); 9319 } else { 9320 conditionsBuilder_.remove(index); 9321 } 9322 return this; 9323 } 9324 /** 9325 * 9326 * 9327 * <pre> 9328 * Which conditions caused the current node pool state. 9329 * </pre> 9330 * 9331 * <code>repeated .google.container.v1.StatusCondition conditions = 105;</code> 9332 */ getConditionsBuilder(int index)9333 public com.google.container.v1.StatusCondition.Builder getConditionsBuilder(int index) { 9334 return getConditionsFieldBuilder().getBuilder(index); 9335 } 9336 /** 9337 * 9338 * 9339 * <pre> 9340 * Which conditions caused the current node pool state. 9341 * </pre> 9342 * 9343 * <code>repeated .google.container.v1.StatusCondition conditions = 105;</code> 9344 */ getConditionsOrBuilder(int index)9345 public com.google.container.v1.StatusConditionOrBuilder getConditionsOrBuilder(int index) { 9346 if (conditionsBuilder_ == null) { 9347 return conditions_.get(index); 9348 } else { 9349 return conditionsBuilder_.getMessageOrBuilder(index); 9350 } 9351 } 9352 /** 9353 * 9354 * 9355 * <pre> 9356 * Which conditions caused the current node pool state. 9357 * </pre> 9358 * 9359 * <code>repeated .google.container.v1.StatusCondition conditions = 105;</code> 9360 */ 9361 public java.util.List<? extends com.google.container.v1.StatusConditionOrBuilder> getConditionsOrBuilderList()9362 getConditionsOrBuilderList() { 9363 if (conditionsBuilder_ != null) { 9364 return conditionsBuilder_.getMessageOrBuilderList(); 9365 } else { 9366 return java.util.Collections.unmodifiableList(conditions_); 9367 } 9368 } 9369 /** 9370 * 9371 * 9372 * <pre> 9373 * Which conditions caused the current node pool state. 9374 * </pre> 9375 * 9376 * <code>repeated .google.container.v1.StatusCondition conditions = 105;</code> 9377 */ addConditionsBuilder()9378 public com.google.container.v1.StatusCondition.Builder addConditionsBuilder() { 9379 return getConditionsFieldBuilder() 9380 .addBuilder(com.google.container.v1.StatusCondition.getDefaultInstance()); 9381 } 9382 /** 9383 * 9384 * 9385 * <pre> 9386 * Which conditions caused the current node pool state. 9387 * </pre> 9388 * 9389 * <code>repeated .google.container.v1.StatusCondition conditions = 105;</code> 9390 */ addConditionsBuilder(int index)9391 public com.google.container.v1.StatusCondition.Builder addConditionsBuilder(int index) { 9392 return getConditionsFieldBuilder() 9393 .addBuilder(index, com.google.container.v1.StatusCondition.getDefaultInstance()); 9394 } 9395 /** 9396 * 9397 * 9398 * <pre> 9399 * Which conditions caused the current node pool state. 9400 * </pre> 9401 * 9402 * <code>repeated .google.container.v1.StatusCondition conditions = 105;</code> 9403 */ 9404 public java.util.List<com.google.container.v1.StatusCondition.Builder> getConditionsBuilderList()9405 getConditionsBuilderList() { 9406 return getConditionsFieldBuilder().getBuilderList(); 9407 } 9408 9409 private com.google.protobuf.RepeatedFieldBuilderV3< 9410 com.google.container.v1.StatusCondition, 9411 com.google.container.v1.StatusCondition.Builder, 9412 com.google.container.v1.StatusConditionOrBuilder> getConditionsFieldBuilder()9413 getConditionsFieldBuilder() { 9414 if (conditionsBuilder_ == null) { 9415 conditionsBuilder_ = 9416 new com.google.protobuf.RepeatedFieldBuilderV3< 9417 com.google.container.v1.StatusCondition, 9418 com.google.container.v1.StatusCondition.Builder, 9419 com.google.container.v1.StatusConditionOrBuilder>( 9420 conditions_, ((bitField0_ & 0x00002000) != 0), getParentForChildren(), isClean()); 9421 conditions_ = null; 9422 } 9423 return conditionsBuilder_; 9424 } 9425 9426 private int podIpv4CidrSize_; 9427 /** 9428 * 9429 * 9430 * <pre> 9431 * [Output only] The pod CIDR block size per node in this node pool. 9432 * </pre> 9433 * 9434 * <code>int32 pod_ipv4_cidr_size = 7;</code> 9435 * 9436 * @return The podIpv4CidrSize. 9437 */ 9438 @java.lang.Override getPodIpv4CidrSize()9439 public int getPodIpv4CidrSize() { 9440 return podIpv4CidrSize_; 9441 } 9442 /** 9443 * 9444 * 9445 * <pre> 9446 * [Output only] The pod CIDR block size per node in this node pool. 9447 * </pre> 9448 * 9449 * <code>int32 pod_ipv4_cidr_size = 7;</code> 9450 * 9451 * @param value The podIpv4CidrSize to set. 9452 * @return This builder for chaining. 9453 */ setPodIpv4CidrSize(int value)9454 public Builder setPodIpv4CidrSize(int value) { 9455 9456 podIpv4CidrSize_ = value; 9457 bitField0_ |= 0x00004000; 9458 onChanged(); 9459 return this; 9460 } 9461 /** 9462 * 9463 * 9464 * <pre> 9465 * [Output only] The pod CIDR block size per node in this node pool. 9466 * </pre> 9467 * 9468 * <code>int32 pod_ipv4_cidr_size = 7;</code> 9469 * 9470 * @return This builder for chaining. 9471 */ clearPodIpv4CidrSize()9472 public Builder clearPodIpv4CidrSize() { 9473 bitField0_ = (bitField0_ & ~0x00004000); 9474 podIpv4CidrSize_ = 0; 9475 onChanged(); 9476 return this; 9477 } 9478 9479 private com.google.container.v1.NodePool.UpgradeSettings upgradeSettings_; 9480 private com.google.protobuf.SingleFieldBuilderV3< 9481 com.google.container.v1.NodePool.UpgradeSettings, 9482 com.google.container.v1.NodePool.UpgradeSettings.Builder, 9483 com.google.container.v1.NodePool.UpgradeSettingsOrBuilder> 9484 upgradeSettingsBuilder_; 9485 /** 9486 * 9487 * 9488 * <pre> 9489 * Upgrade settings control disruption and speed of the upgrade. 9490 * </pre> 9491 * 9492 * <code>.google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107;</code> 9493 * 9494 * @return Whether the upgradeSettings field is set. 9495 */ hasUpgradeSettings()9496 public boolean hasUpgradeSettings() { 9497 return ((bitField0_ & 0x00008000) != 0); 9498 } 9499 /** 9500 * 9501 * 9502 * <pre> 9503 * Upgrade settings control disruption and speed of the upgrade. 9504 * </pre> 9505 * 9506 * <code>.google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107;</code> 9507 * 9508 * @return The upgradeSettings. 9509 */ getUpgradeSettings()9510 public com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings() { 9511 if (upgradeSettingsBuilder_ == null) { 9512 return upgradeSettings_ == null 9513 ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() 9514 : upgradeSettings_; 9515 } else { 9516 return upgradeSettingsBuilder_.getMessage(); 9517 } 9518 } 9519 /** 9520 * 9521 * 9522 * <pre> 9523 * Upgrade settings control disruption and speed of the upgrade. 9524 * </pre> 9525 * 9526 * <code>.google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107;</code> 9527 */ setUpgradeSettings(com.google.container.v1.NodePool.UpgradeSettings value)9528 public Builder setUpgradeSettings(com.google.container.v1.NodePool.UpgradeSettings value) { 9529 if (upgradeSettingsBuilder_ == null) { 9530 if (value == null) { 9531 throw new NullPointerException(); 9532 } 9533 upgradeSettings_ = value; 9534 } else { 9535 upgradeSettingsBuilder_.setMessage(value); 9536 } 9537 bitField0_ |= 0x00008000; 9538 onChanged(); 9539 return this; 9540 } 9541 /** 9542 * 9543 * 9544 * <pre> 9545 * Upgrade settings control disruption and speed of the upgrade. 9546 * </pre> 9547 * 9548 * <code>.google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107;</code> 9549 */ setUpgradeSettings( com.google.container.v1.NodePool.UpgradeSettings.Builder builderForValue)9550 public Builder setUpgradeSettings( 9551 com.google.container.v1.NodePool.UpgradeSettings.Builder builderForValue) { 9552 if (upgradeSettingsBuilder_ == null) { 9553 upgradeSettings_ = builderForValue.build(); 9554 } else { 9555 upgradeSettingsBuilder_.setMessage(builderForValue.build()); 9556 } 9557 bitField0_ |= 0x00008000; 9558 onChanged(); 9559 return this; 9560 } 9561 /** 9562 * 9563 * 9564 * <pre> 9565 * Upgrade settings control disruption and speed of the upgrade. 9566 * </pre> 9567 * 9568 * <code>.google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107;</code> 9569 */ mergeUpgradeSettings(com.google.container.v1.NodePool.UpgradeSettings value)9570 public Builder mergeUpgradeSettings(com.google.container.v1.NodePool.UpgradeSettings value) { 9571 if (upgradeSettingsBuilder_ == null) { 9572 if (((bitField0_ & 0x00008000) != 0) 9573 && upgradeSettings_ != null 9574 && upgradeSettings_ 9575 != com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance()) { 9576 getUpgradeSettingsBuilder().mergeFrom(value); 9577 } else { 9578 upgradeSettings_ = value; 9579 } 9580 } else { 9581 upgradeSettingsBuilder_.mergeFrom(value); 9582 } 9583 bitField0_ |= 0x00008000; 9584 onChanged(); 9585 return this; 9586 } 9587 /** 9588 * 9589 * 9590 * <pre> 9591 * Upgrade settings control disruption and speed of the upgrade. 9592 * </pre> 9593 * 9594 * <code>.google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107;</code> 9595 */ clearUpgradeSettings()9596 public Builder clearUpgradeSettings() { 9597 bitField0_ = (bitField0_ & ~0x00008000); 9598 upgradeSettings_ = null; 9599 if (upgradeSettingsBuilder_ != null) { 9600 upgradeSettingsBuilder_.dispose(); 9601 upgradeSettingsBuilder_ = null; 9602 } 9603 onChanged(); 9604 return this; 9605 } 9606 /** 9607 * 9608 * 9609 * <pre> 9610 * Upgrade settings control disruption and speed of the upgrade. 9611 * </pre> 9612 * 9613 * <code>.google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107;</code> 9614 */ getUpgradeSettingsBuilder()9615 public com.google.container.v1.NodePool.UpgradeSettings.Builder getUpgradeSettingsBuilder() { 9616 bitField0_ |= 0x00008000; 9617 onChanged(); 9618 return getUpgradeSettingsFieldBuilder().getBuilder(); 9619 } 9620 /** 9621 * 9622 * 9623 * <pre> 9624 * Upgrade settings control disruption and speed of the upgrade. 9625 * </pre> 9626 * 9627 * <code>.google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107;</code> 9628 */ getUpgradeSettingsOrBuilder()9629 public com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder() { 9630 if (upgradeSettingsBuilder_ != null) { 9631 return upgradeSettingsBuilder_.getMessageOrBuilder(); 9632 } else { 9633 return upgradeSettings_ == null 9634 ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() 9635 : upgradeSettings_; 9636 } 9637 } 9638 /** 9639 * 9640 * 9641 * <pre> 9642 * Upgrade settings control disruption and speed of the upgrade. 9643 * </pre> 9644 * 9645 * <code>.google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107;</code> 9646 */ 9647 private com.google.protobuf.SingleFieldBuilderV3< 9648 com.google.container.v1.NodePool.UpgradeSettings, 9649 com.google.container.v1.NodePool.UpgradeSettings.Builder, 9650 com.google.container.v1.NodePool.UpgradeSettingsOrBuilder> getUpgradeSettingsFieldBuilder()9651 getUpgradeSettingsFieldBuilder() { 9652 if (upgradeSettingsBuilder_ == null) { 9653 upgradeSettingsBuilder_ = 9654 new com.google.protobuf.SingleFieldBuilderV3< 9655 com.google.container.v1.NodePool.UpgradeSettings, 9656 com.google.container.v1.NodePool.UpgradeSettings.Builder, 9657 com.google.container.v1.NodePool.UpgradeSettingsOrBuilder>( 9658 getUpgradeSettings(), getParentForChildren(), isClean()); 9659 upgradeSettings_ = null; 9660 } 9661 return upgradeSettingsBuilder_; 9662 } 9663 9664 private com.google.container.v1.NodePool.PlacementPolicy placementPolicy_; 9665 private com.google.protobuf.SingleFieldBuilderV3< 9666 com.google.container.v1.NodePool.PlacementPolicy, 9667 com.google.container.v1.NodePool.PlacementPolicy.Builder, 9668 com.google.container.v1.NodePool.PlacementPolicyOrBuilder> 9669 placementPolicyBuilder_; 9670 /** 9671 * 9672 * 9673 * <pre> 9674 * Specifies the node placement policy. 9675 * </pre> 9676 * 9677 * <code>.google.container.v1.NodePool.PlacementPolicy placement_policy = 108;</code> 9678 * 9679 * @return Whether the placementPolicy field is set. 9680 */ hasPlacementPolicy()9681 public boolean hasPlacementPolicy() { 9682 return ((bitField0_ & 0x00010000) != 0); 9683 } 9684 /** 9685 * 9686 * 9687 * <pre> 9688 * Specifies the node placement policy. 9689 * </pre> 9690 * 9691 * <code>.google.container.v1.NodePool.PlacementPolicy placement_policy = 108;</code> 9692 * 9693 * @return The placementPolicy. 9694 */ getPlacementPolicy()9695 public com.google.container.v1.NodePool.PlacementPolicy getPlacementPolicy() { 9696 if (placementPolicyBuilder_ == null) { 9697 return placementPolicy_ == null 9698 ? com.google.container.v1.NodePool.PlacementPolicy.getDefaultInstance() 9699 : placementPolicy_; 9700 } else { 9701 return placementPolicyBuilder_.getMessage(); 9702 } 9703 } 9704 /** 9705 * 9706 * 9707 * <pre> 9708 * Specifies the node placement policy. 9709 * </pre> 9710 * 9711 * <code>.google.container.v1.NodePool.PlacementPolicy placement_policy = 108;</code> 9712 */ setPlacementPolicy(com.google.container.v1.NodePool.PlacementPolicy value)9713 public Builder setPlacementPolicy(com.google.container.v1.NodePool.PlacementPolicy value) { 9714 if (placementPolicyBuilder_ == null) { 9715 if (value == null) { 9716 throw new NullPointerException(); 9717 } 9718 placementPolicy_ = value; 9719 } else { 9720 placementPolicyBuilder_.setMessage(value); 9721 } 9722 bitField0_ |= 0x00010000; 9723 onChanged(); 9724 return this; 9725 } 9726 /** 9727 * 9728 * 9729 * <pre> 9730 * Specifies the node placement policy. 9731 * </pre> 9732 * 9733 * <code>.google.container.v1.NodePool.PlacementPolicy placement_policy = 108;</code> 9734 */ setPlacementPolicy( com.google.container.v1.NodePool.PlacementPolicy.Builder builderForValue)9735 public Builder setPlacementPolicy( 9736 com.google.container.v1.NodePool.PlacementPolicy.Builder builderForValue) { 9737 if (placementPolicyBuilder_ == null) { 9738 placementPolicy_ = builderForValue.build(); 9739 } else { 9740 placementPolicyBuilder_.setMessage(builderForValue.build()); 9741 } 9742 bitField0_ |= 0x00010000; 9743 onChanged(); 9744 return this; 9745 } 9746 /** 9747 * 9748 * 9749 * <pre> 9750 * Specifies the node placement policy. 9751 * </pre> 9752 * 9753 * <code>.google.container.v1.NodePool.PlacementPolicy placement_policy = 108;</code> 9754 */ mergePlacementPolicy(com.google.container.v1.NodePool.PlacementPolicy value)9755 public Builder mergePlacementPolicy(com.google.container.v1.NodePool.PlacementPolicy value) { 9756 if (placementPolicyBuilder_ == null) { 9757 if (((bitField0_ & 0x00010000) != 0) 9758 && placementPolicy_ != null 9759 && placementPolicy_ 9760 != com.google.container.v1.NodePool.PlacementPolicy.getDefaultInstance()) { 9761 getPlacementPolicyBuilder().mergeFrom(value); 9762 } else { 9763 placementPolicy_ = value; 9764 } 9765 } else { 9766 placementPolicyBuilder_.mergeFrom(value); 9767 } 9768 bitField0_ |= 0x00010000; 9769 onChanged(); 9770 return this; 9771 } 9772 /** 9773 * 9774 * 9775 * <pre> 9776 * Specifies the node placement policy. 9777 * </pre> 9778 * 9779 * <code>.google.container.v1.NodePool.PlacementPolicy placement_policy = 108;</code> 9780 */ clearPlacementPolicy()9781 public Builder clearPlacementPolicy() { 9782 bitField0_ = (bitField0_ & ~0x00010000); 9783 placementPolicy_ = null; 9784 if (placementPolicyBuilder_ != null) { 9785 placementPolicyBuilder_.dispose(); 9786 placementPolicyBuilder_ = null; 9787 } 9788 onChanged(); 9789 return this; 9790 } 9791 /** 9792 * 9793 * 9794 * <pre> 9795 * Specifies the node placement policy. 9796 * </pre> 9797 * 9798 * <code>.google.container.v1.NodePool.PlacementPolicy placement_policy = 108;</code> 9799 */ getPlacementPolicyBuilder()9800 public com.google.container.v1.NodePool.PlacementPolicy.Builder getPlacementPolicyBuilder() { 9801 bitField0_ |= 0x00010000; 9802 onChanged(); 9803 return getPlacementPolicyFieldBuilder().getBuilder(); 9804 } 9805 /** 9806 * 9807 * 9808 * <pre> 9809 * Specifies the node placement policy. 9810 * </pre> 9811 * 9812 * <code>.google.container.v1.NodePool.PlacementPolicy placement_policy = 108;</code> 9813 */ getPlacementPolicyOrBuilder()9814 public com.google.container.v1.NodePool.PlacementPolicyOrBuilder getPlacementPolicyOrBuilder() { 9815 if (placementPolicyBuilder_ != null) { 9816 return placementPolicyBuilder_.getMessageOrBuilder(); 9817 } else { 9818 return placementPolicy_ == null 9819 ? com.google.container.v1.NodePool.PlacementPolicy.getDefaultInstance() 9820 : placementPolicy_; 9821 } 9822 } 9823 /** 9824 * 9825 * 9826 * <pre> 9827 * Specifies the node placement policy. 9828 * </pre> 9829 * 9830 * <code>.google.container.v1.NodePool.PlacementPolicy placement_policy = 108;</code> 9831 */ 9832 private com.google.protobuf.SingleFieldBuilderV3< 9833 com.google.container.v1.NodePool.PlacementPolicy, 9834 com.google.container.v1.NodePool.PlacementPolicy.Builder, 9835 com.google.container.v1.NodePool.PlacementPolicyOrBuilder> getPlacementPolicyFieldBuilder()9836 getPlacementPolicyFieldBuilder() { 9837 if (placementPolicyBuilder_ == null) { 9838 placementPolicyBuilder_ = 9839 new com.google.protobuf.SingleFieldBuilderV3< 9840 com.google.container.v1.NodePool.PlacementPolicy, 9841 com.google.container.v1.NodePool.PlacementPolicy.Builder, 9842 com.google.container.v1.NodePool.PlacementPolicyOrBuilder>( 9843 getPlacementPolicy(), getParentForChildren(), isClean()); 9844 placementPolicy_ = null; 9845 } 9846 return placementPolicyBuilder_; 9847 } 9848 9849 private com.google.container.v1.NodePool.UpdateInfo updateInfo_; 9850 private com.google.protobuf.SingleFieldBuilderV3< 9851 com.google.container.v1.NodePool.UpdateInfo, 9852 com.google.container.v1.NodePool.UpdateInfo.Builder, 9853 com.google.container.v1.NodePool.UpdateInfoOrBuilder> 9854 updateInfoBuilder_; 9855 /** 9856 * 9857 * 9858 * <pre> 9859 * Output only. [Output only] Update info contains relevant information during 9860 * a node pool update. 9861 * </pre> 9862 * 9863 * <code> 9864 * .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; 9865 * </code> 9866 * 9867 * @return Whether the updateInfo field is set. 9868 */ hasUpdateInfo()9869 public boolean hasUpdateInfo() { 9870 return ((bitField0_ & 0x00020000) != 0); 9871 } 9872 /** 9873 * 9874 * 9875 * <pre> 9876 * Output only. [Output only] Update info contains relevant information during 9877 * a node pool update. 9878 * </pre> 9879 * 9880 * <code> 9881 * .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; 9882 * </code> 9883 * 9884 * @return The updateInfo. 9885 */ getUpdateInfo()9886 public com.google.container.v1.NodePool.UpdateInfo getUpdateInfo() { 9887 if (updateInfoBuilder_ == null) { 9888 return updateInfo_ == null 9889 ? com.google.container.v1.NodePool.UpdateInfo.getDefaultInstance() 9890 : updateInfo_; 9891 } else { 9892 return updateInfoBuilder_.getMessage(); 9893 } 9894 } 9895 /** 9896 * 9897 * 9898 * <pre> 9899 * Output only. [Output only] Update info contains relevant information during 9900 * a node pool update. 9901 * </pre> 9902 * 9903 * <code> 9904 * .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; 9905 * </code> 9906 */ setUpdateInfo(com.google.container.v1.NodePool.UpdateInfo value)9907 public Builder setUpdateInfo(com.google.container.v1.NodePool.UpdateInfo value) { 9908 if (updateInfoBuilder_ == null) { 9909 if (value == null) { 9910 throw new NullPointerException(); 9911 } 9912 updateInfo_ = value; 9913 } else { 9914 updateInfoBuilder_.setMessage(value); 9915 } 9916 bitField0_ |= 0x00020000; 9917 onChanged(); 9918 return this; 9919 } 9920 /** 9921 * 9922 * 9923 * <pre> 9924 * Output only. [Output only] Update info contains relevant information during 9925 * a node pool update. 9926 * </pre> 9927 * 9928 * <code> 9929 * .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; 9930 * </code> 9931 */ setUpdateInfo( com.google.container.v1.NodePool.UpdateInfo.Builder builderForValue)9932 public Builder setUpdateInfo( 9933 com.google.container.v1.NodePool.UpdateInfo.Builder builderForValue) { 9934 if (updateInfoBuilder_ == null) { 9935 updateInfo_ = builderForValue.build(); 9936 } else { 9937 updateInfoBuilder_.setMessage(builderForValue.build()); 9938 } 9939 bitField0_ |= 0x00020000; 9940 onChanged(); 9941 return this; 9942 } 9943 /** 9944 * 9945 * 9946 * <pre> 9947 * Output only. [Output only] Update info contains relevant information during 9948 * a node pool update. 9949 * </pre> 9950 * 9951 * <code> 9952 * .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; 9953 * </code> 9954 */ mergeUpdateInfo(com.google.container.v1.NodePool.UpdateInfo value)9955 public Builder mergeUpdateInfo(com.google.container.v1.NodePool.UpdateInfo value) { 9956 if (updateInfoBuilder_ == null) { 9957 if (((bitField0_ & 0x00020000) != 0) 9958 && updateInfo_ != null 9959 && updateInfo_ != com.google.container.v1.NodePool.UpdateInfo.getDefaultInstance()) { 9960 getUpdateInfoBuilder().mergeFrom(value); 9961 } else { 9962 updateInfo_ = value; 9963 } 9964 } else { 9965 updateInfoBuilder_.mergeFrom(value); 9966 } 9967 bitField0_ |= 0x00020000; 9968 onChanged(); 9969 return this; 9970 } 9971 /** 9972 * 9973 * 9974 * <pre> 9975 * Output only. [Output only] Update info contains relevant information during 9976 * a node pool update. 9977 * </pre> 9978 * 9979 * <code> 9980 * .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; 9981 * </code> 9982 */ clearUpdateInfo()9983 public Builder clearUpdateInfo() { 9984 bitField0_ = (bitField0_ & ~0x00020000); 9985 updateInfo_ = null; 9986 if (updateInfoBuilder_ != null) { 9987 updateInfoBuilder_.dispose(); 9988 updateInfoBuilder_ = null; 9989 } 9990 onChanged(); 9991 return this; 9992 } 9993 /** 9994 * 9995 * 9996 * <pre> 9997 * Output only. [Output only] Update info contains relevant information during 9998 * a node pool update. 9999 * </pre> 10000 * 10001 * <code> 10002 * .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; 10003 * </code> 10004 */ getUpdateInfoBuilder()10005 public com.google.container.v1.NodePool.UpdateInfo.Builder getUpdateInfoBuilder() { 10006 bitField0_ |= 0x00020000; 10007 onChanged(); 10008 return getUpdateInfoFieldBuilder().getBuilder(); 10009 } 10010 /** 10011 * 10012 * 10013 * <pre> 10014 * Output only. [Output only] Update info contains relevant information during 10015 * a node pool update. 10016 * </pre> 10017 * 10018 * <code> 10019 * .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; 10020 * </code> 10021 */ getUpdateInfoOrBuilder()10022 public com.google.container.v1.NodePool.UpdateInfoOrBuilder getUpdateInfoOrBuilder() { 10023 if (updateInfoBuilder_ != null) { 10024 return updateInfoBuilder_.getMessageOrBuilder(); 10025 } else { 10026 return updateInfo_ == null 10027 ? com.google.container.v1.NodePool.UpdateInfo.getDefaultInstance() 10028 : updateInfo_; 10029 } 10030 } 10031 /** 10032 * 10033 * 10034 * <pre> 10035 * Output only. [Output only] Update info contains relevant information during 10036 * a node pool update. 10037 * </pre> 10038 * 10039 * <code> 10040 * .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; 10041 * </code> 10042 */ 10043 private com.google.protobuf.SingleFieldBuilderV3< 10044 com.google.container.v1.NodePool.UpdateInfo, 10045 com.google.container.v1.NodePool.UpdateInfo.Builder, 10046 com.google.container.v1.NodePool.UpdateInfoOrBuilder> getUpdateInfoFieldBuilder()10047 getUpdateInfoFieldBuilder() { 10048 if (updateInfoBuilder_ == null) { 10049 updateInfoBuilder_ = 10050 new com.google.protobuf.SingleFieldBuilderV3< 10051 com.google.container.v1.NodePool.UpdateInfo, 10052 com.google.container.v1.NodePool.UpdateInfo.Builder, 10053 com.google.container.v1.NodePool.UpdateInfoOrBuilder>( 10054 getUpdateInfo(), getParentForChildren(), isClean()); 10055 updateInfo_ = null; 10056 } 10057 return updateInfoBuilder_; 10058 } 10059 10060 private java.lang.Object etag_ = ""; 10061 /** 10062 * 10063 * 10064 * <pre> 10065 * This checksum is computed by the server based on the value of node pool 10066 * fields, and may be sent on update requests to ensure the client has an 10067 * up-to-date value before proceeding. 10068 * </pre> 10069 * 10070 * <code>string etag = 110;</code> 10071 * 10072 * @return The etag. 10073 */ getEtag()10074 public java.lang.String getEtag() { 10075 java.lang.Object ref = etag_; 10076 if (!(ref instanceof java.lang.String)) { 10077 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 10078 java.lang.String s = bs.toStringUtf8(); 10079 etag_ = s; 10080 return s; 10081 } else { 10082 return (java.lang.String) ref; 10083 } 10084 } 10085 /** 10086 * 10087 * 10088 * <pre> 10089 * This checksum is computed by the server based on the value of node pool 10090 * fields, and may be sent on update requests to ensure the client has an 10091 * up-to-date value before proceeding. 10092 * </pre> 10093 * 10094 * <code>string etag = 110;</code> 10095 * 10096 * @return The bytes for etag. 10097 */ getEtagBytes()10098 public com.google.protobuf.ByteString getEtagBytes() { 10099 java.lang.Object ref = etag_; 10100 if (ref instanceof String) { 10101 com.google.protobuf.ByteString b = 10102 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 10103 etag_ = b; 10104 return b; 10105 } else { 10106 return (com.google.protobuf.ByteString) ref; 10107 } 10108 } 10109 /** 10110 * 10111 * 10112 * <pre> 10113 * This checksum is computed by the server based on the value of node pool 10114 * fields, and may be sent on update requests to ensure the client has an 10115 * up-to-date value before proceeding. 10116 * </pre> 10117 * 10118 * <code>string etag = 110;</code> 10119 * 10120 * @param value The etag to set. 10121 * @return This builder for chaining. 10122 */ setEtag(java.lang.String value)10123 public Builder setEtag(java.lang.String value) { 10124 if (value == null) { 10125 throw new NullPointerException(); 10126 } 10127 etag_ = value; 10128 bitField0_ |= 0x00040000; 10129 onChanged(); 10130 return this; 10131 } 10132 /** 10133 * 10134 * 10135 * <pre> 10136 * This checksum is computed by the server based on the value of node pool 10137 * fields, and may be sent on update requests to ensure the client has an 10138 * up-to-date value before proceeding. 10139 * </pre> 10140 * 10141 * <code>string etag = 110;</code> 10142 * 10143 * @return This builder for chaining. 10144 */ clearEtag()10145 public Builder clearEtag() { 10146 etag_ = getDefaultInstance().getEtag(); 10147 bitField0_ = (bitField0_ & ~0x00040000); 10148 onChanged(); 10149 return this; 10150 } 10151 /** 10152 * 10153 * 10154 * <pre> 10155 * This checksum is computed by the server based on the value of node pool 10156 * fields, and may be sent on update requests to ensure the client has an 10157 * up-to-date value before proceeding. 10158 * </pre> 10159 * 10160 * <code>string etag = 110;</code> 10161 * 10162 * @param value The bytes for etag to set. 10163 * @return This builder for chaining. 10164 */ setEtagBytes(com.google.protobuf.ByteString value)10165 public Builder setEtagBytes(com.google.protobuf.ByteString value) { 10166 if (value == null) { 10167 throw new NullPointerException(); 10168 } 10169 checkByteStringIsUtf8(value); 10170 etag_ = value; 10171 bitField0_ |= 0x00040000; 10172 onChanged(); 10173 return this; 10174 } 10175 10176 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)10177 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 10178 return super.setUnknownFields(unknownFields); 10179 } 10180 10181 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)10182 public final Builder mergeUnknownFields( 10183 final com.google.protobuf.UnknownFieldSet unknownFields) { 10184 return super.mergeUnknownFields(unknownFields); 10185 } 10186 10187 // @@protoc_insertion_point(builder_scope:google.container.v1.NodePool) 10188 } 10189 10190 // @@protoc_insertion_point(class_scope:google.container.v1.NodePool) 10191 private static final com.google.container.v1.NodePool DEFAULT_INSTANCE; 10192 10193 static { 10194 DEFAULT_INSTANCE = new com.google.container.v1.NodePool(); 10195 } 10196 getDefaultInstance()10197 public static com.google.container.v1.NodePool getDefaultInstance() { 10198 return DEFAULT_INSTANCE; 10199 } 10200 10201 private static final com.google.protobuf.Parser<NodePool> PARSER = 10202 new com.google.protobuf.AbstractParser<NodePool>() { 10203 @java.lang.Override 10204 public NodePool parsePartialFrom( 10205 com.google.protobuf.CodedInputStream input, 10206 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 10207 throws com.google.protobuf.InvalidProtocolBufferException { 10208 Builder builder = newBuilder(); 10209 try { 10210 builder.mergeFrom(input, extensionRegistry); 10211 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 10212 throw e.setUnfinishedMessage(builder.buildPartial()); 10213 } catch (com.google.protobuf.UninitializedMessageException e) { 10214 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 10215 } catch (java.io.IOException e) { 10216 throw new com.google.protobuf.InvalidProtocolBufferException(e) 10217 .setUnfinishedMessage(builder.buildPartial()); 10218 } 10219 return builder.buildPartial(); 10220 } 10221 }; 10222 parser()10223 public static com.google.protobuf.Parser<NodePool> parser() { 10224 return PARSER; 10225 } 10226 10227 @java.lang.Override getParserForType()10228 public com.google.protobuf.Parser<NodePool> getParserForType() { 10229 return PARSER; 10230 } 10231 10232 @java.lang.Override getDefaultInstanceForType()10233 public com.google.container.v1.NodePool getDefaultInstanceForType() { 10234 return DEFAULT_INSTANCE; 10235 } 10236 } 10237