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