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 * AutoprovisioningNodePoolDefaults contains defaults for a node pool created 26 * by NAP. 27 * </pre> 28 * 29 * Protobuf type {@code google.container.v1.AutoprovisioningNodePoolDefaults} 30 */ 31 public final class AutoprovisioningNodePoolDefaults extends com.google.protobuf.GeneratedMessageV3 32 implements 33 // @@protoc_insertion_point(message_implements:google.container.v1.AutoprovisioningNodePoolDefaults) 34 AutoprovisioningNodePoolDefaultsOrBuilder { 35 private static final long serialVersionUID = 0L; 36 // Use AutoprovisioningNodePoolDefaults.newBuilder() to construct. AutoprovisioningNodePoolDefaults( com.google.protobuf.GeneratedMessageV3.Builder<?> builder)37 private AutoprovisioningNodePoolDefaults( 38 com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 39 super(builder); 40 } 41 AutoprovisioningNodePoolDefaults()42 private AutoprovisioningNodePoolDefaults() { 43 oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; 44 serviceAccount_ = ""; 45 minCpuPlatform_ = ""; 46 diskType_ = ""; 47 bootDiskKmsKey_ = ""; 48 imageType_ = ""; 49 } 50 51 @java.lang.Override 52 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)53 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 54 return new AutoprovisioningNodePoolDefaults(); 55 } 56 57 @java.lang.Override getUnknownFields()58 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 59 return this.unknownFields; 60 } 61 getDescriptor()62 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 63 return com.google.container.v1.ClusterServiceProto 64 .internal_static_google_container_v1_AutoprovisioningNodePoolDefaults_descriptor; 65 } 66 67 @java.lang.Override 68 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()69 internalGetFieldAccessorTable() { 70 return com.google.container.v1.ClusterServiceProto 71 .internal_static_google_container_v1_AutoprovisioningNodePoolDefaults_fieldAccessorTable 72 .ensureFieldAccessorsInitialized( 73 com.google.container.v1.AutoprovisioningNodePoolDefaults.class, 74 com.google.container.v1.AutoprovisioningNodePoolDefaults.Builder.class); 75 } 76 77 public static final int OAUTH_SCOPES_FIELD_NUMBER = 1; 78 79 @SuppressWarnings("serial") 80 private com.google.protobuf.LazyStringList oauthScopes_; 81 /** 82 * 83 * 84 * <pre> 85 * Scopes that are used by NAP when creating node pools. 86 * </pre> 87 * 88 * <code>repeated string oauth_scopes = 1;</code> 89 * 90 * @return A list containing the oauthScopes. 91 */ getOauthScopesList()92 public com.google.protobuf.ProtocolStringList getOauthScopesList() { 93 return oauthScopes_; 94 } 95 /** 96 * 97 * 98 * <pre> 99 * Scopes that are used by NAP when creating node pools. 100 * </pre> 101 * 102 * <code>repeated string oauth_scopes = 1;</code> 103 * 104 * @return The count of oauthScopes. 105 */ getOauthScopesCount()106 public int getOauthScopesCount() { 107 return oauthScopes_.size(); 108 } 109 /** 110 * 111 * 112 * <pre> 113 * Scopes that are used by NAP when creating node pools. 114 * </pre> 115 * 116 * <code>repeated string oauth_scopes = 1;</code> 117 * 118 * @param index The index of the element to return. 119 * @return The oauthScopes at the given index. 120 */ getOauthScopes(int index)121 public java.lang.String getOauthScopes(int index) { 122 return oauthScopes_.get(index); 123 } 124 /** 125 * 126 * 127 * <pre> 128 * Scopes that are used by NAP when creating node pools. 129 * </pre> 130 * 131 * <code>repeated string oauth_scopes = 1;</code> 132 * 133 * @param index The index of the value to return. 134 * @return The bytes of the oauthScopes at the given index. 135 */ getOauthScopesBytes(int index)136 public com.google.protobuf.ByteString getOauthScopesBytes(int index) { 137 return oauthScopes_.getByteString(index); 138 } 139 140 public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 2; 141 142 @SuppressWarnings("serial") 143 private volatile java.lang.Object serviceAccount_ = ""; 144 /** 145 * 146 * 147 * <pre> 148 * The Google Cloud Platform Service Account to be used by the node VMs. 149 * </pre> 150 * 151 * <code>string service_account = 2;</code> 152 * 153 * @return The serviceAccount. 154 */ 155 @java.lang.Override getServiceAccount()156 public java.lang.String getServiceAccount() { 157 java.lang.Object ref = serviceAccount_; 158 if (ref instanceof java.lang.String) { 159 return (java.lang.String) ref; 160 } else { 161 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 162 java.lang.String s = bs.toStringUtf8(); 163 serviceAccount_ = s; 164 return s; 165 } 166 } 167 /** 168 * 169 * 170 * <pre> 171 * The Google Cloud Platform Service Account to be used by the node VMs. 172 * </pre> 173 * 174 * <code>string service_account = 2;</code> 175 * 176 * @return The bytes for serviceAccount. 177 */ 178 @java.lang.Override getServiceAccountBytes()179 public com.google.protobuf.ByteString getServiceAccountBytes() { 180 java.lang.Object ref = serviceAccount_; 181 if (ref instanceof java.lang.String) { 182 com.google.protobuf.ByteString b = 183 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 184 serviceAccount_ = b; 185 return b; 186 } else { 187 return (com.google.protobuf.ByteString) ref; 188 } 189 } 190 191 public static final int UPGRADE_SETTINGS_FIELD_NUMBER = 3; 192 private com.google.container.v1.NodePool.UpgradeSettings upgradeSettings_; 193 /** 194 * 195 * 196 * <pre> 197 * Specifies the upgrade settings for NAP created node pools 198 * </pre> 199 * 200 * <code>.google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3;</code> 201 * 202 * @return Whether the upgradeSettings field is set. 203 */ 204 @java.lang.Override hasUpgradeSettings()205 public boolean hasUpgradeSettings() { 206 return upgradeSettings_ != null; 207 } 208 /** 209 * 210 * 211 * <pre> 212 * Specifies the upgrade settings for NAP created node pools 213 * </pre> 214 * 215 * <code>.google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3;</code> 216 * 217 * @return The upgradeSettings. 218 */ 219 @java.lang.Override getUpgradeSettings()220 public com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings() { 221 return upgradeSettings_ == null 222 ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() 223 : upgradeSettings_; 224 } 225 /** 226 * 227 * 228 * <pre> 229 * Specifies the upgrade settings for NAP created node pools 230 * </pre> 231 * 232 * <code>.google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3;</code> 233 */ 234 @java.lang.Override getUpgradeSettingsOrBuilder()235 public com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder() { 236 return upgradeSettings_ == null 237 ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() 238 : upgradeSettings_; 239 } 240 241 public static final int MANAGEMENT_FIELD_NUMBER = 4; 242 private com.google.container.v1.NodeManagement management_; 243 /** 244 * 245 * 246 * <pre> 247 * Specifies the node management options for NAP created node-pools. 248 * </pre> 249 * 250 * <code>.google.container.v1.NodeManagement management = 4;</code> 251 * 252 * @return Whether the management field is set. 253 */ 254 @java.lang.Override hasManagement()255 public boolean hasManagement() { 256 return management_ != null; 257 } 258 /** 259 * 260 * 261 * <pre> 262 * Specifies the node management options for NAP created node-pools. 263 * </pre> 264 * 265 * <code>.google.container.v1.NodeManagement management = 4;</code> 266 * 267 * @return The management. 268 */ 269 @java.lang.Override getManagement()270 public com.google.container.v1.NodeManagement getManagement() { 271 return management_ == null 272 ? com.google.container.v1.NodeManagement.getDefaultInstance() 273 : management_; 274 } 275 /** 276 * 277 * 278 * <pre> 279 * Specifies the node management options for NAP created node-pools. 280 * </pre> 281 * 282 * <code>.google.container.v1.NodeManagement management = 4;</code> 283 */ 284 @java.lang.Override getManagementOrBuilder()285 public com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder() { 286 return management_ == null 287 ? com.google.container.v1.NodeManagement.getDefaultInstance() 288 : management_; 289 } 290 291 public static final int MIN_CPU_PLATFORM_FIELD_NUMBER = 5; 292 293 @SuppressWarnings("serial") 294 private volatile java.lang.Object minCpuPlatform_ = ""; 295 /** 296 * 297 * 298 * <pre> 299 * Deprecated. Minimum CPU platform to be used for NAP created node pools. 300 * The instance may be scheduled on the specified or newer CPU platform. 301 * Applicable values are the friendly names of CPU platforms, such as 302 * minCpuPlatform: Intel Haswell or 303 * minCpuPlatform: Intel Sandy Bridge. For more 304 * information, read [how to specify min CPU 305 * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform). 306 * This field is deprecated, min_cpu_platform should be specified using 307 * `cloud.google.com/requested-min-cpu-platform` label selector on the pod. 308 * To unset the min cpu platform field pass "automatic" 309 * as field value. 310 * </pre> 311 * 312 * <code>string min_cpu_platform = 5 [deprecated = true];</code> 313 * 314 * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is 315 * deprecated. See google/container/v1/cluster_service.proto;l=3654 316 * @return The minCpuPlatform. 317 */ 318 @java.lang.Override 319 @java.lang.Deprecated getMinCpuPlatform()320 public java.lang.String getMinCpuPlatform() { 321 java.lang.Object ref = minCpuPlatform_; 322 if (ref instanceof java.lang.String) { 323 return (java.lang.String) ref; 324 } else { 325 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 326 java.lang.String s = bs.toStringUtf8(); 327 minCpuPlatform_ = s; 328 return s; 329 } 330 } 331 /** 332 * 333 * 334 * <pre> 335 * Deprecated. Minimum CPU platform to be used for NAP created node pools. 336 * The instance may be scheduled on the specified or newer CPU platform. 337 * Applicable values are the friendly names of CPU platforms, such as 338 * minCpuPlatform: Intel Haswell or 339 * minCpuPlatform: Intel Sandy Bridge. For more 340 * information, read [how to specify min CPU 341 * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform). 342 * This field is deprecated, min_cpu_platform should be specified using 343 * `cloud.google.com/requested-min-cpu-platform` label selector on the pod. 344 * To unset the min cpu platform field pass "automatic" 345 * as field value. 346 * </pre> 347 * 348 * <code>string min_cpu_platform = 5 [deprecated = true];</code> 349 * 350 * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is 351 * deprecated. See google/container/v1/cluster_service.proto;l=3654 352 * @return The bytes for minCpuPlatform. 353 */ 354 @java.lang.Override 355 @java.lang.Deprecated getMinCpuPlatformBytes()356 public com.google.protobuf.ByteString getMinCpuPlatformBytes() { 357 java.lang.Object ref = minCpuPlatform_; 358 if (ref instanceof java.lang.String) { 359 com.google.protobuf.ByteString b = 360 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 361 minCpuPlatform_ = b; 362 return b; 363 } else { 364 return (com.google.protobuf.ByteString) ref; 365 } 366 } 367 368 public static final int DISK_SIZE_GB_FIELD_NUMBER = 6; 369 private int diskSizeGb_ = 0; 370 /** 371 * 372 * 373 * <pre> 374 * Size of the disk attached to each node, specified in GB. 375 * The smallest allowed disk size is 10GB. 376 * If unspecified, the default disk size is 100GB. 377 * </pre> 378 * 379 * <code>int32 disk_size_gb = 6;</code> 380 * 381 * @return The diskSizeGb. 382 */ 383 @java.lang.Override getDiskSizeGb()384 public int getDiskSizeGb() { 385 return diskSizeGb_; 386 } 387 388 public static final int DISK_TYPE_FIELD_NUMBER = 7; 389 390 @SuppressWarnings("serial") 391 private volatile java.lang.Object diskType_ = ""; 392 /** 393 * 394 * 395 * <pre> 396 * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or 397 * 'pd-balanced') 398 * If unspecified, the default disk type is 'pd-standard' 399 * </pre> 400 * 401 * <code>string disk_type = 7;</code> 402 * 403 * @return The diskType. 404 */ 405 @java.lang.Override getDiskType()406 public java.lang.String getDiskType() { 407 java.lang.Object ref = diskType_; 408 if (ref instanceof java.lang.String) { 409 return (java.lang.String) ref; 410 } else { 411 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 412 java.lang.String s = bs.toStringUtf8(); 413 diskType_ = s; 414 return s; 415 } 416 } 417 /** 418 * 419 * 420 * <pre> 421 * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or 422 * 'pd-balanced') 423 * If unspecified, the default disk type is 'pd-standard' 424 * </pre> 425 * 426 * <code>string disk_type = 7;</code> 427 * 428 * @return The bytes for diskType. 429 */ 430 @java.lang.Override getDiskTypeBytes()431 public com.google.protobuf.ByteString getDiskTypeBytes() { 432 java.lang.Object ref = diskType_; 433 if (ref instanceof java.lang.String) { 434 com.google.protobuf.ByteString b = 435 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 436 diskType_ = b; 437 return b; 438 } else { 439 return (com.google.protobuf.ByteString) ref; 440 } 441 } 442 443 public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER = 8; 444 private com.google.container.v1.ShieldedInstanceConfig shieldedInstanceConfig_; 445 /** 446 * 447 * 448 * <pre> 449 * Shielded Instance options. 450 * </pre> 451 * 452 * <code>.google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8;</code> 453 * 454 * @return Whether the shieldedInstanceConfig field is set. 455 */ 456 @java.lang.Override hasShieldedInstanceConfig()457 public boolean hasShieldedInstanceConfig() { 458 return shieldedInstanceConfig_ != null; 459 } 460 /** 461 * 462 * 463 * <pre> 464 * Shielded Instance options. 465 * </pre> 466 * 467 * <code>.google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8;</code> 468 * 469 * @return The shieldedInstanceConfig. 470 */ 471 @java.lang.Override getShieldedInstanceConfig()472 public com.google.container.v1.ShieldedInstanceConfig getShieldedInstanceConfig() { 473 return shieldedInstanceConfig_ == null 474 ? com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance() 475 : shieldedInstanceConfig_; 476 } 477 /** 478 * 479 * 480 * <pre> 481 * Shielded Instance options. 482 * </pre> 483 * 484 * <code>.google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8;</code> 485 */ 486 @java.lang.Override 487 public com.google.container.v1.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder()488 getShieldedInstanceConfigOrBuilder() { 489 return shieldedInstanceConfig_ == null 490 ? com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance() 491 : shieldedInstanceConfig_; 492 } 493 494 public static final int BOOT_DISK_KMS_KEY_FIELD_NUMBER = 9; 495 496 @SuppressWarnings("serial") 497 private volatile java.lang.Object bootDiskKmsKey_ = ""; 498 /** 499 * 500 * 501 * <pre> 502 * The Customer Managed Encryption Key used to encrypt the boot disk attached 503 * to each node in the node pool. This should be of the form 504 * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. 505 * For more information about protecting resources with Cloud KMS Keys please 506 * see: 507 * https://cloud.google.com/compute/docs/disks/customer-managed-encryption 508 * </pre> 509 * 510 * <code>string boot_disk_kms_key = 9;</code> 511 * 512 * @return The bootDiskKmsKey. 513 */ 514 @java.lang.Override getBootDiskKmsKey()515 public java.lang.String getBootDiskKmsKey() { 516 java.lang.Object ref = bootDiskKmsKey_; 517 if (ref instanceof java.lang.String) { 518 return (java.lang.String) ref; 519 } else { 520 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 521 java.lang.String s = bs.toStringUtf8(); 522 bootDiskKmsKey_ = s; 523 return s; 524 } 525 } 526 /** 527 * 528 * 529 * <pre> 530 * The Customer Managed Encryption Key used to encrypt the boot disk attached 531 * to each node in the node pool. This should be of the form 532 * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. 533 * For more information about protecting resources with Cloud KMS Keys please 534 * see: 535 * https://cloud.google.com/compute/docs/disks/customer-managed-encryption 536 * </pre> 537 * 538 * <code>string boot_disk_kms_key = 9;</code> 539 * 540 * @return The bytes for bootDiskKmsKey. 541 */ 542 @java.lang.Override getBootDiskKmsKeyBytes()543 public com.google.protobuf.ByteString getBootDiskKmsKeyBytes() { 544 java.lang.Object ref = bootDiskKmsKey_; 545 if (ref instanceof java.lang.String) { 546 com.google.protobuf.ByteString b = 547 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 548 bootDiskKmsKey_ = b; 549 return b; 550 } else { 551 return (com.google.protobuf.ByteString) ref; 552 } 553 } 554 555 public static final int IMAGE_TYPE_FIELD_NUMBER = 10; 556 557 @SuppressWarnings("serial") 558 private volatile java.lang.Object imageType_ = ""; 559 /** 560 * 561 * 562 * <pre> 563 * The image type to use for NAP created node. Please see 564 * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for 565 * available image types. 566 * </pre> 567 * 568 * <code>string image_type = 10;</code> 569 * 570 * @return The imageType. 571 */ 572 @java.lang.Override getImageType()573 public java.lang.String getImageType() { 574 java.lang.Object ref = imageType_; 575 if (ref instanceof java.lang.String) { 576 return (java.lang.String) ref; 577 } else { 578 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 579 java.lang.String s = bs.toStringUtf8(); 580 imageType_ = s; 581 return s; 582 } 583 } 584 /** 585 * 586 * 587 * <pre> 588 * The image type to use for NAP created node. Please see 589 * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for 590 * available image types. 591 * </pre> 592 * 593 * <code>string image_type = 10;</code> 594 * 595 * @return The bytes for imageType. 596 */ 597 @java.lang.Override getImageTypeBytes()598 public com.google.protobuf.ByteString getImageTypeBytes() { 599 java.lang.Object ref = imageType_; 600 if (ref instanceof java.lang.String) { 601 com.google.protobuf.ByteString b = 602 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 603 imageType_ = b; 604 return b; 605 } else { 606 return (com.google.protobuf.ByteString) ref; 607 } 608 } 609 610 private byte memoizedIsInitialized = -1; 611 612 @java.lang.Override isInitialized()613 public final boolean isInitialized() { 614 byte isInitialized = memoizedIsInitialized; 615 if (isInitialized == 1) return true; 616 if (isInitialized == 0) return false; 617 618 memoizedIsInitialized = 1; 619 return true; 620 } 621 622 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)623 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 624 for (int i = 0; i < oauthScopes_.size(); i++) { 625 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, oauthScopes_.getRaw(i)); 626 } 627 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { 628 com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serviceAccount_); 629 } 630 if (upgradeSettings_ != null) { 631 output.writeMessage(3, getUpgradeSettings()); 632 } 633 if (management_ != null) { 634 output.writeMessage(4, getManagement()); 635 } 636 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(minCpuPlatform_)) { 637 com.google.protobuf.GeneratedMessageV3.writeString(output, 5, minCpuPlatform_); 638 } 639 if (diskSizeGb_ != 0) { 640 output.writeInt32(6, diskSizeGb_); 641 } 642 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskType_)) { 643 com.google.protobuf.GeneratedMessageV3.writeString(output, 7, diskType_); 644 } 645 if (shieldedInstanceConfig_ != null) { 646 output.writeMessage(8, getShieldedInstanceConfig()); 647 } 648 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bootDiskKmsKey_)) { 649 com.google.protobuf.GeneratedMessageV3.writeString(output, 9, bootDiskKmsKey_); 650 } 651 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageType_)) { 652 com.google.protobuf.GeneratedMessageV3.writeString(output, 10, imageType_); 653 } 654 getUnknownFields().writeTo(output); 655 } 656 657 @java.lang.Override getSerializedSize()658 public int getSerializedSize() { 659 int size = memoizedSize; 660 if (size != -1) return size; 661 662 size = 0; 663 { 664 int dataSize = 0; 665 for (int i = 0; i < oauthScopes_.size(); i++) { 666 dataSize += computeStringSizeNoTag(oauthScopes_.getRaw(i)); 667 } 668 size += dataSize; 669 size += 1 * getOauthScopesList().size(); 670 } 671 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { 672 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, serviceAccount_); 673 } 674 if (upgradeSettings_ != null) { 675 size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpgradeSettings()); 676 } 677 if (management_ != null) { 678 size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getManagement()); 679 } 680 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(minCpuPlatform_)) { 681 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, minCpuPlatform_); 682 } 683 if (diskSizeGb_ != 0) { 684 size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, diskSizeGb_); 685 } 686 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskType_)) { 687 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, diskType_); 688 } 689 if (shieldedInstanceConfig_ != null) { 690 size += 691 com.google.protobuf.CodedOutputStream.computeMessageSize(8, getShieldedInstanceConfig()); 692 } 693 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bootDiskKmsKey_)) { 694 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, bootDiskKmsKey_); 695 } 696 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageType_)) { 697 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, imageType_); 698 } 699 size += getUnknownFields().getSerializedSize(); 700 memoizedSize = size; 701 return size; 702 } 703 704 @java.lang.Override equals(final java.lang.Object obj)705 public boolean equals(final java.lang.Object obj) { 706 if (obj == this) { 707 return true; 708 } 709 if (!(obj instanceof com.google.container.v1.AutoprovisioningNodePoolDefaults)) { 710 return super.equals(obj); 711 } 712 com.google.container.v1.AutoprovisioningNodePoolDefaults other = 713 (com.google.container.v1.AutoprovisioningNodePoolDefaults) obj; 714 715 if (!getOauthScopesList().equals(other.getOauthScopesList())) return false; 716 if (!getServiceAccount().equals(other.getServiceAccount())) return false; 717 if (hasUpgradeSettings() != other.hasUpgradeSettings()) return false; 718 if (hasUpgradeSettings()) { 719 if (!getUpgradeSettings().equals(other.getUpgradeSettings())) return false; 720 } 721 if (hasManagement() != other.hasManagement()) return false; 722 if (hasManagement()) { 723 if (!getManagement().equals(other.getManagement())) return false; 724 } 725 if (!getMinCpuPlatform().equals(other.getMinCpuPlatform())) return false; 726 if (getDiskSizeGb() != other.getDiskSizeGb()) return false; 727 if (!getDiskType().equals(other.getDiskType())) return false; 728 if (hasShieldedInstanceConfig() != other.hasShieldedInstanceConfig()) return false; 729 if (hasShieldedInstanceConfig()) { 730 if (!getShieldedInstanceConfig().equals(other.getShieldedInstanceConfig())) return false; 731 } 732 if (!getBootDiskKmsKey().equals(other.getBootDiskKmsKey())) return false; 733 if (!getImageType().equals(other.getImageType())) return false; 734 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 735 return true; 736 } 737 738 @java.lang.Override hashCode()739 public int hashCode() { 740 if (memoizedHashCode != 0) { 741 return memoizedHashCode; 742 } 743 int hash = 41; 744 hash = (19 * hash) + getDescriptor().hashCode(); 745 if (getOauthScopesCount() > 0) { 746 hash = (37 * hash) + OAUTH_SCOPES_FIELD_NUMBER; 747 hash = (53 * hash) + getOauthScopesList().hashCode(); 748 } 749 hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; 750 hash = (53 * hash) + getServiceAccount().hashCode(); 751 if (hasUpgradeSettings()) { 752 hash = (37 * hash) + UPGRADE_SETTINGS_FIELD_NUMBER; 753 hash = (53 * hash) + getUpgradeSettings().hashCode(); 754 } 755 if (hasManagement()) { 756 hash = (37 * hash) + MANAGEMENT_FIELD_NUMBER; 757 hash = (53 * hash) + getManagement().hashCode(); 758 } 759 hash = (37 * hash) + MIN_CPU_PLATFORM_FIELD_NUMBER; 760 hash = (53 * hash) + getMinCpuPlatform().hashCode(); 761 hash = (37 * hash) + DISK_SIZE_GB_FIELD_NUMBER; 762 hash = (53 * hash) + getDiskSizeGb(); 763 hash = (37 * hash) + DISK_TYPE_FIELD_NUMBER; 764 hash = (53 * hash) + getDiskType().hashCode(); 765 if (hasShieldedInstanceConfig()) { 766 hash = (37 * hash) + SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER; 767 hash = (53 * hash) + getShieldedInstanceConfig().hashCode(); 768 } 769 hash = (37 * hash) + BOOT_DISK_KMS_KEY_FIELD_NUMBER; 770 hash = (53 * hash) + getBootDiskKmsKey().hashCode(); 771 hash = (37 * hash) + IMAGE_TYPE_FIELD_NUMBER; 772 hash = (53 * hash) + getImageType().hashCode(); 773 hash = (29 * hash) + getUnknownFields().hashCode(); 774 memoizedHashCode = hash; 775 return hash; 776 } 777 parseFrom( java.nio.ByteBuffer data)778 public static com.google.container.v1.AutoprovisioningNodePoolDefaults parseFrom( 779 java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { 780 return PARSER.parseFrom(data); 781 } 782 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)783 public static com.google.container.v1.AutoprovisioningNodePoolDefaults parseFrom( 784 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 785 throws com.google.protobuf.InvalidProtocolBufferException { 786 return PARSER.parseFrom(data, extensionRegistry); 787 } 788 parseFrom( com.google.protobuf.ByteString data)789 public static com.google.container.v1.AutoprovisioningNodePoolDefaults parseFrom( 790 com.google.protobuf.ByteString data) 791 throws com.google.protobuf.InvalidProtocolBufferException { 792 return PARSER.parseFrom(data); 793 } 794 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)795 public static com.google.container.v1.AutoprovisioningNodePoolDefaults parseFrom( 796 com.google.protobuf.ByteString data, 797 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 798 throws com.google.protobuf.InvalidProtocolBufferException { 799 return PARSER.parseFrom(data, extensionRegistry); 800 } 801 parseFrom(byte[] data)802 public static com.google.container.v1.AutoprovisioningNodePoolDefaults parseFrom(byte[] data) 803 throws com.google.protobuf.InvalidProtocolBufferException { 804 return PARSER.parseFrom(data); 805 } 806 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)807 public static com.google.container.v1.AutoprovisioningNodePoolDefaults parseFrom( 808 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 809 throws com.google.protobuf.InvalidProtocolBufferException { 810 return PARSER.parseFrom(data, extensionRegistry); 811 } 812 parseFrom( java.io.InputStream input)813 public static com.google.container.v1.AutoprovisioningNodePoolDefaults parseFrom( 814 java.io.InputStream input) throws java.io.IOException { 815 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 816 } 817 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)818 public static com.google.container.v1.AutoprovisioningNodePoolDefaults parseFrom( 819 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 820 throws java.io.IOException { 821 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 822 PARSER, input, extensionRegistry); 823 } 824 parseDelimitedFrom( java.io.InputStream input)825 public static com.google.container.v1.AutoprovisioningNodePoolDefaults parseDelimitedFrom( 826 java.io.InputStream input) throws java.io.IOException { 827 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 828 } 829 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)830 public static com.google.container.v1.AutoprovisioningNodePoolDefaults parseDelimitedFrom( 831 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 832 throws java.io.IOException { 833 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 834 PARSER, input, extensionRegistry); 835 } 836 parseFrom( com.google.protobuf.CodedInputStream input)837 public static com.google.container.v1.AutoprovisioningNodePoolDefaults parseFrom( 838 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 839 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 840 } 841 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)842 public static com.google.container.v1.AutoprovisioningNodePoolDefaults parseFrom( 843 com.google.protobuf.CodedInputStream input, 844 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 845 throws java.io.IOException { 846 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 847 PARSER, input, extensionRegistry); 848 } 849 850 @java.lang.Override newBuilderForType()851 public Builder newBuilderForType() { 852 return newBuilder(); 853 } 854 newBuilder()855 public static Builder newBuilder() { 856 return DEFAULT_INSTANCE.toBuilder(); 857 } 858 newBuilder( com.google.container.v1.AutoprovisioningNodePoolDefaults prototype)859 public static Builder newBuilder( 860 com.google.container.v1.AutoprovisioningNodePoolDefaults prototype) { 861 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 862 } 863 864 @java.lang.Override toBuilder()865 public Builder toBuilder() { 866 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 867 } 868 869 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)870 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 871 Builder builder = new Builder(parent); 872 return builder; 873 } 874 /** 875 * 876 * 877 * <pre> 878 * AutoprovisioningNodePoolDefaults contains defaults for a node pool created 879 * by NAP. 880 * </pre> 881 * 882 * Protobuf type {@code google.container.v1.AutoprovisioningNodePoolDefaults} 883 */ 884 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 885 implements 886 // @@protoc_insertion_point(builder_implements:google.container.v1.AutoprovisioningNodePoolDefaults) 887 com.google.container.v1.AutoprovisioningNodePoolDefaultsOrBuilder { getDescriptor()888 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 889 return com.google.container.v1.ClusterServiceProto 890 .internal_static_google_container_v1_AutoprovisioningNodePoolDefaults_descriptor; 891 } 892 893 @java.lang.Override 894 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()895 internalGetFieldAccessorTable() { 896 return com.google.container.v1.ClusterServiceProto 897 .internal_static_google_container_v1_AutoprovisioningNodePoolDefaults_fieldAccessorTable 898 .ensureFieldAccessorsInitialized( 899 com.google.container.v1.AutoprovisioningNodePoolDefaults.class, 900 com.google.container.v1.AutoprovisioningNodePoolDefaults.Builder.class); 901 } 902 903 // Construct using com.google.container.v1.AutoprovisioningNodePoolDefaults.newBuilder() Builder()904 private Builder() {} 905 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)906 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 907 super(parent); 908 } 909 910 @java.lang.Override clear()911 public Builder clear() { 912 super.clear(); 913 bitField0_ = 0; 914 oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; 915 bitField0_ = (bitField0_ & ~0x00000001); 916 serviceAccount_ = ""; 917 upgradeSettings_ = null; 918 if (upgradeSettingsBuilder_ != null) { 919 upgradeSettingsBuilder_.dispose(); 920 upgradeSettingsBuilder_ = null; 921 } 922 management_ = null; 923 if (managementBuilder_ != null) { 924 managementBuilder_.dispose(); 925 managementBuilder_ = null; 926 } 927 minCpuPlatform_ = ""; 928 diskSizeGb_ = 0; 929 diskType_ = ""; 930 shieldedInstanceConfig_ = null; 931 if (shieldedInstanceConfigBuilder_ != null) { 932 shieldedInstanceConfigBuilder_.dispose(); 933 shieldedInstanceConfigBuilder_ = null; 934 } 935 bootDiskKmsKey_ = ""; 936 imageType_ = ""; 937 return this; 938 } 939 940 @java.lang.Override getDescriptorForType()941 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 942 return com.google.container.v1.ClusterServiceProto 943 .internal_static_google_container_v1_AutoprovisioningNodePoolDefaults_descriptor; 944 } 945 946 @java.lang.Override getDefaultInstanceForType()947 public com.google.container.v1.AutoprovisioningNodePoolDefaults getDefaultInstanceForType() { 948 return com.google.container.v1.AutoprovisioningNodePoolDefaults.getDefaultInstance(); 949 } 950 951 @java.lang.Override build()952 public com.google.container.v1.AutoprovisioningNodePoolDefaults build() { 953 com.google.container.v1.AutoprovisioningNodePoolDefaults result = buildPartial(); 954 if (!result.isInitialized()) { 955 throw newUninitializedMessageException(result); 956 } 957 return result; 958 } 959 960 @java.lang.Override buildPartial()961 public com.google.container.v1.AutoprovisioningNodePoolDefaults buildPartial() { 962 com.google.container.v1.AutoprovisioningNodePoolDefaults result = 963 new com.google.container.v1.AutoprovisioningNodePoolDefaults(this); 964 buildPartialRepeatedFields(result); 965 if (bitField0_ != 0) { 966 buildPartial0(result); 967 } 968 onBuilt(); 969 return result; 970 } 971 buildPartialRepeatedFields( com.google.container.v1.AutoprovisioningNodePoolDefaults result)972 private void buildPartialRepeatedFields( 973 com.google.container.v1.AutoprovisioningNodePoolDefaults result) { 974 if (((bitField0_ & 0x00000001) != 0)) { 975 oauthScopes_ = oauthScopes_.getUnmodifiableView(); 976 bitField0_ = (bitField0_ & ~0x00000001); 977 } 978 result.oauthScopes_ = oauthScopes_; 979 } 980 buildPartial0(com.google.container.v1.AutoprovisioningNodePoolDefaults result)981 private void buildPartial0(com.google.container.v1.AutoprovisioningNodePoolDefaults result) { 982 int from_bitField0_ = bitField0_; 983 if (((from_bitField0_ & 0x00000002) != 0)) { 984 result.serviceAccount_ = serviceAccount_; 985 } 986 if (((from_bitField0_ & 0x00000004) != 0)) { 987 result.upgradeSettings_ = 988 upgradeSettingsBuilder_ == null ? upgradeSettings_ : upgradeSettingsBuilder_.build(); 989 } 990 if (((from_bitField0_ & 0x00000008) != 0)) { 991 result.management_ = managementBuilder_ == null ? management_ : managementBuilder_.build(); 992 } 993 if (((from_bitField0_ & 0x00000010) != 0)) { 994 result.minCpuPlatform_ = minCpuPlatform_; 995 } 996 if (((from_bitField0_ & 0x00000020) != 0)) { 997 result.diskSizeGb_ = diskSizeGb_; 998 } 999 if (((from_bitField0_ & 0x00000040) != 0)) { 1000 result.diskType_ = diskType_; 1001 } 1002 if (((from_bitField0_ & 0x00000080) != 0)) { 1003 result.shieldedInstanceConfig_ = 1004 shieldedInstanceConfigBuilder_ == null 1005 ? shieldedInstanceConfig_ 1006 : shieldedInstanceConfigBuilder_.build(); 1007 } 1008 if (((from_bitField0_ & 0x00000100) != 0)) { 1009 result.bootDiskKmsKey_ = bootDiskKmsKey_; 1010 } 1011 if (((from_bitField0_ & 0x00000200) != 0)) { 1012 result.imageType_ = imageType_; 1013 } 1014 } 1015 1016 @java.lang.Override clone()1017 public Builder clone() { 1018 return super.clone(); 1019 } 1020 1021 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1022 public Builder setField( 1023 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1024 return super.setField(field, value); 1025 } 1026 1027 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1028 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 1029 return super.clearField(field); 1030 } 1031 1032 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1033 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 1034 return super.clearOneof(oneof); 1035 } 1036 1037 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1038 public Builder setRepeatedField( 1039 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 1040 return super.setRepeatedField(field, index, value); 1041 } 1042 1043 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1044 public Builder addRepeatedField( 1045 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1046 return super.addRepeatedField(field, value); 1047 } 1048 1049 @java.lang.Override mergeFrom(com.google.protobuf.Message other)1050 public Builder mergeFrom(com.google.protobuf.Message other) { 1051 if (other instanceof com.google.container.v1.AutoprovisioningNodePoolDefaults) { 1052 return mergeFrom((com.google.container.v1.AutoprovisioningNodePoolDefaults) other); 1053 } else { 1054 super.mergeFrom(other); 1055 return this; 1056 } 1057 } 1058 mergeFrom(com.google.container.v1.AutoprovisioningNodePoolDefaults other)1059 public Builder mergeFrom(com.google.container.v1.AutoprovisioningNodePoolDefaults other) { 1060 if (other == com.google.container.v1.AutoprovisioningNodePoolDefaults.getDefaultInstance()) 1061 return this; 1062 if (!other.oauthScopes_.isEmpty()) { 1063 if (oauthScopes_.isEmpty()) { 1064 oauthScopes_ = other.oauthScopes_; 1065 bitField0_ = (bitField0_ & ~0x00000001); 1066 } else { 1067 ensureOauthScopesIsMutable(); 1068 oauthScopes_.addAll(other.oauthScopes_); 1069 } 1070 onChanged(); 1071 } 1072 if (!other.getServiceAccount().isEmpty()) { 1073 serviceAccount_ = other.serviceAccount_; 1074 bitField0_ |= 0x00000002; 1075 onChanged(); 1076 } 1077 if (other.hasUpgradeSettings()) { 1078 mergeUpgradeSettings(other.getUpgradeSettings()); 1079 } 1080 if (other.hasManagement()) { 1081 mergeManagement(other.getManagement()); 1082 } 1083 if (!other.getMinCpuPlatform().isEmpty()) { 1084 minCpuPlatform_ = other.minCpuPlatform_; 1085 bitField0_ |= 0x00000010; 1086 onChanged(); 1087 } 1088 if (other.getDiskSizeGb() != 0) { 1089 setDiskSizeGb(other.getDiskSizeGb()); 1090 } 1091 if (!other.getDiskType().isEmpty()) { 1092 diskType_ = other.diskType_; 1093 bitField0_ |= 0x00000040; 1094 onChanged(); 1095 } 1096 if (other.hasShieldedInstanceConfig()) { 1097 mergeShieldedInstanceConfig(other.getShieldedInstanceConfig()); 1098 } 1099 if (!other.getBootDiskKmsKey().isEmpty()) { 1100 bootDiskKmsKey_ = other.bootDiskKmsKey_; 1101 bitField0_ |= 0x00000100; 1102 onChanged(); 1103 } 1104 if (!other.getImageType().isEmpty()) { 1105 imageType_ = other.imageType_; 1106 bitField0_ |= 0x00000200; 1107 onChanged(); 1108 } 1109 this.mergeUnknownFields(other.getUnknownFields()); 1110 onChanged(); 1111 return this; 1112 } 1113 1114 @java.lang.Override isInitialized()1115 public final boolean isInitialized() { 1116 return true; 1117 } 1118 1119 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1120 public Builder mergeFrom( 1121 com.google.protobuf.CodedInputStream input, 1122 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1123 throws java.io.IOException { 1124 if (extensionRegistry == null) { 1125 throw new java.lang.NullPointerException(); 1126 } 1127 try { 1128 boolean done = false; 1129 while (!done) { 1130 int tag = input.readTag(); 1131 switch (tag) { 1132 case 0: 1133 done = true; 1134 break; 1135 case 10: 1136 { 1137 java.lang.String s = input.readStringRequireUtf8(); 1138 ensureOauthScopesIsMutable(); 1139 oauthScopes_.add(s); 1140 break; 1141 } // case 10 1142 case 18: 1143 { 1144 serviceAccount_ = input.readStringRequireUtf8(); 1145 bitField0_ |= 0x00000002; 1146 break; 1147 } // case 18 1148 case 26: 1149 { 1150 input.readMessage(getUpgradeSettingsFieldBuilder().getBuilder(), extensionRegistry); 1151 bitField0_ |= 0x00000004; 1152 break; 1153 } // case 26 1154 case 34: 1155 { 1156 input.readMessage(getManagementFieldBuilder().getBuilder(), extensionRegistry); 1157 bitField0_ |= 0x00000008; 1158 break; 1159 } // case 34 1160 case 42: 1161 { 1162 minCpuPlatform_ = input.readStringRequireUtf8(); 1163 bitField0_ |= 0x00000010; 1164 break; 1165 } // case 42 1166 case 48: 1167 { 1168 diskSizeGb_ = input.readInt32(); 1169 bitField0_ |= 0x00000020; 1170 break; 1171 } // case 48 1172 case 58: 1173 { 1174 diskType_ = input.readStringRequireUtf8(); 1175 bitField0_ |= 0x00000040; 1176 break; 1177 } // case 58 1178 case 66: 1179 { 1180 input.readMessage( 1181 getShieldedInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); 1182 bitField0_ |= 0x00000080; 1183 break; 1184 } // case 66 1185 case 74: 1186 { 1187 bootDiskKmsKey_ = input.readStringRequireUtf8(); 1188 bitField0_ |= 0x00000100; 1189 break; 1190 } // case 74 1191 case 82: 1192 { 1193 imageType_ = input.readStringRequireUtf8(); 1194 bitField0_ |= 0x00000200; 1195 break; 1196 } // case 82 1197 default: 1198 { 1199 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 1200 done = true; // was an endgroup tag 1201 } 1202 break; 1203 } // default: 1204 } // switch (tag) 1205 } // while (!done) 1206 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1207 throw e.unwrapIOException(); 1208 } finally { 1209 onChanged(); 1210 } // finally 1211 return this; 1212 } 1213 1214 private int bitField0_; 1215 1216 private com.google.protobuf.LazyStringList oauthScopes_ = 1217 com.google.protobuf.LazyStringArrayList.EMPTY; 1218 ensureOauthScopesIsMutable()1219 private void ensureOauthScopesIsMutable() { 1220 if (!((bitField0_ & 0x00000001) != 0)) { 1221 oauthScopes_ = new com.google.protobuf.LazyStringArrayList(oauthScopes_); 1222 bitField0_ |= 0x00000001; 1223 } 1224 } 1225 /** 1226 * 1227 * 1228 * <pre> 1229 * Scopes that are used by NAP when creating node pools. 1230 * </pre> 1231 * 1232 * <code>repeated string oauth_scopes = 1;</code> 1233 * 1234 * @return A list containing the oauthScopes. 1235 */ getOauthScopesList()1236 public com.google.protobuf.ProtocolStringList getOauthScopesList() { 1237 return oauthScopes_.getUnmodifiableView(); 1238 } 1239 /** 1240 * 1241 * 1242 * <pre> 1243 * Scopes that are used by NAP when creating node pools. 1244 * </pre> 1245 * 1246 * <code>repeated string oauth_scopes = 1;</code> 1247 * 1248 * @return The count of oauthScopes. 1249 */ getOauthScopesCount()1250 public int getOauthScopesCount() { 1251 return oauthScopes_.size(); 1252 } 1253 /** 1254 * 1255 * 1256 * <pre> 1257 * Scopes that are used by NAP when creating node pools. 1258 * </pre> 1259 * 1260 * <code>repeated string oauth_scopes = 1;</code> 1261 * 1262 * @param index The index of the element to return. 1263 * @return The oauthScopes at the given index. 1264 */ getOauthScopes(int index)1265 public java.lang.String getOauthScopes(int index) { 1266 return oauthScopes_.get(index); 1267 } 1268 /** 1269 * 1270 * 1271 * <pre> 1272 * Scopes that are used by NAP when creating node pools. 1273 * </pre> 1274 * 1275 * <code>repeated string oauth_scopes = 1;</code> 1276 * 1277 * @param index The index of the value to return. 1278 * @return The bytes of the oauthScopes at the given index. 1279 */ getOauthScopesBytes(int index)1280 public com.google.protobuf.ByteString getOauthScopesBytes(int index) { 1281 return oauthScopes_.getByteString(index); 1282 } 1283 /** 1284 * 1285 * 1286 * <pre> 1287 * Scopes that are used by NAP when creating node pools. 1288 * </pre> 1289 * 1290 * <code>repeated string oauth_scopes = 1;</code> 1291 * 1292 * @param index The index to set the value at. 1293 * @param value The oauthScopes to set. 1294 * @return This builder for chaining. 1295 */ setOauthScopes(int index, java.lang.String value)1296 public Builder setOauthScopes(int index, java.lang.String value) { 1297 if (value == null) { 1298 throw new NullPointerException(); 1299 } 1300 ensureOauthScopesIsMutable(); 1301 oauthScopes_.set(index, value); 1302 onChanged(); 1303 return this; 1304 } 1305 /** 1306 * 1307 * 1308 * <pre> 1309 * Scopes that are used by NAP when creating node pools. 1310 * </pre> 1311 * 1312 * <code>repeated string oauth_scopes = 1;</code> 1313 * 1314 * @param value The oauthScopes to add. 1315 * @return This builder for chaining. 1316 */ addOauthScopes(java.lang.String value)1317 public Builder addOauthScopes(java.lang.String value) { 1318 if (value == null) { 1319 throw new NullPointerException(); 1320 } 1321 ensureOauthScopesIsMutable(); 1322 oauthScopes_.add(value); 1323 onChanged(); 1324 return this; 1325 } 1326 /** 1327 * 1328 * 1329 * <pre> 1330 * Scopes that are used by NAP when creating node pools. 1331 * </pre> 1332 * 1333 * <code>repeated string oauth_scopes = 1;</code> 1334 * 1335 * @param values The oauthScopes to add. 1336 * @return This builder for chaining. 1337 */ addAllOauthScopes(java.lang.Iterable<java.lang.String> values)1338 public Builder addAllOauthScopes(java.lang.Iterable<java.lang.String> values) { 1339 ensureOauthScopesIsMutable(); 1340 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, oauthScopes_); 1341 onChanged(); 1342 return this; 1343 } 1344 /** 1345 * 1346 * 1347 * <pre> 1348 * Scopes that are used by NAP when creating node pools. 1349 * </pre> 1350 * 1351 * <code>repeated string oauth_scopes = 1;</code> 1352 * 1353 * @return This builder for chaining. 1354 */ clearOauthScopes()1355 public Builder clearOauthScopes() { 1356 oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; 1357 bitField0_ = (bitField0_ & ~0x00000001); 1358 onChanged(); 1359 return this; 1360 } 1361 /** 1362 * 1363 * 1364 * <pre> 1365 * Scopes that are used by NAP when creating node pools. 1366 * </pre> 1367 * 1368 * <code>repeated string oauth_scopes = 1;</code> 1369 * 1370 * @param value The bytes of the oauthScopes to add. 1371 * @return This builder for chaining. 1372 */ addOauthScopesBytes(com.google.protobuf.ByteString value)1373 public Builder addOauthScopesBytes(com.google.protobuf.ByteString value) { 1374 if (value == null) { 1375 throw new NullPointerException(); 1376 } 1377 checkByteStringIsUtf8(value); 1378 ensureOauthScopesIsMutable(); 1379 oauthScopes_.add(value); 1380 onChanged(); 1381 return this; 1382 } 1383 1384 private java.lang.Object serviceAccount_ = ""; 1385 /** 1386 * 1387 * 1388 * <pre> 1389 * The Google Cloud Platform Service Account to be used by the node VMs. 1390 * </pre> 1391 * 1392 * <code>string service_account = 2;</code> 1393 * 1394 * @return The serviceAccount. 1395 */ getServiceAccount()1396 public java.lang.String getServiceAccount() { 1397 java.lang.Object ref = serviceAccount_; 1398 if (!(ref instanceof java.lang.String)) { 1399 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1400 java.lang.String s = bs.toStringUtf8(); 1401 serviceAccount_ = s; 1402 return s; 1403 } else { 1404 return (java.lang.String) ref; 1405 } 1406 } 1407 /** 1408 * 1409 * 1410 * <pre> 1411 * The Google Cloud Platform Service Account to be used by the node VMs. 1412 * </pre> 1413 * 1414 * <code>string service_account = 2;</code> 1415 * 1416 * @return The bytes for serviceAccount. 1417 */ getServiceAccountBytes()1418 public com.google.protobuf.ByteString getServiceAccountBytes() { 1419 java.lang.Object ref = serviceAccount_; 1420 if (ref instanceof String) { 1421 com.google.protobuf.ByteString b = 1422 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1423 serviceAccount_ = b; 1424 return b; 1425 } else { 1426 return (com.google.protobuf.ByteString) ref; 1427 } 1428 } 1429 /** 1430 * 1431 * 1432 * <pre> 1433 * The Google Cloud Platform Service Account to be used by the node VMs. 1434 * </pre> 1435 * 1436 * <code>string service_account = 2;</code> 1437 * 1438 * @param value The serviceAccount to set. 1439 * @return This builder for chaining. 1440 */ setServiceAccount(java.lang.String value)1441 public Builder setServiceAccount(java.lang.String value) { 1442 if (value == null) { 1443 throw new NullPointerException(); 1444 } 1445 serviceAccount_ = value; 1446 bitField0_ |= 0x00000002; 1447 onChanged(); 1448 return this; 1449 } 1450 /** 1451 * 1452 * 1453 * <pre> 1454 * The Google Cloud Platform Service Account to be used by the node VMs. 1455 * </pre> 1456 * 1457 * <code>string service_account = 2;</code> 1458 * 1459 * @return This builder for chaining. 1460 */ clearServiceAccount()1461 public Builder clearServiceAccount() { 1462 serviceAccount_ = getDefaultInstance().getServiceAccount(); 1463 bitField0_ = (bitField0_ & ~0x00000002); 1464 onChanged(); 1465 return this; 1466 } 1467 /** 1468 * 1469 * 1470 * <pre> 1471 * The Google Cloud Platform Service Account to be used by the node VMs. 1472 * </pre> 1473 * 1474 * <code>string service_account = 2;</code> 1475 * 1476 * @param value The bytes for serviceAccount to set. 1477 * @return This builder for chaining. 1478 */ setServiceAccountBytes(com.google.protobuf.ByteString value)1479 public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { 1480 if (value == null) { 1481 throw new NullPointerException(); 1482 } 1483 checkByteStringIsUtf8(value); 1484 serviceAccount_ = value; 1485 bitField0_ |= 0x00000002; 1486 onChanged(); 1487 return this; 1488 } 1489 1490 private com.google.container.v1.NodePool.UpgradeSettings upgradeSettings_; 1491 private com.google.protobuf.SingleFieldBuilderV3< 1492 com.google.container.v1.NodePool.UpgradeSettings, 1493 com.google.container.v1.NodePool.UpgradeSettings.Builder, 1494 com.google.container.v1.NodePool.UpgradeSettingsOrBuilder> 1495 upgradeSettingsBuilder_; 1496 /** 1497 * 1498 * 1499 * <pre> 1500 * Specifies the upgrade settings for NAP created node pools 1501 * </pre> 1502 * 1503 * <code>.google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3;</code> 1504 * 1505 * @return Whether the upgradeSettings field is set. 1506 */ hasUpgradeSettings()1507 public boolean hasUpgradeSettings() { 1508 return ((bitField0_ & 0x00000004) != 0); 1509 } 1510 /** 1511 * 1512 * 1513 * <pre> 1514 * Specifies the upgrade settings for NAP created node pools 1515 * </pre> 1516 * 1517 * <code>.google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3;</code> 1518 * 1519 * @return The upgradeSettings. 1520 */ getUpgradeSettings()1521 public com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings() { 1522 if (upgradeSettingsBuilder_ == null) { 1523 return upgradeSettings_ == null 1524 ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() 1525 : upgradeSettings_; 1526 } else { 1527 return upgradeSettingsBuilder_.getMessage(); 1528 } 1529 } 1530 /** 1531 * 1532 * 1533 * <pre> 1534 * Specifies the upgrade settings for NAP created node pools 1535 * </pre> 1536 * 1537 * <code>.google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3;</code> 1538 */ setUpgradeSettings(com.google.container.v1.NodePool.UpgradeSettings value)1539 public Builder setUpgradeSettings(com.google.container.v1.NodePool.UpgradeSettings value) { 1540 if (upgradeSettingsBuilder_ == null) { 1541 if (value == null) { 1542 throw new NullPointerException(); 1543 } 1544 upgradeSettings_ = value; 1545 } else { 1546 upgradeSettingsBuilder_.setMessage(value); 1547 } 1548 bitField0_ |= 0x00000004; 1549 onChanged(); 1550 return this; 1551 } 1552 /** 1553 * 1554 * 1555 * <pre> 1556 * Specifies the upgrade settings for NAP created node pools 1557 * </pre> 1558 * 1559 * <code>.google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3;</code> 1560 */ setUpgradeSettings( com.google.container.v1.NodePool.UpgradeSettings.Builder builderForValue)1561 public Builder setUpgradeSettings( 1562 com.google.container.v1.NodePool.UpgradeSettings.Builder builderForValue) { 1563 if (upgradeSettingsBuilder_ == null) { 1564 upgradeSettings_ = builderForValue.build(); 1565 } else { 1566 upgradeSettingsBuilder_.setMessage(builderForValue.build()); 1567 } 1568 bitField0_ |= 0x00000004; 1569 onChanged(); 1570 return this; 1571 } 1572 /** 1573 * 1574 * 1575 * <pre> 1576 * Specifies the upgrade settings for NAP created node pools 1577 * </pre> 1578 * 1579 * <code>.google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3;</code> 1580 */ mergeUpgradeSettings(com.google.container.v1.NodePool.UpgradeSettings value)1581 public Builder mergeUpgradeSettings(com.google.container.v1.NodePool.UpgradeSettings value) { 1582 if (upgradeSettingsBuilder_ == null) { 1583 if (((bitField0_ & 0x00000004) != 0) 1584 && upgradeSettings_ != null 1585 && upgradeSettings_ 1586 != com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance()) { 1587 getUpgradeSettingsBuilder().mergeFrom(value); 1588 } else { 1589 upgradeSettings_ = value; 1590 } 1591 } else { 1592 upgradeSettingsBuilder_.mergeFrom(value); 1593 } 1594 bitField0_ |= 0x00000004; 1595 onChanged(); 1596 return this; 1597 } 1598 /** 1599 * 1600 * 1601 * <pre> 1602 * Specifies the upgrade settings for NAP created node pools 1603 * </pre> 1604 * 1605 * <code>.google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3;</code> 1606 */ clearUpgradeSettings()1607 public Builder clearUpgradeSettings() { 1608 bitField0_ = (bitField0_ & ~0x00000004); 1609 upgradeSettings_ = null; 1610 if (upgradeSettingsBuilder_ != null) { 1611 upgradeSettingsBuilder_.dispose(); 1612 upgradeSettingsBuilder_ = null; 1613 } 1614 onChanged(); 1615 return this; 1616 } 1617 /** 1618 * 1619 * 1620 * <pre> 1621 * Specifies the upgrade settings for NAP created node pools 1622 * </pre> 1623 * 1624 * <code>.google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3;</code> 1625 */ getUpgradeSettingsBuilder()1626 public com.google.container.v1.NodePool.UpgradeSettings.Builder getUpgradeSettingsBuilder() { 1627 bitField0_ |= 0x00000004; 1628 onChanged(); 1629 return getUpgradeSettingsFieldBuilder().getBuilder(); 1630 } 1631 /** 1632 * 1633 * 1634 * <pre> 1635 * Specifies the upgrade settings for NAP created node pools 1636 * </pre> 1637 * 1638 * <code>.google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3;</code> 1639 */ getUpgradeSettingsOrBuilder()1640 public com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder() { 1641 if (upgradeSettingsBuilder_ != null) { 1642 return upgradeSettingsBuilder_.getMessageOrBuilder(); 1643 } else { 1644 return upgradeSettings_ == null 1645 ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() 1646 : upgradeSettings_; 1647 } 1648 } 1649 /** 1650 * 1651 * 1652 * <pre> 1653 * Specifies the upgrade settings for NAP created node pools 1654 * </pre> 1655 * 1656 * <code>.google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3;</code> 1657 */ 1658 private com.google.protobuf.SingleFieldBuilderV3< 1659 com.google.container.v1.NodePool.UpgradeSettings, 1660 com.google.container.v1.NodePool.UpgradeSettings.Builder, 1661 com.google.container.v1.NodePool.UpgradeSettingsOrBuilder> getUpgradeSettingsFieldBuilder()1662 getUpgradeSettingsFieldBuilder() { 1663 if (upgradeSettingsBuilder_ == null) { 1664 upgradeSettingsBuilder_ = 1665 new com.google.protobuf.SingleFieldBuilderV3< 1666 com.google.container.v1.NodePool.UpgradeSettings, 1667 com.google.container.v1.NodePool.UpgradeSettings.Builder, 1668 com.google.container.v1.NodePool.UpgradeSettingsOrBuilder>( 1669 getUpgradeSettings(), getParentForChildren(), isClean()); 1670 upgradeSettings_ = null; 1671 } 1672 return upgradeSettingsBuilder_; 1673 } 1674 1675 private com.google.container.v1.NodeManagement management_; 1676 private com.google.protobuf.SingleFieldBuilderV3< 1677 com.google.container.v1.NodeManagement, 1678 com.google.container.v1.NodeManagement.Builder, 1679 com.google.container.v1.NodeManagementOrBuilder> 1680 managementBuilder_; 1681 /** 1682 * 1683 * 1684 * <pre> 1685 * Specifies the node management options for NAP created node-pools. 1686 * </pre> 1687 * 1688 * <code>.google.container.v1.NodeManagement management = 4;</code> 1689 * 1690 * @return Whether the management field is set. 1691 */ hasManagement()1692 public boolean hasManagement() { 1693 return ((bitField0_ & 0x00000008) != 0); 1694 } 1695 /** 1696 * 1697 * 1698 * <pre> 1699 * Specifies the node management options for NAP created node-pools. 1700 * </pre> 1701 * 1702 * <code>.google.container.v1.NodeManagement management = 4;</code> 1703 * 1704 * @return The management. 1705 */ getManagement()1706 public com.google.container.v1.NodeManagement getManagement() { 1707 if (managementBuilder_ == null) { 1708 return management_ == null 1709 ? com.google.container.v1.NodeManagement.getDefaultInstance() 1710 : management_; 1711 } else { 1712 return managementBuilder_.getMessage(); 1713 } 1714 } 1715 /** 1716 * 1717 * 1718 * <pre> 1719 * Specifies the node management options for NAP created node-pools. 1720 * </pre> 1721 * 1722 * <code>.google.container.v1.NodeManagement management = 4;</code> 1723 */ setManagement(com.google.container.v1.NodeManagement value)1724 public Builder setManagement(com.google.container.v1.NodeManagement value) { 1725 if (managementBuilder_ == null) { 1726 if (value == null) { 1727 throw new NullPointerException(); 1728 } 1729 management_ = value; 1730 } else { 1731 managementBuilder_.setMessage(value); 1732 } 1733 bitField0_ |= 0x00000008; 1734 onChanged(); 1735 return this; 1736 } 1737 /** 1738 * 1739 * 1740 * <pre> 1741 * Specifies the node management options for NAP created node-pools. 1742 * </pre> 1743 * 1744 * <code>.google.container.v1.NodeManagement management = 4;</code> 1745 */ setManagement(com.google.container.v1.NodeManagement.Builder builderForValue)1746 public Builder setManagement(com.google.container.v1.NodeManagement.Builder builderForValue) { 1747 if (managementBuilder_ == null) { 1748 management_ = builderForValue.build(); 1749 } else { 1750 managementBuilder_.setMessage(builderForValue.build()); 1751 } 1752 bitField0_ |= 0x00000008; 1753 onChanged(); 1754 return this; 1755 } 1756 /** 1757 * 1758 * 1759 * <pre> 1760 * Specifies the node management options for NAP created node-pools. 1761 * </pre> 1762 * 1763 * <code>.google.container.v1.NodeManagement management = 4;</code> 1764 */ mergeManagement(com.google.container.v1.NodeManagement value)1765 public Builder mergeManagement(com.google.container.v1.NodeManagement value) { 1766 if (managementBuilder_ == null) { 1767 if (((bitField0_ & 0x00000008) != 0) 1768 && management_ != null 1769 && management_ != com.google.container.v1.NodeManagement.getDefaultInstance()) { 1770 getManagementBuilder().mergeFrom(value); 1771 } else { 1772 management_ = value; 1773 } 1774 } else { 1775 managementBuilder_.mergeFrom(value); 1776 } 1777 bitField0_ |= 0x00000008; 1778 onChanged(); 1779 return this; 1780 } 1781 /** 1782 * 1783 * 1784 * <pre> 1785 * Specifies the node management options for NAP created node-pools. 1786 * </pre> 1787 * 1788 * <code>.google.container.v1.NodeManagement management = 4;</code> 1789 */ clearManagement()1790 public Builder clearManagement() { 1791 bitField0_ = (bitField0_ & ~0x00000008); 1792 management_ = null; 1793 if (managementBuilder_ != null) { 1794 managementBuilder_.dispose(); 1795 managementBuilder_ = null; 1796 } 1797 onChanged(); 1798 return this; 1799 } 1800 /** 1801 * 1802 * 1803 * <pre> 1804 * Specifies the node management options for NAP created node-pools. 1805 * </pre> 1806 * 1807 * <code>.google.container.v1.NodeManagement management = 4;</code> 1808 */ getManagementBuilder()1809 public com.google.container.v1.NodeManagement.Builder getManagementBuilder() { 1810 bitField0_ |= 0x00000008; 1811 onChanged(); 1812 return getManagementFieldBuilder().getBuilder(); 1813 } 1814 /** 1815 * 1816 * 1817 * <pre> 1818 * Specifies the node management options for NAP created node-pools. 1819 * </pre> 1820 * 1821 * <code>.google.container.v1.NodeManagement management = 4;</code> 1822 */ getManagementOrBuilder()1823 public com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder() { 1824 if (managementBuilder_ != null) { 1825 return managementBuilder_.getMessageOrBuilder(); 1826 } else { 1827 return management_ == null 1828 ? com.google.container.v1.NodeManagement.getDefaultInstance() 1829 : management_; 1830 } 1831 } 1832 /** 1833 * 1834 * 1835 * <pre> 1836 * Specifies the node management options for NAP created node-pools. 1837 * </pre> 1838 * 1839 * <code>.google.container.v1.NodeManagement management = 4;</code> 1840 */ 1841 private com.google.protobuf.SingleFieldBuilderV3< 1842 com.google.container.v1.NodeManagement, 1843 com.google.container.v1.NodeManagement.Builder, 1844 com.google.container.v1.NodeManagementOrBuilder> getManagementFieldBuilder()1845 getManagementFieldBuilder() { 1846 if (managementBuilder_ == null) { 1847 managementBuilder_ = 1848 new com.google.protobuf.SingleFieldBuilderV3< 1849 com.google.container.v1.NodeManagement, 1850 com.google.container.v1.NodeManagement.Builder, 1851 com.google.container.v1.NodeManagementOrBuilder>( 1852 getManagement(), getParentForChildren(), isClean()); 1853 management_ = null; 1854 } 1855 return managementBuilder_; 1856 } 1857 1858 private java.lang.Object minCpuPlatform_ = ""; 1859 /** 1860 * 1861 * 1862 * <pre> 1863 * Deprecated. Minimum CPU platform to be used for NAP created node pools. 1864 * The instance may be scheduled on the specified or newer CPU platform. 1865 * Applicable values are the friendly names of CPU platforms, such as 1866 * minCpuPlatform: Intel Haswell or 1867 * minCpuPlatform: Intel Sandy Bridge. For more 1868 * information, read [how to specify min CPU 1869 * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform). 1870 * This field is deprecated, min_cpu_platform should be specified using 1871 * `cloud.google.com/requested-min-cpu-platform` label selector on the pod. 1872 * To unset the min cpu platform field pass "automatic" 1873 * as field value. 1874 * </pre> 1875 * 1876 * <code>string min_cpu_platform = 5 [deprecated = true];</code> 1877 * 1878 * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is 1879 * deprecated. See google/container/v1/cluster_service.proto;l=3654 1880 * @return The minCpuPlatform. 1881 */ 1882 @java.lang.Deprecated getMinCpuPlatform()1883 public java.lang.String getMinCpuPlatform() { 1884 java.lang.Object ref = minCpuPlatform_; 1885 if (!(ref instanceof java.lang.String)) { 1886 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1887 java.lang.String s = bs.toStringUtf8(); 1888 minCpuPlatform_ = s; 1889 return s; 1890 } else { 1891 return (java.lang.String) ref; 1892 } 1893 } 1894 /** 1895 * 1896 * 1897 * <pre> 1898 * Deprecated. Minimum CPU platform to be used for NAP created node pools. 1899 * The instance may be scheduled on the specified or newer CPU platform. 1900 * Applicable values are the friendly names of CPU platforms, such as 1901 * minCpuPlatform: Intel Haswell or 1902 * minCpuPlatform: Intel Sandy Bridge. For more 1903 * information, read [how to specify min CPU 1904 * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform). 1905 * This field is deprecated, min_cpu_platform should be specified using 1906 * `cloud.google.com/requested-min-cpu-platform` label selector on the pod. 1907 * To unset the min cpu platform field pass "automatic" 1908 * as field value. 1909 * </pre> 1910 * 1911 * <code>string min_cpu_platform = 5 [deprecated = true];</code> 1912 * 1913 * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is 1914 * deprecated. See google/container/v1/cluster_service.proto;l=3654 1915 * @return The bytes for minCpuPlatform. 1916 */ 1917 @java.lang.Deprecated getMinCpuPlatformBytes()1918 public com.google.protobuf.ByteString getMinCpuPlatformBytes() { 1919 java.lang.Object ref = minCpuPlatform_; 1920 if (ref instanceof String) { 1921 com.google.protobuf.ByteString b = 1922 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1923 minCpuPlatform_ = b; 1924 return b; 1925 } else { 1926 return (com.google.protobuf.ByteString) ref; 1927 } 1928 } 1929 /** 1930 * 1931 * 1932 * <pre> 1933 * Deprecated. Minimum CPU platform to be used for NAP created node pools. 1934 * The instance may be scheduled on the specified or newer CPU platform. 1935 * Applicable values are the friendly names of CPU platforms, such as 1936 * minCpuPlatform: Intel Haswell or 1937 * minCpuPlatform: Intel Sandy Bridge. For more 1938 * information, read [how to specify min CPU 1939 * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform). 1940 * This field is deprecated, min_cpu_platform should be specified using 1941 * `cloud.google.com/requested-min-cpu-platform` label selector on the pod. 1942 * To unset the min cpu platform field pass "automatic" 1943 * as field value. 1944 * </pre> 1945 * 1946 * <code>string min_cpu_platform = 5 [deprecated = true];</code> 1947 * 1948 * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is 1949 * deprecated. See google/container/v1/cluster_service.proto;l=3654 1950 * @param value The minCpuPlatform to set. 1951 * @return This builder for chaining. 1952 */ 1953 @java.lang.Deprecated setMinCpuPlatform(java.lang.String value)1954 public Builder setMinCpuPlatform(java.lang.String value) { 1955 if (value == null) { 1956 throw new NullPointerException(); 1957 } 1958 minCpuPlatform_ = value; 1959 bitField0_ |= 0x00000010; 1960 onChanged(); 1961 return this; 1962 } 1963 /** 1964 * 1965 * 1966 * <pre> 1967 * Deprecated. Minimum CPU platform to be used for NAP created node pools. 1968 * The instance may be scheduled on the specified or newer CPU platform. 1969 * Applicable values are the friendly names of CPU platforms, such as 1970 * minCpuPlatform: Intel Haswell or 1971 * minCpuPlatform: Intel Sandy Bridge. For more 1972 * information, read [how to specify min CPU 1973 * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform). 1974 * This field is deprecated, min_cpu_platform should be specified using 1975 * `cloud.google.com/requested-min-cpu-platform` label selector on the pod. 1976 * To unset the min cpu platform field pass "automatic" 1977 * as field value. 1978 * </pre> 1979 * 1980 * <code>string min_cpu_platform = 5 [deprecated = true];</code> 1981 * 1982 * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is 1983 * deprecated. See google/container/v1/cluster_service.proto;l=3654 1984 * @return This builder for chaining. 1985 */ 1986 @java.lang.Deprecated clearMinCpuPlatform()1987 public Builder clearMinCpuPlatform() { 1988 minCpuPlatform_ = getDefaultInstance().getMinCpuPlatform(); 1989 bitField0_ = (bitField0_ & ~0x00000010); 1990 onChanged(); 1991 return this; 1992 } 1993 /** 1994 * 1995 * 1996 * <pre> 1997 * Deprecated. Minimum CPU platform to be used for NAP created node pools. 1998 * The instance may be scheduled on the specified or newer CPU platform. 1999 * Applicable values are the friendly names of CPU platforms, such as 2000 * minCpuPlatform: Intel Haswell or 2001 * minCpuPlatform: Intel Sandy Bridge. For more 2002 * information, read [how to specify min CPU 2003 * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform). 2004 * This field is deprecated, min_cpu_platform should be specified using 2005 * `cloud.google.com/requested-min-cpu-platform` label selector on the pod. 2006 * To unset the min cpu platform field pass "automatic" 2007 * as field value. 2008 * </pre> 2009 * 2010 * <code>string min_cpu_platform = 5 [deprecated = true];</code> 2011 * 2012 * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is 2013 * deprecated. See google/container/v1/cluster_service.proto;l=3654 2014 * @param value The bytes for minCpuPlatform to set. 2015 * @return This builder for chaining. 2016 */ 2017 @java.lang.Deprecated setMinCpuPlatformBytes(com.google.protobuf.ByteString value)2018 public Builder setMinCpuPlatformBytes(com.google.protobuf.ByteString value) { 2019 if (value == null) { 2020 throw new NullPointerException(); 2021 } 2022 checkByteStringIsUtf8(value); 2023 minCpuPlatform_ = value; 2024 bitField0_ |= 0x00000010; 2025 onChanged(); 2026 return this; 2027 } 2028 2029 private int diskSizeGb_; 2030 /** 2031 * 2032 * 2033 * <pre> 2034 * Size of the disk attached to each node, specified in GB. 2035 * The smallest allowed disk size is 10GB. 2036 * If unspecified, the default disk size is 100GB. 2037 * </pre> 2038 * 2039 * <code>int32 disk_size_gb = 6;</code> 2040 * 2041 * @return The diskSizeGb. 2042 */ 2043 @java.lang.Override getDiskSizeGb()2044 public int getDiskSizeGb() { 2045 return diskSizeGb_; 2046 } 2047 /** 2048 * 2049 * 2050 * <pre> 2051 * Size of the disk attached to each node, specified in GB. 2052 * The smallest allowed disk size is 10GB. 2053 * If unspecified, the default disk size is 100GB. 2054 * </pre> 2055 * 2056 * <code>int32 disk_size_gb = 6;</code> 2057 * 2058 * @param value The diskSizeGb to set. 2059 * @return This builder for chaining. 2060 */ setDiskSizeGb(int value)2061 public Builder setDiskSizeGb(int value) { 2062 2063 diskSizeGb_ = value; 2064 bitField0_ |= 0x00000020; 2065 onChanged(); 2066 return this; 2067 } 2068 /** 2069 * 2070 * 2071 * <pre> 2072 * Size of the disk attached to each node, specified in GB. 2073 * The smallest allowed disk size is 10GB. 2074 * If unspecified, the default disk size is 100GB. 2075 * </pre> 2076 * 2077 * <code>int32 disk_size_gb = 6;</code> 2078 * 2079 * @return This builder for chaining. 2080 */ clearDiskSizeGb()2081 public Builder clearDiskSizeGb() { 2082 bitField0_ = (bitField0_ & ~0x00000020); 2083 diskSizeGb_ = 0; 2084 onChanged(); 2085 return this; 2086 } 2087 2088 private java.lang.Object diskType_ = ""; 2089 /** 2090 * 2091 * 2092 * <pre> 2093 * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or 2094 * 'pd-balanced') 2095 * If unspecified, the default disk type is 'pd-standard' 2096 * </pre> 2097 * 2098 * <code>string disk_type = 7;</code> 2099 * 2100 * @return The diskType. 2101 */ getDiskType()2102 public java.lang.String getDiskType() { 2103 java.lang.Object ref = diskType_; 2104 if (!(ref instanceof java.lang.String)) { 2105 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2106 java.lang.String s = bs.toStringUtf8(); 2107 diskType_ = s; 2108 return s; 2109 } else { 2110 return (java.lang.String) ref; 2111 } 2112 } 2113 /** 2114 * 2115 * 2116 * <pre> 2117 * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or 2118 * 'pd-balanced') 2119 * If unspecified, the default disk type is 'pd-standard' 2120 * </pre> 2121 * 2122 * <code>string disk_type = 7;</code> 2123 * 2124 * @return The bytes for diskType. 2125 */ getDiskTypeBytes()2126 public com.google.protobuf.ByteString getDiskTypeBytes() { 2127 java.lang.Object ref = diskType_; 2128 if (ref instanceof String) { 2129 com.google.protobuf.ByteString b = 2130 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2131 diskType_ = b; 2132 return b; 2133 } else { 2134 return (com.google.protobuf.ByteString) ref; 2135 } 2136 } 2137 /** 2138 * 2139 * 2140 * <pre> 2141 * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or 2142 * 'pd-balanced') 2143 * If unspecified, the default disk type is 'pd-standard' 2144 * </pre> 2145 * 2146 * <code>string disk_type = 7;</code> 2147 * 2148 * @param value The diskType to set. 2149 * @return This builder for chaining. 2150 */ setDiskType(java.lang.String value)2151 public Builder setDiskType(java.lang.String value) { 2152 if (value == null) { 2153 throw new NullPointerException(); 2154 } 2155 diskType_ = value; 2156 bitField0_ |= 0x00000040; 2157 onChanged(); 2158 return this; 2159 } 2160 /** 2161 * 2162 * 2163 * <pre> 2164 * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or 2165 * 'pd-balanced') 2166 * If unspecified, the default disk type is 'pd-standard' 2167 * </pre> 2168 * 2169 * <code>string disk_type = 7;</code> 2170 * 2171 * @return This builder for chaining. 2172 */ clearDiskType()2173 public Builder clearDiskType() { 2174 diskType_ = getDefaultInstance().getDiskType(); 2175 bitField0_ = (bitField0_ & ~0x00000040); 2176 onChanged(); 2177 return this; 2178 } 2179 /** 2180 * 2181 * 2182 * <pre> 2183 * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or 2184 * 'pd-balanced') 2185 * If unspecified, the default disk type is 'pd-standard' 2186 * </pre> 2187 * 2188 * <code>string disk_type = 7;</code> 2189 * 2190 * @param value The bytes for diskType to set. 2191 * @return This builder for chaining. 2192 */ setDiskTypeBytes(com.google.protobuf.ByteString value)2193 public Builder setDiskTypeBytes(com.google.protobuf.ByteString value) { 2194 if (value == null) { 2195 throw new NullPointerException(); 2196 } 2197 checkByteStringIsUtf8(value); 2198 diskType_ = value; 2199 bitField0_ |= 0x00000040; 2200 onChanged(); 2201 return this; 2202 } 2203 2204 private com.google.container.v1.ShieldedInstanceConfig shieldedInstanceConfig_; 2205 private com.google.protobuf.SingleFieldBuilderV3< 2206 com.google.container.v1.ShieldedInstanceConfig, 2207 com.google.container.v1.ShieldedInstanceConfig.Builder, 2208 com.google.container.v1.ShieldedInstanceConfigOrBuilder> 2209 shieldedInstanceConfigBuilder_; 2210 /** 2211 * 2212 * 2213 * <pre> 2214 * Shielded Instance options. 2215 * </pre> 2216 * 2217 * <code>.google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8;</code> 2218 * 2219 * @return Whether the shieldedInstanceConfig field is set. 2220 */ hasShieldedInstanceConfig()2221 public boolean hasShieldedInstanceConfig() { 2222 return ((bitField0_ & 0x00000080) != 0); 2223 } 2224 /** 2225 * 2226 * 2227 * <pre> 2228 * Shielded Instance options. 2229 * </pre> 2230 * 2231 * <code>.google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8;</code> 2232 * 2233 * @return The shieldedInstanceConfig. 2234 */ getShieldedInstanceConfig()2235 public com.google.container.v1.ShieldedInstanceConfig getShieldedInstanceConfig() { 2236 if (shieldedInstanceConfigBuilder_ == null) { 2237 return shieldedInstanceConfig_ == null 2238 ? com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance() 2239 : shieldedInstanceConfig_; 2240 } else { 2241 return shieldedInstanceConfigBuilder_.getMessage(); 2242 } 2243 } 2244 /** 2245 * 2246 * 2247 * <pre> 2248 * Shielded Instance options. 2249 * </pre> 2250 * 2251 * <code>.google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8;</code> 2252 */ setShieldedInstanceConfig(com.google.container.v1.ShieldedInstanceConfig value)2253 public Builder setShieldedInstanceConfig(com.google.container.v1.ShieldedInstanceConfig value) { 2254 if (shieldedInstanceConfigBuilder_ == null) { 2255 if (value == null) { 2256 throw new NullPointerException(); 2257 } 2258 shieldedInstanceConfig_ = value; 2259 } else { 2260 shieldedInstanceConfigBuilder_.setMessage(value); 2261 } 2262 bitField0_ |= 0x00000080; 2263 onChanged(); 2264 return this; 2265 } 2266 /** 2267 * 2268 * 2269 * <pre> 2270 * Shielded Instance options. 2271 * </pre> 2272 * 2273 * <code>.google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8;</code> 2274 */ setShieldedInstanceConfig( com.google.container.v1.ShieldedInstanceConfig.Builder builderForValue)2275 public Builder setShieldedInstanceConfig( 2276 com.google.container.v1.ShieldedInstanceConfig.Builder builderForValue) { 2277 if (shieldedInstanceConfigBuilder_ == null) { 2278 shieldedInstanceConfig_ = builderForValue.build(); 2279 } else { 2280 shieldedInstanceConfigBuilder_.setMessage(builderForValue.build()); 2281 } 2282 bitField0_ |= 0x00000080; 2283 onChanged(); 2284 return this; 2285 } 2286 /** 2287 * 2288 * 2289 * <pre> 2290 * Shielded Instance options. 2291 * </pre> 2292 * 2293 * <code>.google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8;</code> 2294 */ mergeShieldedInstanceConfig( com.google.container.v1.ShieldedInstanceConfig value)2295 public Builder mergeShieldedInstanceConfig( 2296 com.google.container.v1.ShieldedInstanceConfig value) { 2297 if (shieldedInstanceConfigBuilder_ == null) { 2298 if (((bitField0_ & 0x00000080) != 0) 2299 && shieldedInstanceConfig_ != null 2300 && shieldedInstanceConfig_ 2301 != com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance()) { 2302 getShieldedInstanceConfigBuilder().mergeFrom(value); 2303 } else { 2304 shieldedInstanceConfig_ = value; 2305 } 2306 } else { 2307 shieldedInstanceConfigBuilder_.mergeFrom(value); 2308 } 2309 bitField0_ |= 0x00000080; 2310 onChanged(); 2311 return this; 2312 } 2313 /** 2314 * 2315 * 2316 * <pre> 2317 * Shielded Instance options. 2318 * </pre> 2319 * 2320 * <code>.google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8;</code> 2321 */ clearShieldedInstanceConfig()2322 public Builder clearShieldedInstanceConfig() { 2323 bitField0_ = (bitField0_ & ~0x00000080); 2324 shieldedInstanceConfig_ = null; 2325 if (shieldedInstanceConfigBuilder_ != null) { 2326 shieldedInstanceConfigBuilder_.dispose(); 2327 shieldedInstanceConfigBuilder_ = null; 2328 } 2329 onChanged(); 2330 return this; 2331 } 2332 /** 2333 * 2334 * 2335 * <pre> 2336 * Shielded Instance options. 2337 * </pre> 2338 * 2339 * <code>.google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8;</code> 2340 */ 2341 public com.google.container.v1.ShieldedInstanceConfig.Builder getShieldedInstanceConfigBuilder()2342 getShieldedInstanceConfigBuilder() { 2343 bitField0_ |= 0x00000080; 2344 onChanged(); 2345 return getShieldedInstanceConfigFieldBuilder().getBuilder(); 2346 } 2347 /** 2348 * 2349 * 2350 * <pre> 2351 * Shielded Instance options. 2352 * </pre> 2353 * 2354 * <code>.google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8;</code> 2355 */ 2356 public com.google.container.v1.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder()2357 getShieldedInstanceConfigOrBuilder() { 2358 if (shieldedInstanceConfigBuilder_ != null) { 2359 return shieldedInstanceConfigBuilder_.getMessageOrBuilder(); 2360 } else { 2361 return shieldedInstanceConfig_ == null 2362 ? com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance() 2363 : shieldedInstanceConfig_; 2364 } 2365 } 2366 /** 2367 * 2368 * 2369 * <pre> 2370 * Shielded Instance options. 2371 * </pre> 2372 * 2373 * <code>.google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8;</code> 2374 */ 2375 private com.google.protobuf.SingleFieldBuilderV3< 2376 com.google.container.v1.ShieldedInstanceConfig, 2377 com.google.container.v1.ShieldedInstanceConfig.Builder, 2378 com.google.container.v1.ShieldedInstanceConfigOrBuilder> getShieldedInstanceConfigFieldBuilder()2379 getShieldedInstanceConfigFieldBuilder() { 2380 if (shieldedInstanceConfigBuilder_ == null) { 2381 shieldedInstanceConfigBuilder_ = 2382 new com.google.protobuf.SingleFieldBuilderV3< 2383 com.google.container.v1.ShieldedInstanceConfig, 2384 com.google.container.v1.ShieldedInstanceConfig.Builder, 2385 com.google.container.v1.ShieldedInstanceConfigOrBuilder>( 2386 getShieldedInstanceConfig(), getParentForChildren(), isClean()); 2387 shieldedInstanceConfig_ = null; 2388 } 2389 return shieldedInstanceConfigBuilder_; 2390 } 2391 2392 private java.lang.Object bootDiskKmsKey_ = ""; 2393 /** 2394 * 2395 * 2396 * <pre> 2397 * The Customer Managed Encryption Key used to encrypt the boot disk attached 2398 * to each node in the node pool. This should be of the form 2399 * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. 2400 * For more information about protecting resources with Cloud KMS Keys please 2401 * see: 2402 * https://cloud.google.com/compute/docs/disks/customer-managed-encryption 2403 * </pre> 2404 * 2405 * <code>string boot_disk_kms_key = 9;</code> 2406 * 2407 * @return The bootDiskKmsKey. 2408 */ getBootDiskKmsKey()2409 public java.lang.String getBootDiskKmsKey() { 2410 java.lang.Object ref = bootDiskKmsKey_; 2411 if (!(ref instanceof java.lang.String)) { 2412 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2413 java.lang.String s = bs.toStringUtf8(); 2414 bootDiskKmsKey_ = s; 2415 return s; 2416 } else { 2417 return (java.lang.String) ref; 2418 } 2419 } 2420 /** 2421 * 2422 * 2423 * <pre> 2424 * The Customer Managed Encryption Key used to encrypt the boot disk attached 2425 * to each node in the node pool. This should be of the form 2426 * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. 2427 * For more information about protecting resources with Cloud KMS Keys please 2428 * see: 2429 * https://cloud.google.com/compute/docs/disks/customer-managed-encryption 2430 * </pre> 2431 * 2432 * <code>string boot_disk_kms_key = 9;</code> 2433 * 2434 * @return The bytes for bootDiskKmsKey. 2435 */ getBootDiskKmsKeyBytes()2436 public com.google.protobuf.ByteString getBootDiskKmsKeyBytes() { 2437 java.lang.Object ref = bootDiskKmsKey_; 2438 if (ref instanceof String) { 2439 com.google.protobuf.ByteString b = 2440 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2441 bootDiskKmsKey_ = b; 2442 return b; 2443 } else { 2444 return (com.google.protobuf.ByteString) ref; 2445 } 2446 } 2447 /** 2448 * 2449 * 2450 * <pre> 2451 * The Customer Managed Encryption Key used to encrypt the boot disk attached 2452 * to each node in the node pool. This should be of the form 2453 * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. 2454 * For more information about protecting resources with Cloud KMS Keys please 2455 * see: 2456 * https://cloud.google.com/compute/docs/disks/customer-managed-encryption 2457 * </pre> 2458 * 2459 * <code>string boot_disk_kms_key = 9;</code> 2460 * 2461 * @param value The bootDiskKmsKey to set. 2462 * @return This builder for chaining. 2463 */ setBootDiskKmsKey(java.lang.String value)2464 public Builder setBootDiskKmsKey(java.lang.String value) { 2465 if (value == null) { 2466 throw new NullPointerException(); 2467 } 2468 bootDiskKmsKey_ = value; 2469 bitField0_ |= 0x00000100; 2470 onChanged(); 2471 return this; 2472 } 2473 /** 2474 * 2475 * 2476 * <pre> 2477 * The Customer Managed Encryption Key used to encrypt the boot disk attached 2478 * to each node in the node pool. This should be of the form 2479 * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. 2480 * For more information about protecting resources with Cloud KMS Keys please 2481 * see: 2482 * https://cloud.google.com/compute/docs/disks/customer-managed-encryption 2483 * </pre> 2484 * 2485 * <code>string boot_disk_kms_key = 9;</code> 2486 * 2487 * @return This builder for chaining. 2488 */ clearBootDiskKmsKey()2489 public Builder clearBootDiskKmsKey() { 2490 bootDiskKmsKey_ = getDefaultInstance().getBootDiskKmsKey(); 2491 bitField0_ = (bitField0_ & ~0x00000100); 2492 onChanged(); 2493 return this; 2494 } 2495 /** 2496 * 2497 * 2498 * <pre> 2499 * The Customer Managed Encryption Key used to encrypt the boot disk attached 2500 * to each node in the node pool. This should be of the form 2501 * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. 2502 * For more information about protecting resources with Cloud KMS Keys please 2503 * see: 2504 * https://cloud.google.com/compute/docs/disks/customer-managed-encryption 2505 * </pre> 2506 * 2507 * <code>string boot_disk_kms_key = 9;</code> 2508 * 2509 * @param value The bytes for bootDiskKmsKey to set. 2510 * @return This builder for chaining. 2511 */ setBootDiskKmsKeyBytes(com.google.protobuf.ByteString value)2512 public Builder setBootDiskKmsKeyBytes(com.google.protobuf.ByteString value) { 2513 if (value == null) { 2514 throw new NullPointerException(); 2515 } 2516 checkByteStringIsUtf8(value); 2517 bootDiskKmsKey_ = value; 2518 bitField0_ |= 0x00000100; 2519 onChanged(); 2520 return this; 2521 } 2522 2523 private java.lang.Object imageType_ = ""; 2524 /** 2525 * 2526 * 2527 * <pre> 2528 * The image type to use for NAP created node. Please see 2529 * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for 2530 * available image types. 2531 * </pre> 2532 * 2533 * <code>string image_type = 10;</code> 2534 * 2535 * @return The imageType. 2536 */ getImageType()2537 public java.lang.String getImageType() { 2538 java.lang.Object ref = imageType_; 2539 if (!(ref instanceof java.lang.String)) { 2540 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2541 java.lang.String s = bs.toStringUtf8(); 2542 imageType_ = s; 2543 return s; 2544 } else { 2545 return (java.lang.String) ref; 2546 } 2547 } 2548 /** 2549 * 2550 * 2551 * <pre> 2552 * The image type to use for NAP created node. Please see 2553 * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for 2554 * available image types. 2555 * </pre> 2556 * 2557 * <code>string image_type = 10;</code> 2558 * 2559 * @return The bytes for imageType. 2560 */ getImageTypeBytes()2561 public com.google.protobuf.ByteString getImageTypeBytes() { 2562 java.lang.Object ref = imageType_; 2563 if (ref instanceof String) { 2564 com.google.protobuf.ByteString b = 2565 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2566 imageType_ = b; 2567 return b; 2568 } else { 2569 return (com.google.protobuf.ByteString) ref; 2570 } 2571 } 2572 /** 2573 * 2574 * 2575 * <pre> 2576 * The image type to use for NAP created node. Please see 2577 * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for 2578 * available image types. 2579 * </pre> 2580 * 2581 * <code>string image_type = 10;</code> 2582 * 2583 * @param value The imageType to set. 2584 * @return This builder for chaining. 2585 */ setImageType(java.lang.String value)2586 public Builder setImageType(java.lang.String value) { 2587 if (value == null) { 2588 throw new NullPointerException(); 2589 } 2590 imageType_ = value; 2591 bitField0_ |= 0x00000200; 2592 onChanged(); 2593 return this; 2594 } 2595 /** 2596 * 2597 * 2598 * <pre> 2599 * The image type to use for NAP created node. Please see 2600 * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for 2601 * available image types. 2602 * </pre> 2603 * 2604 * <code>string image_type = 10;</code> 2605 * 2606 * @return This builder for chaining. 2607 */ clearImageType()2608 public Builder clearImageType() { 2609 imageType_ = getDefaultInstance().getImageType(); 2610 bitField0_ = (bitField0_ & ~0x00000200); 2611 onChanged(); 2612 return this; 2613 } 2614 /** 2615 * 2616 * 2617 * <pre> 2618 * The image type to use for NAP created node. Please see 2619 * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for 2620 * available image types. 2621 * </pre> 2622 * 2623 * <code>string image_type = 10;</code> 2624 * 2625 * @param value The bytes for imageType to set. 2626 * @return This builder for chaining. 2627 */ setImageTypeBytes(com.google.protobuf.ByteString value)2628 public Builder setImageTypeBytes(com.google.protobuf.ByteString value) { 2629 if (value == null) { 2630 throw new NullPointerException(); 2631 } 2632 checkByteStringIsUtf8(value); 2633 imageType_ = value; 2634 bitField0_ |= 0x00000200; 2635 onChanged(); 2636 return this; 2637 } 2638 2639 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)2640 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 2641 return super.setUnknownFields(unknownFields); 2642 } 2643 2644 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2645 public final Builder mergeUnknownFields( 2646 final com.google.protobuf.UnknownFieldSet unknownFields) { 2647 return super.mergeUnknownFields(unknownFields); 2648 } 2649 2650 // @@protoc_insertion_point(builder_scope:google.container.v1.AutoprovisioningNodePoolDefaults) 2651 } 2652 2653 // @@protoc_insertion_point(class_scope:google.container.v1.AutoprovisioningNodePoolDefaults) 2654 private static final com.google.container.v1.AutoprovisioningNodePoolDefaults DEFAULT_INSTANCE; 2655 2656 static { 2657 DEFAULT_INSTANCE = new com.google.container.v1.AutoprovisioningNodePoolDefaults(); 2658 } 2659 getDefaultInstance()2660 public static com.google.container.v1.AutoprovisioningNodePoolDefaults getDefaultInstance() { 2661 return DEFAULT_INSTANCE; 2662 } 2663 2664 private static final com.google.protobuf.Parser<AutoprovisioningNodePoolDefaults> PARSER = 2665 new com.google.protobuf.AbstractParser<AutoprovisioningNodePoolDefaults>() { 2666 @java.lang.Override 2667 public AutoprovisioningNodePoolDefaults parsePartialFrom( 2668 com.google.protobuf.CodedInputStream input, 2669 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2670 throws com.google.protobuf.InvalidProtocolBufferException { 2671 Builder builder = newBuilder(); 2672 try { 2673 builder.mergeFrom(input, extensionRegistry); 2674 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2675 throw e.setUnfinishedMessage(builder.buildPartial()); 2676 } catch (com.google.protobuf.UninitializedMessageException e) { 2677 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 2678 } catch (java.io.IOException e) { 2679 throw new com.google.protobuf.InvalidProtocolBufferException(e) 2680 .setUnfinishedMessage(builder.buildPartial()); 2681 } 2682 return builder.buildPartial(); 2683 } 2684 }; 2685 parser()2686 public static com.google.protobuf.Parser<AutoprovisioningNodePoolDefaults> parser() { 2687 return PARSER; 2688 } 2689 2690 @java.lang.Override getParserForType()2691 public com.google.protobuf.Parser<AutoprovisioningNodePoolDefaults> getParserForType() { 2692 return PARSER; 2693 } 2694 2695 @java.lang.Override getDefaultInstanceForType()2696 public com.google.container.v1.AutoprovisioningNodePoolDefaults getDefaultInstanceForType() { 2697 return DEFAULT_INSTANCE; 2698 } 2699 } 2700