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