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 * NodePoolAutoscaling contains information required by cluster autoscaler to 26 * adjust the size of the node pool to the current cluster usage. 27 * </pre> 28 * 29 * Protobuf type {@code google.container.v1.NodePoolAutoscaling} 30 */ 31 public final class NodePoolAutoscaling extends com.google.protobuf.GeneratedMessageV3 32 implements 33 // @@protoc_insertion_point(message_implements:google.container.v1.NodePoolAutoscaling) 34 NodePoolAutoscalingOrBuilder { 35 private static final long serialVersionUID = 0L; 36 // Use NodePoolAutoscaling.newBuilder() to construct. NodePoolAutoscaling(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)37 private NodePoolAutoscaling(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 38 super(builder); 39 } 40 NodePoolAutoscaling()41 private NodePoolAutoscaling() { 42 locationPolicy_ = 0; 43 } 44 45 @java.lang.Override 46 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)47 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 48 return new NodePoolAutoscaling(); 49 } 50 51 @java.lang.Override getUnknownFields()52 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 53 return this.unknownFields; 54 } 55 getDescriptor()56 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 57 return com.google.container.v1.ClusterServiceProto 58 .internal_static_google_container_v1_NodePoolAutoscaling_descriptor; 59 } 60 61 @java.lang.Override 62 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()63 internalGetFieldAccessorTable() { 64 return com.google.container.v1.ClusterServiceProto 65 .internal_static_google_container_v1_NodePoolAutoscaling_fieldAccessorTable 66 .ensureFieldAccessorsInitialized( 67 com.google.container.v1.NodePoolAutoscaling.class, 68 com.google.container.v1.NodePoolAutoscaling.Builder.class); 69 } 70 71 /** 72 * 73 * 74 * <pre> 75 * Location policy specifies how zones are picked when scaling up the 76 * nodepool. 77 * </pre> 78 * 79 * Protobuf enum {@code google.container.v1.NodePoolAutoscaling.LocationPolicy} 80 */ 81 public enum LocationPolicy implements com.google.protobuf.ProtocolMessageEnum { 82 /** 83 * 84 * 85 * <pre> 86 * Not set. 87 * </pre> 88 * 89 * <code>LOCATION_POLICY_UNSPECIFIED = 0;</code> 90 */ 91 LOCATION_POLICY_UNSPECIFIED(0), 92 /** 93 * 94 * 95 * <pre> 96 * BALANCED is a best effort policy that aims to balance the sizes of 97 * different zones. 98 * </pre> 99 * 100 * <code>BALANCED = 1;</code> 101 */ 102 BALANCED(1), 103 /** 104 * 105 * 106 * <pre> 107 * ANY policy picks zones that have the highest capacity available. 108 * </pre> 109 * 110 * <code>ANY = 2;</code> 111 */ 112 ANY(2), 113 UNRECOGNIZED(-1), 114 ; 115 116 /** 117 * 118 * 119 * <pre> 120 * Not set. 121 * </pre> 122 * 123 * <code>LOCATION_POLICY_UNSPECIFIED = 0;</code> 124 */ 125 public static final int LOCATION_POLICY_UNSPECIFIED_VALUE = 0; 126 /** 127 * 128 * 129 * <pre> 130 * BALANCED is a best effort policy that aims to balance the sizes of 131 * different zones. 132 * </pre> 133 * 134 * <code>BALANCED = 1;</code> 135 */ 136 public static final int BALANCED_VALUE = 1; 137 /** 138 * 139 * 140 * <pre> 141 * ANY policy picks zones that have the highest capacity available. 142 * </pre> 143 * 144 * <code>ANY = 2;</code> 145 */ 146 public static final int ANY_VALUE = 2; 147 getNumber()148 public final int getNumber() { 149 if (this == UNRECOGNIZED) { 150 throw new java.lang.IllegalArgumentException( 151 "Can't get the number of an unknown enum value."); 152 } 153 return value; 154 } 155 156 /** 157 * @param value The numeric wire value of the corresponding enum entry. 158 * @return The enum associated with the given numeric wire value. 159 * @deprecated Use {@link #forNumber(int)} instead. 160 */ 161 @java.lang.Deprecated valueOf(int value)162 public static LocationPolicy valueOf(int value) { 163 return forNumber(value); 164 } 165 166 /** 167 * @param value The numeric wire value of the corresponding enum entry. 168 * @return The enum associated with the given numeric wire value. 169 */ forNumber(int value)170 public static LocationPolicy forNumber(int value) { 171 switch (value) { 172 case 0: 173 return LOCATION_POLICY_UNSPECIFIED; 174 case 1: 175 return BALANCED; 176 case 2: 177 return ANY; 178 default: 179 return null; 180 } 181 } 182 internalGetValueMap()183 public static com.google.protobuf.Internal.EnumLiteMap<LocationPolicy> internalGetValueMap() { 184 return internalValueMap; 185 } 186 187 private static final com.google.protobuf.Internal.EnumLiteMap<LocationPolicy> internalValueMap = 188 new com.google.protobuf.Internal.EnumLiteMap<LocationPolicy>() { 189 public LocationPolicy findValueByNumber(int number) { 190 return LocationPolicy.forNumber(number); 191 } 192 }; 193 getValueDescriptor()194 public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 195 if (this == UNRECOGNIZED) { 196 throw new java.lang.IllegalStateException( 197 "Can't get the descriptor of an unrecognized enum value."); 198 } 199 return getDescriptor().getValues().get(ordinal()); 200 } 201 getDescriptorForType()202 public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { 203 return getDescriptor(); 204 } 205 getDescriptor()206 public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { 207 return com.google.container.v1.NodePoolAutoscaling.getDescriptor().getEnumTypes().get(0); 208 } 209 210 private static final LocationPolicy[] VALUES = values(); 211 valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)212 public static LocationPolicy valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 213 if (desc.getType() != getDescriptor()) { 214 throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); 215 } 216 if (desc.getIndex() == -1) { 217 return UNRECOGNIZED; 218 } 219 return VALUES[desc.getIndex()]; 220 } 221 222 private final int value; 223 LocationPolicy(int value)224 private LocationPolicy(int value) { 225 this.value = value; 226 } 227 228 // @@protoc_insertion_point(enum_scope:google.container.v1.NodePoolAutoscaling.LocationPolicy) 229 } 230 231 public static final int ENABLED_FIELD_NUMBER = 1; 232 private boolean enabled_ = false; 233 /** 234 * 235 * 236 * <pre> 237 * Is autoscaling enabled for this node pool. 238 * </pre> 239 * 240 * <code>bool enabled = 1;</code> 241 * 242 * @return The enabled. 243 */ 244 @java.lang.Override getEnabled()245 public boolean getEnabled() { 246 return enabled_; 247 } 248 249 public static final int MIN_NODE_COUNT_FIELD_NUMBER = 2; 250 private int minNodeCount_ = 0; 251 /** 252 * 253 * 254 * <pre> 255 * Minimum number of nodes for one location in the NodePool. Must be >= 1 and 256 * <= max_node_count. 257 * </pre> 258 * 259 * <code>int32 min_node_count = 2;</code> 260 * 261 * @return The minNodeCount. 262 */ 263 @java.lang.Override getMinNodeCount()264 public int getMinNodeCount() { 265 return minNodeCount_; 266 } 267 268 public static final int MAX_NODE_COUNT_FIELD_NUMBER = 3; 269 private int maxNodeCount_ = 0; 270 /** 271 * 272 * 273 * <pre> 274 * Maximum number of nodes for one location in the NodePool. Must be >= 275 * min_node_count. There has to be enough quota to scale up the cluster. 276 * </pre> 277 * 278 * <code>int32 max_node_count = 3;</code> 279 * 280 * @return The maxNodeCount. 281 */ 282 @java.lang.Override getMaxNodeCount()283 public int getMaxNodeCount() { 284 return maxNodeCount_; 285 } 286 287 public static final int AUTOPROVISIONED_FIELD_NUMBER = 4; 288 private boolean autoprovisioned_ = false; 289 /** 290 * 291 * 292 * <pre> 293 * Can this node pool be deleted automatically. 294 * </pre> 295 * 296 * <code>bool autoprovisioned = 4;</code> 297 * 298 * @return The autoprovisioned. 299 */ 300 @java.lang.Override getAutoprovisioned()301 public boolean getAutoprovisioned() { 302 return autoprovisioned_; 303 } 304 305 public static final int LOCATION_POLICY_FIELD_NUMBER = 5; 306 private int locationPolicy_ = 0; 307 /** 308 * 309 * 310 * <pre> 311 * Location policy used when scaling up a nodepool. 312 * </pre> 313 * 314 * <code>.google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5;</code> 315 * 316 * @return The enum numeric value on the wire for locationPolicy. 317 */ 318 @java.lang.Override getLocationPolicyValue()319 public int getLocationPolicyValue() { 320 return locationPolicy_; 321 } 322 /** 323 * 324 * 325 * <pre> 326 * Location policy used when scaling up a nodepool. 327 * </pre> 328 * 329 * <code>.google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5;</code> 330 * 331 * @return The locationPolicy. 332 */ 333 @java.lang.Override getLocationPolicy()334 public com.google.container.v1.NodePoolAutoscaling.LocationPolicy getLocationPolicy() { 335 com.google.container.v1.NodePoolAutoscaling.LocationPolicy result = 336 com.google.container.v1.NodePoolAutoscaling.LocationPolicy.forNumber(locationPolicy_); 337 return result == null 338 ? com.google.container.v1.NodePoolAutoscaling.LocationPolicy.UNRECOGNIZED 339 : result; 340 } 341 342 public static final int TOTAL_MIN_NODE_COUNT_FIELD_NUMBER = 6; 343 private int totalMinNodeCount_ = 0; 344 /** 345 * 346 * 347 * <pre> 348 * Minimum number of nodes in the node pool. Must be greater than 1 less than 349 * total_max_node_count. 350 * The total_*_node_count fields are mutually exclusive with the *_node_count 351 * fields. 352 * </pre> 353 * 354 * <code>int32 total_min_node_count = 6;</code> 355 * 356 * @return The totalMinNodeCount. 357 */ 358 @java.lang.Override getTotalMinNodeCount()359 public int getTotalMinNodeCount() { 360 return totalMinNodeCount_; 361 } 362 363 public static final int TOTAL_MAX_NODE_COUNT_FIELD_NUMBER = 7; 364 private int totalMaxNodeCount_ = 0; 365 /** 366 * 367 * 368 * <pre> 369 * Maximum number of nodes in the node pool. Must be greater than 370 * total_min_node_count. There has to be enough quota to scale up the cluster. 371 * The total_*_node_count fields are mutually exclusive with the *_node_count 372 * fields. 373 * </pre> 374 * 375 * <code>int32 total_max_node_count = 7;</code> 376 * 377 * @return The totalMaxNodeCount. 378 */ 379 @java.lang.Override getTotalMaxNodeCount()380 public int getTotalMaxNodeCount() { 381 return totalMaxNodeCount_; 382 } 383 384 private byte memoizedIsInitialized = -1; 385 386 @java.lang.Override isInitialized()387 public final boolean isInitialized() { 388 byte isInitialized = memoizedIsInitialized; 389 if (isInitialized == 1) return true; 390 if (isInitialized == 0) return false; 391 392 memoizedIsInitialized = 1; 393 return true; 394 } 395 396 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)397 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 398 if (enabled_ != false) { 399 output.writeBool(1, enabled_); 400 } 401 if (minNodeCount_ != 0) { 402 output.writeInt32(2, minNodeCount_); 403 } 404 if (maxNodeCount_ != 0) { 405 output.writeInt32(3, maxNodeCount_); 406 } 407 if (autoprovisioned_ != false) { 408 output.writeBool(4, autoprovisioned_); 409 } 410 if (locationPolicy_ 411 != com.google.container.v1.NodePoolAutoscaling.LocationPolicy.LOCATION_POLICY_UNSPECIFIED 412 .getNumber()) { 413 output.writeEnum(5, locationPolicy_); 414 } 415 if (totalMinNodeCount_ != 0) { 416 output.writeInt32(6, totalMinNodeCount_); 417 } 418 if (totalMaxNodeCount_ != 0) { 419 output.writeInt32(7, totalMaxNodeCount_); 420 } 421 getUnknownFields().writeTo(output); 422 } 423 424 @java.lang.Override getSerializedSize()425 public int getSerializedSize() { 426 int size = memoizedSize; 427 if (size != -1) return size; 428 429 size = 0; 430 if (enabled_ != false) { 431 size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); 432 } 433 if (minNodeCount_ != 0) { 434 size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, minNodeCount_); 435 } 436 if (maxNodeCount_ != 0) { 437 size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxNodeCount_); 438 } 439 if (autoprovisioned_ != false) { 440 size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, autoprovisioned_); 441 } 442 if (locationPolicy_ 443 != com.google.container.v1.NodePoolAutoscaling.LocationPolicy.LOCATION_POLICY_UNSPECIFIED 444 .getNumber()) { 445 size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, locationPolicy_); 446 } 447 if (totalMinNodeCount_ != 0) { 448 size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, totalMinNodeCount_); 449 } 450 if (totalMaxNodeCount_ != 0) { 451 size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, totalMaxNodeCount_); 452 } 453 size += getUnknownFields().getSerializedSize(); 454 memoizedSize = size; 455 return size; 456 } 457 458 @java.lang.Override equals(final java.lang.Object obj)459 public boolean equals(final java.lang.Object obj) { 460 if (obj == this) { 461 return true; 462 } 463 if (!(obj instanceof com.google.container.v1.NodePoolAutoscaling)) { 464 return super.equals(obj); 465 } 466 com.google.container.v1.NodePoolAutoscaling other = 467 (com.google.container.v1.NodePoolAutoscaling) obj; 468 469 if (getEnabled() != other.getEnabled()) return false; 470 if (getMinNodeCount() != other.getMinNodeCount()) return false; 471 if (getMaxNodeCount() != other.getMaxNodeCount()) return false; 472 if (getAutoprovisioned() != other.getAutoprovisioned()) return false; 473 if (locationPolicy_ != other.locationPolicy_) return false; 474 if (getTotalMinNodeCount() != other.getTotalMinNodeCount()) return false; 475 if (getTotalMaxNodeCount() != other.getTotalMaxNodeCount()) return false; 476 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 477 return true; 478 } 479 480 @java.lang.Override hashCode()481 public int hashCode() { 482 if (memoizedHashCode != 0) { 483 return memoizedHashCode; 484 } 485 int hash = 41; 486 hash = (19 * hash) + getDescriptor().hashCode(); 487 hash = (37 * hash) + ENABLED_FIELD_NUMBER; 488 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); 489 hash = (37 * hash) + MIN_NODE_COUNT_FIELD_NUMBER; 490 hash = (53 * hash) + getMinNodeCount(); 491 hash = (37 * hash) + MAX_NODE_COUNT_FIELD_NUMBER; 492 hash = (53 * hash) + getMaxNodeCount(); 493 hash = (37 * hash) + AUTOPROVISIONED_FIELD_NUMBER; 494 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAutoprovisioned()); 495 hash = (37 * hash) + LOCATION_POLICY_FIELD_NUMBER; 496 hash = (53 * hash) + locationPolicy_; 497 hash = (37 * hash) + TOTAL_MIN_NODE_COUNT_FIELD_NUMBER; 498 hash = (53 * hash) + getTotalMinNodeCount(); 499 hash = (37 * hash) + TOTAL_MAX_NODE_COUNT_FIELD_NUMBER; 500 hash = (53 * hash) + getTotalMaxNodeCount(); 501 hash = (29 * hash) + getUnknownFields().hashCode(); 502 memoizedHashCode = hash; 503 return hash; 504 } 505 parseFrom(java.nio.ByteBuffer data)506 public static com.google.container.v1.NodePoolAutoscaling parseFrom(java.nio.ByteBuffer data) 507 throws com.google.protobuf.InvalidProtocolBufferException { 508 return PARSER.parseFrom(data); 509 } 510 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)511 public static com.google.container.v1.NodePoolAutoscaling parseFrom( 512 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 513 throws com.google.protobuf.InvalidProtocolBufferException { 514 return PARSER.parseFrom(data, extensionRegistry); 515 } 516 parseFrom( com.google.protobuf.ByteString data)517 public static com.google.container.v1.NodePoolAutoscaling parseFrom( 518 com.google.protobuf.ByteString data) 519 throws com.google.protobuf.InvalidProtocolBufferException { 520 return PARSER.parseFrom(data); 521 } 522 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)523 public static com.google.container.v1.NodePoolAutoscaling parseFrom( 524 com.google.protobuf.ByteString data, 525 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 526 throws com.google.protobuf.InvalidProtocolBufferException { 527 return PARSER.parseFrom(data, extensionRegistry); 528 } 529 parseFrom(byte[] data)530 public static com.google.container.v1.NodePoolAutoscaling parseFrom(byte[] data) 531 throws com.google.protobuf.InvalidProtocolBufferException { 532 return PARSER.parseFrom(data); 533 } 534 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)535 public static com.google.container.v1.NodePoolAutoscaling parseFrom( 536 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 537 throws com.google.protobuf.InvalidProtocolBufferException { 538 return PARSER.parseFrom(data, extensionRegistry); 539 } 540 parseFrom(java.io.InputStream input)541 public static com.google.container.v1.NodePoolAutoscaling parseFrom(java.io.InputStream input) 542 throws java.io.IOException { 543 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 544 } 545 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)546 public static com.google.container.v1.NodePoolAutoscaling parseFrom( 547 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 548 throws java.io.IOException { 549 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 550 PARSER, input, extensionRegistry); 551 } 552 parseDelimitedFrom( java.io.InputStream input)553 public static com.google.container.v1.NodePoolAutoscaling parseDelimitedFrom( 554 java.io.InputStream input) throws java.io.IOException { 555 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 556 } 557 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)558 public static com.google.container.v1.NodePoolAutoscaling parseDelimitedFrom( 559 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 560 throws java.io.IOException { 561 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 562 PARSER, input, extensionRegistry); 563 } 564 parseFrom( com.google.protobuf.CodedInputStream input)565 public static com.google.container.v1.NodePoolAutoscaling parseFrom( 566 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 567 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 568 } 569 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)570 public static com.google.container.v1.NodePoolAutoscaling parseFrom( 571 com.google.protobuf.CodedInputStream input, 572 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 573 throws java.io.IOException { 574 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 575 PARSER, input, extensionRegistry); 576 } 577 578 @java.lang.Override newBuilderForType()579 public Builder newBuilderForType() { 580 return newBuilder(); 581 } 582 newBuilder()583 public static Builder newBuilder() { 584 return DEFAULT_INSTANCE.toBuilder(); 585 } 586 newBuilder(com.google.container.v1.NodePoolAutoscaling prototype)587 public static Builder newBuilder(com.google.container.v1.NodePoolAutoscaling prototype) { 588 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 589 } 590 591 @java.lang.Override toBuilder()592 public Builder toBuilder() { 593 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 594 } 595 596 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)597 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 598 Builder builder = new Builder(parent); 599 return builder; 600 } 601 /** 602 * 603 * 604 * <pre> 605 * NodePoolAutoscaling contains information required by cluster autoscaler to 606 * adjust the size of the node pool to the current cluster usage. 607 * </pre> 608 * 609 * Protobuf type {@code google.container.v1.NodePoolAutoscaling} 610 */ 611 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 612 implements 613 // @@protoc_insertion_point(builder_implements:google.container.v1.NodePoolAutoscaling) 614 com.google.container.v1.NodePoolAutoscalingOrBuilder { getDescriptor()615 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 616 return com.google.container.v1.ClusterServiceProto 617 .internal_static_google_container_v1_NodePoolAutoscaling_descriptor; 618 } 619 620 @java.lang.Override 621 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()622 internalGetFieldAccessorTable() { 623 return com.google.container.v1.ClusterServiceProto 624 .internal_static_google_container_v1_NodePoolAutoscaling_fieldAccessorTable 625 .ensureFieldAccessorsInitialized( 626 com.google.container.v1.NodePoolAutoscaling.class, 627 com.google.container.v1.NodePoolAutoscaling.Builder.class); 628 } 629 630 // Construct using com.google.container.v1.NodePoolAutoscaling.newBuilder() Builder()631 private Builder() {} 632 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)633 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 634 super(parent); 635 } 636 637 @java.lang.Override clear()638 public Builder clear() { 639 super.clear(); 640 bitField0_ = 0; 641 enabled_ = false; 642 minNodeCount_ = 0; 643 maxNodeCount_ = 0; 644 autoprovisioned_ = false; 645 locationPolicy_ = 0; 646 totalMinNodeCount_ = 0; 647 totalMaxNodeCount_ = 0; 648 return this; 649 } 650 651 @java.lang.Override getDescriptorForType()652 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 653 return com.google.container.v1.ClusterServiceProto 654 .internal_static_google_container_v1_NodePoolAutoscaling_descriptor; 655 } 656 657 @java.lang.Override getDefaultInstanceForType()658 public com.google.container.v1.NodePoolAutoscaling getDefaultInstanceForType() { 659 return com.google.container.v1.NodePoolAutoscaling.getDefaultInstance(); 660 } 661 662 @java.lang.Override build()663 public com.google.container.v1.NodePoolAutoscaling build() { 664 com.google.container.v1.NodePoolAutoscaling result = buildPartial(); 665 if (!result.isInitialized()) { 666 throw newUninitializedMessageException(result); 667 } 668 return result; 669 } 670 671 @java.lang.Override buildPartial()672 public com.google.container.v1.NodePoolAutoscaling buildPartial() { 673 com.google.container.v1.NodePoolAutoscaling result = 674 new com.google.container.v1.NodePoolAutoscaling(this); 675 if (bitField0_ != 0) { 676 buildPartial0(result); 677 } 678 onBuilt(); 679 return result; 680 } 681 buildPartial0(com.google.container.v1.NodePoolAutoscaling result)682 private void buildPartial0(com.google.container.v1.NodePoolAutoscaling result) { 683 int from_bitField0_ = bitField0_; 684 if (((from_bitField0_ & 0x00000001) != 0)) { 685 result.enabled_ = enabled_; 686 } 687 if (((from_bitField0_ & 0x00000002) != 0)) { 688 result.minNodeCount_ = minNodeCount_; 689 } 690 if (((from_bitField0_ & 0x00000004) != 0)) { 691 result.maxNodeCount_ = maxNodeCount_; 692 } 693 if (((from_bitField0_ & 0x00000008) != 0)) { 694 result.autoprovisioned_ = autoprovisioned_; 695 } 696 if (((from_bitField0_ & 0x00000010) != 0)) { 697 result.locationPolicy_ = locationPolicy_; 698 } 699 if (((from_bitField0_ & 0x00000020) != 0)) { 700 result.totalMinNodeCount_ = totalMinNodeCount_; 701 } 702 if (((from_bitField0_ & 0x00000040) != 0)) { 703 result.totalMaxNodeCount_ = totalMaxNodeCount_; 704 } 705 } 706 707 @java.lang.Override clone()708 public Builder clone() { 709 return super.clone(); 710 } 711 712 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)713 public Builder setField( 714 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 715 return super.setField(field, value); 716 } 717 718 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)719 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 720 return super.clearField(field); 721 } 722 723 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)724 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 725 return super.clearOneof(oneof); 726 } 727 728 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)729 public Builder setRepeatedField( 730 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 731 return super.setRepeatedField(field, index, value); 732 } 733 734 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)735 public Builder addRepeatedField( 736 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 737 return super.addRepeatedField(field, value); 738 } 739 740 @java.lang.Override mergeFrom(com.google.protobuf.Message other)741 public Builder mergeFrom(com.google.protobuf.Message other) { 742 if (other instanceof com.google.container.v1.NodePoolAutoscaling) { 743 return mergeFrom((com.google.container.v1.NodePoolAutoscaling) other); 744 } else { 745 super.mergeFrom(other); 746 return this; 747 } 748 } 749 mergeFrom(com.google.container.v1.NodePoolAutoscaling other)750 public Builder mergeFrom(com.google.container.v1.NodePoolAutoscaling other) { 751 if (other == com.google.container.v1.NodePoolAutoscaling.getDefaultInstance()) return this; 752 if (other.getEnabled() != false) { 753 setEnabled(other.getEnabled()); 754 } 755 if (other.getMinNodeCount() != 0) { 756 setMinNodeCount(other.getMinNodeCount()); 757 } 758 if (other.getMaxNodeCount() != 0) { 759 setMaxNodeCount(other.getMaxNodeCount()); 760 } 761 if (other.getAutoprovisioned() != false) { 762 setAutoprovisioned(other.getAutoprovisioned()); 763 } 764 if (other.locationPolicy_ != 0) { 765 setLocationPolicyValue(other.getLocationPolicyValue()); 766 } 767 if (other.getTotalMinNodeCount() != 0) { 768 setTotalMinNodeCount(other.getTotalMinNodeCount()); 769 } 770 if (other.getTotalMaxNodeCount() != 0) { 771 setTotalMaxNodeCount(other.getTotalMaxNodeCount()); 772 } 773 this.mergeUnknownFields(other.getUnknownFields()); 774 onChanged(); 775 return this; 776 } 777 778 @java.lang.Override isInitialized()779 public final boolean isInitialized() { 780 return true; 781 } 782 783 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)784 public Builder mergeFrom( 785 com.google.protobuf.CodedInputStream input, 786 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 787 throws java.io.IOException { 788 if (extensionRegistry == null) { 789 throw new java.lang.NullPointerException(); 790 } 791 try { 792 boolean done = false; 793 while (!done) { 794 int tag = input.readTag(); 795 switch (tag) { 796 case 0: 797 done = true; 798 break; 799 case 8: 800 { 801 enabled_ = input.readBool(); 802 bitField0_ |= 0x00000001; 803 break; 804 } // case 8 805 case 16: 806 { 807 minNodeCount_ = input.readInt32(); 808 bitField0_ |= 0x00000002; 809 break; 810 } // case 16 811 case 24: 812 { 813 maxNodeCount_ = input.readInt32(); 814 bitField0_ |= 0x00000004; 815 break; 816 } // case 24 817 case 32: 818 { 819 autoprovisioned_ = input.readBool(); 820 bitField0_ |= 0x00000008; 821 break; 822 } // case 32 823 case 40: 824 { 825 locationPolicy_ = input.readEnum(); 826 bitField0_ |= 0x00000010; 827 break; 828 } // case 40 829 case 48: 830 { 831 totalMinNodeCount_ = input.readInt32(); 832 bitField0_ |= 0x00000020; 833 break; 834 } // case 48 835 case 56: 836 { 837 totalMaxNodeCount_ = input.readInt32(); 838 bitField0_ |= 0x00000040; 839 break; 840 } // case 56 841 default: 842 { 843 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 844 done = true; // was an endgroup tag 845 } 846 break; 847 } // default: 848 } // switch (tag) 849 } // while (!done) 850 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 851 throw e.unwrapIOException(); 852 } finally { 853 onChanged(); 854 } // finally 855 return this; 856 } 857 858 private int bitField0_; 859 860 private boolean enabled_; 861 /** 862 * 863 * 864 * <pre> 865 * Is autoscaling enabled for this node pool. 866 * </pre> 867 * 868 * <code>bool enabled = 1;</code> 869 * 870 * @return The enabled. 871 */ 872 @java.lang.Override getEnabled()873 public boolean getEnabled() { 874 return enabled_; 875 } 876 /** 877 * 878 * 879 * <pre> 880 * Is autoscaling enabled for this node pool. 881 * </pre> 882 * 883 * <code>bool enabled = 1;</code> 884 * 885 * @param value The enabled to set. 886 * @return This builder for chaining. 887 */ setEnabled(boolean value)888 public Builder setEnabled(boolean value) { 889 890 enabled_ = value; 891 bitField0_ |= 0x00000001; 892 onChanged(); 893 return this; 894 } 895 /** 896 * 897 * 898 * <pre> 899 * Is autoscaling enabled for this node pool. 900 * </pre> 901 * 902 * <code>bool enabled = 1;</code> 903 * 904 * @return This builder for chaining. 905 */ clearEnabled()906 public Builder clearEnabled() { 907 bitField0_ = (bitField0_ & ~0x00000001); 908 enabled_ = false; 909 onChanged(); 910 return this; 911 } 912 913 private int minNodeCount_; 914 /** 915 * 916 * 917 * <pre> 918 * Minimum number of nodes for one location in the NodePool. Must be >= 1 and 919 * <= max_node_count. 920 * </pre> 921 * 922 * <code>int32 min_node_count = 2;</code> 923 * 924 * @return The minNodeCount. 925 */ 926 @java.lang.Override getMinNodeCount()927 public int getMinNodeCount() { 928 return minNodeCount_; 929 } 930 /** 931 * 932 * 933 * <pre> 934 * Minimum number of nodes for one location in the NodePool. Must be >= 1 and 935 * <= max_node_count. 936 * </pre> 937 * 938 * <code>int32 min_node_count = 2;</code> 939 * 940 * @param value The minNodeCount to set. 941 * @return This builder for chaining. 942 */ setMinNodeCount(int value)943 public Builder setMinNodeCount(int value) { 944 945 minNodeCount_ = value; 946 bitField0_ |= 0x00000002; 947 onChanged(); 948 return this; 949 } 950 /** 951 * 952 * 953 * <pre> 954 * Minimum number of nodes for one location in the NodePool. Must be >= 1 and 955 * <= max_node_count. 956 * </pre> 957 * 958 * <code>int32 min_node_count = 2;</code> 959 * 960 * @return This builder for chaining. 961 */ clearMinNodeCount()962 public Builder clearMinNodeCount() { 963 bitField0_ = (bitField0_ & ~0x00000002); 964 minNodeCount_ = 0; 965 onChanged(); 966 return this; 967 } 968 969 private int maxNodeCount_; 970 /** 971 * 972 * 973 * <pre> 974 * Maximum number of nodes for one location in the NodePool. Must be >= 975 * min_node_count. There has to be enough quota to scale up the cluster. 976 * </pre> 977 * 978 * <code>int32 max_node_count = 3;</code> 979 * 980 * @return The maxNodeCount. 981 */ 982 @java.lang.Override getMaxNodeCount()983 public int getMaxNodeCount() { 984 return maxNodeCount_; 985 } 986 /** 987 * 988 * 989 * <pre> 990 * Maximum number of nodes for one location in the NodePool. Must be >= 991 * min_node_count. There has to be enough quota to scale up the cluster. 992 * </pre> 993 * 994 * <code>int32 max_node_count = 3;</code> 995 * 996 * @param value The maxNodeCount to set. 997 * @return This builder for chaining. 998 */ setMaxNodeCount(int value)999 public Builder setMaxNodeCount(int value) { 1000 1001 maxNodeCount_ = value; 1002 bitField0_ |= 0x00000004; 1003 onChanged(); 1004 return this; 1005 } 1006 /** 1007 * 1008 * 1009 * <pre> 1010 * Maximum number of nodes for one location in the NodePool. Must be >= 1011 * min_node_count. There has to be enough quota to scale up the cluster. 1012 * </pre> 1013 * 1014 * <code>int32 max_node_count = 3;</code> 1015 * 1016 * @return This builder for chaining. 1017 */ clearMaxNodeCount()1018 public Builder clearMaxNodeCount() { 1019 bitField0_ = (bitField0_ & ~0x00000004); 1020 maxNodeCount_ = 0; 1021 onChanged(); 1022 return this; 1023 } 1024 1025 private boolean autoprovisioned_; 1026 /** 1027 * 1028 * 1029 * <pre> 1030 * Can this node pool be deleted automatically. 1031 * </pre> 1032 * 1033 * <code>bool autoprovisioned = 4;</code> 1034 * 1035 * @return The autoprovisioned. 1036 */ 1037 @java.lang.Override getAutoprovisioned()1038 public boolean getAutoprovisioned() { 1039 return autoprovisioned_; 1040 } 1041 /** 1042 * 1043 * 1044 * <pre> 1045 * Can this node pool be deleted automatically. 1046 * </pre> 1047 * 1048 * <code>bool autoprovisioned = 4;</code> 1049 * 1050 * @param value The autoprovisioned to set. 1051 * @return This builder for chaining. 1052 */ setAutoprovisioned(boolean value)1053 public Builder setAutoprovisioned(boolean value) { 1054 1055 autoprovisioned_ = value; 1056 bitField0_ |= 0x00000008; 1057 onChanged(); 1058 return this; 1059 } 1060 /** 1061 * 1062 * 1063 * <pre> 1064 * Can this node pool be deleted automatically. 1065 * </pre> 1066 * 1067 * <code>bool autoprovisioned = 4;</code> 1068 * 1069 * @return This builder for chaining. 1070 */ clearAutoprovisioned()1071 public Builder clearAutoprovisioned() { 1072 bitField0_ = (bitField0_ & ~0x00000008); 1073 autoprovisioned_ = false; 1074 onChanged(); 1075 return this; 1076 } 1077 1078 private int locationPolicy_ = 0; 1079 /** 1080 * 1081 * 1082 * <pre> 1083 * Location policy used when scaling up a nodepool. 1084 * </pre> 1085 * 1086 * <code>.google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5;</code> 1087 * 1088 * @return The enum numeric value on the wire for locationPolicy. 1089 */ 1090 @java.lang.Override getLocationPolicyValue()1091 public int getLocationPolicyValue() { 1092 return locationPolicy_; 1093 } 1094 /** 1095 * 1096 * 1097 * <pre> 1098 * Location policy used when scaling up a nodepool. 1099 * </pre> 1100 * 1101 * <code>.google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5;</code> 1102 * 1103 * @param value The enum numeric value on the wire for locationPolicy to set. 1104 * @return This builder for chaining. 1105 */ setLocationPolicyValue(int value)1106 public Builder setLocationPolicyValue(int value) { 1107 locationPolicy_ = value; 1108 bitField0_ |= 0x00000010; 1109 onChanged(); 1110 return this; 1111 } 1112 /** 1113 * 1114 * 1115 * <pre> 1116 * Location policy used when scaling up a nodepool. 1117 * </pre> 1118 * 1119 * <code>.google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5;</code> 1120 * 1121 * @return The locationPolicy. 1122 */ 1123 @java.lang.Override getLocationPolicy()1124 public com.google.container.v1.NodePoolAutoscaling.LocationPolicy getLocationPolicy() { 1125 com.google.container.v1.NodePoolAutoscaling.LocationPolicy result = 1126 com.google.container.v1.NodePoolAutoscaling.LocationPolicy.forNumber(locationPolicy_); 1127 return result == null 1128 ? com.google.container.v1.NodePoolAutoscaling.LocationPolicy.UNRECOGNIZED 1129 : result; 1130 } 1131 /** 1132 * 1133 * 1134 * <pre> 1135 * Location policy used when scaling up a nodepool. 1136 * </pre> 1137 * 1138 * <code>.google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5;</code> 1139 * 1140 * @param value The locationPolicy to set. 1141 * @return This builder for chaining. 1142 */ setLocationPolicy( com.google.container.v1.NodePoolAutoscaling.LocationPolicy value)1143 public Builder setLocationPolicy( 1144 com.google.container.v1.NodePoolAutoscaling.LocationPolicy value) { 1145 if (value == null) { 1146 throw new NullPointerException(); 1147 } 1148 bitField0_ |= 0x00000010; 1149 locationPolicy_ = value.getNumber(); 1150 onChanged(); 1151 return this; 1152 } 1153 /** 1154 * 1155 * 1156 * <pre> 1157 * Location policy used when scaling up a nodepool. 1158 * </pre> 1159 * 1160 * <code>.google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5;</code> 1161 * 1162 * @return This builder for chaining. 1163 */ clearLocationPolicy()1164 public Builder clearLocationPolicy() { 1165 bitField0_ = (bitField0_ & ~0x00000010); 1166 locationPolicy_ = 0; 1167 onChanged(); 1168 return this; 1169 } 1170 1171 private int totalMinNodeCount_; 1172 /** 1173 * 1174 * 1175 * <pre> 1176 * Minimum number of nodes in the node pool. Must be greater than 1 less than 1177 * total_max_node_count. 1178 * The total_*_node_count fields are mutually exclusive with the *_node_count 1179 * fields. 1180 * </pre> 1181 * 1182 * <code>int32 total_min_node_count = 6;</code> 1183 * 1184 * @return The totalMinNodeCount. 1185 */ 1186 @java.lang.Override getTotalMinNodeCount()1187 public int getTotalMinNodeCount() { 1188 return totalMinNodeCount_; 1189 } 1190 /** 1191 * 1192 * 1193 * <pre> 1194 * Minimum number of nodes in the node pool. Must be greater than 1 less than 1195 * total_max_node_count. 1196 * The total_*_node_count fields are mutually exclusive with the *_node_count 1197 * fields. 1198 * </pre> 1199 * 1200 * <code>int32 total_min_node_count = 6;</code> 1201 * 1202 * @param value The totalMinNodeCount to set. 1203 * @return This builder for chaining. 1204 */ setTotalMinNodeCount(int value)1205 public Builder setTotalMinNodeCount(int value) { 1206 1207 totalMinNodeCount_ = value; 1208 bitField0_ |= 0x00000020; 1209 onChanged(); 1210 return this; 1211 } 1212 /** 1213 * 1214 * 1215 * <pre> 1216 * Minimum number of nodes in the node pool. Must be greater than 1 less than 1217 * total_max_node_count. 1218 * The total_*_node_count fields are mutually exclusive with the *_node_count 1219 * fields. 1220 * </pre> 1221 * 1222 * <code>int32 total_min_node_count = 6;</code> 1223 * 1224 * @return This builder for chaining. 1225 */ clearTotalMinNodeCount()1226 public Builder clearTotalMinNodeCount() { 1227 bitField0_ = (bitField0_ & ~0x00000020); 1228 totalMinNodeCount_ = 0; 1229 onChanged(); 1230 return this; 1231 } 1232 1233 private int totalMaxNodeCount_; 1234 /** 1235 * 1236 * 1237 * <pre> 1238 * Maximum number of nodes in the node pool. Must be greater than 1239 * total_min_node_count. There has to be enough quota to scale up the cluster. 1240 * The total_*_node_count fields are mutually exclusive with the *_node_count 1241 * fields. 1242 * </pre> 1243 * 1244 * <code>int32 total_max_node_count = 7;</code> 1245 * 1246 * @return The totalMaxNodeCount. 1247 */ 1248 @java.lang.Override getTotalMaxNodeCount()1249 public int getTotalMaxNodeCount() { 1250 return totalMaxNodeCount_; 1251 } 1252 /** 1253 * 1254 * 1255 * <pre> 1256 * Maximum number of nodes in the node pool. Must be greater than 1257 * total_min_node_count. There has to be enough quota to scale up the cluster. 1258 * The total_*_node_count fields are mutually exclusive with the *_node_count 1259 * fields. 1260 * </pre> 1261 * 1262 * <code>int32 total_max_node_count = 7;</code> 1263 * 1264 * @param value The totalMaxNodeCount to set. 1265 * @return This builder for chaining. 1266 */ setTotalMaxNodeCount(int value)1267 public Builder setTotalMaxNodeCount(int value) { 1268 1269 totalMaxNodeCount_ = value; 1270 bitField0_ |= 0x00000040; 1271 onChanged(); 1272 return this; 1273 } 1274 /** 1275 * 1276 * 1277 * <pre> 1278 * Maximum number of nodes in the node pool. Must be greater than 1279 * total_min_node_count. There has to be enough quota to scale up the cluster. 1280 * The total_*_node_count fields are mutually exclusive with the *_node_count 1281 * fields. 1282 * </pre> 1283 * 1284 * <code>int32 total_max_node_count = 7;</code> 1285 * 1286 * @return This builder for chaining. 1287 */ clearTotalMaxNodeCount()1288 public Builder clearTotalMaxNodeCount() { 1289 bitField0_ = (bitField0_ & ~0x00000040); 1290 totalMaxNodeCount_ = 0; 1291 onChanged(); 1292 return this; 1293 } 1294 1295 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1296 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 1297 return super.setUnknownFields(unknownFields); 1298 } 1299 1300 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1301 public final Builder mergeUnknownFields( 1302 final com.google.protobuf.UnknownFieldSet unknownFields) { 1303 return super.mergeUnknownFields(unknownFields); 1304 } 1305 1306 // @@protoc_insertion_point(builder_scope:google.container.v1.NodePoolAutoscaling) 1307 } 1308 1309 // @@protoc_insertion_point(class_scope:google.container.v1.NodePoolAutoscaling) 1310 private static final com.google.container.v1.NodePoolAutoscaling DEFAULT_INSTANCE; 1311 1312 static { 1313 DEFAULT_INSTANCE = new com.google.container.v1.NodePoolAutoscaling(); 1314 } 1315 getDefaultInstance()1316 public static com.google.container.v1.NodePoolAutoscaling getDefaultInstance() { 1317 return DEFAULT_INSTANCE; 1318 } 1319 1320 private static final com.google.protobuf.Parser<NodePoolAutoscaling> PARSER = 1321 new com.google.protobuf.AbstractParser<NodePoolAutoscaling>() { 1322 @java.lang.Override 1323 public NodePoolAutoscaling parsePartialFrom( 1324 com.google.protobuf.CodedInputStream input, 1325 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1326 throws com.google.protobuf.InvalidProtocolBufferException { 1327 Builder builder = newBuilder(); 1328 try { 1329 builder.mergeFrom(input, extensionRegistry); 1330 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1331 throw e.setUnfinishedMessage(builder.buildPartial()); 1332 } catch (com.google.protobuf.UninitializedMessageException e) { 1333 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 1334 } catch (java.io.IOException e) { 1335 throw new com.google.protobuf.InvalidProtocolBufferException(e) 1336 .setUnfinishedMessage(builder.buildPartial()); 1337 } 1338 return builder.buildPartial(); 1339 } 1340 }; 1341 parser()1342 public static com.google.protobuf.Parser<NodePoolAutoscaling> parser() { 1343 return PARSER; 1344 } 1345 1346 @java.lang.Override getParserForType()1347 public com.google.protobuf.Parser<NodePoolAutoscaling> getParserForType() { 1348 return PARSER; 1349 } 1350 1351 @java.lang.Override getDefaultInstanceForType()1352 public com.google.container.v1.NodePoolAutoscaling getDefaultInstanceForType() { 1353 return DEFAULT_INSTANCE; 1354 } 1355 } 1356