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 * A public advertised prefix represents an aggregated IP prefix or netblock which customers bring to cloud. The IP prefix is a single unit of route advertisement and is announced globally to the internet. 26 * </pre> 27 * 28 * Protobuf type {@code google.cloud.compute.v1.PublicAdvertisedPrefix} 29 */ 30 public final class PublicAdvertisedPrefix extends com.google.protobuf.GeneratedMessageV3 31 implements 32 // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.PublicAdvertisedPrefix) 33 PublicAdvertisedPrefixOrBuilder { 34 private static final long serialVersionUID = 0L; 35 // Use PublicAdvertisedPrefix.newBuilder() to construct. PublicAdvertisedPrefix(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36 private PublicAdvertisedPrefix(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 37 super(builder); 38 } 39 PublicAdvertisedPrefix()40 private PublicAdvertisedPrefix() { 41 creationTimestamp_ = ""; 42 description_ = ""; 43 dnsVerificationIp_ = ""; 44 fingerprint_ = ""; 45 ipCidrRange_ = ""; 46 kind_ = ""; 47 name_ = ""; 48 publicDelegatedPrefixs_ = java.util.Collections.emptyList(); 49 selfLink_ = ""; 50 sharedSecret_ = ""; 51 status_ = ""; 52 } 53 54 @java.lang.Override 55 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)56 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 57 return new PublicAdvertisedPrefix(); 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_PublicAdvertisedPrefix_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_PublicAdvertisedPrefix_fieldAccessorTable 75 .ensureFieldAccessorsInitialized( 76 com.google.cloud.compute.v1.PublicAdvertisedPrefix.class, 77 com.google.cloud.compute.v1.PublicAdvertisedPrefix.Builder.class); 78 } 79 80 /** 81 * 82 * 83 * <pre> 84 * The status of the public advertised prefix. Possible values include: - `INITIAL`: RPKI validation is complete. - `PTR_CONFIGURED`: User has configured the PTR. - `VALIDATED`: Reverse DNS lookup is successful. - `REVERSE_DNS_LOOKUP_FAILED`: Reverse DNS lookup failed. - `PREFIX_CONFIGURATION_IN_PROGRESS`: The prefix is being configured. - `PREFIX_CONFIGURATION_COMPLETE`: The prefix is fully configured. - `PREFIX_REMOVAL_IN_PROGRESS`: The prefix is being removed. 85 * </pre> 86 * 87 * Protobuf enum {@code google.cloud.compute.v1.PublicAdvertisedPrefix.Status} 88 */ 89 public enum Status 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_STATUS = 0;</code> 98 */ 99 UNDEFINED_STATUS(0), 100 /** 101 * 102 * 103 * <pre> 104 * RPKI validation is complete. 105 * </pre> 106 * 107 * <code>INITIAL = 518841124;</code> 108 */ 109 INITIAL(518841124), 110 /** 111 * 112 * 113 * <pre> 114 * The prefix is fully configured. 115 * </pre> 116 * 117 * <code>PREFIX_CONFIGURATION_COMPLETE = 480889551;</code> 118 */ 119 PREFIX_CONFIGURATION_COMPLETE(480889551), 120 /** 121 * 122 * 123 * <pre> 124 * The prefix is being configured. 125 * </pre> 126 * 127 * <code>PREFIX_CONFIGURATION_IN_PROGRESS = 378550961;</code> 128 */ 129 PREFIX_CONFIGURATION_IN_PROGRESS(378550961), 130 /** 131 * 132 * 133 * <pre> 134 * The prefix is being removed. 135 * </pre> 136 * 137 * <code>PREFIX_REMOVAL_IN_PROGRESS = 284375783;</code> 138 */ 139 PREFIX_REMOVAL_IN_PROGRESS(284375783), 140 /** 141 * 142 * 143 * <pre> 144 * User has configured the PTR. 145 * </pre> 146 * 147 * <code>PTR_CONFIGURED = 513497167;</code> 148 */ 149 PTR_CONFIGURED(513497167), 150 /** 151 * 152 * 153 * <pre> 154 * Reverse DNS lookup failed. 155 * </pre> 156 * 157 * <code>REVERSE_DNS_LOOKUP_FAILED = 295755183;</code> 158 */ 159 REVERSE_DNS_LOOKUP_FAILED(295755183), 160 /** 161 * 162 * 163 * <pre> 164 * Reverse DNS lookup is successful. 165 * </pre> 166 * 167 * <code>VALIDATED = 66197998;</code> 168 */ 169 VALIDATED(66197998), 170 UNRECOGNIZED(-1), 171 ; 172 173 /** 174 * 175 * 176 * <pre> 177 * A value indicating that the enum field is not set. 178 * </pre> 179 * 180 * <code>UNDEFINED_STATUS = 0;</code> 181 */ 182 public static final int UNDEFINED_STATUS_VALUE = 0; 183 /** 184 * 185 * 186 * <pre> 187 * RPKI validation is complete. 188 * </pre> 189 * 190 * <code>INITIAL = 518841124;</code> 191 */ 192 public static final int INITIAL_VALUE = 518841124; 193 /** 194 * 195 * 196 * <pre> 197 * The prefix is fully configured. 198 * </pre> 199 * 200 * <code>PREFIX_CONFIGURATION_COMPLETE = 480889551;</code> 201 */ 202 public static final int PREFIX_CONFIGURATION_COMPLETE_VALUE = 480889551; 203 /** 204 * 205 * 206 * <pre> 207 * The prefix is being configured. 208 * </pre> 209 * 210 * <code>PREFIX_CONFIGURATION_IN_PROGRESS = 378550961;</code> 211 */ 212 public static final int PREFIX_CONFIGURATION_IN_PROGRESS_VALUE = 378550961; 213 /** 214 * 215 * 216 * <pre> 217 * The prefix is being removed. 218 * </pre> 219 * 220 * <code>PREFIX_REMOVAL_IN_PROGRESS = 284375783;</code> 221 */ 222 public static final int PREFIX_REMOVAL_IN_PROGRESS_VALUE = 284375783; 223 /** 224 * 225 * 226 * <pre> 227 * User has configured the PTR. 228 * </pre> 229 * 230 * <code>PTR_CONFIGURED = 513497167;</code> 231 */ 232 public static final int PTR_CONFIGURED_VALUE = 513497167; 233 /** 234 * 235 * 236 * <pre> 237 * Reverse DNS lookup failed. 238 * </pre> 239 * 240 * <code>REVERSE_DNS_LOOKUP_FAILED = 295755183;</code> 241 */ 242 public static final int REVERSE_DNS_LOOKUP_FAILED_VALUE = 295755183; 243 /** 244 * 245 * 246 * <pre> 247 * Reverse DNS lookup is successful. 248 * </pre> 249 * 250 * <code>VALIDATED = 66197998;</code> 251 */ 252 public static final int VALIDATED_VALUE = 66197998; 253 getNumber()254 public final int getNumber() { 255 if (this == UNRECOGNIZED) { 256 throw new java.lang.IllegalArgumentException( 257 "Can't get the number of an unknown enum value."); 258 } 259 return value; 260 } 261 262 /** 263 * @param value The numeric wire value of the corresponding enum entry. 264 * @return The enum associated with the given numeric wire value. 265 * @deprecated Use {@link #forNumber(int)} instead. 266 */ 267 @java.lang.Deprecated valueOf(int value)268 public static Status valueOf(int value) { 269 return forNumber(value); 270 } 271 272 /** 273 * @param value The numeric wire value of the corresponding enum entry. 274 * @return The enum associated with the given numeric wire value. 275 */ forNumber(int value)276 public static Status forNumber(int value) { 277 switch (value) { 278 case 0: 279 return UNDEFINED_STATUS; 280 case 518841124: 281 return INITIAL; 282 case 480889551: 283 return PREFIX_CONFIGURATION_COMPLETE; 284 case 378550961: 285 return PREFIX_CONFIGURATION_IN_PROGRESS; 286 case 284375783: 287 return PREFIX_REMOVAL_IN_PROGRESS; 288 case 513497167: 289 return PTR_CONFIGURED; 290 case 295755183: 291 return REVERSE_DNS_LOOKUP_FAILED; 292 case 66197998: 293 return VALIDATED; 294 default: 295 return null; 296 } 297 } 298 internalGetValueMap()299 public static com.google.protobuf.Internal.EnumLiteMap<Status> internalGetValueMap() { 300 return internalValueMap; 301 } 302 303 private static final com.google.protobuf.Internal.EnumLiteMap<Status> internalValueMap = 304 new com.google.protobuf.Internal.EnumLiteMap<Status>() { 305 public Status findValueByNumber(int number) { 306 return Status.forNumber(number); 307 } 308 }; 309 getValueDescriptor()310 public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 311 if (this == UNRECOGNIZED) { 312 throw new java.lang.IllegalStateException( 313 "Can't get the descriptor of an unrecognized enum value."); 314 } 315 return getDescriptor().getValues().get(ordinal()); 316 } 317 getDescriptorForType()318 public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { 319 return getDescriptor(); 320 } 321 getDescriptor()322 public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { 323 return com.google.cloud.compute.v1.PublicAdvertisedPrefix.getDescriptor() 324 .getEnumTypes() 325 .get(0); 326 } 327 328 private static final Status[] VALUES = values(); 329 valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)330 public static Status valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 331 if (desc.getType() != getDescriptor()) { 332 throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); 333 } 334 if (desc.getIndex() == -1) { 335 return UNRECOGNIZED; 336 } 337 return VALUES[desc.getIndex()]; 338 } 339 340 private final int value; 341 Status(int value)342 private Status(int value) { 343 this.value = value; 344 } 345 346 // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.PublicAdvertisedPrefix.Status) 347 } 348 349 private int bitField0_; 350 public static final int CREATION_TIMESTAMP_FIELD_NUMBER = 30525366; 351 352 @SuppressWarnings("serial") 353 private volatile java.lang.Object creationTimestamp_ = ""; 354 /** 355 * 356 * 357 * <pre> 358 * [Output Only] Creation timestamp in RFC3339 text format. 359 * </pre> 360 * 361 * <code>optional string creation_timestamp = 30525366;</code> 362 * 363 * @return Whether the creationTimestamp field is set. 364 */ 365 @java.lang.Override hasCreationTimestamp()366 public boolean hasCreationTimestamp() { 367 return ((bitField0_ & 0x00000001) != 0); 368 } 369 /** 370 * 371 * 372 * <pre> 373 * [Output Only] Creation timestamp in RFC3339 text format. 374 * </pre> 375 * 376 * <code>optional string creation_timestamp = 30525366;</code> 377 * 378 * @return The creationTimestamp. 379 */ 380 @java.lang.Override getCreationTimestamp()381 public java.lang.String getCreationTimestamp() { 382 java.lang.Object ref = creationTimestamp_; 383 if (ref instanceof java.lang.String) { 384 return (java.lang.String) ref; 385 } else { 386 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 387 java.lang.String s = bs.toStringUtf8(); 388 creationTimestamp_ = s; 389 return s; 390 } 391 } 392 /** 393 * 394 * 395 * <pre> 396 * [Output Only] Creation timestamp in RFC3339 text format. 397 * </pre> 398 * 399 * <code>optional string creation_timestamp = 30525366;</code> 400 * 401 * @return The bytes for creationTimestamp. 402 */ 403 @java.lang.Override getCreationTimestampBytes()404 public com.google.protobuf.ByteString getCreationTimestampBytes() { 405 java.lang.Object ref = creationTimestamp_; 406 if (ref instanceof java.lang.String) { 407 com.google.protobuf.ByteString b = 408 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 409 creationTimestamp_ = b; 410 return b; 411 } else { 412 return (com.google.protobuf.ByteString) ref; 413 } 414 } 415 416 public static final int DESCRIPTION_FIELD_NUMBER = 422937596; 417 418 @SuppressWarnings("serial") 419 private volatile java.lang.Object description_ = ""; 420 /** 421 * 422 * 423 * <pre> 424 * An optional description of this resource. Provide this property when you create the resource. 425 * </pre> 426 * 427 * <code>optional string description = 422937596;</code> 428 * 429 * @return Whether the description field is set. 430 */ 431 @java.lang.Override hasDescription()432 public boolean hasDescription() { 433 return ((bitField0_ & 0x00000002) != 0); 434 } 435 /** 436 * 437 * 438 * <pre> 439 * An optional description of this resource. Provide this property when you create the resource. 440 * </pre> 441 * 442 * <code>optional string description = 422937596;</code> 443 * 444 * @return The description. 445 */ 446 @java.lang.Override getDescription()447 public java.lang.String getDescription() { 448 java.lang.Object ref = description_; 449 if (ref instanceof java.lang.String) { 450 return (java.lang.String) ref; 451 } else { 452 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 453 java.lang.String s = bs.toStringUtf8(); 454 description_ = s; 455 return s; 456 } 457 } 458 /** 459 * 460 * 461 * <pre> 462 * An optional description of this resource. Provide this property when you create the resource. 463 * </pre> 464 * 465 * <code>optional string description = 422937596;</code> 466 * 467 * @return The bytes for description. 468 */ 469 @java.lang.Override getDescriptionBytes()470 public com.google.protobuf.ByteString getDescriptionBytes() { 471 java.lang.Object ref = description_; 472 if (ref instanceof java.lang.String) { 473 com.google.protobuf.ByteString b = 474 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 475 description_ = b; 476 return b; 477 } else { 478 return (com.google.protobuf.ByteString) ref; 479 } 480 } 481 482 public static final int DNS_VERIFICATION_IP_FIELD_NUMBER = 241011381; 483 484 @SuppressWarnings("serial") 485 private volatile java.lang.Object dnsVerificationIp_ = ""; 486 /** 487 * 488 * 489 * <pre> 490 * The IPv4 address to be used for reverse DNS verification. 491 * </pre> 492 * 493 * <code>optional string dns_verification_ip = 241011381;</code> 494 * 495 * @return Whether the dnsVerificationIp field is set. 496 */ 497 @java.lang.Override hasDnsVerificationIp()498 public boolean hasDnsVerificationIp() { 499 return ((bitField0_ & 0x00000004) != 0); 500 } 501 /** 502 * 503 * 504 * <pre> 505 * The IPv4 address to be used for reverse DNS verification. 506 * </pre> 507 * 508 * <code>optional string dns_verification_ip = 241011381;</code> 509 * 510 * @return The dnsVerificationIp. 511 */ 512 @java.lang.Override getDnsVerificationIp()513 public java.lang.String getDnsVerificationIp() { 514 java.lang.Object ref = dnsVerificationIp_; 515 if (ref instanceof java.lang.String) { 516 return (java.lang.String) ref; 517 } else { 518 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 519 java.lang.String s = bs.toStringUtf8(); 520 dnsVerificationIp_ = s; 521 return s; 522 } 523 } 524 /** 525 * 526 * 527 * <pre> 528 * The IPv4 address to be used for reverse DNS verification. 529 * </pre> 530 * 531 * <code>optional string dns_verification_ip = 241011381;</code> 532 * 533 * @return The bytes for dnsVerificationIp. 534 */ 535 @java.lang.Override getDnsVerificationIpBytes()536 public com.google.protobuf.ByteString getDnsVerificationIpBytes() { 537 java.lang.Object ref = dnsVerificationIp_; 538 if (ref instanceof java.lang.String) { 539 com.google.protobuf.ByteString b = 540 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 541 dnsVerificationIp_ = b; 542 return b; 543 } else { 544 return (com.google.protobuf.ByteString) ref; 545 } 546 } 547 548 public static final int FINGERPRINT_FIELD_NUMBER = 234678500; 549 550 @SuppressWarnings("serial") 551 private volatile java.lang.Object fingerprint_ = ""; 552 /** 553 * 554 * 555 * <pre> 556 * Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a new PublicAdvertisedPrefix. An up-to-date fingerprint must be provided in order to update the PublicAdvertisedPrefix, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a PublicAdvertisedPrefix. 557 * </pre> 558 * 559 * <code>optional string fingerprint = 234678500;</code> 560 * 561 * @return Whether the fingerprint field is set. 562 */ 563 @java.lang.Override hasFingerprint()564 public boolean hasFingerprint() { 565 return ((bitField0_ & 0x00000008) != 0); 566 } 567 /** 568 * 569 * 570 * <pre> 571 * Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a new PublicAdvertisedPrefix. An up-to-date fingerprint must be provided in order to update the PublicAdvertisedPrefix, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a PublicAdvertisedPrefix. 572 * </pre> 573 * 574 * <code>optional string fingerprint = 234678500;</code> 575 * 576 * @return The fingerprint. 577 */ 578 @java.lang.Override getFingerprint()579 public java.lang.String getFingerprint() { 580 java.lang.Object ref = fingerprint_; 581 if (ref instanceof java.lang.String) { 582 return (java.lang.String) ref; 583 } else { 584 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 585 java.lang.String s = bs.toStringUtf8(); 586 fingerprint_ = s; 587 return s; 588 } 589 } 590 /** 591 * 592 * 593 * <pre> 594 * Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a new PublicAdvertisedPrefix. An up-to-date fingerprint must be provided in order to update the PublicAdvertisedPrefix, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a PublicAdvertisedPrefix. 595 * </pre> 596 * 597 * <code>optional string fingerprint = 234678500;</code> 598 * 599 * @return The bytes for fingerprint. 600 */ 601 @java.lang.Override getFingerprintBytes()602 public com.google.protobuf.ByteString getFingerprintBytes() { 603 java.lang.Object ref = fingerprint_; 604 if (ref instanceof java.lang.String) { 605 com.google.protobuf.ByteString b = 606 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 607 fingerprint_ = b; 608 return b; 609 } else { 610 return (com.google.protobuf.ByteString) ref; 611 } 612 } 613 614 public static final int ID_FIELD_NUMBER = 3355; 615 private long id_ = 0L; 616 /** 617 * 618 * 619 * <pre> 620 * [Output Only] The unique identifier for the resource type. The server generates this identifier. 621 * </pre> 622 * 623 * <code>optional uint64 id = 3355;</code> 624 * 625 * @return Whether the id field is set. 626 */ 627 @java.lang.Override hasId()628 public boolean hasId() { 629 return ((bitField0_ & 0x00000010) != 0); 630 } 631 /** 632 * 633 * 634 * <pre> 635 * [Output Only] The unique identifier for the resource type. The server generates this identifier. 636 * </pre> 637 * 638 * <code>optional uint64 id = 3355;</code> 639 * 640 * @return The id. 641 */ 642 @java.lang.Override getId()643 public long getId() { 644 return id_; 645 } 646 647 public static final int IP_CIDR_RANGE_FIELD_NUMBER = 98117322; 648 649 @SuppressWarnings("serial") 650 private volatile java.lang.Object ipCidrRange_ = ""; 651 /** 652 * 653 * 654 * <pre> 655 * The IPv4 address range, in CIDR format, represented by this public advertised prefix. 656 * </pre> 657 * 658 * <code>optional string ip_cidr_range = 98117322;</code> 659 * 660 * @return Whether the ipCidrRange field is set. 661 */ 662 @java.lang.Override hasIpCidrRange()663 public boolean hasIpCidrRange() { 664 return ((bitField0_ & 0x00000020) != 0); 665 } 666 /** 667 * 668 * 669 * <pre> 670 * The IPv4 address range, in CIDR format, represented by this public advertised prefix. 671 * </pre> 672 * 673 * <code>optional string ip_cidr_range = 98117322;</code> 674 * 675 * @return The ipCidrRange. 676 */ 677 @java.lang.Override getIpCidrRange()678 public java.lang.String getIpCidrRange() { 679 java.lang.Object ref = ipCidrRange_; 680 if (ref instanceof java.lang.String) { 681 return (java.lang.String) ref; 682 } else { 683 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 684 java.lang.String s = bs.toStringUtf8(); 685 ipCidrRange_ = s; 686 return s; 687 } 688 } 689 /** 690 * 691 * 692 * <pre> 693 * The IPv4 address range, in CIDR format, represented by this public advertised prefix. 694 * </pre> 695 * 696 * <code>optional string ip_cidr_range = 98117322;</code> 697 * 698 * @return The bytes for ipCidrRange. 699 */ 700 @java.lang.Override getIpCidrRangeBytes()701 public com.google.protobuf.ByteString getIpCidrRangeBytes() { 702 java.lang.Object ref = ipCidrRange_; 703 if (ref instanceof java.lang.String) { 704 com.google.protobuf.ByteString b = 705 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 706 ipCidrRange_ = b; 707 return b; 708 } else { 709 return (com.google.protobuf.ByteString) ref; 710 } 711 } 712 713 public static final int KIND_FIELD_NUMBER = 3292052; 714 715 @SuppressWarnings("serial") 716 private volatile java.lang.Object kind_ = ""; 717 /** 718 * 719 * 720 * <pre> 721 * [Output Only] Type of the resource. Always compute#publicAdvertisedPrefix for public advertised prefixes. 722 * </pre> 723 * 724 * <code>optional string kind = 3292052;</code> 725 * 726 * @return Whether the kind field is set. 727 */ 728 @java.lang.Override hasKind()729 public boolean hasKind() { 730 return ((bitField0_ & 0x00000040) != 0); 731 } 732 /** 733 * 734 * 735 * <pre> 736 * [Output Only] Type of the resource. Always compute#publicAdvertisedPrefix for public advertised prefixes. 737 * </pre> 738 * 739 * <code>optional string kind = 3292052;</code> 740 * 741 * @return The kind. 742 */ 743 @java.lang.Override getKind()744 public java.lang.String getKind() { 745 java.lang.Object ref = kind_; 746 if (ref instanceof java.lang.String) { 747 return (java.lang.String) ref; 748 } else { 749 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 750 java.lang.String s = bs.toStringUtf8(); 751 kind_ = s; 752 return s; 753 } 754 } 755 /** 756 * 757 * 758 * <pre> 759 * [Output Only] Type of the resource. Always compute#publicAdvertisedPrefix for public advertised prefixes. 760 * </pre> 761 * 762 * <code>optional string kind = 3292052;</code> 763 * 764 * @return The bytes for kind. 765 */ 766 @java.lang.Override getKindBytes()767 public com.google.protobuf.ByteString getKindBytes() { 768 java.lang.Object ref = kind_; 769 if (ref instanceof java.lang.String) { 770 com.google.protobuf.ByteString b = 771 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 772 kind_ = b; 773 return b; 774 } else { 775 return (com.google.protobuf.ByteString) ref; 776 } 777 } 778 779 public static final int NAME_FIELD_NUMBER = 3373707; 780 781 @SuppressWarnings("serial") 782 private volatile java.lang.Object name_ = ""; 783 /** 784 * 785 * 786 * <pre> 787 * Name of the resource. Provided by the client when the resource is created. The 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. 788 * </pre> 789 * 790 * <code>optional string name = 3373707;</code> 791 * 792 * @return Whether the name field is set. 793 */ 794 @java.lang.Override hasName()795 public boolean hasName() { 796 return ((bitField0_ & 0x00000080) != 0); 797 } 798 /** 799 * 800 * 801 * <pre> 802 * Name of the resource. Provided by the client when the resource is created. The 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. 803 * </pre> 804 * 805 * <code>optional string name = 3373707;</code> 806 * 807 * @return The name. 808 */ 809 @java.lang.Override getName()810 public java.lang.String getName() { 811 java.lang.Object ref = name_; 812 if (ref instanceof java.lang.String) { 813 return (java.lang.String) ref; 814 } else { 815 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 816 java.lang.String s = bs.toStringUtf8(); 817 name_ = s; 818 return s; 819 } 820 } 821 /** 822 * 823 * 824 * <pre> 825 * Name of the resource. Provided by the client when the resource is created. The 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. 826 * </pre> 827 * 828 * <code>optional string name = 3373707;</code> 829 * 830 * @return The bytes for name. 831 */ 832 @java.lang.Override getNameBytes()833 public com.google.protobuf.ByteString getNameBytes() { 834 java.lang.Object ref = name_; 835 if (ref instanceof java.lang.String) { 836 com.google.protobuf.ByteString b = 837 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 838 name_ = b; 839 return b; 840 } else { 841 return (com.google.protobuf.ByteString) ref; 842 } 843 } 844 845 public static final int PUBLIC_DELEGATED_PREFIXS_FIELD_NUMBER = 425811723; 846 847 @SuppressWarnings("serial") 848 private java.util.List<com.google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix> 849 publicDelegatedPrefixs_; 850 /** 851 * 852 * 853 * <pre> 854 * [Output Only] The list of public delegated prefixes that exist for this public advertised prefix. 855 * </pre> 856 * 857 * <code> 858 * repeated .google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix public_delegated_prefixs = 425811723; 859 * </code> 860 */ 861 @java.lang.Override 862 public java.util.List<com.google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix> getPublicDelegatedPrefixsList()863 getPublicDelegatedPrefixsList() { 864 return publicDelegatedPrefixs_; 865 } 866 /** 867 * 868 * 869 * <pre> 870 * [Output Only] The list of public delegated prefixes that exist for this public advertised prefix. 871 * </pre> 872 * 873 * <code> 874 * repeated .google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix public_delegated_prefixs = 425811723; 875 * </code> 876 */ 877 @java.lang.Override 878 public java.util.List< 879 ? extends 880 com.google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefixOrBuilder> getPublicDelegatedPrefixsOrBuilderList()881 getPublicDelegatedPrefixsOrBuilderList() { 882 return publicDelegatedPrefixs_; 883 } 884 /** 885 * 886 * 887 * <pre> 888 * [Output Only] The list of public delegated prefixes that exist for this public advertised prefix. 889 * </pre> 890 * 891 * <code> 892 * repeated .google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix public_delegated_prefixs = 425811723; 893 * </code> 894 */ 895 @java.lang.Override getPublicDelegatedPrefixsCount()896 public int getPublicDelegatedPrefixsCount() { 897 return publicDelegatedPrefixs_.size(); 898 } 899 /** 900 * 901 * 902 * <pre> 903 * [Output Only] The list of public delegated prefixes that exist for this public advertised prefix. 904 * </pre> 905 * 906 * <code> 907 * repeated .google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix public_delegated_prefixs = 425811723; 908 * </code> 909 */ 910 @java.lang.Override 911 public com.google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix getPublicDelegatedPrefixs(int index)912 getPublicDelegatedPrefixs(int index) { 913 return publicDelegatedPrefixs_.get(index); 914 } 915 /** 916 * 917 * 918 * <pre> 919 * [Output Only] The list of public delegated prefixes that exist for this public advertised prefix. 920 * </pre> 921 * 922 * <code> 923 * repeated .google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix public_delegated_prefixs = 425811723; 924 * </code> 925 */ 926 @java.lang.Override 927 public com.google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefixOrBuilder getPublicDelegatedPrefixsOrBuilder(int index)928 getPublicDelegatedPrefixsOrBuilder(int index) { 929 return publicDelegatedPrefixs_.get(index); 930 } 931 932 public static final int SELF_LINK_FIELD_NUMBER = 456214797; 933 934 @SuppressWarnings("serial") 935 private volatile java.lang.Object selfLink_ = ""; 936 /** 937 * 938 * 939 * <pre> 940 * [Output Only] Server-defined URL for the resource. 941 * </pre> 942 * 943 * <code>optional string self_link = 456214797;</code> 944 * 945 * @return Whether the selfLink field is set. 946 */ 947 @java.lang.Override hasSelfLink()948 public boolean hasSelfLink() { 949 return ((bitField0_ & 0x00000100) != 0); 950 } 951 /** 952 * 953 * 954 * <pre> 955 * [Output Only] Server-defined URL for the resource. 956 * </pre> 957 * 958 * <code>optional string self_link = 456214797;</code> 959 * 960 * @return The selfLink. 961 */ 962 @java.lang.Override getSelfLink()963 public java.lang.String getSelfLink() { 964 java.lang.Object ref = selfLink_; 965 if (ref instanceof java.lang.String) { 966 return (java.lang.String) ref; 967 } else { 968 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 969 java.lang.String s = bs.toStringUtf8(); 970 selfLink_ = s; 971 return s; 972 } 973 } 974 /** 975 * 976 * 977 * <pre> 978 * [Output Only] Server-defined URL for the resource. 979 * </pre> 980 * 981 * <code>optional string self_link = 456214797;</code> 982 * 983 * @return The bytes for selfLink. 984 */ 985 @java.lang.Override getSelfLinkBytes()986 public com.google.protobuf.ByteString getSelfLinkBytes() { 987 java.lang.Object ref = selfLink_; 988 if (ref instanceof java.lang.String) { 989 com.google.protobuf.ByteString b = 990 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 991 selfLink_ = b; 992 return b; 993 } else { 994 return (com.google.protobuf.ByteString) ref; 995 } 996 } 997 998 public static final int SHARED_SECRET_FIELD_NUMBER = 381932490; 999 1000 @SuppressWarnings("serial") 1001 private volatile java.lang.Object sharedSecret_ = ""; 1002 /** 1003 * 1004 * 1005 * <pre> 1006 * [Output Only] The shared secret to be used for reverse DNS verification. 1007 * </pre> 1008 * 1009 * <code>optional string shared_secret = 381932490;</code> 1010 * 1011 * @return Whether the sharedSecret field is set. 1012 */ 1013 @java.lang.Override hasSharedSecret()1014 public boolean hasSharedSecret() { 1015 return ((bitField0_ & 0x00000200) != 0); 1016 } 1017 /** 1018 * 1019 * 1020 * <pre> 1021 * [Output Only] The shared secret to be used for reverse DNS verification. 1022 * </pre> 1023 * 1024 * <code>optional string shared_secret = 381932490;</code> 1025 * 1026 * @return The sharedSecret. 1027 */ 1028 @java.lang.Override getSharedSecret()1029 public java.lang.String getSharedSecret() { 1030 java.lang.Object ref = sharedSecret_; 1031 if (ref instanceof java.lang.String) { 1032 return (java.lang.String) ref; 1033 } else { 1034 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1035 java.lang.String s = bs.toStringUtf8(); 1036 sharedSecret_ = s; 1037 return s; 1038 } 1039 } 1040 /** 1041 * 1042 * 1043 * <pre> 1044 * [Output Only] The shared secret to be used for reverse DNS verification. 1045 * </pre> 1046 * 1047 * <code>optional string shared_secret = 381932490;</code> 1048 * 1049 * @return The bytes for sharedSecret. 1050 */ 1051 @java.lang.Override getSharedSecretBytes()1052 public com.google.protobuf.ByteString getSharedSecretBytes() { 1053 java.lang.Object ref = sharedSecret_; 1054 if (ref instanceof java.lang.String) { 1055 com.google.protobuf.ByteString b = 1056 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1057 sharedSecret_ = b; 1058 return b; 1059 } else { 1060 return (com.google.protobuf.ByteString) ref; 1061 } 1062 } 1063 1064 public static final int STATUS_FIELD_NUMBER = 181260274; 1065 1066 @SuppressWarnings("serial") 1067 private volatile java.lang.Object status_ = ""; 1068 /** 1069 * 1070 * 1071 * <pre> 1072 * The status of the public advertised prefix. Possible values include: - `INITIAL`: RPKI validation is complete. - `PTR_CONFIGURED`: User has configured the PTR. - `VALIDATED`: Reverse DNS lookup is successful. - `REVERSE_DNS_LOOKUP_FAILED`: Reverse DNS lookup failed. - `PREFIX_CONFIGURATION_IN_PROGRESS`: The prefix is being configured. - `PREFIX_CONFIGURATION_COMPLETE`: The prefix is fully configured. - `PREFIX_REMOVAL_IN_PROGRESS`: The prefix is being removed. 1073 * Check the Status enum for the list of possible values. 1074 * </pre> 1075 * 1076 * <code>optional string status = 181260274;</code> 1077 * 1078 * @return Whether the status field is set. 1079 */ 1080 @java.lang.Override hasStatus()1081 public boolean hasStatus() { 1082 return ((bitField0_ & 0x00000400) != 0); 1083 } 1084 /** 1085 * 1086 * 1087 * <pre> 1088 * The status of the public advertised prefix. Possible values include: - `INITIAL`: RPKI validation is complete. - `PTR_CONFIGURED`: User has configured the PTR. - `VALIDATED`: Reverse DNS lookup is successful. - `REVERSE_DNS_LOOKUP_FAILED`: Reverse DNS lookup failed. - `PREFIX_CONFIGURATION_IN_PROGRESS`: The prefix is being configured. - `PREFIX_CONFIGURATION_COMPLETE`: The prefix is fully configured. - `PREFIX_REMOVAL_IN_PROGRESS`: The prefix is being removed. 1089 * Check the Status enum for the list of possible values. 1090 * </pre> 1091 * 1092 * <code>optional string status = 181260274;</code> 1093 * 1094 * @return The status. 1095 */ 1096 @java.lang.Override getStatus()1097 public java.lang.String getStatus() { 1098 java.lang.Object ref = status_; 1099 if (ref instanceof java.lang.String) { 1100 return (java.lang.String) ref; 1101 } else { 1102 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1103 java.lang.String s = bs.toStringUtf8(); 1104 status_ = s; 1105 return s; 1106 } 1107 } 1108 /** 1109 * 1110 * 1111 * <pre> 1112 * The status of the public advertised prefix. Possible values include: - `INITIAL`: RPKI validation is complete. - `PTR_CONFIGURED`: User has configured the PTR. - `VALIDATED`: Reverse DNS lookup is successful. - `REVERSE_DNS_LOOKUP_FAILED`: Reverse DNS lookup failed. - `PREFIX_CONFIGURATION_IN_PROGRESS`: The prefix is being configured. - `PREFIX_CONFIGURATION_COMPLETE`: The prefix is fully configured. - `PREFIX_REMOVAL_IN_PROGRESS`: The prefix is being removed. 1113 * Check the Status enum for the list of possible values. 1114 * </pre> 1115 * 1116 * <code>optional string status = 181260274;</code> 1117 * 1118 * @return The bytes for status. 1119 */ 1120 @java.lang.Override getStatusBytes()1121 public com.google.protobuf.ByteString getStatusBytes() { 1122 java.lang.Object ref = status_; 1123 if (ref instanceof java.lang.String) { 1124 com.google.protobuf.ByteString b = 1125 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1126 status_ = b; 1127 return b; 1128 } else { 1129 return (com.google.protobuf.ByteString) ref; 1130 } 1131 } 1132 1133 private byte memoizedIsInitialized = -1; 1134 1135 @java.lang.Override isInitialized()1136 public final boolean isInitialized() { 1137 byte isInitialized = memoizedIsInitialized; 1138 if (isInitialized == 1) return true; 1139 if (isInitialized == 0) return false; 1140 1141 memoizedIsInitialized = 1; 1142 return true; 1143 } 1144 1145 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)1146 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 1147 if (((bitField0_ & 0x00000010) != 0)) { 1148 output.writeUInt64(3355, id_); 1149 } 1150 if (((bitField0_ & 0x00000040) != 0)) { 1151 com.google.protobuf.GeneratedMessageV3.writeString(output, 3292052, kind_); 1152 } 1153 if (((bitField0_ & 0x00000080) != 0)) { 1154 com.google.protobuf.GeneratedMessageV3.writeString(output, 3373707, name_); 1155 } 1156 if (((bitField0_ & 0x00000001) != 0)) { 1157 com.google.protobuf.GeneratedMessageV3.writeString(output, 30525366, creationTimestamp_); 1158 } 1159 if (((bitField0_ & 0x00000020) != 0)) { 1160 com.google.protobuf.GeneratedMessageV3.writeString(output, 98117322, ipCidrRange_); 1161 } 1162 if (((bitField0_ & 0x00000400) != 0)) { 1163 com.google.protobuf.GeneratedMessageV3.writeString(output, 181260274, status_); 1164 } 1165 if (((bitField0_ & 0x00000008) != 0)) { 1166 com.google.protobuf.GeneratedMessageV3.writeString(output, 234678500, fingerprint_); 1167 } 1168 if (((bitField0_ & 0x00000004) != 0)) { 1169 com.google.protobuf.GeneratedMessageV3.writeString(output, 241011381, dnsVerificationIp_); 1170 } 1171 if (((bitField0_ & 0x00000200) != 0)) { 1172 com.google.protobuf.GeneratedMessageV3.writeString(output, 381932490, sharedSecret_); 1173 } 1174 if (((bitField0_ & 0x00000002) != 0)) { 1175 com.google.protobuf.GeneratedMessageV3.writeString(output, 422937596, description_); 1176 } 1177 for (int i = 0; i < publicDelegatedPrefixs_.size(); i++) { 1178 output.writeMessage(425811723, publicDelegatedPrefixs_.get(i)); 1179 } 1180 if (((bitField0_ & 0x00000100) != 0)) { 1181 com.google.protobuf.GeneratedMessageV3.writeString(output, 456214797, selfLink_); 1182 } 1183 getUnknownFields().writeTo(output); 1184 } 1185 1186 @java.lang.Override getSerializedSize()1187 public int getSerializedSize() { 1188 int size = memoizedSize; 1189 if (size != -1) return size; 1190 1191 size = 0; 1192 if (((bitField0_ & 0x00000010) != 0)) { 1193 size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3355, id_); 1194 } 1195 if (((bitField0_ & 0x00000040) != 0)) { 1196 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3292052, kind_); 1197 } 1198 if (((bitField0_ & 0x00000080) != 0)) { 1199 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3373707, name_); 1200 } 1201 if (((bitField0_ & 0x00000001) != 0)) { 1202 size += 1203 com.google.protobuf.GeneratedMessageV3.computeStringSize(30525366, creationTimestamp_); 1204 } 1205 if (((bitField0_ & 0x00000020) != 0)) { 1206 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(98117322, ipCidrRange_); 1207 } 1208 if (((bitField0_ & 0x00000400) != 0)) { 1209 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(181260274, status_); 1210 } 1211 if (((bitField0_ & 0x00000008) != 0)) { 1212 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(234678500, fingerprint_); 1213 } 1214 if (((bitField0_ & 0x00000004) != 0)) { 1215 size += 1216 com.google.protobuf.GeneratedMessageV3.computeStringSize(241011381, dnsVerificationIp_); 1217 } 1218 if (((bitField0_ & 0x00000200) != 0)) { 1219 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(381932490, sharedSecret_); 1220 } 1221 if (((bitField0_ & 0x00000002) != 0)) { 1222 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(422937596, description_); 1223 } 1224 for (int i = 0; i < publicDelegatedPrefixs_.size(); i++) { 1225 size += 1226 com.google.protobuf.CodedOutputStream.computeMessageSize( 1227 425811723, publicDelegatedPrefixs_.get(i)); 1228 } 1229 if (((bitField0_ & 0x00000100) != 0)) { 1230 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(456214797, selfLink_); 1231 } 1232 size += getUnknownFields().getSerializedSize(); 1233 memoizedSize = size; 1234 return size; 1235 } 1236 1237 @java.lang.Override equals(final java.lang.Object obj)1238 public boolean equals(final java.lang.Object obj) { 1239 if (obj == this) { 1240 return true; 1241 } 1242 if (!(obj instanceof com.google.cloud.compute.v1.PublicAdvertisedPrefix)) { 1243 return super.equals(obj); 1244 } 1245 com.google.cloud.compute.v1.PublicAdvertisedPrefix other = 1246 (com.google.cloud.compute.v1.PublicAdvertisedPrefix) obj; 1247 1248 if (hasCreationTimestamp() != other.hasCreationTimestamp()) return false; 1249 if (hasCreationTimestamp()) { 1250 if (!getCreationTimestamp().equals(other.getCreationTimestamp())) return false; 1251 } 1252 if (hasDescription() != other.hasDescription()) return false; 1253 if (hasDescription()) { 1254 if (!getDescription().equals(other.getDescription())) return false; 1255 } 1256 if (hasDnsVerificationIp() != other.hasDnsVerificationIp()) return false; 1257 if (hasDnsVerificationIp()) { 1258 if (!getDnsVerificationIp().equals(other.getDnsVerificationIp())) return false; 1259 } 1260 if (hasFingerprint() != other.hasFingerprint()) return false; 1261 if (hasFingerprint()) { 1262 if (!getFingerprint().equals(other.getFingerprint())) return false; 1263 } 1264 if (hasId() != other.hasId()) return false; 1265 if (hasId()) { 1266 if (getId() != other.getId()) return false; 1267 } 1268 if (hasIpCidrRange() != other.hasIpCidrRange()) return false; 1269 if (hasIpCidrRange()) { 1270 if (!getIpCidrRange().equals(other.getIpCidrRange())) return false; 1271 } 1272 if (hasKind() != other.hasKind()) return false; 1273 if (hasKind()) { 1274 if (!getKind().equals(other.getKind())) return false; 1275 } 1276 if (hasName() != other.hasName()) return false; 1277 if (hasName()) { 1278 if (!getName().equals(other.getName())) return false; 1279 } 1280 if (!getPublicDelegatedPrefixsList().equals(other.getPublicDelegatedPrefixsList())) 1281 return false; 1282 if (hasSelfLink() != other.hasSelfLink()) return false; 1283 if (hasSelfLink()) { 1284 if (!getSelfLink().equals(other.getSelfLink())) return false; 1285 } 1286 if (hasSharedSecret() != other.hasSharedSecret()) return false; 1287 if (hasSharedSecret()) { 1288 if (!getSharedSecret().equals(other.getSharedSecret())) return false; 1289 } 1290 if (hasStatus() != other.hasStatus()) return false; 1291 if (hasStatus()) { 1292 if (!getStatus().equals(other.getStatus())) return false; 1293 } 1294 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 1295 return true; 1296 } 1297 1298 @java.lang.Override hashCode()1299 public int hashCode() { 1300 if (memoizedHashCode != 0) { 1301 return memoizedHashCode; 1302 } 1303 int hash = 41; 1304 hash = (19 * hash) + getDescriptor().hashCode(); 1305 if (hasCreationTimestamp()) { 1306 hash = (37 * hash) + CREATION_TIMESTAMP_FIELD_NUMBER; 1307 hash = (53 * hash) + getCreationTimestamp().hashCode(); 1308 } 1309 if (hasDescription()) { 1310 hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; 1311 hash = (53 * hash) + getDescription().hashCode(); 1312 } 1313 if (hasDnsVerificationIp()) { 1314 hash = (37 * hash) + DNS_VERIFICATION_IP_FIELD_NUMBER; 1315 hash = (53 * hash) + getDnsVerificationIp().hashCode(); 1316 } 1317 if (hasFingerprint()) { 1318 hash = (37 * hash) + FINGERPRINT_FIELD_NUMBER; 1319 hash = (53 * hash) + getFingerprint().hashCode(); 1320 } 1321 if (hasId()) { 1322 hash = (37 * hash) + ID_FIELD_NUMBER; 1323 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getId()); 1324 } 1325 if (hasIpCidrRange()) { 1326 hash = (37 * hash) + IP_CIDR_RANGE_FIELD_NUMBER; 1327 hash = (53 * hash) + getIpCidrRange().hashCode(); 1328 } 1329 if (hasKind()) { 1330 hash = (37 * hash) + KIND_FIELD_NUMBER; 1331 hash = (53 * hash) + getKind().hashCode(); 1332 } 1333 if (hasName()) { 1334 hash = (37 * hash) + NAME_FIELD_NUMBER; 1335 hash = (53 * hash) + getName().hashCode(); 1336 } 1337 if (getPublicDelegatedPrefixsCount() > 0) { 1338 hash = (37 * hash) + PUBLIC_DELEGATED_PREFIXS_FIELD_NUMBER; 1339 hash = (53 * hash) + getPublicDelegatedPrefixsList().hashCode(); 1340 } 1341 if (hasSelfLink()) { 1342 hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; 1343 hash = (53 * hash) + getSelfLink().hashCode(); 1344 } 1345 if (hasSharedSecret()) { 1346 hash = (37 * hash) + SHARED_SECRET_FIELD_NUMBER; 1347 hash = (53 * hash) + getSharedSecret().hashCode(); 1348 } 1349 if (hasStatus()) { 1350 hash = (37 * hash) + STATUS_FIELD_NUMBER; 1351 hash = (53 * hash) + getStatus().hashCode(); 1352 } 1353 hash = (29 * hash) + getUnknownFields().hashCode(); 1354 memoizedHashCode = hash; 1355 return hash; 1356 } 1357 parseFrom( java.nio.ByteBuffer data)1358 public static com.google.cloud.compute.v1.PublicAdvertisedPrefix parseFrom( 1359 java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { 1360 return PARSER.parseFrom(data); 1361 } 1362 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1363 public static com.google.cloud.compute.v1.PublicAdvertisedPrefix parseFrom( 1364 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1365 throws com.google.protobuf.InvalidProtocolBufferException { 1366 return PARSER.parseFrom(data, extensionRegistry); 1367 } 1368 parseFrom( com.google.protobuf.ByteString data)1369 public static com.google.cloud.compute.v1.PublicAdvertisedPrefix parseFrom( 1370 com.google.protobuf.ByteString data) 1371 throws com.google.protobuf.InvalidProtocolBufferException { 1372 return PARSER.parseFrom(data); 1373 } 1374 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1375 public static com.google.cloud.compute.v1.PublicAdvertisedPrefix parseFrom( 1376 com.google.protobuf.ByteString data, 1377 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1378 throws com.google.protobuf.InvalidProtocolBufferException { 1379 return PARSER.parseFrom(data, extensionRegistry); 1380 } 1381 parseFrom(byte[] data)1382 public static com.google.cloud.compute.v1.PublicAdvertisedPrefix parseFrom(byte[] data) 1383 throws com.google.protobuf.InvalidProtocolBufferException { 1384 return PARSER.parseFrom(data); 1385 } 1386 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1387 public static com.google.cloud.compute.v1.PublicAdvertisedPrefix parseFrom( 1388 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1389 throws com.google.protobuf.InvalidProtocolBufferException { 1390 return PARSER.parseFrom(data, extensionRegistry); 1391 } 1392 parseFrom( java.io.InputStream input)1393 public static com.google.cloud.compute.v1.PublicAdvertisedPrefix parseFrom( 1394 java.io.InputStream input) throws java.io.IOException { 1395 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 1396 } 1397 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1398 public static com.google.cloud.compute.v1.PublicAdvertisedPrefix parseFrom( 1399 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1400 throws java.io.IOException { 1401 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 1402 PARSER, input, extensionRegistry); 1403 } 1404 parseDelimitedFrom( java.io.InputStream input)1405 public static com.google.cloud.compute.v1.PublicAdvertisedPrefix parseDelimitedFrom( 1406 java.io.InputStream input) throws java.io.IOException { 1407 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 1408 } 1409 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1410 public static com.google.cloud.compute.v1.PublicAdvertisedPrefix parseDelimitedFrom( 1411 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1412 throws java.io.IOException { 1413 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 1414 PARSER, input, extensionRegistry); 1415 } 1416 parseFrom( com.google.protobuf.CodedInputStream input)1417 public static com.google.cloud.compute.v1.PublicAdvertisedPrefix parseFrom( 1418 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 1419 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 1420 } 1421 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1422 public static com.google.cloud.compute.v1.PublicAdvertisedPrefix parseFrom( 1423 com.google.protobuf.CodedInputStream input, 1424 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1425 throws java.io.IOException { 1426 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 1427 PARSER, input, extensionRegistry); 1428 } 1429 1430 @java.lang.Override newBuilderForType()1431 public Builder newBuilderForType() { 1432 return newBuilder(); 1433 } 1434 newBuilder()1435 public static Builder newBuilder() { 1436 return DEFAULT_INSTANCE.toBuilder(); 1437 } 1438 newBuilder(com.google.cloud.compute.v1.PublicAdvertisedPrefix prototype)1439 public static Builder newBuilder(com.google.cloud.compute.v1.PublicAdvertisedPrefix prototype) { 1440 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 1441 } 1442 1443 @java.lang.Override toBuilder()1444 public Builder toBuilder() { 1445 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 1446 } 1447 1448 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1449 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 1450 Builder builder = new Builder(parent); 1451 return builder; 1452 } 1453 /** 1454 * 1455 * 1456 * <pre> 1457 * A public advertised prefix represents an aggregated IP prefix or netblock which customers bring to cloud. The IP prefix is a single unit of route advertisement and is announced globally to the internet. 1458 * </pre> 1459 * 1460 * Protobuf type {@code google.cloud.compute.v1.PublicAdvertisedPrefix} 1461 */ 1462 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 1463 implements 1464 // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.PublicAdvertisedPrefix) 1465 com.google.cloud.compute.v1.PublicAdvertisedPrefixOrBuilder { getDescriptor()1466 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 1467 return com.google.cloud.compute.v1.Compute 1468 .internal_static_google_cloud_compute_v1_PublicAdvertisedPrefix_descriptor; 1469 } 1470 1471 @java.lang.Override 1472 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()1473 internalGetFieldAccessorTable() { 1474 return com.google.cloud.compute.v1.Compute 1475 .internal_static_google_cloud_compute_v1_PublicAdvertisedPrefix_fieldAccessorTable 1476 .ensureFieldAccessorsInitialized( 1477 com.google.cloud.compute.v1.PublicAdvertisedPrefix.class, 1478 com.google.cloud.compute.v1.PublicAdvertisedPrefix.Builder.class); 1479 } 1480 1481 // Construct using com.google.cloud.compute.v1.PublicAdvertisedPrefix.newBuilder() Builder()1482 private Builder() {} 1483 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1484 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 1485 super(parent); 1486 } 1487 1488 @java.lang.Override clear()1489 public Builder clear() { 1490 super.clear(); 1491 bitField0_ = 0; 1492 creationTimestamp_ = ""; 1493 description_ = ""; 1494 dnsVerificationIp_ = ""; 1495 fingerprint_ = ""; 1496 id_ = 0L; 1497 ipCidrRange_ = ""; 1498 kind_ = ""; 1499 name_ = ""; 1500 if (publicDelegatedPrefixsBuilder_ == null) { 1501 publicDelegatedPrefixs_ = java.util.Collections.emptyList(); 1502 } else { 1503 publicDelegatedPrefixs_ = null; 1504 publicDelegatedPrefixsBuilder_.clear(); 1505 } 1506 bitField0_ = (bitField0_ & ~0x00000100); 1507 selfLink_ = ""; 1508 sharedSecret_ = ""; 1509 status_ = ""; 1510 return this; 1511 } 1512 1513 @java.lang.Override getDescriptorForType()1514 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 1515 return com.google.cloud.compute.v1.Compute 1516 .internal_static_google_cloud_compute_v1_PublicAdvertisedPrefix_descriptor; 1517 } 1518 1519 @java.lang.Override getDefaultInstanceForType()1520 public com.google.cloud.compute.v1.PublicAdvertisedPrefix getDefaultInstanceForType() { 1521 return com.google.cloud.compute.v1.PublicAdvertisedPrefix.getDefaultInstance(); 1522 } 1523 1524 @java.lang.Override build()1525 public com.google.cloud.compute.v1.PublicAdvertisedPrefix build() { 1526 com.google.cloud.compute.v1.PublicAdvertisedPrefix result = buildPartial(); 1527 if (!result.isInitialized()) { 1528 throw newUninitializedMessageException(result); 1529 } 1530 return result; 1531 } 1532 1533 @java.lang.Override buildPartial()1534 public com.google.cloud.compute.v1.PublicAdvertisedPrefix buildPartial() { 1535 com.google.cloud.compute.v1.PublicAdvertisedPrefix result = 1536 new com.google.cloud.compute.v1.PublicAdvertisedPrefix(this); 1537 buildPartialRepeatedFields(result); 1538 if (bitField0_ != 0) { 1539 buildPartial0(result); 1540 } 1541 onBuilt(); 1542 return result; 1543 } 1544 buildPartialRepeatedFields( com.google.cloud.compute.v1.PublicAdvertisedPrefix result)1545 private void buildPartialRepeatedFields( 1546 com.google.cloud.compute.v1.PublicAdvertisedPrefix result) { 1547 if (publicDelegatedPrefixsBuilder_ == null) { 1548 if (((bitField0_ & 0x00000100) != 0)) { 1549 publicDelegatedPrefixs_ = java.util.Collections.unmodifiableList(publicDelegatedPrefixs_); 1550 bitField0_ = (bitField0_ & ~0x00000100); 1551 } 1552 result.publicDelegatedPrefixs_ = publicDelegatedPrefixs_; 1553 } else { 1554 result.publicDelegatedPrefixs_ = publicDelegatedPrefixsBuilder_.build(); 1555 } 1556 } 1557 buildPartial0(com.google.cloud.compute.v1.PublicAdvertisedPrefix result)1558 private void buildPartial0(com.google.cloud.compute.v1.PublicAdvertisedPrefix result) { 1559 int from_bitField0_ = bitField0_; 1560 int to_bitField0_ = 0; 1561 if (((from_bitField0_ & 0x00000001) != 0)) { 1562 result.creationTimestamp_ = creationTimestamp_; 1563 to_bitField0_ |= 0x00000001; 1564 } 1565 if (((from_bitField0_ & 0x00000002) != 0)) { 1566 result.description_ = description_; 1567 to_bitField0_ |= 0x00000002; 1568 } 1569 if (((from_bitField0_ & 0x00000004) != 0)) { 1570 result.dnsVerificationIp_ = dnsVerificationIp_; 1571 to_bitField0_ |= 0x00000004; 1572 } 1573 if (((from_bitField0_ & 0x00000008) != 0)) { 1574 result.fingerprint_ = fingerprint_; 1575 to_bitField0_ |= 0x00000008; 1576 } 1577 if (((from_bitField0_ & 0x00000010) != 0)) { 1578 result.id_ = id_; 1579 to_bitField0_ |= 0x00000010; 1580 } 1581 if (((from_bitField0_ & 0x00000020) != 0)) { 1582 result.ipCidrRange_ = ipCidrRange_; 1583 to_bitField0_ |= 0x00000020; 1584 } 1585 if (((from_bitField0_ & 0x00000040) != 0)) { 1586 result.kind_ = kind_; 1587 to_bitField0_ |= 0x00000040; 1588 } 1589 if (((from_bitField0_ & 0x00000080) != 0)) { 1590 result.name_ = name_; 1591 to_bitField0_ |= 0x00000080; 1592 } 1593 if (((from_bitField0_ & 0x00000200) != 0)) { 1594 result.selfLink_ = selfLink_; 1595 to_bitField0_ |= 0x00000100; 1596 } 1597 if (((from_bitField0_ & 0x00000400) != 0)) { 1598 result.sharedSecret_ = sharedSecret_; 1599 to_bitField0_ |= 0x00000200; 1600 } 1601 if (((from_bitField0_ & 0x00000800) != 0)) { 1602 result.status_ = status_; 1603 to_bitField0_ |= 0x00000400; 1604 } 1605 result.bitField0_ |= to_bitField0_; 1606 } 1607 1608 @java.lang.Override clone()1609 public Builder clone() { 1610 return super.clone(); 1611 } 1612 1613 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1614 public Builder setField( 1615 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1616 return super.setField(field, value); 1617 } 1618 1619 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1620 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 1621 return super.clearField(field); 1622 } 1623 1624 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1625 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 1626 return super.clearOneof(oneof); 1627 } 1628 1629 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1630 public Builder setRepeatedField( 1631 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 1632 return super.setRepeatedField(field, index, value); 1633 } 1634 1635 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1636 public Builder addRepeatedField( 1637 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1638 return super.addRepeatedField(field, value); 1639 } 1640 1641 @java.lang.Override mergeFrom(com.google.protobuf.Message other)1642 public Builder mergeFrom(com.google.protobuf.Message other) { 1643 if (other instanceof com.google.cloud.compute.v1.PublicAdvertisedPrefix) { 1644 return mergeFrom((com.google.cloud.compute.v1.PublicAdvertisedPrefix) other); 1645 } else { 1646 super.mergeFrom(other); 1647 return this; 1648 } 1649 } 1650 mergeFrom(com.google.cloud.compute.v1.PublicAdvertisedPrefix other)1651 public Builder mergeFrom(com.google.cloud.compute.v1.PublicAdvertisedPrefix other) { 1652 if (other == com.google.cloud.compute.v1.PublicAdvertisedPrefix.getDefaultInstance()) 1653 return this; 1654 if (other.hasCreationTimestamp()) { 1655 creationTimestamp_ = other.creationTimestamp_; 1656 bitField0_ |= 0x00000001; 1657 onChanged(); 1658 } 1659 if (other.hasDescription()) { 1660 description_ = other.description_; 1661 bitField0_ |= 0x00000002; 1662 onChanged(); 1663 } 1664 if (other.hasDnsVerificationIp()) { 1665 dnsVerificationIp_ = other.dnsVerificationIp_; 1666 bitField0_ |= 0x00000004; 1667 onChanged(); 1668 } 1669 if (other.hasFingerprint()) { 1670 fingerprint_ = other.fingerprint_; 1671 bitField0_ |= 0x00000008; 1672 onChanged(); 1673 } 1674 if (other.hasId()) { 1675 setId(other.getId()); 1676 } 1677 if (other.hasIpCidrRange()) { 1678 ipCidrRange_ = other.ipCidrRange_; 1679 bitField0_ |= 0x00000020; 1680 onChanged(); 1681 } 1682 if (other.hasKind()) { 1683 kind_ = other.kind_; 1684 bitField0_ |= 0x00000040; 1685 onChanged(); 1686 } 1687 if (other.hasName()) { 1688 name_ = other.name_; 1689 bitField0_ |= 0x00000080; 1690 onChanged(); 1691 } 1692 if (publicDelegatedPrefixsBuilder_ == null) { 1693 if (!other.publicDelegatedPrefixs_.isEmpty()) { 1694 if (publicDelegatedPrefixs_.isEmpty()) { 1695 publicDelegatedPrefixs_ = other.publicDelegatedPrefixs_; 1696 bitField0_ = (bitField0_ & ~0x00000100); 1697 } else { 1698 ensurePublicDelegatedPrefixsIsMutable(); 1699 publicDelegatedPrefixs_.addAll(other.publicDelegatedPrefixs_); 1700 } 1701 onChanged(); 1702 } 1703 } else { 1704 if (!other.publicDelegatedPrefixs_.isEmpty()) { 1705 if (publicDelegatedPrefixsBuilder_.isEmpty()) { 1706 publicDelegatedPrefixsBuilder_.dispose(); 1707 publicDelegatedPrefixsBuilder_ = null; 1708 publicDelegatedPrefixs_ = other.publicDelegatedPrefixs_; 1709 bitField0_ = (bitField0_ & ~0x00000100); 1710 publicDelegatedPrefixsBuilder_ = 1711 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders 1712 ? getPublicDelegatedPrefixsFieldBuilder() 1713 : null; 1714 } else { 1715 publicDelegatedPrefixsBuilder_.addAllMessages(other.publicDelegatedPrefixs_); 1716 } 1717 } 1718 } 1719 if (other.hasSelfLink()) { 1720 selfLink_ = other.selfLink_; 1721 bitField0_ |= 0x00000200; 1722 onChanged(); 1723 } 1724 if (other.hasSharedSecret()) { 1725 sharedSecret_ = other.sharedSecret_; 1726 bitField0_ |= 0x00000400; 1727 onChanged(); 1728 } 1729 if (other.hasStatus()) { 1730 status_ = other.status_; 1731 bitField0_ |= 0x00000800; 1732 onChanged(); 1733 } 1734 this.mergeUnknownFields(other.getUnknownFields()); 1735 onChanged(); 1736 return this; 1737 } 1738 1739 @java.lang.Override isInitialized()1740 public final boolean isInitialized() { 1741 return true; 1742 } 1743 1744 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1745 public Builder mergeFrom( 1746 com.google.protobuf.CodedInputStream input, 1747 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1748 throws java.io.IOException { 1749 if (extensionRegistry == null) { 1750 throw new java.lang.NullPointerException(); 1751 } 1752 try { 1753 boolean done = false; 1754 while (!done) { 1755 int tag = input.readTag(); 1756 switch (tag) { 1757 case 0: 1758 done = true; 1759 break; 1760 case 26840: 1761 { 1762 id_ = input.readUInt64(); 1763 bitField0_ |= 0x00000010; 1764 break; 1765 } // case 26840 1766 case 26336418: 1767 { 1768 kind_ = input.readStringRequireUtf8(); 1769 bitField0_ |= 0x00000040; 1770 break; 1771 } // case 26336418 1772 case 26989658: 1773 { 1774 name_ = input.readStringRequireUtf8(); 1775 bitField0_ |= 0x00000080; 1776 break; 1777 } // case 26989658 1778 case 244202930: 1779 { 1780 creationTimestamp_ = input.readStringRequireUtf8(); 1781 bitField0_ |= 0x00000001; 1782 break; 1783 } // case 244202930 1784 case 784938578: 1785 { 1786 ipCidrRange_ = input.readStringRequireUtf8(); 1787 bitField0_ |= 0x00000020; 1788 break; 1789 } // case 784938578 1790 case 1450082194: 1791 { 1792 status_ = input.readStringRequireUtf8(); 1793 bitField0_ |= 0x00000800; 1794 break; 1795 } // case 1450082194 1796 case 1877428002: 1797 { 1798 fingerprint_ = input.readStringRequireUtf8(); 1799 bitField0_ |= 0x00000008; 1800 break; 1801 } // case 1877428002 1802 case 1928091050: 1803 { 1804 dnsVerificationIp_ = input.readStringRequireUtf8(); 1805 bitField0_ |= 0x00000004; 1806 break; 1807 } // case 1928091050 1808 case -1239507374: 1809 { 1810 sharedSecret_ = input.readStringRequireUtf8(); 1811 bitField0_ |= 0x00000400; 1812 break; 1813 } // case -1239507374 1814 case -911466526: 1815 { 1816 description_ = input.readStringRequireUtf8(); 1817 bitField0_ |= 0x00000002; 1818 break; 1819 } // case -911466526 1820 case -888473510: 1821 { 1822 com.google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix m = 1823 input.readMessage( 1824 com.google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix 1825 .parser(), 1826 extensionRegistry); 1827 if (publicDelegatedPrefixsBuilder_ == null) { 1828 ensurePublicDelegatedPrefixsIsMutable(); 1829 publicDelegatedPrefixs_.add(m); 1830 } else { 1831 publicDelegatedPrefixsBuilder_.addMessage(m); 1832 } 1833 break; 1834 } // case -888473510 1835 case -645248918: 1836 { 1837 selfLink_ = input.readStringRequireUtf8(); 1838 bitField0_ |= 0x00000200; 1839 break; 1840 } // case -645248918 1841 default: 1842 { 1843 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 1844 done = true; // was an endgroup tag 1845 } 1846 break; 1847 } // default: 1848 } // switch (tag) 1849 } // while (!done) 1850 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1851 throw e.unwrapIOException(); 1852 } finally { 1853 onChanged(); 1854 } // finally 1855 return this; 1856 } 1857 1858 private int bitField0_; 1859 1860 private java.lang.Object creationTimestamp_ = ""; 1861 /** 1862 * 1863 * 1864 * <pre> 1865 * [Output Only] Creation timestamp in RFC3339 text format. 1866 * </pre> 1867 * 1868 * <code>optional string creation_timestamp = 30525366;</code> 1869 * 1870 * @return Whether the creationTimestamp field is set. 1871 */ hasCreationTimestamp()1872 public boolean hasCreationTimestamp() { 1873 return ((bitField0_ & 0x00000001) != 0); 1874 } 1875 /** 1876 * 1877 * 1878 * <pre> 1879 * [Output Only] Creation timestamp in RFC3339 text format. 1880 * </pre> 1881 * 1882 * <code>optional string creation_timestamp = 30525366;</code> 1883 * 1884 * @return The creationTimestamp. 1885 */ getCreationTimestamp()1886 public java.lang.String getCreationTimestamp() { 1887 java.lang.Object ref = creationTimestamp_; 1888 if (!(ref instanceof java.lang.String)) { 1889 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1890 java.lang.String s = bs.toStringUtf8(); 1891 creationTimestamp_ = s; 1892 return s; 1893 } else { 1894 return (java.lang.String) ref; 1895 } 1896 } 1897 /** 1898 * 1899 * 1900 * <pre> 1901 * [Output Only] Creation timestamp in RFC3339 text format. 1902 * </pre> 1903 * 1904 * <code>optional string creation_timestamp = 30525366;</code> 1905 * 1906 * @return The bytes for creationTimestamp. 1907 */ getCreationTimestampBytes()1908 public com.google.protobuf.ByteString getCreationTimestampBytes() { 1909 java.lang.Object ref = creationTimestamp_; 1910 if (ref instanceof String) { 1911 com.google.protobuf.ByteString b = 1912 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1913 creationTimestamp_ = b; 1914 return b; 1915 } else { 1916 return (com.google.protobuf.ByteString) ref; 1917 } 1918 } 1919 /** 1920 * 1921 * 1922 * <pre> 1923 * [Output Only] Creation timestamp in RFC3339 text format. 1924 * </pre> 1925 * 1926 * <code>optional string creation_timestamp = 30525366;</code> 1927 * 1928 * @param value The creationTimestamp to set. 1929 * @return This builder for chaining. 1930 */ setCreationTimestamp(java.lang.String value)1931 public Builder setCreationTimestamp(java.lang.String value) { 1932 if (value == null) { 1933 throw new NullPointerException(); 1934 } 1935 creationTimestamp_ = value; 1936 bitField0_ |= 0x00000001; 1937 onChanged(); 1938 return this; 1939 } 1940 /** 1941 * 1942 * 1943 * <pre> 1944 * [Output Only] Creation timestamp in RFC3339 text format. 1945 * </pre> 1946 * 1947 * <code>optional string creation_timestamp = 30525366;</code> 1948 * 1949 * @return This builder for chaining. 1950 */ clearCreationTimestamp()1951 public Builder clearCreationTimestamp() { 1952 creationTimestamp_ = getDefaultInstance().getCreationTimestamp(); 1953 bitField0_ = (bitField0_ & ~0x00000001); 1954 onChanged(); 1955 return this; 1956 } 1957 /** 1958 * 1959 * 1960 * <pre> 1961 * [Output Only] Creation timestamp in RFC3339 text format. 1962 * </pre> 1963 * 1964 * <code>optional string creation_timestamp = 30525366;</code> 1965 * 1966 * @param value The bytes for creationTimestamp to set. 1967 * @return This builder for chaining. 1968 */ setCreationTimestampBytes(com.google.protobuf.ByteString value)1969 public Builder setCreationTimestampBytes(com.google.protobuf.ByteString value) { 1970 if (value == null) { 1971 throw new NullPointerException(); 1972 } 1973 checkByteStringIsUtf8(value); 1974 creationTimestamp_ = value; 1975 bitField0_ |= 0x00000001; 1976 onChanged(); 1977 return this; 1978 } 1979 1980 private java.lang.Object description_ = ""; 1981 /** 1982 * 1983 * 1984 * <pre> 1985 * An optional description of this resource. Provide this property when you create the resource. 1986 * </pre> 1987 * 1988 * <code>optional string description = 422937596;</code> 1989 * 1990 * @return Whether the description field is set. 1991 */ hasDescription()1992 public boolean hasDescription() { 1993 return ((bitField0_ & 0x00000002) != 0); 1994 } 1995 /** 1996 * 1997 * 1998 * <pre> 1999 * An optional description of this resource. Provide this property when you create the resource. 2000 * </pre> 2001 * 2002 * <code>optional string description = 422937596;</code> 2003 * 2004 * @return The description. 2005 */ getDescription()2006 public java.lang.String getDescription() { 2007 java.lang.Object ref = description_; 2008 if (!(ref instanceof java.lang.String)) { 2009 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2010 java.lang.String s = bs.toStringUtf8(); 2011 description_ = s; 2012 return s; 2013 } else { 2014 return (java.lang.String) ref; 2015 } 2016 } 2017 /** 2018 * 2019 * 2020 * <pre> 2021 * An optional description of this resource. Provide this property when you create the resource. 2022 * </pre> 2023 * 2024 * <code>optional string description = 422937596;</code> 2025 * 2026 * @return The bytes for description. 2027 */ getDescriptionBytes()2028 public com.google.protobuf.ByteString getDescriptionBytes() { 2029 java.lang.Object ref = description_; 2030 if (ref instanceof String) { 2031 com.google.protobuf.ByteString b = 2032 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2033 description_ = b; 2034 return b; 2035 } else { 2036 return (com.google.protobuf.ByteString) ref; 2037 } 2038 } 2039 /** 2040 * 2041 * 2042 * <pre> 2043 * An optional description of this resource. Provide this property when you create the resource. 2044 * </pre> 2045 * 2046 * <code>optional string description = 422937596;</code> 2047 * 2048 * @param value The description to set. 2049 * @return This builder for chaining. 2050 */ setDescription(java.lang.String value)2051 public Builder setDescription(java.lang.String value) { 2052 if (value == null) { 2053 throw new NullPointerException(); 2054 } 2055 description_ = value; 2056 bitField0_ |= 0x00000002; 2057 onChanged(); 2058 return this; 2059 } 2060 /** 2061 * 2062 * 2063 * <pre> 2064 * An optional description of this resource. Provide this property when you create the resource. 2065 * </pre> 2066 * 2067 * <code>optional string description = 422937596;</code> 2068 * 2069 * @return This builder for chaining. 2070 */ clearDescription()2071 public Builder clearDescription() { 2072 description_ = getDefaultInstance().getDescription(); 2073 bitField0_ = (bitField0_ & ~0x00000002); 2074 onChanged(); 2075 return this; 2076 } 2077 /** 2078 * 2079 * 2080 * <pre> 2081 * An optional description of this resource. Provide this property when you create the resource. 2082 * </pre> 2083 * 2084 * <code>optional string description = 422937596;</code> 2085 * 2086 * @param value The bytes for description to set. 2087 * @return This builder for chaining. 2088 */ setDescriptionBytes(com.google.protobuf.ByteString value)2089 public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { 2090 if (value == null) { 2091 throw new NullPointerException(); 2092 } 2093 checkByteStringIsUtf8(value); 2094 description_ = value; 2095 bitField0_ |= 0x00000002; 2096 onChanged(); 2097 return this; 2098 } 2099 2100 private java.lang.Object dnsVerificationIp_ = ""; 2101 /** 2102 * 2103 * 2104 * <pre> 2105 * The IPv4 address to be used for reverse DNS verification. 2106 * </pre> 2107 * 2108 * <code>optional string dns_verification_ip = 241011381;</code> 2109 * 2110 * @return Whether the dnsVerificationIp field is set. 2111 */ hasDnsVerificationIp()2112 public boolean hasDnsVerificationIp() { 2113 return ((bitField0_ & 0x00000004) != 0); 2114 } 2115 /** 2116 * 2117 * 2118 * <pre> 2119 * The IPv4 address to be used for reverse DNS verification. 2120 * </pre> 2121 * 2122 * <code>optional string dns_verification_ip = 241011381;</code> 2123 * 2124 * @return The dnsVerificationIp. 2125 */ getDnsVerificationIp()2126 public java.lang.String getDnsVerificationIp() { 2127 java.lang.Object ref = dnsVerificationIp_; 2128 if (!(ref instanceof java.lang.String)) { 2129 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2130 java.lang.String s = bs.toStringUtf8(); 2131 dnsVerificationIp_ = s; 2132 return s; 2133 } else { 2134 return (java.lang.String) ref; 2135 } 2136 } 2137 /** 2138 * 2139 * 2140 * <pre> 2141 * The IPv4 address to be used for reverse DNS verification. 2142 * </pre> 2143 * 2144 * <code>optional string dns_verification_ip = 241011381;</code> 2145 * 2146 * @return The bytes for dnsVerificationIp. 2147 */ getDnsVerificationIpBytes()2148 public com.google.protobuf.ByteString getDnsVerificationIpBytes() { 2149 java.lang.Object ref = dnsVerificationIp_; 2150 if (ref instanceof String) { 2151 com.google.protobuf.ByteString b = 2152 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2153 dnsVerificationIp_ = b; 2154 return b; 2155 } else { 2156 return (com.google.protobuf.ByteString) ref; 2157 } 2158 } 2159 /** 2160 * 2161 * 2162 * <pre> 2163 * The IPv4 address to be used for reverse DNS verification. 2164 * </pre> 2165 * 2166 * <code>optional string dns_verification_ip = 241011381;</code> 2167 * 2168 * @param value The dnsVerificationIp to set. 2169 * @return This builder for chaining. 2170 */ setDnsVerificationIp(java.lang.String value)2171 public Builder setDnsVerificationIp(java.lang.String value) { 2172 if (value == null) { 2173 throw new NullPointerException(); 2174 } 2175 dnsVerificationIp_ = value; 2176 bitField0_ |= 0x00000004; 2177 onChanged(); 2178 return this; 2179 } 2180 /** 2181 * 2182 * 2183 * <pre> 2184 * The IPv4 address to be used for reverse DNS verification. 2185 * </pre> 2186 * 2187 * <code>optional string dns_verification_ip = 241011381;</code> 2188 * 2189 * @return This builder for chaining. 2190 */ clearDnsVerificationIp()2191 public Builder clearDnsVerificationIp() { 2192 dnsVerificationIp_ = getDefaultInstance().getDnsVerificationIp(); 2193 bitField0_ = (bitField0_ & ~0x00000004); 2194 onChanged(); 2195 return this; 2196 } 2197 /** 2198 * 2199 * 2200 * <pre> 2201 * The IPv4 address to be used for reverse DNS verification. 2202 * </pre> 2203 * 2204 * <code>optional string dns_verification_ip = 241011381;</code> 2205 * 2206 * @param value The bytes for dnsVerificationIp to set. 2207 * @return This builder for chaining. 2208 */ setDnsVerificationIpBytes(com.google.protobuf.ByteString value)2209 public Builder setDnsVerificationIpBytes(com.google.protobuf.ByteString value) { 2210 if (value == null) { 2211 throw new NullPointerException(); 2212 } 2213 checkByteStringIsUtf8(value); 2214 dnsVerificationIp_ = value; 2215 bitField0_ |= 0x00000004; 2216 onChanged(); 2217 return this; 2218 } 2219 2220 private java.lang.Object fingerprint_ = ""; 2221 /** 2222 * 2223 * 2224 * <pre> 2225 * Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a new PublicAdvertisedPrefix. An up-to-date fingerprint must be provided in order to update the PublicAdvertisedPrefix, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a PublicAdvertisedPrefix. 2226 * </pre> 2227 * 2228 * <code>optional string fingerprint = 234678500;</code> 2229 * 2230 * @return Whether the fingerprint field is set. 2231 */ hasFingerprint()2232 public boolean hasFingerprint() { 2233 return ((bitField0_ & 0x00000008) != 0); 2234 } 2235 /** 2236 * 2237 * 2238 * <pre> 2239 * Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a new PublicAdvertisedPrefix. An up-to-date fingerprint must be provided in order to update the PublicAdvertisedPrefix, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a PublicAdvertisedPrefix. 2240 * </pre> 2241 * 2242 * <code>optional string fingerprint = 234678500;</code> 2243 * 2244 * @return The fingerprint. 2245 */ getFingerprint()2246 public java.lang.String getFingerprint() { 2247 java.lang.Object ref = fingerprint_; 2248 if (!(ref instanceof java.lang.String)) { 2249 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2250 java.lang.String s = bs.toStringUtf8(); 2251 fingerprint_ = s; 2252 return s; 2253 } else { 2254 return (java.lang.String) ref; 2255 } 2256 } 2257 /** 2258 * 2259 * 2260 * <pre> 2261 * Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a new PublicAdvertisedPrefix. An up-to-date fingerprint must be provided in order to update the PublicAdvertisedPrefix, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a PublicAdvertisedPrefix. 2262 * </pre> 2263 * 2264 * <code>optional string fingerprint = 234678500;</code> 2265 * 2266 * @return The bytes for fingerprint. 2267 */ getFingerprintBytes()2268 public com.google.protobuf.ByteString getFingerprintBytes() { 2269 java.lang.Object ref = fingerprint_; 2270 if (ref instanceof String) { 2271 com.google.protobuf.ByteString b = 2272 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2273 fingerprint_ = b; 2274 return b; 2275 } else { 2276 return (com.google.protobuf.ByteString) ref; 2277 } 2278 } 2279 /** 2280 * 2281 * 2282 * <pre> 2283 * Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a new PublicAdvertisedPrefix. An up-to-date fingerprint must be provided in order to update the PublicAdvertisedPrefix, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a PublicAdvertisedPrefix. 2284 * </pre> 2285 * 2286 * <code>optional string fingerprint = 234678500;</code> 2287 * 2288 * @param value The fingerprint to set. 2289 * @return This builder for chaining. 2290 */ setFingerprint(java.lang.String value)2291 public Builder setFingerprint(java.lang.String value) { 2292 if (value == null) { 2293 throw new NullPointerException(); 2294 } 2295 fingerprint_ = value; 2296 bitField0_ |= 0x00000008; 2297 onChanged(); 2298 return this; 2299 } 2300 /** 2301 * 2302 * 2303 * <pre> 2304 * Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a new PublicAdvertisedPrefix. An up-to-date fingerprint must be provided in order to update the PublicAdvertisedPrefix, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a PublicAdvertisedPrefix. 2305 * </pre> 2306 * 2307 * <code>optional string fingerprint = 234678500;</code> 2308 * 2309 * @return This builder for chaining. 2310 */ clearFingerprint()2311 public Builder clearFingerprint() { 2312 fingerprint_ = getDefaultInstance().getFingerprint(); 2313 bitField0_ = (bitField0_ & ~0x00000008); 2314 onChanged(); 2315 return this; 2316 } 2317 /** 2318 * 2319 * 2320 * <pre> 2321 * Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a new PublicAdvertisedPrefix. An up-to-date fingerprint must be provided in order to update the PublicAdvertisedPrefix, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a PublicAdvertisedPrefix. 2322 * </pre> 2323 * 2324 * <code>optional string fingerprint = 234678500;</code> 2325 * 2326 * @param value The bytes for fingerprint to set. 2327 * @return This builder for chaining. 2328 */ setFingerprintBytes(com.google.protobuf.ByteString value)2329 public Builder setFingerprintBytes(com.google.protobuf.ByteString value) { 2330 if (value == null) { 2331 throw new NullPointerException(); 2332 } 2333 checkByteStringIsUtf8(value); 2334 fingerprint_ = value; 2335 bitField0_ |= 0x00000008; 2336 onChanged(); 2337 return this; 2338 } 2339 2340 private long id_; 2341 /** 2342 * 2343 * 2344 * <pre> 2345 * [Output Only] The unique identifier for the resource type. The server generates this identifier. 2346 * </pre> 2347 * 2348 * <code>optional uint64 id = 3355;</code> 2349 * 2350 * @return Whether the id field is set. 2351 */ 2352 @java.lang.Override hasId()2353 public boolean hasId() { 2354 return ((bitField0_ & 0x00000010) != 0); 2355 } 2356 /** 2357 * 2358 * 2359 * <pre> 2360 * [Output Only] The unique identifier for the resource type. The server generates this identifier. 2361 * </pre> 2362 * 2363 * <code>optional uint64 id = 3355;</code> 2364 * 2365 * @return The id. 2366 */ 2367 @java.lang.Override getId()2368 public long getId() { 2369 return id_; 2370 } 2371 /** 2372 * 2373 * 2374 * <pre> 2375 * [Output Only] The unique identifier for the resource type. The server generates this identifier. 2376 * </pre> 2377 * 2378 * <code>optional uint64 id = 3355;</code> 2379 * 2380 * @param value The id to set. 2381 * @return This builder for chaining. 2382 */ setId(long value)2383 public Builder setId(long value) { 2384 2385 id_ = value; 2386 bitField0_ |= 0x00000010; 2387 onChanged(); 2388 return this; 2389 } 2390 /** 2391 * 2392 * 2393 * <pre> 2394 * [Output Only] The unique identifier for the resource type. The server generates this identifier. 2395 * </pre> 2396 * 2397 * <code>optional uint64 id = 3355;</code> 2398 * 2399 * @return This builder for chaining. 2400 */ clearId()2401 public Builder clearId() { 2402 bitField0_ = (bitField0_ & ~0x00000010); 2403 id_ = 0L; 2404 onChanged(); 2405 return this; 2406 } 2407 2408 private java.lang.Object ipCidrRange_ = ""; 2409 /** 2410 * 2411 * 2412 * <pre> 2413 * The IPv4 address range, in CIDR format, represented by this public advertised prefix. 2414 * </pre> 2415 * 2416 * <code>optional string ip_cidr_range = 98117322;</code> 2417 * 2418 * @return Whether the ipCidrRange field is set. 2419 */ hasIpCidrRange()2420 public boolean hasIpCidrRange() { 2421 return ((bitField0_ & 0x00000020) != 0); 2422 } 2423 /** 2424 * 2425 * 2426 * <pre> 2427 * The IPv4 address range, in CIDR format, represented by this public advertised prefix. 2428 * </pre> 2429 * 2430 * <code>optional string ip_cidr_range = 98117322;</code> 2431 * 2432 * @return The ipCidrRange. 2433 */ getIpCidrRange()2434 public java.lang.String getIpCidrRange() { 2435 java.lang.Object ref = ipCidrRange_; 2436 if (!(ref instanceof java.lang.String)) { 2437 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2438 java.lang.String s = bs.toStringUtf8(); 2439 ipCidrRange_ = s; 2440 return s; 2441 } else { 2442 return (java.lang.String) ref; 2443 } 2444 } 2445 /** 2446 * 2447 * 2448 * <pre> 2449 * The IPv4 address range, in CIDR format, represented by this public advertised prefix. 2450 * </pre> 2451 * 2452 * <code>optional string ip_cidr_range = 98117322;</code> 2453 * 2454 * @return The bytes for ipCidrRange. 2455 */ getIpCidrRangeBytes()2456 public com.google.protobuf.ByteString getIpCidrRangeBytes() { 2457 java.lang.Object ref = ipCidrRange_; 2458 if (ref instanceof String) { 2459 com.google.protobuf.ByteString b = 2460 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2461 ipCidrRange_ = b; 2462 return b; 2463 } else { 2464 return (com.google.protobuf.ByteString) ref; 2465 } 2466 } 2467 /** 2468 * 2469 * 2470 * <pre> 2471 * The IPv4 address range, in CIDR format, represented by this public advertised prefix. 2472 * </pre> 2473 * 2474 * <code>optional string ip_cidr_range = 98117322;</code> 2475 * 2476 * @param value The ipCidrRange to set. 2477 * @return This builder for chaining. 2478 */ setIpCidrRange(java.lang.String value)2479 public Builder setIpCidrRange(java.lang.String value) { 2480 if (value == null) { 2481 throw new NullPointerException(); 2482 } 2483 ipCidrRange_ = value; 2484 bitField0_ |= 0x00000020; 2485 onChanged(); 2486 return this; 2487 } 2488 /** 2489 * 2490 * 2491 * <pre> 2492 * The IPv4 address range, in CIDR format, represented by this public advertised prefix. 2493 * </pre> 2494 * 2495 * <code>optional string ip_cidr_range = 98117322;</code> 2496 * 2497 * @return This builder for chaining. 2498 */ clearIpCidrRange()2499 public Builder clearIpCidrRange() { 2500 ipCidrRange_ = getDefaultInstance().getIpCidrRange(); 2501 bitField0_ = (bitField0_ & ~0x00000020); 2502 onChanged(); 2503 return this; 2504 } 2505 /** 2506 * 2507 * 2508 * <pre> 2509 * The IPv4 address range, in CIDR format, represented by this public advertised prefix. 2510 * </pre> 2511 * 2512 * <code>optional string ip_cidr_range = 98117322;</code> 2513 * 2514 * @param value The bytes for ipCidrRange to set. 2515 * @return This builder for chaining. 2516 */ setIpCidrRangeBytes(com.google.protobuf.ByteString value)2517 public Builder setIpCidrRangeBytes(com.google.protobuf.ByteString value) { 2518 if (value == null) { 2519 throw new NullPointerException(); 2520 } 2521 checkByteStringIsUtf8(value); 2522 ipCidrRange_ = value; 2523 bitField0_ |= 0x00000020; 2524 onChanged(); 2525 return this; 2526 } 2527 2528 private java.lang.Object kind_ = ""; 2529 /** 2530 * 2531 * 2532 * <pre> 2533 * [Output Only] Type of the resource. Always compute#publicAdvertisedPrefix for public advertised prefixes. 2534 * </pre> 2535 * 2536 * <code>optional string kind = 3292052;</code> 2537 * 2538 * @return Whether the kind field is set. 2539 */ hasKind()2540 public boolean hasKind() { 2541 return ((bitField0_ & 0x00000040) != 0); 2542 } 2543 /** 2544 * 2545 * 2546 * <pre> 2547 * [Output Only] Type of the resource. Always compute#publicAdvertisedPrefix for public advertised prefixes. 2548 * </pre> 2549 * 2550 * <code>optional string kind = 3292052;</code> 2551 * 2552 * @return The kind. 2553 */ getKind()2554 public java.lang.String getKind() { 2555 java.lang.Object ref = kind_; 2556 if (!(ref instanceof java.lang.String)) { 2557 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2558 java.lang.String s = bs.toStringUtf8(); 2559 kind_ = s; 2560 return s; 2561 } else { 2562 return (java.lang.String) ref; 2563 } 2564 } 2565 /** 2566 * 2567 * 2568 * <pre> 2569 * [Output Only] Type of the resource. Always compute#publicAdvertisedPrefix for public advertised prefixes. 2570 * </pre> 2571 * 2572 * <code>optional string kind = 3292052;</code> 2573 * 2574 * @return The bytes for kind. 2575 */ getKindBytes()2576 public com.google.protobuf.ByteString getKindBytes() { 2577 java.lang.Object ref = kind_; 2578 if (ref instanceof String) { 2579 com.google.protobuf.ByteString b = 2580 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2581 kind_ = b; 2582 return b; 2583 } else { 2584 return (com.google.protobuf.ByteString) ref; 2585 } 2586 } 2587 /** 2588 * 2589 * 2590 * <pre> 2591 * [Output Only] Type of the resource. Always compute#publicAdvertisedPrefix for public advertised prefixes. 2592 * </pre> 2593 * 2594 * <code>optional string kind = 3292052;</code> 2595 * 2596 * @param value The kind to set. 2597 * @return This builder for chaining. 2598 */ setKind(java.lang.String value)2599 public Builder setKind(java.lang.String value) { 2600 if (value == null) { 2601 throw new NullPointerException(); 2602 } 2603 kind_ = value; 2604 bitField0_ |= 0x00000040; 2605 onChanged(); 2606 return this; 2607 } 2608 /** 2609 * 2610 * 2611 * <pre> 2612 * [Output Only] Type of the resource. Always compute#publicAdvertisedPrefix for public advertised prefixes. 2613 * </pre> 2614 * 2615 * <code>optional string kind = 3292052;</code> 2616 * 2617 * @return This builder for chaining. 2618 */ clearKind()2619 public Builder clearKind() { 2620 kind_ = getDefaultInstance().getKind(); 2621 bitField0_ = (bitField0_ & ~0x00000040); 2622 onChanged(); 2623 return this; 2624 } 2625 /** 2626 * 2627 * 2628 * <pre> 2629 * [Output Only] Type of the resource. Always compute#publicAdvertisedPrefix for public advertised prefixes. 2630 * </pre> 2631 * 2632 * <code>optional string kind = 3292052;</code> 2633 * 2634 * @param value The bytes for kind to set. 2635 * @return This builder for chaining. 2636 */ setKindBytes(com.google.protobuf.ByteString value)2637 public Builder setKindBytes(com.google.protobuf.ByteString value) { 2638 if (value == null) { 2639 throw new NullPointerException(); 2640 } 2641 checkByteStringIsUtf8(value); 2642 kind_ = value; 2643 bitField0_ |= 0x00000040; 2644 onChanged(); 2645 return this; 2646 } 2647 2648 private java.lang.Object name_ = ""; 2649 /** 2650 * 2651 * 2652 * <pre> 2653 * Name of the resource. Provided by the client when the resource is created. The 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. 2654 * </pre> 2655 * 2656 * <code>optional string name = 3373707;</code> 2657 * 2658 * @return Whether the name field is set. 2659 */ hasName()2660 public boolean hasName() { 2661 return ((bitField0_ & 0x00000080) != 0); 2662 } 2663 /** 2664 * 2665 * 2666 * <pre> 2667 * Name of the resource. Provided by the client when the resource is created. The 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. 2668 * </pre> 2669 * 2670 * <code>optional string name = 3373707;</code> 2671 * 2672 * @return The name. 2673 */ getName()2674 public java.lang.String getName() { 2675 java.lang.Object ref = name_; 2676 if (!(ref instanceof java.lang.String)) { 2677 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2678 java.lang.String s = bs.toStringUtf8(); 2679 name_ = s; 2680 return s; 2681 } else { 2682 return (java.lang.String) ref; 2683 } 2684 } 2685 /** 2686 * 2687 * 2688 * <pre> 2689 * Name of the resource. Provided by the client when the resource is created. The 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. 2690 * </pre> 2691 * 2692 * <code>optional string name = 3373707;</code> 2693 * 2694 * @return The bytes for name. 2695 */ getNameBytes()2696 public com.google.protobuf.ByteString getNameBytes() { 2697 java.lang.Object ref = name_; 2698 if (ref instanceof String) { 2699 com.google.protobuf.ByteString b = 2700 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2701 name_ = b; 2702 return b; 2703 } else { 2704 return (com.google.protobuf.ByteString) ref; 2705 } 2706 } 2707 /** 2708 * 2709 * 2710 * <pre> 2711 * Name of the resource. Provided by the client when the resource is created. The 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. 2712 * </pre> 2713 * 2714 * <code>optional string name = 3373707;</code> 2715 * 2716 * @param value The name to set. 2717 * @return This builder for chaining. 2718 */ setName(java.lang.String value)2719 public Builder setName(java.lang.String value) { 2720 if (value == null) { 2721 throw new NullPointerException(); 2722 } 2723 name_ = value; 2724 bitField0_ |= 0x00000080; 2725 onChanged(); 2726 return this; 2727 } 2728 /** 2729 * 2730 * 2731 * <pre> 2732 * Name of the resource. Provided by the client when the resource is created. The 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. 2733 * </pre> 2734 * 2735 * <code>optional string name = 3373707;</code> 2736 * 2737 * @return This builder for chaining. 2738 */ clearName()2739 public Builder clearName() { 2740 name_ = getDefaultInstance().getName(); 2741 bitField0_ = (bitField0_ & ~0x00000080); 2742 onChanged(); 2743 return this; 2744 } 2745 /** 2746 * 2747 * 2748 * <pre> 2749 * Name of the resource. Provided by the client when the resource is created. The 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. 2750 * </pre> 2751 * 2752 * <code>optional string name = 3373707;</code> 2753 * 2754 * @param value The bytes for name to set. 2755 * @return This builder for chaining. 2756 */ setNameBytes(com.google.protobuf.ByteString value)2757 public Builder setNameBytes(com.google.protobuf.ByteString value) { 2758 if (value == null) { 2759 throw new NullPointerException(); 2760 } 2761 checkByteStringIsUtf8(value); 2762 name_ = value; 2763 bitField0_ |= 0x00000080; 2764 onChanged(); 2765 return this; 2766 } 2767 2768 private java.util.List<com.google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix> 2769 publicDelegatedPrefixs_ = java.util.Collections.emptyList(); 2770 ensurePublicDelegatedPrefixsIsMutable()2771 private void ensurePublicDelegatedPrefixsIsMutable() { 2772 if (!((bitField0_ & 0x00000100) != 0)) { 2773 publicDelegatedPrefixs_ = 2774 new java.util.ArrayList< 2775 com.google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix>( 2776 publicDelegatedPrefixs_); 2777 bitField0_ |= 0x00000100; 2778 } 2779 } 2780 2781 private com.google.protobuf.RepeatedFieldBuilderV3< 2782 com.google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix, 2783 com.google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix.Builder, 2784 com.google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefixOrBuilder> 2785 publicDelegatedPrefixsBuilder_; 2786 2787 /** 2788 * 2789 * 2790 * <pre> 2791 * [Output Only] The list of public delegated prefixes that exist for this public advertised prefix. 2792 * </pre> 2793 * 2794 * <code> 2795 * repeated .google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix public_delegated_prefixs = 425811723; 2796 * </code> 2797 */ 2798 public java.util.List<com.google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix> getPublicDelegatedPrefixsList()2799 getPublicDelegatedPrefixsList() { 2800 if (publicDelegatedPrefixsBuilder_ == null) { 2801 return java.util.Collections.unmodifiableList(publicDelegatedPrefixs_); 2802 } else { 2803 return publicDelegatedPrefixsBuilder_.getMessageList(); 2804 } 2805 } 2806 /** 2807 * 2808 * 2809 * <pre> 2810 * [Output Only] The list of public delegated prefixes that exist for this public advertised prefix. 2811 * </pre> 2812 * 2813 * <code> 2814 * repeated .google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix public_delegated_prefixs = 425811723; 2815 * </code> 2816 */ getPublicDelegatedPrefixsCount()2817 public int getPublicDelegatedPrefixsCount() { 2818 if (publicDelegatedPrefixsBuilder_ == null) { 2819 return publicDelegatedPrefixs_.size(); 2820 } else { 2821 return publicDelegatedPrefixsBuilder_.getCount(); 2822 } 2823 } 2824 /** 2825 * 2826 * 2827 * <pre> 2828 * [Output Only] The list of public delegated prefixes that exist for this public advertised prefix. 2829 * </pre> 2830 * 2831 * <code> 2832 * repeated .google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix public_delegated_prefixs = 425811723; 2833 * </code> 2834 */ 2835 public com.google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix getPublicDelegatedPrefixs(int index)2836 getPublicDelegatedPrefixs(int index) { 2837 if (publicDelegatedPrefixsBuilder_ == null) { 2838 return publicDelegatedPrefixs_.get(index); 2839 } else { 2840 return publicDelegatedPrefixsBuilder_.getMessage(index); 2841 } 2842 } 2843 /** 2844 * 2845 * 2846 * <pre> 2847 * [Output Only] The list of public delegated prefixes that exist for this public advertised prefix. 2848 * </pre> 2849 * 2850 * <code> 2851 * repeated .google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix public_delegated_prefixs = 425811723; 2852 * </code> 2853 */ setPublicDelegatedPrefixs( int index, com.google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix value)2854 public Builder setPublicDelegatedPrefixs( 2855 int index, com.google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix value) { 2856 if (publicDelegatedPrefixsBuilder_ == null) { 2857 if (value == null) { 2858 throw new NullPointerException(); 2859 } 2860 ensurePublicDelegatedPrefixsIsMutable(); 2861 publicDelegatedPrefixs_.set(index, value); 2862 onChanged(); 2863 } else { 2864 publicDelegatedPrefixsBuilder_.setMessage(index, value); 2865 } 2866 return this; 2867 } 2868 /** 2869 * 2870 * 2871 * <pre> 2872 * [Output Only] The list of public delegated prefixes that exist for this public advertised prefix. 2873 * </pre> 2874 * 2875 * <code> 2876 * repeated .google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix public_delegated_prefixs = 425811723; 2877 * </code> 2878 */ setPublicDelegatedPrefixs( int index, com.google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix.Builder builderForValue)2879 public Builder setPublicDelegatedPrefixs( 2880 int index, 2881 com.google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix.Builder 2882 builderForValue) { 2883 if (publicDelegatedPrefixsBuilder_ == null) { 2884 ensurePublicDelegatedPrefixsIsMutable(); 2885 publicDelegatedPrefixs_.set(index, builderForValue.build()); 2886 onChanged(); 2887 } else { 2888 publicDelegatedPrefixsBuilder_.setMessage(index, builderForValue.build()); 2889 } 2890 return this; 2891 } 2892 /** 2893 * 2894 * 2895 * <pre> 2896 * [Output Only] The list of public delegated prefixes that exist for this public advertised prefix. 2897 * </pre> 2898 * 2899 * <code> 2900 * repeated .google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix public_delegated_prefixs = 425811723; 2901 * </code> 2902 */ addPublicDelegatedPrefixs( com.google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix value)2903 public Builder addPublicDelegatedPrefixs( 2904 com.google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix value) { 2905 if (publicDelegatedPrefixsBuilder_ == null) { 2906 if (value == null) { 2907 throw new NullPointerException(); 2908 } 2909 ensurePublicDelegatedPrefixsIsMutable(); 2910 publicDelegatedPrefixs_.add(value); 2911 onChanged(); 2912 } else { 2913 publicDelegatedPrefixsBuilder_.addMessage(value); 2914 } 2915 return this; 2916 } 2917 /** 2918 * 2919 * 2920 * <pre> 2921 * [Output Only] The list of public delegated prefixes that exist for this public advertised prefix. 2922 * </pre> 2923 * 2924 * <code> 2925 * repeated .google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix public_delegated_prefixs = 425811723; 2926 * </code> 2927 */ addPublicDelegatedPrefixs( int index, com.google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix value)2928 public Builder addPublicDelegatedPrefixs( 2929 int index, com.google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix value) { 2930 if (publicDelegatedPrefixsBuilder_ == null) { 2931 if (value == null) { 2932 throw new NullPointerException(); 2933 } 2934 ensurePublicDelegatedPrefixsIsMutable(); 2935 publicDelegatedPrefixs_.add(index, value); 2936 onChanged(); 2937 } else { 2938 publicDelegatedPrefixsBuilder_.addMessage(index, value); 2939 } 2940 return this; 2941 } 2942 /** 2943 * 2944 * 2945 * <pre> 2946 * [Output Only] The list of public delegated prefixes that exist for this public advertised prefix. 2947 * </pre> 2948 * 2949 * <code> 2950 * repeated .google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix public_delegated_prefixs = 425811723; 2951 * </code> 2952 */ addPublicDelegatedPrefixs( com.google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix.Builder builderForValue)2953 public Builder addPublicDelegatedPrefixs( 2954 com.google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix.Builder 2955 builderForValue) { 2956 if (publicDelegatedPrefixsBuilder_ == null) { 2957 ensurePublicDelegatedPrefixsIsMutable(); 2958 publicDelegatedPrefixs_.add(builderForValue.build()); 2959 onChanged(); 2960 } else { 2961 publicDelegatedPrefixsBuilder_.addMessage(builderForValue.build()); 2962 } 2963 return this; 2964 } 2965 /** 2966 * 2967 * 2968 * <pre> 2969 * [Output Only] The list of public delegated prefixes that exist for this public advertised prefix. 2970 * </pre> 2971 * 2972 * <code> 2973 * repeated .google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix public_delegated_prefixs = 425811723; 2974 * </code> 2975 */ addPublicDelegatedPrefixs( int index, com.google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix.Builder builderForValue)2976 public Builder addPublicDelegatedPrefixs( 2977 int index, 2978 com.google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix.Builder 2979 builderForValue) { 2980 if (publicDelegatedPrefixsBuilder_ == null) { 2981 ensurePublicDelegatedPrefixsIsMutable(); 2982 publicDelegatedPrefixs_.add(index, builderForValue.build()); 2983 onChanged(); 2984 } else { 2985 publicDelegatedPrefixsBuilder_.addMessage(index, builderForValue.build()); 2986 } 2987 return this; 2988 } 2989 /** 2990 * 2991 * 2992 * <pre> 2993 * [Output Only] The list of public delegated prefixes that exist for this public advertised prefix. 2994 * </pre> 2995 * 2996 * <code> 2997 * repeated .google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix public_delegated_prefixs = 425811723; 2998 * </code> 2999 */ addAllPublicDelegatedPrefixs( java.lang.Iterable< ? extends com.google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix> values)3000 public Builder addAllPublicDelegatedPrefixs( 3001 java.lang.Iterable< 3002 ? extends com.google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix> 3003 values) { 3004 if (publicDelegatedPrefixsBuilder_ == null) { 3005 ensurePublicDelegatedPrefixsIsMutable(); 3006 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, publicDelegatedPrefixs_); 3007 onChanged(); 3008 } else { 3009 publicDelegatedPrefixsBuilder_.addAllMessages(values); 3010 } 3011 return this; 3012 } 3013 /** 3014 * 3015 * 3016 * <pre> 3017 * [Output Only] The list of public delegated prefixes that exist for this public advertised prefix. 3018 * </pre> 3019 * 3020 * <code> 3021 * repeated .google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix public_delegated_prefixs = 425811723; 3022 * </code> 3023 */ clearPublicDelegatedPrefixs()3024 public Builder clearPublicDelegatedPrefixs() { 3025 if (publicDelegatedPrefixsBuilder_ == null) { 3026 publicDelegatedPrefixs_ = java.util.Collections.emptyList(); 3027 bitField0_ = (bitField0_ & ~0x00000100); 3028 onChanged(); 3029 } else { 3030 publicDelegatedPrefixsBuilder_.clear(); 3031 } 3032 return this; 3033 } 3034 /** 3035 * 3036 * 3037 * <pre> 3038 * [Output Only] The list of public delegated prefixes that exist for this public advertised prefix. 3039 * </pre> 3040 * 3041 * <code> 3042 * repeated .google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix public_delegated_prefixs = 425811723; 3043 * </code> 3044 */ removePublicDelegatedPrefixs(int index)3045 public Builder removePublicDelegatedPrefixs(int index) { 3046 if (publicDelegatedPrefixsBuilder_ == null) { 3047 ensurePublicDelegatedPrefixsIsMutable(); 3048 publicDelegatedPrefixs_.remove(index); 3049 onChanged(); 3050 } else { 3051 publicDelegatedPrefixsBuilder_.remove(index); 3052 } 3053 return this; 3054 } 3055 /** 3056 * 3057 * 3058 * <pre> 3059 * [Output Only] The list of public delegated prefixes that exist for this public advertised prefix. 3060 * </pre> 3061 * 3062 * <code> 3063 * repeated .google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix public_delegated_prefixs = 425811723; 3064 * </code> 3065 */ 3066 public com.google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix.Builder getPublicDelegatedPrefixsBuilder(int index)3067 getPublicDelegatedPrefixsBuilder(int index) { 3068 return getPublicDelegatedPrefixsFieldBuilder().getBuilder(index); 3069 } 3070 /** 3071 * 3072 * 3073 * <pre> 3074 * [Output Only] The list of public delegated prefixes that exist for this public advertised prefix. 3075 * </pre> 3076 * 3077 * <code> 3078 * repeated .google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix public_delegated_prefixs = 425811723; 3079 * </code> 3080 */ 3081 public com.google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefixOrBuilder getPublicDelegatedPrefixsOrBuilder(int index)3082 getPublicDelegatedPrefixsOrBuilder(int index) { 3083 if (publicDelegatedPrefixsBuilder_ == null) { 3084 return publicDelegatedPrefixs_.get(index); 3085 } else { 3086 return publicDelegatedPrefixsBuilder_.getMessageOrBuilder(index); 3087 } 3088 } 3089 /** 3090 * 3091 * 3092 * <pre> 3093 * [Output Only] The list of public delegated prefixes that exist for this public advertised prefix. 3094 * </pre> 3095 * 3096 * <code> 3097 * repeated .google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix public_delegated_prefixs = 425811723; 3098 * </code> 3099 */ 3100 public java.util.List< 3101 ? extends 3102 com.google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefixOrBuilder> getPublicDelegatedPrefixsOrBuilderList()3103 getPublicDelegatedPrefixsOrBuilderList() { 3104 if (publicDelegatedPrefixsBuilder_ != null) { 3105 return publicDelegatedPrefixsBuilder_.getMessageOrBuilderList(); 3106 } else { 3107 return java.util.Collections.unmodifiableList(publicDelegatedPrefixs_); 3108 } 3109 } 3110 /** 3111 * 3112 * 3113 * <pre> 3114 * [Output Only] The list of public delegated prefixes that exist for this public advertised prefix. 3115 * </pre> 3116 * 3117 * <code> 3118 * repeated .google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix public_delegated_prefixs = 425811723; 3119 * </code> 3120 */ 3121 public com.google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix.Builder addPublicDelegatedPrefixsBuilder()3122 addPublicDelegatedPrefixsBuilder() { 3123 return getPublicDelegatedPrefixsFieldBuilder() 3124 .addBuilder( 3125 com.google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix 3126 .getDefaultInstance()); 3127 } 3128 /** 3129 * 3130 * 3131 * <pre> 3132 * [Output Only] The list of public delegated prefixes that exist for this public advertised prefix. 3133 * </pre> 3134 * 3135 * <code> 3136 * repeated .google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix public_delegated_prefixs = 425811723; 3137 * </code> 3138 */ 3139 public com.google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix.Builder addPublicDelegatedPrefixsBuilder(int index)3140 addPublicDelegatedPrefixsBuilder(int index) { 3141 return getPublicDelegatedPrefixsFieldBuilder() 3142 .addBuilder( 3143 index, 3144 com.google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix 3145 .getDefaultInstance()); 3146 } 3147 /** 3148 * 3149 * 3150 * <pre> 3151 * [Output Only] The list of public delegated prefixes that exist for this public advertised prefix. 3152 * </pre> 3153 * 3154 * <code> 3155 * repeated .google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix public_delegated_prefixs = 425811723; 3156 * </code> 3157 */ 3158 public java.util.List< 3159 com.google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix.Builder> getPublicDelegatedPrefixsBuilderList()3160 getPublicDelegatedPrefixsBuilderList() { 3161 return getPublicDelegatedPrefixsFieldBuilder().getBuilderList(); 3162 } 3163 3164 private com.google.protobuf.RepeatedFieldBuilderV3< 3165 com.google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix, 3166 com.google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix.Builder, 3167 com.google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefixOrBuilder> getPublicDelegatedPrefixsFieldBuilder()3168 getPublicDelegatedPrefixsFieldBuilder() { 3169 if (publicDelegatedPrefixsBuilder_ == null) { 3170 publicDelegatedPrefixsBuilder_ = 3171 new com.google.protobuf.RepeatedFieldBuilderV3< 3172 com.google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix, 3173 com.google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix.Builder, 3174 com.google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefixOrBuilder>( 3175 publicDelegatedPrefixs_, 3176 ((bitField0_ & 0x00000100) != 0), 3177 getParentForChildren(), 3178 isClean()); 3179 publicDelegatedPrefixs_ = null; 3180 } 3181 return publicDelegatedPrefixsBuilder_; 3182 } 3183 3184 private java.lang.Object selfLink_ = ""; 3185 /** 3186 * 3187 * 3188 * <pre> 3189 * [Output Only] Server-defined URL for the resource. 3190 * </pre> 3191 * 3192 * <code>optional string self_link = 456214797;</code> 3193 * 3194 * @return Whether the selfLink field is set. 3195 */ hasSelfLink()3196 public boolean hasSelfLink() { 3197 return ((bitField0_ & 0x00000200) != 0); 3198 } 3199 /** 3200 * 3201 * 3202 * <pre> 3203 * [Output Only] Server-defined URL for the resource. 3204 * </pre> 3205 * 3206 * <code>optional string self_link = 456214797;</code> 3207 * 3208 * @return The selfLink. 3209 */ getSelfLink()3210 public java.lang.String getSelfLink() { 3211 java.lang.Object ref = selfLink_; 3212 if (!(ref instanceof java.lang.String)) { 3213 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 3214 java.lang.String s = bs.toStringUtf8(); 3215 selfLink_ = s; 3216 return s; 3217 } else { 3218 return (java.lang.String) ref; 3219 } 3220 } 3221 /** 3222 * 3223 * 3224 * <pre> 3225 * [Output Only] Server-defined URL for the resource. 3226 * </pre> 3227 * 3228 * <code>optional string self_link = 456214797;</code> 3229 * 3230 * @return The bytes for selfLink. 3231 */ getSelfLinkBytes()3232 public com.google.protobuf.ByteString getSelfLinkBytes() { 3233 java.lang.Object ref = selfLink_; 3234 if (ref instanceof String) { 3235 com.google.protobuf.ByteString b = 3236 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 3237 selfLink_ = b; 3238 return b; 3239 } else { 3240 return (com.google.protobuf.ByteString) ref; 3241 } 3242 } 3243 /** 3244 * 3245 * 3246 * <pre> 3247 * [Output Only] Server-defined URL for the resource. 3248 * </pre> 3249 * 3250 * <code>optional string self_link = 456214797;</code> 3251 * 3252 * @param value The selfLink to set. 3253 * @return This builder for chaining. 3254 */ setSelfLink(java.lang.String value)3255 public Builder setSelfLink(java.lang.String value) { 3256 if (value == null) { 3257 throw new NullPointerException(); 3258 } 3259 selfLink_ = value; 3260 bitField0_ |= 0x00000200; 3261 onChanged(); 3262 return this; 3263 } 3264 /** 3265 * 3266 * 3267 * <pre> 3268 * [Output Only] Server-defined URL for the resource. 3269 * </pre> 3270 * 3271 * <code>optional string self_link = 456214797;</code> 3272 * 3273 * @return This builder for chaining. 3274 */ clearSelfLink()3275 public Builder clearSelfLink() { 3276 selfLink_ = getDefaultInstance().getSelfLink(); 3277 bitField0_ = (bitField0_ & ~0x00000200); 3278 onChanged(); 3279 return this; 3280 } 3281 /** 3282 * 3283 * 3284 * <pre> 3285 * [Output Only] Server-defined URL for the resource. 3286 * </pre> 3287 * 3288 * <code>optional string self_link = 456214797;</code> 3289 * 3290 * @param value The bytes for selfLink to set. 3291 * @return This builder for chaining. 3292 */ setSelfLinkBytes(com.google.protobuf.ByteString value)3293 public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { 3294 if (value == null) { 3295 throw new NullPointerException(); 3296 } 3297 checkByteStringIsUtf8(value); 3298 selfLink_ = value; 3299 bitField0_ |= 0x00000200; 3300 onChanged(); 3301 return this; 3302 } 3303 3304 private java.lang.Object sharedSecret_ = ""; 3305 /** 3306 * 3307 * 3308 * <pre> 3309 * [Output Only] The shared secret to be used for reverse DNS verification. 3310 * </pre> 3311 * 3312 * <code>optional string shared_secret = 381932490;</code> 3313 * 3314 * @return Whether the sharedSecret field is set. 3315 */ hasSharedSecret()3316 public boolean hasSharedSecret() { 3317 return ((bitField0_ & 0x00000400) != 0); 3318 } 3319 /** 3320 * 3321 * 3322 * <pre> 3323 * [Output Only] The shared secret to be used for reverse DNS verification. 3324 * </pre> 3325 * 3326 * <code>optional string shared_secret = 381932490;</code> 3327 * 3328 * @return The sharedSecret. 3329 */ getSharedSecret()3330 public java.lang.String getSharedSecret() { 3331 java.lang.Object ref = sharedSecret_; 3332 if (!(ref instanceof java.lang.String)) { 3333 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 3334 java.lang.String s = bs.toStringUtf8(); 3335 sharedSecret_ = s; 3336 return s; 3337 } else { 3338 return (java.lang.String) ref; 3339 } 3340 } 3341 /** 3342 * 3343 * 3344 * <pre> 3345 * [Output Only] The shared secret to be used for reverse DNS verification. 3346 * </pre> 3347 * 3348 * <code>optional string shared_secret = 381932490;</code> 3349 * 3350 * @return The bytes for sharedSecret. 3351 */ getSharedSecretBytes()3352 public com.google.protobuf.ByteString getSharedSecretBytes() { 3353 java.lang.Object ref = sharedSecret_; 3354 if (ref instanceof String) { 3355 com.google.protobuf.ByteString b = 3356 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 3357 sharedSecret_ = b; 3358 return b; 3359 } else { 3360 return (com.google.protobuf.ByteString) ref; 3361 } 3362 } 3363 /** 3364 * 3365 * 3366 * <pre> 3367 * [Output Only] The shared secret to be used for reverse DNS verification. 3368 * </pre> 3369 * 3370 * <code>optional string shared_secret = 381932490;</code> 3371 * 3372 * @param value The sharedSecret to set. 3373 * @return This builder for chaining. 3374 */ setSharedSecret(java.lang.String value)3375 public Builder setSharedSecret(java.lang.String value) { 3376 if (value == null) { 3377 throw new NullPointerException(); 3378 } 3379 sharedSecret_ = value; 3380 bitField0_ |= 0x00000400; 3381 onChanged(); 3382 return this; 3383 } 3384 /** 3385 * 3386 * 3387 * <pre> 3388 * [Output Only] The shared secret to be used for reverse DNS verification. 3389 * </pre> 3390 * 3391 * <code>optional string shared_secret = 381932490;</code> 3392 * 3393 * @return This builder for chaining. 3394 */ clearSharedSecret()3395 public Builder clearSharedSecret() { 3396 sharedSecret_ = getDefaultInstance().getSharedSecret(); 3397 bitField0_ = (bitField0_ & ~0x00000400); 3398 onChanged(); 3399 return this; 3400 } 3401 /** 3402 * 3403 * 3404 * <pre> 3405 * [Output Only] The shared secret to be used for reverse DNS verification. 3406 * </pre> 3407 * 3408 * <code>optional string shared_secret = 381932490;</code> 3409 * 3410 * @param value The bytes for sharedSecret to set. 3411 * @return This builder for chaining. 3412 */ setSharedSecretBytes(com.google.protobuf.ByteString value)3413 public Builder setSharedSecretBytes(com.google.protobuf.ByteString value) { 3414 if (value == null) { 3415 throw new NullPointerException(); 3416 } 3417 checkByteStringIsUtf8(value); 3418 sharedSecret_ = value; 3419 bitField0_ |= 0x00000400; 3420 onChanged(); 3421 return this; 3422 } 3423 3424 private java.lang.Object status_ = ""; 3425 /** 3426 * 3427 * 3428 * <pre> 3429 * The status of the public advertised prefix. Possible values include: - `INITIAL`: RPKI validation is complete. - `PTR_CONFIGURED`: User has configured the PTR. - `VALIDATED`: Reverse DNS lookup is successful. - `REVERSE_DNS_LOOKUP_FAILED`: Reverse DNS lookup failed. - `PREFIX_CONFIGURATION_IN_PROGRESS`: The prefix is being configured. - `PREFIX_CONFIGURATION_COMPLETE`: The prefix is fully configured. - `PREFIX_REMOVAL_IN_PROGRESS`: The prefix is being removed. 3430 * Check the Status enum for the list of possible values. 3431 * </pre> 3432 * 3433 * <code>optional string status = 181260274;</code> 3434 * 3435 * @return Whether the status field is set. 3436 */ hasStatus()3437 public boolean hasStatus() { 3438 return ((bitField0_ & 0x00000800) != 0); 3439 } 3440 /** 3441 * 3442 * 3443 * <pre> 3444 * The status of the public advertised prefix. Possible values include: - `INITIAL`: RPKI validation is complete. - `PTR_CONFIGURED`: User has configured the PTR. - `VALIDATED`: Reverse DNS lookup is successful. - `REVERSE_DNS_LOOKUP_FAILED`: Reverse DNS lookup failed. - `PREFIX_CONFIGURATION_IN_PROGRESS`: The prefix is being configured. - `PREFIX_CONFIGURATION_COMPLETE`: The prefix is fully configured. - `PREFIX_REMOVAL_IN_PROGRESS`: The prefix is being removed. 3445 * Check the Status enum for the list of possible values. 3446 * </pre> 3447 * 3448 * <code>optional string status = 181260274;</code> 3449 * 3450 * @return The status. 3451 */ getStatus()3452 public java.lang.String getStatus() { 3453 java.lang.Object ref = status_; 3454 if (!(ref instanceof java.lang.String)) { 3455 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 3456 java.lang.String s = bs.toStringUtf8(); 3457 status_ = s; 3458 return s; 3459 } else { 3460 return (java.lang.String) ref; 3461 } 3462 } 3463 /** 3464 * 3465 * 3466 * <pre> 3467 * The status of the public advertised prefix. Possible values include: - `INITIAL`: RPKI validation is complete. - `PTR_CONFIGURED`: User has configured the PTR. - `VALIDATED`: Reverse DNS lookup is successful. - `REVERSE_DNS_LOOKUP_FAILED`: Reverse DNS lookup failed. - `PREFIX_CONFIGURATION_IN_PROGRESS`: The prefix is being configured. - `PREFIX_CONFIGURATION_COMPLETE`: The prefix is fully configured. - `PREFIX_REMOVAL_IN_PROGRESS`: The prefix is being removed. 3468 * Check the Status enum for the list of possible values. 3469 * </pre> 3470 * 3471 * <code>optional string status = 181260274;</code> 3472 * 3473 * @return The bytes for status. 3474 */ getStatusBytes()3475 public com.google.protobuf.ByteString getStatusBytes() { 3476 java.lang.Object ref = status_; 3477 if (ref instanceof String) { 3478 com.google.protobuf.ByteString b = 3479 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 3480 status_ = b; 3481 return b; 3482 } else { 3483 return (com.google.protobuf.ByteString) ref; 3484 } 3485 } 3486 /** 3487 * 3488 * 3489 * <pre> 3490 * The status of the public advertised prefix. Possible values include: - `INITIAL`: RPKI validation is complete. - `PTR_CONFIGURED`: User has configured the PTR. - `VALIDATED`: Reverse DNS lookup is successful. - `REVERSE_DNS_LOOKUP_FAILED`: Reverse DNS lookup failed. - `PREFIX_CONFIGURATION_IN_PROGRESS`: The prefix is being configured. - `PREFIX_CONFIGURATION_COMPLETE`: The prefix is fully configured. - `PREFIX_REMOVAL_IN_PROGRESS`: The prefix is being removed. 3491 * Check the Status enum for the list of possible values. 3492 * </pre> 3493 * 3494 * <code>optional string status = 181260274;</code> 3495 * 3496 * @param value The status to set. 3497 * @return This builder for chaining. 3498 */ setStatus(java.lang.String value)3499 public Builder setStatus(java.lang.String value) { 3500 if (value == null) { 3501 throw new NullPointerException(); 3502 } 3503 status_ = value; 3504 bitField0_ |= 0x00000800; 3505 onChanged(); 3506 return this; 3507 } 3508 /** 3509 * 3510 * 3511 * <pre> 3512 * The status of the public advertised prefix. Possible values include: - `INITIAL`: RPKI validation is complete. - `PTR_CONFIGURED`: User has configured the PTR. - `VALIDATED`: Reverse DNS lookup is successful. - `REVERSE_DNS_LOOKUP_FAILED`: Reverse DNS lookup failed. - `PREFIX_CONFIGURATION_IN_PROGRESS`: The prefix is being configured. - `PREFIX_CONFIGURATION_COMPLETE`: The prefix is fully configured. - `PREFIX_REMOVAL_IN_PROGRESS`: The prefix is being removed. 3513 * Check the Status enum for the list of possible values. 3514 * </pre> 3515 * 3516 * <code>optional string status = 181260274;</code> 3517 * 3518 * @return This builder for chaining. 3519 */ clearStatus()3520 public Builder clearStatus() { 3521 status_ = getDefaultInstance().getStatus(); 3522 bitField0_ = (bitField0_ & ~0x00000800); 3523 onChanged(); 3524 return this; 3525 } 3526 /** 3527 * 3528 * 3529 * <pre> 3530 * The status of the public advertised prefix. Possible values include: - `INITIAL`: RPKI validation is complete. - `PTR_CONFIGURED`: User has configured the PTR. - `VALIDATED`: Reverse DNS lookup is successful. - `REVERSE_DNS_LOOKUP_FAILED`: Reverse DNS lookup failed. - `PREFIX_CONFIGURATION_IN_PROGRESS`: The prefix is being configured. - `PREFIX_CONFIGURATION_COMPLETE`: The prefix is fully configured. - `PREFIX_REMOVAL_IN_PROGRESS`: The prefix is being removed. 3531 * Check the Status enum for the list of possible values. 3532 * </pre> 3533 * 3534 * <code>optional string status = 181260274;</code> 3535 * 3536 * @param value The bytes for status to set. 3537 * @return This builder for chaining. 3538 */ setStatusBytes(com.google.protobuf.ByteString value)3539 public Builder setStatusBytes(com.google.protobuf.ByteString value) { 3540 if (value == null) { 3541 throw new NullPointerException(); 3542 } 3543 checkByteStringIsUtf8(value); 3544 status_ = value; 3545 bitField0_ |= 0x00000800; 3546 onChanged(); 3547 return this; 3548 } 3549 3550 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)3551 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 3552 return super.setUnknownFields(unknownFields); 3553 } 3554 3555 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)3556 public final Builder mergeUnknownFields( 3557 final com.google.protobuf.UnknownFieldSet unknownFields) { 3558 return super.mergeUnknownFields(unknownFields); 3559 } 3560 3561 // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.PublicAdvertisedPrefix) 3562 } 3563 3564 // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.PublicAdvertisedPrefix) 3565 private static final com.google.cloud.compute.v1.PublicAdvertisedPrefix DEFAULT_INSTANCE; 3566 3567 static { 3568 DEFAULT_INSTANCE = new com.google.cloud.compute.v1.PublicAdvertisedPrefix(); 3569 } 3570 getDefaultInstance()3571 public static com.google.cloud.compute.v1.PublicAdvertisedPrefix getDefaultInstance() { 3572 return DEFAULT_INSTANCE; 3573 } 3574 3575 private static final com.google.protobuf.Parser<PublicAdvertisedPrefix> PARSER = 3576 new com.google.protobuf.AbstractParser<PublicAdvertisedPrefix>() { 3577 @java.lang.Override 3578 public PublicAdvertisedPrefix parsePartialFrom( 3579 com.google.protobuf.CodedInputStream input, 3580 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3581 throws com.google.protobuf.InvalidProtocolBufferException { 3582 Builder builder = newBuilder(); 3583 try { 3584 builder.mergeFrom(input, extensionRegistry); 3585 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 3586 throw e.setUnfinishedMessage(builder.buildPartial()); 3587 } catch (com.google.protobuf.UninitializedMessageException e) { 3588 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 3589 } catch (java.io.IOException e) { 3590 throw new com.google.protobuf.InvalidProtocolBufferException(e) 3591 .setUnfinishedMessage(builder.buildPartial()); 3592 } 3593 return builder.buildPartial(); 3594 } 3595 }; 3596 parser()3597 public static com.google.protobuf.Parser<PublicAdvertisedPrefix> parser() { 3598 return PARSER; 3599 } 3600 3601 @java.lang.Override getParserForType()3602 public com.google.protobuf.Parser<PublicAdvertisedPrefix> getParserForType() { 3603 return PARSER; 3604 } 3605 3606 @java.lang.Override getDefaultInstanceForType()3607 public com.google.cloud.compute.v1.PublicAdvertisedPrefix getDefaultInstanceForType() { 3608 return DEFAULT_INSTANCE; 3609 } 3610 } 3611